/* Storeyline marketing site — Frame design system (docs/design.md).
   Tokens mirror src/app/globals.css @theme. Light mode only. */

:root {
  /* Storeyline cool palette (Phase 23). Alpha tokens are their base colour
     as an RGB triplet — if a base moves, its triplets move with it. */
  --ink: #101418; /* the mark's dark — dark bands + wordmark */
  --text: #1D2126; /* cool charcoal — headings + primary text */
  --cobalt: #2E66C9;
  /* Clay — the warm signal, deliberately warm against the cool neutrals.
     fill = badges + large accents (white text on it); -text = small text. */
  --clay: #e8623d;
  --clay-text: #c2431f;
  --on-clay: #ffffff; /* founder decision — white on the fills, as in-app */
  --stone: #6C7279; /* AA 4.57:1 on paper — do not lighten */
  --paper: #F7F8F7;
  --paper-2: #EFF1F2;
  --white: #ffffff;
  --line: #E3E6E8;
  --ink-80: rgba(29, 33, 38, 0.82);
  --ink-60: rgba(29, 33, 38, 0.6);
  --cobalt-12: rgba(46, 102, 201, 0.12);
  --cobalt-08: rgba(46, 102, 201, 0.08);
  --cobalt-16: rgba(46, 102, 201, 0.16);
  --clay-12: rgba(232, 98, 61, 0.14);
  --clay-dark: #f0764f; /* clay small-text step on ink */
  --cobalt-dark: #5B8DE8; /* cobalt step on ink */
  --paper-60: rgba(247, 248, 247, 0.6);
  --paper-80: rgba(247, 248, 247, 0.8);
  --paper-16: rgba(247, 248, 247, 0.16); /* hairlines on the ink bands */
  /* Remaining paper steps used on the ink bands — declared here so the palette
     has exactly one source (CodeRabbit, PR #71). */
  --paper-75: rgba(247, 248, 247, 0.75);
  --paper-55: rgba(247, 248, 247, 0.55);
  --paper-45: rgba(247, 248, 247, 0.45);
  --paper-18: rgba(247, 248, 247, 0.18);
  --paper-12: rgba(247, 248, 247, 0.12);
  --paper-04: rgba(247, 248, 247, 0.04);
  --cobalt-press: #285BB5; /* hover/press step under cobalt */

  --font-display: "Geist", system-ui, -apple-system, sans-serif;
  --font-wordmark: "Archivo", "Geist", system-ui, sans-serif; /* the lockup ONLY */
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radii — one scale, softened (2026 pass) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Shadows — layered and cool (ink-deep as RGB). No glow anywhere: the CTA
     glow was retired with the Phase 23 rebrand; primary buttons are flat. */
  --shadow-card: 0 1px 1px rgba(16, 20, 24, 0.03), 0 2px 8px rgba(16, 20, 24, 0.05);
  --shadow-raised: 0 19px 48px rgba(16, 20, 24, 0.12);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 24px; }
.col { max-width: 62ch; }
section { padding: 96px 0; border-top: 1px solid var(--line); }
.hero, .band-ink { border-top: none; }

/* Type — Geist medium, soft charcoal, tighter optical tracking (2026 pass) */
h1, h2, h3 { font-weight: 500; color: var(--text); }
h1, h2 { text-wrap: balance; }
h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.029em;
}
h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.029em;
}
h3 { font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; }
/* `.em` USED to set a Newsreader editorial accent here. Retired 2026-08-05
   (TASK-195): every `class="em"` in the HTML sits inside `.logo`, where
   `.logo .wordmark .em` overrides it to Archivo 800 — so the rule styled
   nothing, anywhere. Newsreader's only live use was the `.pp-caption` chart
   annotation, now Geist italic; the font is no longer loaded at all.
   ⚠ `.em-a` / `.em-c` below are NOT variants of `.em` — they set COLOUR only
   and are untouched. Do not merge them.
   Emphasis colour lives in HEADINGS ONLY (founder 2026-07-23) — body-copy
   .em-a/.em-c spans keep their semantic tagging but render plain. */
h1 .em-c, h2 .em-c { color: var(--cobalt); }
h1 .em-a, h2 .em-a { color: var(--clay); }
.band-ink h1 .em-a, .band-ink h2 .em-a { color: var(--clay-dark); }
.band-ink h1 .em-c, .band-ink h2 .em-c { color: var(--cobalt-dark); }
.lede { font-size: 18px; color: var(--ink-80); }
.kicker {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--cobalt);
  background: var(--cobalt-08);
  border: 1px solid var(--cobalt-16);
  border-radius: 999px;
  padding: 7px 15px;
  margin-bottom: 24px;
}
.mono-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--stone);
}

/* Buttons — flat cobalt pill (the CTA glow is retired; hover darkens,
   press dips 1px — same behaviour as the app's primary) */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  color: var(--white);
  background: var(--cobalt);
  border: none;
  border-radius: 999px;
  padding: 16px 30px;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms var(--ease), transform 150ms var(--ease);
}
.btn:hover { background: var(--cobalt-press); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  text-decoration: none;
  box-shadow: 0 1px 1px rgba(16, 20, 24, 0.04);
  transition: border-color 150ms var(--ease), transform 150ms var(--ease);
}
.btn-ghost:hover { border-color: var(--stone); transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(0); }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper-80);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .wordmark {
  /* Storeyline lockup: Archivo 800, roman + a TRUE italic. Google Fonts
     serves no Geist italic, so the italic "line" would be a synthesised
     skew. The -0.06em pull on .em keeps it reading as one word. */
  font-family: var(--font-wordmark);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.logo .wordmark .em { font-weight: 800; font-style: italic; margin-left: -0.06em; }

/* Hero */
.hero { padding: 88px 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}
.hero .lede { margin: 24px 0 32px; max-width: 56ch; }
.hero .mono-note { display: block; margin-top: 16px; }

/* Media frame — the corner brackets went with the old viewfinder identity
   (Phase 23); the demo now sits in a soft raised card, same object language
   as the app's surfaces. Class renamed off `.viewfinder` in TASK-195: the
   brackets it was named for are long gone, and the name was the last thing
   in marketing/ still describing the retired mark. Kept rather than deleted —
   `.vf-media` positions against it. */
.media-frame { position: relative; }
.vf-media {
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card), 0 24px 56px rgba(16, 20, 24, 0.10);
  overflow: hidden;
}
.vf-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.vf-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 16px;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 999px;
}

/* Credibility strip */
.cred {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding: 28px 0 88px;
}
.cred div { font-size: 15px; color: var(--ink-60); }
.cred strong { color: var(--text); font-weight: 600; }

/* Ink bands (problem, offer) */
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink .kicker {
  color: var(--clay-dark);
  background: var(--clay-12);
  border-color: rgba(232, 98, 61, 0.3);
}
.band-ink .lede, .band-ink p { color: var(--paper-80); }
.band-ink h2 { color: var(--paper); }
.band-sunken { background: var(--paper-2); }

/* Problem (shared by the anti-slop band) */
.problem p, .noslop p { font-size: 18px; max-width: 60ch; margin-top: 24px; }
.problem .resolve, .noslop .resolve {
  margin-top: 40px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--paper);
}

/* Transformation */
.transform-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  margin-top: 48px;
  align-items: start;
}
.panel-in {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.panel-in .file-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-80);
}
.panel-in .file-row:last-of-type { border-bottom: none; }
.panel-in .file-row span:last-child { color: var(--stone); }
.panel-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--stone);
}
.panel-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 16px;
}
.posts-stack { display: grid; gap: 16px; }
.transform-copy { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.transform-copy p { font-size: 15px; color: var(--ink-80); }
.transform-copy strong { color: var(--text); }

/* PostCard replica — post/PostCard: white, 8px radius, line border, shadow-card */
.postcard {
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.postcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 16px 20px;
}
.postcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.postcard-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.postcard-body { padding: 20px; }
.postcard-copy { font-size: 17px; line-height: 1.5; color: var(--text); }
.postcard-sub { margin-top: 10px; font-size: 14px; color: var(--ink-60); }
.capture-brief {
  margin-top: 18px;
  border-left: 3px solid var(--cobalt);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--paper);
  padding: 14px 16px;
}
.capture-brief .cb-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 8px;
}
.capture-brief .cb-text {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-80);
}

/* Tag — mono metadata tag */
.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--stone);
}

/* StatusChip — pill, mono uppercase, fixed semantics */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
}
.chip .dot { width: 6px; height: 6px; border-radius: 999px; flex: none; background: var(--white); }
/* Landing-only: chip fill uses the AA step of clay — white on #E8623D is 3.4:1
   at chip sizes. The app keeps #E8623D (founder call, 2026-08-06). */
.chip-capture { background: var(--clay-text); color: var(--on-clay); }
.chip-capture .dot { background: var(--on-clay); }
.chip-exists { background: var(--cobalt); color: var(--white); }
.chip-scheduled { background: var(--paper); color: var(--stone); border-color: var(--stone); }
.chip-scheduled .dot { background: var(--stone); }

/* How it works */
/* How it works — the three storeys: the mark, drawn at section scale.
   Bar 1 right-aligned, bar 2 full-width cobalt (Storeyline's line),
   bar 3 left-aligned — same stagger as the logo. */
.storeys { margin-top: 48px; display: grid; gap: 14px; }
.storey {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 28px;
  align-items: start;
  padding: 30px 34px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--paper);
}
.storey-1 { width: 75%; justify-self: end; }
.storey-2 { background: var(--cobalt); color: var(--white); }
.storey-3 { width: 75%; justify-self: start; }
.st-num {
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.029em;
  line-height: 1;
  color: var(--paper-55);
}
.storey-2 .st-num { color: var(--paper-80); }
.storey h3 { font-size: 21px; margin-bottom: 8px; color: inherit; }
.storey p { font-size: 15px; color: var(--paper-80); max-width: 62ch; }
.storey-2 p { color: var(--white); }
.storeys-note {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--stone);
}
.storeys-note svg { color: var(--ink); flex: none; }

/* The deal — a two-sided handover board */
.deal-board {
  position: relative;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.deal-col { border-radius: var(--r-lg); padding: 28px; }
.deal-sl { background: var(--ink); color: var(--paper); }
.deal-you { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.deal-head { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 18px; }
.deal-pill {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--cobalt);
  color: var(--white);
}
.deal-you .deal-pill { background: var(--clay); color: var(--on-clay); }
.dh-text { display: grid; gap: 3px; }
.dh-text strong { font-size: 17px; }
.dh-text span { font-size: 13.5px; color: var(--stone); }
.deal-sl .dh-text span { color: var(--paper-55); }
.deal-col ul { list-style: none; }
.deal-col li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-80); }
.deal-sl li { border-top-color: var(--paper-12); color: var(--paper-80); }
.deal-swap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  z-index: 1;
}

/* Moat */
.moat p { font-size: 18px; max-width: 62ch; margin-top: 24px; color: var(--ink-80); }
.chain {
  margin: 40px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-60);
}
.chain strong { color: var(--text); font-weight: 600; }
.chain .sep { color: var(--cobalt); padding: 0 6px; }

/* Feature cards */
/* One joined board (deal-board language), cells divided by hairlines */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 48px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.feature { padding: 28px; display: flex; flex-direction: column; }
.feature:nth-child(even) { border-left: 1px solid var(--line); }
.feature:nth-child(n + 3) { border-top: 1px solid var(--line); }
/* Product artifact strip — real chips/tags from the app, bottom-aligned across the row */
.feat-demo {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { font-size: 15px; color: var(--ink-80); }

/* Offer */
.offer-steps { margin: 40px 0; display: grid; gap: 0; max-width: 62ch; }
.offer-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--paper-16);
  font-size: 17px;
}
.offer-step .num {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.029em;
  line-height: 1;
  color: var(--paper-45);
}
.offer-keep {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--paper);
  margin-bottom: 36px;
}
.band-ink .mono-note { color: var(--paper-55); display: block; margin-top: 16px; }
.band-ink .mono-note a { color: var(--paper-75); text-decoration: underline; text-underline-offset: 3px; }

/* Is this for you */
.fit-list {
  margin-top: 40px;
  max-width: 62ch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 8px 28px;
}
.fit-list li {
  list-style: none;
  padding: 18px 0 18px 32px;
  border-top: 1px solid var(--line);
  position: relative;
  font-size: 17px;
}
.fit-list li:first-child { border-top: none; }
.fit-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 26px;
  width: 12px;
  height: 3px;
  background: var(--cobalt);
}
.fit-close { margin-top: 32px; font-size: 18px; font-weight: 500; }

/* FAQ */
.faq { margin-top: 48px; max-width: 68ch; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 20px 44px 20px 12px;
  margin: 0 -12px;
  border-radius: var(--r-sm);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: background 150ms var(--ease);
}
.faq summary:hover { background: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
/* Drawn plus: vertical bar rotates flat on open -> minus */
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  margin-top: -0.75px;
  background: var(--cobalt);
  transition: transform 200ms var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 0 24px; font-size: 16px; color: var(--ink-80); max-width: 60ch; }

/* Final close */
.close-cta { text-align: left; }
.close-cta p { margin: 20px 0 32px; font-size: 18px; color: var(--ink-80); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; }
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
footer .fm {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--stone);
}
footer a { color: var(--stone); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Thank-you page */
.thanks-main { min-height: 70vh; }
.send-list { margin: 32px 0; max-width: 58ch; }
.send-list li {
  list-style: none;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 17px;
}
.send-list li:last-child { border-bottom: 1px solid var(--line); }
.send-list .n { font-family: var(--font-mono); font-size: 12px; color: var(--cobalt); letter-spacing: 1px; margin-right: 12px; }

/* Two-programme panel — their construction programme above, the Storeyline
   marketing programme below, one timeline through both */
.prog-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  margin-top: 48px;
}
.pp-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--stone);
}
.pp-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.pp-track { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; }
.pp-track .pp-lab { color: var(--text); }
.pp-track .pp-rule { flex: 1; height: 1px; background: var(--line); }
.pp-track.pp-mkt .pp-lab, .pp-track.pp-mkt .pp-tag { color: var(--cobalt); }
.pp-chart { position: relative; }
.pp-today {
  position: absolute; top: -6px; bottom: -6px; left: 46%;
  width: 1.5px; background: var(--cobalt); opacity: .85; z-index: 2;
}
.pp-today-tag {
  position: absolute; top: -24px; left: 46%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--cobalt); white-space: nowrap; background: var(--white); padding: 0 6px; z-index: 3;
}
.pp-gantt { position: relative; height: 150px; }
.pp-bar {
  position: absolute; height: 22px;
  background: var(--paper-2); border: 1px solid var(--stone); border-radius: 6px;
  display: flex; align-items: center; padding: 0 8px; overflow: hidden;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text); white-space: nowrap;
}
.pp-b1 { top: 0;     left: 0%;  width: 18%; }
.pp-b2 { top: 30px;  left: 14%; width: 26%; }
.pp-b3 { top: 60px;  left: 36%; width: 22%; }
.pp-b4 { top: 90px;  left: 52%; width: 30%; }
.pp-b5 { top: 120px; left: 78%; width: 22%; }
.pp-drop { position: absolute; width: 1px; border-left: 1px dashed var(--line); z-index: 0; }
.pp-d1 { left: 9%;  top: 22px;  bottom: -58px; }
.pp-d2 { left: 27%; top: 52px;  bottom: -58px; }
.pp-d3 { left: 47%; top: 82px;  bottom: -58px; }
.pp-d4 { left: 67%; top: 112px; bottom: -58px; }
.pp-d5 { left: 89%; top: 142px; bottom: -58px; }
.pp-mkt-track { position: relative; height: 56px; margin-top: 6px; }
.pp-base { position: absolute; left: 0; right: 0; top: 26px; height: 2px; background: var(--paper-2); border-radius: 1px; }
.pp-dot { position: absolute; top: 22px; width: 9px; height: 9px; border-radius: 999px; }
.pp-dot.ex { background: var(--cobalt); }
.pp-dot.ca { background: var(--clay); }
.pp-dot.sc { background: var(--white); border: 1.5px solid var(--stone); }
.pp-pill {
  position: absolute; top: 40px; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  background: var(--cobalt); color: var(--white); border-radius: 999px; padding: 4px 9px; white-space: nowrap;
}
.pp-foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 22px; padding-top: 14px;
}
.pp-legend { display: flex; gap: 20px; flex-wrap: wrap; }
.pp-legend span {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--stone);
}
.pp-legend i { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
/* Was Newsreader italic (the last live use of --font-editorial) — retired
   TASK-195. Still an italic annotation, now in the page's own display face. */
.pp-caption { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--ink-60); }

/* Build-phase timeline (transformation) — the programme as a visual spine */
.phase-bar { margin-top: 32px; }
.phase-row { display: flex; gap: 3px; }
.phase {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phase .ph-dots { display: flex; gap: 6px; min-height: 10px; padding: 0 2px; }
.phase .ph-dots span { width: 8px; height: 8px; border-radius: 999px; }
.d-capture { background: var(--clay); }
.d-exists { background: var(--cobalt); }
.d-scheduled { background: transparent; border: 1.5px solid var(--stone); box-sizing: border-box; }
.phase .ph-seg { height: 4px; background: var(--paper-2); border: 1px solid var(--line); }
.phase .ph-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phase-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 16px;
}
.phase-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--stone);
}
.phase-legend i { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }

/* Line icons — Lucide-style, 1.5px stroke, on token tint chips.
   Cobalt = system actions; clay = capture semantics (camera cards). */
.icon {
  width: 24px;
  height: 24px;
  box-sizing: content-box;
  padding: 8px;
  border-radius: var(--r-lg);
  background: var(--cobalt-12);
  stroke: var(--cobalt);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  margin-bottom: 16px;
}
.icon-clay {
  background: var(--clay-12);
  stroke: var(--clay);
}

/* Moat pipeline — the chain as connected nodes */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 40px 0;
}
.pipe-node {
  position: relative;
  background: var(--ink);
  border-radius: var(--r-md);
  padding: 18px;
  color: var(--paper);
}
.pipe-node .pn-num {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.029em;
  line-height: 1;
  color: var(--paper-55);
  margin-bottom: 12px;
}
.pipe-node .pn-text { font-size: 14px; line-height: 1.4; color: var(--paper-55); }
.pipe-node .pn-text strong { display: block; font-weight: 600; color: var(--paper); }
.pipe-node .pn-text span { color: var(--paper-55); font-size: 13px; }
.pipe-node::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--stone);
}
.pipe-node:last-child::after { display: none; }
/* Auto-cycle: the cobalt bar walks the pipeline (script at page foot) */
.pipe-node.live { background: var(--cobalt); }
.pipe-node.live .pn-num, .pipe-node.live .pn-text span { color: var(--paper-80); }
.pipe-node.live .pn-text strong { color: var(--white); }

/* Generation mock (offer band) — the live run, as theatre */
.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
}
.gen-mock {
  border: 1px solid var(--paper-18);
  border-radius: var(--r-lg);
  background: var(--paper-04);
  padding: 20px;
}
.gen-mock .gm-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--clay-dark);
  margin-bottom: 16px;
}
.gen-mock .gm-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 2.1;
  color: var(--paper-75);
}
.gen-mock .gm-line span:last-child { color: var(--paper-55); }
.gen-mock .gm-bar {
  margin-top: 14px;
  height: 4px;
  background: var(--paper-12);
  border-radius: 4px;
  overflow: hidden;
}
.gen-mock .gm-bar i { display: block; height: 100%; width: 72%; background: var(--cobalt); }
.gen-mock .gm-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--paper-55);
}

/* App demo animation (hero) — the product's four beats, replayed with real
   Frame components. Calm motion: fades + 6px rises, 240ms, no bounce. */
.app-demo { display: flex; flex-direction: column; background: var(--paper); }
.ad-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}
.ad-project { font-weight: 600; font-size: 14px; letter-spacing: -0.2px; }
.ad-steps {
  display: flex;
  flex-wrap: wrap; /* wraps to two rows on phones */
  gap: 2px;
  justify-content: space-between;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
.ad-steps button {
  background: none;
  border: none;
  padding: 6px 10px; /* keeps the hit area >=24px tall (WCAG 2.5.8) */
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--stone);
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
  white-space: nowrap;
}
.ad-steps button:hover { color: var(--text); }
/* The stepper fills as the demo runs: past steps hold a cobalt tint, the
   active step is the solid pill — the process reads as a progress bar. */
.ad-steps button.done { background: var(--cobalt-12); color: var(--cobalt); }
.ad-steps button.on { background: var(--cobalt); color: var(--white); }
.ad-stage { position: relative; flex: 1; }
.ad-scene {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* short scenes sit centred, not stranded at the top */
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease);
}
.ad-scene.active { opacity: 1; }
@keyframes ad-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.ad-scene.active > * {
  opacity: 0;
  animation: ad-in 300ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 320ms);
}
.ad-drop {
  border: 2px dashed var(--stone);
  border-radius: var(--r-sm);
  padding: 22px 12px;
  text-align: center;
}
.ad-drop-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--stone);
}
.ad-file {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-80);
}
.ad-file span:last-child { color: var(--stone); }
.ad-foot {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--stone);
}
.ad-gen-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 10px;
}
.ad-gen-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2.2;
  color: var(--ink-80);
}
.ad-gen-line span:last-child { color: var(--stone); }
.ad-bar {
  margin-top: 12px;
  height: 4px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.ad-bar i { display: block; height: 100%; background: var(--cobalt); width: 15%; }
.ad-scene.active .ad-bar i { animation: ad-bar-fill 3.6s var(--ease) 1.4s both; }
@keyframes ad-bar-fill { from { width: 15%; } to { width: 82%; } }
.ad-post {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 14px;
  margin-bottom: 10px;
}
.ad-post-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ad-post-copy { font-size: 14px; line-height: 1.45; color: var(--text); }
.ad-cal {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 14px;
}
.ad-cal-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 10px;
}
.ad-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.ad-cal-grid span {
  aspect-ratio: 1;
  background: var(--paper-2);
  border-radius: 4px;
  position: relative;
}
.ad-cal-grid .has-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--stone);
}
.ad-cal-target { outline: 1.5px solid var(--cobalt); outline-offset: 1px; }
.ad-scene.active .ad-cal-target::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cobalt);
  opacity: 0;
  animation: ad-in 240ms var(--ease) 1s both;
}
.ad-sched-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  border: 1px solid var(--stone);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--stone);
}
.ad-sched-pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--stone); flex: none; }
.ad-li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 14px;
}
.ad-li-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ad-li-avatar {
  width: 30px;
  height: 30px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
}
.ad-li-who { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.ad-li-name { font-weight: 600; font-size: 13px; line-height: 1.2; }
.ad-li-sub { font-family: var(--font-mono); font-size: 11px; color: var(--stone); letter-spacing: 0.5px; }
.ad-li-copy { font-size: 13px; line-height: 1.5; color: var(--text); margin-bottom: 10px; }
.ad-li-img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.ad-li-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--stone);
}
.ad-li-like {
  width: 14px;
  height: 14px;
  stroke: #0a66c2;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .ad-scene.active > *, .ad-scene.active .ad-bar i, .ad-scene.active .ad-cal-target::after {
    animation: none;
    opacity: 1;
  }
}

/* Scroll-life — sections assemble as they enter view. JS adds .rv (rewound)
   then .in (play); every hidden state is gated on .rv so nothing disappears
   if JS never runs. Motion-safe users only. */
header { transition: box-shadow 200ms var(--ease); }
header.scrolled { box-shadow: var(--shadow-card); }

@media (prefers-reduced-motion: no-preference) {
  .rv {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 450ms var(--ease), transform 450ms var(--ease);
    transition-delay: var(--d, 0ms);
  }
  .rv.in { opacity: 1; transform: none; }

  /* Pipeline connectors draw after each node lands */
  .pipeline .pipe-node.rv::after { transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease); transition-delay: calc(var(--d, 0ms) + 340ms); }
  .pipeline .pipe-node.rv.in::after { transform: scaleX(1); }

  /* Phase timeline draws itself, then the dots land, then the legend */
  @keyframes seg-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .phase-bar.rv .ph-seg { transform: scaleX(0); transform-origin: left; }
  .phase-bar.rv.in .phase:nth-child(1) .ph-seg { animation: seg-in 400ms var(--ease) 60ms both; }
  .phase-bar.rv.in .phase:nth-child(2) .ph-seg { animation: seg-in 400ms var(--ease) 240ms both; }
  .phase-bar.rv.in .phase:nth-child(3) .ph-seg { animation: seg-in 400ms var(--ease) 420ms both; }
  .phase-bar.rv.in .phase:nth-child(4) .ph-seg { animation: seg-in 400ms var(--ease) 600ms both; }
  .phase-bar.rv.in .phase:nth-child(5) .ph-seg { animation: seg-in 400ms var(--ease) 780ms both; }
  .phase-bar.rv .ph-dots span { opacity: 0; }
  .phase-bar.rv.in .phase:nth-child(1) .ph-dots span { animation: ad-in 280ms var(--ease) 560ms both; }
  .phase-bar.rv.in .phase:nth-child(2) .ph-dots span { animation: ad-in 280ms var(--ease) 740ms both; }
  .phase-bar.rv.in .phase:nth-child(3) .ph-dots span { animation: ad-in 280ms var(--ease) 920ms both; }
  .phase-bar.rv.in .phase:nth-child(4) .ph-dots span { animation: ad-in 280ms var(--ease) 1100ms both; }
  .phase-bar.rv.in .phase:nth-child(5) .ph-dots span { animation: ad-in 280ms var(--ease) 1280ms both; }
  .phase-bar.rv .phase-legend { opacity: 0; transition: opacity 400ms var(--ease) 1400ms; }
  .phase-bar.rv.in .phase-legend { opacity: 1; }

  /* Offer generation mock runs when it scrolls into view */
  .gen-mock.rv > * { opacity: 0; }
  .gen-mock.rv.in > * { animation: ad-in 300ms var(--ease) both; }
  .gen-mock.rv.in > :nth-child(2) { animation-delay: 140ms; }
  .gen-mock.rv.in > :nth-child(3) { animation-delay: 280ms; }
  .gen-mock.rv.in > :nth-child(4) { animation-delay: 420ms; }
  .gen-mock.rv.in > :nth-child(5) { animation-delay: 560ms; }
  .gen-mock.rv.in > :nth-child(6) { animation-delay: 700ms; }
  .gen-mock.rv.in > :nth-child(7) { animation-delay: 840ms; }
  .gen-mock.rv.in .gm-bar i { animation: ad-bar-fill 2200ms var(--ease) 900ms both; }

  /* FAQ answers fade as they open */
  .faq details[open] p { animation: ad-in 260ms var(--ease) both; }
}

/* Hover interactions — desktop pointers only; calm, engineered responses */
@media (hover: hover) and (pointer: fine) {
  .storey, .pipe-node, .postcard {
    transition: transform 150ms var(--ease), border-color 150ms var(--ease), box-shadow 150ms var(--ease), background-color 200ms var(--ease);
  }
  .storey:hover, .pipe-node:hover, .postcard:hover {
    transform: translateY(-2px);
    border-color: var(--stone);
    box-shadow: 0 3px 10px rgba(16, 20, 24, 0.08);
  }

  /* Viewfinder focuses on the demo */




  /* Logo: press play */
  .logo svg path { transition: transform 150ms var(--ease); }
  .logo:hover svg path { transform: translateX(6px); }

  /* Phase timeline acknowledges the cursor */
  .phase .ph-label, .phase .ph-seg { transition: color 150ms var(--ease), background 150ms var(--ease); }
  .phase:hover .ph-label { color: var(--text); }
  .phase:hover .ph-seg { background: var(--line); }

  /* Text links: underline fades in */
  footer a, .ad-li-sub a {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 150ms var(--ease), color 150ms var(--ease);
  }
  footer a:hover { text-decoration-color: currentColor; }
}

/* FAQ height eases open where the platform supports it (progressive) */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 300ms var(--ease), content-visibility 300ms allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

@media (max-width: 640px) {
  /* Bar labels clip at phone widths; the today-tag and week pill collide
     with the track labels. The panel is aria-hidden decoration — the bars,
     dots and legend carry the idea on their own at this size. */
  .pp-bar { color: transparent; }
  .pp-today-tag, .pp-pill { display: none; }
}

@media (max-width: 880px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipe-node::after { display: none; }
  .offer-grid { grid-template-columns: 1fr; }
  .phase .ph-label { font-size: 11px; }
  section { padding: 64px 0; }
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid > * { min-width: 0; } /* grid blowout guard: nowrap children must clip, not stretch the page */
  .transform-grid { grid-template-columns: 1fr; }
  .transform-copy { grid-template-columns: 1fr; }
  .storey-1, .storey-3 { width: 100%; }
  .storey { padding: 24px; gap: 6px 18px; }
  .deal-board { grid-template-columns: 1fr; gap: 16px; }
  .deal-swap { position: static; transform: rotate(90deg); margin: 0 auto; }
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(even) { border-left: none; }
  .feature + .feature { border-top: 1px solid var(--line); }
  .fit-list { padding: 4px 20px; }
  .cred { margin-top: 48px; padding-bottom: 56px; }
}
