:root {
  --ink: #1b2a41;
  --ink-2: #4a5872;
  --paper: #ffffff;
  --mist: #eef2f7;
  --line: #d7dee8;
  --signal: #1f5eff;
  --signal-ink: #1747c4;
  --pass: #1e8e5a;
  --warn: #b97c06;
  --fail: #c4362f;
  --skip: #8a94a6;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Source Sans 3', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--body);
}
.wrap { max-width: 660px; margin: 0 auto; padding: 32px 16px 64px; }
.view[hidden] { display: none; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 7vw, 2.9rem); font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 12px; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.opt { font-weight: 400; color: var(--ink-2); font-size: .9em; }
.hint { display: block; font-weight: 400; color: var(--ink-2); font-size: .875rem; margin-top: 2px; }

/* Forms */
.form { display: grid; gap: 14px; margin: 24px 0; }
.form label { display: block; font-weight: 600; }
.form label[hidden] { display: none; }
.form input:not([type=checkbox]) {
  font: inherit; color: inherit; width: 100%;
  display: block; margin-top: 6px;
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper);
}
.form input:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--signal) 45%, transparent); outline-offset: 2px; border-color: var(--signal);
}
.row2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .85rem; color: var(--ink-2); }
.consent input { flex: none; margin-top: 3px; width: 18px; height: 18px; }
.err { color: var(--fail); font-weight: 600; margin: 0; min-height: 0; }
.err:empty { display: none; }

.btn {
  display: inline-block; text-align: center; text-decoration: none; cursor: pointer;
  font: 700 1.08rem var(--body); color: #fff; background: var(--signal);
  border: 0; border-radius: 8px; padding: 15px 22px; width: 100%;
}
.btn:hover { background: var(--signal-ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

.checks-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks-list li { padding-left: 16px; border-left: 3px solid var(--line); color: var(--ink-2); }
.checks-list b { display: block; color: var(--ink); }

/* Progress */
.progress { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 4px; }
.progress li { display: flex; gap: 12px; align-items: center; padding: 12px 0; color: var(--skip); border-bottom: 1px solid var(--mist); }
.progress li::before {
  content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line);
}
.progress li.running { color: var(--ink); }
.progress li.running::before { border-color: var(--signal); border-right-color: transparent; animation: spin .8s linear infinite; }
.progress li.done { color: var(--ink); }
.progress li.done::before { background: var(--pass); border-color: var(--pass);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .progress li.running::before { animation: none; border-right-color: var(--signal); } }

/* Score: the one bold element */
.scorehead { display: flex; align-items: center; gap: 22px; margin: 8px 0 18px; }
.bignum { font-family: var(--display); font-weight: 800; line-height: .85; font-size: clamp(5rem, 24vw, 7.5rem); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.bignum small { font-size: .26em; font-weight: 700; letter-spacing: 0; color: var(--ink-2); margin-left: 2px; }
.bignum.s-fail { color: var(--fail); } .bignum.s-warn { color: var(--warn); } .bignum.s-pass { color: var(--pass); }
.grade { font-family: var(--display); font-size: 1.4rem; margin: 0 0 4px; }

.bars { display: grid; gap: 12px; margin: 0 0 28px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-weight: 600; }
.bar .track { grid-column: 1 / -1; height: 10px; background: var(--mist); border-radius: 5px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 5px; transform-origin: left; animation: grow .9s cubic-bezier(.2,.7,.2,1) both; }
.bar .num { font-variant-numeric: tabular-nums; }
.bar.na { color: var(--skip); font-weight: 400; }
@keyframes grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .bar .fill { animation: none; } }
.f-pass { background: var(--pass); } .f-warn { background: var(--warn); } .f-fail { background: var(--fail); }

/* Gate */
.gate { background: var(--mist); border-radius: 12px; padding: 22px 18px 4px; margin-top: 8px; }
.gate .form { margin: 16px 0; }

/* Report */
.rephead { border-bottom: 2px solid var(--ink); margin-bottom: 28px; }
.block { margin: 0 0 36px; }
.priorities { padding-left: 1.3em; margin: 0; display: grid; gap: 16px; }
.priorities li::marker { font-family: var(--display); font-weight: 800; color: var(--signal); }
.priorities b { display: block; }
.priorities .fix { color: var(--ink-2); margin: 4px 0 0; }

.comp { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.comp th, .comp td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.comp th { font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.comp td:not(:first-child), .comp th:not(:first-child) { text-align: right; white-space: nowrap; }
.comp tr.me td { font-weight: 700; background: color-mix(in srgb, var(--signal) 7%, transparent); }

.ai-card { border-left: 3px solid var(--line); padding: 4px 0 4px 14px; margin: 0 0 18px; }
.ai-card.yes { border-color: var(--pass); }
.ai-card.no { border-color: var(--fail); }
.ai-card h3 { margin-bottom: 2px; }
.ai-card q { display: block; color: var(--ink-2); font-size: .95rem; quotes: none; }

.cat { margin: 0 0 36px; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
.cat-head h2 { margin: 0; }
.cat-head span { font-family: var(--display); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.item { display: grid; grid-template-columns: 22px 1fr; gap: 0 12px; padding: 14px 0; border-bottom: 1px solid var(--mist); }
.mark { width: 22px; height: 22px; border-radius: 50%; margin-top: 2px; display: grid; place-items: center; color: #fff; font: 800 13px/1 var(--body); }
.m-pass { background: var(--pass); } .m-warn { background: var(--warn); } .m-fail { background: var(--fail); } .m-skip { background: var(--skip); }
.item h3 { font-family: var(--body); font-size: 1.02rem; margin: 0 0 2px; }
.item p { margin: 0 0 4px; }
.item details { font-size: .95rem; color: var(--ink-2); }
.item summary { cursor: pointer; color: var(--signal-ink); font-weight: 600; }
.item details p { margin: 6px 0 0; }

/* Video + booking */
.watch h2 { margin-bottom: 14px; }
.player { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--ink); margin-bottom: 16px; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #1b2a41; display: grid; place-items: center; }
.facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facade .play { position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--signal); box-shadow: 0 6px 24px rgba(0,0,0,.35); transition: transform .15s ease; }
.facade .play::after { content: ''; position: absolute; left: 31px; top: 23px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #fff; }
.facade:hover .play, .facade:focus-visible .play { transform: scale(1.08); }
.facade:focus-visible { outline: 3px solid var(--signal); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .facade .play { transition: none; } }
.player .demo-video { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; color: #d6deea; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.book-embed { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.book-embed iframe { display: block; width: 100%; height: 720px; border: 0; }

.cta { background: var(--ink); color: #fff; border-radius: 12px; padding: 26px 20px; }
.cta p { color: #d6deea; }
.cta .muted { color: #aab6c9; margin: 14px 0 0; word-break: break-all; }
.cta .btn { margin-top: 6px; }
.consent[hidden] { display: none !important; }

/* Thank-you / VSL page */
.thanks { text-align: center; }
.thanks h1 { font-size: clamp(1.75rem, 6.4vw, 2.5rem); text-wrap: balance; margin: 0 0 22px; }
.sent { color: var(--ink-2); font-size: 1.05rem; max-width: 46ch; margin: 0 auto 18px; }
.sent b { color: var(--pass); }
.thanks .player { margin-bottom: 22px; text-align: left; }
.btn-big { display: grid; gap: 4px; padding: 18px 20px; font-family: var(--display); font-size: clamp(1.2rem, 4.6vw, 1.5rem); line-height: 1.15; }
.btn-big small { font-family: var(--body); font-weight: 400; font-size: 1rem; line-height: 1.3; opacity: .92; }
.thanks .book-embed { text-align: left; }
.privacy { margin-top: 18px; }
