/* AdvisorHub company site. The system is written up in DESIGN.md: a light
   page, brand orange used with commitment (stages and the closing band),
   Inter in two weights as the voice (300 against 700, like the wordmark),
   real FundReadi screens as the imagery. No JavaScript: motion is CSS only
   and stops under prefers-reduced-motion. No inline styles (the CSP blocks
   them), so per-element variants are classes. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --paper: #fbfbfa;
  --paper-2: #f3f2f0;
  --surface: #ffffff;
  --line: #e6e4e1;
  --line-strong: #d1cec9;
  --ink: #141414;
  --ink-2: #1d1c1b;
  --ink-3: #2c2a28;
  --text: #141414;
  --text-muted: #55524e;
  --text-faint: #6c6863; /* 4.9:1 on --paper-2, 5.3:1 on --paper */
  --brand: #cb4c04;
  --brand-hover: #b04203;
  --brand-deep: #8e3200;
  --brand-tint: #fdefe3;
  --brand-mark: #fbd9bf;
  --on-brand: #ffffff;
  --on-ink: #f4f3f1;
  --on-ink-muted: #b3afa9;
  --on-ink-faint: #8f8a84;
  --good: #15803d;

  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --bleed: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  --header-h: 68px;

  --step-hero: clamp(2.6rem, 1.15rem + 4.6vw, 4.75rem);
  --step-h1: clamp(2.4rem, 1.4rem + 3.4vw, 4.25rem);
  --step-h2: clamp(1.85rem, 1.25rem + 2.1vw, 2.9rem);
  --step-h3: 1.25rem;
  --step-lede: clamp(1.125rem, 1.02rem + 0.35vw, 1.3125rem);

  /* One radius scale: panels 28, cards 16, frames 12, buttons 10. */
  --radius-panel: 28px;
  --radius-card: 16px;
  --radius-frame: 12px;
  --radius-btn: 10px;

  --shadow-frame: 0 1px 2px rgba(20, 18, 16, 0.06), 0 28px 56px -28px rgba(20, 18, 16, 0.32);
  --shadow-frame-brand: 0 2px 6px rgba(70, 24, 0, 0.14), 0 44px 80px -32px rgba(70, 24, 0, 0.6);
  --shadow-float: 0 24px 48px -16px rgba(20, 18, 16, 0.22);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--text); font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }
strong { color: var(--text); font-weight: 600; }
main { display: block; }
main:focus { outline: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.icon { display: block; width: 20px; height: 20px; flex-shrink: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -64px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius-btn);
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */

.eyebrow {
  margin-bottom: 20px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.display, .page-title {
  color: var(--text);
  font-weight: 300;
  letter-spacing: -0.042em;
}
.display { font-size: var(--step-hero); line-height: 1.02; }
.page-title { font-size: var(--step-h1); line-height: 1.04; }
.display b, .page-title b { font-weight: 700; }
.accent { color: var(--brand); }
.dot { color: var(--brand); }

h2, .h2 { font-size: var(--step-h2); line-height: 1.1; letter-spacing: -0.03em; }
h3, .h3 { font-size: var(--step-h3); line-height: 1.3; letter-spacing: -0.015em; }
.lede { max-width: 60ch; color: var(--text-muted); font-size: var(--step-lede); line-height: 1.55; }

.section { padding: clamp(72px, 9vw, 128px) 0; }
.band-alt { background: var(--paper-2); }
.section-head { max-width: 780px; }
.section-head .lede { margin-top: 20px; }
.section-head .text-link { margin-top: 12px; }

/* Buttons and links */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 16px; height: 16px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { border-color: var(--line-strong); background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--text-faint); background: var(--surface); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--ink-3); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
.text-link:hover .icon { transform: translateX(3px); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.wm-light { font-weight: 300; }
.wm-bold, .wm-dot { font-weight: 700; }
.wm-dot { color: var(--brand); }

.primary-nav { flex: 1; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.nav-link:hover { background: var(--paper-2); color: var(--text); }
.nav-link .icon { width: 14px; height: 14px; transition: transform 0.2s var(--ease-out); }
.nav-link[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.has-menu { position: relative; }
.has-menu:hover > .nav-link .icon,
.has-menu:focus-within > .nav-link .icon { transform: rotate(180deg); }
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: -16px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 8px;
  width: 540px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-float);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s var(--ease-out), visibility 0.18s;
}
.mega::before { content: ""; position: absolute; top: -12px; right: 0; left: 0; height: 12px; }
.has-menu:hover .mega,
.has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-feature {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s;
}
.mega-feature:hover { background: var(--brand-tint); }
.mega-feature svg { width: 44px; height: auto; margin-bottom: 6px; }
.mega-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.mega-desc { color: var(--text-muted); font-size: 14px; line-height: 1.45; }
.mega-links { display: flex; flex-direction: column; padding: 6px 0; }
.mega-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.mega-links a:hover { background: var(--paper-2); }
.mega-links .icon { width: 14px; height: 14px; color: var(--text-faint); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-demo { color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; }
.header-demo:hover { text-decoration: underline; }

/* Frames: a browser window and a phone, around real FundReadi screens */

.browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-frame);
  background: var(--surface);
  box-shadow: var(--shadow-frame);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}
.browser-bar .icon { width: 12px; height: 12px; }
.browser img { width: 100%; }

.phone {
  overflow: hidden;
  border: 6px solid var(--ink);
  border-radius: 30px;
  background: var(--ink);
  box-shadow: var(--shadow-frame);
}
.phone img { width: 100%; border-radius: 24px; }

.note { color: var(--text-faint); font-size: 13px; }

/* Home: hero */

.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 8vw, 112px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.hero-eyebrow, .hero-title { grid-column: 1 / -1; }
.hero-title { max-width: 15.5em; }
.hero-copy { grid-column: 1; padding-top: clamp(28px, 3.4vw, 44px); }
.hero-copy .lede { max-width: 34ch; }
.hero-copy .actions { margin-top: 32px; }
.hero-visual { position: relative; grid-column: 2; margin-top: clamp(28px, 3.4vw, 44px); margin-right: calc(-1 * var(--bleed)); }

.stage {
  position: relative;
  height: clamp(400px, 40vw, 560px);
  padding: clamp(28px, 3.6vw, 52px) 0 0 clamp(28px, 3.6vw, 52px);
  overflow: hidden;
  border-radius: var(--radius-panel) 0 0 var(--radius-panel);
  background: var(--brand);
}
.stage .browser { width: clamp(600px, 64vw, 920px); max-width: none; border-color: rgba(20, 20, 20, 0.08); box-shadow: var(--shadow-frame-brand); }
.stage-note {
  position: absolute;
  bottom: 18px;
  right: var(--bleed);
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 12px;
  font-weight: 500;
}
.hero-phone {
  position: absolute;
  bottom: -40px;
  left: clamp(-64px, -4vw, -32px);
  z-index: 2;
  width: clamp(150px, 15vw, 214px);
  box-shadow: var(--shadow-frame-brand);
}

/* Home: decoder (raw file to plain language) */

.decoder-flow {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
}

.printout {
  position: relative;
  padding: 0 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-frame);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13.5px;
}
/* Tractor-feed holes, like a bureau printout. */
.printout::before, .printout::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  width: 10px;
  background: radial-gradient(circle, var(--paper-2) 0 3.5px, transparent 4px) center top / 10px 22px repeat-y;
}
.printout::before { left: 10px; }
.printout::after { right: 10px; }
.printout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 14px;
  border-bottom: 2px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag {
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.pgroup { padding: 12px 0; border-bottom: 1px dashed var(--line-strong); }
.prow { display: grid; grid-template-columns: 10ch minmax(0, 1fr); gap: 12px; padding: 4px 0; }
.prow dt { color: var(--text-faint); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.prow dd { color: var(--text); }
.mark { padding: 1px 5px; border-radius: 3px; background: var(--brand-mark); color: var(--brand-deep); font-weight: 700; }
.printout-calc {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 20px;
  padding: 10px 12px;
  border: 1px dashed var(--brand);
  border-radius: 8px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
}
.printout-calc .icon { width: 16px; height: 16px; margin-left: auto; }

.redact {
  display: inline-block;
  height: 1.05em;
  border-radius: 2px;
  background: var(--ink);
  vertical-align: -0.18em;
  transform-origin: left center;
}
.rd-8 { width: 8ch; }
.rd-10 { width: 10ch; }
.rd-11 { width: 11ch; }
.rd-12 { width: 12ch; }
.rd-14 { width: 14ch; }
.rd-16 { width: 16ch; }
.rd-18 { width: 18ch; }

.readout img { border: 1px solid var(--line); border-radius: var(--radius-frame); background: var(--surface); box-shadow: var(--shadow-frame); }
.readout figcaption { margin-top: 14px; color: var(--text-faint); font-size: 13px; }

.flow { position: relative; margin-top: clamp(48px, 6vw, 80px); padding-top: 36px; }
.flow-track { position: absolute; top: 5px; right: 0; left: 0; height: 2px; background: var(--line-strong); }
.flow-fill { position: absolute; inset: 0; background: var(--brand); transform-origin: left center; }
.flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.flow-step { position: relative; }
.flow-step::before {
  content: "";
  position: absolute;
  top: -36px;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--brand);
  border-radius: 3px;
  background: var(--paper-2);
}
.flow-step h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.flow-step h3 .icon { color: var(--brand); }
.flow-step p { margin-top: 10px; font-size: 15px; }

/* FundReadi mark (only where FundReadi itself is shown) */

.fr-heading { line-height: 1; }
.fr-lockup { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.fr-gauge { display: block; width: 88px; height: auto; }
.fr-wordmark { color: var(--text); font-size: clamp(40px, 2rem + 1.6vw, 56px); font-weight: 700; line-height: 1; letter-spacing: -0.045em; }
.fr-prefix { font-weight: 300; }
.fr-suffix {
  background: linear-gradient(135deg, #ffa86b 0%, #ff8a3c 25%, #cb4c04 70%, #8e3200 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fr-period { color: var(--brand); }

/* Home: FundReadi showcase */

.showcase-head { max-width: 760px; }
.showcase-tagline { margin-top: 24px; color: var(--text); font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; }
.showcase-body { max-width: 62ch; margin-top: 16px; }
.showcase-head .actions { margin-top: 28px; }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper-2);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.25s;
}
.tile:hover { border-color: var(--line-strong); }
.tile-text { padding: 28px 56px 0 28px; }
.tile h3 { font-size: 19px; }
.tile p { max-width: 42ch; margin-top: 6px; font-size: 15px; }
.tile-go { position: absolute; top: 26px; right: 24px; color: var(--text-faint); transition: transform 0.3s var(--ease-out), color 0.2s; }
.tile:hover .tile-go { color: var(--brand-deep); transform: translateX(3px); }
.tile-media { height: 230px; margin-top: auto; padding: 28px 0 0 28px; overflow: hidden; }
.tile-media img {
  max-width: none;
  border: 1px solid var(--line);
  border-radius: 10px 0 0 0;
  background: var(--surface);
  box-shadow: var(--shadow-frame);
  transition: transform 0.5s var(--ease-out);
}
.tile:hover .tile-media img { transform: translateY(-6px); }
.tile-report { grid-column: span 8; }
.tile-report .tile-media { height: 440px; }
.tile-report .tile-media img { width: 112%; }
.tile-phone { grid-column: span 4; background: var(--ink-2); color: var(--on-ink-muted); }
.tile-phone .tile-media { height: auto; min-height: 400px; }
.tile-phone h3 { color: var(--on-ink); }
.tile-phone .tile-go { color: var(--on-ink-faint); }
.tile-phone:hover .tile-go { color: var(--on-ink); }
.tile-phone .tile-media { display: flex; justify-content: center; padding: 32px 28px 0; }
.tile-phone .phone { width: min(240px, 78%); margin-bottom: -60px; border-color: var(--ink-3); transition: transform 0.5s var(--ease-out); }
.tile-phone:hover .phone { transform: translateY(-6px); }
.tile-phone .phone img { border: 0; border-radius: 24px; box-shadow: none; }
.tile-phone:hover .tile-media img { transform: none; }
.tile-scores, .tile-tiers, .tile-alerts { grid-column: span 4; }
.tile-scores { background: var(--brand-tint); }
.tile-scores .tile-media img, .tile-tiers .tile-media img, .tile-alerts .tile-media img { width: 170%; }

/* Home: what we do (sticky intro, list on the right) */

.cap-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.cap-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.cap-intro .lede { margin-top: 20px; }
.cap-intro .text-link { margin-top: 16px; }
.cap-list { border-top: 1px solid var(--line); }
.cap { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.cap-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-deep); }
.cap h3 { font-size: 22px; }
.cap p { max-width: 58ch; margin-top: 8px; }

/* Home: principles */

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line-strong); }
.principle { padding: 36px 0 40px; border-bottom: 1px solid var(--line-strong); }
.principle:nth-child(odd) { padding-right: clamp(24px, 4vw, 56px); border-right: 1px solid var(--line-strong); }
.principle:nth-child(even) { padding-left: clamp(24px, 4vw, 56px); }
.principle h3 { font-size: clamp(1.375rem, 1.15rem + 0.6vw, 1.75rem); letter-spacing: -0.025em; }
.principle p { max-width: 46ch; margin-top: 10px; }
.principle .redaction-line { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; color: var(--text-faint); font-family: var(--mono); font-size: 13px; }
.principle .redaction-line span { display: inline-flex; align-items: center; gap: 8px; }
.after-block { margin-top: 24px; }

/* Company record (Home and About) */

.company-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.company-grid .lede { margin-top: 20px; }
.record { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-frame); }
.record-head { display: flex; align-items: center; gap: 14px; padding: 20px 28px; background: var(--ink); color: var(--on-ink); }
.record-head img { width: 40px; height: 40px; border-radius: 9px; }
.record-kicker { color: var(--on-ink-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.record-name { color: var(--on-ink); font-size: 20px; letter-spacing: -0.02em; }
.kv { padding: 6px 28px 10px; }
.kv-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.kv-row:last-child { border-bottom: 0; }
.kv dt { color: var(--text-faint); }
.kv dd { color: var(--text); }
.record-note { margin-top: 16px; color: var(--text-muted); font-size: 14px; }

/* Closing band: the page's one orange drench */

.cta-band { padding: clamp(80px, 11vw, 144px) 0; background: var(--brand); color: var(--on-brand); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.cta-title { color: var(--on-brand); font-size: clamp(3.25rem, 1.5rem + 7vw, 8rem); font-weight: 300; line-height: 0.92; letter-spacing: -0.05em; }
.cta-title b { font-weight: 700; }
.cta-title .dot { color: var(--ink); }
.cta-copy p { max-width: 42ch; font-size: 17px; }
.cta-copy a:not(.btn) { color: var(--on-brand); }
.cta-copy .actions { margin-top: 28px; }
.cta-band :focus-visible { outline-color: var(--ink); }

/* Footer */

.site-footer { padding: 72px 0 40px; background: var(--ink); color: var(--on-ink-muted); font-size: 14px; }
.site-footer .wordmark { color: var(--on-ink); font-size: 22px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; }
.footer-brand p { max-width: 34ch; margin-top: 16px; }
.footer-brand address { margin-top: 16px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-col h2 { margin-bottom: 12px; color: var(--on-ink); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-col a { display: inline-block; padding: 5px 0; color: var(--on-ink-muted); text-decoration: none; }
.footer-col a:hover { color: var(--on-ink); text-decoration: underline; }
.footer-notices { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: var(--on-ink-faint); font-size: 12px; }
.footer-notices p { max-width: 920px; }
.footer-notices p + p { margin-top: 8px; }

/* Inner pages: header block */

.page-hero { padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero .lede { max-width: 54ch; margin-top: 24px; }
.page-hero .actions { margin-top: 32px; }

/* Products */

.product-panel {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
}
.product-copy { padding: clamp(32px, 5vw, 64px); }
.product-copy .showcase-tagline { margin-top: 28px; }
.product-copy .actions { margin-top: 28px; }
.product-copy .note { margin-top: 20px; }
.product-stage { position: relative; min-height: 540px; overflow: hidden; background: var(--brand); }
.product-stage .phone { position: absolute; width: clamp(180px, 17vw, 236px); box-shadow: var(--shadow-frame-brand); }
.product-stage .phone-a { top: 56px; left: 14%; z-index: 2; }
.product-stage .phone-b { top: 112px; left: 50%; transform: rotate(4deg); }

.tour-stack { display: grid; gap: 28px; margin-top: clamp(40px, 5vw, 64px); }
.tour-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  min-height: 520px;
  padding: clamp(28px, 3.6vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 -12px 32px -20px rgba(20, 18, 16, 0.18);
}
.tour-card:nth-child(2) { top: calc(var(--header-h) + 40px); }
.tour-card:nth-child(3) { top: calc(var(--header-h) + 56px); }
.tour-card:nth-child(4) { top: calc(var(--header-h) + 72px); }
.tour-card:nth-child(5) { top: calc(var(--header-h) + 88px); }
.tour-card:nth-child(6) { top: calc(var(--header-h) + 104px); }
.tour-card:nth-child(even) { background: var(--paper-2); }
.tour-label { color: var(--brand-deep); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.tour-card h3 { margin-top: 12px; font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); line-height: 1.2; letter-spacing: -0.025em; }
.tour-card p { margin-top: 14px; }
.tour-note { margin-top: 24px; }

.steps-track { position: relative; margin-top: clamp(40px, 5vw, 64px); padding-top: 36px; }
.steps-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.steps-list li { position: relative; }
.steps-list li::before {
  content: "";
  position: absolute;
  top: -36px;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--brand);
  border-radius: 3px;
  background: var(--paper-2);
}
.steps-list h3 { font-size: 21px; }
.steps-list p { margin-top: 10px; }
.steps-track .text-link { margin-top: 28px; }

.gets-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.gets-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.gets-list li { display: flex; gap: 14px; color: var(--text); }
.gets-list .icon { margin-top: 3px; color: var(--good); }

.fit-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.fit-statement { margin-top: 16px; color: var(--text); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 300; line-height: 1.2; letter-spacing: -0.03em; }
.not-card { padding: clamp(28px, 4vw, 40px); border-radius: var(--radius-card); background: var(--ink-2); color: var(--on-ink-muted); }
.not-card h3 { color: var(--on-ink); }
.not-card p { margin-top: 12px; }

.in-dev { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-top: 24px; padding: 28px 32px; border: 1px dashed var(--line-strong); border-radius: var(--radius-card); }
.in-dev h2 { font-size: 19px; letter-spacing: -0.015em; }
.in-dev p { max-width: 60ch; }

/* How We Build */

.manifesto { margin-top: clamp(40px, 5vw, 56px); border-bottom: 1px solid var(--line-strong); }
.manifesto li { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px 40px; align-items: baseline; padding: 36px 0; border-top: 1px solid var(--line-strong); }
.manifesto h3 { font-size: clamp(1.75rem, 1.15rem + 2.2vw, 3rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.04em; }
.manifesto h3 b { font-weight: 700; }

.redaction-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.redaction-grid .lede { margin-top: 20px; }
.specimen { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-frame); }
.specimen-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 600; }
.specimen-group { padding: 10px 24px; background: var(--paper-2); color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: center; padding: 11px 24px; border-bottom: 1px dashed var(--line); font-size: 15px; }
.srow:last-child { border-bottom: 0; }
.srow dt { color: var(--text-muted); }
.srow dd { color: var(--text); font-family: var(--mono); font-size: 14px; }

.guards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 56px); }
.guard { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.guard h3 { font-size: 18px; }
.guard p { margin-top: 8px; font-size: 15px; }
.guard .icon { margin-bottom: 18px; color: var(--brand-deep); }
.guard-lg { grid-column: span 2; border-color: var(--ink-2); background: var(--ink-2); color: var(--on-ink-muted); }
.guard-lg h3 { color: var(--on-ink); }
.guard-value { display: block; margin-bottom: 20px; color: var(--on-ink); font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem); font-weight: 300; line-height: 1; letter-spacing: -0.04em; }

.law-list { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line-strong); }
.law-list li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 12px 40px; padding: 28px 0; border-bottom: 1px solid var(--line-strong); }
.law-list h3 { font-size: 20px; }

/* About */

.statement { max-width: 22ch; color: var(--text); font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.25rem); font-weight: 300; line-height: 1.12; letter-spacing: -0.035em; }
.statement b { font-weight: 700; }
.statement-follow { max-width: 56ch; margin-top: 28px; font-size: var(--step-lede); }

.cap-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 56px); }
.cap-tile { padding: clamp(28px, 3.4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.cap-tile h3 { display: flex; align-items: center; gap: 12px; font-size: 21px; }
.cap-tile h3 .icon { color: var(--brand-deep); }
.cap-tile p { margin-top: 12px; }
.cap-tile.tone-tint { border-color: transparent; background: var(--brand-tint); }
.cap-tile.tone-ink { border-color: var(--ink-2); background: var(--ink-2); color: var(--on-ink-muted); }
.cap-tile.tone-ink h3 { color: var(--on-ink); }
.cap-tile.tone-ink h3 .icon { color: #ff9a57; }
.cap-tile.tone-ink a { color: var(--on-ink); }

.timeline { position: relative; margin-top: clamp(40px, 5vw, 64px); padding-top: 40px; }
.timeline-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.timeline-list li { position: relative; }
.timeline-list li::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--brand);
  border-radius: 3px;
  background: var(--paper-2);
}
.timeline-list h3 { font-size: 20px; }
.timeline-list p { margin-top: 10px; font-size: 15px; }

/* Contact */

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  margin-top: 36px;
  border-bottom: 3px solid var(--brand);
  color: var(--text);
  font-size: clamp(1.75rem, 0.9rem + 3.6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.contact-email .icon { width: 0.7em; height: 0.7em; color: var(--brand); transition: transform 0.3s var(--ease-out); }
.contact-email:hover .icon { transform: translate(3px, -3px); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.contact-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.contact-card .icon { margin-bottom: 20px; color: var(--brand-deep); }
.contact-card h2 { font-size: 18px; letter-spacing: -0.015em; }
.contact-card p, .contact-card address { margin-top: 8px; color: var(--text); }
.contact-card .actions { margin-top: 20px; }

/* Legal and privacy */

.doc-col > * { max-width: 760px; }
.block + .block { margin-top: clamp(48px, 6vw, 72px); }
.block h2 { margin-bottom: 20px; font-size: 26px; }
.doc-list { border-top: 1px solid var(--line); }
.doc-list li { border-bottom: 1px solid var(--line); }
.doc-link { display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 12px 6px; text-decoration: none; transition: background-color 0.2s; }
.doc-link:hover { background: var(--paper-2); }
.doc-title { color: var(--text); font-weight: 600; }
.doc-meta { margin-left: auto; color: var(--text-faint); font-size: 14px; text-align: right; overflow-wrap: anywhere; }
.doc-link .icon { width: 16px; height: 16px; color: var(--text-faint); }
.notice-card { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.notice-card p { font-size: 15px; }
.notice-card p + p { margin-top: 16px; }
.prose p + p { margin-top: 18px; }
.prose p { max-width: 65ch; font-size: 17px; }

/* 404 */

.not-found { padding: clamp(80px, 12vw, 160px) 0; }
.not-found .lede { margin-top: 20px; }
.not-found .actions { margin-top: 32px; }

/* Motion: one orchestrated load on Home, quiet reveals on scroll. */

@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow, .hero-title, .hero-copy { animation: rise 0.9s var(--ease-out) both; }
  .hero-title { animation-delay: 0.06s; }
  .hero-copy { animation-delay: 0.16s; }
  .stage { animation: stage-in 1.1s var(--ease-out) 0.1s both; }
  .stage .browser { animation: rise-far 1.2s var(--ease-out) 0.3s both; }
  .hero-phone { animation: rise-far 1.2s var(--ease-out) 0.48s both; }
  .stage-note { animation: rise 0.8s var(--ease-out) 0.8s both; }

  @supports (animation-timeline: view()) {
    /* Slides into place within the first 200px of entering. No fade: text keeps full
       contrast even while an element straddles the fold. */
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 200px; }
    .redact { animation: redact linear both; animation-timeline: view(); animation-range: entry 60% cover 35%; }
    .flow-fill { animation: draw linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
  }
}

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes rise-far { from { opacity: 0; transform: translateY(44px); } }
@keyframes stage-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes reveal { from { transform: translateY(36px); } }
@keyframes redact { from { transform: scaleX(0); } }
@keyframes draw { from { transform: scaleX(0); } }

/* Responsive */

@media (max-width: 1080px) {
  .tile-report { grid-column: span 12; }
  .tile-phone { grid-column: span 5; grid-row: span 2; }
  .tile-phone .tile-media { min-height: 0; }
  .tile-scores, .tile-tiers { grid-column: span 7; }
  .tile-alerts { grid-column: span 12; }
  .tile-alerts .tile-media img { width: 120%; }
  .guards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
  .mega { display: none; }
  .nav-link .icon { display: none; }
  .header-demo { display: none; }
  .decoder-flow { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .printout { max-width: 520px; }
  .flow-steps, .timeline-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .flow-track { display: none; }
  .header-inner { gap: 20px; }
  .flow-step::before, .timeline-list li::before { top: -28px; }
  .product-panel { grid-template-columns: minmax(0, 1fr); }
  .tour-card { position: static; grid-template-columns: minmax(0, 1fr); min-height: 0; }
}

@media (hover: none) {
  .mega { display: none; }
}

@media (max-width: 759px) {
  :root { --header-h: 0px; }
  .site-header { position: static; }
  .header-inner { flex-wrap: wrap; gap: 0 12px; height: auto; padding-top: 8px; padding-bottom: 4px; }
  .header-actions { margin-left: auto; }
  .primary-nav { order: 3; flex-basis: 100%; }
  .nav-list { flex-wrap: wrap; margin-left: -9px; }
  .nav-link { height: 44px; padding: 0 9px; }
  .btn { min-height: 46px; }

  .hero-grid, .cap-grid, .company-grid, .cta-grid, .footer-grid, .gets-grid, .fit-grid, .redaction-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .hero-visual { grid-column: 1; }
  .hero-visual { margin-right: calc(-1 * var(--gutter)); margin-left: calc(-1 * var(--gutter)); }
  .stage { height: 340px; padding: 24px 0 0 20px; border-radius: 0; }
  .stage .browser { width: 620px; }
  .stage-note { position: static; display: block; margin: 52px var(--gutter) 0; padding: 0; background: none; color: var(--text-faint); font-size: 13px; }
  .hero-phone { right: 18px; bottom: -36px; left: auto; width: 128px; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-report, .tile-phone, .tile-scores, .tile-tiers, .tile-alerts { grid-column: auto; grid-row: auto; }
  .tile { min-height: 280px; }
  .tile-report .tile-media img { width: 150%; }
  .tile-phone .phone { width: 200px; }

  .cap-intro { position: static; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principle:nth-child(odd), .principle:nth-child(even) { padding-right: 0; padding-left: 0; border-right: 0; }
  .kv-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .record-head, .kv { padding-right: 20px; padding-left: 20px; }

  .flow-steps, .timeline-list, .steps-list, .gets-list { grid-template-columns: minmax(0, 1fr); }
  .steps-list { row-gap: 56px; }
  .steps-track .flow-track { display: none; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }

  .product-stage { min-height: 420px; }
  .product-stage .phone { width: 170px; }
  .product-stage .phone-a { left: 8%; }
  .product-stage .phone-b { left: 48%; }
  .manifesto li, .law-list li { grid-template-columns: minmax(0, 1fr); }
  .guards, .cap-tiles { grid-template-columns: minmax(0, 1fr); }
  .guard-lg { grid-column: auto; }
  .in-dev { padding: 24px; }
  .doc-link { flex-wrap: wrap; gap: 2px 12px; }
  .doc-title { flex-basis: 100%; }
  .doc-meta { margin-left: 0; text-align: left; }
  .doc-link .icon { display: none; }
}
