/* spendpilot.space (UIUX S-95). Colours: OTTO §6 tokens only. Fonts: OTTO §6.5, self-hosted (no font service, no trackers). */
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-600.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("assets/fonts/PlusJakartaSans-700.ttf") format("truetype"); font-weight: 600 800; font-display: swap; }
:root {
  --primary: #2f4f48; --on-primary: #ffffff; --accent: #c2a57c; --on-accent: #1e211f;
  --background: #f7f6f2; --surface: #ffffff; --border: #e7e4dd; --text: #1e211f; --text-muted: #646a66;
  --radius: 12px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-body);
  font-family: var(--font-body);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --primary: #9cc2b5; --on-primary: #13201c; --accent: #cfaf82; --on-accent: #161715;
    --background: #111312; --surface: #1a1d1c; --border: #2a2e2c; --text: #eceae5; --text-muted: #a4a8a4; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); line-height: 1.55; font-size: 17px; }
a { color: var(--primary); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
header { position: sticky; top: 0; background: var(--background); border-bottom: 1px solid var(--border); z-index: 2; }
header .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.brand .brand-icon { width: 32px; height: 32px; border-radius: 8px; }
.brand .brand-word { height: 22px; width: auto; display: block; }
nav { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 15px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; padding: 48px 0 32px; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; margin: 0 0 12px; }
.hero p.lead { font-size: 20px; color: var(--text-muted); margin: 0 0 24px; }
.hero img { width: 100%; max-width: 440px; justify-self: center; }
.btn { display: inline-block; background: var(--primary); color: var(--on-primary); padding: 14px 24px; border-radius: var(--radius); font-weight: 700; text-decoration: none; min-height: 48px; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.small { font-size: 14px; color: var(--text-muted); }
section { padding: 40px 0; }
h2 { font-size: 28px; margin: 0 0 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.otto-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.otto-row figure { margin: 0; text-align: center; }
.otto-row img { width: 96px; height: 96px; }
.otto-row figcaption { font-size: 13px; color: var(--text-muted); }
dl.release { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
dl.release dt { color: var(--text-muted); }
dl.release dd { margin: 0; overflow-wrap: anywhere; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
ol.steps { padding-left: 20px; }
details { border-bottom: 1px solid var(--border); padding: 12px 0; }
summary { font-weight: 600; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
footer { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--text-muted); font-size: 15px; }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; }
.copy { margin-left: auto; }
.legal { max-width: 720px; padding: 32px 16px 48px; margin: 0 auto; }
.note { background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); padding: 12px 16px; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  nav { display: none; }
}

/* Headings, the brand and big numbers use the display font (OTTO §6.5). */
h1, h2, h3, .brand, .amount { font-family: var(--font-display); }
