/* Exacta landing (alternative) — tokens per spec §3. Color whitelist: nine hexes + the §9.4 shadow rgba only. */

:root {
  --paper: #FAF7F1;
  --paper-2: #FFFEFA;
  --ink: #17150F;
  --ink-2: #4D4A41;
  --ink-3: #8A8577;
  --rule: #E5E0D3;
  --violet: #5A2FE0;
  --violet-ink: #46249C;
  --violet-tint: #EFEAFB;

  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --radius-btn: 4px;
  --radius-card: 8px;

  /* type scale — mobile (≤640) */
  --fs-display: 38px;
  --lh-display: 1.12;
  --fs-h2: 29px;
  --lh-h2: 1.2;
  --fs-h3: 20px;
  --fs-lede: 17px;
  --fs-body: 16px;
  --fs-pf-label: 21px;
  --fs-figure: 16px;
  --fs-figure-lg: 26px;
  --fs-trust-figure: 20px;

  --section-pad: 72px;
  --hero-pad-top: 88px;
  --gutter: 24px;
  --nav-h: 60px;
}

/* tablet 641–1023 — mobile layout, wider gutters, desktop type at 90% (floored at the mobile size) */
@media (min-width: 641px) {
  :root {
    --fs-display: 54px;
    --lh-display: 1.06;
    --fs-h2: 34px;
    --lh-h2: 1.16;
    --fs-pf-label: 22px;
    --fs-figure-lg: 27px;
    --fs-trust-figure: 22px;
    --gutter: 40px;
  }
}

@media (min-width: 1024px) {
  :root {
    --fs-display: 60px;
    --fs-h2: 38px;
    --fs-h3: 22px;
    --fs-lede: 19px;
    --fs-body: 17px;
    --fs-pf-label: 24px;
    --fs-figure: 18px;
    --fs-figure-lg: 30px;
    --fs-trust-figure: 24px;
    --section-pad: 112px;
    --hero-pad-top: 128px;
    --nav-h: 72px;
  }
}

/* ---------- base ---------- */

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--violet-ink);
  outline-offset: 2px;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose { max-width: 700px; }

main > section { padding-block: var(--section-pad); }

#leaks, #how, #faq { scroll-margin-top: 96px; }

/* ---------- type ---------- */

h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: 600;
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink-2);
}

.eyebrow {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

em.pf {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.pf-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: var(--fs-pf-label);
  line-height: 1.25;
}

.figure-lg {
  font-size: var(--fs-figure-lg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--violet);
}

section .eyebrow { margin-bottom: 16px; }
section h2 { margin-bottom: 24px; }
.prose p + p { margin-top: 16px; }

/* ---------- skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  text-decoration: none;
  border: 1px solid var(--rule);
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------- §8.0 nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

.nav.scrolled { border-bottom-color: var(--rule); }

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
  white-space: nowrap;
}

.nav-links { display: none; }

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    gap: 32px;
    margin-left: auto;
    margin-right: 32px;
  }
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- §9.1 buttons ---------- */

.btn {
  display: inline-block;
  background: var(--violet);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  padding: 16px 28px;
  border: 0;
  border-radius: var(--radius-btn);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.btn:hover,
.btn:active { background: var(--violet-ink); }

.btn-compact {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .btn-compact { min-height: 44px; }
}

/* ---------- §6 CTA variants (no-JS default: direct anchor) ---------- */

.cta-handoff { display: none; }
.cta-handoff-jump { display: none; }

[data-cta="handoff"] .cta-direct { display: none; }
[data-cta="handoff"] .cta-handoff { display: block; }
[data-cta="handoff"] .cta-handoff-jump { display: inline-flex; }

/* ---------- §8.1 hero ---------- */

.hero {
  padding-top: var(--hero-pad-top);
  padding-bottom: var(--section-pad);
}

.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 24px; }
.cta-group { margin-bottom: 12px; }

.microline {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.quiet {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-2);
}

.phone-link {
  color: var(--violet-ink);
  text-decoration: underline;
  transition: color 160ms ease;
}

.phone-link:hover { color: var(--ink); }

/* ---------- §9.6 handoff form ---------- */

.handoff-intro {
  color: var(--ink-2);
  margin-bottom: 16px;
  max-width: 460px;
}

.handoff-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

.handoff-form input[type="email"] {
  width: 100%;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-btn);
  padding: 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
}

.handoff-form input[type="email"]:focus-visible {
  outline: none;
  border-color: var(--violet-ink);
}

.handoff-form input.invalid { border-color: var(--ink); }

.handoff-form .btn { width: 100%; }

.handoff-helper {
  font-size: 14px;
  line-height: 1.45;
  font-style: italic;
  font-weight: 500;
  color: var(--ink-2);
}

.handoff-success {
  color: var(--ink);
  max-width: 460px;
}

/* ---------- §8.2 trust strip ---------- */

.trust { padding-block: 0; }

.trust-items {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.trust-items li { padding: 24px 0; }
.trust-items li + li { border-top: 1px solid var(--rule); }

.trust-figure {
  display: block;
  font-size: var(--fs-trust-figure);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.trust-label {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-2);
  margin-top: 4px;
}

@media (min-width: 1024px) {
  .trust-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .trust-items li { padding: 24px 32px; }
  .trust-items li:first-child { padding-left: 0; }
  .trust-items li + li {
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
}

/* ---------- §8.4 ledger ---------- */

.ledger {
  margin-top: 48px;
  border-top: 2px solid var(--ink);
}

.entry { padding-block: 32px; }
.entry + .entry { border-top: 1px solid var(--rule); }

.entry-num {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.entry-desc {
  max-width: 520px;
  margin-top: 12px;
}

@media (min-width: 1024px) {
  .entry {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
  }
  .entry-desc { margin-top: 0; }
}

.ledger-total {
  margin-top: 48px;
  border-top: 2px solid var(--ink);
  padding-top: 32px;
}

/* 20px floor so the Playfair em inside the total stays legal at every breakpoint */
.ledger-total p {
  font-size: 20px;
  line-height: 1.55;
}

/* ---------- §8.5 / §9.5 blank-statistic line ---------- */

.blank-stat { margin-block: 64px 0; padding-top: 64px; }

.blank-stat-label {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.blank-stat-rule { border-top: 2px solid var(--ink); }

.blank-stat-annotation {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-3);
  text-align: right;
  margin-top: 8px;
}

/* ---------- §8.6 steps ---------- */

.steps { margin-top: 48px; }

.step-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.step h3 { margin-bottom: 12px; }

.step + .step {
  border-top: 1px solid var(--rule);
  margin-top: 24px;
  padding-top: 24px;
}

@media (min-width: 1024px) {
  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .step { padding-right: 32px; }
  .step + .step {
    border-top: 0;
    border-left: 1px solid var(--rule);
    margin-top: 0;
    padding-top: 0;
    padding-left: 32px;
  }
}

.how-quiet { margin-top: 48px; }

/* ---------- §9.4 specimen card ---------- */

.specimen {
  position: relative;
  max-width: 560px;
  margin-top: 48px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(23, 21, 15, 0.06);
  padding: 20px;
}

@media (min-width: 641px) {
  .specimen { padding: 28px; }
}

.specimen-stamp {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  border: 1px solid var(--ink-3);
  padding: 4px 8px;
}

.specimen-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-right: 96px;
  padding-bottom: 16px;
}

.specimen-brand {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.specimen-time {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
}

.specimen-block {
  border-top: 1px solid var(--rule);
  padding-block: 16px;
}

.specimen-label {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.specimen-row-quiet {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.specimen-row-quiet + .specimen-row-quiet { margin-top: 8px; }

.finding {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.finding + .finding { margin-top: 12px; }

.finding-figure {
  font-size: var(--fs-figure);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--violet-ink);
  white-space: nowrap;
}

/* "6 renewals" is a count, not money — violet marks money only */
.finding-figure-count { color: var(--ink); }

.finding-text {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
  flex: 1;
}

.finding-action {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .finding { display: block; }
  .finding-text { display: block; margin-top: 4px; }
  .finding-action { display: block; margin-top: 4px; }
}

.specimen-total {
  border-top: 2px solid var(--ink);
  padding-block: 16px;
}

.specimen-total .figure-lg { margin-top: 4px; }

.specimen-footnote {
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-3);
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}

/* ---------- §8.9 office note ---------- */

.note-block {
  max-width: 620px;
  border-left: 2px solid var(--ink);
  padding-left: 24px;
}

.note-block .eyebrow { margin-bottom: 16px; }

/* ---------- §8.10 FAQ ---------- */

.faq-list {
  margin-top: 48px;
  border-bottom: 1px solid var(--rule);
}

.faq-list details { border-top: 1px solid var(--rule); }

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-block: 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

@media (min-width: 1024px) {
  .faq-list summary { font-size: 18px; }
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  color: var(--ink-3);
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.faq-list details[open] summary::after { content: '−'; }

.faq-list details > p {
  max-width: 620px;
  color: var(--ink-2);
  padding-bottom: 24px;
}

/* ---------- §8.11 final CTA ---------- */

.final-cta h2 { margin-bottom: 24px; }
.final-cta .lede { margin-bottom: 24px; }

/* ---------- §8.12 footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  padding-block: 48px;
}

.footer-zones {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1024px) {
  .footer-zones {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-2);
  margin-top: 8px;
}

.footer-contact,
.footer-legal {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-2);
}

.footer-contact a,
.footer-legal a {
  color: var(--ink-2);
  text-decoration: underline;
  transition: color 160ms ease;
}

.footer-contact a:hover,
.footer-legal a:hover { color: var(--ink); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom p {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-3);
}

@media (min-width: 1024px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
  }
}

/* ---------- legal pages (terms.html, privacy.html) ---------- */

.nav-static {
  position: static;
  border-bottom: 1px solid var(--rule);
}

.wordmark-link { text-decoration: none; }

.legal {
  max-width: 780px;
  margin-inline: 0;
  padding-block: 64px 96px;
}

.legal h1 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  margin-bottom: 24px;
}

.legal h2 {
  font-size: var(--fs-h3);
  margin: 48px 0 16px;
}

.legal p { margin: 0 0 16px; }

.legal ul {
  margin: 0 0 16px;
  padding-left: 24px;
  list-style: disc;
}

.legal li { margin-bottom: 8px; }

.legal a {
  color: var(--violet-ink);
  text-decoration: underline;
  transition: color 160ms ease;
}

.legal a:hover { color: var(--ink); }

.legal table {
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.5;
}

.legal th,
.legal td {
  border: 1px solid var(--rule);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.legal th {
  font-weight: 600;
  background: var(--paper-2);
}

.legal hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 32px 0;
}

.footer-bottom-legal {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.footer-bottom-legal a {
  color: var(--ink-3);
  text-decoration: underline;
  transition: color 160ms ease;
}

.footer-bottom-legal a:hover { color: var(--ink); }

/* ---------- §3.4 motion ---------- */

.motion main > section {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 280ms ease-out, transform 280ms ease-out;
}

.motion main > section.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .motion main > section {
    opacity: 1;
    transform: none;
  }
}
