/* Kassarix website – tokens follow DESIGN.md */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/PlusJakartaSans-Variable.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('fonts/DMMono-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

:root {
  --background: #F4F4F1;
  --surface: #FFFFFF;
  --surface-muted: #ECECE7;
  --border: #E4E4DF;
  --border-strong: #D6D6D0;
  --ink: #15171A;
  --ink-muted: #45494F;
  --ink-subtle: #5B5F66;
  --accent: #F2A900;
  --accent-soft: #FCEFCB;
  --on-accent: #15171A;
  --owing: #C2410C;
  --credit: #1D4ED8;
  --radius-card: 20px;
  --radius-button: 14px;
  --max: 1160px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #0F1113;
    --surface: #181B1F;
    --surface-muted: #14171A;
    --border: #2A2E34;
    --border-strong: #3A3E44;
    --ink: #F2F2EF;
    --ink-muted: #C9CBCF;
    --ink-subtle: #A3A7AE;
    --accent: #F5B82E;
    --accent-soft: #2E2612;
    --owing: #FB923C;
    --credit: #7DA2FF;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 500 17px/1.55 'Plus Jakarta Sans', system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.mono { font-family: 'DM Mono', ui-monospace, monospace; font-feature-settings: 'tnum'; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 10px; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--background) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; }
.nav { display: none; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-muted); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.top .btn { margin-left: auto; }
@media (min-width: 900px) { .nav { display: flex; } .top .btn { margin-left: 0; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: var(--radius-button); font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { border-color: var(--border-strong); color: var(--ink); background: var(--surface); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 17px; }

/* Hero */
.hero { padding: 56px 0 32px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 48px; } .hero .wrap { grid-template-columns: 1.05fr 1fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-subtle); }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 99px; background: var(--accent); }
h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin: 16px 0 20px; }
h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) h1 em { background: none; color: var(--accent); } }
.lead { font-size: 19px; color: var(--ink-muted); max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--ink-subtle); }

.shots { position: relative; display: grid; grid-template-columns: 1fr 0.42fr; gap: 16px; align-items: end; }
.shot { border-radius: 22px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 24px 60px -30px rgba(21, 23, 26, 0.45); }
.shot.phone { border-radius: 28px; }
.shot-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shot-light { display: none; } :root:not([data-theme="light"]) .shot-dark { display: block; } }

/* Sections */
section { padding: 64px 0; }
@media (min-width: 960px) { section { padding: 96px 0; } }
.section-head { max-width: 720px; margin-bottom: 40px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; margin: 12px 0 16px; }
h3 { font-size: 20px; letter-spacing: -0.01em; font-weight: 750; margin: 0 0 8px; }
.section-head p { color: var(--ink-muted); margin: 0; font-size: 18px; }

.grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 28px; }
.card p { margin: 0; color: var(--ink-muted); }
.card ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink-muted); }
.card li { margin: 4px 0; }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Feature rows with screenshot */
.feature { display: grid; gap: 32px; align-items: center; }
.feature + .feature { margin-top: 72px; }
@media (min-width: 960px) { .feature { grid-template-columns: 1fr 1.2fr; gap: 64px; } .feature.flip > :first-child { order: 2; } }
.feature p { color: var(--ink-muted); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; }
.checks li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 99px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315171A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }

.band { background: var(--surface); border-block: 1px solid var(--border); }

/* Audience */
.audience .card h3 { display: flex; align-items: center; gap: 10px; }

/* Ledger demo */
.ledger { font-size: 15px; width: 100%; border-collapse: collapse; }
.ledger td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.ledger td:last-child { text-align: right; }
.ledger tr:last-child td { border-bottom: 0; font-weight: 700; }
.owing { color: var(--owing); }
.credit { color: var(--credit); }

/* Pricing */
.price { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .price { grid-template-columns: 1fr 1fr; } }
.tiers { display: grid; gap: 10px; }
.tier { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-muted); }
.tier .mono { color: var(--ink-subtle); }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 22px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: 'DM Mono', monospace; color: var(--ink-subtle); }
details[open] summary::after { content: '–'; }
details p { margin: 0 0 20px; color: var(--ink-muted); }

/* CTA band + footer */
.final { text-align: center; }
.final .cta { justify-content: center; }
.final p { color: var(--ink-muted); max-width: 36em; margin: 0 auto 28px; }
footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--ink-subtle); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Legal pages */
.legal { max-width: 760px; padding: 56px 20px 80px; margin: 0 auto; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: var(--ink-muted); }
.note { background: var(--accent-soft); border-radius: 14px; padding: 14px 18px; color: var(--ink); font-size: 15px; }
