*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 17px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.12; margin-bottom: var(--space-4); }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
.tabular { font-variant-numeric: tabular-nums; }
.center { text-align: center; }

.skip { position: absolute; left: 16px; top: -48px; background: var(--surface-raised); padding: 8px 12px; z-index: 10; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
.narrow { max-width: 760px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-6); border-radius: var(--radius-full); border: 1px solid transparent; font: 600 16px/1 var(--font-sans); text-decoration: none; cursor: pointer; transition: transform 120ms ease, background-color 120ms ease; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-small { min-height: 40px; padding: 0 var(--space-4); font-size: 15px; background: var(--plum); color: var(--on-plum); }
.btn-primary { background: var(--plum); color: var(--on-plum); }
.btn-spark { background: var(--saffron); color: var(--on-saffron); }
.btn-spark:hover { background: #eaa843; }
.btn-ghost { color: var(--on-aubergine); border-color: color-mix(in srgb, var(--on-aubergine) 55%, transparent); }
.btn-ghost:hover { background: color-mix(in srgb, var(--on-aubergine) 10%, transparent); }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; }
.logo img { height: 20px; width: auto; }
nav { display: flex; align-items: center; gap: var(--space-6); }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-link:hover { color: var(--plum); }
@media (max-width: 640px) { .nav-link { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--aubergine); color: var(--on-aubergine); padding: clamp(64px, 11vw, 136px) 0 clamp(72px, 12vw, 152px); }
.ripples { position: absolute; right: 0; bottom: 0; width: min(44vw, 520px); height: auto; color: var(--post-saffron); opacity: 0.85; pointer-events: none; }
.ripple-dot { fill: var(--post-saffron); }
.hero-inner { position: relative; max-width: 1120px; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.04; margin-bottom: var(--space-6); }
.lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; max-width: 34rem; margin-bottom: var(--space-8); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-4); color: var(--post-saffron); }
.kicker-ink { color: var(--saffron-ink); }
@media (max-width: 640px) {
  .hero { padding-bottom: 46vw; }
  .ripples { width: 62vw; }
  .actions .btn { flex: 1 1 100%; }
}

/* Sections */
.band { padding: clamp(56px, 9vw, 112px) 0; }
.band-soft { background: var(--surface-sunken); }
.section-lede { max-width: 40rem; color: var(--ink-muted); margin-bottom: var(--space-8); }
.two-col { display: grid; gap: clamp(32px, 6vw, 80px); grid-template-columns: 1fr; }
@media (min-width: 880px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }

.steps { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--plum-soft); color: var(--plum); font: 500 22px/1 var(--font-display); margin-bottom: var(--space-4); }
.steps h3 { margin-bottom: var(--space-2); }
.steps p { color: var(--ink-muted); }

.goals { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.goal { border-top: 3px solid var(--saffron); padding-top: var(--space-4); }
.goal h3 { font: 500 26px/1.2 var(--font-display); margin-bottom: var(--space-3); }
.goal-measure { font-size: 15px; color: var(--ink-muted); }

.list-title { margin: var(--space-2) 0 var(--space-4); }
.checks, .prompts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.checks li, .prompts li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--plum); border-bottom: 2px solid var(--plum); transform: rotate(-45deg); }
.prompts li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--saffron); }

/* Sample form */
.sample { background: var(--surface); }
.sample-form, .thanks { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(20px, 4vw, 36px); display: grid; gap: var(--space-6); }
.thanks h3 { font: 500 28px/1.2 var(--font-display); }
.recorder { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-3); min-width: 0; }
.recorder legend { font-weight: 700; padding: 0; margin-bottom: var(--space-3); }
.rec-row { display: flex; align-items: center; gap: var(--space-4); }
.btn-rec { background: var(--plum-soft); color: var(--plum); border-color: var(--line-strong); }
.btn-rec[aria-pressed="true"] { background: var(--critical); color: #fff; border-color: var(--critical); }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--critical); }
.btn-rec[aria-pressed="true"] .rec-dot { background: #fff; border-radius: 2px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .btn-rec[aria-pressed="true"] .rec-dot { animation: none; } }
.rec-time { font-size: 20px; font-weight: 600; }
#rec-playback { width: 100%; height: 40px; }
.upload { display: grid; gap: var(--space-2); font-size: 15px; color: var(--ink-muted); }
.upload input { font: inherit; font-size: 15px; color: var(--ink); max-width: 100%; }

.fields { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-1); }
.label { font-weight: 600; font-size: 15px; }
.optional { font-weight: 400; color: var(--ink-muted); }
.hint { font-size: 14px; color: var(--ink-muted); margin: 0; }
input:not([type="checkbox"]):not([type="file"]), textarea { font: inherit; font-size: 16px; width: 100%; padding: 10px var(--space-3); min-height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
textarea { resize: vertical; min-height: 88px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--critical); }
.consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 15px; line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--plum); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--critical); font-weight: 600; margin: 0; }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: var(--space-4) 40px var(--space-4) 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 400 26px/1 var(--font-sans); color: var(--plum); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-muted); padding-bottom: var(--space-4); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--space-8) 0 calc(var(--space-8) + env(safe-area-inset-bottom, 0px)); font-size: 15px; color: var(--ink-muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.footer-logo { height: 15px; width: auto; }
.site-footer a { color: inherit; }

/* Privacy page */
.prose { padding: clamp(48px, 8vw, 96px) 0; }
.prose h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.08; margin-bottom: var(--space-4); }
.prose h2 { font-size: 26px; margin: var(--space-12) 0 var(--space-3); }
.prose ul { padding-left: 1.2em; margin: 0 0 var(--space-4); }
.prose li { margin-bottom: var(--space-2); }
.updated { color: var(--ink-muted); }
