/* Layout: one long scroll; hero pairs the pitch with a live counter-and-phone demo of the rotating QR; sections alternate page and card grounds. Tokens from KOMWEER_BRAND.md */
:root {
  --brand-ink: #1F1C1A; --brand-persimmon: #E8592B; --brand-aloe: #1E5E54; --brand-sand: #F7F4EF;
  --page: #F7F4EF; --card: #FFFFFF; --sunken: #EDE7DE; --line: #E7E2DA; --line-strong: #968C80;
  --text: #1F1C1A; --muted: #5C5650; --action: #1F1C1A; --on-action: #FFFFFF;
  --accent: #C2410C; --secondary: #1E5E54; --secondary-tint: #E3EFEC;
  --success: #1D7348; --success-bg: #E6F4EC; --error: #B42318; --error-bg: #FDECEA;
  --band: #1F1C1A; --on-band: #F7F4EF; --on-band-muted: #C9C0B5;
  --shadow: 0 1px 2px rgba(31,28,26,.06), 0 8px 24px rgba(31,28,26,.08);
  --font-display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --page: #171513; --card: #221F1C; --sunken: #1B1917; --line: #3A3530; --line-strong: #857C72;
  --text: #F4EFE8; --muted: #B3AA9F; --action: #F4EFE8; --on-action: #171513;
  --accent: #FF7A4D; --secondary: #7CC4B4; --secondary-tint: #1C2B28;
  --success: #5FC795; --success-bg: #16271E; --error: #FF8577; --error-bg: #2D1A18;
  --band: #0F0E0D; --on-band: #F4EFE8; --on-band-muted: #B3AA9F;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark; } }
:root[data-theme="dark"] {
  --page: #171513; --card: #221F1C; --sunken: #1B1917; --line: #3A3530; --line-strong: #857C72;
  --text: #F4EFE8; --muted: #B3AA9F; --action: #F4EFE8; --on-action: #171513;
  --accent: #FF7A4D; --secondary: #7CC4B4; --secondary-tint: #1C2B28;
  --success: #5FC795; --success-bg: #16271E; --error: #FF8577; --error-bg: #2D1A18;
  --band: #0F0E0D; --on-band: #F4EFE8; --on-band-muted: #B3AA9F;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { background: var(--page); color: var(--text); font: 400 17px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
a { color: var(--secondary); }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.eyebrow { font: 700 13px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); }
.lede { font-size: 19px; color: var(--muted); max-width: 58ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 16px/1 var(--font-display); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--secondary); color: #FFFFFF; }
:root[data-theme="dark"] .btn-primary:hover { color: #171513; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary:hover { color: #171513; } }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
section { padding-block: 88px; }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 720px; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; color: var(--text); }
.logo svg { height: 30px; width: auto; display: block; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav-links a:hover { color: var(--secondary); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
@media (max-width: 400px) { .nav .btn { padding: 0 14px; font-size: 14px; } .logo svg { height: 26px; } }
@media (max-width: 820px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* hero */
.hero { padding-block: 64px 80px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 14px; color: var(--muted); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

/* demo */
.demo { position: relative; display: grid; grid-template-columns: auto auto; justify-content: center; align-items: end; gap: 22px; min-width: 0; }
.counter { width: 220px; background: var(--brand-ink); color: var(--brand-sand); border-radius: var(--r-lg); padding: 18px 18px 16px; box-shadow: var(--shadow); display: grid; gap: 12px; justify-items: center; }
.counter-top { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #C9C0B5; }
.qr-frame { display: grid; gap: 10px; justify-items: center; }
.qr-frame canvas { width: 156px; height: 156px; background: #FFFFFF; border-radius: 10px; padding: 9px; image-rendering: pixelated; }
.qr-bar { width: 156px; height: 6px; border-radius: 999px; background: #3A3530; overflow: hidden; display: block; }
.qr-bar span { display: block; height: 100%; width: 100%; background: var(--brand-persimmon); border-radius: inherit; transition: width 1s linear; }
.counter-note { font-size: 13px; color: #C9C0B5; text-align: center; font-variant-numeric: tabular-nums; }
.counter-note b { color: var(--brand-sand); }
.phone { width: 252px; background: var(--card); border: 10px solid var(--brand-ink); border-radius: 38px; box-shadow: var(--shadow); overflow: hidden; }
.phone-inner { background: var(--page); min-height: 430px; display: grid; grid-template-rows: auto 1fr auto; }
.card-head { background: var(--merchant, #1E5E54); color: var(--on-merchant, #FFFFFF); padding: 22px 18px 18px; display: grid; gap: 4px; transition: background-color .3s ease; }
.card-head .m-name { font: 800 20px/1.1 var(--font-display); }
.card-head .m-reward { font-size: 13px; opacity: .92; }
.card-body { padding: 16px 16px 6px; display: grid; gap: 14px; align-content: start; }
.count { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.count b { font-size: 40px; font-weight: 800; line-height: 1; }
.count span { color: var(--muted); font-size: 15px; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.slot { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font: 700 12px/1 var(--font-body); color: var(--muted); max-width: 100%; }
.slot.filled { background: var(--merchant, #1E5E54); border-color: transparent; box-shadow: inset 0 0 0 2px rgba(31,28,26,.28); color: var(--on-merchant, #FFFFFF); }
.slot.filled svg { width: 55%; height: 55%; }
.slot.free { border-style: dashed; border-color: var(--text); color: var(--text); font-size: 9px; letter-spacing: .04em; }
.slot.won { background: var(--brand-persimmon); border: 0; color: #1F1C1A; }
.slot.pop { animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.toast { min-height: 40px; font-size: 13px; color: var(--muted); }
.toast.good { color: var(--success); font-weight: 700; }
.card-foot { padding: 10px 16px 16px; display: grid; gap: 10px; }
.card-foot .btn { width: 100%; min-height: 44px; font-size: 15px; }
.powered { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); }
.powered svg { width: 16px; height: 16px; color: var(--text); }
.swatches { display: flex; gap: 8px; align-items: center; justify-content: center; grid-column: 1 / -1; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--text); }
@media (max-width: 560px) {
  .demo { grid-template-columns: 1fr; justify-items: center; }
  .counter { width: 100%; max-width: 300px; grid-template-columns: auto 1fr; justify-items: start; align-items: center; }
  .counter-top { grid-column: 1 / -1; }
  .qr-frame canvas { width: 110px; height: 110px; padding: 7px; } .qr-bar { width: 110px; }
  .counter-note { text-align: left; }
}

/* industries */
.industries { border-block: 1px solid var(--line); background: var(--card); padding-block: 26px; }
.industries .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: center; }
.industries p { font-weight: 700; color: var(--muted); font-size: 15px; }
.industries ul { list-style: none; display: contents; }
.industries li { font: 700 17px/1.2 var(--font-display); }
.industries li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-persimmon); margin-right: 10px; vertical-align: 2px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-ink); color: var(--brand-sand); display: grid; place-items: center; font: 800 18px/1 var(--font-display); }
:root[data-theme="dark"] .step-num { background: var(--brand-sand); color: var(--brand-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step-num { background: var(--brand-sand); color: var(--brand-ink); } }
.step p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* features */
.features { background: var(--card); border-block: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; }
.feature { display: grid; gap: 10px; align-content: start; min-width: 0; }
.feature .ico { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--secondary-tint); color: var(--secondary); display: grid; place-items: center; }
.feature .ico svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* paper vs */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font: 700 13px/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--sunken); }
.compare tbody th { font: 700 16px/1.35 var(--font-display); width: 30%; }
.compare td { color: var(--muted); }
.compare td.k { color: var(--text); }
.compare td.k::before { content: "✓"; color: var(--success); font-weight: 700; margin-right: 8px; }

/* soon */
.soon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.soon-item { border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 20px; display: grid; gap: 6px; min-width: 0; }
.soon-item p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .soon { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .soon { grid-template-columns: 1fr; } }

/* pricing */
.pricing { background: var(--card); border-block: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 18px; grid-template-rows: auto auto 1fr; background: var(--page); min-width: 0; }
.plan.featured { border: 2px solid var(--text); }
.plan-head { display: grid; gap: 6px; }
.plan-tag { justify-self: start; font: 700 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.price { font: 800 44px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.price small { font: 400 15px/1 var(--font-body); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; align-content: start; }
.plan li { padding-left: 26px; position: relative; color: var(--muted); }
.plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--secondary); }
.plans-note { margin-top: 22px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; gap: 12px; max-width: 820px; }
details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
summary { cursor: pointer; list-style: none; padding: 18px 22px; font: 700 18px/1.3 var(--font-display); display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { padding: 0 22px 20px; color: var(--muted); max-width: 68ch; }

/* join */
.join { background: var(--band); color: var(--on-band); }
.join-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.join h2 { color: var(--on-band); }
.join .lede { color: var(--on-band-muted); }
.join .eyebrow { color: #7CC4B4; }
.join-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: var(--on-band-muted); }
.join-points li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-persimmon); margin-right: 12px; }
.form-card { background: var(--card); color: var(--text); border-radius: var(--r-xl); padding: 30px; display: grid; gap: 18px; box-shadow: var(--shadow); min-width: 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--sunken); color: var(--text); font: 400 16px var(--font-body); }
.field input:focus, .field select:focus { outline: 3px solid var(--secondary); outline-offset: 1px; border-color: var(--secondary); }
.field .err { color: var(--error); font-size: 14px; min-height: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--secondary); }
.form-card .btn { width: 100%; }
.done { display: grid; gap: 14px; }
.done h3 { font-size: 24px; }
.msg-box { background: var(--sunken); border-radius: var(--r-sm); padding: 14px; font-size: 14px; white-space: pre-wrap; color: var(--text); }
@media (max-width: 920px) { .join-grid { grid-template-columns: 1fr; gap: 36px; } }

/* footer */
footer { background: var(--band); color: var(--on-band-muted); border-top: 1px solid #3A3530; padding-block: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
footer .logo { color: var(--on-band); }
footer .logo svg { height: 26px; }
footer p { font-size: 14px; }
footer a { color: var(--on-band); }

/* cookie notice */
.cookie { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; max-width: 640px; margin-inline: auto; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.cookie p { flex: 1 1 260px; font-size: 15px; min-width: 0; }
.cookie .btns { display: flex; gap: 8px; }
.cookie .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* "What is Komweer?": the answer-first definition under the hero (SEO_AEO_PLAN.md section 3) */
.what-is { padding-block: 64px 0; }
.what-is h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 12px; }
.what-is p { font-size: 19px; line-height: 1.55; max-width: 70ch; }

/* Inner pages (/pricing, /compare) */
.page-hero { padding-block: 64px 32px; }
.page-hero .wrap { display: grid; gap: 18px; }
.page-hero .wrap > * { max-width: 860px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); }
.page-tight { padding-block: 56px; }
.updated { margin-top: 4px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 760px; }
.check-list li { position: relative; padding-left: 30px; line-height: 1.5; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--secondary); border-bottom: 3px solid var(--secondary); transform: rotate(-45deg); }
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.compare caption { text-align: left; padding: 16px 18px 4px; font-size: 14px; color: var(--muted); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font: 700 16px var(--font-display); }
.compare tbody th { font-weight: 700; color: var(--muted); width: 18%; }
.compare th:nth-child(2), .compare td:nth-child(2) { background: var(--secondary-tint); }
.compare-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.compare-fit h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 18px; }
/* Closing call-to-action band on inner pages */
.cta-band { background: var(--band); color: var(--on-band); }
.cta-band h2 { color: var(--on-band); }
.cta-band .lede { color: var(--on-band-muted); }
.cta-band .btn-primary { background: var(--on-band); color: var(--band); }
.cta-band .btn-primary:hover { background: #FFFFFF; color: var(--band); }
.cta-band .btn-ghost { color: var(--on-band); border-color: var(--on-band-muted); }
.cta-band .btn + .btn { margin-left: 8px; }
