/* Keyly: young, smart, Dutch-orange accent on clean neutrals. Layout: single column, generous sections, sticky top bar. */
:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #15171c;
  --muted: #5b616e;
  --line: #e4e4dc;
  --accent: #ff5f1f;
  --accent-ink: #ffffff;
  --accent-soft: #fff0e8;
  --ok: #1d7a55;
  --ok-soft: #e7f4ee;
  --warn: #9a5b00;
  --warn-soft: #fff5e0;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111317; --surface: #191c22; --ink: #f1f1ec; --muted: #a2a8b3; --line: #2a2e36;
    --accent: #ff7a3d; --accent-ink: #111317; --accent-soft: #2a1d16;
    --ok: #4fc493; --ok-soft: #15281f; --warn: #f0b04a; --warn-soft: #2a2213;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111317; --surface: #191c22; --ink: #f1f1ec; --muted: #a2a8b3; --line: #2a2e36;
  --accent: #ff7a3d; --accent-ink: #111317; --accent-soft: #2a1d16;
  --ok: #4fc493; --ok-soft: #15281f; --warn: #f0b04a; --warn-soft: #2a2213;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font-body); }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }

/* top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; text-decoration: none; letter-spacing: -0.03em; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav a.hide-sm { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font: 600 1rem var(--font-body); padding: 14px 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .choice:focus-within { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.small { padding: 9px 16px; font-size: .9rem; }

/* hero */
.hero { padding-block: clamp(48px, 9vw, 110px) 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin-top: 20px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .fine { margin-top: 14px; font-size: .88rem; color: var(--muted); }

/* live board mock */
.board { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 10px; }
.board-head { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 6px; }
@media (prefers-reduced-motion: no-preference) { .pulse { animation: pulse 1.6s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .3; } } }
.row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.row b { font-weight: 600; }
.row .meta { font-size: .82rem; color: var(--muted); }
.tag { font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; align-self: start; white-space: nowrap; }
.tag.sent { background: var(--accent-soft); color: var(--accent); }
.tag.view { background: var(--ok-soft); color: var(--ok); }
.tag.new { background: var(--line); color: var(--muted); }

/* sections */
section.band { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.section-head { max-width: 640px; display: grid; gap: 12px; margin-bottom: 36px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.step-n { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--accent); line-height: 1; }

/* pricing */
.price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); font-family: var(--font-body); }
.plan ul { margin: 6px 0 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--muted); }
.plan.featured { border: 2px solid var(--accent); }
.badge { justify-self: start; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.nocure { margin-top: 22px; padding: 16px 20px; border-radius: var(--radius); background: var(--ok-soft); color: var(--ok); font-weight: 500; }

/* faq */
details { border-bottom: 1px solid var(--line); padding-block: 16px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "\2212"; }
details p { margin-top: 10px; color: var(--muted); max-width: 60em; }

.cta-band { background: var(--ink); color: var(--bg); border-radius: 24px; padding: clamp(32px, 6vw, 64px); display: grid; gap: 18px; justify-items: start; }
.cta-band p { color: color-mix(in srgb, var(--bg) 75%, var(--ink)); max-width: 36em; }
footer { padding-block: 40px; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); margin-top: 64px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* form */
.form-shell { max-width: 720px; margin: 0 auto; padding-block: 40px 80px; }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 18px 0 28px; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.step { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label, .legend { font-weight: 600; }
.hint { font-size: .86rem; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
textarea { min-height: 96px; resize: vertical; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); cursor: pointer; display: flex; gap: 10px; align-items: center; }
.choice input { accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.error { color: #c2410c; font-size: .88rem; }
.result { border-radius: 18px; padding: 26px; display: grid; gap: 12px; border: 1px solid var(--line); background: var(--surface); }
.result.good { border: 2px solid var(--ok); }
.result.maybe { border: 2px solid var(--warn); }
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi div { background: var(--bg); border-radius: 12px; padding: 12px; }
.kpi b { display: block; font-family: var(--font-display); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--accent); }
[hidden] { display: none !important; }
