/* Kaaivix site — no external fonts, scripts or trackers. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1b1d21;
  --muted: #5b616b;
  --line: #e6e3dc;
  --accent: #1f5f4a;
  --accent-ink: #ffffff;
  --accent-soft: #e5f0eb;
  --max: 1080px;
  --prose: 720px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121416;
    --surface: #1a1d20;
    --text: #ecebe7;
    --muted: #a3a8ae;
    --line: #2b2f33;
    --accent: #7cc8a8;
    --accent-ink: #0f1a15;
    --accent-soft: #1d2a25;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 17px; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--prose); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 56px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin: 0 0 20px; }
h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 20px; max-width: 16ch; }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 58ch; margin: 0 0 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; padding: 13px 22px; border-radius: 10px; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.cta-note { color: var(--muted); font-size: 15px; }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 12px; }
.section-lede { color: var(--muted); max-width: 60ch; margin: 0 0 32px; }
h3 { font-size: 18px; margin: 0 0 6px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.problem-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 64ch; }
.problem-list li { padding-left: 28px; position: relative; }
.problem-list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

.callout { background: var(--accent-soft); border-radius: 14px; padding: 24px; max-width: 760px; }
.callout p { margin: 0; }
.callout p + p { margin-top: 10px; }

/* Legal pages */
.legal { padding: 56px 0 72px; }
.legal h1 { font-size: clamp(32px, 4.4vw, 44px); max-width: none; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; }
.legal h3 { font-size: 17px; margin: 24px 0 6px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; }
.legal th { font-weight: 600; white-space: nowrap; }
.legal .box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }

/* Placeholders that must be filled before launch */
mark { background: #ffe58a; color: #1b1d21; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
