/* ============================================================
   BrainyEdHub — Design Tokens
   Palette: navy #0A2540 (primary), navy-deep #071A30 (bg dark),
            orange #FF6B00 (accent/CTA), sky #4FB6E8 (secondary accent),
            cream #F7F5F1 (light bg), ink #1C2431 (text)
   Type: Fraunces (display/serif, warm + academic) / Public Sans (body,
         plain-spoken and legible) / IBM Plex Mono (data — prices, stats)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --navy: #0A2540;
  --navy-deep: #071A30;
  --navy-soft: #123A63;
  --orange: #FF6B00;
  --orange-deep: #D95700;
  --sky: #4FB6E8;
  --cream: #F7F5F1;
  --cream-dim: #EFEBE2;
  --ink: #1C2431;
  --ink-soft: #52596B;
  --line: rgba(10, 37, 64, 0.12);
  --radius: 14px;
  --shadow: 0 12px 32px rgba(10, 37, 64, 0.10);
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: 'Public Sans', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--navy); }

.mono {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.02em;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Public Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,107,0,0.28); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.2rem;
}
.brand-mark {
  width: 34px; height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"] { border-bottom: 2px solid var(--orange); padding-bottom: 4px; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; }
.nav-cta-link { display: none; }

@media (max-width: 820px) {
  .nav-links { position: fixed; inset: 68px 0 0 0; background: var(--navy); flex-direction: column; padding: 32px 24px; gap: 22px; transform: translateX(100%); transition: transform 0.25s ease; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }
  .nav-cta .btn-primary { display: none; }
  .nav-cta-link {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--orange); color: #fff; text-decoration: none;
    font-weight: 700; font-size: 0.95rem; padding: 13px 22px; border-radius: 999px;
    margin-top: 8px; width: 100%;
  }
}

/* ---------- Hero + Hub diagram (signature element) ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sky);
  border: 1px solid rgba(79,182,232,0.4);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-sub { color: rgba(255,255,255,0.78); font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat .num { font-family: 'IBM Plex Mono', monospace; font-size: 1.6rem; font-weight: 600; color: var(--orange); }
.hero-stat .label { font-size: 0.82rem; color: rgba(255,255,255,0.65); }

/* Hub diagram */
.hub-wrap { position: relative; aspect-ratio: 1/1; max-width: 520px; margin: 0 auto; }
.hub-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-wrap svg line { stroke: rgba(79,182,232,0.35); stroke-width: 1.5; stroke-dasharray: 4 4; }
.hub-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 118px; height: 118px; border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 0 0 8px rgba(255,255,255,0.05), 0 20px 40px rgba(0,0,0,0.35);
  padding: 14px;
  animation: hubPulse 4s ease-in-out infinite;
}
.hub-center img { width: 100%; height: 100%; object-fit: contain; }
@keyframes hubPulse { 0%,100% { box-shadow: 0 0 0 8px rgba(255,255,255,0.05), 0 20px 40px rgba(0,0,0,0.35); } 50% { box-shadow: 0 0 0 14px rgba(255,255,255,0.03), 0 20px 40px rgba(0,0,0,0.4); } }

.hub-node {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  animation: nodeIn 0.6s ease forwards;
}
.hub-node:nth-of-type(1){ animation-delay: 0.15s; }
.hub-node:nth-of-type(2){ animation-delay: 0.25s; }
.hub-node:nth-of-type(3){ animation-delay: 0.35s; }
.hub-node:nth-of-type(4){ animation-delay: 0.45s; }
.hub-node:nth-of-type(5){ animation-delay: 0.55s; }
.hub-node:nth-of-type(6){ animation-delay: 0.65s; }
.hub-node:nth-of-type(7){ animation-delay: 0.75s; }
@keyframes nodeIn { from { opacity: 0; transform: translate(-50%,-50%) scale(0.8); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@media (max-width: 560px) {
  .hub-node { font-size: 0.62rem; padding: 5px 8px; }
  .hub-center { width: 84px; height: 84px; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { color: var(--orange-deep); border-color: rgba(255,107,0,0.35); }

.bg-cream-dim { background: var(--cream-dim); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: rgba(255,255,255,0.72); }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon-dot {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--sky), var(--orange));
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace; color: #fff; font-weight: 600; font-size: 0.95rem;
}

.level-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.level-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  background: var(--cream-dim);
  color: var(--navy);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

/* ---------- Pricing ---------- */
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.price-card.featured { border: 2px solid var(--orange); box-shadow: var(--shadow); }
.price-card.featured .badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--orange); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; letter-spacing: 0.03em;
}
.price-amount { font-family: 'IBM Plex Mono', monospace; font-size: 2.1rem; font-weight: 600; color: var(--navy); margin: 10px 0 4px; }
.price-amount span { font-size: 0.95rem; color: var(--ink-soft); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 28px; flex-grow: 1; }
.price-card li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-soft); }
.price-card li:first-child { border-top: none; }
.price-note { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin-top: 28px; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative;
}
.testimonial .quote-mark { font-family: 'Fraunces', serif; font-size: 2.6rem; color: var(--orange); line-height: 0.4; display: block; margin-bottom: 14px; }
.testimonial p { color: var(--ink); font-style: italic; }
.testimonial .who { font-weight: 700; color: var(--navy); font-style: normal; font-size: 0.9rem; margin-top: 14px; }
.testimonial .who span { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.82rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 4px; }
.step .step-num {
  font-family: 'IBM Plex Mono', monospace; color: var(--orange); font-weight: 600;
  font-size: 0.85rem; display: block; margin-bottom: 10px;
}

/* ---------- Form ---------- */
.form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--navy); margin: 16px 0 6px; }
input, select, textarea {
  width: 100%;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); background: #fff; }
textarea { resize: vertical; min-height: 120px; }
.form-submit { margin-top: 24px; }

/* ---------- Contact info strip ---------- */
.contact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
@media (max-width: 760px) { .contact-strip { grid-template-columns: 1fr; } }
.contact-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-item .label { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--orange-deep); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-item .value { font-weight: 700; color: var(--navy); margin-top: 6px; font-size: 1.02rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff; text-align: center; border-radius: 20px;
  padding: 56px 32px; margin: 0 24px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 50ch; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.6); padding: 56px 0 28px; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-family: 'Public Sans', sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.62); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 0.82rem; flex-wrap: wrap; gap: 10px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.28);
  z-index: 999;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 28px rgba(10, 37, 64, 0.34); }
.whatsapp-float:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
@media (max-width: 620px) { .whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; } }

/* ---------- Booking widget (Calendly) ---------- */
.booking-choice { margin-bottom: 8px; }
.calendly-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 8px;
}

/* ---------- Resource / video cards (Formula Friday) ---------- */
.resource-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.resource-video {
  aspect-ratio: 16/9;
  background: var(--navy-deep);
  position: relative;
}
.resource-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.resource-video .video-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; color: rgba(255,255,255,0.55); font-size: 0.82rem; text-align: center; padding: 0 16px;
}
.resource-video .play-dot {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,107,0,0.9);
  display: flex; align-items: center; justify-content: center;
}
.resource-video .play-dot svg { width: 16px; height: 16px; fill: #fff; margin-left: 2px; }
.resource-body { padding: 20px 20px 22px; flex-grow: 1; display: flex; flex-direction: column; }
.resource-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--orange-deep); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.resource-body h3 { margin-bottom: 8px; }
.resource-body p { flex-grow: 1; }

/* ---------- Discuss-pricing link ---------- */
.discuss-pricing-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  color: var(--orange-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.discuss-pricing-link:hover { border-bottom-color: var(--orange-deep); }

/* ---------- Consent checkbox ---------- */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 4px 0 16px;
  cursor: pointer;
}
.consent-check input[type="checkbox"] {
  width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; accent-color: var(--orange);
}

/* ---------- FAQ accordion ---------- */
.faq-group { margin-bottom: 34px; }
.faq-group-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--orange-deep); font-weight: 600; margin-bottom: 12px;
}
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 600; color: var(--navy); font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.3rem; font-weight: 400; color: var(--orange);
  flex-shrink: 0; transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item .faq-answer { padding: 4px 20px 18px; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.6; }
.faq-item .faq-answer p { margin: 0 0 10px; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Subject card "Learn more" link ---------- */
.learn-more-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 10px; font-size: 0.85rem; font-weight: 600;
  color: var(--orange-deep); text-decoration: none;
}
.learn-more-link:hover { text-decoration: underline; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: var(--navy); color: #fff; padding: 16px 22px;
  display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
  box-shadow: 0 -6px 20px rgba(10,37,64,0.25);
}
.cookie-banner p { margin: 0; font-size: 13px; line-height: 1.5; color: #D6E1EE; max-width: 640px; flex: 1; min-width: 240px; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn-ghost { border-color: rgba(255,255,255,0.3); color: #fff; }
.cookie-banner .btn-ghost:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 620px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner-actions { justify-content: center; }
}

/* ---------- Calendly consent prompt fallback ---------- */
.calendly-consent-prompt {
  padding: 32px 24px; text-align: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.calendly-consent-prompt p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; margin: 0 0 16px; }
.calendly-consent-prompt a { color: var(--orange-deep); font-weight: 600; }

/* ---------- Quiz Arena ---------- */
.qz-app {
  --good: #1E8E6B; --good-bg: #E7F5EF; --bad: #C0392B; --bad-bg: #FBEAE8;
  background: var(--cream); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto;
}
.qz-topbar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between;
}
.qz-brand { display: flex; align-items: center; gap: 10px; }
.qz-brand-mark {
  width: 32px; height: 32px; border-radius: 8px; background: var(--orange);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0;
}
.qz-brand-text { font-weight: 700; font-size: 15px; }
.qz-preview-badge {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(255,255,255,0.14); padding: 5px 10px; border-radius: 999px; color: #C7D6E8;
}
.qz-screen { padding: 28px 24px 30px; }
.qz-title { font-size: 22px; color: var(--navy); margin: 0 0 8px; font-weight: 700; }
.qz-sub { color: var(--ink-soft); font-size: 14px; line-height: 1.55; margin: 0 0 22px; }
.qz-field-label { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; }
.qz-picker {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14.5px; color: var(--ink); background: #fff; margin-bottom: 18px; cursor: pointer;
}
.qz-picker:focus { outline: 2px solid var(--sky); outline-offset: 1px; }
.qz-btn-block { width: 100%; justify-content: center; }
.qz-note { margin-top: 18px; padding: 12px 14px; background: #FDF3E9; border: 1px solid #F3D9BC; border-radius: 10px; font-size: 12.5px; color: #8A5A20; line-height: 1.5; }

.qz-quiz-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.qz-quiz-meta { font-size: 12px; color: var(--ink-soft); }
.qz-quiz-score { font-size: 13px; font-weight: 700; color: var(--navy); }
.qz-quiz-score .qz-streak { color: var(--orange-deep); }

.qz-timer-track { height: 7px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.qz-timer-fill { height: 100%; background: var(--sky); border-radius: 999px; transition: width 0.1s linear; }
.qz-timer-fill.qz-warn { background: var(--orange); }
.qz-timer-fill.qz-danger { background: var(--bad); }

.qz-question-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; margin-bottom: 18px; }
.qz-question-topic { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sky); font-weight: 700; margin-bottom: 8px; }
.qz-question-text { font-size: 18px; color: var(--navy); font-weight: 700; line-height: 1.4; }

.qz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .qz-options { grid-template-columns: 1fr; } }
.qz-option-btn {
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 14px 14px;
  font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left;
  transition: border-color 0.12s, background 0.12s; outline: none;
}
.qz-option-btn:hover:not(:disabled) { border-color: var(--sky); background: #F3FAFD; }
.qz-option-btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.qz-option-btn:disabled { cursor: default; }
.qz-option-btn.qz-correct { background: var(--good-bg); border-color: var(--good); color: var(--good); }
.qz-option-btn.qz-wrong { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }

.qz-feedback-line { min-height: 22px; font-size: 13.5px; font-weight: 700; margin-bottom: 4px; text-align: center; }
.qz-feedback-line.qz-correct { color: var(--good); }
.qz-feedback-line.qz-wrong { color: var(--bad); }

.qz-results-score { text-align: center; padding: 10px 0 22px; }
.qz-results-num { font-size: 48px; font-weight: 700; color: var(--navy); }
.qz-results-den { font-size: 20px; color: var(--ink-soft); }
.qz-results-label { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.qz-results-stats { display: flex; gap: 10px; margin-bottom: 22px; }
.qz-stat-card { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-align: center; }
.qz-stat-val { font-size: 19px; font-weight: 700; color: var(--navy); }
.qz-stat-label { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; margin-top: 3px; }
.qz-btn-row { display: flex; gap: 10px; }
.qz-btn-row .btn { flex: 1; }

/* ---------- Plain content pages (Privacy Policy etc.) ---------- */
.policy-content h2 { color: var(--navy); font-size: 1.35rem; margin: 36px 0 12px; }
.policy-content h2:first-of-type { margin-top: 8px; }
.policy-content ul { padding-left: 20px; margin: 0 0 1em; }
.policy-content ul li { color: var(--ink-soft); margin-bottom: 6px; line-height: 1.6; }

/* ---------- Footer social icons ---------- */
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.footer-social a:hover { background: var(--orange); }
.footer-social svg { width: 17px; height: 17px; fill: #fff; }
