@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f2f1ec;
  --card: #fbfbf8;
  --ink: #121412;
  --ink-2: #3d413d;
  --muted: #5a5f5a;
  --line: #d9d8d1;
  --line-soft: #e6e5df;
  --accent: #d7f24a;
  --accent-ink: #121412;
  --watch: #a8470a;
  --watch-bg: #f8e6d6;
  --dark: #121412;
  --dark-text: #ecebe5;
  --dark-muted: #a6aaa3;
  --dark-line: #2c302c;
  --radius: 14px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -0.01em; }
.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.015em; text-decoration: none; }
.mark { width: 22px; height: 22px; fill: var(--ink); }
.mark rect:last-child { fill: var(--ink); }
.top-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.top-nav a { text-decoration: none; color: var(--ink-2); }
.top-nav a:hover { color: var(--ink); text-decoration: underline; }
.top-nav .top-cta { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 1px; }
.top-nav .top-cta:hover { text-decoration: none; border-bottom-color: var(--ink); }
@media (max-width: 760px) {
  .top-nav a:not(.top-cta) { display: none; }
}

/* Hero */
.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 72px; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -0.04em; line-height: 1.02; max-width: 14em; text-wrap: balance; }
.lede { margin-top: 26px; font-size: 1.18rem; color: var(--ink-2); max-width: 33em; }
@media (max-width: 920px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}

/* Waitlist form */
.join { margin-top: 36px; max-width: 520px; }
.join > label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.join-row { display: flex; gap: 8px; flex-wrap: wrap; }
.join input[type="email"] {
  flex: 1 1 240px; min-width: 0; height: 54px; padding: 0 16px;
  border: 1px solid #b9b8b0; border-radius: 10px; background: #fff;
  font: inherit; font-size: 17px; color: var(--ink);
}
.join input[type="email"]::placeholder { color: #8a8e88; }
.join input[type="email"]:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.join input[aria-invalid="true"] { border-color: var(--watch); }
.join button, .btn {
  flex: 0 0 auto; height: 54px; padding: 0 22px; border: 0; border-radius: 10px;
  background: var(--ink); color: var(--paper); font: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: transform .08s ease, background .15s ease;
}
.join button:hover { background: #2a2e2a; }
.join button:active { transform: translateY(1px); }
.join button[disabled] { opacity: .6; cursor: progress; }
.join-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.join-note.is-error { color: var(--watch); font-weight: 500; }
@media (max-width: 520px) { .join button { width: 100%; } }

.joined { margin-top: 36px; max-width: 520px; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.joined h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.joined h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--ink) inset; flex: none; }
.joined p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.share { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.share input { flex: 1 1 220px; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: 14px; background: #fff; color: var(--ink); }
.share button { height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 8px; background: transparent; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--ink); }
.share button:hover { background: var(--accent); }
.closer .joined { background: transparent; border-color: var(--line); }

/* Sample report sheet */
.sheet {
  margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px; box-shadow: 0 1px 0 rgba(18,20,18,.04), 0 24px 48px -28px rgba(18,20,18,.28);
  transform: rotate(0.6deg);
}
@media (max-width: 920px) { .sheet { transform: none; } }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.sheet-head .mono { text-transform: none; letter-spacing: 0; }
.sheet-title { margin-top: 14px; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.chart { margin-top: 20px; padding: 16px 0 6px; border-top: 1px solid var(--line-soft); }
.chart-label { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.chart-label strong { color: var(--ink); font-weight: 600; font-size: 15px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line-soft); stroke-width: 1; }
.chart .trend { fill: none; stroke: var(--ink); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--accent); stroke: var(--ink); stroke-width: 2; }

.rows { margin: 8px 0 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.row dt { color: var(--ink-2); }
.row dd { margin: 0; }
.row .mono { font-size: 13px; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--line-soft); color: var(--ink-2); min-width: 54px; text-align: center; }
.tag-watch { background: var(--watch-bg); color: var(--watch); }
@media (max-width: 400px) { .row { grid-template-columns: minmax(0, 1fr) auto; } .row .mono { grid-column: 1; grid-row: 2; color: var(--muted); } .row dt { grid-column: 1; } .row .tag { grid-column: 2; grid-row: 1 / span 2; } }

.sheet-action { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--ink); color: var(--dark-text); font-size: 14px; line-height: 1.5; }
.sheet-action .mono { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 4px; }

/* Sections */
.section { padding: 104px 0; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .section { padding: 72px 0; } }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -0.035em; max-width: 14em; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; max-width: 30em; }
@media (max-width: 820px) { .section-head { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 40px; } }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.features li { padding: 24px 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.features li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.features .num { font-size: 13px; color: var(--muted); }
.features h3 { font-size: 1.2rem; }
.features p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .features li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: minmax(0, 1fr); row-gap: 0; border-top: 0; }
  .features li, .features li + li { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .features li:first-child { border-top-color: var(--ink); }
}

.quote-band { background: var(--card); }
.quote-band blockquote { margin: 0; max-width: 980px; }
.quote-band blockquote p { font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; text-indent: -0.42em; }
.quote-band footer { margin-top: 22px; font-size: 13px; color: var(--muted); }

.dark { background: var(--dark); color: var(--dark-text); border-top: 0; }
.dark .section-head p { color: var(--dark-muted); }
.ledger { margin: 0; border-top: 1px solid var(--dark-muted); }
.ledger > div { display: grid; grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--dark-line); }
.ledger dt { font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); padding-top: 4px; }
.ledger dd { margin: 0; font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.45; letter-spacing: -0.01em; }
@media (max-width: 640px) { .ledger > div { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
.plan { padding: 30px 28px 34px; display: flex; flex-direction: column; gap: 12px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan .price { color: var(--muted); font-size: 15px; }
.plan .price .amount { font-size: 2.6rem; color: var(--ink); font-weight: 600; letter-spacing: -0.04em; font-feature-settings: "tnum"; margin-right: 4px; }
.plan > p:last-child { color: var(--ink-2); font-size: 15.5px; }
.plan-main { background: #fff; box-shadow: inset 0 4px 0 var(--accent); }
.save { font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 3px 8px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); }
@media (max-width: 820px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
}

.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
.faq h2 { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -0.035em; }
.faq-list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); max-width: 38em; }
@media (max-width: 820px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

.closer { background: var(--accent); border-top: 0; }
.closer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.closer h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); letter-spacing: -0.04em; line-height: 1.02; max-width: 9em; }
.closer .join { margin-top: 0; }
.closer .join-note { color: var(--ink-2); }
.closer .join input[type="email"] { border-color: var(--ink); }
@media (max-width: 820px) { .closer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

.foot { padding: 32px 0 44px; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 24px; }

/* Plain content pages (privacy) */
.doc { padding: 72px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); letter-spacing: -0.035em; }
.doc .updated { margin-top: 12px; color: var(--muted); font-size: 14px; }
.doc h2 { font-size: 1.35rem; margin-top: 44px; }
.doc p, .doc ul { margin-top: 14px; color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc .callout { margin-top: 28px; padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--ink); }

.page-msg { padding: 120px 0; }
.page-msg h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -0.035em; max-width: 14em; }
.page-msg p { margin-top: 18px; color: var(--ink-2); max-width: 34em; font-size: 1.1rem; }
.page-msg .btn { display: inline-flex; align-items: center; margin-top: 28px; text-decoration: none; }
.page-msg .btn[hidden] { display: none; }
