:root {
  --ink: #15302e;
  --ink-2: #2a4a47;
  --muted: #5d6c69;
  --cream: #fbf8f3;
  --sand: #f3ede3;
  --sage: #dfe9e2;
  --sage-2: #c4d8cb;
  --accent: #c95d36;
  --accent-ink: #fff;
  --line: #e4ddd1;
  --card: #fff;
  --ok: #2f7d55;
  --warn: #a8571f;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(21, 48, 46, .06), 0 8px 28px rgba(21, 48, 46, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.6 var(--sans); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; }

/* demo banner */
.demo-bar { background: var(--ink); color: #e9f1ec; font-size: .82rem; text-align: center; padding: 8px 16px; line-height: 1.4; }
.demo-bar a { color: #fff; font-weight: 600; }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: rgba(251, 248, 243, .92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--sage-2), var(--ink) 75%); }
.logo-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.logo-sub { font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; display: block; line-height: 1; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 15px 26px; font: 600 1rem/1 var(--sans); cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(201, 93, 54, .28); }
.btn-primary:hover { background: #b44f2b; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 11px 18px; font-size: .92rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* hero */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.hero-note { font-size: .88rem; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: var(--ink-2); }
.checks li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 7px; }

.plan-card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 26px; border: 1px solid var(--line); }
.plan-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.plan-row { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.plan-row:first-of-type { border-top: 0; }
.plan-dot { width: 40px; height: 40px; border-radius: 12px; background: var(--sage); display: grid; place-items: center; font-weight: 700; color: var(--ink); font-size: .9rem; }
.plan-row b { display: block; font-size: .98rem; }
.plan-row span { font-size: .88rem; color: var(--muted); }

/* sections */
section { padding: 72px 0; }
.band { background: var(--sand); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.step-num { font-family: var(--serif); font-size: 2rem; color: var(--accent); line-height: 1; margin-bottom: 14px; }
.section-head { max-width: 640px; margin-bottom: 36px; }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fit .card h3 { display: flex; align-items: center; gap: 10px; }
.fit ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.fit li { margin: 6px 0; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

.cta-band { background: var(--ink); color: #eef4f0; text-align: center; border-radius: 28px; padding: 56px 24px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9d9d0; }

footer { padding: 40px 0 56px; font-size: .84rem; color: var(--muted); }
footer .wrap { border-top: 1px solid var(--line); padding-top: 28px; }

/* quiz */
.quiz-shell { padding: 40px 0 80px; min-height: 70vh; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.progress span { display: block; height: 100%; background: var(--accent); width: 0; transition: width .35s ease; }
.progress-meta { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-bottom: 30px; }
.q { display: none; animation: fade .3s ease; }
.q.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.q h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.q .hint { color: var(--muted); margin-bottom: 22px; }
.opts { display: grid; gap: 12px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px; font: 500 1rem/1.35 var(--sans); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--ink-2); }
.opt .box { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--sage-2); flex: none; display: grid; place-items: center; }
.opts.multi .opt .box { border-radius: 6px; }
.opt[aria-pressed="true"] { border-color: var(--ink); background: var(--sage); }
.opt[aria-pressed="true"] .box { background: var(--ink); border-color: var(--ink); }
.opt[aria-pressed="true"] .box::after { content: "✓"; color: #fff; font-size: .75rem; font-weight: 700; }
.q-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 12px; }
.link-btn { background: none; border: 0; color: var(--muted); font: 500 .95rem var(--sans); cursor: pointer; padding: 8px 0; }
.link-btn:hover { color: var(--ink); }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .92rem; }
.input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 1rem var(--sans); color: var(--ink); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--sage); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 12px; }
.bmi-live { margin-top: 6px; font-size: .92rem; color: var(--muted); min-height: 1.4em; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: 6px 0 18px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.err { color: #b42318; font-size: .9rem; min-height: 1.3em; margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.secure { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 14px; }

/* thank-you / booking */
.result-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--sage); color: var(--ink); font-weight: 600; font-size: .85rem; padding: 7px 14px; border-radius: 99px; margin-bottom: 18px; }
.result-badge.amber { background: #f6e3cf; color: var(--warn); }
.booker { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); margin-top: 26px; }
.booker-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-bottom: 16px; }
.booker-head small { color: var(--muted); }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
.day { flex: none; min-width: 74px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 8px; text-align: center; cursor: pointer; font: 500 .82rem/1.25 var(--sans); color: var(--ink); }
.day b { display: block; font-size: 1.15rem; font-family: var(--serif); }
.day[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.time { border: 1.5px solid var(--sage-2); background: #fff; border-radius: 10px; padding: 11px 6px; font: 600 .9rem var(--sans); color: var(--ink); cursor: pointer; }
.time:hover { border-color: var(--ink); }
.time[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.booker-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.confirm-card { text-align: center; padding: 28px 12px 8px; }
.confirm-card .big { font-family: var(--serif); font-size: 1.6rem; margin: 6px 0 4px; }
.next-list { text-align: left; margin: 26px auto 0; max-width: 460px; padding-left: 1.2em; color: var(--ink-2); }
.next-list li { margin: 8px 0; }

/* tracking debug overlay */
#vb-debug { position: fixed; right: 12px; bottom: 12px; width: min(360px, calc(100% - 24px)); max-height: 46vh; overflow: auto; background: #0e1b1a; color: #cfe7da; font: 12px/1.45 ui-monospace, Consolas, monospace; border-radius: 12px; padding: 12px 14px; z-index: 99; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); pointer-events: none; }
#vb-debug b { color: #fff; }
#vb-debug .ev { border-top: 1px solid #23403c; padding-top: 4px; margin-top: 4px; word-break: break-word; }
@media (max-width: 620px) { #vb-debug { top: 8px; bottom: auto; max-height: 24vh; opacity: .94; } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .grid-4, .fit { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .hero { padding: 40px 0 52px; }
  section { padding: 52px 0; }
  .grid-3, .grid-4, .fit { grid-template-columns: 1fr; }
  .row-3 { grid-template-columns: 1fr 1fr; }
  .row-3 .field:last-child { grid-column: 1 / -1; }
  .site-head .btn-sm { padding: 9px 14px; font-size: .85rem; }
  .logo-sub { display: none; }
}
.admin { padding: 32px 0 80px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 24px; }
.admin-head h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.kpi b { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.kpi span { font-size: .82rem; color: var(--muted); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 22px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 4px; }
.panel > p.muted { font-size: .88rem; margin-bottom: 16px; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.col { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-width: 0; }
.col-head { display: flex; justify-content: space-between; font-weight: 700; font-size: .88rem; margin-bottom: 10px; }
.col-list { display: grid; gap: 8px; max-height: 520px; overflow-y: auto; }
.lead { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .84rem; }
.lead b { font-size: .95rem; }
.lead .meta { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag { background: var(--sage); border-radius: 6px; padding: 1px 7px; font-size: .72rem; }
.tag.dq { background: #f6e3cf; }
.tag.bk { background: var(--ink); color: #fff; }
.bars { display: grid; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 90px; gap: 12px; align-items: center; font-size: .85rem; }
.bar-track { background: var(--cream); border-radius: 6px; height: 18px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.bar-row .num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hook { border-top: 1px solid var(--line); padding: 10px 0; }
.hook summary { font-size: .88rem; font-weight: 600; }
.hook pre { background: #0e1b1a; color: #cfe7da; font: 12px/1.45 ui-monospace, Consolas, monospace; border-radius: 10px; padding: 12px; overflow-x: auto; margin: 10px 0 0; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; } .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .bar-row { grid-template-columns: 110px 1fr 64px; gap: 8px; font-size: .78rem; } }
