/* Opero website — same "working ledger" identity as the app (docs/BRAND.md). */
@font-face { font-family: 'Instrument Sans'; src: url('fonts/InstrumentSans_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('fonts/InstrumentSans_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('fonts/InstrumentSans_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('fonts/InstrumentSerif_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/Fraunces_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --canvas: #F6F5EF; --surface: #FFFFFF; --text: #142922; --muted: #52645B; --action: #0D6150; --on-action: #FFFFFF;
  --soft: #E1F1E8; --on-soft: #0D4A3D; --rule: #CFD8D0; --stroke: #7D8C84; --hero: #173D33; --on-hero: #FFFFFF; --on-hero-muted: #C5DDD2; --signal: #F0A23B;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #101B19; --surface: #182823; --text: #F0F5EF; --muted: #B4C5BA; --action: #9EDFC4; --on-action: #10271D;
    --soft: #203B31; --on-soft: #CBEBDD; --rule: #3B5146; --stroke: #6C8478; --hero: #1D3A31; --on-hero: #F0F5EF; --on-hero-muted: #B4C5BA;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 400 17px/1.55 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: var(--action); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 20px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
header.site { border-bottom: 1px solid var(--rule); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 30px; height: 30px; }
.wordmark { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 28px; letter-spacing: -0.3px; line-height: 1; }
nav.top { display: flex; gap: 22px; flex-wrap: wrap; }
nav.top a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
nav.top a:hover, nav.top a[aria-current="page"] { color: var(--text); }

/* Type */
.overline { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.6px; font-weight: 700; }
h1.serif, .statement { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; letter-spacing: -0.4px; }
h2 { font-size: 28px; letter-spacing: -0.3px; }
h3 { font-size: 20px; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }

/* Hero */
.hero { padding: 72px 20px 56px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero .statement { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.08; margin-bottom: 18px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.button.primary { background: var(--action); color: var(--on-action); }
.button.secondary { border-color: var(--stroke); color: var(--text); background: var(--surface); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--soft); color: var(--on-soft); font-size: 13px; font-weight: 600; }

/* Ledger card (example) */
.ledger { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 20px; }
.ledger .row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ledger .row:last-child { border-bottom: 0; }
.ledger .row strong { display: block; }
.figure { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.herocard { background: var(--hero); color: var(--on-hero); border-radius: 16px; padding: 22px; margin-bottom: 14px; }
.herocard .overline { color: var(--on-hero-muted); }
.herocard .big { font-size: 26px; font-weight: 700; }
.herocard .muted { color: var(--on-hero-muted); }
.quote { font-family: 'Instrument Serif', Georgia, serif; font-size: 22px; line-height: 1.35; margin: 0 0 12px; }

/* Sections */
section.band { padding: 56px 0; border-top: 1px solid var(--rule); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.feature h3 { margin-top: 8px; }
.feature p { margin: 0; color: var(--muted); }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--soft); color: var(--on-soft); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.plan { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.plan.pro { border: 2px solid var(--action); }
.price { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price span { font-size: 16px; font-weight: 400; color: var(--muted); }
.plan ul { margin: 6px 0 0; padding-left: 20px; }
.plan li { margin: 6px 0; }

/* Legal pages */
.doc { max-width: 760px; padding: 56px 20px 72px; }
.doc h2 { font-size: 22px; margin-top: 36px; }
.doc p, .doc li { color: var(--text); }
.note { background: var(--soft); color: var(--on-soft); border-radius: 12px; padding: 14px 16px; }

/* FAQ */
details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
footer.site { border-top: 1px solid var(--rule); padding: 32px 0 48px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--muted); text-decoration: none; font-size: 15px; }
footer.site a:hover { color: var(--text); }

@media (max-width: 820px) {
  .hero, .grid3, .grid2, .plans { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; gap: 32px; }
  nav.top { gap: 14px; }
}
