/* OmniforceAI AI-readiness assessment. Mobile first. */


:root {
  --bg: #1b0a2e;
  --bg-2: #291140;
  --surface: rgba(71, 50, 90, 0.34);
  --surface-strong: rgba(71, 50, 90, 0.6);
  --line: rgba(167, 139, 250, 0.18);
  --line-strong: rgba(167, 139, 250, 0.45);
  --violet: #6d28d9;
  --violet-light: #8b5cf6;
  --violet-soft: #a78bfa;
  --pink: #e7b3da;
  --rate-early: #f08b7f;
  --rate-building: #e3b65e;
  --rate-ready: #7fd4a3;
  --text: #faf8f5;
  --muted: #c7b9d6;
  --faint: #9a8aad;
  --serif: "Times New Roman", Times, serif;
  --sans: "Times New Roman", Times, serif;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fade: 700ms;
  --maxw: 640px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--violet-soft); text-decoration: underline; text-decoration-color: rgba(167, 139, 250, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--violet); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip:focus { top: 16px; }

/* Background drift */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, var(--bg-2) 0%, var(--bg) 60%); }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; will-change: transform; }
.orb-a { width: 60vmax; height: 60vmax; left: -20vmax; top: -25vmax;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.55), rgba(109, 40, 217, 0) 70%);
  animation: drift-a 48s ease-in-out infinite alternate; }
.orb-b { width: 50vmax; height: 50vmax; right: -22vmax; bottom: -20vmax;
  background: radial-gradient(circle, rgba(231, 179, 218, 0.22), rgba(231, 179, 218, 0) 70%);
  animation: drift-b 60s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate(0, 0); } to { transform: translate(8vmax, 6vmax); } }
@keyframes drift-b { from { transform: translate(0, 0); } to { transform: translate(-7vmax, -8vmax); } }

/* Layout */
.top, main, .foot { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.top { padding-top: 22px; padding-bottom: 8px; }
main { flex: 1; display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 48px; }

.logo img { width: 128px; }
.logo { display: inline-block; line-height: 0; }
.logo-small img { width: 104px; opacity: 0.8; }

/* Screens */
.screen { animation: rise var(--fade) var(--ease) both; }
.screen[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Hero */
.screen-hero { padding-top: clamp(32px, 9vh, 96px); padding-bottom: 24px; }
.hero-title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.85rem, 6.6vw, 2.9rem);
  line-height: 1.14; letter-spacing: -0.01em; margin: 0 0 20px; text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--violet-soft); }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 34em; margin: 0 0 36px; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-note { margin: 0; color: var(--faint); font-size: 0.95rem; }

/* Buttons */
.btn {
  font: inherit; font-weight: 500; cursor: pointer; border: 0; border-radius: 999px; text-decoration: none; display: inline-block;
  padding: 15px 26px; line-height: 1.2; color: #fff; background: var(--violet);
  transition: background 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease);
  box-shadow: 0 8px 30px rgba(109, 40, 217, 0.25);
}
.btn:hover { background: #7a35ea; box-shadow: 0 10px 36px rgba(139, 92, 246, 0.35); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-block { width: 100%; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--line-strong); box-shadow: none; }
.btn-secondary:hover { background: var(--surface); box-shadow: none; }
.btn[hidden] { display: none; }
.link-btn {
  font: inherit; background: none; border: 0; padding: 4px 0; color: var(--muted); cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(199, 185, 214, 0.35); text-underline-offset: 3px;
}
.link-btn:hover { color: var(--text); }
.link-btn[hidden] { display: none; }

/* Progress */
.progress { margin: 12px 0 36px; }
.progress-row { display: flex; justify-content: space-between; align-items: baseline; min-height: 28px; margin-bottom: 10px; }
.progress-text { color: var(--faint); font-size: 0.9rem; margin-left: auto; }
.progress-track { height: 3px; background: rgba(167, 139, 250, 0.15); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--violet-light)); border-radius: 2px;
  transition: width 600ms var(--ease); }

/* Question */
.eyebrow { margin: 0 0 10px; color: var(--violet-soft); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.q-text { font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 5.2vw, 1.9rem); line-height: 1.25; margin: 0 0 26px; }
.question.is-leaving { animation: sink 260ms var(--ease) both; }
@keyframes sink { to { opacity: 0; transform: translateY(-6px); } }
.question.is-entering { animation: rise 520ms var(--ease) both; }

.options { display: grid; gap: 10px; }
.option {
  font: inherit; text-align: left; color: var(--text); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 18px; line-height: 1.4;
  transition: border-color 300ms var(--ease), background 300ms var(--ease), transform 300ms var(--ease);
}
.option:hover { border-color: var(--line-strong); background: var(--surface-strong); }
.option[aria-pressed="true"] { border-color: var(--violet-light); background: rgba(109, 40, 217, 0.28); }

/* Details */
.details-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 6vw, 2.3rem); line-height: 1.15; margin: 0 0 12px; }
.details-body { color: var(--muted); margin: 0 0 30px; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.95rem; color: var(--muted); }
input[type="email"], input[type="text"], input[type="tel"], textarea, select {
  font: inherit; color: var(--text); width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px;
  transition: border-color 300ms var(--ease), background 300ms var(--ease);
  appearance: none; -webkit-appearance: none;
}
input::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--violet-light); background: var(--surface-strong); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--pink); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg);
}
select { padding-right: 40px; }
select option { background: var(--bg-2); color: var(--text); }
.field-error { margin: 0; color: var(--pink); font-size: 0.9rem; }
.field-error[hidden] { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 0.95rem; line-height: 1.5; cursor: pointer; }
.check input { margin: 4px 0 0; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--violet-light); }
.turnstile { min-height: 0; }
.turnstile:not(:empty) { min-height: 65px; }
.form-note { margin: 0; font-size: 0.9rem; color: var(--faint); text-align: center; }

/* Results */
.overall { display: grid; gap: 24px; margin: 8px 0 40px; align-items: center; }
.ring { position: relative; width: 148px; height: 148px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(167, 139, 250, 0.15); stroke-width: 6; }
.ring-fill { fill: none; stroke: var(--violet-light); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 339.292; stroke-dashoffset: 339.292; transition: stroke-dashoffset 1400ms var(--ease); }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 3rem; line-height: 1; }
.ring-num small { display: block; font-family: var(--sans); font-size: 0.78rem; color: var(--faint); margin-top: 6px; text-align: center; }
.overall-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 6vw, 2.3rem); line-height: 1.15; margin: 0 0 10px; }
.overall-title em { font-style: italic; color: var(--violet-soft); }
.overall-readout { color: var(--muted); margin: 0; }
.email-note { margin: 14px 0 0; font-size: 0.92rem; color: var(--faint); }
.email-note[hidden] { display: none; }
.report-row { margin-top: 18px; }
.report-error { margin: 8px 0 0; color: var(--pink); font-size: 0.92rem; }
.report-error[hidden] { display: none; }



.cat-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }

.scoring-note { margin: 22px 0 0; color: var(--faint); font-size: 0.9rem; }

.categories { display: grid; gap: 14px; }
.cat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px;
  animation: rise 700ms var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms);
}
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.cat-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; margin: 0; }
.cat-score { font-family: var(--serif); font-size: 1.25rem; color: var(--text); white-space: nowrap; }
.cat-score small { font-family: var(--sans); font-size: 0.8rem; color: var(--faint); margin-left: 4px; }
.cat-bar { height: 3px; background: rgba(167, 139, 250, 0.15); border-radius: 2px; overflow: hidden; margin-bottom: 10px; }
.cat-bar span { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--violet-light); transition: width 1200ms var(--ease); }
.cat.band-early .cat-bar span { background: var(--rate-early); }
.cat.band-building .cat-bar span { background: var(--rate-building); }
.cat.band-ready .cat-bar span { background: var(--rate-ready); }
.band { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet-soft); }
.cat.band-early .band { color: var(--rate-early); }
.cat.band-building .band { color: var(--rate-building); }
.cat.band-ready .band { color: var(--rate-ready); }
.cat-readout { margin: 10px 0 16px; color: var(--muted); }
.cat-actions-label { margin: 0 0 8px; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.cat-actions { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cat-actions li { position: relative; padding-left: 20px; }
.cat-actions li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 8px; height: 1.5px; background: var(--violet-soft); }


/* Landing page sections */
.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 5vw, 1.9rem); line-height: 1.25; margin: 0 0 18px; }
.value, .who, .proof, .cta { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.who-text { margin: 0 0 16px; color: var(--muted); }
.who-note { margin: 14px 0 0; color: var(--faint); font-size: 0.95rem; }
.who-note[hidden] { display: none; }
.value-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: v; }
.value-list li {
  position: relative; padding: 18px 20px 18px 56px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); counter-increment: v;
}
.value-list li::before {
  content: counter(v); position: absolute; left: 20px; top: 18px; width: 24px; height: 24px;
  border-radius: 50%; display: grid; place-items: center; font-size: 0.85rem;
  color: var(--text); background: var(--violet); line-height: 1;
}
.value-list h3 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; margin: 0 0 6px; line-height: 1.3; }
.value-list p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.stats { display: grid; gap: 12px; margin-bottom: 16px; }
.stat { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat-figure { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--violet-soft); margin: 0 0 6px; }
.stat-text { margin: 0; }
.stat-source { margin: 6px 0 0; color: var(--faint); font-size: 0.85rem; }
.stats-line { margin: 0 0 18px; color: var(--muted); }
.bio { margin: 0; color: var(--muted); }
.quotes { display: grid; gap: 12px; margin-top: 18px; }
.quotes:empty { display: none; }
.quote { margin: 0; padding: 18px 20px; border-left: 2px solid var(--violet-light); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.quote p { margin: 0 0 8px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; }
.quote footer { color: var(--faint); font-size: 0.9rem; }

.cta { text-align: left; }
.cta-points, .who-list { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.who-list { margin-bottom: 0; }
.cta-points li, .who-list li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 0.92rem; }

/* Free-text question */
.text-answer { display: grid; gap: 14px; }
.text-answer[hidden] { display: none; }
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.text-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Results: insights, next step, proof */
.insights { margin: 0 0 24px; }
.insight-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: ins; }
.insight {
  position: relative; padding: 18px 20px 18px 56px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); counter-increment: ins;
  animation: rise 700ms var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms);
}
.insight::before {
  content: counter(ins); position: absolute; left: 20px; top: 18px; width: 24px; height: 24px;
  border-radius: 50%; display: grid; place-items: center; font-size: 0.85rem;
  color: var(--text); background: var(--violet); line-height: 1;
}
.insight .eyebrow { margin-bottom: 6px; }
.insight-body { margin: 0 0 6px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; }
.insight-detail { margin: 0; color: var(--muted); font-size: 0.98rem; }

.next-step {
  margin: 0 0 40px; padding: 24px 20px; border-radius: var(--radius);
  background: rgba(109, 40, 217, 0.22); border: 1px solid var(--line-strong);
  animation: rise 700ms var(--ease) both; animation-delay: 300ms;
}
.next-step .eyebrow { margin-bottom: 8px; }
.next-step-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 5vw, 1.8rem); line-height: 1.25; margin: 0 0 10px; }
.next-step-text { margin: 0 0 20px; color: var(--muted); }
.next-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.next-step-actions .btn { text-decoration: none; display: inline-block; }
.next-step-secondary { color: var(--muted); font-size: 0.95rem; }
.next-step-secondary[hidden] { display: none; }

.detail .section-title { margin-bottom: 14px; }
.results-proof { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.results-proof-link { margin: 18px 0 0; }

/* Footer */
.foot { padding-top: 28px; padding-bottom: 36px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.foot-links { display: flex; gap: 22px; font-size: 0.95rem; }
.foot-links a { color: var(--muted); }

/* Larger screens */
@media (min-width: 640px) {
  body { font-size: 19px; }
  .top { padding-top: 32px; }
  .screen-hero { padding-top: clamp(48px, 12vh, 120px); }
  .overall { grid-template-columns: 148px 1fr; gap: 32px; }
  .foot { flex-direction: row; justify-content: space-between; align-items: center; }
  .cat { padding: 26px 26px; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb { animation: none; }
  .screen, .cat, .insight, .next-step, .question.is-entering, .question.is-leaving { animation: none; }
  .progress-fill, .ring-fill, .cat-bar span, .btn, .option, input, textarea, select { transition: none; }
}

/* Print and screenshots: nothing should be mid-animation or invisible. */
@media print {
  .bg, .orb { display: none; }
  body { background: #fff; color: #111; }
  .screen, .cat, .insight, .next-step, .question { animation: none !important; opacity: 1 !important; transform: none !important; }
  .cat-bar span { transition: none; }
  .rs-hero, .rs-means, .rs-next, .rs-download, .rs-panel, .rs-light-card { animation: none !important; opacity: 1 !important; transform: none !important; box-shadow: none !important; }
  .rs-panel, .rs-next { background: none !important; color: #111 !important; border: 1px solid #bbb; }
  .rs-panel .rs-h2, .rs-next .rs-h2, .rs-start, .rs-next-text, .rs-next .next-step-secondary { color: #111 !important; }
  .rs-next .btn, .rs-download .btn, .rs-hero .btn, #progress-bar { display: none !important; }
}

/* ---------- Landing page (/) ---------- */
body.landing main { max-width: none; padding: 0; }
.lp-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
body.landing .top { max-width: 1080px; }
body.landing .foot { max-width: 1080px; }
.lp-hero { padding: clamp(28px, 7vh, 72px) 20px 56px; display: grid; gap: 40px; align-items: center; }   /* side padding restated: this shorthand would otherwise cancel .lp-wrap's gutter */
.lp-hero .hero-title { font-size: clamp(2rem, 5.2vw, 3.4rem); margin-bottom: 18px; }
.lp-hero .hero-sub { font-size: 1.15rem; margin-bottom: 28px; max-width: 32em; }
.lp-hero .btn { font-size: 1.05rem; padding: 17px 30px; }
.lp-art { position: relative; height: 420px; margin: 8px auto 0; width: 100%; max-width: 440px; }
.mock { position: absolute; width: 58%; border-radius: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.mock-page { left: 0; top: 36px; transform: rotate(-6deg); }
.mock-cover { right: 0; top: 0; transform: rotate(5deg); }
@media (min-width: 900px) {
  .lp-hero { grid-template-columns: 1.05fr 0.95fr; gap: 56px; padding-bottom: 80px; }
  .lp-art { height: 520px; max-width: none; margin: 0; }
}
.lp-band { padding: 64px 0; }
.lp-light { background: #f6f3fb; color: var(--bg); }
.lp-light .section-title, .lp-light h2, .lp-light h3 { color: var(--bg); }
.lp-light .who-text, .lp-light .stats-line, .lp-light .bio { color: #4b4258; }
.lp-light .who-note { color: #7a6f8c; }
.lp-light .who-list li, .lp-light .cta-points li, .lp-cta .cta-points li { border-color: rgba(109, 40, 217, 0.3); color: #4b4258; background: #fff; }
.lp-cards { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; counter-reset: lp; }
.lp-cards li { background: #fff; border: 1px solid rgba(109, 40, 217, 0.12); border-radius: 18px; padding: 26px 24px 24px; counter-increment: lp; box-shadow: 0 10px 30px rgba(27, 10, 46, 0.06); }
.lp-cards li::before { content: counter(lp, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 0.9rem; letter-spacing: 0.08em; color: var(--violet); margin-bottom: 14px; }
.lp-cards h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin: 0 0 8px; line-height: 1.3; }
.lp-cards p { margin: 0; color: #4b4258; }
@media (min-width: 760px) { .lp-cards { grid-template-columns: repeat(3, 1fr); } }
.lp-dark { background: var(--bg-2); }
.lp-dark .stats { margin-top: 24px; }
.lp-cta { text-align: center; background: #f6f3fb; color: var(--bg); padding: 72px 0; }
.lp-cta .section-title { margin-bottom: 20px; }
.lp-cta .cta-points { justify-content: center; margin-bottom: 28px; }
.lp-two { display: grid; gap: 32px; }
@media (min-width: 900px) { .lp-two { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
body.landing .foot { border-top: 0; }
@media (prefers-reduced-motion: reduce) { .mock { transform: none; } }

/* Details popup on the landing page */
.modal { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 32px)); width: 100%; }
.modal::backdrop { background: rgba(14, 6, 26, 0.72); backdrop-filter: blur(2px); }
.modal-card { position: relative; background: #fff; color: var(--bg); border-radius: 18px; padding: 32px 28px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.modal-close { position: absolute; top: 10px; right: 12px; font: inherit; font-size: 1.6rem; line-height: 1; background: none; border: 0; color: #8a7f99; cursor: pointer; padding: 6px 10px; }
.modal-close:hover { color: var(--bg); }
.modal-title { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.25; margin: 0 0 20px; padding-right: 24px; }
.modal-grid { display: grid; gap: 14px; }
@media (min-width: 520px) { .modal-grid { grid-template-columns: 1fr 1fr; } .mfield-wide { grid-column: 1 / -1; } }
.mfield label { display: block; font-size: 0.9rem; color: #5f5570; margin-bottom: 6px; }
.mfield input, .mfield select { width: 100%; font: inherit; font-size: 1rem; color: var(--bg); background: #fff; border: 1px solid #d9d2e6; border-radius: 10px; padding: 12px 14px; }
.mfield select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px auto; }
.mfield input:focus, .mfield select:focus { outline: 2px solid var(--violet-light); outline-offset: 1px; border-color: var(--violet-light); }
.mcheck { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 14px; font-size: 0.92rem; color: #5f5570; }
.mcheck input { margin-top: 5px; accent-color: var(--violet); }
.merror { margin: 0 0 12px; color: #b0362b; font-size: 0.92rem; }
.merror[hidden] { display: none; }
.mnote { margin: 12px 0 0; text-align: center; font-size: 0.85rem; }
.mnote a { color: #7a6f8c; }
.modal .btn-block { margin-top: 4px; }

/* Second fold: measure and improve */
.lp-measure { position: relative; padding: 84px 0 76px; background: #fbfafd; color: var(--bg); overflow: hidden; }
.lp-measure::before { content: ""; position: absolute; left: 50%; top: 38%; width: 1100px; height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0) 70%); pointer-events: none; }
.lp-measure > .lp-wrap { position: relative; }
.measure-head { text-align: center; max-width: 42em; margin: 0 auto 44px; }
.measure-eyebrow { margin: 0 0 14px; color: var(--violet); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.measure-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 16px; color: var(--bg); }
.measure-title em { font-style: italic; color: var(--violet); }
.measure-lead { margin: 0; color: #5f5570; font-size: 1.05rem; line-height: 1.6; }
.measure-cards { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
@media (min-width: 560px) { .measure-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 820px) { .measure-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .measure-cards { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.measure-card { position: relative; background: #fff; border: 1px solid rgba(109, 40, 217, 0.1); border-radius: 22px; padding: 36px 22px 30px; text-align: center;
  display: flex; flex-direction: column; align-items: center; box-shadow: 0 1px 2px rgba(27, 10, 46, 0.04), 0 18px 40px -24px rgba(27, 10, 46, 0.25);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms var(--ease); }
.measure-card:hover { transform: translateY(-4px); border-color: rgba(109, 40, 217, 0.28); box-shadow: 0 2px 4px rgba(27, 10, 46, 0.05), 0 28px 50px -22px rgba(109, 40, 217, 0.35); }
.hex-wrap { position: relative; width: 84px; height: 84px; margin-bottom: 22px; display: grid; place-items: center; }
.hex-halo { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(167, 139, 250, 0.35), rgba(231, 179, 218, 0.25)); clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.hex { position: relative; width: 60px; height: 60px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, #8b5cf6, #6d28d9 70%); clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.hex svg { display: block; width: 26px; height: 26px; }
.measure-num { margin: 0 0 8px; font-size: 0.74rem; letter-spacing: 0.14em; color: var(--violet); }
.measure-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.22rem; line-height: 1.28; margin: 0 0 10px; color: var(--bg); text-wrap: balance; }
.measure-q { margin: 0; color: #6b6180; font-size: 0.95rem; line-height: 1.5; max-width: 22em; text-wrap: balance; }
.measure-cta { text-align: center; margin: 40px 0 0; }
.btn-ghost { background: transparent; color: var(--bg); border: 1px solid rgba(109, 40, 217, 0.35); box-shadow: none; }
.btn-ghost:hover { background: rgba(109, 40, 217, 0.06); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .measure-card, .measure-card:hover { transform: none; transition: none; } }

/* ---------- Quiz stage: centred, progress bar fixed at the foot ---------- */
.screen-assessment { text-align: center; padding-bottom: 120px; }
.screen-assessment .question { max-width: 760px; margin: 8px auto 0; }
.q-back { display: inline-block; margin: 6px 0 22px; color: var(--muted); text-decoration: none; letter-spacing: 0.04em; font-size: 0.95rem; }
.q-back:hover { color: var(--text); }
.q-eyebrow { color: var(--violet-soft); margin-bottom: 14px; }
.q-hint { margin: -4px 0 14px; color: var(--violet-soft); font-size: 0.92rem; }
.q-hint[hidden] { display: none; }
.screen-assessment .q-text { font-size: clamp(1.6rem, 4.6vw, 2.4rem); margin: 0 auto 30px; max-width: 22em; text-wrap: balance; }
.options-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.options-row .option { min-width: 150px; text-align: center; padding: 16px 22px; background: var(--surface-strong); border-color: var(--line-strong); }
.options-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .options-grid { grid-template-columns: 1fr 1fr; } }
.options-grid .option { text-align: center; padding: 16px 20px; background: var(--surface-strong); border-color: var(--line-strong); }
.options-multi { display: grid; gap: 12px; }
@media (min-width: 640px) { .options-multi { grid-template-columns: 1fr 1fr; } }
.options-multi .option { text-align: center; padding: 16px 20px; background: transparent; border: 1px solid var(--line-strong); }
.options-multi .option[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.options-row .option::after, .options-grid .option::after, .options-multi .option::after { display: none; }
.q-actions { margin-top: 22px; }
.q-actions[hidden] { display: none; }
.screen-assessment .text-answer { text-align: left; max-width: 640px; margin: 0 auto; }
.screen-assessment .text-actions { justify-content: center; }
.progress-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: rgba(20, 8, 36, 0.92); backdrop-filter: blur(6px);
  border-top: 1px solid var(--line); padding: 14px 20px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.progress-bar .progress-text { margin: 0; color: var(--muted); font-size: 0.9rem; }
.progress-bar .progress-track { width: min(420px, 100%); height: 4px; background: rgba(167, 139, 250, 0.18); border-radius: 2px; overflow: hidden; }
.progress-bar .progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--violet-light)); border-radius: 2px; transition: width 600ms var(--ease); }
.progress-bar[hidden] { display: none; }
@media (max-width: 639px) { .options-row { flex-wrap: nowrap; } .options-row .option { flex: 1 1 0; min-width: 0; padding: 16px 8px; } }

/* ---------- Results page ---------- */
.screen-results { text-align: center; padding-bottom: 0; }
.rs-hero { padding: 8px 0 56px; }
.rs-thanks { margin: 0 0 6px; color: var(--muted); font-size: 1.1rem; }
.rs-heading { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; margin: 0 0 26px; }
.rs-score-label { margin: 0 0 22px; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rate-building); }
.rs-score-label[data-band="early"] { color: var(--rate-early); }
.rs-score-label[data-band="ready"] { color: var(--rate-ready); }
.rs-light-wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
@media (min-width: 560px) { .rs-light-wrap { flex-direction: row; justify-content: center; gap: 40px; } }
.tl { position: relative; width: 112px; padding: 18px 0 18px; border-radius: 22px; background: #150b26; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.05); display: grid; justify-items: center; gap: 0; }
.tl-hood { width: 136px; height: 18px; margin: 4px 0 -8px; background: #0f0820; border-radius: 6px 6px 2px 2px; clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); }
.tl-lamp { width: 72px; height: 72px; margin: 8px 0 10px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.55rem; color: #fff; opacity: 0.22; transition: opacity 600ms var(--ease), box-shadow 600ms var(--ease); }
.tl-lamp[data-band="early"] { background: #e5484d; }
.tl-lamp[data-band="building"] { background: #f2a93b; }
.tl-lamp[data-band="ready"] { background: #34a853; }
.tl-lamp.is-lit { opacity: 1; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.05), 0 0 50px 8px rgba(255, 255, 255, 0.12); }
.tl-lamp.is-lit[data-band="early"] { box-shadow: 0 0 0 10px rgba(229, 72, 77, 0.18), 0 0 50px 10px rgba(229, 72, 77, 0.35); }
.tl-lamp.is-lit[data-band="building"] { box-shadow: 0 0 0 10px rgba(242, 169, 59, 0.18), 0 0 50px 10px rgba(242, 169, 59, 0.35); }
.tl-lamp.is-lit[data-band="ready"] { box-shadow: 0 0 0 10px rgba(52, 168, 83, 0.18), 0 0 50px 10px rgba(52, 168, 83, 0.35); }
.tl-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.tl-legend li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 1rem; }
.tl-legend li.is-current { color: var(--text); font-weight: 500; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; opacity: 0.45; }
.tl-legend li.is-current .tl-dot { opacity: 1; }
.tl-legend li[data-band="early"] .tl-dot { background: #e5484d; }
.tl-legend li[data-band="building"] .tl-dot { background: #f2a93b; }
.tl-legend li[data-band="ready"] .tl-dot { background: #34a853; }
.rs-hero .email-note { margin-top: 30px; font-size: 1rem; color: var(--muted); }

.rs-band { width: 100vw; margin-left: calc(50% - 50vw); padding: 64px 20px; text-align: left; }
.rs-wrap { max-width: 1040px; margin: 0 auto; }
.rs-two { display: grid; gap: 28px; }
@media (min-width: 900px) { .rs-two { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
.rs-h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.2; margin: 0 0 14px; }
.rs-h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin: 0 0 16px; }
.rs-eyebrow { margin: 0 0 10px; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }

.rs-means { background: #f6f3fb; color: var(--bg); }
.rs-panel { background: var(--violet); color: #fff; border-radius: 22px; padding: 34px 30px 30px; }
.rs-panel .rs-h2 { color: #fff; }
.rs-readout { margin: 0 0 22px; font-size: 1.08rem; line-height: 1.6; color: rgba(255, 255, 255, 0.92); }
.rs-label { margin: 18px 0 10px; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.rs-label[hidden] { display: none; }
.rs-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rs-checks li { position: relative; padding-left: 28px; line-height: 1.5; }
.rs-checks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.rs-start { margin: 0; line-height: 1.55; color: #fff; }
.rs-status { padding: 6px 0; }
.rs-status-list { list-style: none; margin: 0; padding: 0; }
.rs-status-list li { display: grid; grid-template-columns: 18px 1fr auto auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(109, 40, 217, 0.12); }
.rs-disc { width: 16px; height: 16px; border-radius: 50%; }
.rs-status-list li[data-band="early"] .rs-disc { background: #e5484d; }
.rs-status-list li[data-band="building"] .rs-disc { background: #f2a93b; }
.rs-status-list li[data-band="ready"] .rs-disc { background: #34a853; }
.rs-status-name { font-size: 1.02rem; }
.rs-status-score { font-family: var(--serif); font-size: 1.15rem; min-width: 2.2em; text-align: right; }
.rs-status-band { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: #6b6180; min-width: 5.5em; text-align: right; }

.rs-next { background: var(--violet); color: #fff; text-align: center; padding: 72px 20px; }
.rs-next .rs-h2 { color: #fff; margin-bottom: 12px; }
.rs-next-text { max-width: 40em; margin: 0 auto 26px; color: rgba(255, 255, 255, 0.9); line-height: 1.6; }
.rs-next .next-step-actions { justify-content: center; }
.rs-next .btn-primary { background: #fff; color: var(--violet); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.rs-next .btn-primary:hover { background: #f3eefb; }
.rs-next .next-step-secondary { color: #fff; }

.rs-download { background: #fbfafd; color: var(--bg); }
.rs-two-media { align-items: center; }
.rs-mocks { position: relative; height: 380px; max-width: 420px; margin: 0 auto; width: 100%; }
.rs-mocks .mock { box-shadow: 0 30px 60px rgba(27, 10, 46, 0.25), 0 0 0 1px rgba(27, 10, 46, 0.05); }
.rs-sub { margin: 0 0 14px; color: var(--violet); font-size: 1.1rem; }
.rs-text { margin: 0 0 20px; color: #4b4258; line-height: 1.6; }
.rs-checks-dark { color: var(--bg); margin-bottom: 26px; }
.rs-checks-dark li::before { border-color: var(--violet); }
.rs-download .report-error { color: #b0362b; }
@media (prefers-reduced-motion: reduce) { .tl-lamp { transition: none; } }
.rs-heading:focus, .rs-heading:focus-visible { outline: none; }

/* Results hero in light mode: the score has to be unmistakable. */
.rs-hero { width: 100vw; margin-left: calc(50% - 50vw); background: #fbfafd; color: var(--bg); padding: 56px 20px 60px; position: relative; overflow: hidden; }
.rs-hero > * { position: relative; }
.rs-thanks { color: #5f5570; }
.rs-heading { color: var(--bg); }
.rs-score-label { color: #8a5a10; font-weight: 500; }
.rs-score-label[data-band="early"] { color: #b0362b; }
.rs-score-label[data-band="ready"] { color: #1d7142; }
.rs-light-wrap { position: relative; padding: 28px 0 8px; }
.rs-light-wrap::before { content: ""; position: absolute; left: 50%; top: 50%; width: 440px; height: 440px; transform: translate(-50%, -50%); border-radius: 50%; background: #f1eef6; z-index: 0; }
.rs-light-wrap > * { position: relative; z-index: 1; }
.tl { background: #2b1a45; box-shadow: 0 24px 50px rgba(27, 10, 46, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.tl-hood { background: #1f1236; }
.tl-lamp { opacity: 0.38; color: #fff; }
.tl-lamp.is-lit { opacity: 1; }
.tl-lamp.is-lit[data-band="early"] { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0.16), 0 0 36px 6px rgba(229, 72, 77, 0.35); }
.tl-lamp.is-lit[data-band="building"] { box-shadow: 0 0 0 8px rgba(242, 169, 59, 0.18), 0 0 36px 6px rgba(242, 169, 59, 0.4); }
.tl-lamp.is-lit[data-band="ready"] { box-shadow: 0 0 0 8px rgba(52, 168, 83, 0.16), 0 0 36px 6px rgba(52, 168, 83, 0.35); }
.tl-legend li { color: #6b6180; }
.tl-legend li.is-current { color: var(--bg); }
.tl-dot { opacity: 0.35; }
.rs-hero .email-note { color: #5f5570; }
.rs-means { background: #f6f3fb; border-top: 1px solid rgba(109, 40, 217, 0.08); }
.tl { display: flex; flex-direction: column; align-items: center; }   /* hoods overhang both sides evenly */
/* Headings receive focus for screen readers when a step changes; no ring on non-interactive text. */
.q-text:focus, .q-text:focus-visible, .details-title:focus, .details-title:focus-visible, .hero-title:focus, .hero-title:focus-visible { outline: none; }

/* Results hero: two columns, score left, light right */
.rs-hero { padding: 48px 20px 56px; text-align: left; }
.rs-hero-grid { max-width: 1040px; margin: 0 auto; display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .rs-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; } }
.rs-hero .rs-thanks { font-size: 0.95rem; margin: 0 0 22px; }
.rs-hero .rs-score-label { margin: 0 0 6px; font-size: 0.82rem; }
.rs-score-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; }
.rs-score-num { font-family: var(--serif); font-size: clamp(4.5rem, 10vw, 7rem); line-height: 0.95; letter-spacing: -0.02em; color: var(--bg); }
.rs-score-of { color: #6b6180; font-size: 1.05rem; }
.rs-chip { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 0.95rem; font-weight: 500; transform: translateY(-14px); }
.rs-chip[data-band="early"] { background: #fbecea; color: #b0362b; }
.rs-chip[data-band="building"] { background: #fbf2df; color: #8a5a10; }
.rs-chip[data-band="ready"] { background: #e6f4eb; color: #1d7142; }
.rs-hero-readout { margin: 0 0 14px; font-size: 1.2rem; line-height: 1.5; color: #3d3550; max-width: 30em; }
.rs-meta { margin: 0 0 24px; font-size: 0.92rem; color: #7a6f8c; }
.rs-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rs-hero-actions .btn-ghost { color: var(--bg); }
.rs-hero .email-note { margin: 18px 0 0; font-size: 0.92rem; }
.rs-light-card { background: linear-gradient(160deg, #f3effa, #ebe4f6); border-radius: 28px; padding: 30px 26px 24px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.rs-light-card .rs-light-wrap { padding: 0; flex-direction: row; gap: 34px; align-items: center; }
.rs-light-card .rs-light-wrap::before { display: none; }
.rs-light-card .tl { width: 92px; padding: 14px 0; border-radius: 18px; }
.rs-light-card .tl-hood { width: 112px; height: 14px; }
.rs-light-card .tl-lamp { width: 58px; height: 58px; margin: 6px 0 8px; font-size: 1.3rem; }
.rs-light-card .tl-legend { gap: 12px; }
.rs-light-card .tl-legend li { font-size: 0.98rem; }
.rs-counts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.rs-counts li { background: #fff; border-radius: 14px; padding: 12px 10px; display: grid; grid-template-columns: 10px auto; column-gap: 8px; align-items: center; justify-content: center; }
.rs-counts .rs-disc { width: 10px; height: 10px; grid-row: 1 / 3; }
.rs-counts li[data-band="early"] .rs-disc { background: #e5484d; }
.rs-counts li[data-band="building"] .rs-disc { background: #f2a93b; }
.rs-counts li[data-band="ready"] .rs-disc { background: #34a853; }
.rs-count-n { font-family: var(--serif); font-size: 1.35rem; line-height: 1; color: var(--bg); }
.rs-count-t { font-size: 0.78rem; color: #6b6180; letter-spacing: 0.04em; text-transform: uppercase; }
.rs-counts li.is-zero { opacity: 0.55; }

/* Traffic light geometry, tightened: ledges inside the housing, even cells, glow kept inside. */
.tl, .rs-light-card .tl { width: 100px; padding: 16px 14px 18px; border-radius: 22px; gap: 0; }
.tl-hood, .rs-light-card .tl-hood { width: 100%; height: 7px; margin: 0 0 9px; border-radius: 4px; background: #190f2d; clip-path: none; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04); }
.tl-lamp, .rs-light-card .tl-lamp { width: 60px; height: 60px; margin: 0 0 16px; font-size: 1.35rem; opacity: 0.4; }
.tl-lamp:last-child, .rs-light-card .tl-lamp:last-child { margin-bottom: 0; }
.tl-lamp.is-lit { opacity: 1; }
.tl-lamp.is-lit[data-band="early"] { box-shadow: 0 0 0 5px rgba(229, 72, 77, 0.22), 0 0 18px 4px rgba(229, 72, 77, 0.45); }
.tl-lamp.is-lit[data-band="building"] { box-shadow: 0 0 0 5px rgba(242, 169, 59, 0.24), 0 0 18px 4px rgba(242, 169, 59, 0.5); }
.tl-lamp.is-lit[data-band="ready"] { box-shadow: 0 0 0 5px rgba(52, 168, 83, 0.22), 0 0 18px 4px rgba(52, 168, 83, 0.45); }

.privacy-screen { padding-top: 32px; }
