/* Styles for the static landing page (/ for signed-out visitors, and /home). It is served
   outside the SPA and the CSP allows no scripts or third-party fonts, so everything here is
   plain CSS: product mockups are HTML + inline SVG, and interaction is CSS-only. */

:root {
  --bg: #050505;
  --bg-raised: #0b0d10;
  --surface: #101318;
  --surface-2: #171b22;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --fg: #fafafa;
  --fg-soft: #d4d4d8;
  --muted: #9ca3af;
  --primary: #1877f2;
  --primary-hi: #4c9aff;
  --primary-soft: rgba(24, 119, 242, 0.14);
  --positive: #22c55e;
  --positive-soft: rgba(34, 197, 94, 0.14);
  --negative: #f43f5e;
  --negative-soft: rgba(244, 63, 94, 0.12);
  --warning: #f59e0b;
  --violet: #a78bfa;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border);
  --glow: radial-gradient(60% 50% at 50% 0%, rgba(24, 119, 242, 0.28), transparent 70%);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-raised: #f2f5f8;
    --surface: #ffffff;
    --surface-2: #f2f5f8;
    --border: rgba(10, 20, 40, 0.08);
    --border-strong: rgba(10, 20, 40, 0.14);
    --fg: #0a0a0a;
    --fg-soft: #27272a;
    --muted: #5b6270;
    --primary-hi: #1877f2;
    --primary-soft: rgba(24, 119, 242, 0.1);
    --positive: #16a34a;
    --positive-soft: rgba(22, 163, 74, 0.1);
    --negative: #e11d48;
    --negative-soft: rgba(225, 29, 72, 0.08);
    --violet: #7c3aed;
    --shadow: 0 30px 70px -30px rgba(15, 30, 60, 0.35), 0 0 0 1px var(--border);
    --glow: radial-gradient(60% 50% at 50% 0%, rgba(24, 119, 242, 0.16), transparent 70%);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--positive); }
.neg { color: var(--negative); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(24, 119, 242, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover { background: #2d86ff; }
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--fg);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 36px; padding: 0 1rem; font-size: 0.875rem; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand img { width: 28px; height: 28px; }
.brand span { color: var(--muted); font-weight: 500; }
.nav-links {
  display: flex;
  gap: 1.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-actions .login { font-size: 0.9rem; font-weight: 600; padding: 0 0.75rem; color: var(--fg-soft); }
.nav-actions .login:hover { color: var(--fg); }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 420px) { .nav-actions .login { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 112px) 0 0;
  text-align: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glow);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 55% at 50% 10%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 10%, #000 30%, transparent 75%);
  opacity: 0.6;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 0.8rem;
  color: var(--fg-soft);
}
.eyebrow b {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
}
.hero h1 {
  margin: 1.5rem auto 0;
  max-width: 14ch;
  font-size: clamp(2.6rem, 7.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.hero h1 .grad {
  background: linear-gradient(180deg, var(--fg) 20%, color-mix(in srgb, var(--fg) 45%, var(--primary)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  margin: 1.4rem auto 0;
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
}
.hero-ctas {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note { margin-top: 1rem; font-size: 0.82rem; color: var(--muted); }

/* App window mockup */
.stage {
  position: relative;
  margin: clamp(48px, 7vw, 80px) auto 0;
  max-width: 1080px;
  text-align: left;
}
.window {
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.window-bar .url {
  margin: 0 auto;
  padding: 3px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 0.72rem;
  color: var(--muted);
}
.app {
  display: grid;
  grid-template-columns: 196px 1fr;
  min-height: 460px;
}
.app-side {
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg-raised);
}
.app-side .brand { font-size: 0.9rem; margin: 0 6px 14px; }
.app-side .brand img { width: 22px; height: 22px; }
.app-side a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 8px;
}
.app-side a.on { background: var(--surface-2); color: var(--fg); }
.app-side svg { width: 15px; height: 15px; opacity: 0.9; }
.app-main { padding: 22px 24px; display: grid; gap: 16px; grid-template-columns: 1.55fr 1fr; align-content: start; }
.panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px;
}
.panel h4 { margin: 0; font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.big { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; margin-top: 4px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
.chip.pos { background: var(--positive-soft); }
.chip.neg { background: var(--negative-soft); }
.chip.blue { background: var(--primary-soft); color: var(--primary-hi); }
.net-chart { margin-top: 10px; width: 100%; height: 150px; }
.net-chart .area { fill: url(#netFill); }
.net-chart .line { fill: none; stroke: var(--primary-hi); stroke-width: 2; }
.net-chart .grid { stroke: var(--border); }
.rows { display: grid; gap: 2px; margin-top: 8px; }
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}
.row:first-child { border-top: 0; }
.row .name { flex: 1; min-width: 0; }
.row .name small { display: block; color: var(--muted); font-size: 0.7rem; }
.row .amt { text-align: right; font-weight: 600; }
.row .amt small { display: block; color: var(--muted); font-weight: 400; font-size: 0.7rem; }
.cur {
  min-width: 28px;
  padding: 0 4px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}
.c-usd { background: #1877f2; }
.c-eur { background: #6d28d9; }
.c-brl { background: #059669; }
.c-gbp { background: #db2777; }
.c-jpy { background: #ea580c; }
.c-chf { background: #dc2626; }
.c-mxn { background: #0d9488; }
.c-payee { background: #ea580c; }
.span-2 { grid-column: 1 / -1; }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: 12px; }
.mini-bars span { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--primary-soft); }
.mini-bars span.hi { background: var(--primary); }

/* Floating cards around the hero window */
.float {
  position: absolute;
  width: 260px;
  padding: 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
}
.float .t { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.float .t svg { width: 16px; height: 16px; color: var(--positive); }
.float p { margin-top: 6px; color: var(--muted); font-size: 0.76rem; }
.float-refund { left: -64px; top: 46%; }
.float-split { right: -56px; bottom: 56px; }
.float-split .t svg { color: var(--primary-hi); }
@media (max-width: 1240px) {
  .float-refund { left: -16px; }
  .float-split { right: -16px; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .float { display: none; }
}
@media (max-width: 640px) {
  .app-main { grid-template-columns: 1fr; padding: 14px; }
  .hide-sm { display: none; }
}

/* ---------- Logos / proof strip ---------- */
.strip {
  margin-top: clamp(56px, 8vw, 88px);
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.strip b { color: var(--fg); font-weight: 600; }
.strip .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

/* ---------- Section scaffolding ---------- */
section { scroll-margin-top: 72px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 44rem; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-hi);
}
.section-head h2, .feature h2 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.section-head p, .feature .copy > p {
  margin-top: 1rem;
  font-size: 1.08rem;
  color: var(--muted);
}

/* Alternating feature rows */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(80px, 12vw, 144px); }
.feature.flip .copy { order: 2; }
.feature .copy { max-width: 30rem; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.7rem; }
.ticks li { display: flex; gap: 0.65rem; color: var(--fg-soft); font-size: 0.97rem; }
.ticks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--primary-hi); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
}

.visual {
  position: relative;
  border-radius: 24px;
  padding: clamp(18px, 3vw, 32px);
  background:
    radial-gradient(80% 60% at 100% 0%, var(--primary-soft), transparent 70%),
    var(--bg-raised);
  border: 1px solid var(--border);
}
.card {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
  font-size: 0.86rem;
}
.card + .card { margin-top: 14px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-weight: 600; }
.card-title small { color: var(--muted); font-weight: 400; font-size: 0.78rem; }

/* Refunds compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare .card + .card { margin-top: 0; }
.compare .label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.compare .ours { outline: 2px solid var(--primary); outline-offset: -1px; }
.compare .ours .label { color: var(--primary-hi); }
.stat { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--border); }
.stat:first-of-type { margin-top: 10px; }
.stat b { font-size: 1.05rem; letter-spacing: -0.01em; }
.warn-note { margin-top: 10px; display: flex; gap: 6px; font-size: 0.75rem; color: var(--warning); }
.ok-note { margin-top: 10px; display: flex; gap: 6px; font-size: 0.75rem; color: var(--positive); }
.warn-note svg, .ok-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.linked {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.tx {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  font-size: 0.8rem;
}
.tx small { display: block; color: var(--muted); font-size: 0.7rem; }
.tx b { display: block; margin-top: 2px; }
.link-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
}
.link-ico svg { width: 15px; height: 15px; }
@media (max-width: 560px) {
  .compare { grid-template-columns: 1fr; }
  .linked { grid-template-columns: 1fr; }
  .link-ico { margin: 0 auto; transform: rotate(90deg); }
}

/* Power Search */
.search-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  background: var(--surface);
}
.search-box > svg { width: 16px; height: 16px; color: var(--muted); margin-right: 2px; }
.token {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  white-space: nowrap;
}
.token em { font-style: normal; color: var(--muted); }
.token b { font-weight: 600; }
.caret {
  font-size: 0.82rem;
  color: var(--fg);
  border-right: 2px solid var(--primary-hi);
  padding-right: 2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { border-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
.suggest {
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px;
  font-size: 0.8rem;
}
.suggest div { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--fg-soft); }
.suggest div.on { background: var(--primary-soft); color: var(--fg); }
.suggest kbd {
  margin-left: auto;
  font: inherit;
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 0 5px;
}
.results-head {
  display: flex;
  justify-content: space-between;
  margin: 16px 2px 6px;
  font-size: 0.78rem;
  color: var(--muted);
}
.results-head b { color: var(--fg); }

/* Multi-currency */
.fx-rate {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 0.78rem;
  color: var(--muted);
}
.fx-rate svg { width: 16px; height: 16px; color: var(--primary-hi); flex: none; }
.fx-rate b { color: var(--fg); }
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-strong);
}
.total-row b { font-size: 1.35rem; letter-spacing: -0.02em; }

/* Investments */
.perf { width: 100%; height: auto; margin-top: 8px; }
.perf .grid { stroke: var(--border); }
.perf .you { fill: none; stroke: var(--primary-hi); stroke-width: 2.25; }
.perf .bench { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.perf .area { fill: url(#perfFill); }
.perf .mark { fill: var(--surface); stroke: var(--positive); stroke-width: 2; }
.perf text { fill: var(--muted); font-size: 10px; font-family: inherit; }
.legend { display: flex; gap: 16px; font-size: 0.74rem; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; background: var(--primary-hi); }
.legend i.b { background: var(--muted); }
.legend i.d { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--positive); background: transparent; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); padding: 12px; }
.kpi small { display: block; font-size: 0.7rem; color: var(--muted); }
.kpi b { display: block; margin-top: 2px; font-size: 1.05rem; letter-spacing: -0.02em; }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr 1fr; } }

/* Credit cards */
.ccard {
  position: relative;
  border-radius: 16px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 50%),
    linear-gradient(135deg, #0f172a, #1e3a8a 60%, #1877f2);
  box-shadow: var(--shadow);
  aspect-ratio: 1.75;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ccard .chipimg { width: 34px; height: 24px; border-radius: 5px; background: linear-gradient(135deg, #fde68a, #d97706); }
.ccard small { opacity: 0.7; font-size: 0.7rem; display: block; }
.ccard b { font-size: 1.25rem; letter-spacing: -0.01em; }
.ccard .row2 { display: flex; justify-content: space-between; align-items: flex-end; font-size: 0.78rem; }
.cc-layout { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
.cc-layout .card + .card { margin-top: 0; }
@media (max-width: 680px) { .cc-layout { grid-template-columns: 1fr; } }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 10px 0 6px; }
.progress span { display: block; height: 100%; width: 62%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-hi)); }
.cycles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.cycle {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px;
  font-size: 0.74rem;
}
.cycle b { display: block; font-size: 0.86rem; margin: 2px 0 6px; }
.cycle.now { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
@media (max-width: 560px) { .cycles { grid-template-columns: 1fr 1fr; } }

/* Households */
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--surface);
}
.av-a { background: linear-gradient(135deg, #1877f2, #60a5fa); }
.av-b { background: linear-gradient(135deg, #db2777, #f472b6); }
.av-c { background: linear-gradient(135deg, #059669, #34d399); }
.avatars { display: flex; }
.avatars .avatar + .avatar { margin-left: -8px; }
.split-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin: 12px 0 8px; gap: 2px; }
.split-bar span:first-child { flex: 6; background: var(--primary); }
.split-bar span:last-child { flex: 4; background: #db2777; }
.split-legend { display: flex; justify-content: space-between; font-size: 0.78rem; }
.settle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-soft), transparent);
  border: 1px solid var(--border);
}
.settle .who { flex: 1; font-size: 0.84rem; }
.settle .who b { font-size: 1.1rem; display: block; letter-spacing: -0.01em; }
.settle .btn { height: 34px; font-size: 0.8rem; }

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tile {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 170px;
}
.tile.wide { grid-column: span 2; }
.tile .ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-hi);
  margin-bottom: 6px;
}
.tile .ico svg { width: 19px; height: 19px; }
.tile h3 { font-size: 1.02rem; letter-spacing: -0.01em; }
.tile p { color: var(--muted); font-size: 0.9rem; }
.tile .meter { margin-top: auto; padding-top: 10px; }
.tile .meter .progress span { width: 74%; }
.tile .meter small { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--muted); }
.langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.langs span { font-size: 0.72rem; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--fg-soft); }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile.wide { grid-column: auto; } }

/* ---------- Privacy band ---------- */
.privacy {
  border-radius: 28px;
  padding: clamp(32px, 6vw, 64px);
  background:
    radial-gradient(70% 90% at 0% 0%, var(--primary-soft), transparent 60%),
    var(--bg-raised);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.privacy h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.08; letter-spacing: -0.03em; margin-top: 0.75rem; }
.privacy .copy p { margin-top: 1rem; color: var(--muted); font-size: 1.04rem; }
.promises { display: grid; gap: 12px; }
.promise {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.promise svg { width: 20px; height: 20px; flex: none; color: var(--primary-hi); margin-top: 2px; }
.promise b { display: block; font-size: 0.95rem; }
.promise span { font-size: 0.86rem; color: var(--muted); }
@media (max-width: 860px) { .privacy { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 40rem; }

/* ---------- Final CTA ---------- */
.cta {
  position: relative;
  text-align: center;
  padding: clamp(72px, 10vw, 120px) var(--gutter);
  isolation: isolate;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 70% at 50% 100%, rgba(24, 119, 242, 0.3), transparent 70%);
}
.cta h2 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); letter-spacing: -0.04em; line-height: 1.04; max-width: 16ch; margin: 0 auto; }
.cta p { margin: 1.1rem auto 0; color: var(--muted); font-size: 1.1rem; max-width: 32rem; }
.cta .hero-ctas { margin-top: 2rem; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  font-size: 0.86rem;
  color: var(--muted);
}
footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
footer nav { display: flex; gap: 1.5rem; }
footer nav a:hover { color: var(--fg); }
footer .brand { font-size: 0.95rem; color: var(--fg); }
footer .brand img { width: 22px; height: 22px; }

/* ---------- Small utilities used by the rendered mockups ---------- */
.sprite { position: absolute; }
.big.sm { font-size: 1.4rem; }
.tiny { font-size: 0.74rem; }
.strong { color: var(--fg); }
.gap-top { margin-top: 14px; }
.gap-top-sm { margin-top: 12px; }
.card.tight { padding: 6px 14px; }
.rows.flush { margin: 0; }
.section.flush-top { padding-top: 0; }
.who-line { display: flex; align-items: center; gap: 8px; }
.who-line small { display: block; color: var(--muted); font-weight: 400; font-size: 0.74rem; }
.ccard-top { display: flex; justify-content: space-between; align-items: center; }
.perf .mark-letter { fill: var(--positive); font-weight: 700; }
.mini-bars .h40 { height: 40%; }
.mini-bars .h48 { height: 48%; }
.mini-bars .h55 { height: 55%; }
.mini-bars .h58 { height: 58%; }
.mini-bars .h62 { height: 62%; }
.mini-bars .h70 { height: 70%; }
.mini-bars .h80 { height: 80%; }
.faq details p a { color: var(--primary-hi); }

/* Language switcher (a <details> menu, no script) */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 34px;
  padding: 0 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--fg-soft);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { background: var(--surface-2); }
.lang-switch summary svg { width: 15px; height: 15px; }
.lang-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 10;
  min-width: 200px;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
}
.lang-menu a { padding: 7px 10px; border-radius: 8px; color: var(--fg-soft); }
.lang-menu a:hover { background: var(--surface-2); color: var(--fg); }
.lang-menu a[aria-current="page"] { color: var(--primary-hi); font-weight: 600; }
@media (max-width: 560px) { .lang-menu { right: auto; left: 0; } }
