/* finaxio.app — shared styles. Brand values match src/theme/tokens.ts. */
:root {
  --green: #169216;
  --green-bright: #3cb03c;
  --green-soft: #e6f4e6;
  --deep-1: #15401b;
  --deep-2: #07190a;
  --bg: #f6f8f5;
  --card: #ffffff;
  --text: #13201a;
  --muted: #5b6b62;
  --line: #e2e8e3;
  --warn-bg: #fff6e0;
  --warn-ink: #7a5200;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(10, 30, 15, .05), 0 8px 24px rgba(10, 30, 15, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --green: #3cb03c;
    --green-soft: #173a1d;
    --bg: #0b130d;
    --card: #121d15;
    --text: #e6eee8;
    --muted: #9db0a4;
    --line: #22312a;
    --warn-bg: #2e2510;
    --warn-ink: #f0cf86;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--green); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { display: block; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ── Hero / header ─────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(140deg, var(--deep-1), var(--deep-2));
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(60, 176, 60, .18);
  pointer-events: none;
}
.hero::before { width: 520px; height: 520px; right: -170px; top: -230px; box-shadow: 0 0 0 70px rgba(60,176,60,.05), 0 0 0 140px rgba(60,176,60,.035); }
.hero::after { width: 260px; height: 260px; right: -40px; top: -100px; }

.nav { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand span { font-weight: 800; letter-spacing: .02em; font-size: 20px; }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: rgba(255,255,255,.78); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }

.hero-body { position: relative; z-index: 1; padding: 28px 0 56px; }
.eyebrow {
  font: 700 12px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin: 0 0 14px;
}
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.12; margin: 0 0 14px; font-weight: 800; letter-spacing: -.01em; }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.8); margin: 0; max-width: 560px; }
.hero .meta { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.6); }

/* ── Content ───────────────────────────────────────────────────── */
main { padding: 32px 0 56px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 0 0 18px;
}
@media (prefers-color-scheme: dark) { .card { border: 1px solid var(--line); } }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

h2 { font-size: 22px; line-height: 1.3; margin: 0 0 12px; font-weight: 800; }
h3 { font-size: 17px; margin: 22px 0 6px; font-weight: 700; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin: 4px 0; }
.muted { color: var(--muted); }
small, .small { font-size: 14px; }
strong { font-weight: 700; }

.label {
  font: 700 11.5px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

/* Summary chips at the top of the policy */
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 0 0 18px; }
.summary div { background: var(--card); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .summary div { border: 1px solid var(--line); } }
.summary b { display: block; font-size: 15px; margin-bottom: 4px; }
.summary span { font-size: 14px; color: var(--muted); line-height: 1.5; display: block; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: 1px; }

/* Table of contents */
.toc ol { columns: 2; column-gap: 28px; margin: 0; padding-left: 20px; }
.toc li { break-inside: avoid; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--green); }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* Data tables */
.table-scroll { overflow-x: auto; margin: 0 0 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
th { font: 700 11.5px/1.3 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; min-width: 140px; }

.note {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  margin: 0 0 12px;
}
.ok {
  background: var(--green-soft);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  margin: 0 0 12px;
}

/* Numbered steps (account deletion) */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 14px 46px; margin: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  font: 800 14px/30px "Archivo", sans-serif; text-align: center;
}
.path { font: 600 14px/1.4 "JetBrains Mono", ui-monospace, monospace; background: var(--bg); border-radius: 8px; padding: 2px 7px; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--green); color: #fff; text-decoration: none; font-weight: 700;
}
.button:hover { filter: brightness(1.08); }

/* Feature grid (home) */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .feature { border: 1px solid var(--line); } }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 12px; }
.feature h3 { margin: 0 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.pill-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 14px;
  font-size: 14px; color: rgba(255,255,255,.85);
}
.pill-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); }

/* ── Footer ────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 560px) {
  .nav { flex-direction: column; align-items: flex-start; }
  .nav-links { justify-content: flex-start; gap: 14px; }
  .card { padding: 20px; }
}
