/*
  KLARIS SITE — SHARED STYLES
  Every page links this file. Page files keep only what is unique to them.

  Contents
  1. Base, focus, skip link
  2. Type: serif display headings, eyebrow, gradient accent
  3. Buttons and hover lift
  4. Header (shared <klaris-header>), dropdown, mobile menu, footer
  5. Scroll reveal
  6. App window frame + mock-up kit (mk-*) used by product visuals
  7. Logo train (scrolling logo strip)
  8. Legal / long-form prose
*/

/* ---------- 1. Base ---------- */
:root {
  --paper: #FBFAF8;
  --ink: #0F1B2D;
  --k-teal: #00CFC8;
  --k-blue: #009CDF;
  --k-purple: #5E4DB2;
  --k-amber: #E0942A;
  --k-red: #D9483B;
  --k-green: #1F9D6B;
  --brand-gradient: linear-gradient(90deg, #00CFC8 0%, #009CDF 45%, #5E4DB2 100%);
}
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { font-family: 'Inter', sans-serif; background: var(--paper); color: var(--ink); }
.font-display { font-family: 'Manrope', sans-serif; }

a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--k-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Smooth scrolling (Lenis, set up in site.js) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- 2. Type ---------- */
/* Serif display (Source Serif 4 semibold) for page and section headlines; card titles stay Manrope. */
.display {
  font-family: 'Source Serif 4', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
/* Accent words are marked <em> but stay upright: colour does the work */
.display em, .display .accent-word { font-style: normal; }
.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--k-blue);
}
.eyebrow--light { color: #5EEAD4; }
.lede { font-size: 1.125rem; line-height: 1.7; color: rgba(15,27,45,0.68); }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; font-weight: 600; font-size: 0.875rem;
  padding: 0.65rem 1.25rem; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-lg { font-size: 1rem; padding: 0.95rem 1.75rem; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--k-blue); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--k-blue); color: #fff; }
.btn-outline { border: 1px solid rgba(15,27,45,0.15); color: var(--ink); }
.btn-outline:hover { border-color: var(--k-blue); color: var(--k-blue); }
.btn-link { color: var(--k-blue); font-weight: 500; }
.btn-link:hover { color: var(--ink); }
.btn-link .arrow { transition: transform 0.2s ease; }
.btn-link:hover .arrow { transform: translateX(3px); }

[data-cta] { transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
[data-cta]:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(15,27,45,0.45); }
[data-cta]:active { transform: translateY(0); }

.lift-card { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.lift-card:hover, .lift-card:focus-within { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(15,27,45,0.25); }

/* ---------- 4. Header, dropdown, mobile menu, footer ---------- */
klaris-header { display: block; position: sticky; top: calc(-1 * var(--announce-h, 0px)); z-index: 50; }
/* Announcement bar (above the header; scrolls away, closable) */
.announce { background: var(--ink); color: rgba(251,250,248,0.82); }
.announce-row { display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 2.5rem; padding-top: 0.45rem; padding-bottom: 0.45rem; position: relative; }
.announce-text { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.25rem 0.5rem; font-size: 0.84rem; line-height: 1.4; text-align: center; padding: 0 1.75rem; }
.announce-spark { height: 0.95rem; width: 0.95rem; flex-shrink: 0; }
.announce-link { font-weight: 600; color: #5EEAD4; white-space: nowrap; transition: color 0.15s ease; }
.announce-link:hover { color: #fff; }
.announce-close {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center; height: 1.6rem; width: 1.6rem; border-radius: 999px;
  color: rgba(251,250,248,0.55); border: 1px solid rgba(251,250,248,0.18); transition: color 0.15s ease, border-color 0.15s ease;
}
.announce-close svg { height: 0.75rem; width: 0.75rem; }
.announce-close:hover { color: #fff; border-color: rgba(251,250,248,0.45); }
.site-header {
  background: rgba(251,250,248,0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,27,45,0.1);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.site-header.is-scrolled { background: rgba(251,250,248,0.96); box-shadow: 0 10px 30px -22px rgba(15,27,45,0.35); }
.site-header-row { display: flex; align-items: center; justify-content: space-between; height: 4rem; transition: height 0.25s ease; }
@media (min-width: 1024px) {
  .site-header-row { height: 5rem; }
  .site-header.is-scrolled .site-header-row { height: 4.25rem; }
}
.site-logo { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; }
/* Logo lockup (header + footer). The mark's file has ~6.5% empty space
   on each side, so at 30px the drawn mark is ~26px; the wordmark is sized
   and weighted so its capitals sit at ~60% of that, and nudged so its
   middle meets the mark's visual middle. */
.brand { display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0; }
.brand-mark { height: 30px; width: 30px; }
.brand-word {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 23px; line-height: 1;
  letter-spacing: -0.03em; color: var(--ink); transform: translateY(-1px);
}
.site-logo img { transition: transform 0.3s ease; }
.site-logo:hover img { transform: rotate(-4deg) scale(1.06); }

.nav-link { position: relative; font-size: 0.875rem; font-weight: 500; color: rgba(15,27,45,0.7); transition: color 0.15s ease; }
.nav-link:hover { color: var(--k-blue); }
a.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--k-blue); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
a.nav-link:hover::after { transform: scaleX(1); }

[data-dropdown] { position: relative; }
[data-dropdown-trigger] svg { transition: transform 0.2s ease; }
[data-dropdown].is-open [data-dropdown-trigger] svg { transform: rotate(180deg); }
[data-dropdown-panel] {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 6px);
  width: 15rem; background: #fff; border: 1px solid rgba(15,27,45,0.08); border-radius: 14px;
  box-shadow: 0 24px 48px -20px rgba(15,27,45,0.35); padding: 0.5rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}
[data-dropdown].is-open [data-dropdown-panel] { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
/* Product mega menu: a wide panel under the header, one column per area */
.site-header { position: relative; }
[data-dropdown].mega { position: static; }
[data-dropdown].mega [data-dropdown-panel] {
  top: calc(100% - 6px); left: 50%; width: min(1120px, calc(100vw - 48px));
  padding: 1.6rem 1.6rem 0; border-radius: 18px;
  box-shadow: 0 30px 70px -28px rgba(15,27,45,0.4);
}
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.mega-col { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.mega-head { display: block; min-height: 4.4rem; padding: 0 0.6rem 0.75rem; margin-bottom: 0.35rem; border-bottom: 1px solid rgba(15,27,45,0.07); } /* equal heights keep the columns' items in line */
.mega-head-title { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--k-blue); }
.mega-head-tag { display: block; margin-top: 0.3rem; font-size: 0.78rem; line-height: 1.35; color: rgba(15,27,45,0.5); }
.mega-head:hover .mega-head-tag { color: var(--ink); }
.mega-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.6rem; border-radius: 12px; transition: background-color 0.15s ease; }
.mega-item:hover, .mega-item:focus-visible { background: rgba(0,156,223,0.05); }
.mega-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  height: 2.4rem; width: 2.4rem; border-radius: 10px; background: #fff;
  border: 1px solid rgba(15,27,45,0.1); color: rgba(15,27,45,0.65);
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.mega-icon svg { height: 1.15rem; width: 1.15rem; }
.mega-item:hover .mega-icon { border-color: rgba(0,156,223,0.45); color: var(--k-blue); box-shadow: 0 6px 16px -10px rgba(0,156,223,0.6); }
.mega-item-title { display: block; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.86rem; line-height: 1.3; color: var(--ink); }
.mega-item-desc { display: block; margin-top: 0.15rem; font-size: 0.76rem; line-height: 1.35; color: rgba(15,27,45,0.52); }
.mega-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.1rem -1.6rem 0; padding: 0.95rem 1.6rem;
  border-top: 1px solid rgba(15,27,45,0.07); background: rgba(15,27,45,0.02); border-radius: 0 0 18px 18px;
  font-size: 0.8rem; color: rgba(15,27,45,0.55);
}
.dd-item { display: block; padding: 0.6rem 0.8rem; border-radius: 10px; transition: background-color 0.15s ease; }
.dd-item:hover, .dd-item:focus-visible { background: rgba(15,27,45,0.045); }
.dd-item-title { display: block; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.dd-item-desc { display: block; margin-top: 2px; font-size: 0.76rem; color: rgba(15,27,45,0.5); line-height: 1.3; }

.mobile-group { padding: 0.75rem 0.5rem 0.25rem; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(15,27,45,0.4); }
.mobile-link { padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; border-radius: 0.5rem; }
.mobile-link:hover { background: rgba(15,27,45,0.05); }

.footer-heading { margin-bottom: 1rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(15,27,45,0.4); }
.footer-link { transition: color 0.15s ease; }
.social-link { display: inline-flex; align-items: center; justify-content: center; height: 2.25rem; width: 2.25rem; border-radius: 10px; color: rgba(15,27,45,0.55); border: 1px solid rgba(15,27,45,0.12); transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease; }
.social-link svg { height: 1rem; width: 1rem; }
.social-link:hover { color: #0A66C2; border-color: rgba(10,102,194,0.4); background: rgba(10,102,194,0.06); }
.footer-link:hover { color: var(--k-blue); }

/* ---------- 5. Scroll reveal ---------- */
.reveal { will-change: transform, opacity; }

/* ---------- 6. App window + mock-up kit ---------- */
.app-window {
  border-radius: 1.5rem; border: 1px solid rgba(15,27,45,0.1); background: #fff; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(15,27,45,0.4);
}
.app-window-bar {
  height: 2.75rem; display: flex; align-items: center; gap: 1rem; padding: 0 1.25rem;
  border-bottom: 1px solid rgba(15,27,45,0.1); background: rgba(15,27,45,0.02);
}
.app-window-dots { display: flex; gap: 0.375rem; }
.app-window-dots span { height: 0.625rem; width: 0.625rem; border-radius: 999px; background: rgba(15,27,45,0.15); }
.app-window-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(15,27,45,0.4); }

/* Parts that animate in start hidden, but only when they will be animated */
.motion-ok [data-play-in-view] [data-mk] { opacity: 0; }

.mk-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.mk-sub { font-size: 0.78rem; color: rgba(15,27,45,0.5); }
.mk-label { font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(15,27,45,0.4); }
.mk-card { border: 1px solid rgba(15,27,45,0.1); border-radius: 0.875rem; background: #fff; padding: 0.85rem 1rem; }
.mk-card--soft { background: rgba(15,27,45,0.025); }
.mk-card--hl { border-color: rgba(0,156,223,0.35); background: rgba(0,156,223,0.05); }
.mk-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.6rem 0; border-top: 1px solid rgba(15,27,45,0.07); }
.mk-row:first-child { border-top: 0; }
.mk-name { font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.mk-meta { font-size: 0.74rem; color: rgba(15,27,45,0.5); }
.mk-strong { font-size: 0.84rem; font-weight: 700; color: var(--ink); }

.mk-tag { display: inline-flex; align-items: center; gap: 0.3rem; flex-shrink: 0; font-size: 0.68rem; font-weight: 600; border-radius: 999px; padding: 0.22rem 0.6rem; white-space: nowrap; }
.mk-tag--amber { color: #9a5f16; background: rgba(224,148,42,0.13); }
.mk-tag--blue { color: #007DB8; background: rgba(0,156,223,0.1); }
.mk-tag--teal { color: #0a7a74; background: rgba(0,207,200,0.13); }
.mk-tag--red { color: #B23A2F; background: rgba(217,72,59,0.1); }
.mk-tag--green { color: #177A53; background: rgba(31,157,107,0.12); }
.mk-tag--grey { color: rgba(15,27,45,0.55); background: rgba(15,27,45,0.06); }

.mk-bar { height: 0.4rem; border-radius: 999px; background: rgba(15,27,45,0.07); overflow: hidden; }
.mk-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--brand-gradient); }
.mk-bar--amber > span { background: var(--k-amber); }

.mk-check { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; height: 1.25rem; width: 1.25rem; border-radius: 999px; }
.mk-check--done { background: rgba(31,157,107,0.14); color: var(--k-green); }
.mk-check--todo { border: 1.5px solid rgba(15,27,45,0.2); }
.mk-check--alert { background: rgba(217,72,59,0.12); color: var(--k-red); }
.mk-check--live { background: rgba(0,156,223,0.12); color: var(--k-blue); }

.mk-source { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.66rem; font-weight: 600; color: rgba(15,27,45,0.5); background: rgba(15,27,45,0.05); border-radius: 6px; padding: 0.15rem 0.45rem; white-space: nowrap; }
.mk-agent { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(15,27,45,0.5); }
.mk-agent img { height: 0.85rem; width: 0.85rem; }
.mk-arrow { color: rgba(15,27,45,0.3); }

.mk-kpi { border: 1px solid rgba(15,27,45,0.1); border-radius: 0.75rem; padding: 0.7rem 0.85rem; background: rgba(15,27,45,0.02); }
.mk-kpi-value { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--ink); line-height: 1.1; }
.mk-up { color: var(--k-green); font-size: 0.7rem; font-weight: 600; }
.mk-down { color: var(--k-red); font-size: 0.7rem; font-weight: 600; }

/* Little vertical bar chart: .mk-chart > span[style="height:NN%"] */
.mk-chart { display: flex; align-items: flex-end; gap: 0.45rem; height: 5.5rem; }
.mk-chart > span { flex: 1; border-radius: 4px 4px 0 0; background: rgba(0,156,223,0.25); }
.mk-chart > span.is-hl { background: var(--brand-gradient); }

/* Vertical step list with a connecting line (hero + product visuals) */
.mk-steps { position: relative; display: flex; flex-direction: column; gap: 0.9rem; list-style: none; margin: 0; padding: 0; }
.mk-steps::before { content: ""; position: absolute; left: 0.6rem; top: 0.6rem; bottom: 0.6rem; width: 1.5px; background: rgba(15,27,45,0.1); }
.mk-steps > li { position: relative; display: flex; align-items: flex-start; gap: 0.8rem; }
.mk-steps .mk-check { position: relative; z-index: 1; margin-top: 0.05rem; background-color: #fff; }
.mk-steps .mk-check--done { background-color: #E6F4EE; }
.mk-steps .mk-check--live { background-color: #E0F2FA; }

/* "How it runs" flow, as on the agents' Spotlight pages:
   .mk-flow > .mk-flow-step (.mk-flow-label, .mk-icon|.mk-logo, .mk-flow-title, .mk-flow-sub).
   Steps sit in a row with arrows between; two per row on narrow screens. */
.mk-flow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.7rem; }
.mk-flow-step { position: relative; border: 1px solid rgba(15,27,45,0.1); border-radius: 0.7rem; background: #fff; padding: 0.55rem 0.55rem 0.6rem; min-width: 0; }
.mk-flow-step + .mk-flow-step::before {
  content: ""; position: absolute; left: -0.62rem; top: 50%; width: 0.5rem; height: 0.5rem; transform: translateY(-50%) rotate(45deg);
  border-top: 1.5px solid var(--k-blue); border-right: 1.5px solid var(--k-blue);
}
.mk-flow-label { font-size: 0.56rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(15,27,45,0.42); }
.mk-flow-title { margin-top: 0.4rem; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.74rem; line-height: 1.25; color: var(--ink); }
.mk-flow-sub { margin-top: 0.15rem; font-size: 0.64rem; line-height: 1.3; color: rgba(15,27,45,0.5); }
@media (max-width: 479px) {
  .mk-flow { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .mk-flow-step + .mk-flow-step::before { display: none; }
}
.mk-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; height: 1.5rem; width: 1.5rem; border-radius: 0.4rem; background: rgba(0,156,223,0.09); color: var(--k-blue); }
.mk-icon svg { height: 0.85rem; width: 0.85rem; }
.mk-logo { display: inline-flex; flex-shrink: 0; height: 1.5rem; width: 1.5rem; border-radius: 0.4rem; overflow: hidden; border: 1px solid rgba(15,27,45,0.08); background: #fff; }
.mk-logo img { height: 100%; width: 100%; object-fit: cover; }
.mk-logo--pad img { object-fit: contain; padding: 3px; }

/* Stacked bar: .mk-stack > span[style="flex:N;background:..."] + .mk-legend */
.mk-stack { display: flex; gap: 2px; height: 0.6rem; border-radius: 999px; overflow: hidden; }
.mk-stack > span { display: block; }
.mk-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; font-size: 0.68rem; color: rgba(15,27,45,0.55); }
.mk-legend i { display: inline-block; height: 0.5rem; width: 0.5rem; border-radius: 999px; margin-right: 0.3rem; vertical-align: 0.05rem; }

/* Pulsing "live" dot */
.mk-live { position: relative; height: 0.5rem; width: 0.5rem; border-radius: 999px; background: var(--k-teal); }
.motion-ok .mk-live::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--k-teal); opacity: 0; animation: mkPulse 1.8s ease-out infinite; }
@keyframes mkPulse { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- 6b. Timeline ----------
   <div class="timeline" data-timeline>
     <div class="timeline-line"><span data-timeline-fill></span></div>
     <ol class="timeline-items">
       <li class="timeline-item" data-timeline-item>
         <p class="timeline-time">2:10 AM</p><span class="timeline-dot"></span>
         <div class="timeline-card">…</div>
   The line fills as you scroll and each dot lights up when reached
   (site.js). Phones: time sits above the card; wider: time on the left. */
.timeline { position: relative; --tl-x: 0.75rem; }
.timeline-line { position: absolute; top: 0.75rem; bottom: 0.75rem; left: calc(var(--tl-x) - 1px); width: 2px; border-radius: 2px; background: rgba(15,27,45,0.1); overflow: hidden; }
.timeline-line > span { display: block; height: 100%; width: 100%; transform-origin: top; background: linear-gradient(180deg, #00CFC8, #009CDF 50%, #5E4DB2); }
.timeline-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2rem; }
.timeline-item { display: grid; grid-template-columns: 1.5rem 1fr; column-gap: 1rem; align-items: start; }
.timeline-time { grid-column: 2; margin-bottom: 0.5rem; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--k-blue); white-space: nowrap; }
.timeline-dot {
  grid-column: 1; grid-row: 1 / span 2; justify-self: center; margin-top: 0.15rem;
  position: relative; z-index: 1; height: 0.9rem; width: 0.9rem; border-radius: 999px;
  background: var(--paper); border: 2px solid rgba(15,27,45,0.18);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.timeline-item.is-reached .timeline-dot { background: var(--k-blue); border-color: var(--k-blue); box-shadow: 0 0 0 5px rgba(0,156,223,0.15); }
.timeline-card { grid-column: 2; border: 1px solid rgba(15,27,45,0.1); border-radius: 1rem; background: #fff; padding: 1.1rem 1.25rem; box-shadow: 0 16px 36px -26px rgba(15,27,45,0.35); }
.timeline-card--dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (min-width: 768px) {
  .timeline { --tl-x: 9rem; }
  .timeline-item { grid-template-columns: 7rem 2rem 1fr; }
  .timeline-time { grid-column: 1; grid-row: 1; margin: 0; padding-top: 1.05rem; text-align: right; }
  .timeline-dot { grid-column: 2; grid-row: 1; margin-top: 1.15rem; }
  .timeline-card { grid-column: 3; grid-row: 1; }
}

/* ---------- 6c. Hero cursor effect (assets/site/hero-fx.js) ---------- */
.hero-fx { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hero-fx canvas { position: absolute; inset: 0; }
/* A logo tile, hidden until the cursor nears (--near goes 0 -> 1) */
.fx-node { --near: 0; position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.fx-tile {
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  height: 38px; width: 38px; border-radius: 10px; background: #fff;
  border: 1px solid rgba(15,27,45,0.08); box-shadow: 0 8px 20px -14px rgba(15,27,45,0.35);
  /* Hidden until the cursor nears; in colour as soon as it shows */
  opacity: var(--near);
  filter: grayscale(clamp(0, 1 - var(--near) * 2, 1));
}
.fx-tile img { display: block; height: 100%; width: 100%; object-fit: contain; padding: 8px; }
.fx-node--fill .fx-tile img { object-fit: cover; padding: 0; }
.fx-node.is-near .fx-tile { border-color: rgba(0,156,223,0.45); box-shadow: 0 10px 26px -12px rgba(0,156,223,0.6); }
.fx-name {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 10.5px; color: var(--ink); white-space: nowrap;
  background: rgba(255,255,255,0.85); border-radius: 999px; padding: 0.1rem 0.45rem;
  opacity: 0; transform: translateY(-3px); transition: opacity 0.2s ease, transform 0.2s ease;
}
.fx-node.is-near .fx-name { opacity: 1; transform: none; }
.fx-glow {
  position: absolute; left: 0; top: 0; height: 560px; width: 560px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(0,207,200,0.2) 0%, rgba(94,77,178,0.1) 42%, transparent 70%);
  transition: opacity 0.5s ease; will-change: transform;
}
[data-fx-tilt] { will-change: transform; transform-style: preserve-3d; }

/* ---------- 7. Logo train ---------- */
.logo-train {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.logo-train-track { display: flex; align-items: center; gap: 1rem; width: max-content; animation: logoTrain 46s linear infinite; will-change: transform; }
.logo-train:hover .logo-train-track, .logo-train:focus-within .logo-train-track { animation-play-state: paused; }
@keyframes logoTrain { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  flex-shrink: 0; height: 3.25rem; padding: 0 1.35rem; border-radius: 14px;
  background: #fff; border: 1px solid rgba(15,27,45,0.08); box-shadow: 0 8px 20px -14px rgba(15,27,45,0.28);
}
.logo-chip img { height: 1.4rem; width: auto; display: block; transition: transform 0.25s ease; }
.logo-chip span { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 0.92rem; color: rgba(15,27,45,0.48); white-space: nowrap; transition: color 0.25s ease; }
.logo-chip:hover img { transform: scale(1.06); }
.logo-chip:hover span { color: rgba(15,27,45,0.85); }

/* ---------- 8. Legal / long-form prose (privacy, terms) ---------- */
.legal h2 { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; margin-top: 2.5rem; }
.legal p, .legal li { color: rgba(15,27,45,0.72); line-height: 1.7; }
.legal p { margin-top: 0.9rem; }
.legal ul { margin-top: 0.9rem; padding-left: 1.25rem; list-style: disc; }
.legal li { margin-top: 0.4rem; }
.legal a { color: var(--k-blue); font-weight: 600; }
.legal a:hover { color: var(--ink); }

/* ---------- Reduced motion: everything above lands in its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-cta]:hover, .lift-card:hover, .lift-card:focus-within, .site-logo:hover img, .btn-link:hover .arrow { transform: none; }
  [data-dropdown-panel], [data-dropdown-trigger] svg, a.nav-link::after, .site-header, .site-header-row { transition: none; }
  .logo-train-track { animation: none; flex-wrap: wrap; width: auto; }
  .logo-train-track > .logo-chip:nth-child(n+23) { display: none; }
}
