/* 245D Ready · the 245D Readiness Check. Plum on near-white, Inter. */
:root {
  --plum: #6b3a75; --plum-600: #5b2a64; --plum-700: #4a2152; --plum-50: #f7f1f8; --plum-100: #efe3f1;
  --ink: #1c1a1f; --ink-2: #3d3944; --muted: #736e7a; --line: #e7e3ea; --line-2: #f1eef3;
  --surface: #ffffff; --bg: #faf9fb;
  --green: #157347; --green-bg: #e8f5ee; --amber: #9a5b00; --amber-bg: #fdf3e2; --red: #b42318; --red-bg: #fdecea;
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--plum); }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); }
.muted { color: var(--muted); }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.top-note { font-size: 14px; color: var(--muted); }

/* buttons */
.btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; color: #fff; background: var(--plum);
  padding: 13px 22px; border-radius: 10px; transition: background .15s ease, transform .15s ease; }
.btn:hover { background: var(--plum-600); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .ans:focus-visible, .btn-link:focus-visible { outline: 3px solid var(--plum-100); outline-offset: 2px; }
.btn-lg { font-size: 17px; padding: 15px 26px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: default; }
.btn-ghost { background: var(--surface); color: var(--plum); border: 1.5px solid var(--plum-100); }
.btn-ghost:hover { background: var(--plum-50); }
.btn-link { appearance: none; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; padding: 8px 0; }
.btn-link:hover { color: var(--plum); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cta-row.center { justify-content: center; margin-top: 40px; }

/* hero */
.hero { padding: 64px 0 56px; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line-2); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero h1 { font-size: 46px; font-weight: 800; margin-top: 12px; }
.lede { font-size: 19px; color: var(--ink-2); margin-top: 18px; max-width: 36em; }
.hero-meta { margin-top: 16px; font-size: 14px; color: var(--muted); }
.hero-meta span { margin: 0 6px; }

/* sample report card */
.sample { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 18px 40px -24px rgba(74, 33, 82, .35); }
.sample figcaption { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sample-score { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.sample-band { font-size: 20px; font-weight: 800; color: var(--amber); }
.sample-sub { font-size: 14px; color: var(--muted); }
.sample-gaps { list-style: none; margin-top: 6px; }
.sample-gaps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.sample-gaps li:last-child { border-bottom: 0; padding-bottom: 0; }
.sample-gaps b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.sample-gaps em { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* score ring */
.ring { --p: 0; --c: var(--plum); flex: none; width: 84px; height: 84px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line-2) 0); display: grid; place-items: center; }
.ring > span { width: 66px; height: 66px; border-radius: 50%; background: var(--surface); display: flex; flex-wrap: wrap; align-content: center; align-items: baseline; justify-content: center; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.ring small { font-size: 13px; font-weight: 700; margin-left: 1px; }
.ring.big { width: 148px; height: 148px; }
.ring.big > span { width: 118px; height: 118px; font-size: 44px; }
.ring.big small { font-size: 20px; }

/* chips */
.chip { flex: none; display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; line-height: 1.4; white-space: nowrap; }
.chip-no { color: var(--red); background: var(--red-bg); }
.chip-unsure { color: var(--amber); background: var(--amber-bg); }
.chip-partly { color: var(--plum-700); background: var(--plum-100); }
.chip-yes { color: var(--green); background: var(--green-bg); }

/* sections */
.band, .covers, .about { padding: 64px 0; }
.band h2, .covers h2 { font-size: 30px; font-weight: 800; text-align: center; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.tile .num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--plum-50); color: var(--plum); font-weight: 800; font-size: 15px; }
.tile h3 { font-size: 19px; font-weight: 700; margin-top: 14px; }
.tile p { color: var(--ink-2); margin-top: 8px; font-size: 16px; }
.covers { background: var(--surface); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.cols4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 32px; }
.cols4 h3 { font-size: 15px; font-weight: 700; color: var(--plum); text-transform: uppercase; letter-spacing: .06em; }
.cols4 ul { list-style: none; margin-top: 12px; }
.cols4 li { padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 16px; color: var(--ink-2); }
.about-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about h2 { font-size: 30px; font-weight: 800; margin-top: 10px; }
.about p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.ticks { list-style: none; }
.ticks li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); font-size: 16px; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 18px; width: 12px; height: 7px; border-left: 2.5px solid var(--plum); border-bottom: 2.5px solid var(--plum); transform: rotate(-45deg); }

/* the check */
.stage { padding: 40px 0 72px; min-height: 70vh; }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--plum); border-radius: 999px; transition: width .25s ease; }
.step-count { margin-top: 12px; font-size: 14px; color: var(--muted); font-weight: 600; }
.qcard { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.qcard .eyebrow { margin-bottom: 10px; }
.qcard h2 { font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.qhelp { margin-top: 10px; color: var(--muted); font-size: 15px; }
.answers { display: grid; gap: 10px; margin-top: 24px; }
.ans { appearance: none; text-align: left; font: inherit; font-size: 17px; font-weight: 600; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 15px 18px; cursor: pointer; display: flex; align-items: center; gap: 12px;
  transition: border-color .12s ease, background .12s ease; }
/* hover only where there is a real pointer: on phones a tap leaves :hover stuck on the next question's answer */
@media (hover: hover) { .ans:hover { border-color: var(--plum); background: var(--plum-50); } }
.ans .dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); }
.ans.on { border-color: var(--plum); background: var(--plum-50); }
.ans.on .dot { border-color: var(--plum); background: radial-gradient(var(--plum) 0 4px, transparent 5px); }
.qnav { display: flex; justify-content: space-between; margin-top: 16px; min-height: 40px; }

/* gate */
.gate-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.gate-card h2 { font-size: 30px; font-weight: 800; margin-top: 8px; }
.gate-card > .muted { margin-top: 8px; font-size: 16px; }
#leadForm { margin-top: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.field input:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px var(--plum-100); }
.field input.bad { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 14px; font-size: 13px; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--plum); }
.form-error { color: var(--red); font-size: 14px; font-weight: 600; min-height: 0; margin-bottom: 10px; }
.form-error:empty { display: none; }
.fine { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
#gateBack { display: block; margin: 14px auto 0; }

/* results */
.res-head { text-align: center; }
.res-head h1 { font-size: 34px; font-weight: 800; margin-top: 8px; }
.res-score { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 24px; }
.res-band { font-size: 24px; font-weight: 800; }
.res-band.strong { color: var(--green); } .res-band.some { color: var(--amber); } .res-band.risk { color: var(--red); }
.res-text { max-width: 34em; margin: 0 auto; color: var(--ink-2); font-size: 17px; }
.res-meta { font-size: 14px; color: var(--muted); }
.sec-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.sec-score { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.sec-score .row { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; }
.sec-score .bar { height: 6px; background: var(--line-2); border-radius: 999px; margin-top: 10px; overflow: hidden; }
.sec-score .bar i { display: block; height: 100%; background: var(--plum); border-radius: 999px; }
.res-h2 { font-size: 22px; font-weight: 800; margin-top: 40px; }
.res-h2 small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.gap { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--r); padding: 20px; margin-top: 14px; }
.gap.a-unsure { border-left-color: var(--amber); } .gap.a-partly { border-left-color: var(--plum); }
.gap-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gap h3 { font-size: 18px; font-weight: 700; }
.gap .cite { font-size: 13px; font-weight: 600; color: var(--plum); margin-top: 6px; }
.gap p { margin-top: 10px; font-size: 15.5px; color: var(--ink-2); }
.gap .lbl { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.gap .cc { background: var(--plum-50); border-radius: var(--r-sm); padding: 10px 12px; color: var(--plum-700); }
.passed { list-style: none; margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 16px; }
.passed li { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.passed li:last-child { border-bottom: 0; }
.cta-box { margin-top: 40px; background: var(--plum-700); color: #fff; border-radius: var(--r-lg); padding: 28px; }
.cta-box h2 { font-size: 24px; font-weight: 800; }
.cta-box p { margin-top: 8px; color: #eadcee; }
.cta-box .cta-row { margin-top: 20px; }
.cta-box .btn { background: #fff; color: var(--plum-700); }
.cta-box .btn:hover { background: var(--plum-50); }
.cta-box .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.cta-box .btn-ghost:hover { background: rgba(255,255,255,.08); }
.cta-box .done { margin-top: 16px; font-weight: 600; color: #fff; }
.res-tools { display: flex; justify-content: center; gap: 18px; margin-top: 24px; flex-wrap: wrap; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 36px; font-size: 13px; color: var(--muted); }
.foot p + p { margin-top: 10px; }
.foot-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* tablets */
@media (max-width: 980px) {
  .hero-in, .about-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero h1 { font-size: 38px; }
  .cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* phones */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top-note { display: none; }
  .hero { padding: 36px 0 40px; }
  .hero h1 { font-size: 31px; }
  .lede { font-size: 17px; }
  .cta-row .btn { width: 100%; }
  .band, .covers, .about { padding: 44px 0; }
  .band h2, .covers h2, .about h2 { font-size: 25px; }
  .three, .cols4, .sec-scores { grid-template-columns: minmax(0, 1fr); }
  .cols4 { gap: 20px; }
  .stage { padding: 24px 0 48px; }
  .qcard, .gate-card { padding: 22px 18px; }
  .qcard h2 { font-size: 20px; }
  .gate-card h2 { font-size: 25px; }
  .res-head h1 { font-size: 27px; }
  .cta-box { padding: 22px 18px; }
}

/* print / save as PDF: the report only */
@media print {
  .top, .foot, .cta-box, .res-tools, #landing, #quiz, #gate { display: none !important; }
  body { background: #fff; }
  .stage { padding: 0; min-height: 0; }
  .gap, .sec-score, .passed { break-inside: avoid; }
  .ring { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
