/* Trevani — design system */
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-var.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #0E5A4A;
  --brand-700: #0A4639;
  --brand-600: #0C5042;
  --brand-100: #D7EBE4;
  --brand-50: #EDF6F2;
  --accent: #F2B544;
  --accent-600: #D99A22;
  --accent-50: #FDF4E1;
  --ink: #16201C;
  --ink-2: #33403A;
  --muted: #5B6862;
  --line: #E2E5DF;
  --line-2: #CFD5CE;
  --bg: #FBFAF6;
  --surface: #FFFFFF;
  --tint: #F3F1EA;
  --ok: #1D6B45; --ok-bg: #E3F3EA;
  --info: #23527C; --info-bg: #E5EEF7;
  --warn: #7A5408; --warn-bg: #FBF0D6;
  --bad: #A23232; --bad-bg: #FBE7E5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 32, 28, .05), 0 4px 16px rgba(22, 32, 28, .05);
  --serif: "Lora", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --focus: 0 0 0 3px rgba(242, 181, 68, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--sans); text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-700); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--tint); padding: .1em .35em; border-radius: 5px; word-break: break-all; }
hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
address { font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.text-bad { color: var(--bad); }
.pre { white-space: pre-wrap; word-break: break-word; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between h2 { margin: 0; }

/* Icons */
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 36px; height: 36px; }
.icon-xl { width: 56px; height: 56px; margin: 0 auto 12px; }
.icon-brand { color: var(--brand); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 1.45rem/1 var(--serif); letter-spacing: -.01em; }
.logo:hover { color: var(--ink); }

/* Buttons */
.btn {
  --b: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--b);
  font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; --b: var(--brand); }
.btn-primary:hover { background: var(--brand-700); color: #fff; --b: var(--brand-700); }
.btn-accent { background: var(--accent); color: var(--ink); --b: var(--accent); }
.btn-accent:hover { background: var(--accent-600); color: var(--ink); --b: var(--accent-600); }
.btn-ghost { background: transparent; color: var(--brand); --b: var(--line-2); }
.btn-ghost:hover { background: var(--brand-50); color: var(--brand-700); --b: var(--brand-100); }
.btn-outline { background: var(--surface); color: var(--brand); --b: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-danger { background: var(--bad); color: #fff; --b: var(--bad); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 246, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.nav-desktop { display: flex; gap: 4px; margin-left: 12px; }
.nav-desktop a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav-desktop a:hover { background: var(--tint); color: var(--ink); }
.nav-desktop a[aria-current] { color: var(--brand); background: var(--brand-50); }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-mobile { display: none; position: relative; margin-left: auto; }
.nav-mobile summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; color: var(--ink); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--tint); }
.nav-mobile-panel { position: absolute; right: 0; top: 54px; width: min(300px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(22, 32, 28, .14); padding: 10px; display: flex; flex-direction: column; }
.nav-mobile-panel a:not(.btn) { padding: 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-mobile-panel a:not(.btn):hover, .nav-mobile-panel a[aria-current] { background: var(--brand-50); color: var(--brand); }
.nav-mobile-panel .btn { margin-top: 6px; }
@media (max-width: 880px) {
  .nav-desktop, .header-actions { display: none; }
  .nav-mobile { display: block; }
}

/* Flash */
.flash-wrap { margin-top: 16px; display: grid; gap: 8px; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; }
.flash p { margin: 0; }
.flash-success { background: var(--ok-bg); border-color: #BFE0CD; color: var(--ok); }
.flash-error { background: var(--bad-bg); border-color: #F0C4C0; color: var(--bad); }
.flash-info { background: var(--info-bg); border-color: #C6D8EA; color: var(--info); }

/* Sections */
.section { padding: 72px 0; }
.section-tight { padding: 40px 0 72px; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head.row-between { max-width: none; align-items: flex-end; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: 12px; }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 62ch; }
.page-head { padding: 56px 0 8px; }
.page-head .lead { margin-bottom: 0; }
@media (max-width: 640px) { .section { padding: 52px 0; } .page-head { padding: 36px 0 0; } }

/* Hero */
.hero { padding: 64px 0 72px; background: radial-gradient(1200px 400px at 85% -10%, var(--brand-50), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 16ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--brand); }
.track-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 20px 60px rgba(14, 90, 74, .12); }
.track-title { font: 600 1.1rem var(--serif); margin-bottom: 20px; }
.track-steps { list-style: none; margin: 0; padding: 0; }
.track-steps li { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.track-steps li:last-child { padding-bottom: 0; }
.track-steps li:not(:last-child)::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.track-steps li.done:not(:last-child)::before { background: var(--brand); }
.track-steps .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); flex: none; margin-top: 3px; position: relative; z-index: 1; }
.track-steps .done .dot { background: var(--brand); border-color: var(--brand); }
.track-steps .now .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-50); }
.track-steps strong { display: block; }
.track-steps small { color: var(--muted); font-size: .875rem; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 40px 0 56px; } }

/* Steps */
.steps-4 { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps-4 li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.steps-4 li::after { counter-increment: s; content: counter(s); position: absolute; top: 18px; right: 20px; font: 600 1.6rem var(--serif); color: var(--line-2); }
.steps-4 .icon { color: var(--brand); width: 28px; height: 28px; margin-bottom: 14px; }
.steps-4 p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 960px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-4 { grid-template-columns: 1fr; } }

.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.info-card .icon { color: var(--brand); width: 28px; height: 28px; margin-bottom: 14px; }
.info-card p { color: var(--ink-2); margin: 0; font-size: .95rem; }
@media (max-width: 860px) { .card-grid-3 { grid-template-columns: 1fr; } }

.safety { display: flex; gap: 22px; align-items: flex-start; max-width: 860px; }
.safety .icon { color: var(--brand); }
.safety p { margin: 0; color: var(--ink-2); }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--brand); color: #fff; border-radius: 24px; padding: 40px 44px; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; color: #D6E9E2; }
@media (max-width: 560px) { .cta-band { padding: 30px 24px; } .safety { flex-direction: column; gap: 12px; } }

/* Offers */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.offer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; transition: box-shadow .15s, border-color .15s; }
.offer-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.offer-card-top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.offer-merchant { font-weight: 700; margin: 0; }
.offer-cat { margin: 0; color: var(--muted); font-size: .85rem; }
.offer-title { font-size: 1.05rem; margin: 0; }
.offer-title a { color: var(--ink); text-decoration: none; }
.offer-title a:hover { color: var(--brand); }
.offer-rate { color: var(--brand); font-weight: 700; margin: 4px 0 0; }
.offer-rate-lg { font-size: 1.2rem; }
.offer-meta { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .85rem; margin: 0 0 14px; }
.offer-card .btn { margin-top: auto; }
.monogram { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; font: 700 1rem var(--sans); letter-spacing: .02em; flex: none; }
.tone-0.monogram { background: #E3EFE9; color: #0E5A4A; }
.tone-1.monogram { background: #FBEFD5; color: #7A5408; }
.tone-2.monogram { background: #E6ECF6; color: #23527C; }
.tone-3.monogram { background: #F2E6EE; color: #7D3460; }
.tone-4.monogram { background: #ECEAE2; color: #4A4636; }
.offer-head { display: flex; gap: 20px; align-items: center; margin-top: 8px; }
.offer-head .monogram { width: 72px; height: 72px; font-size: 1.4rem; border-radius: 18px; }
.offer-head h1 { margin-bottom: .2em; }
.offer-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.sticky { position: sticky; top: 92px; }
@media (max-width: 860px) { .offer-layout { grid-template-columns: 1fr; } .offer-aside { order: -1; } .sticky { position: static; } .offer-head { align-items: flex-start; } .offer-head .monogram { width: 56px; height: 56px; } }
.crumbs { font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

.filter-bar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 24px; }
.filter-bar .field { margin: 0; flex: 1 1 220px; }
.filter-bar .btn { flex: none; }

.empty { text-align: center; padding: 56px 24px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .icon { margin: 0 auto 12px; color: var(--brand); }
.empty p { color: var(--muted); max-width: 52ch; margin: 0 auto 18px; }
.empty-sm { padding: 32px 20px; }

/* Cards & key-value */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h2 { font-size: 1.2rem; }
.card-soft { background: var(--brand-50); border-color: var(--brand-100); }
.kv { margin: 0 0 18px; display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 500; }
.kv-plain > div { display: grid; grid-template-columns: 180px 1fr; }
.kv-plain dd { text-align: left; font-weight: 400; }
.kv-plain dt { font-weight: 600; color: var(--ink); }
@media (max-width: 560px) { .kv-plain > div { grid-template-columns: 1fr; gap: 2px; } }

.ref-box { display: inline-flex; flex-direction: column; gap: 2px; padding: 14px 26px; border: 1.5px dashed var(--brand); border-radius: 14px; background: var(--brand-50); margin: 8px 0 18px; }
.ref-box span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ref-box strong { font: 700 1.4rem ui-monospace, Menlo, Consolas, monospace; color: var(--brand); letter-spacing: .04em; }

/* Prose */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: 92px; font-size: .9rem; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.legal-toc a { display: block; padding: 5px 0 5px 14px; color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--brand); }
.toc-title { font-weight: 700; margin-bottom: 8px; }
.legal section { scroll-margin-top: 90px; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; gap: 24px; } .legal-toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; } }

/* Journey */
.journey { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.journey li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.journey li > .icon { grid-row: 1 / 3; color: var(--brand); width: 30px; height: 30px; margin-top: 2px; }
.journey li > div { grid-column: 2; grid-row: 1 / 3; }
.journey h2 { font-size: 1.1rem; margin-bottom: .3em; }
.journey p { margin: 0; color: var(--muted); font-size: .95rem; }
.journey-num { position: absolute; top: 14px; right: 18px; font: 600 .8rem var(--sans); color: var(--brand); background: var(--brand-50); border-radius: 999px; width: 26px; height: 26px; display: grid; place-items: center; }
@media (max-width: 960px) { .journey { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .journey { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--tint); font-weight: 600; font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 720px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .table-stack tr:last-child { border-bottom: 0; }
  .table-stack td { border: 0; padding: 5px 14px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table-stack td[data-label]::before { content: attr(data-label); color: var(--muted); text-align: left; font-size: .875rem; }
  .table-stack td:not([data-label]) { justify-content: flex-end; }
}

/* FAQ */
.faq { display: grid; gap: 10px; margin: 20px 0 24px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 6px; }

/* Forms */
.form { display: grid; gap: 4px; }
.field { margin-bottom: 14px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); padding: 0; }
.optional { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: 1rem/1.4 var(--sans); transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235B6862' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 90, 74, .15); }
input[readonly] { background: var(--tint); color: var(--muted); }
input[aria-invalid=true], textarea[aria-invalid=true], select[aria-invalid=true] { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: .85rem; margin: 6px 0 0; }
.hint { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.check label { font-size: .92rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { display: flex !important; align-items: center; gap: 8px; white-space: nowrap; font-size: .95rem; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; font-weight: 600; margin: 0 !important; }
.radio-card input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.js [data-method][hidden] { display: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.contact-aside { display: grid; gap: 20px; }
.contact-aside h2 { font-size: 1.05rem; margin-top: 4px; }
.footer-contact { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--brand); margin-top: 2px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Auth */
.auth { padding: 48px 20px 80px; display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 440px; padding: 34px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.7rem; text-align: center; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-foot { text-align: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; }
@media (max-width: 480px) { .auth-card { padding: 26px 20px; } .auth { padding: 28px 16px 56px; } }

/* Dashboard */
.dash { padding: 32px 0 72px; }
.dash-grid { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.dash-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; }
.dash-nav a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.dash-nav a:hover { background: var(--tint); }
.dash-nav a[aria-current] { background: var(--brand-50); color: var(--brand); }
.dash-logout { padding: 10px 12px; margin-top: 8px; border-top: 1px solid var(--line); }
.dash-main { min-width: 0; display: grid; gap: 24px; align-content: start; }
.dash-main > * { margin: 0; }
.dash-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 0; }
.dash-main section > h2, .dash-main > section > .row-between { margin-bottom: 12px; }
@media (max-width: 860px) {
  .dash { padding-top: 16px; }
  .dash-grid { grid-template-columns: 1fr; gap: 18px; }
  .dash-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .dash-nav a { flex: none; border: 1px solid var(--line); background: var(--surface); padding: 8px 12px; }
  .dash-logout { border: 0; margin: 0; flex: none; display: flex; align-items: center; padding: 0 8px; }
}
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--info-bg); color: var(--info); }
.notice p { margin: 0 0 8px; }
.notice p:last-child { margin: 0; }
.notice-warn { background: var(--warn-bg); color: var(--warn); }
.notice .icon { margin-top: 2px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats-2 { grid-template-columns: repeat(2, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat-main { background: var(--brand); border-color: var(--brand); color: #fff; }
.stat-label { display: flex; gap: 6px; align-items: center; font-size: .875rem; font-weight: 600; margin: 0 0 6px; color: var(--muted); }
.stat-main .stat-label, .stat-main .stat-help { color: #CFE5DD; }
.stat-value { font: 600 1.55rem/1.2 var(--serif); margin: 0 0 6px; }
.stat-help { font-size: .8rem; color: var(--muted); margin: 0; line-height: 1.4; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats { gap: 10px; } .stat { padding: 14px; } .stat-value { font-size: 1.3rem; } }
@media (max-width: 340px) { .stats, .stats-2 { grid-template-columns: 1fr; } }
.withdraw-strip { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; }
.withdraw-strip p { margin: 0; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .dash-cols { grid-template-columns: 1fr; } }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed p { margin: 0; }
.feed-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 8px; flex: none; background: var(--line-2); }
.feed-dot.tone-ok { background: var(--ok); } .feed-dot.tone-info { background: var(--info); } .feed-dot.tone-warn { background: var(--accent-600); } .feed-dot.tone-bad { background: var(--bad); }
.mini-journey { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; }
.mini-journey li { display: flex; gap: 12px; align-items: flex-start; }
.mini-journey .icon { color: var(--brand); margin-top: 3px; }
.mini-journey strong { display: block; }
.mini-journey span { color: var(--muted); font-size: .9rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; font-size: .9rem; background: var(--surface); }
.chip[aria-current] { background: var(--brand); color: #fff; border-color: var(--brand); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline p { margin: 0; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--line-2); margin-top: 5px; flex: none; position: relative; z-index: 1; }
.tone-ok .tl-dot { background: var(--ok); } .tone-info .tl-dot { background: var(--info); } .tone-warn .tl-dot { background: var(--accent-600); } .tone-bad .tl-dot { background: var(--bad); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-muted { background: var(--tint); color: var(--muted); }

/* Footer */
.site-footer { background: #10261F; color: #C5D3CD; padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: #E8F0EC; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-grid h2 { font: 700 .8rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: #8FA79D; margin-bottom: 14px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .logo { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 34ch; font-size: .95rem; }
.site-footer .footer-contact { margin-bottom: 12px; font-size: .95rem; }
.site-footer .footer-contact .icon { color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #284239; margin-top: 40px; padding-top: 20px; font-size: .85rem; color: #8FA79D; }
.footer-base p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

@media print { .site-header, .site-footer, .dash-nav, .legal-toc { display: none; } body { background: #fff; } }

/* HTML-only (pre-launch) site */
.launch-bar { background: var(--accent-50); border-bottom: 1px solid #F2DDA8; color: var(--warn); font-size: .92rem; }
.launch-bar .container { display: flex; gap: 10px; align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
.launch-bar p { margin: 0; }
.launch-bar .icon { margin-top: 3px; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; }
.topic-grid .btn { justify-content: flex-start; white-space: normal; text-align: left; border-radius: var(--radius-sm); }
