:root {
  --bg: #f8f9f9;
  --surface: #ffffff;
  --surface-2: #f0f1ef;
  --ink: #17181c;
  --ink-2: #3d424d;
  --muted: #6b7080;
  --line: #e7e9e6;
  --brand: #0acb39;
  --brand-ink: #0f7b3e;
  --tint: #dff3c8;
  --tint-ink: #1c4a14;
  --night: #17181c;
  --night-2: #23252b;
  --night-line: #2f323a;
  --night-ink: #f2f1f5;
  --night-muted: #95969f;
  --shadow: 0 1px 2px rgba(23, 24, 28, 0.05), 0 12px 32px -12px rgba(23, 24, 28, 0.18);
  --radius: 22px;
  --display: "Manrope", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --surface: #1e1e23;
    --surface-2: #26252b;
    --ink: #f2f1f5;
    --ink-2: #c9cad2;
    --muted: #95969f;
    --line: #2a2a30;
    --brand-ink: #4ce264;
    --tint: #1d2b19;
    --tint-ink: #bdf078;
    --night: #1e1e23;
    --night-2: #26252b;
    --night-line: #34343c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
/* Fixed-scale page: no pinch or double-tap zoom, no sideways drift. */
html, body { overflow-x: hidden; touch-action: pan-x pan-y; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header.legal { border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 19px/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

/* Buttons and pills */
.pill { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--body); padding: 8px 12px; border-radius: 999px; background: var(--tint); color: var(--tint-ink); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 15px/1 var(--display); padding: 15px 22px; border-radius: 999px; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.btn-dark:hover, .btn-ghost:hover { text-decoration: none; transform: translateY(-1px); }
.btn { transition: transform 0.15s ease; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .container { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 920px) { .hero .container { grid-template-columns: 1.05fr 0.95fr; gap: 64px; } .hero { padding: 88px 0 104px; } }
.hero h1 {
  font: 800 clamp(40px, 6vw, 64px)/1.02 var(--display);
  letter-spacing: -0.035em;
  margin: 20px 0 20px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--brand-ink); }
.hero .lead { font-size: 18.5px; line-height: 1.6; color: var(--ink-2); max-width: 30em; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 13.5px; color: var(--muted); margin-top: 16px; }

/* Product mock — echoes the app's Home dashboard */
.mock { position: relative; max-width: 420px; width: 100%; justify-self: center; }
.mock::before {
  content: ""; position: absolute; inset: 8% -6% -4% 10%;
  background: radial-gradient(60% 60% at 60% 40%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%);
  filter: blur(30px); z-index: 0;
}
.mock > * { position: relative; z-index: 1; }
.nw-card { background: var(--night); color: var(--night-ink); border-radius: 28px; padding: 22px 22px 18px; box-shadow: var(--shadow); }
.nw-top { display: flex; justify-content: space-between; align-items: center; }
.nw-label { font: 600 13px/1 var(--body); color: var(--night-muted); letter-spacing: 0.02em; }
.badge-up { font: 700 12px/1 var(--display); color: #0acb39; background: rgba(10, 203, 57, 0.14); padding: 6px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.nw-value { font: 800 40px/1.05 var(--display); letter-spacing: -0.03em; margin: 12px 0 2px; font-variant-numeric: tabular-nums; }
.nw-value small { font-size: 22px; color: var(--night-muted); font-weight: 700; }
.nw-sub { font-size: 13px; color: var(--night-muted); }
.spark { margin: 14px -4px 4px; height: 92px; }
.spark svg { width: 100%; height: 100%; overflow: visible; }
.axis { display: flex; justify-content: space-between; font: 500 11px/1 var(--body); color: var(--night-muted); font-variant-numeric: tabular-nums; padding: 0 2px; }

.mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow); }
.mini-label { font: 600 12px/1 var(--body); color: var(--muted); }
.mini-value { font: 800 20px/1.1 var(--display); margin: 8px 0 10px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bar { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.bar.warn span { background: #f5a623; }
.mini-foot { font-size: 11.5px; color: var(--muted); margin-top: 7px; font-variant-numeric: tabular-nums; }

.chat { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.bubble { font-size: 13.5px; line-height: 1.45; padding: 10px 13px; border-radius: 16px; max-width: 86%; }
.bubble.me { justify-self: end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
.bubble.ai { background: var(--tint); color: var(--tint-ink); border-bottom-left-radius: 6px; }
.bubble.ai b { font-variant-numeric: tabular-nums; }

/* Features */
.features { padding: 24px 0 96px; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.eyebrow { font: 700 12.5px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-ink); }
.section-head h2 { font: 800 clamp(28px, 4vw, 40px)/1.1 var(--display); letter-spacing: -0.03em; margin: 14px 0 12px; text-wrap: balance; }
.section-head p { color: var(--ink-2); margin: 0; font-size: 17px; }
.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--tint-ink); margin-bottom: 18px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font: 800 19px/1.25 var(--display); letter-spacing: -0.02em; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.band { padding: 0 0 96px; }
.band-inner { background: var(--night); color: var(--night-ink); border-radius: 32px; padding: 44px 32px; display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 760px) { .band-inner { grid-template-columns: 1fr auto; padding: 52px 56px; } }
.band h2 { font: 800 clamp(26px, 3.4vw, 36px)/1.12 var(--display); letter-spacing: -0.03em; margin: 0 0 8px; text-wrap: balance; }
.band p { margin: 0; color: var(--night-muted); }
.band .btn { background: var(--brand); color: #0b1a0f; }

/* Legal pages */
.doc-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.doc-hero h1 { font: 800 clamp(36px, 5vw, 52px)/1.05 var(--display); letter-spacing: -0.035em; margin: 18px 0 10px; }
.doc-hero .meta { color: var(--muted); font-size: 14.5px; margin: 0; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; padding-bottom: 80px; }
@media (min-width: 960px) { .doc { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-top: 40px; padding-bottom: 96px; } }
.toc { font-size: 14px; }
.toc-title { font: 700 12px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 10px; }
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.toc-mobile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.toc-mobile summary { cursor: pointer; font-weight: 600; }
.toc-mobile ol { margin-top: 10px; }
.toc-desktop { display: none; }
@media (min-width: 960px) {
  .toc-mobile { display: none; }
  .toc-desktop { display: block; position: sticky; top: 88px; }
}
.prose { max-width: 680px; }
.prose h2 { font: 800 23px/1.25 var(--display); letter-spacing: -0.02em; margin: 48px 0 12px; scroll-margin-top: 88px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 700 16.5px/1.35 var(--display); margin: 26px 0 6px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 7px; }
.prose li::marker { color: var(--brand); }
.summary { background: var(--tint); color: var(--tint-ink); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 40px; }
.summary p { margin: 0; color: inherit; }
.summary strong { color: inherit; }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font: 700 12px/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

.contact-card { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 40px; }
.contact-card p { margin: 0; color: var(--ink-2); }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.faq summary { cursor: pointer; font: 700 16.5px/1.35 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-ink); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Phones */
@media (max-width: 600px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .site-header .container { height: 58px; gap: 8px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 28px; height: 28px; border-radius: 8px; }
  .site-nav { gap: 0; }
  .site-nav a { font-size: 13.5px; padding: 7px 9px; }

  .hero { padding: 28px 0 56px; }
  .hero .container { gap: 36px; }
  .hero h1 { font-size: 40px; margin: 16px 0 14px; }
  .hero .lead { font-size: 16.5px; margin-bottom: 24px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero-actions .btn { justify-content: center; padding: 16px 20px; }
  .hero-note { text-align: center; }

  .nw-card { padding: 18px 18px 14px; border-radius: 24px; }
  .nw-value { font-size: 34px; }
  .spark { height: 76px; }
  .mini { padding: 12px 14px; border-radius: 18px; }
  .mini-value { font-size: 18px; }

  .features { padding: 8px 0 64px; }
  .section-head { margin-bottom: 24px; }
  .section-head p { font-size: 16px; }
  .feature { padding: 22px; }
  .band { padding-bottom: 64px; }
  .band-inner { padding: 32px 24px; border-radius: 26px; }
  .band .btn { justify-content: center; }

  .doc-hero { padding: 32px 0 24px; }
  .doc-hero h1 { font-size: 36px; margin: 14px 0 8px; }
  .prose h2 { font-size: 21px; margin-top: 38px; }
  .summary { padding: 18px 18px; margin-bottom: 28px; }
  .contact-card { padding: 18px; }
  .contact-card .btn { width: 100%; justify-content: center; }
  .faq details { padding: 16px 18px; }
  .faq summary { font-size: 16px; }

  .site-footer { padding: 28px 0 36px; }
  .site-footer .container { flex-direction: column; align-items: flex-start; gap: 14px; }
}
