/* Year Reset — shared styles (SPEC.md §3). No external fonts, no framework. */
:root {
  --bg: #f7f7f4;
  --bg-2: #ffffff;
  --ink: #15191f;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --line: #e4e6ea;
  --accent: #b45309;
  --accent-ink: #ffffff;
  --accent-soft: #fdebd3;
  --mint: #047857;
  --mint-soft: #d7f5e9;
  --navy: #0b1220;
  --wedge: rgba(21, 25, 31, 0.16);
  --grid: rgba(21, 25, 31, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 10px 30px rgba(0, 0, 0, 0.06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --bg-2: #121a2b;
    --ink: #eef2f7;
    --ink-2: #aeb8c8;
    --ink-3: #8b96a8;
    --line: #223049;
    --accent: #f59e0b;
    --accent-ink: #1a0f03;
    --accent-soft: #3a2a12;
    --mint: #34d399;
    --mint-soft: #0f2f26;
    --wedge: rgba(238, 242, 247, 0.18);
    --grid: rgba(238, 242, 247, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220;
  --bg-2: #121a2b;
  --ink: #eef2f7;
  --ink-2: #aeb8c8;
  --ink-3: #8b96a8;
  --line: #223049;
  --accent: #f59e0b;
  --accent-ink: #1a0f03;
  --accent-soft: #3a2a12;
  --mint: #34d399;
  --mint-soft: #0f2f26;
  --wedge: rgba(238, 242, 247, 0.18);
  --grid: rgba(238, 242, 247, 0.16);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 6.5vw, 40px); font-weight: 760; }
h2 { font-size: clamp(22px, 5vw, 28px); font-weight: 720; }
h3 { font-size: 18px; font-weight: 680; }
p { margin: 0 0 12px; }
b, strong { font-weight: 650; }
.wrap { max-width: 680px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg-2); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }
.fine { color: var(--ink-3); font-size: 14px; }
.muted { color: var(--ink-2); }

/* header / footer */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 10px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 720; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.pill {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.site-footer {
  margin-top: 56px; padding-top: 20px; padding-bottom: max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* hero */
.hero { padding: 24px 0 20px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 56ch; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ink); font: 600 16px/1.2 var(--font);
  text-decoration: none; cursor: pointer; transition: transform 0.08s ease, background 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { background: color-mix(in srgb, var(--bg-2) 85%, var(--ink) 15%); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black 12%); }
.btn-ghost { background: transparent; }
.btn-lg { min-height: 54px; padding: 12px 22px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }

/* card + tool */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px 16px; }
.tool { margin-top: 8px; scroll-margin-top: 12px; }
.wheel { width: 100%; height: auto; }
.wheel-mini { max-width: 150px; margin: 0 auto 8px; }
.wheel .grid { fill: none; stroke: var(--grid); stroke-width: 1; }
.wheel .spoke { stroke: var(--grid); stroke-width: 1; }
.wheel .wedge { fill: var(--wedge); stroke: var(--bg-2); stroke-width: 2; } /* motion comes from wheel.js frames; a CSS `d` transition would lag behind them */
.wheel .wedge.low { fill: var(--accent); }
.wheel .wedge.high { fill: var(--mint); }
.wheel .wedge.current { fill: var(--accent); fill-opacity: 0.55; }
.wheel .label { font: 600 12px var(--font); fill: var(--ink-2); }
.wheel .label.low { fill: var(--accent); }
.wheel .label.high { fill: var(--mint); }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 2px 0 8px; }
.progress > span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 0.25s ease; }
.step-meta { font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 6px; }
.area { font-size: clamp(22px, 5.5vw, 26px); margin-bottom: 4px; }
.hint { color: var(--ink-2); margin-bottom: 14px; }
.q { font-weight: 600; margin-bottom: 10px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale button {
  min-height: 52px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font: 650 17px/1 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}
.scale button:hover { border-color: var(--ink-3); }
.scale button:active { transform: scale(0.97); }
.scale button:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.scale button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.anchors { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.nav .spacer { flex: 1; }

/* result */
.result { margin-top: 28px; scroll-margin-top: 12px; }
.result h2 { margin-bottom: 6px; }
.stat-line { font-weight: 600; margin-top: 8px; }
.stat-line .sep { color: var(--ink-3); font-weight: 400; padding: 0 4px; }
.stat-line .shape { display: block; font-weight: 400; color: var(--ink-2); margin-top: 2px; }
.guide { color: var(--ink-2); }
.notice { margin-top: 10px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--bg-2); }
.notice p { margin-bottom: 6px; }
.notice .nav { margin-top: 4px; }

/* offer */
.offer { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.checks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--mint-soft); box-shadow: inset 0 0 0 1px var(--mint); }
.checks li::after { content: ""; position: absolute; left: 5px; top: 10px; width: 5px; height: 8px; border: solid var(--mint); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.price-row { display: grid; gap: 12px; }
.price-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.price-card .price { font-size: 34px; font-weight: 760; letter-spacing: -0.02em; margin: 0; }
.price-card .sub { color: var(--ink-2); font-size: 14px; margin: 0 0 10px; }
.price-card .btn { margin-top: auto; }
.price-card h3 .tag { vertical-align: middle; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.trust { color: var(--ink-3); font-size: 14px; margin-top: 14px; }
/* "After you pay" strip (L2): the three steps between the button and the first check-in, visible, not in a collapsed FAQ */
.after-pay { margin-top: 16px; padding: 14px 16px 12px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg-2); }
.after-pay-title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.after-pay-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: ap; }
.after-pay-steps li { position: relative; padding-left: 34px; font-size: 14px; line-height: 1.45; color: var(--ink-2); counter-increment: ap; min-width: 0; }
.after-pay-steps li::before { content: counter(ap); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--ink); font: 700 13px/24px var(--font); text-align: center; }
.after-pay-steps li b { color: var(--ink); }
.maker { color: var(--ink-3); font-size: 14px; margin: 12px 0 0; }
.maker a { color: var(--ink-2); }

/* evidence + faq */
.evidence { margin-top: 40px; }
.evidence ul { padding-left: 18px; margin: 0 0 10px; color: var(--ink-2); }
.evidence li { margin-bottom: 8px; }
.evidence li b { color: var(--ink); }
.faq { margin-top: 36px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: 10px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 0 0 12px; }

/* consent + toast */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--bg-2); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12);
  padding: 14px 16px max(14px, env(safe-area-inset-bottom));
}
.consent .inner { max-width: 680px; margin: 0 auto; display: grid; gap: 10px; }
.consent p { margin: 0; font-size: 15px; color: var(--ink-2); }
.consent .nav { margin: 0; }
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-size: 14px; z-index: 60;
  max-width: calc(100vw - 32px); box-shadow: var(--shadow); opacity: 0; transition: opacity 0.2s ease;
}
.toast.show { opacity: 1; }

/* legal / plain pages */
.prose h2 { font-size: 20px; margin-top: 28px; }
.prose p, .prose li { color: var(--ink-2); }
.draft { display: inline-block; background: var(--accent-soft); color: var(--ink); border-radius: 8px; padding: 2px 8px; font-size: 13px; font-weight: 600; }

/* ---- landing V2 (audit 3.A): hero wheel, steps, phones, sticky CTA, reveal ---- */
.pill-link { text-decoration: none; }
.pill-link:hover { border-color: var(--accent); color: var(--accent); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.hero-v2 { padding: 20px 16px 8px; max-width: 1080px; }
.hero-grid { display: grid; gap: 22px; align-items: center; }
.hero-text h1 { font-size: clamp(34px, 8.5vw, 58px); line-height: 1.04; letter-spacing: -0.025em; margin-bottom: 14px; }
.hero-text h1 em { font-style: normal; color: var(--accent); }
.hero-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 4px; }
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.hero-wheel { margin: 10px auto 0; width: 100%; max-width: 440px; text-align: center; }
.hero-panel { display: block; width: 100%; background: radial-gradient(90% 80% at 50% 30%, #182341 0%, var(--navy) 70%); border-radius: 28px; padding: 18px 10px 10px; box-shadow: 0 24px 60px rgba(11, 18, 32, 0.35); }
.hero-wheel figcaption { margin-top: 8px; }
.wheel-hero { width: 100%; height: auto; display: block; }
.wheel-hero .grid { stroke: rgba(238, 242, 247, 0.14); }
.wheel-hero .spoke { stroke: rgba(238, 242, 247, 0.12); }
.wheel-hero .wedge { fill: rgba(238, 242, 247, 0.22); stroke: var(--navy); }
.wheel-hero .wedge.low { fill: #f59e0b; }
.wheel-hero .wedge.high { fill: #34d399; }
.wheel-hero .label { fill: #c7d0df; }
.wheel-hero .label.low { fill: #fbbf24; }
.wheel-hero .label.high { fill: #6ee7b7; }
.wheel-hero .wedges { transform-origin: 220px 170px; transform-box: view-box; }
.wheel-hero.spin .wedges { animation: yr-spin 70s linear infinite; }
@keyframes yr-spin { to { transform: rotate(360deg); } }
.wheel .wedge.pulse { animation: yr-pulse 1.4s ease-in-out 2; }
@keyframes yr-pulse { 0%, 100% { fill-opacity: 1; } 50% { fill-opacity: 0.55; } }
#step.enter > * { animation: yr-step 0.28s ease both; }
@keyframes yr-step { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result.moment { margin-top: 28px; padding: 22px 16px 20px; border-radius: 20px; background: radial-gradient(120% 90% at 50% 0%, var(--accent-soft) 0%, var(--bg-2) 60%); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.result.moment h2 { font-size: clamp(24px, 6vw, 32px); }
.result.moment .wheel-big { max-width: 520px; margin: 4px auto 0; }
.result.moment .nav { justify-content: center; }
.result.moment .guide, .result.moment .stat-line { text-align: center; }
.result-tiles { grid-template-columns: repeat(3, 1fr); margin: 10px 0 4px; text-align: left; }
.result-tiles .tile b { font-size: clamp(18px, 5.5vw, 24px); overflow-wrap: anywhere; } /* "Friends 9" fits a 93 px tile at 360 px */
.how, .product { margin-top: 44px; }
.steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; counter-reset: step; }
.steps li { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; align-content: start; }
.steps li h3 { grid-column: 2; margin: 2px 0 4px; }
.steps li p { grid-column: 2; margin: 0; color: var(--ink-2); font-size: 15px; }
.step-icon { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.step-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-grid { display: grid; gap: 18px; margin-top: 14px; }
.phones { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 10px; -webkit-overflow-scrolling: touch; }
.phone { flex: 0 0 min(72vw, 250px); scroll-snap-align: center; margin: 0; }
.phone img { width: 100%; height: auto; border-radius: 26px; border: 6px solid var(--navy); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18); background: #fff; }
.phone figcaption { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 6px; font-weight: 600; }
.product-checks { margin: 0; }
.offer { margin-top: 44px; padding-top: 0; border-top: 0; }
.price-card:hover { border-color: var(--ink-3); }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); background: var(--bg-2); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12); transform: translateY(100%); transition: transform 0.3s ease; }
.sticky-cta.show { transform: none; }
.sticky-cta[hidden] { display: none; }
.sticky-cta span { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--ink-2); }
.sticky-cta .btn { flex: none; min-height: 42px; padding: 8px 12px; font-size: 14px; }
/* wheel.js writes --sticky-h (the bar's measured height) when it shows the bar; the fallback covers a two-line bar */
@media (max-width: 719.98px) { body.has-sticky { padding-bottom: calc(var(--sticky-h, 72px) + 16px + env(safe-area-inset-bottom, 0px)); } }
/* scroll reveal only when JavaScript runs (html.js is set by the inline head script); without it everything is simply visible */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
/* the wheels are drawn by JavaScript: without it, hide the empty hero panel and mini wheel (the review hero is plain HTML and stays) */
html:not(.js) #mini { display: none; }
html:not(.js) .hero-wheel:has(#hero) { display: none; }
html:not(.js) .tool .nojs { color: var(--ink-2); margin: 0; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .wheel-hero.spin .wedges { animation: none; } }
@media (min-width: 720px) {
  .hero-v2 { padding: 44px 24px 20px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
  .hero-wheel { max-width: 460px; margin-top: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { grid-template-columns: 1fr; }
  .steps li h3, .steps li p { grid-column: 1; }
  .step-icon { grid-row: auto; margin-bottom: 8px; }
  .product-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .phones { overflow: visible; justify-content: center; }
  .phone { flex: 0 0 180px; }
  .sticky-cta { display: none; }
  .after-pay-steps { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

/* ---- app (SPEC.md §6) ---- */
.hero.compact { padding: 18px 0 10px; }
.h-sm { font-size: 17px; margin-bottom: 8px; }
.pill-mint { background: var(--mint-soft); color: var(--mint); border-color: transparent; }
.notice-inline { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field small { font-weight: 400; color: var(--ink-3); }
.field input[type="text"], .field input[type="number"], .field input[type="date"], .field select, .field textarea, input.mono, textarea.code, #code-in {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: 16px/1.3 var(--font);
}
.field input:focus, .field select:focus, textarea:focus, #code-in:focus, input.mono:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.mono { font-family: var(--mono) !important; letter-spacing: 0.04em; }
.field-row { display: grid; gap: 0 12px; }
.err { display: block; color: var(--accent); font-size: 13px; font-style: normal; margin-top: 4px; }
.hint { display: block; color: var(--ink-3); font-size: 13px; font-style: normal; margin-top: 4px; }
.form-msg { color: var(--accent); font-weight: 600; }
.area-grid { display: grid; gap: 8px; }
.area-opt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--bg); }
.area-opt.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.area-opt input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.area-name { font-weight: 600; flex: 1; }
.area-score { color: var(--ink-3); font-size: 14px; }
.tag { font-size: 12px; background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; }
.goal-card { margin-top: 12px; }
.today-head { padding: 18px 0 8px; }
.today-head h1 { margin-bottom: 2px; }
.card.accent { border-color: var(--accent); }
.card + .card, .card + .tiles, .tiles + .card { margin-top: 12px; }
.goal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.goal-row { display: flex; gap: 14px; align-items: flex-start; }
.check-btn {
  flex: none; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); cursor: pointer;
  display: grid; place-items: center; -webkit-tap-highlight-color: transparent; transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}
.check-btn:active { transform: scale(0.95); }
.check-btn span { width: 12px; height: 22px; border: solid transparent; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-2px, -3px); }
.check-btn[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); }
.check-btn[aria-pressed="true"] span { border-color: #fff; }
.check-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.goal-body { flex: 1; min-width: 0; }
.goal-text { font-weight: 600; margin: 4px 0 2px; }
.goal-row.done .goal-text { color: var(--ink-2); }
.goal-sub { color: var(--ink-3); font-size: 14px; margin: 0 0 4px; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: 600 14px var(--font); cursor: pointer; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.tile { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile b { font-size: 24px; font-weight: 760; letter-spacing: -0.02em; }
.tile span { font-size: 13px; color: var(--ink-3); }
.tile.wide { grid-column: 1 / -1; }
.tiles.in-card { margin-top: 10px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px; border: 1px dashed var(--line); color: var(--ink-3); }
.badge.earned { border-style: solid; border-color: transparent; background: var(--mint-soft); color: var(--mint); }
.grid-90 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 272px; }
.grid-90 .cell { aspect-ratio: 1; border-radius: 4px; background: var(--line); display: block; }
.grid-90 .cell.none { background: color-mix(in srgb, var(--line) 55%, transparent); }
.grid-90 .cell.n1 { background: color-mix(in srgb, var(--mint) 40%, var(--bg-2)); }
.grid-90 .cell.n2 { background: color-mix(in srgb, var(--mint) 70%, var(--bg-2)); }
.grid-90 .cell.n3 { background: var(--mint); }
.grid-90 .cell.future { background: transparent; border: 1px dashed var(--line); }
.grid-90 .cell.today { outline: 2px solid var(--accent); outline-offset: 1px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; gap: 4px; }
.bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--mint); border-radius: 999px; }
.bar-num { font-size: 13px; color: var(--ink-3); }
.bar-label { font-weight: 600; font-size: 14px; }
.num-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.num-table th, .num-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.num-table th { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.num-table td:not(:first-child), .num-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.trend { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.trend-dot { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mint-soft); color: var(--mint); font-weight: 700; font-size: 13px; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.year-card { border-color: var(--navy); background: var(--navy); color: #eef2f7; }
.year-card .tile { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.year-card .tile span, .year-card .muted { color: #aeb8c8; }
.yc-area { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #f59e0b; font-weight: 700; margin-bottom: 2px; }
.yc-dates { color: #aeb8c8; margin-bottom: 10px; }
.yc-goals { margin: 0 0 12px; padding-left: 20px; font-weight: 600; }
.yc-foot { margin: 12px 0 0; color: #8b96a8; font-size: 13px; }
textarea.code { resize: vertical; font-size: 13px; }
.grow { flex: 1; min-width: 0; }
.card.danger { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.pair-code { font-size: 22px; letter-spacing: 0.12em; }
.check-row { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; font-size: 15px; color: var(--ink-2); }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.together .together-line { font-weight: 600; }
.together-table td:not(:first-child), .together-table th:not(:first-child) { text-align: center; }
input[type="time"] { min-height: 46px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 16px var(--font); }
.app-nav { display: flex; gap: 4px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bg-2); border-top: 1px solid var(--line); padding: 6px 8px max(6px, env(safe-area-inset-bottom)); }
.app-nav a { flex: 1; text-align: center; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 8px 4px; border-radius: 10px; }
.app-nav a.active { color: var(--accent); background: var(--accent-soft); }
.app-nav[hidden] { display: none; }
.app-main { padding-bottom: 96px; min-height: 60vh; }
.app-body .site-footer { margin-top: 32px; }

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 36px 0 24px; }
  .card { padding: 22px 22px 20px; }
  .scale { grid-template-columns: repeat(10, 1fr); }
  .scale button { min-height: 48px; }
  .price-row { grid-template-columns: 1fr 1fr; }
  .consent .inner { grid-template-columns: 1fr auto; align-items: center; }
  .wheel-mini { max-width: 170px; }
}
@media (min-width: 720px) {
  .app-nav { position: static; max-width: 680px; margin: 0 auto; border: 0; background: transparent; padding: 0 16px; }
  .app-nav a { flex: none; padding: 8px 14px; }
  .app-main { padding-bottom: 40px; }
}
@media print {
  .site-header, .site-footer, .consent, .toast, .offer, .faq, .nav, .app-nav, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .year-card { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  .year-card * { color: #000 !important; }
}

/* ---- app fixes 2026-10-07 (review S5–S9): recovery card, stacked notices ---- */
.err-detail { font: 12px/1.4 var(--mono); color: var(--ink-3); white-space: pre-wrap; word-break: break-word; margin: 0 0 6px; }
.notice-inline + .notice-inline { margin-top: 8px; }
.notice-inline b { font-weight: 650; }
