/* ── ClearMortgage × Crown Money — "Mortgage IQ" quiz ───────────────────────
   Brand: #250B40 (royal), #E6DEEE (lavender), white — plus derived tints.
   Type: Fraunces (display serif) + Schibsted Grotesk (body).                */

:root {
  --royal: #250B40;
  --royal-deep: #1A0730;
  --royal-soft: #321352;
  --royal-card: #2C1049;
  --lavender: #E6DEEE;
  --lavender-mid: #A78BC9;
  --lavender-dim: #8f7cab;
  --gold: #E9BB5F; /* sparing accent — matches the award seals */
  --white: #ffffff;
  --ink: var(--lavender);
  --ink-strong: var(--white);
  --ink-muted: rgba(230, 222, 238, 0.8);
  --line: rgba(230, 222, 238, 0.14);
  --shadow: 0 24px 60px -24px rgba(10, 2, 22, 0.8);
  --radius: 20px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--royal);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Layered atmosphere: two glows + grain, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(167, 139, 201, 0.22), transparent 60%),
    radial-gradient(800px 700px at -10% 100%, rgba(230, 222, 238, 0.10), transparent 55%),
    linear-gradient(180deg, var(--royal-deep), var(--royal) 40%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

::selection { background: var(--lavender); color: var(--royal); }

/* ── Header ─────────────────────────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
}
header .logo img { height: 34px; display: block; }
.header-cta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lavender);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  transition: all 0.25s ease;
  background: transparent;
  cursor: pointer;
}
.header-cta:hover { background: var(--lavender); color: var(--royal); border-color: var(--lavender); }

/* ── Progress bar (a loan being paid down) ──────────────────────────────── */
#progress-bar-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px clamp(20px, 5vw, 56px);
  display: none;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, rgba(26, 7, 48, 0.92), rgba(26, 7, 48, 0.75));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
#progress-bar-wrap.visible { display: flex; }
.progress-track {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: rgba(230, 222, 238, 0.12);
  overflow: hidden;
}
#progress-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--lavender-mid), var(--lavender));
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
#progress-balance {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* ── Screens ────────────────────────────────────────────────────────────── */
.screen { display: none; }
.screen.active { display: block; animation: screenIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) clamp(20px, 5vw, 48px) 80px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { text-align: left; padding-top: clamp(30px, 7vh, 90px); }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lavender-mid);
  animation: rise 0.7s 0.05s both;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--lavender-mid); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  margin: 22px 0 26px;
  max-width: 16ch;
  animation: rise 0.7s 0.15s both;
}
.hero h1 em {
  /* brush-stroke highlight: gold paint smear with turbulence-roughened edges */
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  color: var(--royal-deep);
  display: inline-block;
  padding: 0.02em 0.18em 0.06em;
  margin: -0.02em -0.06em;
  transform: rotate(-1.6deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 80' preserveAspectRatio='none'%3E%3Cfilter id='r' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.021 0.12' numOctaves='3' seed='11'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='16'/%3E%3C/filter%3E%3Cg filter='url(%23r)'%3E%3Crect x='12' y='16' width='276' height='48' rx='22' fill='%23E9BB5F'/%3E%3Crect x='20' y='10' width='250' height='24' rx='12' fill='%23E9BB5F' opacity='0.85'/%3E%3Crect x='30' y='48' width='240' height='22' rx='11' fill='%23E9BB5F' opacity='0.9'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.hero p.sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  max-width: 52ch;
  color: var(--ink-muted);
  animation: rise 0.7s 0.25s both;
}
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 38px; flex-wrap: wrap; animation: rise 0.7s 0.35s both; }

.btn-primary {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--royal);
  background: var(--lavender);
  border: none;
  border-radius: 999px;
  padding: 17px 38px;
  cursor: pointer;
  box-shadow: 0 14px 40px -12px rgba(230, 222, 238, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--white); box-shadow: 0 20px 50px -12px rgba(230, 222, 238, 0.55); }
.btn-primary:active { transform: translateY(0); }

.hero p.sub mark {
  background: none;
  color: var(--gold);
  font-weight: 600;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  animation: rise 0.7s 0.45s both;
}
.chip {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lavender);
  border: 1px solid rgba(230, 222, 238, 0.25);
  background: rgba(230, 222, 238, 0.06);
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
}
.chip::first-letter { color: var(--gold); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(48px, 8vh, 90px);
  animation: rise 0.7s 0.5s both;
}
.hero-stat { background: rgba(44, 16, 73, 0.75); padding: 26px 24px; }
.hero-stat .big {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 560;
  color: var(--white);
}
.hero-stat .small { font-size: 0.82rem; color: var(--ink-muted); margin-top: 6px; line-height: 1.45; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ── "As featured in" media marquee ─────────────────────────────────────── */
.featured-band {
  margin-top: clamp(48px, 8vh, 90px);
  background: var(--lavender);
  padding: 26px 0 30px;
  animation: rise 0.7s 0.6s both;
}
.featured-label {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(37, 11, 64, 0.72);
  margin-bottom: 18px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(44px, 6vw, 80px);
  width: max-content;
  padding-right: clamp(44px, 6vw, 80px);
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 34px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  flex: 0 0 auto;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ── Testimonials & awards (results screen) ─────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  color: var(--ink-strong);
  text-align: center;
  margin-bottom: 8px;
}
.testimonials { margin: 56px 0 10px; }
.testimonial-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 18px 4px 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.testimonial-row::-webkit-scrollbar { height: 8px; }
.testimonial-row::-webkit-scrollbar-thumb { background: rgba(230, 222, 238, 0.2); border-radius: 99px; }
.t-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: rgba(44, 16, 73, 0.78);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  margin: 0;
}
.t-card video {
  display: block;
  width: 100%;
  border-radius: 10px;
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.t-card figcaption {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 8px 6px;
  text-align: center;
}

.reviews-embed { margin: 40px 0; }
.reviews-embed .section-title { margin-bottom: 22px; }
/* The Elfsight widget ships dark text, so it sits on a light panel. */
.reviews-embed .elfsight-app-c912648e-ee80-4fa9-aad8-dd9c4c6145fa {
  min-height: 140px;
  background: var(--lavender);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 34px);
}

.awards { margin: 40px 0 56px; }
.awards-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  margin-top: 22px;
}
.awards-row img {
  height: clamp(74px, 9vw, 104px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(10, 2, 22, 0.5));
}

/* ── Quiz ───────────────────────────────────────────────────────────────── */
.quiz-shell { max-width: 720px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) clamp(20px, 5vw, 48px) 80px; }

.quiz-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
#q-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavender-mid);
}
.score-wrap { position: relative; font-size: 0.82rem; color: var(--ink-muted); }
#score-chip {
  position: absolute;
  right: 0;
  top: -6px;
  font-weight: 800;
  color: var(--white);
  opacity: 0;
}
#score-chip.pop { animation: chipPop 1s ease both; }
@keyframes chipPop {
  0% { opacity: 0; transform: translateY(6px) scale(0.7); }
  25% { opacity: 1; transform: translateY(-8px) scale(1.15); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-26px) scale(1); }
}

#quiz-card {
  background: rgba(44, 16, 73, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow);
}
#quiz-card.enter { animation: cardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

#q-text {
  font-family: var(--font-display);
  font-weight: 540;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.28;
  color: var(--ink-strong);
  margin-bottom: 28px;
}

.option {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background: rgba(230, 222, 238, 0.05);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  animation: rise 0.4s both;
}
.option:hover:not(:disabled) { background: rgba(230, 222, 238, 0.11); border-color: rgba(230, 222, 238, 0.35); transform: translateX(4px); }
.option:disabled { cursor: default; opacity: 0.55; }
.option.picked, .option.picked-best {
  opacity: 1;
  background: var(--lavender);
  color: var(--royal);
  border-color: var(--lavender);
  font-weight: 600;
}
.option.picked-best { box-shadow: 0 0 0 4px rgba(230, 222, 238, 0.25); }
.option-key {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid currentColor;
  border-radius: 8px;
  opacity: 0.7;
}

#q-feedback {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.55;
  background: rgba(230, 222, 238, 0.07);
  border-left: 3px solid var(--lavender-mid);
  color: var(--ink);
}
#q-feedback.show { display: block; animation: rise 0.35s both; }
#q-feedback.good { border-left-color: var(--white); background: rgba(230, 222, 238, 0.12); }

#q-next {
  display: none;
  margin-top: 22px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--royal);
  background: var(--white);
  border: none;
  border-radius: 999px;
  padding: 13px 30px;
  cursor: pointer;
  transition: transform 0.18s ease;
}
#q-next.show { display: inline-block; animation: rise 0.35s 0.1s both; }
#q-next:hover { transform: translateY(-2px); }

/* ── Numbers screen ─────────────────────────────────────────────────────── */
.panel-title {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  color: var(--ink-strong);
  line-height: 1.15;
  margin-bottom: 12px;
}
.panel-sub { color: var(--ink-muted); line-height: 1.6; max-width: 56ch; margin-bottom: 34px; }

.slider-row { margin-bottom: 26px; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.slider-head label { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.slider-head .value-edit {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 560;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(230, 222, 238, 0.35);
  border-radius: 0;
  text-align: right;
  width: min(46vw, 200px);
  padding: 2px 4px 4px;
  outline: none;
  cursor: text;
  transition: border-color 0.2s ease;
}
.slider-head .value-edit:hover { border-bottom-color: rgba(230, 222, 238, 0.6); }
.slider-head .value-edit:focus {
  border-bottom: 1px solid var(--lavender);
  background: rgba(230, 222, 238, 0.06);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: rgba(230, 222, 238, 0.14);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lavender);
  border: 4px solid var(--royal-deep);
  box-shadow: 0 4px 14px rgba(10, 2, 22, 0.6);
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lavender);
  border: 3px solid var(--royal-deep);
}

.field-row { margin: 30px 0 8px; max-width: 280px; }
.field-row label { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 8px; }
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--white);
  background: rgba(230, 222, 238, 0.07);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
input:focus { border-color: var(--lavender-mid); background: rgba(230, 222, 238, 0.11); }
input::placeholder { color: rgba(230, 222, 238, 0.35); }

.form-error {
  display: none;
  margin-top: 14px;
  font-size: 0.9rem;
  color: #ffd7e0;
  background: rgba(255, 120, 150, 0.12);
  border-left: 3px solid #ff9ab5;
  padding: 12px 16px;
  border-radius: 10px;
}
.form-error.show { display: block; animation: rise 0.3s both; }

/* ── Contact gate ───────────────────────────────────────────────────────── */
.gate-card {
  max-width: 520px;
  margin: 0 auto;
  background: rgba(44, 16, 73, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
  text-align: center;
}
.gate-lock { font-size: 2rem; margin-bottom: 14px; }
.gate-card .panel-title { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.gate-card .panel-sub { margin: 0 auto 28px; }
.gate-fields { display: grid; gap: 14px; text-align: left; }
.gate-fields input { font-size: 1rem; }
.gate-privacy { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.6; margin-top: 18px; }

/* ── Loading ────────────────────────────────────────────────────────────── */
.loading-wrap { text-align: center; padding: 16vh 24px; }
.loading-crown {
  width: 66px;
  margin: 0 auto 34px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.1); opacity: 1; }
}
#loading-line {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  color: var(--ink-strong);
  min-height: 2.2em;
}
.loading-bar {
  width: min(320px, 70vw);
  height: 5px;
  margin: 26px auto 0;
  border-radius: 99px;
  background: rgba(230, 222, 238, 0.12);
  overflow: hidden;
}
.loading-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 99px;
  background: var(--lavender);
  animation: slide 1.1s ease-in-out infinite;
}
@keyframes slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(280%); }
}

/* ── Results ────────────────────────────────────────────────────────────── */
.results-head { text-align: center; margin-bottom: 46px; }
.results-head .eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lavender-mid);
}
.results-head h2 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  color: var(--ink-strong);
  line-height: 1.1;
  margin: 14px auto 0;
  max-width: 22ch;
}

.iq-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 60px);
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.iq-dial { position: relative; width: 200px; height: 200px; }
.iq-dial svg { transform: rotate(135deg); }
.iq-dial .track, .iq-dial .arc { fill: none; stroke-width: 14; stroke-linecap: round; }
.iq-dial .track { stroke: rgba(230, 222, 238, 0.12); stroke-dasharray: 395.8 527.8; }
.iq-dial .arc { stroke: var(--lavender); transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1); }
.iq-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
#iq-score { font-family: var(--font-display); font-size: 3rem; font-weight: 560; color: var(--white); line-height: 1; }
.iq-center small { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-top: 6px; }
.iq-copy { max-width: 380px; }
#res-tier {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 560;
  color: var(--white);
  margin-bottom: 10px;
}
#res-tier-line { color: var(--ink-muted); line-height: 1.6; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 40px 0;
}
.stat-tile {
  background: rgba(44, 16, 73, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.stat-tile.featured { background: var(--lavender); border-color: var(--lavender); }
.stat-tile .label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.stat-tile.featured .label { color: rgba(37, 11, 64, 0.6); }
.stat-tile .value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 560;
  color: var(--white);
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.stat-tile.featured .value { color: var(--royal); }
.stat-tile .note { font-size: 0.84rem; color: var(--ink-muted); margin-top: 8px; line-height: 1.5; }
.stat-tile.featured .note { color: rgba(37, 11, 64, 0.65); }

.chart-card {
  position: relative;
  background: rgba(44, 16, 73, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3.5vw, 36px);
  margin-bottom: 26px;
}
.chart-card h3 {
  font-family: var(--font-display);
  font-weight: 540;
  font-size: 1.25rem;
  color: var(--ink-strong);
  margin-bottom: 4px;
}
.chart-card .chart-sub { font-size: 0.86rem; color: var(--ink-muted); margin-bottom: 20px; }
.chart-legend { display: flex; gap: 20px; font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 14px; }
.chart-legend .sw { display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.sw-bank { background: var(--lavender-mid); }
.sw-crown { background: var(--white); }

#chart-balance svg { width: 100%; height: auto; display: block; }
#chart-balance .grid { stroke: rgba(230, 222, 238, 0.09); stroke-width: 1; }
#chart-balance .axis { fill: rgba(230, 222, 238, 0.75); font-size: 13px; font-family: var(--font-body); }
#chart-balance .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.2s 0.3s ease-out forwards; }
.line-bank { stroke: var(--lavender-mid); }
.line-crown { stroke: var(--white); }
@keyframes draw { to { stroke-dashoffset: 0; } }
#chart-balance .line-label { font-size: 13px; font-weight: 700; font-family: var(--font-body); }
.label-bank { fill: var(--lavender-mid); }
.label-crown { fill: var(--white); }
#chart-balance .crosshair { stroke: rgba(230, 222, 238, 0.35); stroke-width: 1; stroke-dasharray: 3 3; }
.dot-bank { fill: var(--lavender-mid); stroke: var(--royal-card); stroke-width: 2; }
.dot-crown { fill: var(--white); stroke: var(--royal-card); stroke-width: 2; }

#chart-tooltip {
  display: none;
  position: absolute;
  z-index: 5;
  pointer-events: none;
  background: var(--royal-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(10, 2, 22, 0.6);
  min-width: 130px;
}
#chart-tooltip strong { color: var(--white); display: block; }
#chart-tooltip .tt-row { display: flex; align-items: center; white-space: nowrap; }
#chart-tooltip .sw { width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; flex: 0 0 auto; }

/* interest comparison bars */
.ibar-row { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 14px; margin-bottom: 16px; }
.ibar-name { font-size: 0.86rem; font-weight: 600; }
.ibar-track { height: 30px; border-radius: 8px; background: rgba(230, 222, 238, 0.07); overflow: hidden; }
.ibar { height: 100%; width: 0; border-radius: 8px 4px 4px 8px; transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.ibar.grow { width: var(--w); }
.ibar-bank { background: var(--lavender-mid); }
.ibar-crown { background: var(--white); }
.ibar-val { font-family: var(--font-display); font-size: 1.05rem; color: var(--white); font-variant-numeric: tabular-nums; }

/* inline booking CTAs between results sections */
.cta-inline {
  text-align: center;
  margin: 38px auto 44px;
}
.cta-inline p {
  max-width: 52ch;
  margin: 0 auto 18px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-muted);
}
.cta-inline p b { color: var(--white); }

/* sticky booking bar (results screen only) */
#cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(26, 7, 48, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(230, 222, 238, 0.25);
  animation: rise 0.4s both;
}
body.results-active #cta-bar { display: flex; }
body.results-active #cta-bar.suppressed { display: none; }
.cta-bar-text { font-size: 0.88rem; color: var(--ink-muted); }
.cta-bar-text b { color: var(--white); }
.cta-bar-btn {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--royal);
  background: var(--lavender);
  border: none;
  border-radius: 999px;
  padding: 11px 26px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cta-bar-btn:hover { transform: translateY(-1px); background: var(--white); }
/* keep the last content clear of the bar */
body.results-active footer { padding-bottom: 110px; }

/* collapsible deep-dive cards (progressive disclosure on results) */
.reveal-card { padding: 0; }
.reveal-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(18px, 3vw, 26px) clamp(20px, 3.5vw, 36px);
  user-select: none;
}
.reveal-card summary::-webkit-details-marker { display: none; }
.reveal-icon { font-size: 1.25rem; flex: 0 0 auto; }
.reveal-title {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 540;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-strong);
  line-height: 1.3;
}
.reveal-title em { font-style: italic; color: var(--lavender); }
.chev {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}
.reveal-card[open] .chev { transform: rotate(180deg); }
.reveal-card summary:hover .reveal-title { color: var(--lavender); }
.reveal-body { padding: 0 clamp(20px, 3.5vw, 36px) clamp(20px, 3.5vw, 32px); }
.reveal-body > .chart-sub:first-child { margin-top: 2px; }

/* adjust-my-numbers panel */
.adjust-panel {
  margin: -14px 0 30px;
  border: 1px dashed rgba(230, 222, 238, 0.3);
  border-radius: 14px;
  background: rgba(230, 222, 238, 0.04);
  padding: 0;
}
.adjust-panel summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 20px;
  font-size: 0.92rem;
  color: var(--ink-muted);
  user-select: none;
}
.adjust-panel summary::-webkit-details-marker { display: none; }
.adjust-panel summary b { color: var(--lavender); }
.adjust-panel summary:hover b { color: var(--white); }
.adjust-panel[open] summary { border-bottom: 1px dashed rgba(230, 222, 238, 0.2); }
.adjust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  padding: 20px 20px 4px;
}
.adjust-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.adjust-grid input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  background: rgba(230, 222, 238, 0.07);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}
.adjust-grid input:focus { border-color: var(--lavender-mid); }
.adjust-apply {
  margin: 16px 20px 20px;
  padding: 12px 28px;
  font-size: 0.92rem;
}

/* live interest ticker */
.ticker-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: rgba(44, 16, 73, 0.78);
  border: 1px solid rgba(230, 222, 238, 0.28);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.ticker-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--lavender);
  animation: tick-pulse 1.6s ease-in-out infinite;
}
@keyframes tick-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 222, 238, 0.5); }
  50% { box-shadow: 0 0 0 9px rgba(230, 222, 238, 0); }
}
.ticker-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ticker-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 560;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  margin: 6px 0 8px;
}
.ticker-sub { font-size: 0.9rem; line-height: 1.6; color: var(--ink-muted); }
.ticker-sub b { color: var(--white); font-variant-numeric: tabular-nums; }

.fine-print {
  margin-top: 16px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(230, 222, 238, 0.55);
}
.chart-card h3 em { font-style: italic; color: var(--lavender); }

/* payment comparison strip */
.pmt-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 26px;
}
.pmt-cell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(44, 16, 73, 0.5);
  padding: 20px 24px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.pmt-cell strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 560; color: var(--white); margin-top: 6px; }

/* booster */
.boost-card {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  background: rgba(230, 222, 238, 0.08);
  border: 1px dashed rgba(230, 222, 238, 0.35);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 26px;
}
.boost-icon { font-size: 2rem; }
.boost-copy { flex: 1; min-width: 240px; font-size: 0.95rem; line-height: 1.6; color: var(--ink); }
.boost-copy b { color: var(--white); }

/* locked lessons */
.locked-card { margin-bottom: 40px; }
.locked-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 18px; }
.locked-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(230, 222, 238, 0.04);
}
.locked-item .lock { opacity: 0.8; }

/* booking */
.book-panel {
  text-align: center;
  background: var(--lavender);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(40px, 6vw, 70px) clamp(24px, 5vw, 60px);
  color: var(--royal);
}
.book-panel h2 {
  font-family: var(--font-display);
  font-weight: 580;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.12;
  max-width: 24ch;
  margin: 0 auto 16px;
}
.book-panel p { max-width: 52ch; margin: 0 auto 30px; line-height: 1.65; color: rgba(37, 11, 64, 0.88); }
.btn-book {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--lavender);
  background: var(--royal);
  border: none;
  border-radius: 999px;
  padding: 18px 44px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 18px 40px -14px rgba(37, 11, 64, 0.55);
}
.btn-book:hover { transform: translateY(-2px); }

.booking-embed {
  min-width: 320px;
  height: 700px;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 50px -18px rgba(37, 11, 64, 0.4);
}
.booking-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.book-note { font-size: 0.88rem !important; margin-top: 18px !important; margin-bottom: 0 !important; color: rgba(37, 11, 64, 0.8) !important; }

/* bank-scandal news section */
.big4-wrap {
  display: block;
  width: min(460px, 100%);
  margin: 4px auto 24px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(230, 222, 238, 0.05);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.big4-wrap:hover { transform: translateY(-3px); border-color: rgba(230, 222, 238, 0.4); }
.big4-img { display: block; width: 100%; }
.big4-caption {
  display: block;
  padding: 16px 20px 18px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
}
.big4-stat {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 560;
  color: var(--white);
  margin-bottom: 2px;
}
.big4-substats {
  display: block;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.big4-substats > span {
  display: block;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.big4-substats b { color: var(--white); }
.big4-src {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lavender-mid);
}

.saviour-line {
  margin: 26px auto 4px;
  max-width: 56ch;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink);
}
.saviour-line b { color: var(--white); }
.saviour-line em {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--lavender);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.news-item {
  display: block;
  background: rgba(230, 222, 238, 0.05);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px 16px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
a.news-item:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 222, 238, 0.4);
  background: rgba(230, 222, 238, 0.09);
}
.news-item > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #fff; /* article screenshots have white pages — seamless frame */
  border-radius: 9px;
  display: block;
  margin-bottom: 12px;
}
.news-video {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #000;
}
.news-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 0 !important;
}
.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 50%;
  background: rgba(10, 2, 22, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  font-size: 1.1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
a.news-item:hover .play-badge { transform: translate(-50%, -50%) scale(1.1); background: rgba(37, 11, 64, 0.9); }
.news-src {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lavender-mid);
  margin: 0 4px 6px;
}
.news-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-strong);
  margin: 0 4px;
}

/* Crown vs national average comparison */
.vs-block { margin-top: 22px; }
.vs-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

/* footer */
footer {
  text-align: center;
  padding: 44px 24px 60px;
  font-size: 0.88rem;
  color: rgba(230, 222, 238, 0.82);
  line-height: 1.9;
}
footer img { height: 28px; opacity: 0.95; margin-bottom: 16px; }
footer a { color: var(--lavender); text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--lavender); }
.footer-about { max-width: 640px; margin: 0 auto 20px; font-size: 0.95rem; color: rgba(230, 222, 238, 0.9); }
footer .disclaimer { max-width: 720px; margin: 0 auto 20px; font-size: 0.8rem; line-height: 2; letter-spacing: 0.02em; color: rgba(230, 222, 238, 0.75); }
.footer-legal { max-width: 640px; margin: 0 auto; font-size: 0.85rem; color: rgba(230, 222, 238, 0.82); }
.gate-privacy a { color: var(--lavender-mid); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  header { padding: 16px 20px; }
  header .logo img { height: 28px; }
  .header-cta { font-size: 0.78rem; padding: 8px 14px; }
  .hero { padding-top: 18px; }
  .hero-actions .btn-primary { width: 100%; text-align: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat { padding: 18px 16px; }
  .hero-stat .big { font-size: 1.25rem; }
  .hero-stat .small { font-size: 0.76rem; }
  .chip { font-size: 0.76rem; padding: 7px 13px; }
  .pmt-strip { grid-template-columns: 1fr; }
  .ibar-row { grid-template-columns: 80px 1fr; }
  .ibar-val { grid-column: 2; }
  .iq-copy { text-align: center; }
  .t-card { flex-basis: 82vw; }
  .booking-embed { border-radius: 12px; }
  .book-panel { padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
