:root {
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
  --line: #dfe6f3;
  --line-soft: #eef2f7;
  --panel: #f8fafc;
  --tint: #f5f8ff;
  --blue: #2251ff;
  --blue-dark: #1638c9;
  --blue-soft: #e8eeff;
  --warn: #b45309;
  --warn-soft: #fff4e5;
  --warn-line: #d97706;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --ok: #15803d;
  --ok-soft: #ecfdf3;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 20px 50px -24px rgba(34, 81, 255, .28);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.55 var(--font); overflow-wrap: break-word; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4.2vw, 44px); letter-spacing: -.03em; }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li + li { margin-top: .35em; }
code { font-size: .92em; background: var(--line-soft); padding: 1px 5px; border-radius: 5px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sr-only, .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }

.wrap { width: 100%; max-width: 1168px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip-link:focus { top: 12px; color: #fff; }
#main:focus { outline: none; }
#print-content { display: none; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line-soft); background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand b { color: var(--blue); }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.main-nav a:not(.button) { color: var(--ink-2); text-decoration: none; }
.main-nav a:not(.button):hover, .main-nav a[aria-current] { color: var(--ink); }
.main-nav a[aria-current] { font-weight: 600; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); color: var(--blue) !important; font-weight: 700; }
.mobile-navigation { display: none; position: relative; }
.mobile-navigation > summary { list-style: none; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 18px; }
.mobile-navigation > summary::-webkit-details-marker { display: none; }
.mobile-navigation nav { position: absolute; right: 0; top: 50px; z-index: 5; width: min(280px, calc(100vw - 36px)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; display: grid; gap: 2px; }
.mobile-navigation nav a:not(.button) { padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.mobile-navigation nav a:not(.button):hover { background: var(--panel); }
.mobile-navigation nav .button { margin-top: 6px; }

.site-footer { background: var(--ink); color: #94a3b8; font-size: 14px; margin-top: 0; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 48px 0 32px; }
.site-footer .brand { color: #fff; }
.site-footer .brand b { color: #8ea7ff; }
.footer-main p { margin: 10px 0 0; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col strong { color: #fff; font-size: 13px; letter-spacing: .04em; margin-bottom: 4px; }
.site-footer a:not(.brand) { color: #cbd5e1; text-decoration: none; }
.site-footer a:not(.brand):hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 20px 0 28px; display: flex; justify-content: space-between; gap: 24px; }
.footer-bottom p { margin: 0; max-width: 720px; }

/* Buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border-radius: 12px; border: 1.5px solid var(--blue); background: var(--blue); color: #fff; font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center; }
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.button.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { border-color: var(--blue); color: var(--blue); background: var(--tint); }
.button.danger { background: var(--danger); border-color: var(--danger); }
.button.compact { min-height: 38px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.button.full { width: 100%; }
.text-button { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-button.destructive { color: var(--danger); }
.back-link { display: inline-block; color: var(--ink-2); text-decoration: none; font-size: 15px; margin-bottom: 20px; }
.back-link:hover { color: var(--ink); text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.actions.between { justify-content: space-between; }

/* Text helpers */
.tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--blue); background: var(--blue-soft); border-radius: 99px; padding: 5px 13px; margin-bottom: 14px; }
.kicker { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 680px; }
.muted { color: var(--ink-3); font-size: 15px; }
.small { font-size: 14px; color: var(--ink-3); }
.pill { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 99px; padding: 4px 12px; background: var(--blue-soft); color: var(--blue); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.neutral { background: var(--line-soft); color: var(--ink-2); }

/* Page scaffolding */
.page { padding: 48px 0 80px; }
.page-head { margin-bottom: 32px; }
.page-head p:last-child { margin-bottom: 0; }
.section { padding: 72px 0; border-top: 1px solid var(--line-soft); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { color: var(--ink-2); font-size: 17px; margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.sticky { position: sticky; top: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.card + .card { margin-top: 20px; }
.card > :last-child { margin-bottom: 0; }
.card h2 { font-size: 22px; }
.card h3 { font-size: 17px; }
.card.soft { background: var(--panel); border-color: transparent; }
.card.accent { background: var(--tint); border-color: #cdd9ff; }
.card.raised { box-shadow: var(--shadow); }
.tile { background: var(--panel); border-radius: 16px; padding: 24px; }
.tile > :last-child { margin-bottom: 0; }
.tile .num { display: block; font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.tile p { color: var(--ink-2); font-size: 15px; }
.row { border-top: 1px solid var(--line-soft); padding: 16px 0; }
.row:first-of-type { border-top: 0; padding-top: 0; }
.row > :last-child { margin-bottom: 0; }

/* Notices */
.notice, .form-message { border-radius: 12px; padding: 14px 16px; background: var(--tint); border: 1px solid #cdd9ff; color: var(--ink); margin: 0 0 20px; }
.notice > :last-child, .form-message > :last-child { margin-bottom: 0; }
.notice.warn { background: var(--warn-soft); border-color: #fcd9a8; }
.notice.error, .form-message[role="alert"] { background: var(--danger-soft); border-color: #fecdca; }
.notice.error a { color: var(--danger); }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 15px; }
.field label span, .field small { font-weight: 400; color: var(--ink-3); font-size: 14px; }
input[type="text"], input[type="email"], input[type="date"], input[type="number"], input:not([type]), select, textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px;
}
select { appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid var(--blue-soft); outline-offset: 0; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
textarea { resize: vertical; line-height: 1.5; }
input[type="file"] { font: inherit; font-size: 15px; padding: 10px; border: 1.5px dashed var(--line); border-radius: 12px; width: 100%; background: var(--panel); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.fields .wide { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.group { border-top: 1px solid var(--line-soft); padding-top: 18px; margin-top: 8px; }
.group legend { font-weight: 700; font-size: 17px; margin-bottom: 12px; }

/* Disclosures */
details > summary { cursor: pointer; font-weight: 600; }
details > summary::marker { color: var(--ink-3); }
.disclosure { border-top: 1px solid var(--line-soft); padding: 14px 0; }
.disclosure > summary { color: var(--ink); }
.disclosure[open] > summary { margin-bottom: 14px; }
.danger-zone > summary { color: var(--danger); font-weight: 500; font-size: 15px; }
.danger-zone[open] { background: var(--danger-soft); border-radius: 12px; padding: 14px 16px; margin-top: 10px; }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 12px; margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { text-align: left; font-weight: 600; padding: 12px 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { font-size: 13px; color: var(--ink-3); font-weight: 600; background: var(--panel); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
td.field { margin: 0; display: table-cell; min-width: 200px; }
.fees td:last-child { text-align: right; color: var(--ink-2); }
.fees th, .fees td { padding-left: 0; padding-right: 0; }
.fees td:last-child { padding-left: 16px; }

/* Definition lists */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 16px; }
.facts > div { background: var(--panel); border-radius: 12px; padding: 14px 16px; }
.facts dt { font-size: 13px; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-weight: 700; }
.facts dd span { display: block; font-weight: 400; color: var(--ink-3); font-size: 14px; }

/* Timeline */
.timeline { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 0; margin: 24px 0 8px; position: relative; }
.timeline li { position: relative; margin: 0; padding: 32px 6px 0; text-align: center; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.timeline li::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 4px; background: var(--line); }
.timeline li:first-child::before { left: 50%; }
.timeline li:last-child::before { right: 50%; }
.timeline li.past::before { background: var(--blue); }
.timeline li.now::before { background: linear-gradient(to right, var(--blue) 50%, var(--line) 50%); }
.timeline li.now:first-child::before { background: var(--line); }
.timeline li.now:last-child::before { background: var(--blue); }
.timeline li::after { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); box-sizing: border-box; }
.timeline li.now::after { background: var(--ink); border-color: var(--ink); }
.timeline li.warn::after { border-color: var(--warn-line); }
.timeline li.done::after { background: var(--blue); }
.timeline strong { display: block; color: var(--ink); font-size: 14px; }

/* Home */
.hero { background: linear-gradient(var(--tint), #fff); padding: 56px 0 64px; text-align: center; }
.hero h1 { max-width: 840px; margin: 0 auto 12px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; }
.hero .lead { margin: 0 auto 32px; max-width: 620px; }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.trust li { margin: 0; }
.trust li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.provider-list { display: flex; flex-wrap: wrap; gap: 10px; }
.provider-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; font-weight: 600; color: var(--ink); text-decoration: none; }
.provider-card:hover { border-color: var(--blue); color: var(--blue); background: var(--tint); }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); margin: 10px 0 0; }

/* Quiz */
.quiz-card { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); text-align: left; padding: 30px 36px 28px; }
.quiz-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.quiz-bar { height: 6px; background: var(--line-soft); border-radius: 9px; margin: 10px 0 26px; overflow: hidden; }
.quiz-bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 9px; transition: width .25s; }
.quiz-group-title { font-size: 13px; font-weight: 700; color: var(--blue); margin: 0 0 14px; letter-spacing: .02em; }
.quiz-question { margin: 0 0 30px; }
.quiz-question:focus-visible { outline: none; }
.quiz-question legend { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 6px; }
.quiz-question .hint { color: var(--ink-3); font-size: 15px; margin: 0 0 14px; }
.quiz-question legend + .choices, .quiz-question legend + .field { margin-top: 14px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices.one { grid-template-columns: 1fr; }
.choice { position: relative; display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 16px; font-weight: 500; cursor: pointer; background: #fff; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .key { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--line-soft); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.choice:hover { border-color: var(--blue); background: var(--tint); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--tint); box-shadow: inset 0 0 0 1px var(--blue); }
.choice:has(input:checked) .key { background: var(--blue); color: #fff; }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.months { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.months .field { margin: 0; }
.quiz-question:has(input[name="payouts"]):not(:has(input[value="before"]:checked)) .months { display: none; }
.quiz-error { color: var(--danger); font-weight: 600; font-size: 15px; margin: 10px 0 0; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.quiz-nav p { margin: 0; }
.quiz-nav [data-quiz-next], .quiz-nav [data-quiz-submit] { margin-left: auto; }
.quiz-steps [data-quiz-back], .quiz-steps [data-quiz-next] { display: none; }
.quiz-steps .quiz-question { display: none; margin: 0; }
.quiz-steps .quiz-question.current { display: block; }
.quiz-steps .quiz-group-title { display: none; }
.quiz-steps .quiz-nav { margin-top: 24px; }
.quiz-steps [data-quiz-back]:not([hidden]), .quiz-steps [data-quiz-next]:not([hidden]) { display: inline-flex; }
.quiz-steps .quiz-submit-note { display: none; }
.quiz-plain .quiz-meta, .quiz-plain .quiz-bar { display: none; }

/* Result */
.result-card { max-width: 860px; }
.result-title { font-size: clamp(26px, 3.4vw, 36px); margin-top: 14px; }

/* Guides */
.guide-rows { display: grid; gap: 12px; }
.guide-row { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; }
.guide-row:hover { border-color: var(--blue); background: var(--tint); color: var(--ink); }
.guide-row strong { display: block; font-size: 18px; }
.guide-row small { color: var(--ink-2); font-size: 15px; }
.guide-row .go { color: var(--blue); font-weight: 600; font-size: 15px; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-weight: 800; }
.prose { max-width: 720px; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose p, .prose li { color: #1e293b; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.source-link { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); margin-bottom: 10px; }
.source-link:hover { border-color: var(--blue); background: var(--tint); color: var(--ink); }
.source-link small { display: block; color: var(--ink-3); }
.toc { display: grid; gap: 6px; font-size: 15px; }
.toc strong { font-size: 13px; color: var(--ink-3); }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--blue); }

/* Accounts */
.auth { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: start; }
.auth-points { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.auth-points li { margin: 0; display: flex; gap: 12px; align-items: center; color: var(--ink-2); }
.auth-points li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 13px; }
.auth-other { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line-soft); margin-top: 20px; padding-top: 16px; font-size: 15px; }
.code-input { font-size: 26px !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.dossier-card .facts { margin-top: 16px; }
.account-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; font-size: 15px; }
.outbox-text { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: var(--panel); border-radius: 10px; padding: 12px; overflow-wrap: anywhere; }

/* Dossier */
.dossier-top { background: var(--tint); border-bottom: 1px solid var(--line-soft); padding: 22px 0 8px; }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 4px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.dossier-top .timeline { margin: 18px 0 10px; }
.dossier-top .contract { font-size: 14px; color: var(--ink-2); margin: 0 0 12px; }
.journey-urgent strong { color: var(--warn); }
.side-nav { display: grid; gap: 4px; }
.side-nav a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.side-nav a:hover { background: var(--panel); color: var(--ink); }
.side-nav a[aria-current] { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.next-action { background: var(--ink); color: #fff; border: 0; }
.next-action .kicker { color: #94a3b8; }
.next-action p { color: #cbd5e1; }
.next-action .button { background: #fff; color: var(--ink); border-color: #fff; }
.next-action .button:hover { background: var(--blue-soft); }
.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line-soft); margin: 0; }
.step-list li:first-child { border-top: 0; }
.step-list .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--line-soft); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.step-list li.done .n { background: var(--ok-soft); color: var(--ok); }
.step-list li.current .n { background: var(--blue); color: #fff; }
.step-list a { font-weight: 600; color: var(--ink); text-decoration: none; }
.step-list a:hover { color: var(--blue); text-decoration: underline; }
.step-list p { grid-column: 2 / -1; margin: 0; font-size: 14px; color: var(--ink-3); }
.phase { border-top: 1px solid var(--line-soft); padding: 14px 0; }
.phase:first-of-type { border-top: 0; padding-top: 0; }
.phase > summary { font-size: 17px; }
.phase[open] > summary { margin-bottom: 8px; }
.journey-calendar { list-style: none; padding: 0; margin: 0 0 16px; }
.journey-calendar li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); margin: 0; }
.journey-calendar li:first-child { border-top: 0; }
.journey-calendar li p { margin: 0; font-weight: 600; }
.journey-calendar li div { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: flex-end; align-items: baseline; font-size: 14px; color: var(--ink-3); }
.journey-calendar li strong { color: var(--ink); font-size: 15px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs a { flex: none; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 14px; }
.tabs a:hover { border-color: var(--blue); color: var(--blue); }
.tabs a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.letter-text { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.6; background: var(--panel); }
.warnings { color: var(--warn); font-size: 14px; }
.file-name { font-weight: 600; overflow-wrap: anywhere; }

/* Back-office */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stats div { background: var(--panel); border-radius: 14px; padding: 18px; }
.stats strong { display: block; font-size: 30px; letter-spacing: -.02em; }
.stats span { color: var(--ink-3); font-size: 14px; }
.periods { display: flex; gap: 6px; }
.periods a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: 14px; }
.periods a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Tool (first claim, version 1) */
.tool-steps { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 8px; }
.tool-steps li { display: flex; gap: 12px; align-items: center; margin: 0; padding: 10px 12px; border-radius: 12px; color: var(--ink-3); }
.tool-steps li span:first-child { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--line-soft); font-weight: 700; font-size: 13px; }
.tool-steps li strong { display: block; color: var(--ink-2); font-size: 15px; }
.tool-steps li small { font-size: 13px; }
.tool-steps li[aria-current] { background: var(--tint); }
.tool-steps li[aria-current] span:first-child { background: var(--blue); color: #fff; }
.tool-steps li[aria-current] strong { color: var(--ink); }
.tool-steps li i { display: none; }
.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.check-row:first-child { border-top: 0; }
.check-row input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
textarea#letter { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.6; background: var(--panel); }

@media (min-width: 961px) { .narrow-only { display: none !important; } }

@media (max-width: 960px) {
  .layout-aside, .auth { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sticky { position: static; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .site-header .wrap { min-height: 62px; }
  .main-nav { display: none; }
  .mobile-navigation { display: block; }
  .page { padding: 28px 0 56px; }
  .section { padding: 48px 0; }
  .hero { padding: 28px 0 40px; }
  .hero .lead { font-size: 16px; margin-bottom: 22px; }
  .lead { font-size: 16px; }
  .card { padding: 20px 18px; border-radius: 16px; }
  .quiz-card { padding: 20px 18px; border-radius: 16px; }
  .quiz-question legend { font-size: 20px; }
  .choices, .grid-2, .grid-3, .fields { grid-template-columns: 1fr; }
  .choice { padding: 13px 14px; }
  .quiz-nav { flex-direction: column-reverse; align-items: stretch; }
  .quiz-nav .button { width: 100%; }
  .trust { font-size: 13px; gap: 6px 16px; }
  .timeline { grid-auto-flow: row; grid-auto-columns: auto; margin-left: 4px; }
  .timeline li { padding: 0 0 18px 34px; text-align: left; }
  .timeline li::before { top: 0; bottom: 0; left: 9px; right: auto; width: 4px; height: auto; }
  .timeline li:first-child::before { left: 9px; top: 11px; }
  .timeline li:last-child::before { right: auto; bottom: auto; height: 11px; }
  .timeline li.now::before { background: linear-gradient(to bottom, var(--blue) 11px, var(--line) 11px); }
  .timeline li.now:first-child::before { background: var(--line); }
  .timeline li.now:last-child::before { background: var(--blue); }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::after { left: 0; transform: none; }
  .guide-row { grid-template-columns: auto 1fr; padding: 16px; }
  .guide-row .go { grid-column: 2; }
  .step-list li { grid-template-columns: 34px 1fr; }
  .step-list .pill { grid-column: 2; justify-self: start; }
  .journey-calendar li { grid-template-columns: 1fr; }
  .journey-calendar li div { justify-content: flex-start; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .actions .button { flex: 1 1 auto; }
}

@media print {
  @page { margin: 20mm; }
  #main, .site-header, .site-footer, .skip-link { display: none !important; }
  #print-content { display: block !important; color: #111; white-space: pre-wrap; font: 11pt/1.55 Georgia, "Times New Roman", serif; }
}

.form-message:empty { display: none; }
.tool-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.tool-heading h1 { font-size: 30px; }
.provider-list + .small { margin-top: 18px; }
@media (max-width: 960px) { .tool-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.group-title { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .02em; margin: 26px 0 4px; }
.piece { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 16px; align-items: center; }
.piece .actions { margin: 0; flex-wrap: nowrap; }
.piece p { margin: 4px 0 0; }
@media (max-width: 720px) { .piece { grid-template-columns: 1fr; justify-items: start; } .piece .actions { flex-wrap: wrap; } }

.missing-list { columns: 2; column-gap: 32px; }
@media (max-width: 720px) { .missing-list { columns: 1; } }
.danger-zone { margin-top: 14px; }

/* Platform fiches and letters */
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel); border-radius: 12px; padding: 16px 18px; margin: 0 0 16px; }
.card details { margin: 12px 0 0; }
.card details > :not(summary) { margin-top: 10px; }
.partner { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.partner p { margin: 0 0 6px; }
.hero .actions { justify-content: center; }

/* Money Flow Map ------------------------------------------------------------------------------ */
.map-steps ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.map-steps li + li { margin-top: 0; }
.map-steps a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.map-steps .current a { color: var(--ink); font-weight: 700; }
.map-steps .done a { color: var(--blue); }
.map-step-number { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line-soft); font-size: 12px; font-weight: 700; }
.map-steps .current .map-step-number { background: var(--blue); color: #fff; }
.map-steps .done .map-step-number { background: var(--blue-soft); color: var(--blue); }
.quiz-bar i[data-step="1"] { width: 16.6%; } .quiz-bar i[data-step="2"] { width: 33.3%; }
.quiz-bar i[data-step="3"] { width: 50%; } .quiz-bar i[data-step="4"] { width: 66.6%; }
.quiz-bar i[data-step="5"] { width: 83.3%; } .quiz-bar i[data-step="6"] { width: 100%; }
.map-form fieldset.card, .map-you { margin: 0 0 16px; padding: 20px 22px 6px; }
.map-row legend, .map-you legend { font-weight: 700; padding: 0 6px; margin-left: -6px; }
.map-row .check { margin-bottom: 14px; }
.map-form select, .map-form input:not([type="radio"]):not([type="checkbox"]) { width: 100%; min-height: 44px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: 15px/1.3 var(--font); background: #fff; color: var(--ink); }
.map-templates { margin-bottom: 20px; }
.map-template-list { display: flex; flex-wrap: wrap; gap: 10px; }
.map-score h2 { display: flex; align-items: center; gap: 14px; }
.map-grade { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; font-size: 30px; font-weight: 800; background: var(--ok-soft); color: var(--ok); flex: none; }
.map-grade[data-grade="B"] { background: var(--blue-soft); color: var(--blue); }
.map-grade[data-grade="C"] { background: var(--warn-soft); color: var(--warn); }
.map-grade[data-grade="D"], .map-grade[data-grade="E"] { background: var(--danger-soft); color: var(--danger); }
.map-findings { padding-left: 0; list-style: none; }
.map-findings > li { border-left: 4px solid var(--line); padding: 8px 0 8px 14px; margin: 0 0 10px; }
.map-findings > li[data-severity="critical"] { border-color: var(--danger); }
.map-findings > li[data-severity="high"] { border-color: var(--warn-line); }
.map-findings > li[data-severity="medium"] { border-color: var(--blue); }
.map-severity { margin-right: 6px; font-size: 12px; padding: 2px 10px; }
.map-severity[data-severity="critical"] { background: var(--danger-soft); color: var(--danger); }
.map-severity[data-severity="high"] { background: var(--warn-soft); color: var(--warn); }
.map-severity[data-severity="info"] { background: var(--line-soft); color: var(--ink-2); }
@media (max-width: 640px) { .map-form .fields { grid-template-columns: 1fr; } }
.map-form .quiz-nav { flex-wrap: wrap; justify-content: flex-start; }
.map-board { margin: 28px 0; }
.map-graph { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: 8px; }
.map-col-title { font: 700 12px var(--font); fill: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.map-line { fill: none; stroke: #9fb0cc; stroke-width: 1.6; }
.map-line[data-kind="owner"], .map-line[data-kind="kyc"] { stroke: #c9d3e3; stroke-dasharray: 4 4; }
.map-line[data-kind="payout"] { stroke: var(--blue); }
.map-line[data-state="cut"] { stroke: var(--danger); stroke-width: 2.6; stroke-dasharray: 7 4; }
.map-node > rect:first-of-type { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.map-node[data-severity="critical"] > rect:first-of-type { stroke: var(--danger); stroke-width: 2.2; }
.map-node[data-severity="high"] > rect:first-of-type { stroke: var(--warn-line); stroke-width: 2; }
.map-node[data-severity="medium"] > rect:first-of-type { stroke: var(--blue); }
.map-node[data-state="frozen"] > rect:first-of-type { fill: var(--danger-soft); stroke: var(--danger); stroke-width: 3; }
.map-node[data-state="cut"] > rect:first-of-type { fill: var(--danger-soft); stroke: var(--danger); stroke-dasharray: 6 3; }
.map-node { overflow: hidden; }
.map-node-title { font: 700 13px var(--font); fill: var(--ink); }
.map-node-detail { font: 10.5px var(--font); fill: var(--ink-3); }
.map-node-badge { font: 700 11px var(--font); fill: var(--danger); }
.map-node-badge-bg { fill: var(--danger-soft); stroke: none; }
.map-node[data-severity="high"] .map-node-badge { fill: var(--warn); } .map-node[data-severity="high"] .map-node-badge-bg { fill: var(--warn-soft); }
.map-node[data-severity="medium"] .map-node-badge { fill: var(--blue); } .map-node[data-severity="medium"] .map-node-badge-bg { fill: var(--blue-soft); }
.map-node-state { font: 700 11px var(--font); fill: var(--danger); text-transform: uppercase; }
a .map-node:hover > rect:first-of-type { stroke: var(--blue); }
.map-list { display: none; }
.map-stage h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin-top: 18px; }
.map-stage ul { list-style: none; padding: 0; }
.map-stage li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 8px; background: #fff; }
.map-stage li[data-state="frozen"], .map-stage li[data-state="cut"] { border-color: var(--danger); background: var(--danger-soft); }
.map-link { display: block; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.map-link[data-state="cut"] { color: var(--danger); font-weight: 700; }
.map-legend { margin-top: 10px; }
.map-finding { border-left: 5px solid var(--line); }
.map-finding[data-severity="critical"] { border-left-color: var(--danger); }
.map-finding[data-severity="high"] { border-left-color: var(--warn-line); }
.map-finding[data-severity="medium"] { border-left-color: var(--blue); }
.map-finding h3 { font-size: 18px; }
.map-finding .actions { margin-top: 12px; }
.map-finding form { margin: 0; }
.map-policies { list-style: none; padding: 0; }
.map-policies li { border-bottom: 1px solid var(--line-soft); padding: 8px 0; }
.map-policies p { margin: 0 0 4px; }
.small-grade { width: 26px; height: 26px; font-size: 15px; border-radius: 7px; vertical-align: middle; margin-right: 4px; }
@media (max-width: 960px) { .map-graph { display: none; } .map-list { display: block; } }
.map-freeze h2 { font-size: clamp(20px, 2.4vw, 26px); }
.map-demo .map-graph { background: #fff; }
.map-demo .map-line[data-state="cut"] { animation: map-cut 1.6s ease-in-out infinite alternate; }
.map-demo .map-node[data-state="cut"] > rect:first-of-type, .map-demo .map-node[data-state="frozen"] > rect:first-of-type { animation: map-freeze 1.6s ease-in-out infinite alternate; }
@keyframes map-cut { from { stroke: #9fb0cc; stroke-dashoffset: 0; } to { stroke: var(--danger); stroke-dashoffset: 22; } }
@keyframes map-freeze { from { fill: #fff; } to { fill: var(--danger-soft); } }
@media (prefers-reduced-motion: reduce) { .map-demo .map-line[data-state="cut"], .map-demo .map-node > rect:first-of-type { animation: none; } }
.map-checks .tile h3 { font-size: 17px; }
@media (max-width: 960px) { .map-demo .map-graph { display: block; } .map-checks { grid-template-columns: 1fr; } }
