:root { color-scheme: light dark; --bg: #f5f5f8; --card: #ffffff; --card2: #f0f0f4; --ink: #14131a; --ink2: #3c3b47; --mute: #6d6b79; --faint: #a4a2ae; --line: rgba(20,19,26,.08); --line2: rgba(20,19,26,.14); --brand: #5b47f0; --brand-ink: #3e2ec4; --brand-soft: #eeebff; --green: #0e9a62; --amber: #a86b0f; --amber-soft: #fdf3e1; }
@media (prefers-color-scheme: dark) { :root { --bg: #0c0c10; --card: #16161c; --card2: #1e1e26; --ink: #f4f3f8; --ink2: #c9c7d3; --mute: #8e8c9a; --faint: #5f5d6b; --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.13); --brand: #6f5cff; --brand-ink: #b3a9ff; --brand-soft: rgba(111,92,255,.16); --green: #3ddc97; --amber: #f2c46d; --amber-soft: rgba(242,196,109,.08); } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink2); font: 17px/1.65 "Geist", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brand); }
::selection { background: var(--brand); color: #fff; }
.mk { width: 28px; height: 28px; flex-shrink: 0; } .mk rect { fill: var(--brand); } .mk path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { max-width: 1080px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -.045em; }
.logo small { font-size: 14px; font-weight: 500; color: var(--mute); letter-spacing: 0; margin-left: 6px; }
.open { background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; height: 38px; padding: 0 16px; border-radius: 12px; display: inline-flex; align-items: center; }
.open:hover { filter: brightness(1.08); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 64px; }
nav.toc { position: sticky; top: 96px; align-self: start; padding-top: 56px; font-size: 14px; }
nav.toc p { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 0 0 10px; }
nav.toc a { display: block; color: var(--mute); text-decoration: none; padding: 5px 0 5px 12px; border-left: 1px solid var(--line); }
nav.toc a:hover, nav.toc a.on { color: var(--ink); border-left-color: var(--brand); }

main { padding: 56px 0 120px; max-width: 680px; }
.kicker { color: var(--brand-ink); font-size: 14px; font-weight: 500; margin: 0 0 12px; }
h1 { color: var(--ink); font-size: clamp(36px, 6vw, 52px); line-height: 1.04; letter-spacing: -.045em; font-weight: 700; margin: 0 0 18px; }
.lede { font-size: 20px; color: var(--ink2); margin: 0 0 32px; }
h2 { color: var(--ink); font-size: 28px; letter-spacing: -.03em; font-weight: 600; line-height: 1.15; margin: 72px 0 14px; padding-top: 4px; }
h2 .n { color: var(--faint); font-weight: 500; margin-right: 10px; font-variant-numeric: tabular-nums; }
h3 { color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -.015em; margin: 32px 0 6px; }
p { margin: 0 0 16px; }
strong { color: var(--ink); font-weight: 600; }
code { font: 500 .86em "Geist Mono", monospace; color: var(--ink); background: var(--card2); padding: 2px 6px; border-radius: 6px; }
ul { padding-left: 20px; margin: 0 0 16px; } li { margin: 6px 0; } li::marker { color: var(--faint); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 8px; }
.card { background: var(--card); border-radius: 18px; padding: 18px; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; line-height: 1.5; }
.card b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.card .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 12px; }
.card .ico svg { width: 18px; height: 18px; fill: none; stroke: var(--brand-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; margin: 22px 0 24px; }
.flow .step { background: var(--card); border-radius: 16px; padding: 14px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.45; text-align: center; min-height: 100%; }
.flow .step b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.flow .arrow { color: var(--faint); font-size: 18px; }
.flow .step.hi { box-shadow: inset 0 0 0 2px var(--brand); }

.note { display: flex; gap: 12px; background: var(--card); border-radius: 16px; padding: 16px 18px; margin: 22px 0; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; line-height: 1.55; }
.note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 8px; flex-shrink: 0; }
.note.warn { background: var(--amber-soft); box-shadow: none; }
.note.warn .dot { background: var(--amber); }
.note p:last-child { margin: 0; }

table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 15px; }
th { text-align: left; font-weight: 500; color: var(--mute); font-size: 13px; padding: 0 12px 10px 0; border-bottom: 1px solid var(--line2); }
td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }

details { background: var(--card); border-radius: 16px; margin: 10px 0; box-shadow: inset 0 0 0 1px var(--line); }
summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; color: var(--ink); font-weight: 500; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 13px; color: var(--mute); font-size: 22px; font-weight: 300; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 18px 16px; font-size: 15px; }
details > div p:last-child { margin: 0; }

footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
footer .bar { height: auto; padding: 28px 24px; }

@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; gap: 0; }
  nav.toc { display: none; }
  main { padding-top: 36px; }
  .cards { grid-template-columns: 1fr; gap: 8px; }
  .card { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; padding: 14px 16px; }
  .card .ico { margin: 0; grid-row: span 2; }
  .card b { margin: 0; }
  .lede { font-size: 18px; }
  body { font-size: 16px; }
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); justify-self: center; }
  td:first-child { white-space: normal; }
}

/* single-column pages (privacy, terms, about, grok bot, 404) */
.wrap.solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.wrap.solo main { max-width: none; }
footer .bar { flex-wrap: wrap; gap: 10px 20px; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--mute); }
pre { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; padding: 14px 16px; overflow-x: auto; font: 500 13.5px/1.55 "Geist Mono", monospace; color: var(--ink); }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 8px; }
.btnrow a { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 13px; font-weight: 600; font-size: 15px; text-decoration: none; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.btnrow a.primary { background: var(--brand); color: #fff; box-shadow: none; }
.updated { color: var(--faint); font-size: 14px; }

/* ── Theme: pastel green, big-payments-app style (matches the app) ── */
:root, :root:root { color-scheme: light; --bg: #fff; --card: #fff; --card2: #EDF4E8; --ink: #0D2A1D; --ink2: #2E4A3C; --mute: #556E61; --faint: #7D9387; --line: rgba(13,42,29,.08); --line2: rgba(13,42,29,.14); --brand: #3E6B30; --brand-ink: #2F5424; --brand-soft: #E6F1DF; --green: #3E6B30; --amber: #8A5A00; --amber-soft: #FDF3E1; --pastel: #CEE4C3; --pastel-2: #BBD6AD; --mint: #EFF5EA; }
@media (prefers-color-scheme: dark) { :root, :root:root { --bg: #fff; --card: #fff; --card2: #EDF4E8; --ink: #0D2A1D; --ink2: #2E4A3C; --mute: #556E61; --faint: #7D9387; --line: rgba(13,42,29,.08); --line2: rgba(13,42,29,.14); --brand: #3E6B30; --brand-ink: #2F5424; --brand-soft: #E6F1DF; --green: #3E6B30; --amber: #8A5A00; --amber-soft: #FDF3E1; } }
::selection { background: var(--pastel); color: var(--ink); }
.mk rect { fill: var(--pastel); } .mk path { stroke: var(--ink); }
header { background: rgba(255,255,255,.92); }
.open, .btnrow a.primary { background: var(--pastel); color: var(--ink); border-radius: 999px; font-weight: 700; }
.open:hover, .btnrow a.primary:hover { background: var(--pastel-2); filter: none; }
.btnrow a { border-radius: 999px; }
h1 { font-weight: 800; letter-spacing: -.055em; }
h2 { font-weight: 700; letter-spacing: -.04em; }
.kicker { color: var(--brand); font-weight: 600; }
.card { border-radius: 24px; background: var(--mint); box-shadow: none; }
.card .ico { background: var(--pastel); border-radius: 50%; } .card .ico svg { stroke: var(--ink); }
