/* Kaptin marketing site — design system.
 * Cream paper, ink text, saturated brand blue, fruit-stand accents.
 * Theme: [data-theme="light"|"dark"] on <html> (see inline head script).
 * Motion: .reveal fades once via IntersectionObserver; everything
 * freezes under prefers-reduced-motion. No frameworks, no emoji icons.
 */

:root {
  --paper: #fffdf8;
  --paper-soft: #faf6ec;
  --card: #ffffff;
  --ink: #23241f;
  --ink-soft: #4c4d45;
  --muted: #6f6e64;
  --line: #e7e2d3;
  --line-strong: #d8d2bd;
  --brand: #2b7fff;
  --brand-deep: #123ab1;
  --brand-ink: #0b2a6b;
  --brand-soft: #e3efff;
  --coral: #f58220;
  --coral-soft: #ffe9d2;
  --peach: #ffd392;
  --pink: #ed438b;
  --blush: #ffd7e8;
  --lilac: #b9a7e6;
  --lilac-soft: #e7e0f8;
  --green: #1f9d63;
  --green-deep: #146c43;
  --coral-deep: #b25a10;
  --green-soft: #d9f2e3;
  --navy: #101c2e;
  --navy-soft: #1a2c44;
  --amber-bg: #fdf3d7;
  --amber-text: #7a5410;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 44px -22px rgba(35, 36, 31, 0.35);
  --shadow-sm: 0 8px 22px -12px rgba(35, 36, 31, 0.3);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-script: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --measure: 68ch;
}

[data-theme="dark"] {
  --green-deep: #5fd39a;
  --coral-deep: #f5a95c;
  --paper: #121311;
  --paper-soft: #1a1c18;
  --card: #1d1f1b;
  --ink: #f2f1e8;
  --ink-soft: #cfcec2;
  --muted: #a3a29a;
  --line: #33362f;
  --line-strong: #4a4d42;
  --brand-soft: #16294d;
  --coral-soft: #3a2a14;
  --blush: #4a2338;
  --lilac-soft: #2c2742;
  --green-soft: #16382a;
  --amber-bg: #3a2f14;
  --amber-text: #f2c979;
  --shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 8px 22px -12px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--peach); color: var(--ink); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 850; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 750; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--brand-deep); }
[data-theme="dark"] a { color: #7fb0ff; }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.86em; }
.script { font-family: var(--font-script); font-style: italic; font-weight: 400; letter-spacing: 0; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 16px;
  border-radius: 10px; text-decoration: none; transition: top 0.15s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 850; font-size: 1.3rem; letter-spacing: -0.02em; }
.wheel-glyph { flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 10px; white-space: nowrap;
}
.nav-links a:hover { background: var(--paper-soft); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--paper-soft); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 18px; font-size: 0.92rem; border-radius: 12px; }
.theme-btn {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.theme-btn[data-mode="light"] .icon-moon { display: none; }
.theme-btn[data-mode="dark"] .icon-sun { display: none; }
.menu-btn {
  display: none; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 8px 24px 16px; }
.mobile-menu a {
  display: block; padding: 11px 4px; color: var(--ink); text-decoration: none;
  font-weight: 650; border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 750; font-size: 1rem; text-decoration: none;
  padding: 14px 26px; border-radius: 14px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  font-family: inherit; line-height: 1.2;
}
.btn.primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn.primary:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn.dark:hover { transform: translateY(-1px); }
.btn.light { background: #f4f3ec; color: var(--ink); }
.btn.light:hover { transform: translateY(-1px); }
.btn.ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn.ghost:hover { border-color: var(--ink); }
.btn.big { padding: 16px 30px; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---- hero ---- */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.lede { font-size: 1.22rem; color: var(--ink-soft); max-width: 34ch; margin: 0 0 4px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 26px 0 6px; }
.aud-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  text-decoration: none; font-weight: 700; font-size: 0.85rem;
  padding: 6px 14px; border-radius: 999px; color: var(--ink);
  border: 1px solid transparent;
}
.chip:hover { border-color: var(--ink); }
.chip.c1 { background: var(--blush); }
.chip.c2 { background: var(--coral-soft); }
.chip.c3 { background: var(--green-soft); }
.chip.c4 { background: var(--brand-soft); }
.hero-visual { min-width: 0; }
.fine { font-size: 0.85rem; color: var(--muted); margin-top: 18px; }

/* ---- Kaptin window mockup (product-based illustration, not a screenshot) ---- */
.kwin {
  background: var(--card); border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; font-size: 0.85rem;
}
.kwin-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: var(--paper-soft); font-size: 0.75rem; color: var(--muted); font-weight: 600;
}
.kwin-dots { display: flex; gap: 6px; margin-right: 6px; }
.kwin-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.kwin-dots i:first-child { background: var(--coral); }
.kwin-tabs { display: flex; gap: 6px; padding: 10px 14px 0; }
.kwin-tab {
  font-size: 0.78rem; font-weight: 700; padding: 6px 14px;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0;
  color: var(--muted); background: var(--paper);
}
.kwin-tab.active { color: var(--ink); background: var(--card); border-color: var(--line-strong); }
.kwin-body { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); min-height: 280px; }
.kwin-convo { padding: 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.kwin-msg { padding: 9px 12px; border-radius: 12px; line-height: 1.45; font-size: 0.8rem; }
.kwin-msg.user { background: var(--brand-soft); align-self: flex-end; max-width: 92%; border-bottom-right-radius: 4px; }
.kwin-msg.agent { background: var(--paper-soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.kwin-msg .who { display: block; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 3px; }
.kwin-prompt {
  margin-top: auto; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px 8px 8px 12px;
  color: var(--muted); font-size: 0.78rem; background: var(--card);
}
.kwin-prompt .send {
  margin-left: auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.kwin-browser { padding: 14px; background: var(--paper-soft); display: flex; flex-direction: column; gap: 10px; }
.kwin-url {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted);
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px;
}
.kwin-page { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; flex: 1; }
.kwin-page h4 { margin: 0 0 4px; font-size: 1rem; letter-spacing: -0.01em; }
.kwin-page p { margin: 0 0 10px; font-size: 0.75rem; color: var(--muted); }
.kwin-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kwin-card { border: 1px solid var(--line); border-radius: 10px; padding: 8px; font-size: 0.7rem; }
.kwin-card i { display: block; height: 34px; border-radius: 7px; margin-bottom: 6px; }
.kwin-card b { display: block; font-size: 0.72rem; }
.kwin-status { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--muted); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ---- sections ---- */
.section { padding: 72px 0; }
.section.tint { background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: var(--measure); margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.index {
  display: inline-block; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
  color: var(--brand-deep); background: var(--brand-soft); border-radius: 8px;
  padding: 4px 12px; margin-bottom: 16px;
}
[data-theme="dark"] .index { color: #9dc0ff; }
.section-head p.lead2 { font-size: 1.1rem; color: var(--ink-soft); margin: 14px 0 0; max-width: 56ch; }

/* ---- steps (workflow) ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; position: relative;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem;
  display: inline-block; padding: 4px 10px; border-radius: 8px; margin-bottom: 14px;
  background: var(--paper-soft); border: 1px solid var(--line); color: var(--ink-soft);
}
.step:nth-child(1)::before { background: var(--blush); border-color: transparent; color: var(--ink); }
.step:nth-child(2)::before { background: var(--coral-soft); border-color: transparent; color: var(--ink); }
.step:nth-child(3)::before { background: var(--green-soft); border-color: transparent; color: var(--ink); }
.step:nth-child(4)::before { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
[data-theme="dark"] .step:nth-child(4)::before { color: #9dc0ff; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }
.step code { background: var(--paper-soft); padding: 1px 6px; border-radius: 6px; }

/* ---- audience cards ---- */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aud-card {
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); background: var(--card);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.aud-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.aud-scene { height: 148px; position: relative; overflow: hidden; }
.aud-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.aud-1 .aud-scene { background: var(--blush); }
.aud-2 .aud-scene { background: var(--coral-soft); }
.aud-3 .aud-scene { background: var(--green-soft); }
.aud-4 .aud-scene { background: var(--lilac-soft); }
.aud-5 .aud-scene { background: var(--brand-soft); }
.aud-6 .aud-scene { background: var(--peach); }
.aud-scene.aud-1 { background: var(--blush); }
.aud-scene.aud-2 { background: var(--coral-soft); }
.aud-scene.aud-3 { background: var(--green-soft); }
.aud-scene.aud-4 { background: var(--lilac-soft); }
.aud-scene.aud-5 { background: var(--brand-soft); }
.aud-scene.aud-6 { background: var(--peach); }
.aud-body { padding: 20px 22px 24px; }
.aud-body h3 { margin-bottom: 6px; }
.aud-body p { font-size: 0.93rem; color: var(--ink-soft); margin: 0 0 12px; }
.aud-link { font-weight: 750; font-size: 0.9rem; color: var(--brand-deep); }
[data-theme="dark"] .aud-link { color: #9dc0ff; }

/* ---- feature rows ---- */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 36px 0; }
.feat + .feat { border-top: 1px solid var(--line); }
.feat.flip > .feat-copy { order: 2; }
.feat-copy h3 { font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.feat-copy p { color: var(--ink-soft); max-width: 44ch; }
.feat-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.07em; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
  background: var(--paper-soft); border: 1px solid var(--line); color: var(--ink-soft);
}
.feat-visual {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden; min-height: 220px;
}
.feat-visual.pad { padding: 22px; }
.mini-convos { display: flex; flex-direction: column; gap: 8px; }
.mini-convo {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 12px; font-size: 0.85rem; font-weight: 600;
  background: var(--paper);
}
.mini-convo.active { border-color: var(--brand); background: var(--brand-soft); }
.mini-convo .swatch { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.mini-convo .meta { margin-left: auto; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.mini-agents { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-agent {
  font-size: 0.82rem; font-weight: 700; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--paper);
}
.mini-agent.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mini-files { font-family: var(--font-mono); font-size: 0.78rem; line-height: 2; color: var(--ink-soft); }
.mini-files b { color: var(--ink); font-weight: 700; }
.mini-files .dir { color: var(--brand-deep); }
[data-theme="dark"] .mini-files .dir { color: #9dc0ff; }

/* ---- split panel ---- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 6px); overflow: hidden;
}
.split > div { padding: 40px 36px; }
.split-new { background: var(--blush); }
.split-dev { background: var(--navy); color: #f2f1e8; }
.split-dev p { color: #c9cddb; }
.split h3 { font-size: 1.5rem; margin-bottom: 10px; }
.split p { margin: 0; max-width: 40ch; }
.split .btn { margin-top: 22px; }

/* ---- pricing ---- */
.price-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.price-card {
  background: var(--navy); color: #f4f3ec; border-radius: calc(var(--radius) + 6px);
  padding: 40px 36px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.price-card .plan { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--peach); }
.price-line { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 4px; }
.price-now { font-size: 3.2rem; font-weight: 850; letter-spacing: -0.04em; }
.price-was { font-size: 1.3rem; color: #9aa0b4; text-decoration: line-through; }
.price-per { color: #c9cddb; margin: 0 0 18px; }
.price-card ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.price-note { font-size: 0.85rem; color: #9aa0b4; margin: 18px 0 0; }
.price-note a { color: #cdd9ff; }
.price-side h3 { font-size: 1.4rem; margin-bottom: 12px; }
.price-side .q { border-top: 1px solid var(--line); padding: 16px 0; }
.price-side .q b { display: block; margin-bottom: 4px; }
.price-side .q p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }

/* ---- FAQ ---- */
.faq { max-width: 780px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 750; font-size: 1.02rem; list-style: none; display: flex; gap: 12px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--brand); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::before { content: "–"; }
.faq .answer { padding: 0 22px 20px 46px; color: var(--ink-soft); font-size: 0.96rem; }
.faq .answer p { margin: 0 0 0.7em; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---- demo showcase (homepage teaser -> full demo lives on /demo) ---- */
.demo-stage {
  border: 1px solid var(--line-strong); border-radius: calc(var(--radius) + 6px);
  background: var(--navy); color: #f2f1e8; overflow: hidden; box-shadow: var(--shadow);
}
.demo-frame { display: grid; grid-template-columns: 1fr 1.2fr; min-height: 380px; }
.demo-convo { padding: 28px; border-right: 1px solid rgba(255,255,255,0.14); display: flex; flex-direction: column; gap: 12px; }
.demo-bubble { border-radius: 14px; padding: 12px 16px; font-size: 0.88rem; line-height: 1.5; max-width: 95%; }
.demo-bubble.user { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.demo-bubble.agent { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-bottom-left-radius: 4px; }
.demo-bubble.agent b { color: var(--peach); }
.demo-preview { padding: 28px; background: #fdf6ec; color: var(--ink); position: relative; }
.demo-preview .shop-hero { text-align: center; margin-bottom: 18px; }
.demo-preview .shop-hero .kicker2 { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: #b3547c; }
.demo-preview .shop-hero h4 { font-size: 1.9rem; letter-spacing: -0.03em; margin: 6px 0 4px; }
.demo-preview .shop-hero p { font-size: 0.82rem; color: #5b5648; margin: 0 0 12px; }
.demo-preview .shop-btn { display: inline-block; background: #1d4038; color: #fff; font-weight: 750; font-size: 0.82rem; padding: 9px 22px; border-radius: 999px; }
.demo-bouquets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.demo-bouquet { background: #fff; border: 1px solid #ead9c6; border-radius: 12px; padding: 8px; text-align: center; font-size: 0.72rem; }
.demo-bouquet i { display: block; height: 52px; border-radius: 8px; margin-bottom: 6px; }
.demo-bouquet b { display: block; font-size: 0.74rem; }
.demo-bar { display: flex; align-items: center; gap: 14px; padding: 16px 28px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.85rem; color: #c9cddb; flex-wrap: wrap; }
.demo-note { font-style: normal; }
.demo-bar .btn { margin-left: auto; }

/* ---- closing CTA ---- */
.closing {
  background: var(--brand-ink); color: #fff; border-radius: calc(var(--radius) + 10px);
  padding: 64px 48px; text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.closing .wheel-big { width: 76px; height: 76px; margin: 0 auto 22px; display: block; }
.closing h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.03em; margin-bottom: 12px; }
.closing p { color: #cdd9ff; font-size: 1.1rem; margin: 0 auto 28px; max-width: 52ch; }
.closing .cta-row { justify-content: center; }
.closing .btn.ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.closing .btn.ghost:hover { background: rgba(255,255,255,0.12); }

/* ---- footer ---- */
.site-footer { background: var(--navy); color: #c9cddb; padding: 56px 0 32px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { font-size: 0.88rem; margin: 12px 0 0; max-width: 32ch; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #8d93a8; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.92rem; }
.footer-col a { color: #c9cddb; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; color: #8d93a8; flex-wrap: wrap; }

/* ---- page hero (sub-pages) ---- */
.page-hero { padding: 64px 0 32px; }
.page-hero .index { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.035em; margin-bottom: 12px; }
.page-hero p { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; margin: 0; }
.prose { max-width: 720px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose h2 { margin-top: 44px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.numsteps { counter-reset: ns; display: grid; gap: 0; margin: 28px 0; }
.numstep { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.numstep::before {
  counter-increment: ns; content: counter(ns);
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper);
  font-weight: 850; font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center;
}
.numstep h3 { margin-bottom: 6px; }
.numstep p { margin: 0 0 8px; color: var(--ink-soft); font-size: 0.97rem; }
.numstep p:last-child { margin-bottom: 0; }
.numstep code, .prose code { font-family: var(--font-mono); font-size: 0.85em; background: var(--paper-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.callout {
  border: 1px solid var(--line-strong); border-left: 4px solid var(--brand);
  border-radius: 12px; background: var(--card); padding: 18px 22px; margin: 24px 0;
  font-size: 0.95rem; color: var(--ink-soft);
}
.callout.warn { border-left-color: var(--coral); }
.callout b { color: var(--ink); }

/* ---- download page ---- */
.os-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.os-card {
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card);
  padding: 28px 24px; text-align: center;
}
.os-card.recommended { border: 2px solid var(--brand); box-shadow: var(--shadow-sm); }
.os-icon { width: 48px; height: 48px; margin: 0 auto 12px; display: block; }
.os-card h3 { margin-bottom: 4px; }
.os-card .ver { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin: 0 0 16px; }
.os-rec { display: inline-block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--brand-deep); background: var(--brand-soft); border-radius: 999px; padding: 3px 12px; margin-bottom: 12px; }
[data-theme="dark"] .os-rec { color: #9dc0ff; }

/* ---- forms ---- */
.form-card { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); padding: 32px; max-width: 640px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 14px;
  font: inherit; font-size: 0.95rem; background: var(--paper); color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.form-status { margin-top: 14px; font-size: 0.92rem; }
.form-status.ok { color: var(--green-deep); }
.form-status.err { color: var(--coral-deep); }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- wheel spin motif (short feedback only) ---- */
@keyframes wheel-nudge { 0% { transform: rotate(0); } 100% { transform: rotate(90deg); } }
.wheel-spin { animation: wheel-nudge 0.6s ease; transform-origin: center; }

/* ---- responsive ---- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .feat { grid-template-columns: 1fr; gap: 24px; }
  .feat.flip > .feat-copy { order: 0; }
  .price-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .demo-frame { grid-template-columns: 1fr; }
  .demo-convo { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
  .os-cards { grid-template-columns: 1fr; }
  .closing { padding: 48px 28px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .ghost { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { padding: 56px 0 48px; }
  .kwin-body { grid-template-columns: 1fr; }
  .kwin-convo { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps, .aud-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .form-card { padding: 24px 20px; }
  .numstep { grid-template-columns: 40px 1fr; gap: 12px; }
  .numstep::before { width: 36px; height: 36px; font-size: 1rem; }
  .mobile-menu.open { display: block; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
