/* grantmatcher.eu — shared styles. System fonts only (no third-party font requests). */

:root {
  /* Ink: hero, header, footer, CTA panel (dark in both themes) */
  --ink: #0a0f24;
  --ink-2: #131a3d;
  --on-ink: #eef1ff;
  --on-ink-muted: #bcc3e3;
  --on-ink-line: rgba(255, 255, 255, .1);

  /* Content surfaces */
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef0f8;
  --text: #121833;
  --muted: #4d5676;
  --border: #e3e6f0;

  /* Brand */
  --brand: #5b4dff;
  --brand-ink: #ffffff;
  --brand-soft: #ecebff;
  --teal: #12b59a;
  --grad: linear-gradient(120deg, #6d5dfc 0%, #3b82f6 50%, #14c8a8 100%);
  --btn: #4f46e5;
  --btn-hover: #4338ca;
  --hl: #c7c0ff;

  --accent: #06705d;
  --accent-soft: #dcf6ef;
  --warn: #874a00;
  --warn-soft: #fff3de;
  --danger: #b42318;
  --danger-soft: #fdecea;

  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(18, 24, 51, .06);
  --shadow: 0 1px 2px rgba(18, 24, 51, .05), 0 12px 32px -8px rgba(18, 24, 51, .12);
  --shadow-lg: 0 2px 4px rgba(18, 24, 51, .06), 0 28px 60px -12px rgba(18, 24, 51, .22);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1022;
    --surface: #121936;
    --surface-2: #1a2246;
    --text: #e9ecfb;
    --muted: #b0b8d8;
    --border: #262f57;
    --brand: #8f85ff;
    --brand-ink: #0b1022;
    --brand-soft: #211f4d;
    --accent: #4fe0bf;
    --accent-soft: #123a33;
    --warn: #f6bd5c;
    --warn-soft: #3a2c12;
    --danger: #ff8a80;
    --danger-soft: #3d1a1a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -8px rgba(0, 0, 0, .45);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 60px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); font-weight: 760; letter-spacing: -0.025em; line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 780; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
::selection { background: #6d5dfc; color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.grad { color: var(--hl); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 15, 36, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--on-ink-line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; color: var(--on-ink); text-decoration: none; font-size: 1.12rem; letter-spacing: -0.02em; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 14px -2px rgba(109, 93, 252, .6);
}
.logo span.tld { color: var(--on-ink-muted); font-weight: 500; margin-left: -6px; }
.nav { display: flex; gap: 4px 26px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--on-ink-muted); text-decoration: none; font-size: .95rem; padding: 6px 0; position: relative; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--grad);
}
@media (max-width: 640px) {
  .site-header .wrap { padding-top: 12px; padding-bottom: 10px; row-gap: 6px; }
  .nav { margin-left: 0; width: 100%; gap: 4px 22px; }
  .nav .btn { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 650; font-size: .98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease;
}
.btn-primary { background: var(--btn); color: #fff; box-shadow: 0 4px 14px -4px rgba(79, 70, 229, .5); }
.btn-primary:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.nav .btn { padding: 9px 16px; font-size: .92rem; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.tight { padding: 56px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } .hero { padding: 72px 0 64px; } .cta-panel { padding: 56px 20px; } }
.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.lead { font-size: 1.18rem; color: var(--muted); max-width: 44rem; }
.section-head { max-width: 48rem; margin-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- Hero (dark) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 104px 0 96px;
  color: var(--on-ink);
  background:
    radial-gradient(760px 480px at 88% -8%, rgba(109, 93, 252, .38), transparent 62%),
    radial-gradient(620px 420px at 102% 72%, rgba(20, 200, 168, .14), transparent 60%),
    radial-gradient(640px 420px at -10% 110%, rgba(59, 130, 246, .16), transparent 60%),
    var(--ink);
  border-bottom: 1px solid var(--on-ink-line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero h1 { color: #fff; }
.hero .card { color: var(--text); }
.hero .lead { color: var(--on-ink-muted); font-size: 1.22rem; }
.hero .eyebrow { color: #c9c3ff; background: rgba(143, 133, 255, .14); border: 1px solid rgba(143, 133, 255, .28); }
.hero .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5ff0d0; box-shadow: 0 0 0 4px rgba(95, 240, 208, .18); }
.hero .btn-ghost { background: rgba(255, 255, 255, .06); color: var(--on-ink); border-color: rgba(255, 255, 255, .18); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero-sub { padding: 88px 0 72px; }
.hero-center { text-align: center; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-overlap { padding-bottom: 150px; }

.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: var(--on-ink-muted); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: rgba(95, 240, 208, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%235ff0d0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}


/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.hero-card {
  position: relative; padding: 22px;
  border-color: rgba(255, 255, 255, .5);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6), 0 0 70px -12px rgba(109, 93, 252, .6), 0 0 0 1px rgba(255, 255, 255, .06);
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
}
@media (max-width: 979px) { .hero-card { transform: none; } }

.mock-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 14px; display: flex; justify-content: space-between; gap: 8px; }
.mock-label span:last-child { font-weight: 600; letter-spacing: .06em; }

.file-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px;
  border: 1px dashed var(--border); border-radius: 12px; background: var(--surface-2);
}
.file-row > div { flex: 1; min-width: 0; line-height: 1.35; }
.file-row strong { display: block; font-size: .9rem; }
.file-row span:not(.pill):not(.file-icon) { font-size: .78rem; color: var(--muted); }
.file-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--btn); color: #fff; display: grid; place-items: center; flex-shrink: 0; }

.match {
  border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.match:first-of-type { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent); }
.match + .match { margin-top: 10px; }
.match-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.match h4 { margin: 0 0 4px; font-size: .98rem; letter-spacing: -0.01em; }
.match .meta { font-size: .8rem; color: var(--muted); }
.pill { display: inline-block; font-size: .76rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.good { background: var(--accent-soft); color: var(--accent); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.odds { text-align: right; flex-shrink: 0; }
.odds strong {
  display: block; font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  color: var(--text);
}
.odds span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bar { height: 6px; background: var(--surface-2); border-radius: 999px; margin-top: 12px; position: relative; overflow: hidden; }
.bar i { position: absolute; top: 0; bottom: 0; background: var(--grad); border-radius: 999px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* ---------- Grids ---------- */
.grid-3, .grid-2 { display: grid; gap: 22px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
/* Let grid children shrink so wide content (formula, tables) scrolls inside its box instead of widening the page */
.hero-grid > *, .grid-2 > *, .grid-3 > *, .plans > * { min-width: 0; }

.feature { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.feature::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.feature:hover::after { transform: scaleX(1); }
.feature .icon {
  width: 48px; height: 48px; border-radius: 13px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 20px;
}
.feature p { color: var(--muted); margin: 0; }
.feature ul { color: var(--muted); padding-left: 0; margin: 16px 0 0; list-style: none; }
.feature ul li { position: relative; padding-left: 24px; margin: 6px 0; }
.feature ul li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%2306705d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.feature .eyebrow { margin-bottom: 14px; }

/* ---------- Steps (timeline) ---------- */
.steps { counter-reset: step; display: grid; gap: 24px; position: relative; padding-left: 60px; }
.steps::before {
  content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 2px;
  background: linear-gradient(180deg, #6d5dfc, #3b82f6 50%, #14c8a8);
  opacity: .5; border-radius: 2px;
}
.step { position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -60px; top: 22px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--btn); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 0 0 6px var(--bg), 0 8px 20px -4px rgba(91, 77, 255, .6);
}
.step p, .step li { color: var(--muted); }
.step ul { padding-left: 1.1em; }
.step li::marker { color: var(--brand); }
.step strong { color: var(--text); }
@media (max-width: 560px) {
  .steps { padding-left: 0; }
  .steps::before { display: none; }
  .step { padding-top: 64px; }
  .step::before { left: 28px; top: 20px; box-shadow: 0 8px 20px -4px rgba(91, 77, 255, .6); }
}

/* ---------- Formula block ---------- */
.formula {
  font-family: var(--mono); font-size: .88rem; color: #cfd5ff;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(109, 93, 252, .25), transparent 70%),
    #0d1330;
  border: 1px solid #222a55; border-radius: 12px;
  padding: 20px 22px; overflow-x: auto; line-height: 1.85; white-space: pre;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* ---------- Callouts ---------- */
.callout {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start;
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  padding: 18px 20px; border-radius: 14px;
}
.callout::before {
  content: "i"; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: .9rem; font-family: Georgia, serif; font-style: italic;
  background: var(--brand); color: var(--brand-ink);
}
.callout.warn { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm); }
.callout.warn::before { content: "!"; font-family: var(--font); font-style: normal; background: var(--warn-soft); color: var(--warn); }
.callout p { margin: 0; color: var(--muted); }
.callout p strong { color: var(--text); }
.callout + .callout { margin-top: 12px; }

/* ---------- Sources strip ---------- */
.sources { display: flex; flex-wrap: wrap; gap: 10px; }
.sources span {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--surface); padding: 9px 16px; border-radius: 999px;
  font-size: .9rem; font-weight: 550; color: var(--text); box-shadow: var(--shadow-sm);
}
.sources span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface-2); }
td:first-child { min-width: 200px; }
tbody tr { transition: background-color .15s ease; }
tbody tr:hover { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
tr:last-child td { border-bottom: 0; }
td a { word-break: break-word; }

/* ---------- Coverage ---------- */
.coverage .card { border-top: 4px solid var(--border); }
.coverage .card:nth-child(1) { border-top-color: var(--teal); }
.coverage .card:nth-child(2) { border-top-color: #f0a33a; }
.coverage h3 { display: flex; align-items: center; gap: 10px; }
.coverage ul { padding-left: 1.1em; color: var(--muted); margin: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot.full { background: var(--teal); box-shadow: 0 0 0 4px var(--accent-soft); }
.dot.partial { background: #f0a33a; box-shadow: 0 0 0 4px var(--warn-soft); }
.dot.none { background: var(--muted); box-shadow: 0 0 0 4px var(--surface-2); }

/* ---------- Pricing ---------- */
.plans-section { padding-top: 0; }
.hero-overlap + .plans-section { margin-top: -110px; position: relative; z-index: 1; }
.plans { display: grid; gap: 22px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow-lg); transition: transform .2s ease; }
.plan:hover { transform: translateY(-4px); }
.plan.featured {
  border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
}
@media (min-width: 900px) { .plan.featured { transform: scale(1.03); } .plan.featured:hover { transform: scale(1.03) translateY(-4px); } }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--btn); color: #fff; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; box-shadow: 0 6px 16px -4px rgba(91, 77, 255, .6); white-space: nowrap;
}
.plan .price { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.035em; margin: 12px 0 0; line-height: 1.1; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; flex: 1; }
.plan li { padding: 8px 0 8px 30px; position: relative; color: var(--muted); border-top: 1px solid var(--border); }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%2306705d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.plan .btn { width: 100%; }

/* ---------- FAQ ---------- */
details {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 22px; margin-top: 12px; transition: border-color .2s ease, box-shadow .2s ease;
}
details[open] { border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); box-shadow: var(--shadow); background: var(--surface); }
details summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 1.2rem; font-weight: 500; line-height: 1;
  transition: transform .25s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 0; }

/* ---------- CTA panel ---------- */
.cta-section { text-align: center; }
.cta-panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; padding: 72px 24px;
  color: var(--on-ink);
  background:
    radial-gradient(500px 300px at 15% 0%, rgba(109, 93, 252, .32), transparent 65%),
    radial-gradient(500px 300px at 90% 100%, rgba(20, 200, 168, .18), transparent 65%),
    var(--ink);
  box-shadow: var(--shadow-lg);
}
.cta-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.cta-panel h2 { color: #fff; }
.cta-panel .lead, .cta-panel .muted { color: var(--on-ink-muted); }
.cta-panel .eyebrow { color: #c9c3ff; background: rgba(143, 133, 255, .14); border: 1px solid rgba(143, 133, 255, .28); }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.cta-panel .btn-ghost, .hero .btn-ghost { background: rgba(255, 255, 255, .06); color: var(--on-ink); border-color: rgba(255, 255, 255, .22); }
.cta-panel .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .4); }

/* ---------- Sign in ---------- */
.auth { min-height: calc(100vh - 69px); display: flex; align-items: center; padding: 72px 0; }
.auth .wrap { width: 100%; }
.auth-card { max-width: 440px; margin: 0 auto; padding: 36px 32px; color: var(--text); }
@media (max-width: 640px) { .auth { min-height: 0; padding: 40px 0 64px; } }
@media (max-width: 480px) { .auth-card { padding: 28px 20px; } }
.auth-card h1 { font-size: 1.75rem; color: var(--text); margin-bottom: 6px; }
.auth-card > p { color: var(--muted); }
.field { margin-top: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-row a { font-size: .86rem; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.auth-card .btn { width: 100%; margin-top: 24px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 28px 0 0; color: var(--muted); font-size: .86rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-card .btn-ghost { margin-top: 16px; background: var(--surface); color: var(--text); border-color: var(--border); }
.auth-card .btn-ghost:hover { background: var(--surface); color: var(--brand); border-color: var(--brand); }
.alert {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start;
  margin-top: 22px; padding: 14px 16px; border-radius: 12px;
  background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); color: var(--text);
}
.alert[hidden] { display: none; }
.alert::before {
  content: "!"; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--danger); color: var(--danger-soft); font-weight: 800; font-size: .85rem;
}
.alert p { margin: 0; font-size: .93rem; }
.alert strong { display: block; color: var(--danger); margin-bottom: 2px; }
.auth-note { text-align: center; margin: 20px auto 0; color: var(--on-ink-muted); font-size: .86rem; max-width: 440px; }
.auth-note a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; background: var(--ink); color: var(--on-ink-muted); font-size: .9rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer strong { color: var(--on-ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: var(--on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 12px 0 0; }
.site-footer li { margin: 6px 0; }
.disclaimer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--on-ink-line); font-size: .84rem; }

:focus-visible { outline: 3px solid #8f85ff; outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .hero-card, .plan.featured { transform: none !important; }
}

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.35rem; margin: 44px 0 12px; scroll-margin-top: 90px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin: 6px 0; }
.legal .toc { margin-bottom: 40px; padding: 20px 24px; }
.legal .toc ol { margin: 8px 0 0; padding-left: 1.3em; columns: 2 220px; column-gap: 32px; }
.legal .toc li { margin: 4px 0; }
.legal .toc a { text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }
.legal-meta { color: var(--on-ink-muted); font-size: .95rem; }
