:root {
  --ink: #050505;
  --ink-2: #101010;
  --ink-3: #181818;
  --line: #2a2a2a;
  --muted: #9d9d9d;
  --soft: #d8d8d8;
  --yellow: #ffcd00;
  --yellow-2: #ffe36e;
  --yellow-dim: rgba(255, 205, 0, 0.12);
  --white: #fff;
  --danger: #ff5d5d;
  --success: #78db98;
  --radius: 20px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 6%, rgba(255, 205, 0, .09), transparent 22rem),
    linear-gradient(180deg, #070707 0, #0b0b0b 38rem, #050505 100%);
  color: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: clip;
}

button, input, textarea { font: inherit; }
button, label, input[type="radio"], input[type="checkbox"] { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }

.skip-link { position: fixed; left: 1rem; top: -5rem; background: var(--yellow); color: var(--ink); padding: .75rem 1rem; z-index: 100; font-weight: 900; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  min-height: 76px; padding: 0 clamp(1rem, 4vw, 4.25rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(5, 5, 5, .84); border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: .78rem; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; background: var(--yellow); border-radius: 50%; display: grid; place-items: center; position: relative; box-shadow: 0 0 32px rgba(255,205,0,.22); }
.brand-mark::before { content: ""; width: 15px; height: 4px; background: var(--ink); border-radius: 4px; transform: rotate(-44deg) translate(1px, -2px); }
.brand-mark span { position: absolute; width: 4px; height: 15px; background: var(--ink); border-radius: 4px; transform: rotate(-44deg) translate(4px, 5px); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: .86rem; letter-spacing: .13em; }
.brand-copy small { color: var(--muted); margin-top: .34rem; font-size: .68rem; letter-spacing: .06em; }
.save-state { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .76rem; letter-spacing: .03em; }
.save-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 14px rgba(120,219,152,.8); }
.save-state.saving .save-dot { background: var(--yellow); box-shadow: 0 0 14px rgba(255,205,0,.8); }

.hero { max-width: 1320px; margin: 0 auto; padding: clamp(4rem, 8vw, 6.5rem) clamp(1.2rem, 5vw, 5rem) clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::after { content: "01"; position: absolute; right: clamp(1rem, 7vw, 6rem); top: 1rem; font-size: clamp(9rem, 30vw, 28rem); line-height: .9; font-weight: 950; letter-spacing: -.08em; color: rgba(255,255,255,.018); pointer-events: none; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: .75rem; color: var(--yellow); font-size: .7rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span, .section-kicker span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255,205,0,.38); border-radius: 50%; font-size: .62rem; }
.hero h1 { max-width: 850px; margin: 1.35rem 0 1rem; font-size: clamp(3.1rem, 7vw, 6.7rem); line-height: .92; letter-spacing: -.055em; font-weight: 950; position: relative; z-index: 1; }
.hero-copy { max-width: 64ch; color: var(--soft); font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.1rem; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; border-radius: 12px; padding: .85rem 1.35rem; border: 1px solid transparent; font-weight: 800; text-decoration: none; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, .mode-button:focus-visible, .calendar-day:focus-visible, .steps-toggle:focus-visible { outline: 3px solid rgba(255,205,0,.55); outline-offset: 3px; }
.segmented input:focus-visible + span, .chip-grid input:focus-visible + span, .audit-options input:focus-visible + span, .loop-grid input:focus-visible + span { outline: 3px solid rgba(255,205,0,.55); outline-offset: 3px; }
.button-primary { background: var(--yellow); color: var(--ink); }
.button-primary:hover { background: var(--yellow-2); }
.button-quiet { background: rgba(255,255,255,.04); color: var(--white); border-color: rgba(255,255,255,.15); }
.button-danger { background: var(--danger); color: #140000; }
.full-width { width: 100%; margin-top: 1.4rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.2rem 2.2rem; margin-top: 3rem; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; }
.trust-row span::before { content: "✓"; color: var(--yellow); margin-right: .5rem; }

.layout { max-width: 1320px; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 4rem) 7rem; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.progress-panel { position: sticky; top: 104px; }
.progress-top { display: flex; justify-content: space-between; align-items: center; font-size: .66rem; font-weight: 900; letter-spacing: .14em; color: var(--muted); }
.progress-top strong { color: var(--yellow); }
.progress-track { height: 4px; background: #242424; margin: .75rem 0 1.3rem; overflow: hidden; border-radius: 99px; }
.progress-track span { display: block; height: 100%; width: 0; background: var(--yellow); box-shadow: 0 0 12px rgba(255,205,0,.7); transition: width .3s ease; }
.steps-toggle { width: 100%; min-height: 42px; margin: 0 0 .55rem; border: 1px solid var(--line); border-radius: 10px; background: #0b0b0b; color: var(--soft); font-size: .72rem; font-weight: 800; text-align: left; padding: .65rem .8rem; }
.section-nav { display: grid; }
.section-nav a { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: .65rem; color: #777; text-decoration: none; padding: .67rem 0; border-bottom: 1px solid rgba(255,255,255,.055); font-size: .82rem; transition: color .2s ease; }
.section-nav:not(.expanded) a { display: none; }
.section-nav:not(.expanded) a.previous, .section-nav:not(.expanded) a.active, .section-nav:not(.expanded) a.next { display: grid; }
.section-nav a:hover, .section-nav a.active { color: var(--white); }
.section-nav a.active span { color: var(--yellow); }
.section-nav a.complete:not(.active) { color: var(--soft); }
.section-nav a.complete:not(.active) span { color: var(--success); }
.section-nav span { font-size: .62rem; font-weight: 900; color: #545454; }
.privacy-note { margin-top: 1.4rem; color: #696969; font-size: .7rem; }
.privacy-note span { color: var(--success); margin-right: .4rem; }

.sections { display: grid; gap: 1.5rem; min-width: 0; }
.work-card { scroll-margin-top: 92px; background: linear-gradient(155deg, rgba(25,25,25,.98), rgba(13,13,13,.98)); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.5rem, 3.4vw, 2.75rem); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.work-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, rgba(255,255,255,.025), transparent 34%); }
.work-card[hidden] { display: none; }
.step-controls { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.step-controls > :last-child { justify-self: end; }
.step-controls [data-step-back] { justify-self: start; min-width: 120px; border-color: transparent; background: transparent; color: var(--muted); }
.step-controls [data-step-next] { min-width: 220px; }
.step-count { color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.step-finished { justify-self: end; color: var(--ink); background: var(--yellow); border-radius: 999px; padding: .75rem 1rem; font-size: .75rem; font-weight: 900; }
.summary-card .step-controls { border-top-color: rgba(0,0,0,.22); }
.summary-card .step-count { color: rgba(0,0,0,.62); }
.summary-card .step-finished { color: var(--white); background: var(--ink); }
.featured-card { border-color: rgba(255,205,0,.45); box-shadow: 0 28px 90px rgba(0,0,0,.5), 0 0 0 1px rgba(255,205,0,.04) inset; }
.featured-tag { position: absolute; top: 0; right: 1.8rem; background: var(--yellow); color: var(--ink); padding: .48rem .8rem; font-size: .61rem; letter-spacing: .14em; font-weight: 950; }
.section-heading { margin: 1rem 0 1.75rem; max-width: 820px; }
.section-heading h2 { margin: 0; max-width: 20ch; font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.03; letter-spacing: -.04em; }
.section-heading h2:focus { outline: none; }
.section-heading p { margin: .75rem 0 0; color: #b5b5b5; max-width: 64ch; font-size: 1.02rem; line-height: 1.55; }

fieldset { margin: 0; padding: 0; border: 0; }
legend, .field-label { display: block; margin: 0 0 .65rem; font-size: .92rem; font-weight: 700; color: var(--soft); line-height: 1.4; }
.choice-block { margin-bottom: 1.6rem; }
.compact-block { max-width: 460px; }
.segmented { display: grid; padding: 5px; gap: 5px; background: #0a0a0a; border: 1px solid var(--line); border-radius: 14px; }
.segmented.three { grid-template-columns: repeat(3, 1fr); }
.segmented.two { grid-template-columns: repeat(2, 1fr); }
.segmented input, .chip-grid input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: grid; place-items: center; min-height: 50px; border-radius: 10px; color: var(--muted); font-weight: 850; cursor: pointer; transition: .18s ease; }
.segmented input:checked + span { background: var(--yellow); color: var(--ink); }
textarea, input[type="number"], input[type="date"], input[type="text"] { width: 100%; border: 1px solid var(--line); background: #080808; color: var(--white); border-radius: 12px; padding: .95rem 1rem; transition: border-color .18s, box-shadow .18s; }
textarea { resize: vertical; min-height: 112px; }
textarea:focus, input[type="number"]:focus, input[type="date"]:focus, input[type="text"]:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-dim); outline: 0; }
::placeholder { color: #565656; }
.field-hint { margin: .65rem 0 0; color: #999; font-size: .875rem; line-height: 1.45; }

.loop-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; }
.loop-grid input { position: absolute; opacity: 0; }
.loop-grid label { min-height: 116px; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: .85rem; align-content: center; background: #0b0b0b; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; cursor: pointer; transition: .18s ease; }
.loop-grid label:hover { border-color: #484848; }
.loop-grid label:has(input:checked) { border-color: var(--yellow); background: var(--yellow-dim); }
.loop-number { grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--yellow); background: rgba(255,205,0,.1); font-size: .7rem; font-weight: 900; }
.loop-grid strong { font-size: .9rem; }
.loop-grid small { color: var(--muted); margin-top: .15rem; }
.insight-strip { margin-top: 1.2rem; display: flex; align-items: center; gap: 1rem; background: rgba(255,205,0,.07); border-left: 3px solid var(--yellow); border-radius: 0 10px 10px 0; padding: 1rem 1.1rem; }
.insight-strip p { margin: 0; color: var(--soft); font-size: .84rem; }
.insight-value, .insight-icon { color: var(--yellow); font-weight: 950; min-width: 46px; }

.score-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.score-pair label { display: grid; gap: .55rem; }
.score-pair label > span { font-size: .78rem; font-weight: 850; }
.score-pair input { font-size: 2rem; font-weight: 950; text-align: center; }
.score-pair small { color: var(--muted); text-align: center; }
.versus { color: var(--yellow); font-size: .68rem; font-weight: 950; letter-spacing: .12em; }

.range-label { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.range-label span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.range-label strong { color: var(--yellow); }
.range { width: 100%; height: 5px; accent-color: var(--yellow); margin-bottom: 1.6rem; }
.audit-legend { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: .8rem; }
.audit-legend span { color: var(--muted); font-size: .78rem; }
.audit-legend b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,205,0,.12); color: var(--yellow); margin-right: .3rem; }
.audit-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.audit-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .85rem 1rem; background: #0a0a0a; border-bottom: 1px solid var(--line); }
.audit-row:last-child { border-bottom: 0; }
.audit-job { display: flex; gap: .8rem; align-items: center; }
.audit-job em { font-style: normal; color: #666; font-size: .68rem; min-width: 20px; }
.audit-job span { font-size: .82rem; font-weight: 750; }
.audit-options { display: flex; gap: 5px; }
.audit-options label { position: relative; }
.audit-options input { position: absolute; opacity: 0; }
.audit-options span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: #999; cursor: pointer; font-size: .78rem; font-weight: 900; }
.audit-options input:checked + span { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.audit-totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: 1rem; }
.audit-totals div { background: #0a0a0a; border: 1px solid var(--line); border-radius: 10px; padding: .85rem; }
.audit-totals span { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.audit-totals strong { display: block; color: var(--yellow); font-size: 1.55rem; margin-top: .2rem; }

.result-card { margin-top: 1rem; padding: 1.35rem; border: 1px solid var(--yellow); background: linear-gradient(145deg, rgba(255,205,0,.13), rgba(255,205,0,.045)); border-radius: 14px; }
.result-card.hidden { display: none; }
.result-card.neutral { border-color: var(--line); background: #0a0a0a; }
.result-card.stop { border-color: #565656; background: rgba(255,255,255,.035); }
.result-card.success { border-color: var(--success); background: rgba(120,219,152,.09); }
.result-label { color: var(--yellow); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.result-card.success .result-label { color: var(--success); }
.result-card h3 { margin: .4rem 0; font-size: 1.45rem; }
.result-card p { margin: 0; color: var(--soft); }
.result-card .button { margin-top: 1rem; }

.date-input { max-width: 260px; color-scheme: dark; }
.calendar-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.mode-button { min-height: 44px; background: #0a0a0a; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .7rem .9rem; font-size: .78rem; font-weight: 800; }
.mode-button.active { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.mode-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .35rem; }
.mode-dot.founder { background: #fff; }
.mode-dot.independent { background: var(--success); }
.mode-button.active .mode-dot { background: var(--ink); }
.calendar-summary { display: flex; gap: 1.5rem; margin-bottom: 1rem; }
.calendar-summary div { display: flex; align-items: baseline; gap: .45rem; }
.calendar-summary strong { color: var(--yellow); font-size: 1.35rem; }
.calendar-summary span { color: var(--muted); font-size: .7rem; }
.calendar-scroll { padding-bottom: .4rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.calendar-month { background: #090909; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.calendar-month h3 { margin: 0 0 .85rem; font-size: 1rem; letter-spacing: -.02em; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; font-variant-numeric: tabular-nums; }
.calendar-weekdays { margin-bottom: 5px; }
.calendar-weekdays span { padding: 0 0 .35rem; color: #999; text-align: center; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.calendar-day { aspect-ratio: 1; min-width: 0; min-height: 44px; border: 1px solid var(--line); background: #111; border-radius: 8px; color: #a3a3a3; padding: 0; display: grid; place-items: center; position: relative; font-size: .72rem; font-weight: 750; }
.calendar-day.empty { border-color: transparent; background: transparent; }
.calendar-day.outside { border-color: transparent; background: transparent; color: #333; }
.calendar-day.today:not(.founder) { border-color: rgba(255,205,0,.65); color: var(--yellow); }
.calendar-day.founder { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.calendar-day.independent::after { content: ""; position: absolute; inset: 5px; border: 2px solid var(--success); border-radius: 5px; }
.calendar-day.founder.independent::after { border-color: var(--ink); }

.input-grid { display: grid; gap: .75rem; }
.three-col { grid-template-columns: repeat(3, minmax(0,1fr)); }
.input-grid label { display: grid; gap: .5rem; }
.input-grid label > span:first-child { color: var(--soft); font-size: .73rem; font-weight: 800; }
.currency-input, .suffix-input { display: flex; align-items: center; border: 1px solid var(--line); background: #080808; border-radius: 12px; overflow: hidden; }
.currency-input b, .suffix-input b { padding: 0 .8rem; color: var(--yellow); }
.currency-input input, .suffix-input input { border: 0; border-radius: 0; }
.calculation-card { margin-top: 1.2rem; background: var(--yellow); color: var(--ink); border-radius: 14px; padding: clamp(1.2rem, 4vw, 2.1rem); }
.calculation-card span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; }
.calculation-card strong { display: block; font-size: clamp(2.7rem, 7vw, 5.6rem); letter-spacing: -.06em; line-height: .95; margin: .4rem 0; }
.calculation-card small { font-weight: 800; opacity: .7; }

.chip-grid { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip-grid span { display: block; border: 1px solid var(--line); border-radius: 999px; padding: .72rem 1rem; color: var(--muted); font-size: .77rem; font-weight: 800; cursor: pointer; }
.chip-grid input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.formula-note { margin: 1.2rem 0; color: var(--muted); font-size: .84rem; line-height: 1.5; padding: .9rem 1rem; border: 1px dashed #3a3a3a; border-radius: 10px; }
.formula-note strong { color: var(--soft); }
.economics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.economics-grid > div { background: #090909; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.economics-grid span { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.economics-grid strong { display: block; margin-top: .5rem; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.economics-grid small { display: block; color: #666; font-size: .62rem; margin-top: .25rem; }
.economics-grid .accent-result { border-color: rgba(255,205,0,.55); }
.accent-result strong { color: var(--yellow); }

.readiness-list { display: grid; gap: .6rem; }
.readiness-list label { display: grid; grid-template-columns: 26px 1fr; gap: .8rem; align-items: center; padding: 1rem; background: #090909; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.readiness-list label:has(input:checked) { border-color: rgba(255,205,0,.7); background: var(--yellow-dim); }
.readiness-list input { appearance: none; width: 24px; height: 24px; border: 1px solid #555; border-radius: 7px; display: grid; place-items: center; }
.readiness-list input:checked { background: var(--yellow); border-color: var(--yellow); }
.readiness-list input:checked::after { content: "✓"; color: var(--ink); font-weight: 950; }
.readiness-list b, .readiness-list small { display: block; }
.readiness-list b { font-size: .84rem; }
.readiness-list small { color: var(--muted); margin-top: .2rem; }

.summary-card { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.summary-card::after { background: linear-gradient(120deg, rgba(255,255,255,.25), transparent 38%); }
.summary-card .section-kicker { color: var(--ink); }
.summary-card .section-kicker span { border-color: rgba(0,0,0,.3); }
.summary-card .section-heading p { color: rgba(0,0,0,.65); }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .85rem; }
.summary-group { background: rgba(0,0,0,.9); color: var(--white); border-radius: 16px; padding: 1rem 1.15rem; }
.summary-group.decision { grid-column: 1 / -1; border: 2px solid rgba(0,0,0,.28); }
.summary-group h3 { margin: 0 0 .3rem; color: var(--yellow); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; }
.summary-item { color: var(--white); padding: .9rem 0; border-top: 1px solid rgba(255,255,255,.12); }
.summary-item:first-of-type { border-top: 0; }
.summary-item span { display: block; color: #bdbdbd; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; }
.summary-item strong { display: block; margin-top: .3rem; font-size: 1.05rem; }
.summary-item p { margin: .3rem 0 0; color: #b8b8b8; font-size: .84rem; line-height: 1.45; }
.summary-group.decision .summary-item strong { color: var(--yellow); font-size: clamp(1.35rem, 3vw, 1.8rem); }
.summary-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.summary-card .button-primary { background: var(--ink); color: var(--white); }
.summary-card .button-quiet { color: var(--ink); border-color: rgba(0,0,0,.25); background: rgba(255,255,255,.16); }
.summary-status { min-height: 1.2rem; font-size: .72rem; font-weight: 800; }

footer { max-width: 1380px; margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 4rem) 4rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: var(--muted); }
footer p { max-width: 620px; font-size: .78rem; line-height: 1.45; text-align: right; }
.footer-brand { min-width: max-content; }

dialog { max-width: 460px; width: calc(100% - 2rem); border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2); color: var(--white); padding: 0; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
dialog form { padding: 2rem; text-align: center; }
.dialog-mark { width: 44px; height: 44px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255,93,93,.15); color: var(--danger); font-weight: 950; }
dialog h2 { margin: 0; }
dialog p { color: var(--muted); }
.dialog-actions { display: flex; justify-content: center; gap: .6rem; margin-top: 1.4rem; }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .progress-panel { position: static; }
  .steps-toggle { max-width: 300px; margin-inline: auto; text-align: center; }
  .section-nav { grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 620px; margin-inline: auto; }
  .section-nav a { text-align: center; padding: .7rem .4rem; border: 1px solid var(--line); border-radius: 8px; font-size: .74rem; }
  .section-nav a span { font-size: .62rem; }
  .section-nav.expanded { grid-template-columns: repeat(5, 1fr); }
  .section-nav.expanded a { display: grid; }
  .section-nav a.active { background: var(--yellow); border-color: var(--yellow); }
  .section-nav a.active span { color: var(--ink); }
  .privacy-note { text-align: center; }
}

@media (max-width: 700px) {
  body { padding-bottom: 92px; }
  .site-header { min-height: 68px; }
  .brand-copy small { display: none; }
  .save-state span:last-child { font-size: 0; }
  .save-state span:last-child::after { content: "Saved"; font-size: .7rem; }
  .hero h1 { font-size: clamp(2.85rem, 13vw, 3.8rem); line-height: .96; }
  .hero { padding-top: 3.5rem; padding-bottom: 3rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .trust-row { display: grid; gap: .65rem; }
  .loop-grid, .three-col, .economics-grid, .summary-grid { grid-template-columns: 1fr; }
  .summary-group.decision { grid-column: auto; }
  .segmented.three { grid-template-columns: 1fr; }
  .score-pair { grid-template-columns: 1fr; }
  .versus { text-align: center; }
  .audit-row { grid-template-columns: 1fr; }
  .audit-options { justify-content: stretch; }
  .audit-options label { flex: 1; }
  .audit-options span { width: 100%; }
  .audit-totals { grid-template-columns: repeat(2, 1fr); }
  .calendar-grid { grid-template-columns: 1fr; }
  #calendar { padding-inline: 1rem; }
  #calendar .calendar-month { padding: .85rem .25rem; }
  #calendar .calendar-weekdays, #calendar .calendar-days { gap: 1px; }
  #calendar .calendar-day { border-radius: 6px; }
  .calendar-summary { display: grid; gap: .3rem; }
  .work-card { padding: 1.25rem; border-radius: 18px; }
  .section-heading { margin-bottom: 1.4rem; }
  .section-heading h2 { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.04; }
  .section-heading p { font-size: 1rem; line-height: 1.5; }
  .step-controls { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; grid-template-columns: 1fr 1.4fr; margin: 0; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid #333; background: rgba(8,8,8,.94); box-shadow: 0 -14px 35px rgba(0,0,0,.5); backdrop-filter: blur(16px); }
  .step-controls .button { width: 100%; }
  .step-controls [data-step-back] { min-width: 0; justify-content: center; border: 1px solid var(--line); }
  .step-controls [data-step-next] { min-width: 0; min-height: 56px; padding: .7rem; gap: .4rem; font-size: .9rem; white-space: nowrap; }
  .step-count { position: absolute; left: 50%; top: -.65rem; transform: translateX(-50%); padding: .15rem .5rem; border-radius: 999px; background: #151515; color: #aaa; font-size: .58rem; }
  .step-control-spacer { display: block; }
  .step-finished { grid-column: 2; justify-self: stretch; min-height: 53px; display: grid; place-items: center; text-align: center; }
  .summary-card .step-count { background: var(--ink); color: var(--yellow); }
  footer { display: grid; }
  footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
