/* Tidewater Data design tokens and shared styles */
:root {
  --brand: #0B6E75; --brand-deep: #08545B; --brand-glow: #76DFD6; --brand-cyan: #8CD9F0;
  --brand-ice: #E6F7F7; --brand-tint: #E6F5F4; --brand-tint-ink: #0A565C;
  --hero-deep: #0B1526; --hero-mid: #12233C; --hero-teal: #133F52;
  --ink: #111E33; --ink-muted: #4A5B73; --paper: #FFFFFF; --soft: #F6F8FA; --tint: #EDF1F5;
  --border: #E2E8F0; --input-border: #CBD5E1;
  --attention-bg: #FEF7E6; --attention-border: #F2D28B; --attention-ink: #8A5A00; --danger-ink: #B42318;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-panel: 20px; --r-box: 14px; --r-input: 10px; --r-pill: 999px;
  --shadow-float: 0 1px 2px rgba(11, 21, 38, 0.08);
  --shadow-lift: 0 8px 24px rgba(11, 21, 38, 0.10);
  --shadow-hero: 0 40px 80px -30px rgba(11, 21, 38, 0.78);
  --maxw: 1160px; --gutter: clamp(16px, 4vw, 32px); --header: 64px;
  --section: clamp(56px, 7vw, 96px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.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; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: 12px; transform: translateY(-200%); z-index: 100; background: var(--paper); padding: 8px 14px; border-radius: var(--r-pill); }
.skip:focus { transform: none; box-shadow: var(--shadow-lift); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header);
  background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.025em; color: var(--ink); min-height: 44px; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand .d { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.link { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-muted); padding: 10px 12px; border-radius: var(--r-pill); transition: color .2s, background .2s; }
.nav a.link:hover { color: var(--ink); background: var(--tint); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  border: 1px solid transparent; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(8, 84, 91, 0.3); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--input-border); }
.btn-ghost:hover { border-color: var(--ink-muted); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; min-height: 48px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.nav .btn-sm { min-height: 40px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--hero-deep) 0%, var(--hero-mid) 52%, var(--hero-teal) 100%);
  padding: calc(var(--header) + clamp(48px, 7vw, 88px)) 0 clamp(56px, 7vw, 96px); }
.hero .contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .contours path { fill: none; stroke-width: 1.15; }
.hero .contours g { animation: drift 18s ease-in-out infinite alternate; transform-origin: center; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-24px, 10px, 0); } }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 500px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.04; font-weight: 500; letter-spacing: -0.04em;
  background: linear-gradient(92deg, var(--brand-glow) 0%, var(--brand-cyan) 55%, var(--brand-ice) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; max-width: 12ch; }
.hero .sub { margin-top: 20px; font-size: clamp(17px, 1.5vw, 19px); color: rgba(230, 247, 247, 0.82); max-width: 32ch; }
.hero .anchor { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--brand-ice); font-size: 15px; font-weight: 500;
  text-decoration: none; border-bottom: 1px solid rgba(118, 223, 214, 0.45); padding: 10px 0 4px; }
.hero .anchor:hover { border-color: var(--brand-glow); color: #fff; }
.hero .anchor svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.hero .anchor:hover svg { transform: translateY(2px); }

/* Calculator card */
.calc { position: relative; background: var(--paper); color: var(--ink); border-radius: var(--r-panel); padding: 28px;
  box-shadow: var(--shadow-hero), 0 0 0 1px rgba(255, 255, 255, 0.06); width: 100%; }
.calc h2 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 18px; }
.field-label { display: block; font-size: 13px; line-height: 1.3; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.select-wrap { position: relative; }
.select-wrap svg { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; color: var(--ink-muted); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.input { width: 100%; height: 44px; border: 1px solid var(--input-border); border-radius: var(--r-input); background: var(--paper);
  padding: 0 12px; font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: #94A3B8; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 110, 117, 0.16); }
.input.invalid { border-color: var(--danger-ink); box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.10); }
input[type=number].input { -moz-appearance: textfield; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc .row { margin-top: 14px; }
.num-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--input-border); background: var(--paper);
  color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.seg button:hover { border-color: var(--ink-muted); }
.seg button[aria-checked=true] { background: var(--brand); border-color: var(--brand); color: #fff; }
.calc hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0 16px; }
.out-label { font-size: 12px; line-height: 1.4; color: var(--ink-muted); font-weight: 500; }
.out-range { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 28px; line-height: 1.15; font-weight: 600; color: var(--brand); letter-spacing: -0.02em; margin-top: 4px; }
.out-range.error { color: var(--danger-ink); font-family: var(--font-sans); font-size: 20px; }
.out-refresh { font-size: 13px; color: var(--ink-muted); margin-top: 4px; min-height: 20px; }
.notes { display: grid; gap: 6px; margin-top: 10px; }
.note { font-size: 13px; line-height: 1.4; border-radius: var(--r-input); padding: 8px 12px; display: flex; gap: 8px; align-items: flex-start; }
.note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.note.warn { background: var(--attention-bg); border: 1px solid var(--attention-border); color: var(--attention-ink); }
.note.hint { background: var(--soft); border: 1px solid var(--border); color: var(--ink-muted); }
.note[hidden] { display: none; }
.calc .cta { margin-top: 16px; }
.calc .foot { margin-top: 10px; font-size: 12px; line-height: 1.4; color: var(--ink-muted); text-align: center; }

/* Stats */
.stats { padding: clamp(48px, 6vw, 72px) 0 clamp(40px, 5vw, 56px); border-bottom: 1px solid var(--border); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 8px clamp(16px, 3vw, 40px); border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .fig { font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.05; font-weight: 500; letter-spacing: -0.04em; color: var(--brand); white-space: nowrap; }
.stat .cap { margin-top: 12px; font-size: 15px; color: var(--ink-muted); max-width: 26ch; }
.sources { margin-top: 28px; font-size: 12px; color: var(--ink-muted); }

/* Sections */
.section { padding: var(--section) 0; }
.h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; max-width: 24ch; }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }

/* Records */
.records-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.prep { color: #fff; border-radius: var(--r-panel); padding: 28px; display: flex; flex-direction: column; gap: 22px;
  background: linear-gradient(155deg, #0B1526 0%, #12233C 62%, #133F52 100%); border: 1px solid rgba(118, 223, 214, 0.16);
  box-shadow: 0 20px 48px -24px rgba(11, 21, 38, 0.55); }
.eyebrow { align-self: flex-start; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-glow);
  background: rgba(118, 223, 214, 0.10); padding: 4px 10px; border-radius: var(--r-pill); }
.prep h3 { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.prep .lead { color: rgba(230, 247, 247, 0.78); font-size: 15px; margin-top: 10px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
.split::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px; background: rgba(255, 255, 255, 0.08); }
.split .col { padding-right: 8px; }
.split .col + .col { padding-left: 8px; }
.split h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.split .in h4 { color: var(--brand-glow); }
.split .out h4 { color: #94A3B8; }
.split ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.split li { display: flex; gap: 9px; font-size: 14px; line-height: 1.4; align-items: flex-start; }
.split li svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.split .in li { color: #E6F7F7; } .split .in li svg { color: var(--brand-glow); }
.split .out li { color: #CBD5E1; } .split .out li svg { color: #94A3B8; }
.pipe { margin-top: auto; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 12px 14px; }
.pipe .stages { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: #E6F7F7; }
.pipe .stages svg { width: 14px; height: 14px; color: var(--brand-glow); }
.pipe p { font-size: 12px; color: #94A3B8; margin-top: 6px; }
.facts { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 14px; }
.facts dt { color: var(--brand-glow); font-weight: 600; font-size: 13px; }
.facts dd { margin: 0; color: #CBD5E1; }

.rec-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-panel); padding: 28px; box-shadow: var(--shadow-lift); display: flex; flex-direction: column; }
.rec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.rec-head strong { font-size: 16px; font-weight: 600; }
.rec-head span { font-size: 13px; color: var(--ink-muted); }
.rec-list { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.rec-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.rec-list li:last-child { border-bottom: 0; }
.av { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-family: var(--font-mono); font-size: 13px; font-weight: 500; flex: none; background: var(--hero-deep); }
.rec-list li:nth-child(even) .av { background: var(--brand); }
.rec-meta { flex: 1; min-width: 0; }
.rec-meta b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.rec-meta small { display: block; font-size: 13px; color: var(--ink-muted); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--tint); color: var(--ink-muted); white-space: nowrap; transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); }
.badge svg { width: 12px; height: 12px; }
.badge.done { background: var(--brand-tint); color: var(--brand-tint-ink); }
.badge.pop { animation: pop .45s var(--ease); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pop { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* How it works */
.how { color: #fff; background: linear-gradient(115deg, #0B1526 0%, #10263F 60%, #113C4E 100%); position: relative; overflow: hidden; }
.how .h2 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 24px; border-radius: var(--r-box); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09); }
.steps .n { font-family: var(--font-mono); font-size: 12px; color: var(--brand-glow); letter-spacing: 0.06em; }
.steps h3 { font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; margin-top: 14px; }
.steps p { margin-top: 8px; font-size: 15px; color: rgba(230, 247, 247, 0.72); }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: #E6F7F7; }
.checks .ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(118, 223, 214, 0.12); color: var(--brand-glow); flex: none; }
.checks .ic svg { width: 16px; height: 16px; }

/* FAQ */
.faq { max-width: 880px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; background: none; border: 0;
  padding: 20px 0; min-height: 56px; font-size: 17px; font-weight: 600; color: var(--ink); cursor: pointer; letter-spacing: -0.01em; }
.faq-q:hover { color: var(--brand); }
.faq-q .pm { position: relative; width: 16px; height: 16px; flex: none; color: var(--ink-muted); }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.faq-q .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[aria-expanded=true] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 40px 22px 0; color: var(--ink-muted); font-size: 16px; max-width: 68ch; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* Contact */
.contact { padding-top: 0; }
.contact-card { max-width: 780px; margin: 0 auto; text-align: center; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-panel);
  box-shadow: var(--shadow-lift); padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 56px); }
.contact-card .h2 { margin: 0 auto; }
.contact-card p.body { margin: 14px auto 0; color: var(--ink-muted); font-size: 17px; max-width: 46ch; }
.contact-card .actions { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.contact-card .cap { font-size: 13px; color: var(--ink-muted); }
.contact-card .mail { margin-top: 18px; font-size: 14px; color: var(--ink-muted); }
.contact-card .mail a { color: var(--brand); font-weight: 600; text-decoration: none; }
.contact-card .mail a:hover { text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 44px; font-size: 13px; color: var(--ink-muted); }
.site-footer .container { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: start; }
.site-footer p { max-width: 64ch; }
.foot-links { display: flex; gap: 6px 20px; flex-wrap: wrap; justify-content: flex-end; }
.foot-links a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 4px 0; }
.foot-links a:hover { color: var(--brand); }
.entity { grid-column: 1 / -1; font-size: 12px; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Legal pages */
.legal-wrap { padding: calc(var(--header) + 48px) 0 72px; background: var(--soft); min-height: 100vh; }
.legal { max-width: 780px; margin: 0 auto; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-panel); padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow-float); }
.legal h1 { font-size: 34px; line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; }
.legal .meta { margin-top: 8px; font-size: 13px; color: var(--ink-muted); }
.legal .draft { margin-top: 18px; }
.legal h2 { font-size: 19px; font-weight: 600; margin: 32px 0 8px; letter-spacing: -0.01em; }
.legal p, .legal li { color: #2A3A52; font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--brand); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .calc { max-width: 560px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .records-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 720px) {
  .nav a.link { display: none; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding: 20px 0; border-top: 1px solid var(--border); }
  .stat:first-child { border-top: 0; padding-top: 0; }
  .checks { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 560px) {
  .calc { padding: 20px; }
  .steps { grid-template-columns: 1fr; }
  .faq-q { font-size: 16px; }
  .faq-a p { padding-right: 0; }
  .prep, .rec-card { padding: 22px; }
}
@media (max-width: 480px) {
  .split { grid-template-columns: 1fr; }
  .split::before { display: none; }
  .split .col, .split .col + .col { padding: 0; }
}
@media (max-width: 420px) {
  .num-grid { grid-template-columns: 1fr 1fr; }
  .num-grid .f-years { grid-column: 1 / -1; }
  .seg button { flex: 1 1 auto; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Fit check (/check) */
.check-page { background: var(--soft); min-height: 100vh; }
.check-header .container { justify-content: space-between; }
.check-meta { display: flex; align-items: center; gap: 14px; }
.step-count { font-size: 12px; color: var(--ink-muted); }
.link-btn { background: none; border: 0; padding: 0 4px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--brand); cursor: pointer; }
.link-btn:hover { color: var(--brand-deep); text-decoration: underline; }
.link-btn[hidden] { display: none; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--tint); }
.progress span { display: block; height: 100%; width: 16.66%; background: var(--brand); transition: width .35s var(--ease); }
.check-main { padding: calc(var(--header) + 40px) var(--gutter) 56px; }
.check-card { max-width: 600px; margin: 0 auto; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-panel);
  box-shadow: var(--shadow-lift); padding: clamp(22px, 5vw, 40px); outline: none; }
.check-foot { max-width: 600px; margin: 20px auto 0; text-align: center; font-size: 13px; color: var(--ink-muted); }
.check-foot a { color: var(--ink-muted); }
.recap { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--brand-tint); color: var(--brand-tint-ink);
  border-radius: var(--r-box); padding: 6px 6px 6px 14px; margin-bottom: 24px; font-size: 14px; font-weight: 500; }
.recap .txt { min-width: 0; }
.recap .link-btn { color: var(--brand-tint-ink); flex: none; padding: 0 12px; }
.q-title { font-size: clamp(24px, 3.4vw, 30px); line-height: 1.18; font-weight: 600; letter-spacing: -0.03em; }
.q-sub { margin-top: 8px; color: var(--ink-muted); font-size: 16px; }
.q-body { margin-top: 24px; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt-grid.one { grid-template-columns: 1fr; }
.opt { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 10px 14px 10px 44px; text-align: left;
  border: 1px solid var(--input-border); border-radius: 12px; background: var(--paper); cursor: pointer; font-size: 15px; font-weight: 600; line-height: 1.3;
  transition: border-color .15s, background .15s, box-shadow .15s; width: 100%; }
.opt:hover { border-color: #94A3B8; }
.opt small { font-weight: 400; color: var(--ink-muted); font-size: 13px; margin-top: 2px; }
.opt::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 1.5px solid var(--input-border); background: var(--paper); transition: all .15s; }
.opt.multi::before { border-radius: 5px; }
.opt[aria-checked=true], .opt[aria-pressed=true] { border: 1.5px solid var(--brand); background: var(--brand-tint); padding-left: 43.5px; }
.opt[aria-checked=true]::before { border-color: var(--brand); box-shadow: inset 0 0 0 4px var(--paper); background: var(--brand); }
.opt[aria-pressed=true]::before { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m2.5 6.3 2.2 2.2 4.8-5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.fields { display: grid; gap: 16px; }
.fields.two { grid-template-columns: 1fr 1fr; }
.hint-text { font-size: 13px; color: var(--ink-muted); margin-top: 6px; }
.err { font-size: 13px; color: var(--danger-ink); margin-top: 6px; }
.err:empty { display: none; }
textarea.input { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.counter { margin-top: 12px; font-size: 13px; color: var(--ink-muted); }
.callout { background: var(--soft); border: 1px solid var(--border); border-radius: var(--r-box); padding: 18px; }
.callout .out-range { font-size: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { font-size: 12px; font-weight: 600; background: var(--paper); border: 1px solid var(--border); color: var(--ink-muted); padding: 4px 10px; border-radius: var(--r-pill); }
.fine { font-size: 12px; color: var(--ink-muted); margin-top: 12px; line-height: 1.45; }
.subq { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.subq h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.actions-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.actions-bar .spacer { flex: 1; }
.actions-bar .btn { min-height: 48px; padding: 0 24px; }
.form-error { margin-top: 16px; }
.done-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.done-icon svg { width: 24px; height: 24px; }
.summary { margin-top: 22px; background: var(--soft); border: 1px solid var(--border); border-radius: var(--r-box); padding: 16px 18px; font-size: 14px; }
.summary dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.summary dt { color: var(--ink-muted); }
.summary dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.done-note { margin-top: 18px; font-size: 14px; color: var(--ink-muted); }
.done-note a { color: var(--brand); font-weight: 600; }
.ref { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); margin-top: 8px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.step-anim { animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .opt-grid { grid-template-columns: 1fr; }
  .fields.two { grid-template-columns: 1fr; }
  .check-main { padding-top: calc(var(--header) + 20px); padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .check-card { border-radius: 16px; }
  .actions-bar.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--border);
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
  .actions-bar.sticky .btn-primary { flex: 1; }
  .recap { font-size: 13px; }
  .summary dl { grid-template-columns: 1fr; gap: 2px; }
  .summary dd { margin-bottom: 8px; }
}
.nw { white-space: nowrap; }
.hero h1 { max-width: 13ch; }
@media (max-width: 480px) {
  .pipe .stages { font-size: 13px; gap: 6px; }
  .pipe .stages svg { width: 12px; height: 12px; }
}
@media (max-width: 360px) {
  .pipe .stages { flex-direction: column; align-items: flex-start; }
  .pipe .stages svg { transform: rotate(90deg); }
}
