/* Whole Formula v4. Stand-in fonts and colors until the brand sheet is read.
   Inter for headings, labels and every number; Source Serif 4 for body text. */
:root {
  color-scheme: light;
  --paper: #f6f1e4;
  --card: #fbf8f0;
  --ink: #14261c;
  --ink-soft: #3a4a40;
  --line: #d9e2d6;
  --green: #1f5a3d;
  --green-hi: #174730;
  --gold: #d9a640;
  --gold-hi: #e3b65a;
  --short: #9c2f24;
  --on-dark: #f1ecdd;
  --on-dark-soft: #c9c4b4;
  --radius-card: 16px;
  --radius-input: 10px;
  --shadow-card: 0 12px 32px rgba(20, 38, 28, .10);
  --head: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --section: clamp(56px, 9vw, 112px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.65 var(--body); }
::selection { background: var(--gold); color: var(--ink); }
a { color: var(--green); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.result :focus-visible, .cta-band :focus-visible { outline-color: var(--gold); }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(1120px, 100% - 48px); } }

h1, h2, h3 { font-family: var(--head); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; max-width: 62ch; }
.label { font: 700 0.8rem/1.2 var(--head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.micro { font: 600 0.9375rem/1.4 var(--head); color: var(--ink-soft); }

/* Buttons: one style, one label */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font: 700 1.0625rem/1 var(--head); text-decoration: none; cursor: pointer; box-shadow: 0 6px 16px rgba(20, 38, 28, .22); transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { background: var(--green-hi); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(20, 38, 28, .26); }
.btn-lg { min-height: 60px; padding: 0 36px; font-size: 1.125rem; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; box-shadow: none; }
.btn-light { background: #fff; color: var(--green); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.btn-light:hover { background: #fff; color: var(--green-hi); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); color: var(--ink); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(246, 241, 228, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2); }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; }
.logo { font: 800 1.25rem/1 var(--head); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; padding-block: 12px; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .nav-sec { font: 600 0.9375rem/1 var(--head); color: var(--ink); text-decoration: none; padding-block: 14px; }
.site-nav .nav-sec:hover { color: var(--green); }

/* Hero */
.hero { padding: clamp(64px, 10vw, 112px) 0 clamp(56px, 8vw, 80px); }
.hero-inner { display: grid; justify-items: center; text-align: center; gap: 24px; max-width: 880px; }
.hero h1 { max-width: 16ch; }
.sub { font-size: clamp(1.2rem, 2.2vw, 1.4rem); line-height: 1.5; color: var(--ink-soft); max-width: 44ch; }
.hero .btn-lg { margin-top: 8px; }
.hero .micro { margin-top: -12px; }

/* Sections */
.section { padding-block: var(--section); }
.section.alt { background: var(--card); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; justify-items: center; text-align: center; margin-bottom: 40px; }
.section-head.left { justify-items: start; text-align: left; margin-bottom: 32px; }

/* The formula */
.formula-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1fr; gap: 12px; }
.tile { display: grid; gap: 8px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.tile-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(31, 90, 61, .10); color: var(--green); font-size: 28px; margin-bottom: 8px; }
.tile-letter { font: 800 clamp(2.5rem, 5vw, 3.5rem)/1 var(--head); letter-spacing: -0.03em; color: var(--green); }
.tile-name { font: 700 0.8rem/1.2 var(--head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.tile p { font-size: 1.0625rem; color: var(--ink-soft); }
.tile-answer { background: var(--green); border-color: var(--green); }
.tile-answer .tile-icon { background: rgba(255, 255, 255, .15); color: #fff; }
.tile-answer .tile-letter, .tile-answer .tile-name, .tile-answer p { color: #fff; }
.op { display: grid; place-items: center; font: 800 2rem/1 var(--head); color: var(--ink-soft); padding-block: 4px; }
.formula-foot { margin: 28px auto 0; text-align: center; font: 700 1.125rem/1.4 var(--head); color: var(--ink); }
@media (min-width: 900px) {
  .formula-card { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 16px; }
  .op { font-size: 3rem; padding-inline: 4px; }
}

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.privacy { display: inline-flex; align-items: center; gap: 8px; font: 600 0.9375rem/1.4 var(--head); color: var(--ink-soft); margin-top: 4px; }
.privacy svg { font-size: 16px; color: var(--green); }
.fields { display: grid; gap: 24px; }
.field label { display: flex; align-items: center; gap: 10px; font: 700 1.0625rem/1.3 var(--head); margin-bottom: 10px; }
.badge { display: inline-grid; place-items: center; min-width: 36px; height: 28px; padding: 0 8px; border-radius: 8px; background: rgba(31, 90, 61, .12); color: var(--green); font: 800 0.875rem/1 var(--head); }
.badge-light { background: rgba(255, 255, 255, .18); color: #fff; }
.money { position: relative; }
.money span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font: 700 1.25rem/1 var(--head); color: var(--ink-soft); pointer-events: none; }
.money input { width: 100%; height: 60px; padding: 0 18px 0 40px; border: 2px solid var(--ink); border-radius: var(--radius-input); background: #fff; color: var(--ink); font: 700 1.375rem/1 var(--head); font-variant-numeric: tabular-nums; text-align: right; }
.money input:focus { outline: 3px solid var(--green); outline-offset: 2px; }
.hint { font: 400 0.875rem/1.4 var(--head); color: var(--ink-soft); margin-top: 8px; }
.result { background: var(--green); color: #fff; border-radius: var(--radius-card); padding: clamp(24px, 4vw, 36px); display: grid; gap: 4px; box-shadow: var(--shadow-card); }
.result-label { display: flex; align-items: center; gap: 10px; font: 700 1rem/1.3 var(--head); color: #fff; }
.result-figure { display: block; font: 800 clamp(2.75rem, 6vw, 4rem)/1.05 var(--head); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 16px; }
.result-per { font: 600 1rem/1.3 var(--head); color: rgba(255, 255, 255, .85); }
.result-year { font: 700 1.125rem/1.3 var(--head); color: #fff; padding-bottom: 20px; margin-top: 12px; border-bottom: 1px solid rgba(255, 255, 255, .25); font-variant-numeric: tabular-nums; }
.result-line { font: 400 1.125rem/1.5 var(--body); color: #fff; margin: 20px 0 20px; }
.result .btn { width: 100%; }
.micro.on-green { color: rgba(255, 255, 255, .85); margin-top: 12px; text-align: center; max-width: none; }
@media (min-width: 1024px) {
  .calc { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
  .result { position: sticky; top: 96px; }
}

/* Is this for you? */
.fit { display: grid; grid-template-columns: 1fr; gap: 24px; }
.fit-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(24px, 3vw, 32px); }
.fit-card.yes { border-top: 4px solid var(--green); }
.fit-card.no { border-top: 4px solid var(--short); }
.fit-card h3 { margin-bottom: 20px; }
.fit-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.fit-card li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.fit-card li svg { font-size: 20px; margin-top: 4px; stroke-width: 2.5; }
.fit-card.yes li svg { color: var(--green); }
.fit-card.no li svg { color: var(--short); }
@media (min-width: 768px) { .fit { grid-template-columns: 1fr 1fr; } }

/* Where to start */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 24px; }
.step { display: flex; flex-direction: column; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(24px, 3vw, 32px); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); font: 800 1rem/1 var(--head); margin-bottom: 4px; }
.step.first { border: 2px solid var(--green); background: #fff; }
.step.first .step-n { background: var(--green); border-color: var(--green); color: #fff; }
.step p { color: var(--ink-soft); }
.step .btn { margin-top: auto; align-self: flex-start; }
.step.first p { margin-bottom: 12px; }
.tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 10px; border: 1px solid var(--ink-soft); border-radius: 999px; font: 700 0.75rem/1.2 var(--head); letter-spacing: 0.04em; color: var(--ink-soft); }
@media (min-width: 768px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:last-child { grid-column: auto; }
}

/* About */
.about { max-width: 640px; display: grid; gap: 16px; text-align: center; justify-items: center; }
.about p { color: var(--ink-soft); }

/* Final call to action */
.cta-band { background: var(--ink); color: var(--on-dark); padding-block: clamp(64px, 9vw, 96px); }
.cta-inner { display: grid; gap: 20px; justify-items: center; text-align: center; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: var(--on-dark); }
.signup { display: grid; gap: 12px; width: 100%; max-width: 520px; margin-top: 8px; }
.signup input { height: 60px; padding: 0 18px; border: 0; border-radius: var(--radius-input); background: #fff; color: var(--ink); font: 400 1.0625rem/1 var(--head); width: 100%; }
.signup input::placeholder { color: #66706a; }
.signup .btn { width: 100%; min-height: 60px; }
.micro.on-dark { color: var(--on-dark-soft); }
@media (min-width: 640px) {
  .signup { display: flex; }
  .signup input { flex: 1; }
  .signup .btn { width: auto; }
}

/* Footer */
.site-foot { background: var(--ink); color: var(--on-dark-soft); border-top: 1px solid rgba(255, 255, 255, .12); }
.foot-row { display: flex; justify-content: space-between; align-items: center; min-height: 64px; font: 600 0.875rem/1 var(--head); }

/* Phone */
@media (max-width: 1023px) {
  .site-nav .nav-sec { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .btn-lg { width: 100%; }
  .step .btn { align-self: stretch; }
  .head-row { min-height: 64px; }
  .logo { font-size: 1.0625rem; }
  .btn-sm { padding: 0 14px; font-size: 0.875rem; }
}

/* Very small phones: the header button drops "Get the" so it fits */
@media (max-width: 400px) { .btn-long { display: none; } }
/* Between phone and desktop: each formula tile is one row, icon beside the text */
@media (min-width: 521px) and (max-width: 899px) {
  .tile { grid-template-columns: 56px 1fr; column-gap: 20px; align-items: center; }
  .tile-icon { grid-row: 1 / span 3; margin-bottom: 0; }
  .tile-letter { font-size: 2.25rem; }
}

/* ---------- The principle, pulled out of the body copy (2026-11-17) ---------- */
.principle { background: var(--paper); padding: clamp(40px, 6vw, 72px) 0; }
.principle .wrap { display: flex; justify-content: center; }
.principle-quote {
  position: relative; max-width: 46ch; margin: 0; padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 44px);
  background: var(--card); border-left: 6px solid var(--gold); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.principle-quote p {
  margin: 0; font: 600 clamp(1.35rem, 2.9vw, 2rem)/1.3 var(--head);
  letter-spacing: -0.02em; color: var(--ink); text-wrap: balance;
}
.principle-quote footer {
  margin-top: 16px; font: 700 .8rem/1 var(--head); letter-spacing: .12em;
  text-transform: uppercase; color: var(--green);
}

/* ---------- Worksheet offer, shown only once there is a number ---------- */
.reveal { display: grid; gap: 10px; }
.reveal[hidden] { display: none; }
.result .reveal .btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- The printable worksheet: off screen, on paper ---------- */
.worksheet { display: none; }

@media print {
  html, body { background: #fff; }
  body > header, body > main, body > footer { display: none !important; }
  .worksheet { display: block; color: #000; font-family: var(--body); padding: 0; }
  .ws-brand { font: 700 .75rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 10px; }
  .ws-title { font: 800 1.9rem/1.15 var(--head); letter-spacing: -0.02em; margin: 0 0 8px; }
  .ws-sub { font: 400 1rem/1.45 var(--body); margin: 0 0 22px; }
  .ws-head { border-bottom: 2px solid #000; padding-bottom: 14px; margin-bottom: 20px; }
  .ws-table { width: 100%; border-collapse: collapse; margin-bottom: 26px; }
  .ws-table th { text-align: left; font: 600 1rem/1.4 var(--head); padding: 11px 0; border-bottom: 1px solid #bbb; }
  .ws-table td { text-align: right; font: 700 1.15rem/1.4 var(--head); font-variant-numeric: tabular-nums; padding: 11px 0; border-bottom: 1px solid #bbb; }
  .ws-total th, .ws-total td { border-bottom: 2px solid #000; font-size: 1.3rem; }
  .ws-letter { display: inline-block; min-width: 2.4em; font-weight: 800; }
  .ws-work h2 { font: 800 1.2rem/1.2 var(--head); margin: 0 0 14px; }
  .ws-work ol { margin: 0; padding-left: 1.2em; }
  .ws-work li { margin-bottom: 20px; break-inside: avoid; }
  .ws-q { display: block; font: 400 1rem/1.4 var(--body); margin-bottom: 16px; }
  .ws-rule { display: block; border-bottom: 1px solid #777; height: 1px; }
  .ws-quote { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid #bbb; font: 600 1.05rem/1.4 var(--head); }
  .ws-foot { margin-top: 10px; font: 400 .8rem/1.4 var(--body); color: #444; }
  @page { margin: 16mm; }
}
