/* ==========================================================================
   The Stimulus Control Room — styles
   ========================================================================== */

:root {
  --teal: #176B6B;
  --teal-600: #125858;
  --teal-50: #E7F1EF;
  --navy: #173F4F;
  --navy-900: #0F2B36;
  --sage: #A9CBB7;
  --sage-100: #DCEBE2;
  --sage-50: #EEF5F0;
  --cream: #FAF8F3;
  --cream-200: #F2EEE4;
  --coral: #E9785D;
  --coral-600: #D9603F;
  --coral-50: #FCEDE8;
  --white: #FFFFFF;
  --text: #283238;
  --text-soft: #56636A;
  --ink-on-coral: #1B262B;
  --success: #1F7A55;
  --danger: #B5412B;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(23, 63, 79, .06), 0 2px 8px rgba(23, 63, 79, .05);
  --shadow: 0 2px 4px rgba(23, 63, 79, .04), 0 12px 32px -8px rgba(23, 63, 79, .14);
  --shadow-lg: 0 4px 8px rgba(23, 63, 79, .05), 0 28px 60px -16px rgba(23, 63, 79, .24);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1200px;
  --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
/* sprite icons default to text size unless a component sizes them */
svg:has(> use) { width: 1.15em; height: 1.15em; flex: none; }
.pill svg, .q-tag svg, .readiness svg { width: 16px; height: 16px; flex: none; }
.ans svg { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; }
.task-list b svg { width: 20px; height: 20px; }
a { color: var(--teal); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--teal-600); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.015em; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-variation-settings: "opsz" 36; }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
em.accent, .accent { font-style: italic; color: var(--teal); }
sup.reg { font-family: var(--font-body); font-size: .32em; font-weight: 700; vertical-align: super; line-height: 0; margin-left: .04em; }
::selection { background: var(--sage); color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-white { background: var(--white); }
.section-sage { background: var(--sage-50); }
.section-navy { background: var(--navy); color: #DDE8E6; }
.section-navy h2, .section-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--coral); border-radius: 2px; }
.section-navy .eyebrow { color: var(--sage); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text-soft); line-height: 1.6; }
.section-navy .lead { color: #BFD3CF; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--teal); --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 16px -6px rgba(23,63,79,.35);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 26px -10px rgba(23,63,79,.45); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn-primary { --btn-bg: var(--coral); --btn-fg: var(--ink-on-coral); }
.btn-primary:hover { --btn-bg: #EE8A71; }
.btn-teal { --btn-bg: var(--teal); --btn-fg: var(--white); }
.btn-teal:hover { --btn-bg: var(--teal-600); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--navy); border-color: rgba(23,63,79,.22); box-shadow: none; }
.btn-outline:hover { --btn-bg: var(--white); border-color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-light { --btn-bg: var(--white); --btn-fg: var(--navy); }
.btn-ghost-light { --btn-bg: transparent; --btn-fg: var(--white); border-color: rgba(255,255,255,.35); box-shadow: none; }
.btn-ghost-light:hover { border-color: var(--white); --btn-bg: rgba(255,255,255,.08); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.text-link { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.text-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself
   would trap the fixed-position mobile menu inside the header bar. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(250, 248, 243, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: rgba(23,63,79,.08); box-shadow: 0 6px 24px -18px rgba(23,63,79,.4); }
.site-header.is-scrolled::before { background: rgba(250, 248, 243, .94); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex: none; }
.brand:hover { color: var(--navy); }
.brand-mark { width: 42px; height: 42px; flex: none; transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1; letter-spacing: -.01em; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .64rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin-top: 5px; }

.primary-nav { display: flex; align-items: center; gap: 6px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  position: relative; display: block; padding: 10px 9px; border-radius: 999px; white-space: nowrap;
  font-weight: 600; font-size: .96rem; color: var(--navy); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav-list a:hover { background: rgba(23,107,107,.08); color: var(--teal); }
.nav-list a[aria-current="page"] { color: var(--teal); }
.nav-list a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--coral); }
.nav-cta { margin-left: 4px; }
.nav-home { display: none; }

.nav-toggle {
  display: none; position: relative; z-index: 120;
  width: 48px; height: 48px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--navy); color: var(--white);
}
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

@media (max-width: 1280px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(var(--header-h) + 20px) 24px 32px;
    background: var(--navy);
    overflow-y: auto;
    clip-path: circle(0 at calc(100% - 48px) 38px);
    visibility: hidden;
    transition: clip-path .55s var(--ease), visibility 0s linear .55s;
  }
  .primary-nav.is-open { clip-path: circle(150% at calc(100% - 48px) 38px); visibility: visible; transition: clip-path .6s var(--ease), visibility 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-home { display: block; }
  .nav-list li { opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .45s var(--ease); }
  .primary-nav.is-open .nav-list li { opacity: 1; transform: none; }
  .primary-nav.is-open .nav-list li:nth-child(1) { transition-delay: .12s; }
  .primary-nav.is-open .nav-list li:nth-child(2) { transition-delay: .16s; }
  .primary-nav.is-open .nav-list li:nth-child(3) { transition-delay: .2s; }
  .primary-nav.is-open .nav-list li:nth-child(4) { transition-delay: .24s; }
  .primary-nav.is-open .nav-list li:nth-child(5) { transition-delay: .28s; }
  .primary-nav.is-open .nav-list li:nth-child(6) { transition-delay: .32s; }
  .primary-nav.is-open .nav-list li:nth-child(7) { transition-delay: .36s; }
  .nav-list a { color: var(--white); font-family: var(--font-display); font-size: 1.85rem; font-weight: 500; padding: 12px 4px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-list a:hover, .nav-list a[aria-current="page"] { background: transparent; color: var(--sage); }
  .nav-list a[aria-current="page"]::after { left: auto; right: 6px; top: 50%; bottom: auto; margin: -3px 0 0; width: 8px; height: 8px; }
  .nav-cta { margin: 28px 0 0; width: 100%; }
  .site-header.nav-open .brand { color: var(--white); position: relative; z-index: 120; }
  .site-header.nav-open .brand-name small { color: var(--sage); }
  .site-header.nav-open .nav-toggle { background: var(--coral); color: var(--ink-on-coral); }
}
body.nav-locked { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .underline { position: relative; white-space: nowrap; }
.hero h1 .underline svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.hero h1 .underline path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.2s .7s var(--ease) forwards; }
.hero .lead { max-width: 560px; margin-bottom: 32px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 7px 16px 7px 8px; border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow-sm); font-size: .88rem; font-weight: 600; color: var(--navy);
}
.hero-badge b { background: var(--sage-100); color: var(--teal); border-radius: 999px; padding: 3px 10px; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; padding: 0; list-style: none; font-size: .94rem; font-weight: 600; color: var(--text-soft); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 20px; height: 20px; color: var(--teal); }
.hero-art { position: relative; }
.hero-art svg.hero-illustration { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(23,63,79,.14)); }
/* Hero photo */
.hero-photo { position: relative; margin: 0 auto; max-width: 460px; padding: 0 22px 26px 0; }
.hero-photo::before { content: ""; position: absolute; top: 44px; right: 0; bottom: 0; left: 44px; border-radius: 36px; background: var(--sage-100); }
.hero-photo::after { content: ""; position: absolute; top: -26px; left: -30px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(23,107,107,.28) 2px, transparent 2.5px) 0 0 / 16px 16px; z-index: -1; }
.hero-photo-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--cream-200); }
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo.is-square .hero-photo-frame { aspect-ratio: 1 / 1; }
@media (max-width: 640px) {
  .hero-photo { padding: 0 12px 18px 0; max-width: 360px; }
}
.float-a { animation: floaty 7s ease-in-out infinite; transform-box: fill-box; }
.float-b { animation: floaty 8s ease-in-out -2.5s infinite; transform-box: fill-box; }
.float-c { animation: floaty 6s ease-in-out -4s infinite; transform-box: fill-box; }
.spin-slow { animation: spin 40s linear infinite; transform-box: fill-box; transform-origin: center; }
.ring-fill { stroke-dasharray: 251; stroke-dashoffset: 251; animation: ring 1.8s 1s var(--ease) forwards; }
.pop-in { opacity: 0; animation: pop .6s var(--ease) forwards; transform-box: fill-box; transform-origin: center; }

.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; z-index: -1; }
.blob-sage { background: var(--sage); }
.blob-coral { background: #F5B7A5; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { to { stroke-dashoffset: 25; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

/* Page hero (inner pages) */
.page-hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 72px); overflow: hidden; }
.page-hero .container { position: relative; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-hero .lead { max-width: 640px; }
.page-hero-art svg { width: 100%; max-width: 380px; margin-left: auto; height: auto; }
.breadcrumbs { font-size: .88rem; margin-bottom: 18px; color: var(--text-soft); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--sage); }
.breadcrumbs a { color: var(--text-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal); }

/* ---------- Marquee ---------- */
.marquee { background: var(--navy); color: var(--white); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; font-family: var(--font-display); font-size: 1.35rem; font-style: italic; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); border: 1px solid rgba(23,63,79,.06);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(23,107,107,.18); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

.icon-tile {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--sage-100); color: var(--teal); margin-bottom: 20px; flex: none;
  transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.icon-tile svg { width: 28px; height: 28px; }
.card-hover:hover .icon-tile { transform: rotate(-6deg) scale(1.06); background: var(--teal); color: var(--white); }
.icon-tile.coral { background: var(--coral-50); color: var(--coral-600); }

/* Steps */
.steps { counter-reset: step; }
.step { padding-top: 34px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -22px; right: 30px;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--white);
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--teal);
  box-shadow: 0 10px 20px -8px rgba(23,107,107,.6);
}
.step:nth-child(2)::before { background: var(--coral); color: var(--ink-on-coral); }
.step:nth-child(3)::before { background: var(--navy); }

/* Domain cards */
.domain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.domain-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid rgba(23,63,79,.07);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.domain-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%;
  background: var(--sage-50); transition: transform .5s var(--ease), background-color .3s; z-index: 0;
}
.domain-card > * { position: relative; z-index: 1; }
.domain-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(23,107,107,.22); color: var(--text); }
.domain-card:hover::after { transform: scale(1.6); background: var(--teal-50); }
.domain-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.domain-letter { font-family: var(--font-display); font-size: 3rem; font-weight: 600; line-height: .9; color: var(--sage); font-style: italic; transition: color .3s; }
.domain-card:hover .domain-letter { color: var(--coral); }
.domain-card h3 { font-size: 1.28rem; margin-bottom: 8px; }
.domain-card p { font-size: .95rem; color: var(--text-soft); margin-bottom: 20px; }
.domain-meta { margin-top: auto; }
.weight { display: flex; align-items: center; justify-content: space-between; font-size: .84rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.weight-bar { height: 8px; border-radius: 99px; background: var(--cream-200); overflow: hidden; }
.weight-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #2B8F86); transition: width 1.2s var(--ease) .2s; }
.is-visible .weight-bar i, .weight-bar.is-visible i { width: var(--w); }
.domain-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 700; color: var(--teal); font-size: .95rem; }
.domain-cta svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.domain-card:hover .domain-cta svg { transform: translateX(5px); }
.best-score { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: var(--success); background: #E4F3EB; padding: 4px 10px; border-radius: 99px; }
.best-score[hidden] { display: none; }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split.form-split { grid-template-columns: 1.45fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list li svg { flex: none; width: 26px; height: 26px; color: var(--teal); background: var(--sage-100); border-radius: 50%; padding: 5px; margin-top: 1px; }
.section-navy .check-list li svg { background: rgba(169,203,183,.18); color: var(--sage); }
.check-list strong { color: var(--navy); }
.section-navy .check-list strong { color: var(--white); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.3rem, 4vw, 3.2rem); font-weight: 600; color: var(--white); line-height: 1; margin-bottom: 8px; }
.stat span { font-size: .92rem; color: #BFD3CF; }

/* Mock exam feature card */
.feature-exam {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  color: #E2EEEB; padding: clamp(32px, 5vw, 60px);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.feature-exam h2, .feature-exam h3 { color: var(--white); }
.feature-exam .eyebrow { color: var(--sage); }
.feature-exam .pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 700; padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,.1); color: var(--white); border: 1px solid rgba(255,255,255,.14); }
.pill-light { background: var(--sage-50); color: var(--teal); border-color: var(--sage-100); }
.feature-exam-art svg { width: 100%; max-width: 280px; margin: 0 auto; }
.feature-exam::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); right: -120px; top: -160px; }
.feature-exam::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); right: -40px; top: -80px; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--coral); color: var(--ink-on-coral);
  padding: clamp(36px, 5vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--navy-900); margin-bottom: 8px; }
.cta-band p { margin: 0; font-weight: 500; max-width: 560px; }
.cta-band .dots { position: absolute; right: 24px; top: 16px; opacity: .25; width: 180px; pointer-events: none; }
.cta-band .btn-row { position: relative; }

/* Quote / testimonial-like callout */
.callout { display: flex; gap: 18px; align-items: flex-start; background: var(--sage-50); border-left: 4px solid var(--teal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 20px 24px; }
.callout svg { flex: none; width: 24px; height: 24px; color: var(--teal); margin-top: 2px; }
.callout p { margin: 0; }
.callout.coral { background: var(--coral-50); border-left-color: var(--coral); }
.callout.coral svg { color: var(--coral-600); }

/* Founding-member invite (quiz results, practice test) */
.founder-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; background: var(--coral-50); border: 1.5px solid var(--coral); border-radius: var(--radius); padding: 26px 30px; margin: 8px 0 44px; }
.founder-offer > div { flex: 1 1 340px; }
.founder-offer h2 { font-size: 1.35rem; margin: 10px 0 6px; }
.founder-offer p { margin: 0; }
.founder-offer .btn { flex: none; }
.pt-score + .founder-offer { margin-top: 20px; }

/* FAQ */
.faq { display: grid; gap: 14px; }
.faq details { background: var(--white); border-radius: var(--radius); border: 1px solid rgba(23,63,79,.08); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; position: relative; font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--sage-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23176B6B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .35s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--coral-50); }
.faq .faq-body { padding: 0 26px 24px; color: var(--text-soft); }
.faq .faq-body p:last-child { margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--white); border: 1px solid rgba(23,63,79,.07); }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--cream-200); vertical-align: top; }
th { background: var(--navy); color: var(--white); font-weight: 700; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--sage-50); }
td.num { font-weight: 800; color: var(--teal); white-space: nowrap; }
tfoot td { font-weight: 800; background: var(--cream-200); color: var(--navy); }

/* Guide */
.guide-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid rgba(23,63,79,.06); }
.toc h2 { font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .94rem; font-weight: 600; border-left: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.toc a:hover { background: var(--sage-50); color: var(--teal); }
.toc a.is-active { background: var(--sage-50); color: var(--teal); border-left-color: var(--coral); border-radius: 0 10px 10px 0; }
.prose > * + * { margin-top: 0; }
.prose h2 { margin-top: 64px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 36px; }
.prose ul li, .prose ol li { margin-bottom: 8px; }
.task-list { list-style: none; padding: 0; display: grid; gap: 10px; margin: 18px 0 24px; }
.task-list li { background: var(--white); border-radius: var(--radius-sm); padding: 14px 18px; border: 1px solid rgba(23,63,79,.07); display: flex; gap: 14px; margin: 0; }
.task-list li b { flex: none; color: var(--teal); font-weight: 800; min-width: 38px; }
.domain-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.domain-head .pill-light { font-family: var(--font-body); font-size: .82rem; font-weight: 700; font-style: normal; letter-spacing: .01em; font-variation-settings: normal; line-height: 1.2; white-space: nowrap; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 48px); box-shadow: var(--shadow); border: 1px solid rgba(23,63,79,.06); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; color: var(--navy); font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--text-soft); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid #D9DED9; background: var(--cream);
  transition: border-color .2s, box-shadow .2s, background-color .2s; font-size: 1rem;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sage); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 4px rgba(23,107,107,.14); }
.field .error-msg { color: var(--danger); font-size: .86rem; font-weight: 600; display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field.has-error .error-msg { display: block; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173F4F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating label { cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #CFD6D2; transition: color .15s, transform .2s var(--ease); }
.rating label svg { width: 32px; height: 32px; }
.rating label:hover, .rating label:hover ~ label, .rating input:checked ~ label { color: var(--coral); }
.rating label:hover { transform: scale(1.12); }
.rating input:focus-visible + label { outline: 3px solid var(--coral); outline-offset: 2px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-group input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-group label { cursor: pointer; padding: 10px 18px; border-radius: 99px; border: 1.5px solid #D9DED9; background: var(--cream); font-weight: 600; font-size: .92rem; color: var(--navy); transition: all .2s; }
.chip-group label:hover { border-color: var(--teal); }
.chip-group input:checked + label { background: var(--teal); color: var(--white); border-color: var(--teal); }
.chip-group input:focus-visible + label { outline: 3px solid var(--coral); outline-offset: 2px; }

.form-status { display: none; margin-top: 20px; padding: 18px 20px; border-radius: 14px; font-weight: 600; }
.form-status.is-shown { display: flex; gap: 12px; align-items: flex-start; animation: fadeUp .5s var(--ease); }
.form-status svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.form-status.success { background: #E4F3EB; color: #175E41; }
.form-status.error { background: #FBE9E4; color: var(--danger); }
.form-status.test { background: #FFF6DE; color: #7A5A0B; }
.form-note { font-size: .86rem; color: var(--text-soft); margin-top: 14px; }

.inline-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.inline-form .field { flex: 1 1 260px; gap: 0; }
.inline-form input { flex: none; width: 100%; min-height: 54px; padding: 14px 20px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: var(--white); font-size: 1rem; }
.inline-form input::placeholder { color: #A9C2BF; }
.inline-form input:focus { outline: none; background: rgba(255,255,255,.12); border-color: var(--sage); box-shadow: 0 0 0 4px rgba(169,203,183,.25); }

/* Email CTA box */
.email-card { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; background: var(--white); border-radius: var(--radius-lg); padding: 30px 34px; box-shadow: var(--shadow); border: 1px solid rgba(23,63,79,.06); }
.email-card .who { display: flex; gap: 18px; align-items: center; }
.email-card .icon-tile { margin: 0; }
.email-card h3 { margin: 0 0 4px; font-size: 1.3rem; }
.email-card p { margin: 0; color: var(--text-soft); }
.email-address { font-weight: 800; color: var(--teal); overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #B7CBC8; padding: 80px 0 32px; position: relative; overflow: hidden; }
.site-footer a { color: #DDE8E6; text-decoration: none; }
.site-footer a:hover { color: var(--coral); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 56px; }
.footer-brand .brand { color: var(--white); margin-bottom: 18px; }
.footer-brand .brand-name small { color: var(--sage); }
.footer-brand p { font-size: .95rem; max-width: 320px; }
.footer-col h2 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin-bottom: 18px; font-weight: 800; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .96rem; }
.footer-email { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; overflow-wrap: anywhere; }
.footer-email svg { width: 20px; height: 20px; color: var(--coral); flex: none; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px; font-size: .84rem; line-height: 1.7; color: #93AAA7; }
.disclaimer strong { color: #C9D8D5; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; font-size: .84rem; color: #7F9794; }
.footer-watermark { position: absolute; right: -40px; bottom: -70px; width: 360px; opacity: .04; pointer-events: none; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
.reveal-delay-5 { transition-delay: .4s; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Quiz ---------- */
.quiz-shell { padding: clamp(28px, 5vw, 56px) 0 clamp(64px, 8vw, 110px); }
.quiz-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid rgba(23,63,79,.06); padding: clamp(24px, 4.5vw, 52px); position: relative; }
#quiz-app:focus, .form-status:focus { outline: none; }
.quiz-intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.quiz-intro h1 { font-size: clamp(2rem, 4vw, 3rem); }
.quiz-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.mode-picker { display: grid; gap: 14px; margin-bottom: 28px; }
.mode-option { position: relative; }
.mode-option input { position: absolute; opacity: 0; }
.mode-option label {
  display: flex; gap: 16px; align-items: flex-start; cursor: pointer;
  padding: 20px 22px; border-radius: var(--radius); border: 2px solid #E3E7E3; background: var(--cream);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.mode-option label:hover { border-color: var(--sage); }
.mode-option input:checked + label { border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 4px rgba(23,107,107,.1); }
.mode-option input:focus-visible + label { outline: 3px solid var(--coral); outline-offset: 2px; }
.mode-option .radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #B9C4BF; margin-top: 3px; display: grid; place-items: center; transition: border-color .2s; }
.mode-option input:checked + label .radio { border-color: var(--teal); }
.mode-option input:checked + label .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.mode-option strong { display: block; color: var(--navy); font-size: 1.08rem; margin-bottom: 2px; }
.mode-option span.desc { color: var(--text-soft); font-size: .94rem; }
.intro-side { background: var(--sage-50); border-radius: var(--radius); padding: 28px; }
.intro-side h2 { font-size: 1.3rem; }
.intro-side ul { margin: 0; padding-left: 1.1em; color: var(--text-soft); font-size: .95rem; }
.intro-side li { margin-bottom: 8px; }
.kbd { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8em; padding: 1px 7px; border-radius: 6px; background: var(--white); border: 1px solid #D3DAD6; box-shadow: 0 1px 0 #D3DAD6; }

.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.quiz-progress-label { font-weight: 700; color: var(--navy); font-size: .95rem; }
.quiz-timer { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--navy); background: var(--sage-50); padding: 8px 14px; border-radius: 99px; }
.quiz-timer svg { width: 18px; height: 18px; color: var(--teal); }
.quiz-timer.warn { background: var(--coral-50); color: var(--danger); }
.quiz-timer.warn svg { color: var(--danger); }
.progress { height: 8px; background: var(--cream-200); border-radius: 99px; overflow: hidden; margin-bottom: 36px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--sage)); border-radius: inherit; transition: width .5s var(--ease); }
.q-tag { display: inline-flex; gap: 8px; align-items: center; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); background: var(--sage-50); padding: 6px 12px; border-radius: 99px; margin-bottom: 18px; }
.q-text { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 500; color: var(--navy); line-height: 1.35; margin-bottom: 28px; font-variation-settings: "opsz" 36; }
.q-body.is-new { animation: fadeUp .45s var(--ease); }
.options { display: grid; gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.option {
  width: 100%; display: flex; align-items: flex-start; gap: 16px; text-align: left; cursor: pointer;
  padding: 18px 20px; border-radius: var(--radius); border: 2px solid #E3E7E3; background: var(--cream);
  font-size: 1.02rem; line-height: 1.5; color: var(--text);
  transition: border-color .2s, background-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.option:hover:not([disabled]) { border-color: var(--sage); background: var(--white); transform: translateX(4px); }
.option .letter { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .92rem; background: var(--white); border: 1.5px solid #D5DCD8; color: var(--navy); transition: all .2s; }
.option[aria-pressed="true"] { border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 4px rgba(23,107,107,.1); }
.option[aria-pressed="true"] .letter { background: var(--teal); border-color: var(--teal); color: var(--white); }
.option.correct { border-color: var(--success); background: #EAF6EF; }
.option.correct .letter { background: var(--success); border-color: var(--success); color: var(--white); }
.option.incorrect { border-color: var(--danger); background: #FBEDE9; }
.option.incorrect .letter { background: var(--danger); border-color: var(--danger); color: var(--white); }
.option[disabled] { cursor: default; }
.option.correct { animation: bump .45s var(--ease); }
.option.incorrect { animation: shake .45s var(--ease); }
@keyframes bump { 50% { transform: scale(1.015); } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.explain { border-radius: var(--radius); padding: 20px 22px; margin-bottom: 28px; animation: fadeUp .45s var(--ease); display: flex; gap: 14px; }
.explain svg { flex: none; width: 26px; height: 26px; margin-top: 2px; }
.explain.good { background: #EAF6EF; color: #164B35; }
.explain.bad { background: #FBEDE9; color: #6E2616; }
.explain strong { display: block; margin-bottom: 4px; }
.explain p { margin: 0; }

.quiz-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.quiz-actions .left, .quiz-actions .right { display: flex; gap: 10px; flex-wrap: wrap; }
.flag-btn[aria-pressed="true"] { --btn-bg: var(--coral-50); border-color: var(--coral); color: var(--coral-600); }
.flag-btn svg { width: 18px; height: 18px; }

.q-nav { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--cream-200); }
.q-nav h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--text-soft); margin-bottom: 12px; }
.q-nav-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.q-nav-grid button { position: relative; height: 44px; border-radius: 10px; border: 1.5px solid #D9DED9; background: var(--white); font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--navy); transition: all .15s; }
.q-nav-grid button:hover { border-color: var(--teal); }
.q-nav-grid button.answered { background: var(--sage-100); border-color: var(--sage); }
.q-nav-grid button.current { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(23,63,79,.15); }
.q-nav-grid button.flagged::after { content: ""; position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); border: 2px solid var(--white); }
.q-nav-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: .82rem; color: var(--text-soft); }
.q-nav-legend span { display: inline-flex; align-items: center; gap: 6px; }
.q-nav-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; border: 1.5px solid #D9DED9; }
.q-nav-legend i.a { background: var(--sage-100); border-color: var(--sage); }
.q-nav-legend i.f { background: var(--coral); border-color: var(--coral); border-radius: 50%; }

/* Results */
.results-hero { display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; margin-bottom: 44px; }
.score-ring { position: relative; width: 200px; height: 200px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .track { stroke: var(--cream-200); }
.score-ring .bar { stroke: var(--teal); transition: stroke-dashoffset 1.6s var(--ease); stroke-linecap: round; }
.score-ring .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.score-ring b { display: block; font-family: var(--font-display); font-size: 3.2rem; line-height: 1; color: var(--navy); font-weight: 600; }
.score-ring small { font-weight: 700; color: var(--text-soft); font-size: .9rem; }
.readiness { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 99px; margin-bottom: 14px; }
.readiness.good { background: #E4F3EB; color: var(--success); }
.readiness.mid { background: #FFF3D6; color: #8A6108; }
.readiness.low { background: var(--coral-50); color: var(--danger); }
.breakdown { display: grid; gap: 14px; margin-bottom: 40px; }
.breakdown-row { display: grid; grid-template-columns: 1fr 90px; gap: 6px 16px; align-items: center; }
.breakdown-row .name { font-weight: 700; color: var(--navy); font-size: .96rem; }
.breakdown-row .val { text-align: right; font-weight: 800; color: var(--teal); font-variant-numeric: tabular-nums; }
.breakdown-row .weight-bar { grid-column: 1 / -1; height: 10px; }
.breakdown-row .weight-bar i { transition-duration: 1.4s; }
.review-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.review-filters button { border: 1.5px solid #D9DED9; background: var(--white); padding: 8px 16px; border-radius: 99px; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--navy); }
.review-filters button[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.review-list { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.review-item { border-radius: var(--radius); border: 1.5px solid #E3E7E3; padding: 22px 24px; background: var(--cream); }
.review-item.is-right { border-left: 5px solid var(--success); }
.review-item.is-wrong { border-left: 5px solid var(--danger); }
.review-item h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; line-height: 1.5; margin-bottom: 12px; color: var(--navy); letter-spacing: 0; }
.review-item .meta { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.review-item .ans { font-size: .95rem; margin: 4px 0; }
.review-item .ans.you-wrong { color: var(--danger); }
.review-item .ans.right { color: var(--success); font-weight: 700; }
.review-item .why { margin-top: 12px; font-size: .95rem; color: var(--text-soft); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(15,43,54,.55); backdrop-filter: blur(4px); z-index: 300; display: grid; place-items: center; padding: 20px; animation: fadeIn .25s; }
.modal { background: var(--white); border-radius: var(--radius-lg); padding: 34px; max-width: 460px; width: 100%; box-shadow: var(--shadow-lg); animation: fadeUp .35s var(--ease); }
.modal h2 { font-size: 1.6rem; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 250; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- SAFMEDS ---------- */
#safmeds-app:focus { outline: none; }
.sm-h { font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; color: var(--navy); letter-spacing: 0; margin-bottom: 14px; }
.sm-setup { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.sm-decks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sm-deck { display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; padding: 12px 14px; border-radius: 14px; border: 2px solid #E3E7E3; background: var(--cream); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.sm-deck:hover { border-color: var(--sage); }
.sm-deck[aria-checked="true"] { border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 4px rgba(23,107,107,.1); }
.sm-deck strong { display: block; color: var(--navy); font-size: .92rem; line-height: 1.25; }
.sm-deck small { color: var(--text-soft); font-size: .8rem; font-weight: 600; }
.sm-deck-letter { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--sage-100); color: var(--teal); font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.2rem; }
.sm-deck-letter svg { width: 20px; height: 20px; }
.sm-deck[aria-checked="true"] .sm-deck-letter { background: var(--teal); color: var(--white); }
.sm-chart { margin: 0; background: var(--cream); border-radius: 16px; padding: 14px 14px 10px; }
.sm-chart svg { width: 100%; height: auto; }
.sm-chart figcaption { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; font-weight: 600; color: var(--navy); padding: 6px 4px 0; }
.sm-chart figcaption span { display: inline-flex; align-items: center; gap: 6px; }
.sm-chart .lg-c { width: 14px; height: 3px; background: var(--teal); display: inline-block; border-radius: 2px; }
.sm-chart .lg-e { width: 14px; height: 0; border-top: 3px dashed var(--coral); display: inline-block; }
.sm-chart-empty { display: flex; gap: 12px; align-items: center; background: var(--cream); border-radius: 16px; padding: 22px; color: var(--text-soft); }
.sm-chart-empty svg { width: 26px; height: 26px; color: var(--teal); }
.sm-chart-empty p { margin: 0; }

.sm-stats { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.sm-timer, .sm-count { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sm-timer { background: var(--navy); color: var(--white); font-size: 1.35rem; min-width: 120px; justify-content: center; }
.sm-timer svg { width: 20px; height: 20px; }
.sm-timer.warn { background: var(--danger); }
.sm-count { background: var(--sage-50); color: var(--navy); font-size: 1.2rem; }
.sm-count small { font-size: .78rem; font-weight: 700; color: var(--text-soft); }
.sm-count svg { width: 18px; height: 18px; }
.sm-count.good svg { color: var(--success); }
.sm-count.bad svg { color: var(--danger); }
.sm-progress { height: 6px; border-radius: 99px; background: var(--cream-200); overflow: hidden; max-width: 620px; margin: 0 auto 26px; }
.sm-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--coral)); transition: width .1s linear; }
.sm-card-wrap { perspective: 1400px; max-width: 620px; margin: 0 auto; }
.sm-card { position: relative; display: block; width: 100%; aspect-ratio: 2 / 1; border: 0; padding: 0; background: none; cursor: pointer; transform-style: preserve-3d; transition: transform .45s var(--ease); font: inherit; color: inherit; }
.sm-card.is-flipped { transform: rotateY(180deg); cursor: default; }
.sm-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 26px 34px; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--shadow); border: 1px solid rgba(23,63,79,.08); text-align: center; }
.sm-front { background: var(--white); }
.sm-back { background: var(--teal); color: var(--white); transform: rotateY(180deg); }
.sm-tag { position: absolute; top: 16px; left: 20px; right: 20px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); text-align: left; }
.sm-back .sm-tag { color: var(--sage); }
.sm-term { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 600; color: var(--navy); line-height: 1.2; }
.sm-def { font-size: clamp(1rem, 2.4vw, 1.3rem); line-height: 1.5; font-weight: 500; }
.sm-hint { position: absolute; bottom: 14px; font-size: .8rem; color: var(--text-soft); }
.sm-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.sm-actions .btn { min-width: 170px; }
.sm-actions .kbd { color: var(--navy); }
.sm-ok { --btn-bg: var(--success); --btn-fg: var(--white); }
.sm-err { --btn-bg: var(--coral-50); --btn-fg: var(--danger); border-color: rgba(181,65,43,.3); box-shadow: none; }
.sm-stop { background: none; border: 0; color: var(--text-soft); font-weight: 700; text-decoration: underline; cursor: pointer; }
.sm-score { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.sm-big { min-width: 170px; text-align: center; padding: 22px 26px; border-radius: 20px; }
.sm-big b { display: block; font-family: var(--font-display); font-size: 3.4rem; line-height: 1; font-weight: 600; }
.sm-big span { font-weight: 700; font-size: .92rem; }
.sm-big.good { background: #E4F3EB; color: #175E41; }
.sm-big.bad { background: var(--coral-50); color: var(--danger); }
.sm-missed { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sm-missed li { background: var(--cream); border-left: 4px solid var(--coral); border-radius: 0; padding: 12px 16px; display: grid; gap: 2px; }
.sm-missed strong { color: var(--navy); }
.sm-missed span { color: var(--text-soft); font-size: .95rem; }
@media (max-width: 860px) { .sm-setup { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .sm-decks { grid-template-columns: 1fr; }
  .sm-card { aspect-ratio: 4 / 3; }
  .sm-face { padding: 36px 20px 30px; }
  .sm-actions .btn { min-width: 0; flex: 1; white-space: nowrap; overflow-wrap: normal; padding-left: 14px; padding-right: 14px; }
  .sm-actions .kbd { display: none; }
  .sm-stats { gap: 8px; flex-wrap: nowrap; }
  .sm-timer { font-size: 1.1rem; min-width: 0; padding: 8px 14px; }
  .sm-count { font-size: 1rem; padding: 8px 12px; gap: 5px; }
  .sm-count small { font-size: .7rem; }
}

/* Printable cards */
.print-controls { display: grid; gap: 22px; }
.print-controls .chip-group label { font-size: .88rem; }
.print-preview { background: var(--cream-200); border-radius: var(--radius-lg); padding: 28px; max-height: 760px; overflow: auto; }
.print-area { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ppage { background: #fff; box-shadow: var(--shadow-sm); }
.ppage-card { width: 6in; height: 3in; }
.ppage-sheet { width: 6in; display: flex; flex-direction: column; padding: 0; }
.pcard { position: relative; width: 6in; height: 3in; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0.35in 0.45in; color: #173F4F; }
.ppage-sheet .pcard { border: 1px dashed #9AA6A2; }
.ppage-sheet .pcard + .pcard { border-top: 0; }
.pc-tag { position: absolute; top: 0.18in; left: 0.3in; right: 0.3in; text-align: left; font: 800 8pt/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #176B6B; }
.pc-term { font: 600 24pt/1.2 var(--font-display); color: #173F4F; }
.pc-def { font: 500 14pt/1.45 var(--font-body); color: #283238; }
.pc-brand { position: absolute; bottom: 0.14in; right: 0.3in; font: 600 7pt var(--font-body); color: #8A9A96; }
.pcard-back .pc-tag { color: #56636A; text-transform: none; letter-spacing: 0; font-size: 9pt; }
@media (max-width: 860px) {
  .print-preview { padding: 14px; }
  .print-area { zoom: .55; }
}
@media print {
  .no-print, .site-header, .site-footer, .skip-link { display: none !important; }
  html, body { background: #fff !important; }
  .print-wrap, .print-wrap .container { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .print-preview { padding: 0; background: none; max-height: none; overflow: visible; border-radius: 0; }
  .print-area { display: block; zoom: 1; }
  .ppage { box-shadow: none; break-after: page; page-break-after: always; margin: 0; }
  .ppage:last-child { break-after: auto; page-break-after: auto; }
  .pcard { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Free RBT practice test page */
.pt-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.pt-q { padding: clamp(22px, 4vw, 34px); }
.pt-q-text { font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 500; line-height: 1.4; margin-bottom: 20px; font-variation-settings: "opsz" 36; }
.pt-q .options { margin-bottom: 18px; }
.pt-answer { border-top: 1px solid var(--cream-200); padding-top: 14px; }
.pt-answer summary { cursor: pointer; font-weight: 700; color: var(--teal); }
.pt-answer summary:hover { color: var(--teal-600); }
.pt-answer p { margin: 12px 0 0; color: var(--text-soft); }
.pt-correct { display: flex; gap: 8px; align-items: flex-start; color: var(--success) !important; font-weight: 700; }
.pt-correct svg { width: 20px; height: 20px; margin-top: 3px; }
.pt-score { margin-top: 22px; padding: 14px 20px; background: var(--sage-50); position: sticky; bottom: 12px; box-shadow: var(--shadow); font-size: .95rem; }
.pt-score p { margin: 0; }

/* 404 */
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.not-found .container > svg { width: min(360px, 80%); margin: 0 auto 24px; }

/* Utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-soft); }
.tag-new { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--coral); color: var(--ink-on-coral); padding: 3px 8px; border-radius: 6px; vertical-align: middle; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .domain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .hero-grid, .split, .split.form-split, .page-hero-grid, .quiz-intro, .feature-exam { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .hero-art { max-width: 520px; margin: 0 auto; }
  .page-hero-art { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature-exam-art { display: none; }
  .results-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; }
  .grid.steps { gap: 44px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .domain-grid, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .btn { white-space: normal; text-align: center; overflow-wrap: anywhere; }
  .btn-row .btn { width: 100%; }
  .hero .btn-row .btn { width: 100%; }
  .q-nav-grid { grid-template-columns: repeat(5, 1fr); }
  .quiz-actions { flex-direction: column-reverse; align-items: stretch; }
  .quiz-actions .left, .quiz-actions .right { width: 100%; }
  .quiz-actions .btn { flex: 1; }
  .cta-band { text-align: left; }
  .email-card { padding: 24px; }
  .brand-name { font-size: 1.05rem; }
  .brand-mark { width: 38px; height: 38px; }
  .option { padding: 15px 16px; gap: 12px; }
  .score-ring { width: 170px; height: 170px; }
  th, td { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

@media print {
  .site-header, .site-footer, .quiz-actions, .q-nav, .btn { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
