@font-face { font-family: 'Figtree'; src: url('/fonts/figtree.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('/fonts/sora.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #ffffff; --paper: #ffffff; --paper-2: #f6f8fb; --ink: #0b0f19; --muted: #5a6475; --line: #e4e8ef; --line-2: #cfd6e1;
  --brand: #1d4ed8; --brand-2: #2563eb; --brand-soft: #eaf1ff; --on-brand: #ffffff;
  --accent: #1d4ed8; --accent-soft: #f1f5ff;
  --c0: #1d4ed8; --c1: #60a5fa; --c2: #0b0f19; --c3: #93c5fd; --c4: #64748b; --c5: #1e3a8a; --c6: #3b82f6;
  --ok: #1d4ed8; --warn: #b42318;
  --shadow: 0 1px 2px rgb(15 23 42 / .05), 0 12px 32px -12px rgb(15 23 42 / .14);
  --r: 14px; --head: 'Sora', 'Figtree', system-ui, sans-serif; --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 1.08rem/1 var(--head); letter-spacing: -.01em; }
.brand b { font-weight: 500; margin-left: 4px; color: var(--muted); }
.mark { width: 30px; height: 30px; flex: none; }
.mark .m1 { fill: var(--brand); }
.mark .m2 { fill: var(--ink); }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 650; color: var(--muted); padding: 8px 12px; border-radius: 9px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: var(--paper); }
.nav a[aria-current] { color: var(--brand); background: var(--brand-soft); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line-2); display: grid; place-content: center; gap: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu nav { position: absolute; right: 0; top: 54px; width: min(280px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; display: grid; animation: drop .22s ease-out; }
.menu nav a { text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 650; }
.menu nav a[aria-current] { background: var(--brand-soft); color: var(--brand); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--muted); padding-top: 22px; }
.crumbs a { text-decoration: none; font-weight: 650; }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { opacity: .5; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1.5px solid var(--brand); background: var(--brand); color: var(--on-brand); font-weight: 750; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px var(--brand); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 56px; overflow: hidden; }
.hero-sm { padding: 36px 0 44px; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-in.single { grid-template-columns: 1fr; }
.hero-in.single .hero-copy { max-width: 880px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 700; letter-spacing: -.045em; }
.hero-sm h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.lede { margin-top: 20px; font-size: clamp(1.04rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 60ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; font-size: .93rem; color: var(--muted); }
.hero-meta b { display: block; font: 800 1.9rem/1.1 var(--head); color: var(--ink); letter-spacing: -.02em; }
.checked { margin-top: 24px; font-size: .84rem; color: var(--muted); }
.hero-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.hc-h { font: 700 .95rem/1.2 var(--head); margin-bottom: 18px; }
.factors { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.f { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: .9rem; font-weight: 650; }
.f-p { font-variant-numeric: tabular-nums; color: var(--muted); }
.f-bar { grid-column: 1 / -1; height: 10px; border-radius: 4px; background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; }
.f-bar span { display: block; height: 100%; border-radius: 3px; transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.f0 .f-bar span { width: 100%; background: var(--c0); } .f1 .f-bar span { width: 66.6%; background: var(--c1); } .f2 .f-bar span { width: 50%; background: var(--c6); }
.f3 .f-bar span { width: 33.3%; background: var(--c2); } .f4 .f-bar span { width: 33.3%; background: var(--c3); } .f5 .f-bar span { width: 16.6%; background: var(--c4); } .f6 .f-bar span { width: 16.6%; background: var(--c5); }
.ready .f-bar span { transform: scaleX(1); }
.f1 .f-bar span { transition-delay: .08s; } .f2 .f-bar span { transition-delay: .16s; } .f3 .f-bar span { transition-delay: .24s; } .f4 .f-bar span { transition-delay: .32s; } .f5 .f-bar span { transition-delay: .4s; } .f6 .f-bar span { transition-delay: .48s; }

/* ---------- calculator ---------- */
.calc-sec { padding: 8px 0 72px; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.calc { display: grid; gap: 16px; }
.q { margin: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); padding: 22px 22px 22px; min-width: 0; transition: border-color .3s, box-shadow .3s; }
.q[data-done] { border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); }
.q legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; font: 750 1.12rem/1.25 var(--head); letter-spacing: -.01em; padding: 0; }
.q legend + * { clear: both; }
.q-tick { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); position: relative; transition: background .25s, border-color .25s; }
.q-tick::after { content: ''; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--on-brand); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.q[data-done] .q-tick { background: var(--brand); border-color: var(--brand); }
.q[data-done] .q-tick::after { transform: rotate(45deg) scale(1); }
.q-help { clear: both; padding-top: 6px; margin-left: 34px; font-size: .9rem; color: var(--muted); }
.q-help a { color: var(--brand); font-weight: 650; }
.opts, .checks { clear: both; display: grid; gap: 10px; margin-top: 16px; }
.opts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper-2); transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.opt:hover .opt-box { border-color: var(--line-2); transform: translateY(-1px); }
.opt input:focus-visible + .opt-box { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.opt input:checked + .opt-box { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.opt-text { display: grid; gap: 2px; min-width: 0; }
.opt-label { font-weight: 700; font-size: .96rem; line-height: 1.3; }
.opt-hint { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.opt-pts { flex: none; font-size: .8rem; font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt input:checked + .opt-box .opt-pts { color: var(--brand); }
.field { clear: both; display: grid; gap: 6px; margin-top: 16px; }
.field-l { font-size: .88rem; font-weight: 700; }
.field select, .field input { width: 100%; min-height: 50px; padding: 0 15px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper-2); font-weight: 600; font-size: 1rem; transition: border-color .2s; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field select:focus, .field input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.money-in { position: relative; display: block; }
.money-in > span { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.money-in input { padding-left: 30px; font-variant-numeric: tabular-nums; }
.sub { margin-top: 14px; padding: 16px; border-radius: 12px; background: var(--paper-2); border: 1px dashed var(--line-2); animation: drop .25s ease-out; }
.sub .field:first-child { margin-top: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 650; font-size: .95rem; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.check + .field { margin-top: 16px; }
.occ-status, .band, .auto, .warn { margin-top: 10px; font-size: .88rem; font-weight: 650; color: var(--muted); }
.occ-status:empty, .band:empty { display: none; }
.occ-status.yes { color: var(--ok); }
.warn { color: var(--warn); }
.auto { color: var(--brand); }
.q-soft .q-tick { border-style: dashed; }

/* ---------- results panel ---------- */
.panel { position: sticky; top: 88px; }
.panel-in { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.panel-h { font-size: 1rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.score { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.score output { font: 800 clamp(3.4rem, 6vw, 4.4rem)/1 var(--head); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--brand); }
.score .of { font-weight: 700; color: var(--muted); }
.bar { position: relative; display: flex; height: 16px; margin-top: 18px; border-radius: 6px; background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; }
.bar .seg { height: 100%; width: 0; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.bar .seg + .seg { box-shadow: inset 2px 0 0 var(--paper); }
.bar .pass { position: absolute; top: -1px; bottom: -1px; width: 2px; background: var(--ink); }
.pass-l { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 6px; font-weight: 650; }
.progress { margin-top: 12px; font-size: .86rem; color: var(--muted); font-weight: 650; }
.progress.pass-ok { color: var(--ok); }
.progress.pass-no { color: var(--warn); }
.break { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 2px; }
.break li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.break li:last-child { border-bottom: 0; }
.break .sw { width: 12px; height: 12px; border-radius: 4px; }
.break .v { font-weight: 750; font-variant-numeric: tabular-nums; }
.break .v.na { color: var(--muted); font-weight: 600; font-size: .84rem; }
.tips { margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--accent-soft); }
.tips-h { font: 700 .92rem/1.3 var(--head); margin-bottom: 8px; }
.tips ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .88rem; }
.panel-note { margin-top: 16px; font-size: .84rem; color: var(--muted); }
.panel-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.panel-actions .btn { flex: 1; min-height: 44px; padding: 0 14px; font-size: .9rem; }
.copied { min-height: 1.2em; margin-top: 8px; font-size: .84rem; color: var(--ok); font-weight: 650; }
.bump { animation: bump .45s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes bump { 40% { transform: scale(1.05); } }

.mini { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--brand); color: var(--on-brand); border-radius: 16px; box-shadow: 0 16px 36px -14px rgb(15 23 42 / .45); text-decoration: none; transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.mini.show { transform: none; }
.mini b { font: 800 1.6rem/1 var(--head); font-variant-numeric: tabular-nums; }
.mini span { font-size: .86rem; font-weight: 700; opacity: .85; }

/* ---------- content sections ---------- */
.band-sec, .status-sec, .faq-sec, .guide, .occ { padding: 72px 0; }
.band-sec { background: var(--paper-2); border-block: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.band-sec h2, .faq-sec h2, .status h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.band-sec p { margin-top: 16px; color: var(--muted); font-size: 1.04rem; }
.ways { display: grid; gap: 14px; }
.way { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); }
.way h3 { font-size: 1.2rem; }
.way p { margin-top: 8px; font-size: .97rem; }
.way:first-child { border-left: 4px solid var(--brand); }
.way:last-child { border-left: 4px solid var(--accent); }
.status { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 34px; border-radius: 24px; background: var(--brand); color: var(--on-brand); }
.status p { margin-top: 12px; opacity: .88; }
.fees { margin: 0; display: grid; gap: 12px; }
.fees div { padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--on-brand) 10%, transparent); }
.fees dt { font-size: .86rem; opacity: .8; font-weight: 650; }
.fees dd { margin: 4px 0 0; font: 750 1.25rem/1.2 var(--head); }
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq-i { border-bottom: 1px solid var(--line); }
.faq-i summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i h3 { font-size: 1.1rem; font-weight: 700; }
.faq-x { flex: none; position: relative; width: 16px; height: 16px; }
.faq-x::before, .faq-x::after { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.faq-x::after { transform: rotate(90deg); }
.faq-i[open] .faq-x::after { transform: rotate(0); }
.faq-i p { padding: 0 0 22px; color: var(--muted); max-width: 70ch; animation: drop .25s ease-out; }
.src { margin-top: 26px; font-size: .86rem; color: var(--muted); }
.src a { color: var(--brand); font-weight: 650; }
.cta-line { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* guide */
.guide { padding-top: 24px; }
.guide-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; display: grid; gap: 2px; font-size: .92rem; }
.toc-h { font-weight: 750; margin-bottom: 8px; }
.toc a { text-decoration: none; color: var(--muted); padding: 7px 12px; border-left: 2px solid var(--line); font-weight: 600; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.on { color: var(--brand); border-left-color: var(--brand); }
.prose { max-width: 760px; }
.prose > p, .prose > ul { font-size: 1.04rem; margin-top: 16px; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-top: 52px; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--brand); font-weight: 650; }
.prose a.btn { color: var(--on-brand); }
.prose a.btn.ghost { color: var(--ink); }
.prose ul, .prose ol { padding-left: 20px; display: grid; gap: 8px; }
.prose > ol { font-size: 1.04rem; margin-top: 16px; }
.prose .faq { margin-top: 20px; }
.roi-status { padding: 20px 22px; border-radius: 16px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); }
.roi-status.is-open { background: var(--brand); color: var(--on-brand); }
.roi-status-h { font: 750 1.12rem/1.3 var(--head); color: var(--brand); }
.roi-status.is-open .roi-status-h { color: var(--on-brand); }
.roi-status p + p { margin-top: 6px; font-size: .97rem; }
.roi-status + h2 { margin-top: 40px; }
.fee-list { margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fee-list div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); }
.fee-list dt { font-size: .86rem; color: var(--muted); font-weight: 650; }
.fee-list dd { margin: 4px 0 0; font: 750 1.2rem/1.2 var(--head); }
.on-brand-link { color: var(--on-brand); font-weight: 700; }
@media (max-width: 560px) { .fee-list { grid-template-columns: 1fr; } }
.tbl { margin-top: 20px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); }
.tbl table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl caption { text-align: left; padding: 14px 18px; font-weight: 750; font-family: var(--head); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.tbl th, .tbl td { text-align: left; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.tbl th { font-size: .82rem; color: var(--muted); font-weight: 700; }
.tbl th:last-child, .tbl td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 750; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--brand-soft); }

/* occupations */
.occ { padding-top: 16px; }
.occ-tools { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; position: sticky; top: 68px; z-index: 5; background: var(--bg); padding: 14px 0; }
.occ-tools .field { margin: 0; flex: 1 1 340px; max-width: 520px; }
.occ-count { font-size: .9rem; color: var(--muted); font-weight: 650; }
.ind { margin-top: 36px; }
.ind h2 { font-size: 1.6rem; display: flex; align-items: center; gap: 12px; }
.ind-n { font: 750 .85rem/1 var(--body); color: var(--muted); padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 8px; }
.ind h3 { font-size: 1.1rem; margin-top: 22px; color: var(--muted); }
.occ-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.occ-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-weight: 650; font-size: .94rem; }
.occ-code { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .86rem; }
.occ-list li[hidden], .ind[hidden] { display: none; }
mark { background: var(--accent-soft); color: inherit; border-radius: 3px; }

/* footer */
.foot { margin-top: 40px; border-top: 1px solid var(--line); background: var(--paper); padding: 48px 0 28px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid a:not(.brand) { display: block; text-decoration: none; color: var(--muted); padding: 4px 0; font-weight: 600; }
.foot-grid a:not(.brand):hover { color: var(--brand); }
.foot-h { font-weight: 750; margin-bottom: 8px; }
.foot-note { margin-top: 16px; color: var(--muted); max-width: 46ch; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.foot-base a { color: var(--muted); font-weight: 650; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; }
  .calc-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
}
@media (max-width: 880px) {
  .hero-in, .two, .status, .guide-grid, .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 40px 0 36px; }
  .calc-grid { grid-template-columns: 1fr; }
  .panel { position: static; }
  .mini { display: flex; }
  .toc { display: none; }
  .status { padding: 26px; }
}
@media (max-width: 560px) {
  .opts-2, .opts-3 { grid-template-columns: 1fr; }
  .q { padding: 18px 16px; border-radius: 16px; }
  .q-help { margin-left: 0; }
  .hero-card { padding: 20px; }
  .band-sec, .status-sec, .faq-sec, .guide, .occ { padding: 52px 0; }
  .tbl th, .tbl td { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .top, .foot, .mini, .panel-actions, .hero-card { display: none; }
  .calc-grid { grid-template-columns: 1fr; }
}
/* The legend floats, so spacing below it uses padding (margins collapse into the clearance). */
.q > .opts, .q > .checks, .q > .field { margin-top: 0; padding-top: 16px; }
@media (max-width: 560px) {
  .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-meta b { font-size: 1.6rem; }
  .opts-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- legal notice and acknowledgement ---------- */
.notice { border: 1.5px solid var(--accent); background: var(--accent-soft); border-radius: 18px; padding: 20px 22px; display: grid; gap: 10px; font-size: .93rem; }
.notice-h { font: 700 1rem/1.3 var(--head); }
.notice a { color: var(--ink); font-weight: 700; }
.notice .ack { margin-top: 4px; padding: 14px; border-radius: 12px; background: var(--paper); border: 1.5px solid var(--line-2); font-weight: 700; }
.notice .ack:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.locked-msg { margin-top: 14px; padding: 18px; border-radius: 14px; border: 1.5px dashed var(--line-2); color: var(--muted); font-weight: 650; font-size: .93rem; }
.panel-legal { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.panel-legal a, .foot-note a { color: inherit; font-weight: 700; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.legal h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-top: 40px; }

/* ---------- advertise ---------- */
.partner-sec { padding: 0 0 8px; }
.partner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 30px 32px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper-2); }
.partner h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.partner p { margin-top: 8px; color: var(--muted); max-width: 60ch; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 56px; align-items: start; }
.contact { display: grid; gap: 4px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.contact-h { font-size: 1.35rem; margin-bottom: 4px; }
.contact .field { margin-top: 12px; }
.contact textarea { width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper-2); font: inherit; font-weight: 600; resize: vertical; }
.contact textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.contact input:user-invalid, .contact select:user-invalid, .contact textarea:user-invalid { border-color: var(--warn); }
.contact .consent { margin-top: 16px; font-size: .9rem; }
.contact .btn { margin-top: 16px; }
.phone-row { display: grid; grid-template-columns: minmax(120px, 36%) 1fr; gap: 10px; }
.small { font-size: .84rem; color: var(--muted); margin-top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } .contact { padding: 22px 18px; } }

.foot-base .made a { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--brand); }
.foot-base .made a:hover { color: var(--brand); }
.foot-grid .foot-note a { display: inline; padding: 0; color: var(--ink); text-decoration: underline; }
