/* Fonts are self-hosted: no third-party requests, no cookie banner needed. */
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #F2F5F3;
  --surface: #FFFFFF;
  --ink: #17302A;
  --slate: #566761;
  --rule: #CDD7D2;
  --matched: #2E7A57;
  --matched-wash: #E3F0E9;
  --flag: #9A6414;
  --flag-wash: #FBF0DC;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --measure: 38rem;
  --wide: 72rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--matched); }
:focus-visible { outline: 3px solid var(--matched); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 16ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); max-width: 22ch; }
h3 { font-size: 1.25rem; }
p, li { max-width: var(--measure); }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--slate); max-width: 34rem; }
.small { font-size: 0.92rem; color: var(--slate); }
.num { font-family: var(--serif); font-variant-numeric: tabular-nums lining-nums; }

.wrap { width: min(100% - 2rem, var(--wide)); margin-inline: auto; }
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section + section { border-top: 1px solid var(--rule); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 0; flex-wrap: wrap; }
.mark { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; margin-right: auto; }
.mark b { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.mark span { font-size: 0.82rem; color: var(--slate); }
.nav { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: 0.98rem; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--matched); text-decoration-thickness: 2px; }
.menu { display: none; }
@media (max-width: 860px) {
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 0.5rem 0 1rem; }
  .menu { display: block; background: none; border: 1px solid var(--rule); border-radius: 6px; padding: 0.4rem 0.8rem; font: inherit; color: var(--ink); cursor: pointer; }
  .site-header.open .nav { display: flex; }
}

/* Buttons */
.btn { display: inline-block; font: 700 1rem/1 var(--sans); padding: 0.95rem 1.3rem; border-radius: 6px; text-decoration: none; border: 2px solid var(--ink); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--matched); border-color: var(--matched); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { color: var(--matched); border-color: var(--matched); }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.nav .btn { padding: 0.6rem 0.9rem; font-size: 0.95rem; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.deadline { font-size: 0.95rem; color: var(--slate); }

/* The ledger: the one memorable element */
.ledger { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 1.25rem 1.25rem 1rem; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(23,48,42,.45); }
.ledger-head { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--slate); padding-bottom: 0.6rem; border-bottom: 1px solid var(--rule); }
.ledger table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ledger td { padding: 0.7rem 0; border-bottom: 1px dashed var(--rule); vertical-align: top; }
.ledger td:last-child { text-align: right; }
.ledger .where { display: block; font-size: 0.82rem; color: var(--slate); }
.link-line { position: relative; height: 1.4rem; }
.verdict { margin-top: 0.9rem; display: grid; gap: 0.5rem; }
.verdict p { margin: 0; display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0.8rem; border-radius: 6px; font-size: 0.95rem; max-width: none; }
.v-wrong { background: var(--flag-wash); color: var(--flag); }
.v-right { background: var(--matched-wash); color: var(--matched); }
.v-wrong .num, .v-right .num { font-size: 1.15rem; font-weight: 600; }
.ledger-foot { margin-top: 0.8rem; font-size: 0.82rem; color: var(--slate); }

/* Motion: one orchestrated moment on load. */
.js .v-right { opacity: 0; transform: translateY(6px); }
.js .ledger.resolved .v-wrong { text-decoration: line-through; opacity: 0.55; transition: opacity .5s ease; }
.js .ledger.resolved .v-right { opacity: 1; transform: none; transition: opacity .6s ease .35s, transform .6s ease .35s; }
@media (prefers-reduced-motion: reduce) {
  .js .v-right { opacity: 1; transform: none; }
  .js .ledger.resolved .v-wrong, .js .ledger.resolved .v-right { transition: none; }
}

/* Lists and blocks */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }
.symptoms { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--rule); }
.symptoms li { padding: 0.9rem 0 0.9rem 2rem; border-bottom: 1px solid var(--rule); position: relative; max-width: none; }
.symptoms li::before { content: ""; position: absolute; left: 0.2rem; top: 1.25rem; width: 0.8rem; height: 0.8rem; border: 2px solid var(--flag); border-radius: 50%; }
.ticks { list-style: none; padding: 0; margin: 1rem 0; }
.ticks li { padding: 0.35rem 0 0.35rem 1.8rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 0.75rem; width: 0.9rem; height: 0.45rem; border-left: 2px solid var(--matched); border-bottom: 2px solid var(--matched); transform: rotate(-45deg); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 0.9rem; }
.steps li::before { content: counter(s); font: 600 1.6rem/1 var(--serif); display: block; margin-bottom: 0.5rem; color: var(--matched); }
.steps b { display: block; margin-bottom: 0.25rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.private { background: var(--ink); color: var(--paper); }
.private h2, .private a { color: var(--paper); }
.private .lede { color: #C9D6D0; }
.private .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.private .btn-primary:hover { background: var(--matched-wash); }
section.private + section { border-top: 0; }

.safety { display: inline-block; font-size: 0.9rem; color: var(--slate); border-left: 3px solid var(--flag); padding-left: 0.7rem; margin-top: 0.5rem; }

/* Tables */
.price { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.price th, .price td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.price th { font-size: 0.9rem; color: var(--slate); font-weight: 700; background: #F8FAF9; }
.price td:last-child, .price th:last-child { text-align: right; white-space: nowrap; }
.price .num { font-size: 1.2rem; font-weight: 600; }
.price tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .price thead { display: none; }
  .price tr { display: block; border-bottom: 1px solid var(--rule); padding: 0.6rem 0; }
  .price td { display: block; border: 0; padding: 0.25rem 1rem; text-align: left !important; }
}

.faq details { border-bottom: 1px solid var(--rule); padding: 1rem 0; max-width: 46rem; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 0.7rem 0 0; }

.quote { font: 400 1.35rem/1.45 var(--serif); max-width: 34rem; }

.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }

.photo { aspect-ratio: 4/5; max-width: 20rem; background: repeating-linear-gradient(45deg, #E3E9E6 0 12px, #EDF1EF 12px 24px); border: 1px dashed var(--slate); border-radius: 10px; display: grid; place-items: center; color: var(--slate); font-size: 0.9rem; }

.guide-list { list-style: none; padding: 0; margin: 1.5rem 0; border-top: 1px solid var(--rule); }
.guide-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); max-width: 46rem; }
.guide-list a { font: 600 1.2rem/1.3 var(--serif); text-decoration: none; }
.guide-list span { display: block; font-size: 0.92rem; color: var(--slate); margin-top: 0.25rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; font-size: 0.9rem; color: var(--slate); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.verdict p span:last-child { white-space: nowrap; }
@media (max-width: 480px) {
  .verdict p { flex-direction: column; gap: 0.2rem; }
  .ledger-head { flex-direction: column; gap: 0.2rem; }
}
.ledger { margin: 0; }
/* Three pillars under the hero */
section.pillars { padding: 0 0 clamp(2.5rem, 5vw, 4rem); border-top: 0; }
.pillar-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar-list li { max-width: none; border-top: 2px solid var(--matched); padding-top: 0.9rem; color: var(--slate); }
.pillar-list b { display: block; font: 600 1.2rem/1.3 var(--serif); color: var(--ink); margin-bottom: 0.35rem; }
@media (max-width: 800px) { .pillar-list { grid-template-columns: 1fr; } }
section.pillars + section { border-top: 1px solid var(--rule); }
.price + h2 { margin-top: 3rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.legal .price td:last-child, .legal .price th:last-child { text-align: left; white-space: normal; }
/* Scenario switcher in the hero */
.sc-tabs { display: flex; flex-wrap: nowrap; gap: 0.4rem; margin: 0 -1.25rem 0.9rem; padding: 0 1.25rem 0.2rem; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1.25rem, #000 calc(100% - 2.5rem), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 1.25rem, #000 calc(100% - 2.5rem), transparent 100%); }
.sc-tabs::-webkit-scrollbar { display: none; }
.sc-tab { flex: 0 0 auto; white-space: nowrap; font: 700 0.82rem/1 var(--sans); color: var(--slate); background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 0.45rem 0.75rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.sc-tab:hover { color: var(--ink); border-color: var(--slate); }
.sc-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slides { display: grid; overflow: hidden; }
.slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateX(24px); }
.slide.active { visibility: visible; opacity: 1; transform: none; transition: opacity .35s ease, transform .35s ease; }
.js .slide .v-right { opacity: 0; transform: translateY(6px); }
.js .slide.resolved .v-wrong { text-decoration: line-through; opacity: 0.55; transition: opacity .4s ease; }
.js .slide.resolved .v-right { opacity: 1; transform: none; transition: opacity .45s ease .2s, transform .45s ease .2s; }
.ledger-note { margin-top: 0.8rem; padding-top: 0.6rem; border-top: 1px solid var(--rule); font-size: 0.8rem; color: var(--slate); }
.sc-progress { height: 2px; background: var(--rule); margin-top: 0.7rem; overflow: hidden; }
.sc-progress i { display: block; height: 100%; width: 0; background: var(--matched); }
.sc-progress.run i { width: 100%; transition: width linear var(--sc-dur, 4.5s); }
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.active { transform: none; transition: none; }
  .js .slide .v-right { opacity: 1; transform: none; }
  .js .slide.resolved .v-wrong, .js .slide.resolved .v-right { transition: none; }
  .sc-progress { display: none; }
}
/* Keep the scrolling tab row from widening the hero */
.hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.ledger { min-width: 0; max-width: 100%; }
.ledger-note { border-top: 0; padding-top: 0; }

/* Show only the active scenario label, with arrows and a counter */
.sc-nav { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.9rem; }
.sc-nav .sc-tabs { margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.sc-tab:not([aria-selected="true"]) { display: none; }
.sc-tab[aria-selected="true"] { animation: scPill .35s ease; }
@keyframes scPill { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.sc-ctrl { display: flex; align-items: center; gap: 0.35rem; }
.sc-count { font-size: 0.8rem; color: var(--slate); margin-right: 0.3rem; font-variant-numeric: tabular-nums; }
.sc-arrow { width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--rule); background: transparent; color: var(--ink); font: 400 1.25rem/1 var(--serif); cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; }
.sc-arrow:hover { border-color: var(--slate); }
@media (prefers-reduced-motion: reduce) { .sc-tab[aria-selected="true"] { animation: none; } }
.pricing-more { margin-top: 3rem; align-items: start; }
.pricing-more h2 { margin-top: 0; }
.price + .pricing-more { margin-top: 3rem; }
.included { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 1.5rem 1.5rem 0.75rem; }
.included h2 { font-size: 1.35rem; }
.included .ticks { margin-top: 0.5rem; }
/* Pricing hero: worked-example receipt */
.pricing-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.receipt-line, .receipt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.receipt-line { margin-top: 0.9rem; padding: 0.55rem 0.75rem; font-size: 0.95rem; color: var(--slate); }
.receipt-total { margin-top: 0.2rem; padding: 0.8rem 0.75rem 0.3rem; border-top: 3px double var(--ink); font-weight: 600; color: var(--ink); }
.receipt-total .num { font-size: 1.7rem; color: var(--matched); }
.js .receipt .receipt-total { opacity: 0; transform: translateY(6px); }
.js .receipt.resolved .receipt-total { opacity: 1; transform: none; transition: opacity .6s ease .9s, transform .6s ease .9s; }
@media (prefers-reduced-motion: reduce) { .js .receipt .receipt-total { opacity: 1; transform: none; transition: none; } }
section.pricing-hero + section { border-top: 0; padding-top: 0; }
.pricing-hero { padding-bottom: 3rem; }
/* Punch line: one short, memorable line per page at most */
.punch { font: 600 1.3rem/1.35 var(--serif); color: var(--ink); border-left: 3px solid var(--matched); padding-left: 0.9rem; margin-top: 1.5rem; max-width: 30rem; }
section.pricing-hero + section .price { margin-top: 0; }
.private .private-alt { color: #C9D6D0; font-size: 1.2rem; margin-top: -0.25rem; }
