/* KontoMate landing. Same tokens as the app (finassist-app src/index.css): exchange-app surfaces,
   one yellow action colour, IBM Plex Sans when installed (self-hosting it is on the to-do list; no font CDN). */
:root {
  --bg: #f5f5f5;
  --card: #ffffff;
  --fg: #1e2329;
  --muted: #5e6673;          /* 5.8:1 on white */
  --border: #e2e5e9;
  --secondary: #eaecef;
  --primary: #fcd535;        /* bright yellow fill, dark text */
  --on-primary: #1a1e23;
  --primary-text: #9a6b00;   /* yellow that reads on white (5.0:1) */
  --success: #007a51;
  --success-bg: #007a51;
  --on-success: #ffffff;
  --danger: #c4304a;
  --ring: #b87a00;
  --chart-1: #cc8800;
  --chart-2: #1f78e0;
  --tile-1: #1366d6; --tile-2: #007a51; --tile-3: #b45309; --tile-4: #9a6b00; --tile-5: #5b4bc4; --tile-6: #c4304a;
  --promise-bg: #1e2329;
  --promise-fg: #eaecef;
  --promise-muted: #b7bdc6;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}
.dark {
  --bg: #181a20;
  --card: #1e2329;
  --fg: #eaecef;
  --muted: #969fac;          /* 4.5:1+ on card */
  --border: #2b3139;
  --secondary: #2b3139;
  --primary-text: #fcd535;
  --on-primary: #181a20;
  --success: #2ebd85;
  --success-bg: #2ebd85;
  --danger: #f6465d;
  --on-success: #181a20;
  --ring: #fcd535;
  --chart-1: #fcd535;
  --chart-2: #4c9bf0;
  --tile-1: #4c9bf0; --tile-2: #2ebd85; --tile-3: #f59e3b; --tile-4: #fcd535; --tile-5: #9d8cf2; --tile-6: #f7506a;
  --promise-bg: #0f1115;
  --promise-fg: #eaecef;
  --promise-muted: #a3abb7;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sprite { position: absolute; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.stat { font-variant-numeric: tabular-nums; font-weight: 600; }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -48px; background: var(--primary); color: var(--on-primary); padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 600; z-index: 100; }
.skip:focus { top: 8px; }

/* Buttons: one yellow action colour; outline for the second choice. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 0.9375rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-large { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: #f0c929; }
.btn-outline { background: var(--card); border-color: var(--border); color: var(--fg); }
.btn-outline:hover { background: var(--secondary); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary .icon { fill: currentColor; stroke-width: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.logo { width: 32px; height: 32px; flex-shrink: 0; }
.nav { display: none; gap: 4px; margin-left: 16px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--fg); background: var(--secondary); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--fg); cursor: pointer; }
.icon-btn:hover { background: var(--secondary); }
.show-dark { display: none; }
.dark .show-dark { display: block; }
.dark .show-light { display: none; }
.link-login { display: none; text-decoration: none; font-weight: 600; padding: 8px 10px; border-radius: var(--radius-sm); }
.link-login:hover { background: var(--secondary); }
.lang { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.lang[hidden] { display: none; }
.lang select { font: inherit; font-size: 0.875rem; color: var(--fg); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); height: 36px; padding: 0 8px; }
@media (min-width: 768px) { .nav { display: flex; } .link-login { display: inline-block; } }
/* Narrow phones: logo without the wordmark, so language, theme and the main button fit on one row. */
@media (max-width: 439px) { .site-header .brand span { display: none; } }

/* Hero */
.hero { padding: 40px 0 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 7vw, 4rem); font-weight: 700; max-width: 14ch; }
.lead { margin-top: 20px; font-size: 1.125rem; color: var(--muted); max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hint { margin-top: 12px; font-size: 0.875rem; color: var(--muted); }
@media (max-width: 479px) { .hero-ctas .btn { width: 100%; } }
@media (min-width: 960px) { .hero { padding: 72px 0 32px; } .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; } }

/* The one bold element: a net-worth card built like the app's dashboard. */
.mock { margin: 0; display: grid; gap: 12px; }
.mock-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 10px; font-size: 0.8125rem; font-weight: 600; }
.pill-up { background: var(--success-bg); color: var(--on-success); }
.mock-total { font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 700; margin-top: 6px; }
.mock-chart { display: block; width: 100%; height: 120px; margin: 12px 0 16px; }
.mock-chart .line { fill: none; stroke: var(--chart-1); stroke-width: 3; vector-effect: non-scaling-stroke; }
.mock-chart .area { fill: var(--chart-1); opacity: 0.12; }
.mock-split { display: grid; gap: 10px; border-top: 1px solid var(--border); padding-top: 14px; }
.mock-split li { display: flex; align-items: center; gap: 10px; }
.mock-split li .stat { margin-left: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.d1 { background: var(--chart-1); }
.d2 { background: var(--chart-2); }
.mock-chat { display: flex; align-items: center; gap: 10px; background: var(--primary); color: var(--on-primary); border-radius: var(--radius); padding: 12px 16px; font-weight: 600; justify-self: end; max-width: 100%; }
.mock-chat .icon { fill: none; }
.mock figcaption { justify-self: end; }

.trust { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 40px; padding: 20px 0 0; border-top: 1px solid var(--border); }
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.trust .icon { color: var(--primary-text); }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Sections */
.section { padding: 56px 0; }
@media (min-width: 960px) { .section { padding: 80px 0; } }
.section h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); font-weight: 700; max-width: 24ch; }
.section-lead { margin-top: 12px; color: var(--muted); font-size: 1.0625rem; max-width: 60ch; }

.tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 32px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.tile h3 { font-size: 1.125rem; margin-top: 14px; }
.tile p { margin-top: 6px; color: var(--muted); }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: #fff; }
.dark .icon-tile { color: #181a20; }
.dark .mock-chart .area { opacity: 0.08; }
.icon-tile .icon { width: 22px; height: 22px; }
.t1 { background: var(--tile-1); } .t2 { background: var(--tile-2); } .t3 { background: var(--tile-3); }
.t4 { background: var(--tile-4); } .t5 { background: var(--tile-5); } .t6 { background: var(--tile-6); }

.tools { margin-top: 56px; }
.tools-title { font-size: 1.375rem; }
.tool-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 40px; margin-top: 16px; }
@media (min-width: 768px) { .tool-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tool-list li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border); }
.tool-list .icon { margin-top: 2px; color: var(--primary-text); }
.tool-list p { color: var(--muted); margin-top: 2px; }

/* The read-only promise: dark in both themes, so it stands apart. */
.promise { background: var(--promise-bg); color: var(--promise-fg); }
.promise .section-lead { color: var(--promise-muted); }
.promise-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 960px) { .promise-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; } }
.promise h2 { color: #fcd535; }
.promise-list { display: grid; gap: 20px; }
.promise-list li { display: flex; gap: 14px; }
.promise-list .icon { color: #fcd535; margin-top: 2px; }
.promise-list p { color: var(--promise-muted); margin-top: 2px; }

.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 32px; counter-reset: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.steps li { padding: 20px 0 0; border-top: 3px solid var(--primary); }
.step-no { display: inline-block; font-size: 2rem; font-weight: 700; color: var(--primary-text); line-height: 1; }
.steps h3 { font-size: 1.125rem; margin-top: 10px; }
.steps p { color: var(--muted); margin-top: 6px; }

.demo-band { display: grid; gap: 24px; align-items: center; background: var(--primary); color: var(--on-primary); border-radius: var(--radius); padding: 28px 20px; }
.demo-band p { margin-top: 10px; max-width: 58ch; }
.demo-band h2 { max-width: none; }
.demo-band .btn-primary { background: #181a20; color: #fcd535; justify-self: start; }
.demo-band .btn-primary:hover { background: #2b3139; }
.demo-band .btn:focus-visible { outline-color: #181a20; }
@media (min-width: 768px) { .demo-band { grid-template-columns: minmax(0, 1fr) auto; padding: 36px 40px; } }

/* Centred sections (pricing): heading, lead and note centred, the cards as a centred block. */
.section-center { text-align: center; }
.section-center h2, .section-center .section-lead, .section-center .note { margin-left: auto; margin-right: auto; }
.section-center .plan { text-align: left; }
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 32px auto 0; max-width: 880px; }
@media (min-width: 768px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.plan-pro { border: 2px solid var(--primary); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan h3 { font-size: 1.25rem; }
.badge { background: var(--primary); color: var(--on-primary); border-radius: 999px; padding: 2px 10px; font-size: 0.8125rem; font-weight: 600; }
.price .stat { font-size: 2.5rem; font-weight: 700; }
.features { display: grid; gap: 10px; margin: 8px 0 16px; flex: 1; }
.features li { display: flex; gap: 10px; align-items: flex-start; }
.features .icon { width: 18px; height: 18px; margin-top: 3px; }
.features .yes { color: var(--success); }
.features .no { color: var(--muted); }
.plan .btn { align-self: stretch; }
.note { margin-top: 20px; color: var(--muted); max-width: 70ch; }

.faq-wrap { max-width: 840px; }
.faq { margin-top: 24px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--primary-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 70ch; }

.closing { border-top: 1px solid var(--border); }
.closing-inner { text-align: center; }
.closing-inner h2, .closing-inner .section-lead { margin-left: auto; margin-right: auto; }
.closing-inner .hero-ctas { justify-content: center; }

/* Waitlist (Soon mode) */
.waitlist { max-width: 520px; margin: 32px auto 0; text-align: left; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 8px; }
.waitlist input[type="email"] { flex: 1 1 240px; min-width: 0; min-height: 52px; padding: 0 16px; font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.waitlist input[type="email"]::placeholder { color: var(--muted); }
.waitlist input[type="email"][aria-invalid="true"] { border-color: var(--danger, #cf304a); }
.waitlist-row .btn { flex: 0 0 auto; }
@media (max-width: 479px) { .waitlist-row .btn { width: 100%; } }
.waitlist-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 0.875rem; color: var(--muted); cursor: pointer; }
.waitlist-consent input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--primary); }
.waitlist .small { margin-top: 8px; }
.waitlist .small a { color: var(--primary-text); }
.waitlist-status { margin-top: 12px; font-weight: 600; min-height: 1.5em; }
.waitlist-status.ok { color: var(--success); }
.waitlist-status.err { color: var(--danger, #cf304a); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Soon / Live: html[data-mode] is set by functions/_middleware.js from SITE_MODE (default "soon"). */
[data-mode="soon"] .live-only, [data-mode="live"] .soon-only { display: none !important; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary-text); }
.eyebrow .badge { text-transform: none; letter-spacing: 0; }
.footer-link { color: var(--fg); font-weight: 600; text-decoration: none; }
.footer-link:hover { text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--card); padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.footer-grid > div p { margin-top: 10px; max-width: 44ch; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col a { text-decoration: none; color: var(--muted); padding: 4px 0; }
.footer-col a:hover { color: var(--fg); text-decoration: underline; }
.footer-h { font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }

/* Legal placeholder page */
.legal { padding: 48px 0 72px; max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.legal section { padding: 24px 0; border-bottom: 1px solid var(--border); }
.legal h2 { font-size: 1.25rem; }
.legal section p { margin-top: 8px; color: var(--muted); }
.legal h3 { margin-top: 20px; font-size: 1.05rem; }
.legal section ul, .legal section ol { margin-top: 8px; padding-left: 20px; color: var(--muted); }
.legal section ul { list-style: disc; }
.legal section ol { list-style: decimal; }
.legal section li + li { margin-top: 4px; }
.legal strong { color: var(--fg); }
.legal .back { display: inline-block; margin-bottom: 16px; color: var(--primary-text); font-weight: 600; }
