/*
 * Autism Traits Profile — landing page styles.
 *
 * Loaded after /shared/tests-shell.css. Overrides --test-* tokens to the
 * autism palette: deep indigo primary, electric cyan accent, neon lime
 * partner. Friendly, bubbly, neurodivergent-welcoming. Gender-neutral.
 * Reads as "an autism test for adults", not an academic instrument.
 * Distinct from ADHD (electric blue/violet, kinetic, horizontal bars)
 * and attachment-style (warm coral/violet, relational).
 */

/* ===== PALETTE ===== */
:root {
  --test-primary: #4338CA;          /* deep indigo */
  --test-primary-dark: #3730A3;
  --test-primary-light: #E0E7FF;    /* indigo light tint */
  --test-accent: #06B6D4;           /* electric cyan */
  --test-accent-light: #CFFAFE;     /* cyan light tint */
  --test-cta-1: #4F46E5;            /* indigo */
  --test-cta-2: #06B6D4;            /* cyan */
  --test-lime: #84CC16;             /* neon lime — third accent */
  --test-lime-light: #ECFCCB;

  --test-dark: #0F0F1E;
  --test-bg: #FAFAFE;
  --test-surface: #FFFFFF;
  --test-border: #E0E7FF;
  --test-border-strong: #A5B4FC;
  --test-text: #1E1B4B;
  --test-text-light: #3F3F46;
  --test-text-muted: #71717A;

  --test-shadow: 0 2px 12px rgba(79, 70, 229, 0.08);
  --test-shadow-lg: 0 18px 48px rgba(79, 70, 229, 0.16);

  --test-container: 1080px;
  --test-container-narrow: 760px;

  /* Per-theme hues — cool electric ramp with amber + lime standouts */
  --theme-social:       #4F46E5;    /* indigo */
  --theme-sensory:      #06B6D4;    /* cyan */
  --theme-routine:      #7C3AED;    /* violet */
  --theme-interests:    #84CC16;    /* lime */
  --theme-comms:        #0EA5E9;    /* sky */
  --theme-emotional:    #F59E0B;    /* amber */
  --theme-masking:      #10B981;    /* emerald */
}

/* ===== TYPOGRAPHY ===== */
html { scroll-padding-top: 80px; }

body {
  background: var(--test-bg);
  color: var(--test-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--test-font);
  color: var(--test-text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { color: var(--test-text-light); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--test-border);
}

.nav-container {
  max-width: var(--test-container);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--test-text);
}
.nav-logo span {
  background: linear-gradient(135deg, var(--test-cta-1), var(--test-cta-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-logo:hover { color: var(--test-text); }

.nav-menu { display: flex; align-items: center; gap: 1.75rem; }
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--test-text-light);
  transition: color 150ms ease;
}
.nav-link:hover, .nav-link.active { color: var(--test-primary); }

.nav-cta {
  background: linear-gradient(135deg, var(--test-cta-1), var(--test-cta-2));
  color: #FFFFFF !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.32);
  filter: brightness(1.05);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--test-text);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--test-surface);
    border-bottom: 1px solid var(--test-border);
    padding: 0.5rem 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .nav-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-link { padding: 0.85rem 1.5rem; }
}

/* ===== HERO ===== */
.hero-section {
  padding: 5rem 0 4rem;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(79, 70, 229, 0.10), transparent 55%),
    radial-gradient(ellipse at 90% 35%, rgba(6, 182, 212, 0.07), transparent 55%),
    var(--test-bg);
  border-bottom: 1px solid var(--test-border);
}

.hero {
  max-width: var(--test-container-narrow);
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--test-primary);
  background: var(--test-primary-light);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 { margin-bottom: 1.25rem; }
.hero-accent {
  background: linear-gradient(135deg, var(--test-cta-1), var(--test-cta-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--test-text-light);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.hero-cta {
  margin: 0 auto 1.25rem;
  text-decoration: none;
}

.hero-live-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--test-text-light);
}
.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #84CC16;
  animation: autism-pulse-dot 3s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes autism-pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(132, 204, 22, 0.55); }
  50% { opacity: 0.85; box-shadow: 0 0 0 5px rgba(132, 204, 22, 0); }
}

/* ===== SECTIONS ===== */
.section { padding: 4.5rem 0; }
.section--alt { background: var(--test-surface); border-top: 1px solid var(--test-border); border-bottom: 1px solid var(--test-border); }

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--test-accent);
  margin-bottom: 0.75rem;
}
.section-title { text-align: center; margin-bottom: 0.75rem; }
.section-subtitle {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
  color: var(--test-text-light);
  font-size: 1.05rem;
  line-height: 1.65;
}
.section .container > .section-kicker { display: block; text-align: center; }

/* ===== WHAT YOU'LL GET ===== */
.output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: var(--test-container-narrow);
  margin: 0 auto;
}
@media (max-width: 760px) { .output-grid { grid-template-columns: 1fr; } }

.output-card {
  position: relative;
  background: var(--test-surface);
  border: 1px solid var(--test-border);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  box-shadow: var(--test-shadow);
  display: flex;
  flex-direction: column;
}
.output-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 4px solid;
  pointer-events: none;
}
.output-card--profile::before { border-top-color: var(--test-primary); }
.output-card--delivery::before { border-top-color: var(--test-accent); }

.output-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--test-text-muted);
  margin-bottom: 0.75rem;
}
.output-card h3 { margin-bottom: 0.5rem; }
.output-card-lede {
  color: var(--test-text);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.output-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.output-card-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--test-text-light);
  line-height: 1.55;
}
.output-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--test-cta-1), var(--test-cta-2));
}
.output-card-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--test-border);
  font-size: 0.85rem;
  color: var(--test-text-muted);
}

/* ===== SEVEN THEMES ===== */
.section--themes {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(79, 70, 229, 0.06), transparent 60%),
    var(--test-bg);
}

.themes-preview-foot {
  text-align: center;
  font-size: 0.85rem;
  color: var(--test-text-muted);
  margin-top: 1.5rem;
  font-style: italic;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: var(--test-container);
  margin: 0 auto 2.5rem;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.about-block {
  background: var(--test-surface);
  border: 1px solid var(--test-border);
  border-radius: 16px;
  padding: 1.75rem;
}
.about-block h3 { margin-bottom: 0.85rem; color: var(--test-primary); }
.about-block p { margin-bottom: 0.85rem; font-size: 0.96rem; line-height: 1.65; }
.about-block p:last-child { margin-bottom: 0; }

/* ===== FAQ ===== */
.faq-list {
  max-width: var(--test-container-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.faq-item {
  background: var(--test-surface);
  border: 1px solid var(--test-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.faq-item[open] {
  border-color: var(--test-primary-light);
  box-shadow: var(--test-shadow);
}
.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  color: var(--test-text);
  list-style: none;
  position: relative;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--test-primary);
  font-weight: 400;
  font-size: 1.4rem;
  transition: transform 180ms ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 1.4rem 1.2rem;
  margin: 0;
  color: var(--test-text-light);
  line-height: 1.65;
}

/* ===== REVIEWS ===== */
.section--reviews {
  background: var(--test-surface);
  border-top: 1px solid var(--test-border);
  border-bottom: 1px solid var(--test-border);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: var(--test-container);
  margin: 0 auto;
}
@media (max-width: 1000px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reviews-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--test-bg);
  border: 1px solid var(--test-border);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.review-card:hover {
  border-color: var(--test-primary);
  box-shadow: var(--test-shadow);
  transform: translateY(-2px);
}
.review-stars { font-size: 0.95rem; letter-spacing: 0.1em; color: #F59E0B; line-height: 1; }
.review-text { font-size: 0.95rem; color: var(--test-text); line-height: 1.55; margin: 0; font-style: italic; }
.review-author { margin-top: auto; padding-top: 0.5rem; border-top: 1px dashed var(--test-border); }
.review-name { font-size: 0.9rem; font-weight: 600; color: var(--test-text); margin: 0 0 0.15rem; }
.review-country { font-size: 0.8rem; color: var(--test-text-muted); margin: 0; display: flex; align-items: center; gap: 0.35rem; }
.review-flag { font-size: 0.95rem; line-height: 1; }

/* ===== START CARD + CONSENT ===== */
.section--start {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(79, 70, 229, 0.08), transparent 60%),
    var(--test-bg);
  padding: 5rem 0 6rem;
}
.start-card {
  max-width: var(--test-container-narrow);
  margin: 0 auto;
  background: var(--test-surface);
  border: 1px solid var(--test-border);
  border-radius: 22px;
  padding: 2.75rem 2rem;
  box-shadow: var(--test-shadow-lg);
  text-align: center;
}
.start-card-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--test-accent);
  margin-bottom: 0.75rem;
}
.start-card h2 { margin-bottom: 0.75rem; }
.start-card-info { color: var(--test-text-light); margin-bottom: 2rem; font-size: 1rem; }

.screening-notice {
  background: var(--test-primary-light);
  border: 1px solid var(--test-border);
  border-left: 4px solid var(--test-primary);
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: left;
  margin-bottom: 1.75rem;
  transition: box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}
.screening-notice--pulse {
  box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.22);
  border-left-color: var(--test-lime);
  background: var(--test-accent-light);
}
.screening-heading {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--test-primary);
  margin-bottom: 0.6rem;
}
.screening-body {
  font-size: 0.92rem;
  color: var(--test-text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.screening-body a { color: var(--test-primary); text-decoration: underline; }

.screening-ack {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  transition: background 150ms ease;
}
.screening-ack:hover { background: rgba(79, 70, 229, 0.06); }
.screening-ack input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.screening-ack-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--test-border-strong);
  border-radius: 6px;
  background: var(--test-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease, border-color 150ms ease;
  margin-top: 1px;
}
.screening-ack-box::after {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: rotate(-45deg) scale(0);
  transition: transform 150ms ease;
}
.screening-ack input:checked + .screening-ack-box {
  background: linear-gradient(135deg, var(--test-cta-1), var(--test-cta-2));
  border-color: transparent;
}
.screening-ack input:checked + .screening-ack-box::after {
  transform: rotate(-45deg) scale(1) translate(1px, -1px);
}
.screening-ack input:focus-visible + .screening-ack-box {
  outline: 2px solid var(--test-primary);
  outline-offset: 2px;
}
.screening-ack-text { color: var(--test-text); font-weight: 500; font-size: 0.96rem; line-height: 1.5; }

/* CTA */
.btn-hero {
  background: linear-gradient(135deg, var(--test-cta-1) 0%, var(--test-cta-2) 100%);
  color: #FFFFFF;
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, filter 180ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-hero:hover:not([aria-disabled="true"]) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.4);
  filter: brightness(1.05);
}
.btn-hero:active:not([aria-disabled="true"]) { transform: translateY(0); }
.btn-hero[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; box-shadow: none; filter: grayscale(0.2); }

.start-card-foot {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--test-text-muted);
  line-height: 1.5;
}
.start-card-foot code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.78rem;
  background: var(--test-primary-light);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: var(--test-primary-dark);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--test-dark);
  color: #D1D5DB;
  padding: 3rem 0 2rem;
}
.site-footer .container { max-width: var(--test-container); }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-logo { color: #FFFFFF; font-size: 1.1rem; }
.footer-logo:hover { color: #FFFFFF; }
.footer-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-nav a { color: #9CA3AF; font-size: 0.9rem; transition: color 150ms ease; }
.footer-nav a:hover { color: #FFFFFF; }

.footer-attribution { padding: 1.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-attribution p { font-size: 0.8rem; line-height: 1.65; color: #9CA3AF; margin-bottom: 0.85rem; }
.footer-attribution p:last-child { margin-bottom: 0; }

.footer-bottom { padding-top: 1.5rem; }
.disclaimer { font-size: 0.82rem; line-height: 1.65; color: #9CA3AF; margin-bottom: 1.25rem; }
.disclaimer strong { color: #E5E7EB; }
.disclaimer a { color: #5EEAD4; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #6B7280;
}
.footer-links a { color: #9CA3AF; transition: color 150ms ease; }
.footer-links a:hover { color: #FFFFFF; }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .hero-section { padding: 3.5rem 0 2.5rem; }
  .section { padding: 3.5rem 0; }
  .section--start { padding: 4rem 0 4.5rem; }
  .start-card { padding: 2rem 1.25rem; }
  .themes-preview { padding: 1.25rem; }
  .output-card { padding: 1.5rem 1.25rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: 1rem; }
}

/* ============================================================
   STEP SHELLS
   ============================================================ */

.fullscreen-step {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(79, 70, 229, 0.07), transparent 50%),
    radial-gradient(ellipse at 92% 100%, rgba(6, 182, 212, 0.06), transparent 55%),
    var(--test-bg);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--test-border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.step-logo { font-size: 1.1rem; font-weight: 700; color: var(--test-text); letter-spacing: -0.02em; }
.step-logo span {
  background: linear-gradient(135deg, var(--test-cta-1), var(--test-cta-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.btn-exit {
  background: transparent;
  border: 1px solid var(--test-border);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--test-text-light);
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}
.btn-exit:hover { border-color: var(--test-primary); color: var(--test-primary); }

.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}
.step-content > h2 { margin-bottom: 0.75rem; max-width: 640px; }
.step-subtitle { color: var(--test-text-light); margin: 0 0 2rem; max-width: 560px; line-height: 1.6; }
.step-icon-large { font-size: 3rem; margin-bottom: 1rem; }

/* ===== Gender + demo grids ===== */
.gender-grid, .demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 640px;
}
.demo-grid--tall { grid-template-columns: 1fr; max-width: 420px; }
@media (max-width: 600px) {
  .gender-grid { grid-template-columns: 1fr 1fr; }
  .demo-grid:not(.demo-grid--tall) { grid-template-columns: 1fr 1fr; }
}

.gender-option, .demo-option {
  background: var(--test-surface);
  border: 1.5px solid var(--test-border);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--test-text);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 100ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.gender-option:hover, .demo-option:hover {
  border-color: var(--test-primary);
  background: var(--test-primary-light);
}
.gender-option.selected, .demo-option.selected {
  border-color: var(--test-primary);
  background: linear-gradient(135deg, var(--test-cta-1), var(--test-cta-2));
  color: #FFFFFF;
}
.gender-option:active, .demo-option:active { transform: scale(0.98); }

/* ===== Loading screens ===== */
.loading-content { max-width: 520px; width: 100%; }
.loading-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid var(--test-primary-light);
  border-top-color: var(--test-primary);
  margin: 0 auto 1.5rem;
  animation: autism-spin 1s linear infinite;
}
@keyframes autism-spin { to { transform: rotate(360deg); } }

.loading-bar-wrapper { width: 100%; max-width: 360px; margin: 1.25rem auto 0; }
.loading-bar {
  width: 100%;
  height: 6px;
  background: var(--test-primary-light);
  border-radius: 999px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--test-cta-1), var(--test-cta-2));
  border-radius: inherit;
}

/* ===== Quiz step ===== */
.quiz-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(79, 70, 229, 0.06), transparent 60%),
    var(--test-bg);
}
.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--test-border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.quiz-logo { font-size: 1.1rem; font-weight: 700; color: var(--test-text); letter-spacing: -0.02em; }
.quiz-logo span {
  background: linear-gradient(135deg, var(--test-cta-1), var(--test-cta-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.quiz-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(720px, calc(100% - 2.5rem));
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0;
  box-sizing: border-box;
}

.progress-wrapper { width: 100%; box-sizing: border-box; margin-bottom: 1.5rem; }
.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--test-text-light);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.progress-bar { width: 100%; height: 6px; background: var(--test-primary-light); border-radius: 999px; overflow: hidden; }
.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--test-cta-1), var(--test-cta-2));
  border-radius: inherit;
  transition: width 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.question-card {
  background: var(--test-surface);
  border: 1px solid var(--test-border);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  box-shadow: var(--test-shadow);
  width: 100%;
  box-sizing: border-box;
  height: clamp(440px, 62vh, 540px);
  display: grid;
  grid-template-rows: 1fr auto;
  transition: opacity 230ms ease, transform 230ms ease;
}
.question-card.fading { opacity: 0; transform: translateY(8px); }

.question-frame {
  font-size: 0.82rem;
  color: var(--test-text-muted);
  line-height: 1.5;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--test-primary-light);
  border-left: 3px solid var(--test-primary);
  border-radius: 6px;
  text-align: left;
}
.question-text {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--test-text);
  font-weight: 500;
  margin: 0 auto;
  max-width: 600px;
  text-align: center;
  align-self: center;
}

.response-buttons { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.75rem; }
.response-btn {
  background: var(--test-bg);
  border: 1.5px solid var(--test-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--test-text);
  cursor: pointer;
  transition: all 200ms ease;
  text-align: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.response-btn:hover { border-color: var(--test-primary); background: var(--test-primary-light); }
.response-btn.selected {
  border-color: transparent;
  background: linear-gradient(135deg, var(--test-cta-1), var(--test-cta-2));
  color: #FFFFFF;
}
.response-btn:active { transform: scale(0.98); }

/* ===== Quiz nav ===== */
.quiz-nav { display: flex; justify-content: flex-start; margin-top: 1.25rem; }
.quiz-nav .btn-back:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Start test card ===== */
.start-test-card {
  background: var(--test-surface);
  border: 1px solid var(--test-border);
  border-radius: 22px;
  padding: 2.5rem 2rem;
  max-width: 600px;
  width: 100%;
  box-shadow: var(--test-shadow-lg);
}
.start-test-card h2 { margin-bottom: 0.75rem; }
.start-test-info { color: var(--test-text-light); margin-bottom: 1.5rem; font-size: 0.95rem; }
.start-test-disclaimer {
  background: var(--test-primary-light);
  border-left: 3px solid var(--test-primary);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  font-size: 0.88rem;
  color: var(--test-text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: left;
}
.start-test-tips { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.75rem; text-align: left; }
.start-tip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.9rem;
  background: var(--test-bg);
  border: 1px solid var(--test-border);
  border-radius: 10px;
}
.start-tip-label { font-size: 0.78rem; font-weight: 700; color: var(--test-primary); text-transform: uppercase; letter-spacing: 0.05em; }
.start-tip-text { color: var(--test-text-light); font-size: 0.93rem; line-height: 1.5; }

/* ===== Confirm card ===== */
.confirm-card {
  background: var(--test-surface);
  border: 1px solid var(--test-border);
  border-radius: 22px;
  padding: 2.75rem 2rem;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--test-shadow-lg);
}
.confirm-check-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--test-cta-1), var(--test-cta-2));
  color: #FFFFFF;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.confirm-info { color: var(--test-text); font-size: 1rem; margin-bottom: 0.6rem; }
.confirm-subtitle { color: var(--test-text-light); margin-bottom: 1.5rem; }
.confirm-actions { display: flex; flex-direction: column; gap: 0.65rem; }

/* ===== Analyzing reviews ===== */
.analyzing-reviews { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 2rem; width: 100%; max-width: 460px; }
.analyzing-review {
  background: var(--test-surface);
  border: 1px solid var(--test-border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: none;
  text-align: left;
}
.analyzing-review .review-stars { font-size: 0.85rem; letter-spacing: 0.1em; color: #F59E0B; margin-bottom: 0.35rem; }
.analyzing-review .review-text { font-size: 0.9rem; color: var(--test-text); font-style: italic; line-height: 1.5; margin: 0 0 0.4rem; }
.analyzing-review .review-author { padding: 0; border: 0; }
.analyzing-review .review-name { font-size: 0.82rem; font-weight: 600; margin: 0; }
.analyzing-review .review-country { font-size: 0.75rem; color: var(--test-text-muted); display: flex; align-items: center; gap: 0.3rem; }

/* ===== Sending step ===== */
.sending-icon-wrap { margin-bottom: 1.25rem; }
.sending-icon { font-size: 2.5rem; color: var(--test-primary); }
.sending-subtext { color: var(--test-text-muted); font-size: 0.88rem; margin-top: 1rem; }

/* ===== Completion card ===== */
.completion-card {
  background: var(--test-surface);
  border: 1px solid var(--test-border);
  border-radius: 22px;
  padding: 2.5rem 2rem;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--test-shadow-lg);
}
.completion-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #34D399, #10B981);
  color: #FFFFFF;
  font-size: 2.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.35);
}
.completion-card h2 { margin-bottom: 0.6rem; }
.completion-subtitle { color: var(--test-text-light); line-height: 1.55; margin-bottom: 1rem; }
.completion-email-note { background: var(--test-bg); border: 1px solid var(--test-border); border-radius: 10px; padding: 0.75rem 1rem; margin-bottom: 0.75rem; }
.completion-email-note p { margin: 0; font-size: 0.9rem; color: var(--test-text); }
.completion-spam-note { font-size: 0.82rem; color: var(--test-text-muted); margin-bottom: 1.5rem; }
.completion-actions { display: flex; flex-direction: column; gap: 0.65rem; }

/* ============================================================
   RESULTS PAGE
   ============================================================ */

.results-wrapper {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(79, 70, 229, 0.08), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(6, 182, 212, 0.06), transparent 55%),
    var(--test-bg);
  padding-bottom: 4rem;
}
.results-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--test-border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 1.25rem;
}
.results-logo { font-size: 1.1rem; font-weight: 700; color: var(--test-text); letter-spacing: -0.02em; }
.results-logo span {
  background: linear-gradient(135deg, var(--test-cta-1), var(--test-cta-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#results .container { max-width: 720px; padding: 0 1.25rem; }

.countdown-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--test-surface);
  border: 1px solid var(--test-border);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  margin: 0 auto 1.5rem;
  font-size: 0.85rem;
  width: fit-content;
}
.countdown-label { color: var(--test-text-light); }
.countdown-time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--test-primary); letter-spacing: 0.02em; }

.resources-card {
  background: var(--test-surface);
  border: 1px solid var(--test-border);
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--test-shadow);
}
.resources-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--test-primary); }
.resources-card > p { color: var(--test-text-light); font-size: 0.92rem; line-height: 1.6; margin: 0; }
.resources-list { list-style: none; padding: 0; margin: 0.85rem 0 0; }
.resources-list li { padding: 0.4rem 0; font-size: 0.95rem; color: var(--test-text); border-bottom: 1px dashed var(--test-border); }
.resources-list li:last-child { border-bottom: none; }
.resources-list a { color: var(--test-primary); font-weight: 600; }

.resources-card--validation {
  border-left: 4px solid var(--test-accent);
  background: var(--test-accent-light);
}
.resources-card--validation h3 { color: var(--test-accent); }
.resources-card--validation p { color: var(--test-text); }
.resources-card--disclaimer { background: var(--test-bg); box-shadow: none; }
.resources-card--disclaimer p { font-size: 0.82rem; color: var(--test-text-muted); text-align: center; }
.resources-card--diagnostic {
  border-left: 4px solid #84CC16;
  background: #F5F8FF;
  box-shadow: none;
}
.resources-card--diagnostic p {
  font-size: 0.88rem;
  color: #1E1B4B;
  text-align: left;
  line-height: 1.65;
  margin: 0 0 0.6rem;
}
.resources-card--diagnostic p:last-child { margin: 0; }

.email-gate {
  background: var(--test-surface);
  border: 1px solid var(--test-border);
  border-radius: 20px;
  padding: 2rem 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--test-shadow-lg);
  text-align: center;
  scroll-margin-top: 80px;
  transition: box-shadow 220ms ease;
}
.email-gate.pulse { box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.18), var(--test-shadow-lg); }
.email-gate-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--test-primary);
  background: var(--test-primary-light);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.email-gate h3 { font-size: 1.4rem; margin: 0 0 0.5rem; color: var(--test-text); }
.email-gate > p {
  color: var(--test-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.results-include-box {
  background: var(--test-bg);
  border: 1px solid var(--test-border);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}
.results-include-box h4 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--test-text-muted);
  text-align: center;
}
.results-include-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.results-include-item { background: var(--test-surface); border: 1px solid var(--test-border); border-radius: 10px; padding: 0.85rem; }
.results-include-item strong { display: block; font-size: 0.92rem; color: var(--test-text); margin-bottom: 0.25rem; }
.results-include-item p { font-size: 0.82rem; color: var(--test-text-light); line-height: 1.5; margin: 0; }
@media (max-width: 560px) { .results-include-grid { grid-template-columns: 1fr; } }

.email-gate-form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 420px; margin: 0 auto; }
.email-gate-form input[type="email"] {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--test-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--test-bg);
  color: var(--test-text);
  transition: border-color 200ms ease, background 200ms ease;
}
.email-gate-form input[type="email"]:focus { outline: none; border-color: var(--test-primary); background: var(--test-surface); }
.email-note { font-size: 0.75rem; color: var(--test-text-muted); line-height: 1.5; margin: 0.5rem 0 0; text-align: left; }
.email-note a { color: var(--test-primary); }
.email-success { text-align: center; }
.email-success .success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #34D399, #10B981);
  color: #FFFFFF;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.32);
}
.email-error { margin-top: 0.85rem; padding: 0.75rem 1rem; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 8px; color: #B91C1C; font-size: 0.88rem; text-align: left; }

.blurred-section {
  position: relative;
  margin: 2rem auto;
  max-width: 520px;
  border: 1px solid var(--test-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--test-shadow);
}
.blurred-content { background: var(--test-surface); padding: 2rem; filter: blur(6px); user-select: none; pointer-events: none; }
.blurred-content h3 { margin: 0 0 1.25rem; font-size: 1.125rem; color: var(--test-text); }
.blurred-scores { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--test-border); display: flex; flex-direction: column; gap: 0.5rem; }
.blurred-score-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.blurred-score-row span:first-child { color: var(--test-text-light); }
.blurred-score-row span:last-child { font-weight: 600; color: var(--test-text); }
.blurred-extra { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--test-border); }
.blurred-extra h4 { font-size: 1rem; margin: 0 0 0.75rem; color: var(--test-text); }
.blurred-extra p { font-size: 0.875rem; color: var(--test-text-light); line-height: 1.6; margin: 0; }
.blur-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.3); z-index: 2; }
.blur-overlay-content { text-align: center; padding: 2rem; }
.blur-lock { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.blur-overlay-content h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--test-text); }
.blur-overlay-content p { color: var(--test-text-light); font-size: 0.9375rem; margin: 0 auto; max-width: 320px; }

.results-reviews { margin-bottom: 1.5rem; }
.results-reviews-title { text-align: center; font-size: 1.05rem; margin: 0 0 1rem; color: var(--test-text); }
.results-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; margin-bottom: 1.25rem; }
@media (max-width: 720px) { .results-reviews-grid { grid-template-columns: 1fr; } }
.results-reviews-grid .result-review-card { background: var(--test-surface); border: 1px solid var(--test-border); border-radius: 12px; padding: 0.95rem 1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.results-reviews-grid .review-stars { font-size: 0.85rem; color: #F59E0B; letter-spacing: 0.1em; }
.results-reviews-grid .review-text { font-size: 0.88rem; font-style: italic; color: var(--test-text); line-height: 1.5; margin: 0; }
.results-reviews-grid .review-author { font-size: 0.78rem; color: var(--test-text-muted); border: 0; padding: 0; }
.results-reviews-grid .review-name { font-size: 0.82rem; font-weight: 600; margin: 0; color: var(--test-text); }
.results-reviews-grid .review-country { font-size: 0.75rem; color: var(--test-text-muted); }

.results-final-cta { text-align: center; margin-bottom: 1.75rem; padding: 0.5rem 0; }
.results-final-cta p { font-size: 0.92rem; color: var(--test-text-light); margin: 0 0 0.85rem; }

/* ===== Mobile tweaks for step shells ===== */
@media (max-width: 600px) {
  .question-card { padding: 1.75rem 1.25rem; height: auto; min-height: 500px; }
  .question-text { font-size: 1.05rem; }
  .start-test-card, .confirm-card, .completion-card, .results-pending { padding: 2rem 1.25rem; }
  .step-content { padding: 2rem 1.25rem; }
}

/* ============================================================
   AUTISM-SPECIFIC: BUBBLY / NEURO-FRIENDLY UI
   Centred hero with floating bubble decorations, bubble theme
   tiles instead of bars, and pill-shaped quiz response buttons
   with cyan/lime glow. Keeps the page friendly rather than
   clinical, while staying visually unrelated to ADHD.
   ============================================================ */

/* ----- Hero kicker chip + floating bubble decorations ----- */
.hero-section { position: relative; overflow: hidden; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--test-primary-light);
  color: var(--test-primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.12);
}
.hero-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bubbles .bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.6;
  animation: bubble-float 9s ease-in-out infinite;
}
.bubble-1 { top: 8%;  left: 6%;   width: 70px;  height: 70px;  background: radial-gradient(circle at 30% 30%, #C7D2FE, #4F46E5); animation-delay: 0s; }
.bubble-2 { top: 22%; right: 9%;  width: 110px; height: 110px; background: radial-gradient(circle at 30% 30%, #A5F3FC, #06B6D4); animation-delay: 1.2s; }
.bubble-3 { bottom: 18%; left: 12%; width: 90px;  height: 90px;  background: radial-gradient(circle at 30% 30%, #ECFCCB, #84CC16); animation-delay: 2.4s; }
.bubble-4 { bottom: 8%;  right: 18%; width: 60px;  height: 60px;  background: radial-gradient(circle at 30% 30%, #DDD6FE, #7C3AED); animation-delay: 3.6s; }
.bubble-5 { top: 48%; left: 4%; width: 40px; height: 40px; background: radial-gradient(circle at 30% 30%, #BAE6FD, #0EA5E9); animation-delay: 4.8s; }
.bubble-6 { top: 60%; right: 4%; width: 50px; height: 50px; background: radial-gradient(circle at 30% 30%, #FDE68A, #F59E0B); animation-delay: 6s; }
@keyframes bubble-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  33%      { transform: translateY(-14px) translateX(6px); }
  66%      { transform: translateY(8px) translateX(-8px); }
}
.hero-section .container { position: relative; z-index: 1; }
@media (max-width: 600px) {
  .bubble-1, .bubble-2, .bubble-3, .bubble-4 { transform: scale(0.7); }
  .bubble-5, .bubble-6 { display: none; }
}

/* ----- Themes section: friendly bubble tiles ----- */
.section--themes {
  background:
    radial-gradient(ellipse at top right, rgba(6, 182, 212, 0.10), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(132, 204, 22, 0.09), transparent 55%),
    var(--test-surface);
  border-top: 1px solid var(--test-border);
  border-bottom: 1px solid var(--test-border);
}
/* Seven tiles, balanced: 4 on top row, 3 centered on second row.
   Flex wrap + justify-center handles the orphan row better than auto-fill grid. */
.theme-bubbles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
  margin: 2.5rem 0 1.25rem;
  max-width: var(--test-container);
  margin-left: auto;
  margin-right: auto;
}
.theme-bubble {
  flex: 1 1 220px;
  max-width: calc(25% - 0.825rem);
}
@media (max-width: 900px) {
  .theme-bubble { max-width: calc(50% - 0.55rem); }
}
@media (max-width: 600px) {
  .theme-bubble { max-width: 100%; }
}
.theme-bubble {
  position: relative;
  background: var(--test-surface);
  border-radius: 22px;
  padding: 1.4rem 1.25rem 1.25rem;
  border: 1.5px solid var(--test-border);
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  overflow: hidden;
}
.theme-bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--bubble-tint, linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(6, 182, 212, 0.06)));
  opacity: 0.55;
  z-index: 0;
}
.theme-bubble > * { position: relative; z-index: 1; }
.theme-bubble:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.14);
  border-color: var(--bubble-border, var(--test-border-strong));
}
.theme-bubble-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--bubble-icon-bg, linear-gradient(135deg, #E0E7FF, #CFFAFE));
  font-size: 1.6rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.18);
}
.theme-bubble h4 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--test-text);
}
.theme-bubble p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--test-text-light);
}
/* Per-theme bubble palettes */
.theme-bubble[data-theme="social"]    { --bubble-tint: linear-gradient(135deg, rgba(79,70,229,0.10), rgba(165,180,252,0.10)); --bubble-border: #A5B4FC; --bubble-icon-bg: linear-gradient(135deg, #E0E7FF, #C7D2FE); }
.theme-bubble[data-theme="sensory"]   { --bubble-tint: linear-gradient(135deg, rgba(6,182,212,0.10), rgba(125,211,252,0.10)); --bubble-border: #67E8F9; --bubble-icon-bg: linear-gradient(135deg, #CFFAFE, #A5F3FC); }
.theme-bubble[data-theme="routine"]   { --bubble-tint: linear-gradient(135deg, rgba(124,58,237,0.10), rgba(196,181,253,0.10)); --bubble-border: #C4B5FD; --bubble-icon-bg: linear-gradient(135deg, #EDE9FE, #DDD6FE); }
.theme-bubble[data-theme="interests"] { --bubble-tint: linear-gradient(135deg, rgba(132,204,22,0.12), rgba(217,249,157,0.12)); --bubble-border: #BEF264; --bubble-icon-bg: linear-gradient(135deg, #ECFCCB, #D9F99D); }
.theme-bubble[data-theme="comms"]     { --bubble-tint: linear-gradient(135deg, rgba(14,165,233,0.10), rgba(125,211,252,0.10)); --bubble-border: #7DD3FC; --bubble-icon-bg: linear-gradient(135deg, #E0F2FE, #BAE6FD); }
.theme-bubble[data-theme="emotional"] { --bubble-tint: linear-gradient(135deg, rgba(245,158,11,0.10), rgba(252,211,77,0.10)); --bubble-border: #FCD34D; --bubble-icon-bg: linear-gradient(135deg, #FEF3C7, #FDE68A); }
.theme-bubble[data-theme="masking"]   { --bubble-tint: linear-gradient(135deg, rgba(16,185,129,0.10), rgba(110,231,183,0.10)); --bubble-border: #6EE7B7; --bubble-icon-bg: linear-gradient(135deg, #D1FAE5, #A7F3D0); }

.themes-preview-foot {
  text-align: center;
  font-size: 0.92rem;
  color: var(--test-text-light);
  margin-top: 1.5rem;
}

/* ----- Blurred bubble grid on results page ----- */
/* Seven tiles, balanced: 4 on top row, 3 centered on second row. */
.blurred-bubbles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 1rem 0 1.25rem;
}
.blurred-bubble {
  flex: 1 1 140px;
  max-width: calc(25% - 0.6rem);
}
@media (max-width: 720px) {
  .blurred-bubble { max-width: calc(33.333% - 0.534rem); }
}
@media (max-width: 480px) {
  .blurred-bubble { max-width: calc(50% - 0.4rem); }
}
.blurred-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.95rem 0.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(6,182,212,0.08));
  border: 1.5px solid var(--test-border);
}
.blurred-bubble-icon { font-size: 1.35rem; }
.blurred-bubble-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--test-text);
}
.blurred-bubble-band {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--test-primary-dark);
}
.blurred-bubble[data-theme="interests"] .blurred-bubble-band,
.blurred-bubble[data-theme="emotional"] .blurred-bubble-band { color: #B45309; }
.blurred-bubble[data-theme="masking"] .blurred-bubble-band { color: #047857; }

/* ============================================================
   BUBBLY QUIZ UI OVERHAUL
   Pill response buttons, rounder card, gradient progress.
   ============================================================ */
.question-card {
  border-radius: 28px !important;
  padding: 2.5rem 2rem !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFE 100%) !important;
  box-shadow: 0 18px 50px rgba(79, 70, 229, 0.10), 0 2px 6px rgba(6, 182, 212, 0.06) !important;
  border: 1.5px solid var(--test-border) !important;
}
.question-frame {
  background: var(--test-primary-light) !important;
  border-left: none !important;
  border-radius: 999px !important;
  padding: 0.5rem 1rem !important;
  font-weight: 600;
  color: var(--test-primary-dark) !important;
  display: inline-block;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.response-buttons {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
  gap: 0.65rem !important;
  margin-top: 2rem !important;
}
.response-btn {
  background: var(--test-surface) !important;
  border: 2px solid var(--test-border) !important;
  border-radius: 999px !important;
  padding: 1rem 0.85rem !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  color: var(--test-text) !important;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease !important;
  position: relative;
}
.response-btn:hover {
  border-color: var(--test-primary) !important;
  background: var(--test-primary-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.18);
}
.response-btn.selected {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--test-cta-1), var(--test-cta-2)) !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 26px rgba(6, 182, 212, 0.38);
  transform: translateY(-2px);
}
.response-btn:active { transform: translateY(0) scale(0.98) !important; }

/* Bubblier progress bar with tri-colour gradient */
.progress-bar { height: 10px !important; border-radius: 999px !important; }
.progress-fill {
  background: linear-gradient(90deg, #4F46E5 0%, #06B6D4 50%, #84CC16 100%) !important;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.35);
}

/* Question text — friendlier weight + size */
.question-text {
  font-size: clamp(1.15rem, 2.1vw, 1.4rem) !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: var(--test-text) !important;
}

@media (max-width: 600px) {
  /* Mobile: full-width stacked rectangles, matching the ADHD test. The
     desktop rule above keeps the five-pill spread on tablet and up.
     Pills look bad when stretched to a phone's full content width, so
     we drop the rounded-pill radius and tighten the padding so the
     answer text reads like a clean list. The question-card and
     question-text overrides need !important here because the bubbly
     overhaul above sets those properties with !important; without it
     the mobile rule is silently ignored. */
  .question-card { padding: 1.75rem 1.25rem !important; }
  .question-text { font-size: 1.05rem !important; }
  .response-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.6rem !important;
    margin-top: 1.5rem !important;
  }
  .response-btn {
    border-radius: 12px !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    text-align: center !important;
  }
  .response-btn:hover { transform: none !important; box-shadow: none !important; }
  .response-btn.selected { transform: none !important; }
}

