/* ============================================================
   FONTS
   ============================================================ */
@font-face {
  font-family: 'Feature Display';
  src: url('assets/FeatureDisplay-Regular-Trial.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Feature Display';
  src: url('assets/FeatureDisplay-Medium-Trial.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   ROOT
   ============================================================ */
:root {
  /* surfaces — Linear's near-black canvas (not pure black) */
  --bg:        #08090a;
  --bg-elev:   #0f1011;
  --surface:   #141516;

  /* text */
  --ink:       #f7f8f8;   /* primary   */
  --ink-2:     #d0d6e0;   /* secondary */
  --ink-3:     #8a8f98;   /* tertiary / muted */
  --ink-4:     #62666d;   /* faint     */

  /* hairlines (white-alpha, like Linear) */
  --border:    rgba(255,255,255,.08);
  --border-2:  rgba(255,255,255,.12);
  --border-3:  rgba(255,255,255,.16);

  --accent-dot:#3fb950;   /* status green */

  --font: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 1200px;

  /* deep elevation shadow for the product shot */
  --shadow-hero:
    0 2px 4px rgba(0,0,0,.25),
    0 12px 32px rgba(0,0,0,.45),
    0 48px 120px rgba(0,0,0,.65);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga" 1, "calt" 1;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: rgba(247,248,248,.92); color: var(--bg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn:active { transform: translateY(.5px); }

/* light/white filled — Linear's primary on dark */
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  padding: 9px 16px;
  border-radius: 99999px;
}
.btn-primary:hover { background: #e6e8ea; }

/* translucent ghost — Linear's secondary on dark */
.btn-ghost {
  background: rgba(255,255,255,.05);
  color: var(--ink);
  border-color: var(--border-2);
  padding: 9px 16px;
}
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: var(--border-3); }

.btn-lg { font-size: 15px; padding: 12px 22px; border-radius: 12px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled {
  background: rgba(8,9,10,.72);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);          /* wordmark uses currentColor → auto-themes light */
  flex-shrink: 0;
}
.nav-logo svg { height: 23px; width: auto; }

.nav-right { display: flex; align-items: center; gap: 4px; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-right: 6px; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
  padding: 0 12px;
  border-radius: 12px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.04); }

.nav-divider {
  width: 1px; height: 22px;
  background: rgba(255,255,255,.08);
  margin: 0 10px;
  flex-shrink: 0;
}

.nav-demo {
  display: inline-flex;
  align-items: center;
  height: 32px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
  padding: 0 12px;
  border-radius: 12px;
  transition: color .15s ease, background .15s ease;
}
.nav-demo:hover { color: var(--ink); background: rgba(255,255,255,.05); }

.nav-login {
  display: inline-flex;
  align-items: center;
  height: 32px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-2);
  padding: 0 12px;
  border-radius: 12px;
  transition: color .15s ease, background .15s ease;
}
.nav-login:hover { color: var(--ink); background: rgba(255,255,255,.05); }

.nav-cta {
  margin-left: 6px;
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
}

/* hamburger — hidden on desktop, shown ≤860px */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 6px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.nav-toggle svg { display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 0;
  overflow: hidden;             /* clips the right-bleeding product shot + trail */
  background:var(--bg);
}

/* faint pixel-grid cursor trail — fills the hero, sits above the bg, below content */
.hero-trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;         /* never blocks clicks/hovers */
  display: block;
}
/* lift hero content above the trail layer */
.hero-inner,
.hero-visual {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-trail { display: none; }
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 24px 0;
  margin-bottom: 40px;
  text-align: center;
}

.section-title,
.cl-section-title,
.cl-entry-title {
  max-width: 90%;
  font-family: 'Feature Display', Georgia, sans-serif;
  font-size: 40px;
  font-weight: 400;
  background: #ffffff;
  background-clip: text;
}

/* announcement banner pill — centered above the title */
.hero-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-2);
  font-size: 13px;
  max-width: 100%;
  transition: background .15s ease, border-color .15s ease;
  animation: rise .7s cubic-bezier(.22,1,.36,1) both;
}
.hero-banner:hover { background: rgba(255,255,255,.07); border-color: var(--border-3); }
.hero-banner-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}
.hero-banner-text  { color: var(--ink-2); }
.hero-banner-arrow { flex-shrink: 0; color: var(--ink-3); transition: transform .15s ease; }
.hero-banner:hover .hero-banner-arrow { transform: translateX(2px); }

.hero-title {
  max-width: 90%;
  margin: 0 auto;
  font-family: 'Feature Display', Georgia, sans-serif;
  font-size: 56px;
  font-weight: 400;
  background: #ffffff;
  background-clip: text;
}

.hero-sub {
  max-width: 520px;
  margin: 24px auto 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-3);
}

/* ---- product visual: left-aligned, bleeds off the right edge ---- */
.hero-visual {
  position: relative;
  padding-left: max(24px, calc(50% - var(--max-w) / 2 + 24px));
  padding-right: max(24px, calc(50% - var(--max-w) / 2 + 24px));
  animation: rise .9s cubic-bezier(.22,1,.36,1) .16s both;
}

.hero-frame {
  position: relative;
  width: 100%;
  border-bottom: none;
  background: #070707;
  overflow: hidden;
}
/* top rim-light so the upper edge catches light and reads as elevated */
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.hero-frame img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-2);
  display: block;
  border-radius: 12px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}

/* ============================================================
   CHANGELOG
   ============================================================ */
.cl-section {
  position: relative;
  background: var(--bg);
  padding: 80px 0 120px;
}

.cl-section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.cl-timeline {
  position: relative;
  margin-top: 40px;
}

/* the horizontal connector line the dots sit on (aligned to dot centre) */
.cl-line {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-2);
}

.cl-items {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.cl-item { position: relative; }

/* dot indicator (mirrors Linear's changelog indicator) — a 32px box whose
   page-bg masks the connector line; the visible dot is drawn as ::before.
   Also the hover/focus trigger for the preview. */
.cl-dot {
  box-sizing: border-box;
  height: 32px;
  width: 32px;
  margin: 0 0 48px;
  padding: 0;
  border: 0;
  position: relative;
  z-index: 1;
  display: block;
  background: var(--bg);
  transform: translate(-12px);
  cursor: pointer;
  outline-color: #0000;
}
/* the visible dot */
.cl-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #34373d;
  box-shadow: 0 0 0 1px var(--border-2);
  transform: translate(-50%, -50%);
  transition: background .18s ease, box-shadow .18s ease;
}
.cl-dot:hover::before,
.cl-dot:focus-visible::before { background: var(--ink); }

/* most-recent dot — emphasized */
.cl-item.is-active .cl-dot::before {
  background: #f7f8f8;
  box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 0 14px 2px rgba(255,255,255,.22);
}

/* "Hover me" hint speech-bubble — shown ~3s after the timeline enters view */
.cl-hint {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 4px);
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 6;
}
/* downward tail pointing at the dot */
.cl-hint::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}
.cl-hint.is-visible {
  opacity: 1;
  animation: clHintBob 2s ease-in-out infinite;
}
@keyframes clHintBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-4px); }
}

/* hover image preview, floats above the dot */
.cl-preview {
  position: absolute;
  left: 0;
  bottom: calc(100% + 14px);
  width: 300px;
  max-width: 42vw;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-hero);
  opacity: 0;
  transform: translateY(8px) scale(.98);
  transform-origin: left bottom;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 5;
}
.cl-item:last-child .cl-preview { left: auto; right: 0; transform-origin: right bottom; }
.cl-dot:hover .cl-preview,
.cl-dot:focus-visible .cl-preview { opacity: 1; transform: translateY(0) scale(1); }
.cl-preview img { width: 100%; height: auto; display: block; }

.cl-item-body { margin-top: 0; }

/* version tag (left) + title row */
.cl-item-head {
  display: flex;
  align-items: top;
  gap: 8px;
}
.cl-item-version {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-3);
}

.cl-item-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.cl-item-desc {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cl-item-date {
  display: block;
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-4);
}

.cl-viewall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  font-size: 15px;
  color: var(--ink-3);
  transition: color .15s ease;
}
.cl-viewall span { transition: transform .15s ease; }
.cl-viewall:hover { color: var(--ink); }
.cl-viewall:hover span { transform: translateX(3px); }

/* ============================================================
   PLATFORM
   ============================================================ */
.platform {
  background: var(--bg);
  padding: 120px 0 120px;
  text-align: center;            /* centered layout */
}
.platform-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.platform .section-title { margin-left: auto; margin-right: auto; }

.section-sub {
  margin-top: 12px;
  max-width: 560px;
  font-size: 15px;
  color: var(--ink-3);
}
.platform .section-sub { margin-top: 18px; margin-left: auto; margin-right: auto; }

.platform-grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;     /* pack the columns together, centered */
  gap: 0;
}
/* figure stays centered (its own flex); title + desc left-aligned.
   border-left draws the divider between columns. */
.platform-item {
  text-align: left;
  padding: 0 60px;
  border-left: 1px solid var(--border);
}
.platform-item:first-child { border-left: none; }

/* illustration: reveal-on-scroll + gentle continuous float */
.platform-fig {
  height: 220px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1);
}
.platform.is-visible .platform-fig { opacity: 1; transform: translateY(0); }
.platform-item:nth-child(2) .platform-fig { transition-delay: .1s; }
.platform-item:nth-child(3) .platform-fig { transition-delay: .2s; }

/* motion lives inside each SVG now; this just holds the figure box */
.platform-fig img { width: auto; max-width: 100%; max-height: 220px; }

/* Rive embeds (fig1–3): invert + grayscale dark-modes each scene so its light
   background blends into the page (#08090a). */
.platform-fig iframe {
  width: 300px;
  height: 300px;
  border: 0;
  display: block;
  filter: invert(1) grayscale(1);
}
/* clip the iframe to a centered square — trims the sides, zooms it in */
.platform-fig:has(iframe) { width: 220px; margin-inline: auto; overflow: hidden; }

/* title + desc share the figure's centered 220px column so they line up under it */
.platform-item .cl-item-title,
.platform-item .cl-item-desc { max-width: 220px; margin-inline: auto; }
.platform-item .cl-item-desc { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .platform-fig { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 860px) {
  .platform { padding: 90px 0 100px; }
  .platform-grid { grid-template-columns: 1fr; gap: 48px; margin-top: 56px; }
  .platform-item { padding: 0; border-left: none; }   /* no dividers when stacked */
  .platform-fig { height: auto; margin-bottom: 20px; }
  .platform-fig:has(iframe) { height: 220px; }   /* keep the embed square on mobile */
}

/* ============================================================
   FEATURE
   ============================================================ */
.feature {
  position: relative;
  height: 100dvh;
  overflow: hidden;             /* crop the tall image at the viewport edge */
  background: var(--bg);
  padding: 120px 0 120px;
}
/* fade the cropped image into the page as it leaves the viewport */
.feature::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 240px;
  background: linear-gradient(to top, var(--bg) 6%, transparent);
  pointer-events: none;
  z-index: 2;
}
.feature-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.feature-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 56px;
}
.feature-title { max-width: 560px; }
.feature-sub {
  max-width: 380px;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* showcased image (portrait), centered in a bordered card */
.feature-frame {
  max-width: 720px;
  margin: 64px auto 0;
  border: 1px solid var(--border-2);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow-hero);
}
.feature-frame.is-wide { max-width: 1040px; }   /* landscape showcase image */
.feature-frame img { width: 100%; height: auto; display: block; }

@media (max-width: 860px) {
  /* hug content; the frame crops the image itself so the cropped + bottom-fade
     look is kept on mobile WITHOUT the dead space a fixed 100dvh section caused */
  .feature { height: auto; padding: 90px 0 0; }
  .feature-head { flex-direction: column; gap: 16px; }
  .feature-sub { max-width: 520px; font-size: 16px; }
  .feature-frame,
  .feature-frame.is-wide {
    max-width: none;
    height: 62dvh;
    margin-top: 40px;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
  }
  .feature-frame img { height: 100%; object-fit: cover; object-position: top center; }
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  min-height: 70dvh;            /* cta + footer fill the viewport */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 80px 24px;
  text-align: center;
}
.cta-inner { max-width: 820px; margin: 0 auto; }
.cta-heading {
  font-family: 'Feature Display', Georgia, sans-serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
}
.cta-muted { color: var(--ink-3); }

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}
/* match the page's pill buttons (nav uses the same primary pill) */
.cta-actions .btn { padding: 10px 20px; border-radius: 99999px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0 40px;       /* gutter lives on the inner box, like .nav-inner */
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));   /* logo + 4 link columns */
  gap: 32px;
  align-items: start;
}
.footer-logo { display: inline-flex; align-items: center; color: var(--ink); }
.footer-logo svg { height: 24px; width: auto; }

.footer-col { display: flex; flex-direction: column; }
.footer-col-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-col a {
  font-size: 13px;
  color: var(--ink-3);
  padding: 6px 0;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
  .footer-logo { grid-column: 1 / -1; margin-bottom: 8px; }
  .footer-col a { padding: 10px 0; display: inline-block; }   /* ~37px tap target */
}
@media (max-width: 640px) {
  .cta { padding: 96px 24px 104px; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  /* mobile nav → hamburger dropdown */
  .nav-toggle { display: inline-flex; }
  .nav-demo, .nav-divider { display: none; }
  .nav.is-open {
    background: rgba(8,9,10,.97);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
  }
  .nav-right {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: rgba(8,9,10,.97);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0,0,0,.5);
  }
  .nav.is-open .nav-right { display: flex; }
  .nav-links { display: flex; flex-direction: column; gap: 0; margin: 0; }
  .nav-links a { height: 46px; justify-content: center; padding: 0 10px; font-size: 15px; color: var(--ink-2); border-radius: 10px; }
  .nav-login { height: 46px; justify-content: center; padding: 0 10px; font-size: 15px; color: var(--ink-2); border-radius: 10px; }
  .nav-cta { height: 46px; margin: 8px 0 0; justify-content: center; font-size: 15px; }

  /* tighten oversized display type */
  .hero-title { font-size: 44px; }
  .section-title, .cl-section-title, .cl-entry-title { font-size: 34px; }
  .cta-heading { font-size: 34px; }

  /* timeline → two columns; the single-row connector no longer applies */
  .cl-items { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .cl-line { display: none; }
  .cl-dot { margin-bottom: 18px; transform: none; }
  .cl-preview { max-width: 70vw; }
  .cl-section { padding: 100px 0 110px; }
}

@media (max-width: 640px) {
  .nav-inner { height: 58px; padding: 0 16px; }
  .nav-logo svg { height: 21px; }

  .hero-inner { padding-top: 96px; }     /* clears the fixed nav */
  .hero-title { font-size: 32px; }
  .hero-banner { font-size: 12px; }
  .hero-sub { font-size: 14px; }

  .section-title, .cl-section-title, .cl-entry-title { font-size: 28px; }
  .cta-heading { font-size: 28px; }
  .cta-actions { flex-wrap: wrap; }      /* buttons stack if cramped */

  .feature-frame { margin-top: 28px; }

  .cl-items { grid-template-columns: 1fr; gap: 36px; }
  .cl-item:last-child .cl-preview { left: 0; right: auto; transform-origin: left bottom; }
}

/* touch devices have no hover: show each change's screenshot inline and drop the
   hover-only popover + the "Hover me" hint (which can't be performed on touch) */
@media (hover: none) and (max-width: 860px) {
  .cl-dot {
    width: 100%;
    height: auto;
    margin: 0 0 14px;
    padding: 0;
    transform: none;
    background: none;
  }
  .cl-dot::before { display: none; }
  .cl-preview {
    position: static;
    left: auto;
    right: auto;
    opacity: 1;
    transform: none;
    width: 100%;
    max-width: none;
    margin: 0;
    box-shadow: none;
    pointer-events: auto;
  }
  .cl-hint { display: none; }
}

/* ============================================================
   CONTENT-PAGE LOGOS (changelog / legal use an <img> wordmark)
   ============================================================ */
.nav-logo img { height: 23px; width: auto; }
.footer-logo img { height: 24px; width: auto; }

/* ============================================================
   CHANGELOG PAGE  (/changelog)
   ============================================================ */
.cl-page { padding: 124px 24px 110px; }

/* centered intro */
.cl-hero { max-width: 640px; margin: 0 auto 16px; text-align: center; }
.cl-title {
  font-family: 'Feature Display', Georgia, sans-serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
}
.cl-subtitle { font-size: 15px; color: var(--ink-3); line-height: 1.6; }

/* ---- timeline ---- */
.cl-feed { position: relative; }

/* a row = one release. Far-left sticky date rail + centered content column. */
.cl-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 640px) minmax(0, 1fr);
}

/* left rail: continuous connector line + sticky date marker */
.cl-rail { grid-column: 1; position: relative; }
.cl-rail::before {                       /* the vertical timeline line */
  content: "";
  position: absolute;
  left: 48px; top: 0; bottom: 0;
  width: 1px; background: var(--border);
}
.cl-feed .cl-row:first-child .cl-rail::before {     /* emerge at the first dot (~9.5px center) */
  background: linear-gradient(to bottom, transparent, var(--border) 10px);
}
.cl-feed .cl-row:last-child .cl-rail::before {       /* fade out at the end */
  background: linear-gradient(to bottom, var(--border), var(--border) calc(100% - 44px), transparent);
}

.cl-rail-inner {
  position: sticky; top: 100px;
  display: flex; gap: 14px;
  padding: 0 16px 0 44px;                /* dot lands on the 48px line */
}
.cl-rail-inner::before {                  /* the dot */
  content: "";
  flex: 0 0 auto;
  width: 9px; height: 9px; margin-top: 5px;
  border-radius: 50%;
  background: var(--ink);                 /* white dot */
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}
.cl-soon .cl-rail-inner::before {         /* hollow ring = not shipped yet */
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ink-4);
}
.cl-rail-text { display: flex; flex-direction: column; gap: 3px; }
.cl-date { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.cl-version { font-size: 12px; color: var(--ink-4); }
.cl-rail-label { font-size: 14px; color: var(--ink-3); white-space: nowrap; }

/* main content column */
.cl-main { grid-column: 2; min-width: 0; padding-bottom: 92px; }
.cl-feed .cl-row:last-child .cl-main { padding-bottom: 24px; }

.cl-entry-title {                          /* base look = .section-title group */
  max-width: 100%;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 22px;
}
.cl-main .cl-entry-title:not(:first-of-type) { margin-top: 64px; }  /* gap between features in a release */

.cl-image-card {
  border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; background: var(--surface);
}
.cl-image-card img { width: 100%; height: auto; display: block; }

.cl-entry-body { font-size: 16px; color: var(--ink-2); line-height: 1.75; margin-top: 22px; }

/* coming-soon card (top of the timeline) */
.cl-coming-title {
  font-size: 15px; font-weight: 400;
  color: var(--ink-4); margin-bottom: 16px;
}
.cl-coming-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.cl-coming-list li { font-size: 16px; color: var(--ink-2); padding-left: 18px; position: relative; }
.cl-coming-list li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--border-3);
}
.cl-request-sub { font-size: 13px; color: var(--ink-4); line-height: 1.55; margin-bottom: 14px; }
.cl-request-btn {
  display: inline-flex; align-items: center;
  min-height: 40px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  background: rgba(255,255,255,.05); border: 1px solid var(--border-2);
  border-radius: 999px; padding: 9px 16px;
  transition: background .15s ease, border-color .15s ease;
}
.cl-request-btn:hover { background: rgba(255,255,255,.09); border-color: var(--border-3); }

/* ============================================================
   LEGAL PAGES  (/tos, /privacy)
   ============================================================ */
.legal-page { padding: 124px 24px 96px; }
.legal-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}
.legal-sidebar { position: sticky; top: 100px; }
.legal-toc-label {
  font-size: 11px; font-weight: 400; letter-spacing: .08em;
  color: var(--ink-4); margin-bottom: 14px;
}
.legal-toc { display: flex; flex-direction: column; gap: 7px; }
.legal-toc a { font-size: 13px; color: var(--ink-3); line-height: 1.5; transition: color .15s ease; }
.legal-toc a:hover { color: var(--ink); }

.legal-header { margin-bottom: 44px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.legal-title {
  font-family: 'Feature Display', Georgia, sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400; color: var(--ink); margin-bottom: 12px; line-height: 1.1;
}
.legal-updated { font-size: 13px; color: var(--ink-4); margin-bottom: 18px; }
.legal-intro { font-size: 15px; color: var(--ink-2); line-height: 1.75; max-width: 640px; }
.legal-intro + .legal-intro { margin-top: 12px; }

.legal-section { padding: 32px 0; border-top: 1px solid var(--border); }
.legal-section h2 {
  font-size: 18px; font-weight: 600; color: var(--ink);
  letter-spacing: -.01em; line-height: 1.3; margin-bottom: 16px;
}
.legal-section h3 { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-top: 20px; margin-bottom: 8px; }
.legal-section p { font-size: 14px; color: var(--ink-3); line-height: 1.75; margin-bottom: 12px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul, .legal-section ol {
  padding-left: 20px; margin-bottom: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.legal-section li { font-size: 14px; color: var(--ink-3); line-height: 1.7; }
.legal-section li::marker { color: var(--ink-4); }
.legal-section strong { color: var(--ink-2); font-weight: 600; }
.legal-section address {
  font-style: normal; font-size: 14px; color: var(--ink-3); line-height: 1.8;
  margin: 12px 0; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.legal-section a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; transition: color .15s ease; }
.legal-section a:hover { color: var(--ink-2); }

/* ============================================================
   PRICING PAGE  (/pricing)
   ============================================================ */
.pricing-page { padding: 150px 24px 120px; position: relative; }
/* lift content above the .hero-trail canvas (z-index:0) */
.pricing-hero, .plan-card, .pricing-note { position: relative; z-index: 1; }

.pricing-hero { max-width: 800px; margin: 0 auto 52px; text-align: center; }
.pricing-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 24px; padding: 5px 13px 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border-2);
  font-size: 12px; color: var(--ink-2);
}
.pricing-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-dot);
  box-shadow: 0 0 0 3px rgba(63,185,80,.14);
}
.pricing-heading { max-width: 620px; margin: 0 auto; color: var(--ink); }
.pricing-sub {
  max-width: 540px; margin: 22px auto 0;
  font-size: 16px; color: var(--ink-3); line-height: 1.6;
}

/* single plan card */
.plan-card {
  position: relative;
  max-width: 520px; margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  padding: 34px 34px 38px;
  box-shadow: 0 2px 4px rgba(0,0,0,.25), 0 24px 64px rgba(0,0,0,.45);
}
.plan-card::before {                 /* faint top highlight */
  content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.20), transparent);
}

.plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.plan-name {
  font-family: 'Feature Display', Georgia, sans-serif;
  font-size: 26px; font-weight: 400; color: var(--ink);
}
.plan-badge {
  flex-shrink: 0;
  font-size: 11px; font-weight: 400;
  color: var(--ink-2);
  background: rgba(255,255,255,.06); border: 1px solid var(--border-2);
  border-radius: 999px; padding: 5px 10px;
}

.plan-price { display: flex; align-items: baseline; gap: 7px; margin-top: 20px; }
.plan-price-amount {
  font-family: 'Feature Display', Georgia, sans-serif;
  font-size: 54px; font-weight: 400; color: var(--ink); line-height: 1;
}
.plan-price-period { font-size: 15px; color: var(--ink-3); }
.plan-billing { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

.plan-divider { border: 0; border-top: 1px solid var(--border); margin: 26px 0; }

.plan-desc { font-size: 15px; color: var(--ink-2); line-height: 1.65; margin-bottom: 24px; }
.plan-cta { width: 100%; padding: 12px 20px; font-size: 14px; }

.plan-includes {
  margin: 30px 0 18px;
  font-size: 15px; font-weight: 400;
  color: var(--ink-4);
}
.plan-features { display: flex; flex-direction: column; gap: 15px; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--ink-2); line-height: 1.5;
}
.plan-check {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  height: 22px;                 /* ≈ first text line — vertically centers the tick */
  color: var(--ink);            /* white tick */
}
.plan-check svg { display: block; width: 13px; height: 9px; }

.pricing-note {
  max-width: 520px; margin: 26px auto 0;
  text-align: center; font-size: 13px; color: var(--ink-3); line-height: 1.6;
}

@media (max-width: 640px) {
  .pricing-page { padding: 120px 20px 88px; }
  .pricing-sub { font-size: 15px; }
  .plan-card { padding: 26px 22px 30px; border-radius: 16px; }
  .plan-price-amount { font-size: 46px; }
}

/* changelog timeline → single column once the far-left date runs out of room */
@media (max-width: 1120px) {
  .cl-row { grid-template-columns: 1fr; }
  .cl-rail, .cl-main { grid-column: 1; }
  .cl-rail::before { display: none; }
  .cl-rail-inner { position: relative; top: auto; padding: 0; margin-bottom: 16px; gap: 12px; }
  .cl-main { padding-bottom: 60px; }
  .cl-feed .cl-row:last-child .cl-main { padding-bottom: 0; }
  .cl-main .cl-entry-title:not(:first-of-type) { margin-top: 48px; }
}

@media (max-width: 760px) {
  .cl-page { padding: 100px 20px 80px; }
  .cl-hero { text-align: left; max-width: none; margin: 0 0 40px; }
  .cl-title { font-size: 30px; }

  .legal-page { padding: 100px 20px 72px; }
  .legal-layout { grid-template-columns: 1fr; gap: 36px; }
  .legal-sidebar { position: relative; top: auto; }
  .legal-toc { gap: 0; }
  .legal-toc a { display: block; min-height: 40px; line-height: 40px; }   /* tappable TOC */
}

/* ============================================================
   PAGE LOADER — small centred % counter shown while a page
   loads (refresh + between-page navigation). Driven by loader.js.
   ============================================================ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity .35s ease;
}
.page-loader.is-done { opacity: 0; pointer-events: none; }
.page-loader.is-hidden { visibility: hidden; }

.page-loader-pct {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
