/* Layout: text on one side, a live workflow canvas on the other, alternating; one buyer question per section */
:root {
  color-scheme: dark;
  --ink: #0C1215;
  --ink-2: #111A1E;
  --ink-3: #18242A;
  --ink-4: #21303A;
  --cream: #F3EFE6;
  --fog: #B4BEBC;
  --teal: #1FB8A6;
  --teal-deep: #0D7568;
  --mint: #7FE3D6;
  --amber: #E8A94A;
  --k-orange: #EF9A7B; --k-sand: #D9C28C; --k-blue: #9DBBFF; --k-violet: #C9A3F2; --k-green: #8EDC9C;
  --line: color-mix(in srgb, var(--cream) 12%, transparent);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: "Manrope", "Geist", sans-serif;
  --s-small: 0.875rem;
  --s-body: 1.0625rem;
  --s-lead: clamp(1.15rem, 1.5vw, 1.3rem);
  --s-h3: clamp(1.6rem, 2.4vw, 2.1rem);
  --s-h2: clamp(2.3rem, 4.4vw, 3.6rem);
  --s-h1: clamp(2.8rem, 5vw, 4.4rem);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --header-h: 64px;
}
/* Light mode: follows the system unless the toggle (or the host) sets data-theme */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  color-scheme: light;
  --ink: #F5F2EA; --ink-2: #ECE8DE; --ink-3: #E2DDD0; --ink-4: #D5CFC0;
  --cream: #0F1A1D; --fog: #4B5855;
  --teal: #0D7F72; --mint: #0B6B60; --amber: #9A5A0C;
  --k-orange: #B44A24; --k-sand: #7E6318; --k-blue: #3453B0; --k-violet: #7443B0; --k-green: #2D7A3C;
} }
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #F5F2EA; --ink-2: #ECE8DE; --ink-3: #E2DDD0; --ink-4: #D5CFC0;
  --cream: #0F1A1D; --fog: #4B5855;
  --teal: #0D7F72; --mint: #0B6B60; --amber: #9A5A0C;
  --k-orange: #B44A24; --k-sand: #7E6318; --k-blue: #3453B0; --k-violet: #7443B0; --k-green: #2D7A3C;
}
/* The close band is always deep teal, so it keeps the dark-mode ink and cream */
.close { --ink: #0C1215; --cream: #F3EFE6; --fog: #D4E4E0; --mint: #7FE3D6; color: var(--cream); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; background: var(--ink); color: var(--cream); font: 400 var(--s-body)/1.6 var(--font-text); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 84rem; margin-inline: auto; padding-left: max(clamp(20px, 5vw, 56px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(20px, 5vw, 56px), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: 16px; top: -120px; z-index: 100; background: var(--cream); color: var(--ink); padding: 12px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }
.h2 { font: 700 var(--s-h2)/0.98 var(--font-display); letter-spacing: -0.01em; }
.h3 { font: 700 var(--s-h3)/1.02 var(--font-display); }
.lead { font-size: var(--s-lead); line-height: 1.5; max-width: 52ch; }
.muted { color: var(--fog); }
.small { font-size: var(--s-small); line-height: 1.5; }
section { padding-block: clamp(5.5rem, 11vw, 10rem); }
.sec-head { display: grid; gap: 1.25rem; max-width: 46rem; margin-bottom: clamp(2.75rem, 5.5vw, 4.75rem); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 1.3rem; border: 0; border-radius: 10px; font: 600 var(--s-body)/1 var(--font-text); text-decoration: none; white-space: nowrap; cursor: pointer; background: var(--cream); color: var(--ink); transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cream) 35%, transparent); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--mint); }
  .btn-ghost:hover { background: transparent; color: var(--mint); box-shadow: inset 0 0 0 1.5px var(--mint); }
}

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--ink) 94%, transparent); border-bottom: 1px solid var(--line); }
.bar { height: var(--header-h); display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; text-decoration: none; color: var(--cream); }
.brand svg { width: 140px; height: 30px; overflow: visible; }
.brand-text { font-family: var(--font-logo); font-weight: 800; font-size: 22px; fill: currentColor; letter-spacing: -0.03em; }
.brand-loop, .brand-arrow { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; gap: 0.25rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.7rem; color: var(--fog); text-decoration: none; font-weight: 500; font-size: 0.95rem; border-radius: 8px; white-space: nowrap; transition: color 200ms ease; }
.nav a[aria-current="true"] { color: var(--cream); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--cream); } }
.bar .btn { min-height: 42px; padding: 0 1rem; font-size: 0.94rem; }
.theme-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--fog); cursor: pointer; transition: color 200ms ease, transform 160ms var(--ease-out); }
.theme-btn:active { transform: scale(0.97); }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .sun, html.is-light .theme-btn .moon { display: none; }
html.is-light .theme-btn .sun { display: inline; }
@media (hover: hover) and (pointer: fine) { .theme-btn:hover { color: var(--cream); } }
.menu-btn { display: none; min-height: 42px; padding: 0 0.9rem; border-radius: 10px; border: 0; background: var(--ink-3); color: var(--cream); font: 500 0.94rem var(--font-text); cursor: pointer; }
.mnav { border-top: 1px solid var(--line); }
.mnav a { display: flex; align-items: center; min-height: 52px; text-decoration: none; font-size: 1.05rem; }
.mnav ul { padding-block: 0.25rem 1rem; }
@media (max-width: 880px) { .nav { display: none; } .menu-btn { display: inline-flex; align-items: center; } }
@media (max-width: 400px) { .brand svg { width: 108px; height: 24px; } .bar { gap: 0.4rem; } .bar .btn { padding: 0 0.75rem; } .theme-btn { width: 36px; } .menu-btn { padding: 0 0.7rem; } }
@media (min-width: 881px) { .mnav { display: none !important; } }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem); }
/* 3D floor behind the hero: faded at the bottom so it hands over to the trust bar, and under the headline so the copy stays readable */
.hero-floor { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 900ms var(--ease-out);
  -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent), linear-gradient(90deg, rgba(0, 0, 0, 0.4), #000 55%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 84%, transparent), linear-gradient(90deg, rgba(0, 0, 0, 0.4), #000 55%); mask-composite: intersect; }
.hero-floor.on { opacity: 1; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero h1 .wi { display: inline-block; will-change: transform; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); gap: clamp(2.5rem, 4.5vw, 4.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.9rem; }
.hero h1 { font: 700 var(--s-h1)/0.95 var(--font-display); letter-spacing: -0.015em; }
.hero h1 .h1-2 { display: block; color: var(--mint); }
.ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-quote { margin: 0; padding-left: 1rem; border-left: 3px solid var(--teal); display: grid; gap: 0.4rem; max-width: 46ch; }
.hero-quote blockquote { margin: 0; color: var(--cream); }
.hero-quote figcaption { color: var(--fog); font-size: var(--s-small); }
.hero-quote figcaption b { color: var(--cream); font-weight: 600; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Workflow canvas */
.wf { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.wf-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.wf-title { font-weight: 600; font-size: 0.95rem; }
.wf-title span { color: var(--fog); font-weight: 400; }
.seg { position: relative; display: inline-flex; background: var(--ink); border-radius: 9px; padding: 3px; }
.seg button { position: relative; z-index: 1; min-height: 34px; padding: 0 0.8rem; border: 0; background: transparent; color: var(--fog); font: 500 0.88rem var(--font-text); cursor: pointer; border-radius: 7px; transition: color 200ms ease; }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg .knob { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 7px; background: var(--cream); transition: transform 240ms var(--ease-out), width 240ms var(--ease-out), background-color 200ms ease; }
.seg.with .knob { background: var(--amber); }
.wf-svg { display: block; width: 100%; }
.wf-svg .bgdot { fill: color-mix(in srgb, var(--cream) 9%, transparent); }
.wf-svg .edge { fill: none; stroke: color-mix(in srgb, var(--cream) 22%, transparent); stroke-width: 1.7; transition: stroke 200ms ease, opacity 240ms ease; }
.wf-svg .edge[data-s="done"] { stroke: var(--mint); }
.wf-svg .edge[data-s="off"] { opacity: 0.15; }
.wf-svg .edge.bypass { stroke-dasharray: 5 5; opacity: 0; }
.wf.without .wf-svg .edge.bypass { opacity: 1; }
.wf-svg .packet { fill: var(--mint); }
.wf-svg .node .box { fill: var(--ink-3); stroke: color-mix(in srgb, var(--cream) 28%, transparent); stroke-width: 1.5; transition: stroke 200ms ease, fill 200ms ease; }
.wf-svg .node[data-s="run"] .box { stroke: var(--teal); fill: color-mix(in srgb, var(--teal) 24%, var(--ink-3)); stroke-width: 2; }
.wf-svg .node[data-s="done"] .box { stroke: var(--mint); }
.wf-svg .node .chk { opacity: 0; transition: opacity 200ms ease; }
.wf-svg .node .chk circle { fill: var(--mint); }
.wf-svg .node .chk path { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wf-svg .node[data-s="done"] .chk { opacity: 1; }
.wf-svg .node { transition: opacity 240ms ease; }
.wf-svg .node[data-s="blocked"] { opacity: 0.32; }
.wf-svg .node[data-s="skip"] { opacity: 0.22; }
.wf-svg .node.you .box { stroke: var(--amber); }
.wf-svg .node.you[data-s="wait"] .box { fill: color-mix(in srgb, var(--amber) 16%, transparent); stroke-width: 2.2; animation: wait 1.3s ease-in-out infinite; }
.wf-svg .node.you .lbl { fill: var(--amber); font-weight: 600; }
@keyframes wait { 50% { fill: color-mix(in srgb, var(--amber) 34%, transparent); } }
.wf-svg .lbl { fill: var(--fog); font: 500 12px var(--font-text); }
.wf-status { display: flex; align-items: center; gap: 0.6rem; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 0.92rem; min-height: 48px; }
.wf-status i { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--mint); }
.wf.with .wf-status i { background: var(--amber); animation: blink 1.3s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

/* Hero: a founder's week. Amber blocks are work a system could run; outlined ones stay with the founder */
.week { position: relative; background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.week.with .wf-status i { background: var(--amber); animation: blink 1.3s ease-in-out infinite; }
.wk-cal { --cols: 5; padding: 12px 14px 6px; }
.wk-days { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); margin-left: 26px; padding-bottom: 6px; color: var(--fog); font-size: 0.8rem; font-weight: 500; }
.wk-days span { padding-left: 4px; }
.wk-body { position: relative; height: 340px; }
.wk-hours span { position: absolute; left: 0; top: calc(var(--h) / 9 * 100%); transform: translateY(-50%); color: color-mix(in srgb, var(--fog) 70%, transparent); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.wk-hours span:first-child { transform: none; }
.wk-hours span:last-child { transform: translateY(-100%); }
.wk-grid { position: absolute; inset: 0 0 0 26px; border-radius: 8px; background-color: var(--ink); background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--cream) 10%, transparent) 1px, transparent 0); background-size: 16px 16px; }
.blk { position: absolute; left: calc(var(--d) / var(--cols) * 100% + 3px); width: calc(100% / var(--cols) - 6px); top: calc(var(--s) / 9 * 100% + 2px); height: calc(var(--l) / 9 * 100% - 4px);
  display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; padding: 5px 7px; border-radius: 7px; overflow: hidden;
  background: color-mix(in srgb, var(--amber) 17%, var(--ink-3)); box-shadow: inset 3px 0 0 var(--amber); font-size: 0.74rem; line-height: 1.22; color: var(--cream); }
.blk small { font-size: 0.66rem; color: var(--fog); font-variant-numeric: tabular-nums; }
.blk .sysname { display: none; font-weight: 600; }
.blk.sys { background: color-mix(in srgb, var(--mint) 20%, var(--ink-3)); box-shadow: inset 3px 0 0 var(--mint); }
.blk.sys .task { display: none; } .blk.sys .sysname { display: block; }
.blk.keep { background: var(--ink-3); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cream) 22%, transparent); color: var(--fog); transition: color 300ms ease, box-shadow 300ms ease; }
.week.without .blk.keep { color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--cream); }
.wk-sys { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 8px 14px 12px; list-style: none; }
.wk-sys li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: var(--ink-3); color: var(--fog); font-size: 0.72rem; font-weight: 500; transition: background-color 300ms ease, color 300ms ease; }
.wk-sys li b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--mint); display: none; }
.wk-sys li.on { background: color-mix(in srgb, var(--mint) 20%, var(--ink-3)); color: var(--cream); }
.wk-sys li.on b { display: inline; }
#wk-status b { font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .wk-cal { --cols: 3; }
  .wk-days span:nth-child(n+4), .blk[data-d="3"], .blk[data-d="4"] { display: none; }
  .wk-body { height: 380px; }
}

/* Proof strip */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Trust bar: client names as type-only wordmarks on a slow loop; the edge fade is a mask, not a visible gradient */
.trust { padding-block: clamp(1rem, 2vw, 1.5rem) clamp(3.5rem, 7vw, 5.5rem); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq 48s linear infinite; }
.mq-set { display: flex; align-items: center; gap: clamp(3rem, 6vw, 5.5rem); padding: 0 clamp(1.5rem, 3vw, 2.75rem); margin: 0; list-style: none; }
.mq-set li { display: flex; align-items: center; height: 56px; white-space: nowrap; color: color-mix(in srgb, var(--cream) 58%, transparent); transition: color 200ms ease; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) { .marquee:hover .mq-track { animation-play-state: paused; } .mq-set li:hover { color: var(--cream); } }
.wm-kraken { font: 800 1.55rem/1 var(--font-logo); letter-spacing: -0.045em; text-transform: lowercase; }
.wm-imperium { font: 600 1.5rem/1 "Cormorant Garamond", Georgia, serif; letter-spacing: 0.16em; -webkit-text-stroke: 0.35px currentColor; text-transform: uppercase; }
.wm-aether { font: 400 1.5rem/1 var(--font-text); letter-spacing: -0.03em; }
.wm-aether b { font-weight: 600; }
.wm-bellvines { font: italic 600 1.95rem/1 "Cormorant Garamond", Georgia, serif; letter-spacing: -0.01em; }
.wm-oak { font: 700 1.7rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 600px) { .mq-set { gap: 2.5rem; } .mq-set li { font-size: 0.86em; height: 48px; } }
.wm-oak span span { font-weight: 600; opacity: 0.7; margin-left: 0.3em; }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .mq-track { display: block; width: auto; }
  .mq-set { flex-wrap: wrap; justify-content: center; gap: 0.5rem 2.5rem; }
  .mq-set[aria-hidden] { display: none; }
}
.proof { background: var(--ink-2); padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.proof .wrap { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.proof-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem clamp(2.5rem, 5vw, 4.5rem); }
.proof-figs dt { font: 700 clamp(2.2rem, 4vw, 3.2rem)/1 var(--font-display); color: var(--cream); font-variant-numeric: tabular-nums; }
.proof-figs dd { color: var(--fog); margin-top: 0.4rem; max-width: 30ch; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem clamp(2.5rem, 5vw, 4.5rem); }
.quotes .hero-quote { max-width: 56ch; }
@media (max-width: 760px) { .proof-figs, .quotes { grid-template-columns: minmax(0, 1fr); } }

/* Leak audit */
.audit .grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.sliders { display: grid; gap: 1.8rem; background: var(--ink-2); border-radius: 14px; padding: clamp(1.5rem, 3.5vw, 2.75rem); }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.field-top label { color: var(--fog); font-size: 0.95rem; }
.field-top output { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; margin: 0; background: transparent; cursor: pointer; --p: 50%; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--mint) var(--p), color-mix(in srgb, var(--cream) 15%, transparent) var(--p)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--cream); border: 4px solid var(--ink-2); transition: transform 150ms var(--ease-out); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--cream) 15%, transparent); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--mint); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--cream); border: 4px solid var(--ink-2); }
.result { position: sticky; top: calc(var(--header-h) + 20px); background: var(--ink-3); border-radius: 14px; padding: clamp(1.5rem, 3.5vw, 2.75rem); display: grid; gap: 1.4rem; }
.result .k { color: var(--fog); font-size: 0.95rem; }
.result .big { font: 700 clamp(3rem, 6vw, 4.4rem)/0.95 var(--font-display); color: var(--amber); font-variant-numeric: tabular-nums; }
.rows { display: grid; gap: 0.85rem; }
.row-top { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--s-small); color: var(--fog); }
.row-top b { color: var(--cream); font-weight: 600; font-variant-numeric: tabular-nums; }
.track { height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--cream) 8%, transparent); margin-top: 0.4rem; overflow: hidden; }
.fill { height: 100%; background: var(--amber); border-radius: 6px; transform-origin: left center; transform: scaleX(0); transition: transform 450ms var(--ease-out); }
.gain { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.gain b { font-size: 1.6rem; font-weight: 600; color: var(--mint); font-variant-numeric: tabular-nums; }
.verdict { font-size: 0.95rem; }
.verdict b { color: var(--cream); font-weight: 600; }
details.maths summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: var(--s-small); color: var(--mint); }
details.maths ul { display: grid; gap: 0.45rem; padding-left: 1.1rem; list-style: disc; font-size: var(--s-small); color: var(--fog); }
.lead-form { display: grid; gap: 0.6rem; padding-top: 0.25rem; }
.lead-form label { font-weight: 600; }
.lead-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-form input[type="email"] { flex: 1 1 12rem; min-width: 0; min-height: 50px; padding: 0 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--cream) 28%, transparent); background: var(--ink-2); color: var(--cream); font: inherit; }
.lead-form input::placeholder { color: var(--fog); opacity: 0.8; }
.lead-form input[aria-invalid="true"] { border-color: var(--amber); }
.note { font-size: var(--s-small); color: var(--fog); }
.note a { color: var(--mint); }
.note.err { color: var(--amber); }
.note.ok { color: var(--mint); }
@media (max-width: 899px) { .audit .grid { grid-template-columns: minmax(0, 1fr); } .result { position: static; } }
.leakbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink-4); padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); transform: translateY(110%); transition: transform 200ms var(--ease-out); }
.leakbar.on { transform: none; transition: transform 320ms var(--ease-drawer); }
.leakbar .v { font: 700 1.7rem/1 var(--font-display); color: var(--amber); font-variant-numeric: tabular-nums; }
.leakbar .g { display: block; font-size: var(--s-small); color: var(--fog); margin-top: 2px; }
.leakbar a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 1rem; border-radius: 10px; background: var(--cream); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--s-small); }
.callbar .g { margin-top: 0; }
.callbar a { white-space: nowrap; }
@media (min-width: 900px) { .leakbar { display: none; } }

/* Five leaks */
.leaks { background: var(--ink-2); }
.leaks .wf { background: var(--ink); }
.tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 0; background: var(--ink-3); color: var(--fog); font: 500 0.95rem var(--font-text); cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.tabs button:active { transform: scale(0.97); }
.tabs button[aria-selected="true"] { background: var(--cream); color: var(--ink); }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5.5vw, 5.5rem); align-items: center; }
.panel-copy { display: grid; gap: 1.3rem; transition: opacity 180ms var(--ease-out), filter 180ms var(--ease-out), transform 220ms var(--ease-out); }
.panel-copy.swap { opacity: 0; filter: blur(3px); transform: translateY(6px); }
.built { display: grid; gap: 0.6rem; margin-top: 0.4rem; }
.built li { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: 0.5rem; }
.built li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); margin-top: 0.5em; }
.panel .src { color: var(--fog); font-size: var(--s-small); }
@media (max-width: 960px) { .panel { grid-template-columns: minmax(0, 1fr); } }

/* How it works */
.stagebar { display: flex; gap: 6px; margin-bottom: 2rem; }
.stagebar span { height: 10px; border-radius: 5px; flex-basis: 0; }
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.stage { background: var(--ink-2); border-radius: 14px; padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1rem; align-content: start; }
.stage .when { font-weight: 600; }
.stage .when.a { color: var(--amber); } .stage .when.b { color: var(--mint); } .stage .when.c { color: var(--fog); }
.moves { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.moves span { font-size: var(--s-small); font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--ink-4); }
.stage .keep { color: var(--fog); font-size: 0.95rem; }
.stage .keep b { color: var(--cream); font-weight: 600; }
.how-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.how-cta p { color: var(--fog); max-width: 52ch; }
@media (max-width: 860px) { .stages { grid-template-columns: minmax(0, 1fr); } }

/* Kam */
.kam { background: var(--ink-2); }
.kam .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2.5rem, 6.5vw, 6.5rem); align-items: center; }
.kam figure img { border-radius: 14px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.kam figcaption { margin-top: 0.6rem; }
.kam-copy { display: grid; gap: 1.4rem; }
.creds { display: grid; gap: 0.5rem; }
.creds li { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: 0.5rem; }
.creds li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--teal); margin-top: 0.5em; }
.sig { color: var(--mint); font-weight: 500; }
@media (max-width: 860px) { .kam .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Fit and compare */
.fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.fit-col { background: var(--ink-2); border-radius: 14px; padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.1rem; align-content: start; }
.fit-col h3 { font: 700 1.5rem/1 var(--font-display); }
.fit-col.yes h3 { color: var(--mint); } .fit-col.no h3 { color: var(--amber); }
.fit-col ul { display: grid; gap: 0.85rem; }
.fit-col li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: 0.5rem; }
.fit-col li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 0.6em; }
.fit-col.yes li::before { background: var(--mint); } .fit-col.no li::before { box-shadow: inset 0 0 0 1.5px var(--amber); }
.table-wrap { overflow-x: auto; background: var(--ink-2); border-radius: 14px; }
.compare table { width: 100%; min-width: 46rem; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { color: var(--fog); font-weight: 500; font-size: var(--s-small); }
.compare td { color: var(--fog); }
.compare .us { color: var(--cream); background: color-mix(in srgb, var(--teal-deep) 30%, transparent); }
.compare thead .us { color: var(--mint); font-weight: 600; }
html.is-light .compare .us { background: color-mix(in srgb, var(--teal-deep) 14%, transparent); }
@media (max-width: 760px) {
  .fit-grid { grid-template-columns: minmax(0, 1fr); }
  .table-wrap { background: transparent; overflow: visible; }
  .compare table { min-width: 0; }
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody tr { background: var(--ink-2); border-radius: 14px; padding: 1rem; margin-bottom: 0.75rem; display: grid; gap: 0.4rem; }
  .compare th, .compare td { padding: 0; border: 0; }
  .compare td { font-size: var(--s-small); }
  .compare td::before { content: attr(data-label) ": "; }
  .compare td.us { background: transparent; color: var(--mint); font-size: var(--s-body); font-weight: 500; }
  .compare td.us::before { content: ""; }
}

/* FAQ */
.faq .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2.5rem clamp(3rem, 7vw, 6.5rem); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 60px; padding-block: 0.9rem; font-weight: 600; font-size: 1.05rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--mint); transition: transform 200ms var(--ease-out); flex: none; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 1.1rem; color: var(--fog); max-width: 60ch; }
@media (max-width: 860px) { .faq .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Close */
.close { background: var(--teal-deep); }
.close .wrap { display: grid; gap: 2rem; justify-items: start; }
.close h2 { max-width: 18ch; }
.close p { max-width: 56ch; }
.close p b { font-weight: 600; font-variant-numeric: tabular-nums; }
.close .btn { background: var(--cream); color: var(--ink); }
.call-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.call-steps li { padding-left: 1.4rem; position: relative; }
.call-steps li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--cream); }
#book-leak { justify-self: start; }
@media (min-width: 900px) {
  .close .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 5rem); }
  .close h2 { grid-area: 1 / 1; } .close #final-echo { grid-area: 2 / 1; }
  .call-steps { grid-area: 1 / 2; align-self: end; } .close .btn { grid-area: 2 / 2; align-self: start; }
}

/* Footer */
.site-footer { padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem; font-size: var(--s-small); color: var(--fog); }
.foot { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 2.5rem; }
.foot h2 { font-size: var(--s-small); font-weight: 600; color: var(--cream); margin-bottom: 0.25rem; }
.foot a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; color: var(--fog); }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--cream); } }
.legal { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; gap: 0.6rem; }
.legal details summary { cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; color: var(--cream); font-weight: 600; }
.legal p { max-width: 70ch; }
.legal a { color: inherit; }
@media (max-width: 760px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot > div:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* Production additions */
.hp { position: absolute; left: -9999px; }
.kam figure img { aspect-ratio: 4 / 5; max-width: 460px; object-position: 50% 25%; filter: none; }
.quotes .feature { grid-column: 1 / -1; max-width: 72ch; }
.quotes .feature blockquote { font-size: 1.125rem; line-height: 1.55; }
.quotes .feature blockquote p + p { margin-top: 0.8em; }

