/* Timeline(TM) standalone product page. Independent of the BMEC site theme.
   Brand: clean light surface, grey wordmark, the rainbow-LED accent and the six
   brand value colours (transformational/structure/self-expression/purpose/
   belonging/educational). */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format("woff2");
}
/* Caveat - handwriting/marker face for the whiteboard headline (OFL licensed). */
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/caveat.woff2) format("woff2");
}

:root {
  --tl-ink: #1b1b22;
  --tl-soft-ink: #41414c;
  --tl-mute: #6f6f7a;
  --tl-bg: #ffffff;
  --tl-panel: #f4f4f7;
  --tl-panel-2: #eceae3;            /* brand warm off-white */
  --tl-line: #e6e6ec;
  --tl-dark: #17171d;
  --tl-radius: 20px;
  /* brand value colours */
  --v-blue: #3fa9e0;
  --v-indigo: #5c6bc0;
  --v-purple: #b14fb5;
  --v-coral: #ec615a;
  --v-orange: #f2a03d;
  --v-yellow: #ecc63a;
  --tl-rainbow: linear-gradient(90deg, #57b85f, #3fa9e0, #5c6bc0, #b14fb5, #ec615a, #f2a03d, #ecc63a);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tl {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--tl-ink);
  background: var(--tl-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; }

.tl-wrap { width: min(1120px, 92vw); margin-inline: auto; }
.tl-skip { position: absolute; left: -9999px; }
.tl-skip:focus { left: 16px; top: 12px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }

/* ---- header ---- */
.tl-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--tl-line); }
.tl-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.tl-brand { display: inline-flex; align-items: center; }
.tl-brand img { height: 30px; width: auto; }
.tl-nav { display: flex; gap: 10px; }

/* ---- buttons ---- */
.tl-btn { display: inline-block; padding: 11px 20px; border-radius: 999px; font-weight: 650; text-decoration: none; font-size: .96rem; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.tl-btn-lg { padding: 14px 28px; font-size: 1.04rem; }
.tl-btn-dark { background: var(--tl-dark); color: #fff; }
.tl-btn-dark:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.tl-btn-ghost { background: transparent; color: var(--tl-ink); border: 1.5px solid var(--tl-line); }
.tl-btn-ghost:hover { border-color: var(--tl-ink); }
.tl-rainbow-bar { height: 5px; background: var(--tl-rainbow); }

/* ---- hero: the headline written onto a Timeline whiteboard ---- */
.tl-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 88px); text-align: center; }
.tl-eyebrow { font-weight: 650; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; color: var(--tl-mute); margin: 0 0 22px; }

/* the whiteboard is the product photo itself; the headline is written on top of it */
.tl-board { position: relative; max-width: 1120px; margin: 0 auto; }
.tl-board-img {
  width: 100%; height: auto; display: block; border-radius: 12px;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .3), 0 2px 6px rgba(0, 0, 0, .06);
}
/* the handwritten headline, centred on the whiteboard area (above the LED strip),
   revealed word by word as if written on with a marker */
.tl-write {
  position: absolute; left: 0; right: 0; top: 0; bottom: 15%;
  margin: 0; padding: 0 6%;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0 .3em;
  font-family: "Caveat", "Segoe Script", cursive;
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 3.4rem);
  line-height: 1.0;
  letter-spacing: .01em;
  color: #16161d;
  text-align: center;
}
.tl-w {
  display: inline-block;
  clip-path: inset(0 100% -14% 0);
  animation: tl-write-on .55s ease-out calc(var(--i) * .4s + .3s) both;
}
@keyframes tl-write-on {
  from { clip-path: inset(0 100% -14% 0); }
  to   { clip-path: inset(0 -3% -14% 0); }
}

.tl-lead { font-size: clamp(1.08rem, 2.2vw, 1.32rem); color: var(--tl-soft-ink); max-width: 62ch; margin: clamp(30px, 4vw, 44px) auto 30px; }
.tl-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .tl-w { animation: none; clip-path: none; }
}

/* ---- section heads ---- */
.tl-sec-head { text-align: center; max-width: 40ch; margin: 0 auto clamp(30px, 4vw, 52px); }
.tl-sec-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: .35rem 0 0; font-weight: 800; }
.tl-sec-head p { color: var(--tl-mute); margin: .8rem 0 0; }
.tl-kicker { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; background: var(--tl-panel); color: var(--tl-soft-ink); }

/* ---- how it works ---- */
.tl-how { padding: clamp(54px, 8vw, 96px) 0; }
.tl-how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: how; }
.tl-how-card { position: relative; background: var(--tl-panel); border-radius: var(--tl-radius); padding: 30px 28px; overflow: hidden; }
.tl-how-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--tl-rainbow); }
.tl-how-n { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tl-dark); color: #fff; font-weight: 700; margin-bottom: 16px; }
.tl-how-card h3 { font-size: 1.2rem; margin: 0 0 8px; font-weight: 750; }
.tl-how-card p { margin: 0; color: var(--tl-soft-ink); }

/* ---- full-bleed in-use band ---- */
.tl-band { margin: 0; position: relative; }
.tl-band img { width: 100%; max-height: 560px; object-fit: cover; }
.tl-band figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px clamp(20px, 6vw, 80px) 18px; color: #fff; font-size: .98rem; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }

/* ---- audiences ---- */
.tl-aud { padding: clamp(54px, 8vw, 96px) 0; background: var(--tl-panel-2); }
.tl-aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tl-aud-card { background: #fff; border-radius: var(--tl-radius); padding: 30px 28px; display: flex; flex-direction: column; }
.tl-aud-card h3 { font-size: 1.3rem; margin: 14px 0 16px; font-weight: 760; }
.tl-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.tl-checks li { position: relative; padding-left: 30px; color: var(--tl-soft-ink); font-size: .98rem; }
.tl-checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--tl-rainbow); }
.tl-checks li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 5px; height: 9px; border: 2px solid #fff; border-top: 0; border-left: 0; transform: rotate(40deg); }
.tl-aud-quote { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--tl-line); }
.tl-aud-quote blockquote { margin: 0 0 8px; font-style: italic; color: var(--tl-ink); }
.tl-aud-quote figcaption { font-weight: 650; color: var(--tl-mute); font-size: .9rem; }

/* ---- app ---- */
.tl-app { padding: clamp(54px, 8vw, 100px) 0; }
.tl-app-inner { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.tl-app-copy h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: .3rem 0 1rem; font-weight: 800; }
.tl-app-copy p { color: var(--tl-soft-ink); max-width: 48ch; margin: 0 0 24px; }
.tl-stores { display: flex; gap: 12px; flex-wrap: wrap; }
.tl-store { display: inline-flex; flex-direction: column; justify-content: center; background: var(--tl-dark); color: #fff; text-decoration: none; border-radius: 13px; padding: 11px 22px; line-height: 1.2; transition: transform .15s ease; }
.tl-store:hover { transform: translateY(-1px); }
.tl-store-sm { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.tl-store-lg { font-size: 1.1rem; font-weight: 700; }
.tl-app-media { justify-self: center; }
.tl-app-media img { width: min(290px, 70vw); height: auto; border-radius: 28px; filter: drop-shadow(0 26px 54px rgba(0, 0, 0, .2)); }

/* ---- values ---- */
.tl-values { padding: clamp(54px, 8vw, 96px) 0; background: var(--tl-panel); }
.tl-values-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tl-value { background: #fff; border: 1px solid var(--tl-line); border-radius: var(--tl-radius); padding: 26px 24px; }
.tl-value-dot { display: block; width: 30px; height: 30px; border-radius: 9px; margin-bottom: 14px; background: var(--tl-mute); }
.tl-value h3 { font-size: 1.12rem; margin: 0 0 6px; font-weight: 750; }
.tl-value p { margin: 0; color: var(--tl-mute); font-size: .96rem; }
.tl-value.v-blue .tl-value-dot { background: var(--v-blue); }
.tl-value.v-indigo .tl-value-dot { background: var(--v-indigo); }
.tl-value.v-purple .tl-value-dot { background: var(--v-purple); }
.tl-value.v-coral .tl-value-dot { background: var(--v-coral); }
.tl-value.v-orange .tl-value-dot { background: var(--v-orange); }
.tl-value.v-yellow .tl-value-dot { background: var(--v-yellow); }

/* ---- where to buy ---- */
.tl-buy { padding: clamp(54px, 8vw, 100px) 0; background: var(--tl-dark); color: #fff; }
.tl-buy .tl-sec-head h2 { color: #fff; }
.tl-buy .tl-sec-head p { color: rgba(255, 255, 255, .7); }
.tl-buy .tl-kicker { background: rgba(255, 255, 255, .12); color: #fff; }
.tl-buy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tl-buy-card { display: block; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--tl-radius); padding: 28px 26px; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.tl-buy-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .3); }
.tl-buy-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.tl-buy-card p { margin: 0 0 16px; color: rgba(255, 255, 255, .7); font-size: .95rem; }
.tl-go { font-weight: 650; background: var(--tl-rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- footer ---- */
.tl-footer { background: #0e0e12; color: #cfcfd6; padding: 50px 0 28px; }
.tl-footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.tl-footer-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.2rem; color: #fff; }
.tl-footer-logo sup { font-size: .5em; top: -.7em; }
.tl-footer-brand p { margin: 12px 0 0; font-size: .92rem; }
.tl-mute { color: #8a8a95; }
.tl-footer-links { display: flex; flex-direction: column; gap: 10px; }
.tl-footer-links a { color: #cfcfd6; text-decoration: none; }
.tl-footer-links a:hover { color: #fff; }
.tl-footer-base { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.tl-footer-base p { margin: 0; font-size: .82rem; color: #8a8a95; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .tl-how-grid, .tl-aud-grid, .tl-values-grid, .tl-buy-grid { grid-template-columns: 1fr; }
  .tl-app-inner { grid-template-columns: 1fr; text-align: center; }
  .tl-app-copy p { margin-inline: auto; }
  .tl-stores { justify-content: center; }
  .tl-values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .tl-values-grid { grid-template-columns: 1fr; }
  .tl-nav .tl-btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
