/* ==========================================================================
   CRACKALL Light Editorial + Three.js Spatial Studio Theme
   Warm cream/ivory canvas (#f7f1e3 -> #fbf8f0), Fraunces + Outfit ink (#161e2e),
   terracotta (#d44835) & deep mint-teal (#0f766e) accents.
   ========================================================================== */

:root {
  --bg-dark: #f7f1e3;
  --bg-card: rgba(255, 253, 248, 0.72);
  --bg-card-hover: rgba(255, 255, 255, 0.92);
  --bg-card-subtle: #efe7d6;
  --text-main: #161e2e;
  --text-muted: #475569;
  --text-dim: #64748b;

  --primary-teal: #d44835;
  --primary-teal-glow: rgba(212, 72, 53, 0.24);
  --primary-blue: #b83827;
  --accent-cyan: #0f766e;
  --accent-gold: #b45309;
  --accent-red: #dc2626;

  --gradient-brand: linear-gradient(135deg, #d44835 0%, #e06d44 55%, #0f766e 100%);
  --gradient-glow: linear-gradient(90deg, #d44835, #e07a3c, #0f766e);

  --border-subtle: rgba(22, 30, 46, 0.11);
  --border-focus: rgba(212, 72, 53, 0.55);
  --studio-shadow: 0 18px 42px rgba(72, 57, 36, 0.08), 0 2px 8px rgba(72, 57, 36, 0.04);
  --studio-shadow-hover: 0 24px 56px rgba(72, 57, 36, 0.13), 0 4px 12px rgba(212, 72, 53, 0.08);
}

html {
  color-scheme: light;
  scroll-behavior: auto; /* three-stage.js draws every glide itself; the browser's own smooth scroll must stay off here */
  background: linear-gradient(180deg, #fbf7ec 0%, #f5eddb 48%, #faf5e8 100%) fixed;
}

body {
  background: transparent !important;
  color: var(--text-main);
  position: relative;
}

.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 12%, rgba(233, 180, 92, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 86% 18%, rgba(77, 182, 178, 0.14) 0%, transparent 48%),
    radial-gradient(circle at 50% 88%, rgba(224, 90, 71, 0.1) 0%, transparent 52%),
    transparent;
}

.three-stage-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  display: block;
}

main,
.main-content,
.page-wrap,
body > section,
footer.site-footer {
  position: relative;
  z-index: 2;
}

/* Top scroll progress ribbon + chapter rail */
.studio-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d44835, #e59a3c, #0f766e);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 120;
  pointer-events: none;
}

.studio-chapter-rail {
  position: fixed;
  right: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  z-index: 80;
}

.studio-chapter-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  border: none;
  padding: 0.2rem 0.25rem;
  cursor: pointer;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.studio-dot-label {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  background: rgba(255, 253, 248, 0.92);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 30, 46, 0.1);
  color: #161e2e;
  box-shadow: 0 4px 14px rgba(72, 57, 36, 0.09);
}

.studio-chapter-dot:hover .studio-dot-label,
.studio-chapter-dot.is-active .studio-dot-label {
  opacity: 1;
  transform: translateX(0);
}

.studio-dot-pip {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(22, 30, 46, 0.22);
  transition: all 0.22s ease;
}

.studio-chapter-dot.is-active .studio-dot-pip {
  height: 22px;
  background: #d44835;
  box-shadow: 0 0 0 4px rgba(212, 72, 53, 0.16);
}

/* Smooth reveal animation */
.studio-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.studio-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Typography & Editorial Headings */
h1, h2, .section-title h2 {
  color: #161e2e !important;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-title p { color: #475569 !important; }
.gradient-text {
  background: linear-gradient(125deg, #c94735 0%, #d97706 48%, #0f766e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navigation */
header.navbar {
  background: rgba(251, 248, 240, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(22, 30, 46, 0.09);
  box-shadow: 0 4px 24px rgba(72, 57, 36, 0.05);
}

.brand-logo { color: #161e2e !important; }
.nav-link, button.nav-link { color: #334155 !important; }
.nav-link:hover, .nav-link.active, button.nav-link:hover, button.nav-link.active {
  color: #d44835 !important;
}
.nav-link-accent { color: #0f766e !important; font-weight: 800; }

.nav-toggle span { background: #161e2e !important; }
.nav-user-chip {
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(22, 30, 46, 0.14);
  box-shadow: 0 2px 10px rgba(72, 57, 36, 0.06);
}
.nav-user-name { color: #161e2e !important; }
.nav-user-avatar { background: linear-gradient(135deg, #d44835, #e07a3c); color: #ffffff; }
.nav-user-logout {
  color: #475569; border-color: rgba(22, 30, 46, 0.18);
}
.nav-user-logout:hover { color: #161e2e; border-color: rgba(22, 30, 46, 0.4); }
.nav-plan-badge { background: rgba(22, 30, 46, 0.07); color: #334155; border-color: rgba(22, 30, 46, 0.14); }
.nav-plan-badge.paid { background: rgba(15, 118, 110, 0.12); color: #0f766e; border-color: rgba(15, 118, 110, 0.35); }

/* Megamenu */
.megamenu-dropdown {
  background: rgba(255, 253, 248, 0.98) !important;
  border: 1px solid rgba(22, 30, 46, 0.12) !important;
  box-shadow: 0 28px 60px rgba(72, 57, 36, 0.16) !important;
  color: #161e2e;
}
.megamenu-search-bar {
  background: #f5efe1 !important;
  border: 1px solid rgba(22, 30, 46, 0.12) !important;
}
.megamenu-search-input { color: #161e2e !important; }
.megamenu-search-input::placeholder { color: #64748b; }
.role-column h5 { color: #0f766e !important; border-bottom-color: rgba(22, 30, 46, 0.09); }
.role-list a.megamenu-role-link { color: #334155 !important; }
.role-list a.megamenu-role-link:hover {
  background: rgba(212, 72, 53, 0.08) !important;
  color: #b83827 !important;
}
.megamenu-foot { border-top-color: rgba(22, 30, 46, 0.1) !important; }
.megamenu-foot a { color: #475569 !important; }
.megamenu-foot a:hover { color: #d44835 !important; }

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #d44835 0%, #c03d2b 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(184, 56, 39, 0.45) !important;
  box-shadow: 0 10px 26px rgba(212, 72, 53, 0.24) !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #c03d2b 0%, #a83222 100%) !important;
  box-shadow: 0 14px 32px rgba(212, 72, 53, 0.34) !important;
  transform: translateY(-2px);
}
.btn-secondary {
  background: rgba(255, 253, 248, 0.94) !important;
  color: #161e2e !important;
  border: 1px solid rgba(22, 30, 46, 0.16) !important;
  box-shadow: 0 4px 14px rgba(72, 57, 36, 0.06);
}
.btn-secondary:hover {
  background: #ffffff !important;
  border-color: rgba(212, 72, 53, 0.45) !important;
  color: #b83827 !important;
}
.btn-signin {
  color: #161e2e !important;
  background: rgba(255, 253, 248, 0.9) !important;
  border: 1px solid rgba(22, 30, 46, 0.16) !important;
}

/* Hero Section */
.hero {
  background: transparent !important;
  position: relative;
  z-index: 2;
  padding-top: 8.5rem;
  padding-bottom: 4rem;
}
.hero::before, .hero::after { opacity: 0.14; }
.hero-pill {
  background: rgba(255, 253, 248, 0.92) !important;
  border: 1px solid rgba(212, 72, 53, 0.25) !important;
  color: #9a3412 !important;
  box-shadow: 0 6px 20px rgba(72, 57, 36, 0.06);
}
.hero-sub { color: #334155 !important; }
.hero-pricing-jump a { color: #0f766e !important; font-weight: 700; }
.tracks-highlight-badge {
  background: rgba(15, 118, 110, 0.1) !important;
  color: #0f766e !important;
  border-color: rgba(15, 118, 110, 0.28) !important;
}

.exam-track-pill {
  background: rgba(255, 253, 248, 0.95) !important;
  color: #161e2e !important;
  border: 1px solid rgba(22, 30, 46, 0.12) !important;
  box-shadow: 0 6px 18px rgba(72, 57, 36, 0.06) !important;
}
.exam-track-pill:hover {
  transform: translateY(-2px);
  border-color: #d44835 !important;
  box-shadow: 0 12px 26px rgba(212, 72, 53, 0.14) !important;
}

/* Cards & Grids uniformly converted to frosted warm ivory glass */
.skill-showcase-card,
.visual-feature-card,
.course-mod-card,
.pricing-card,
.faculty-card,
.mentor-card,
.reel-card,
.domain-card,
.role-card,
.pack-item,
.legal-card,
.lab-metric-card,
.comm-tool-card,
.pacer-tip-card,
.review-card {
  background: var(--bg-card) !important;
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-main) !important;
  box-shadow: var(--studio-shadow) !important;
}

.skill-showcase-card:hover,
.visual-feature-card:hover,
.course-mod-card:hover,
.pricing-card:hover,
.faculty-card:hover,
.mentor-card:hover,
.domain-card:hover,
.role-card:hover {
  background: var(--bg-card-hover) !important;
  box-shadow: var(--studio-shadow-hover) !important;
  border-color: rgba(212, 72, 53, 0.35) !important;
}

.skill-title,
.visual-feature-title,
.course-mod-card h3,
.pricing-card h3,
.faculty-name,
.faculty-card h3,
.mentor-card h3,
.domain-card h3,
.role-card h3,
.pacer-tip-card h3,
.lab-metric-val {
  color: #161e2e !important;
}

.skill-desc,
.visual-feature-desc,
.visual-feature-bullets li,
.course-mod-card p,
.pricing-card p,
.pricing-features li,
.faculty-card p,
.mentor-card p,
.domain-card p,
.legal-card p,
.legal-card li {
  color: #334155 !important;
}

.skill-tag, .visual-feature-badge, .course-mod-badge {
  background: rgba(15, 118, 110, 0.1) !important;
  color: #0f766e !important;
  border: 1px solid rgba(15, 118, 110, 0.26) !important;
}
.course-mod-badge.free {
  background: rgba(212, 72, 53, 0.12) !important;
  color: #b83827 !important;
  border-color: rgba(212, 72, 53, 0.32) !important;
}
.course-mod-num { color: #d44835 !important; }
.course-mod-meta { border-top-color: rgba(22, 30, 46, 0.08) !important; color: #475569 !important; }
.visual-feature-art { border-bottom: 1px solid rgba(22, 30, 46, 0.08); opacity: 0.92; }

/* Sections & Marquee & Demo & Speech Lab */
.section-company-marquee,
.section-visual-demo,
.section-speech-lab,
.section-pillars-brief,
.section-faculty,
.section-reels,
.section-courses,
.section-pricing,
.section-careers-banner {
  background: transparent !important;
  border-color: rgba(22, 30, 46, 0.08) !important;
}

.section-company-marquee {
  padding: 2.75rem 0 3.25rem !important;
}
.marquee-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}
.marquee-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(212, 72, 53, 0.1);
  border: 1px solid rgba(212, 72, 53, 0.25);
  color: #b83827 !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.marquee-heading {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #161e2e !important;
  letter-spacing: -0.02em;
}
.section-company-marquee .marquee-container {
  padding: 0.75rem 0 1rem;
  margin-top: 0;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.section-company-marquee .marquee-track {
  gap: 1.15rem;
  /* The loop slides the track by half its own width (translateX(-50%)). The track ends without
     a gap after its last pill, so half its width was half a gap (9.2px) short of where the
     second copy starts and the strip jumped that far at every lap. One gap of padding at the
     end makes the two equal. Keep it the same value as the gap. */
  padding-right: 1.15rem;
}
.marquee-pill {
  background: rgba(255, 253, 248, 0.96) !important;
  backdrop-filter: blur(12px);
  color: #161e2e !important;
  border: 1px solid rgba(22, 30, 46, 0.13) !important;
  border-radius: 16px !important;
  padding: 0.9rem 1.35rem !important;
  min-width: 210px;
  gap: 0.85rem !important;
  box-shadow: 0 10px 26px rgba(72, 57, 36, 0.08) !important;
}
.marquee-pill:hover {
  background: #fffdf8 !important;
  border-color: #d44835 !important;
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 16px 36px rgba(212, 72, 53, 0.16) !important;
}
.marquee-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 72, 53, 0.12), rgba(15, 118, 110, 0.1));
  border: 1px solid rgba(212, 72, 53, 0.2);
  font-size: 1.45rem;
  flex-shrink: 0;
}
.marquee-pill-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.2;
}
.marquee-pill-body strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #161e2e !important;
  letter-spacing: -0.01em;
}
.marquee-pill-body small {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f766e !important;
  letter-spacing: 0.03em;
}

.lab-container-grid {
  grid-template-columns: minmax(0, 740px) !important;
  justify-content: center;
}
.demo-screen-mockup,
.lab-voice-console,
.course-sidebar,
.course-viewer {
  background: rgba(255, 253, 248, 0.94) !important;
  border: 1px solid rgba(22, 30, 46, 0.12) !important;
  box-shadow: var(--studio-shadow) !important;
  color: #161e2e !important;
}

.demo-screen-header { background: #f2ead8 !important; border-bottom-color: rgba(22, 30, 46, 0.09) !important; color: #334155 !important; }
.demo-stage-body {
  grid-template-columns: 1.05fr 1fr !important;
  min-height: 0 !important;
}
.demo-controls-pane, .demo-video-pane, .lab-mic-stage, .course-module-hdr {
  background: #f5efe1 !important;
  border-color: rgba(22, 30, 46, 0.1) !important;
  color: #161e2e !important;
}
.demo-video-pane {
  background-image: none !important;
  min-height: 0 !important;
  justify-content: center !important;
  gap: 1.15rem;
  padding: 2rem 1.75rem !important;
}
.demo-prompt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(22, 30, 46, 0.1);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.05rem;
}
#demoHostSub { color: #0f766e !important; font-weight: 600; }
.demo-tab-btn, .course-filter-btn, .pill-choice, .setup-tab-btn, .auth-tab-btn, .pacer-seg-btn, .pacer-preset-pill {
  background: #f3ecdc !important;
  color: #334155 !important;
  border: 1px solid rgba(22, 30, 46, 0.12) !important;
}
.demo-tab-btn.active,
.course-filter-btn.active,
.pill-choice.active,
.setup-tab-btn.active,
.auth-tab-btn.active,
.pacer-seg-btn.active,
.pacer-preset-pill.active {
  background: #d44835 !important;
  color: #ffffff !important;
  border-color: #b83827 !important;
}

.course-lesson-btn { color: #334155 !important; border-bottom-color: rgba(22, 30, 46, 0.07) !important; }
.course-lesson-btn strong { color: #161e2e !important; }
.course-lesson-btn:hover { background: rgba(212, 72, 53, 0.07) !important; }
.course-lesson-btn.active { background: rgba(212, 72, 53, 0.12) !important; border-left-color: #d44835 !important; }
.course-video-stage { background: #f3ecdc !important; border-color: rgba(22, 30, 46, 0.14) !important; color: #161e2e !important; }
.course-video-stage h3, .course-viewer h2, .course-viewer h3 { color: #161e2e !important; }
.course-video-stage p, .course-viewer p, .course-playbook-list { color: #334155 !important; }
.course-status-banner { background: rgba(15, 118, 110, 0.08) !important; border-color: rgba(15, 118, 110, 0.25) !important; color: #161e2e !important; }
.course-status-banner.unlocked { background: rgba(15, 118, 110, 0.14) !important; border-color: rgba(15, 118, 110, 0.42) !important; color: #064e3b !important; }

/* Home Screen Flagship Video Course Spotlight Card */
.courses-spotlight-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.75rem;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(212, 72, 53, 0.28);
  border-radius: var(--radius-lg, 18px);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 22px 54px rgba(72, 57, 36, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}
.courses-spotlight-stage {
  background: linear-gradient(145deg, #fff8ee 0%, #f5ecdc 100%);
  border: 1px solid rgba(212, 72, 53, 0.22);
  border-radius: 14px;
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
}
.courses-spotlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.courses-spotlight-dur {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f766e;
}
.courses-spotlight-stage h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.25;
  color: #161e2e !important;
}
.courses-spotlight-stage p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #334155 !important;
}
.courses-spotlight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.courses-spotlight-chips span {
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(22, 30, 46, 0.12);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1e293b;
}
.courses-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.courses-spotlight-perks {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.5rem 0.25rem;
}
.courses-perks-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d44835;
}
.courses-spotlight-perks h4 {
  margin: 0;
  font-size: 1.22rem;
  color: #161e2e !important;
}
.courses-perks-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #334155;
}
.courses-perks-list li strong {
  color: #0f766e;
}

/* Home Screen Compact Vertical Course Success Roadmap (Last Section) */
.section-roadmap {
  padding: 2.75rem 0 3.75rem;
}
.courses-roadmap-wrap {
  max-width: 920px;
  margin: 0 auto;
}
.roadmap-header-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(22, 30, 46, 0.12);
  border-radius: 14px;
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 24px rgba(72, 57, 36, 0.06);
}
.roadmap-header-copy h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #161e2e !important;
}
.roadmap-header-copy p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: #475569;
}
.roadmap-progress-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.roadmap-progress-bar {
  width: 120px;
  height: 7px;
  border-radius: 999px;
  background: #ebe2ce;
  overflow: hidden;
}
.roadmap-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d44835, #0f766e);
  transition: width 0.25s ease;
}
.roadmap-progress-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f766e;
}
.roadmap-expand-btn {
  background: #f2ead8;
  border: 1px solid rgba(22, 30, 46, 0.14);
  color: #161e2e;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.roadmap-expand-btn:hover {
  background: #eae0ca;
  border-color: rgba(212, 72, 53, 0.35);
}
.roadmap-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-left: 2.65rem;
}
.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 0.92rem;
  top: 0.95rem;
  bottom: 0.95rem;
  width: 2.5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d44835 0%, #e6a84c 50%, #0f766e 100%);
  opacity: 0.65;
}
.roadmap-stage {
  position: relative;
}
.roadmap-stage-node {
  position: absolute;
  left: -2.65rem;
  top: 0.55rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: #fffdf8;
  border: 2px solid #d44835;
  color: #d44835;
  font-size: 0.74rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(212, 72, 53, 0.16);
  z-index: 1;
}
.roadmap-stage.is-stage-done .roadmap-stage-node {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}
.roadmap-stage-card {
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(22, 30, 46, 0.11);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--studio-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.roadmap-stage-card:hover {
  border-color: rgba(212, 72, 53, 0.35);
  box-shadow: var(--studio-shadow-hover);
}
button.roadmap-mod-head {
  width: 100%;
  border: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  background: #f4ecda;
  border-bottom: 1px solid transparent;
  padding: 0.65rem 1rem;
  transition: background 0.18s ease;
}
button.roadmap-mod-head:hover {
  background: #ede2cb;
}
.roadmap-stage.is-open button.roadmap-mod-head {
  border-bottom-color: rgba(22, 30, 46, 0.08);
}
.roadmap-mod-title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 800;
  color: #161e2e !important;
}
.roadmap-mod-right {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.roadmap-mod-meta {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f766e;
  white-space: nowrap;
}
.roadmap-mod-done {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  background: rgba(22, 30, 46, 0.08);
  color: #334155;
}
.roadmap-stage.is-stage-done .roadmap-mod-done {
  background: rgba(15, 118, 110, 0.15);
  color: #065f46;
}
.roadmap-mod-chev {
  font-size: 0.76rem;
  color: #475569;
  transition: transform 0.2s ease;
  display: inline-block;
}
.roadmap-stage.is-open .roadmap-mod-chev {
  transform: rotate(180deg);
}
.roadmap-lesson-list {
  display: none;
  flex-direction: column;
}
.roadmap-stage.is-open .roadmap-lesson-list {
  display: flex;
}
.roadmap-lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 0.9rem;
  padding: 0.52rem 1rem;
  border-bottom: 1px solid rgba(22, 30, 46, 0.06);
  transition: background 0.16s ease;
}
.roadmap-lesson-row:last-child {
  border-bottom: none;
}
.roadmap-lesson-row:hover {
  background: rgba(212, 72, 53, 0.05);
}
.roadmap-lesson-row.is-free {
  background: rgba(212, 72, 53, 0.08);
  border-left: 3.5px solid #d44835;
  padding-left: calc(1rem - 3.5px);
}
.roadmap-lesson-row.is-checked {
  background: rgba(15, 118, 110, 0.06);
}
.roadmap-lesson-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}
.roadmap-check {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: #0f766e;
  cursor: pointer;
}
.roadmap-lesson-info {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.55rem;
}
.roadmap-lesson-link {
  color: #161e2e !important;
  font-size: 0.89rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.roadmap-lesson-link:hover {
  color: #d44835 !important;
  text-decoration: underline;
}
.roadmap-lesson-row.is-checked .roadmap-lesson-link {
  color: #0f766e !important;
}
.roadmap-lesson-dur {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.roadmap-status-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.roadmap-status-pill.is-free {
  background: rgba(15, 118, 110, 0.12);
  border: 1px solid rgba(15, 118, 110, 0.34);
  color: #065f46 !important;
}
.roadmap-status-pill.is-free:hover {
  background: #0f766e;
  color: #ffffff !important;
}
.roadmap-status-pill.is-locked {
  background: #fef3c7;
  border: 1px solid rgba(217, 119, 6, 0.32);
  color: #92400e !important;
}
.roadmap-status-pill.is-unlocked {
  background: rgba(15, 118, 110, 0.12);
  border: 1px solid rgba(15, 118, 110, 0.32);
  color: #0f766e !important;
}

/* Pricing Card Featured */
.pricing-card.featured {
  border: 2px solid #d44835 !important;
  background: linear-gradient(180deg, #ffffff 0%, #fff8f3 100%) !important;
}
.pricing-price span { color: #161e2e !important; }
.pricing-card.featured .pricing-price span { color: #d44835 !important; }
.pf-tick { color: #0f766e !important; }

/* Reel & Video Testimonial Cards */
.section-reels {
  padding: 3.5rem 0 4.5rem !important;
}
.reel-card {
  background: #fffdf8 !important;
  border: 1px solid rgba(22, 30, 46, 0.12) !important;
  box-shadow: var(--studio-shadow) !important;
}
.reel-card:hover {
  border-color: #d44835 !important;
  box-shadow: var(--studio-shadow-hover) !important;
}
.reel-art {
  background: radial-gradient(circle at 28% 28%, rgba(212, 72, 53, 0.16), transparent 62%),
              linear-gradient(135deg, #f6eee0 0%, #ede2cd 100%) !important;
  color: #161e2e !important;
}
.reel-card:nth-child(2n) .reel-art {
  background: radial-gradient(circle at 28% 28%, rgba(15, 118, 110, 0.16), transparent 62%),
              linear-gradient(135deg, #f2f7f5 0%, #e4efe9 100%) !important;
}
.reel-badge {
  background: rgba(255, 253, 248, 0.94) !important;
  color: #0f766e !important;
  border: 1px solid rgba(15, 118, 110, 0.25) !important;
  font-weight: 800 !important;
}
.reel-overlay {
  background: linear-gradient(to top, rgba(255, 253, 248, 0.98) 38%, rgba(255, 253, 248, 0.28)) !important;
  color: #161e2e !important;
}
.reel-overlay strong { color: #161e2e !important; }
.reel-soon-chip {
  background: rgba(212, 72, 53, 0.1) !important;
  border: 1px solid rgba(212, 72, 53, 0.26) !important;
  color: #b83827 !important;
}

/* Inputs, Selects, Textareas */
.form-input, .auth-input, .pacer-textarea, .pacer-wpm-input, select.form-input {
  background: #ffffff !important;
  color: #161e2e !important;
  border: 1px solid rgba(22, 30, 46, 0.18) !important;
}
.form-input:focus, .auth-input:focus, .pacer-textarea:focus {
  border-color: #d44835 !important;
  box-shadow: 0 0 0 3px rgba(212, 72, 53, 0.14) !important;
  outline: none;
}
.auth-input-group label { color: #1e293b !important; }

/* Modals (Auth, Razorpay, Interview Setup, Live Interview Room) */
.custom-modal-backdrop, .modal-overlay, .video-modal-backdrop {
  background: rgba(22, 30, 46, 0.42) !important;
  backdrop-filter: blur(8px);
}
.custom-modal-card, .setup-modal-card, #interviewRoomCard, .video-modal-card {
  background: #fffdf8 !important;
  border: 1px solid rgba(22, 30, 46, 0.14) !important;
  box-shadow: 0 32px 72px rgba(22, 30, 46, 0.2) !important;
  color: #161e2e !important;
}
.custom-modal-card h2, .custom-modal-card h3,
.setup-modal-card h2, .setup-modal-card h3, .setup-modal-card h4,
#interviewRoomCard h2, #interviewRoomCard h3,
.co-success-title {
  color: #161e2e !important;
}
.custom-modal-card p, .setup-modal-card p, #interviewRoomCard p,
.checkout-success, .checkout-plan-summary {
  color: #334155 !important;
}
.modal-close-btn {
  background: #f3ecdc !important;
  color: #161e2e !important;
  border: 1px solid rgba(22, 30, 46, 0.14) !important;
}
.checkout-plan-summary, .autopay-switch-box, .packs-sidebar {
  background: #f5efe1 !important;
  border: 1px solid rgba(22, 30, 46, 0.1) !important;
}
.checkout-plan-summary strong, .autopay-switch-box strong, #checkoutPayingAsText { color: #161e2e !important; }
.google-auth-btn {
  background: #ffffff !important;
  color: #161e2e !important;
  border: 1px solid rgba(22, 30, 46, 0.18) !important;
  box-shadow: 0 2px 8px rgba(72, 57, 36, 0.06);
}
.google-auth-btn:hover { background: #f8f5ec !important; border-color: #d44835 !important; }
.auth-tabs, .auth-mode-row { background: #efe7d6 !important; border-color: rgba(22, 30, 46, 0.1) !important; }
.auth-mode-btn { color: #475569 !important; }
.auth-mode-btn.active { background: #ffffff !important; color: #b83827 !important; box-shadow: 0 2px 6px rgba(72,57,36,0.08); }
.auth-link-btn { color: #0f766e !important; }
.auth-feedback { background: #fef2f2 !important; color: #991b1b !important; border-color: #fca5a5 !important; }
.auth-feedback.ok { background: #ecfdf5 !important; color: #065f46 !important; border-color: #6ee7b7 !important; }
.room-head { background: #fffdf8 !important; border-bottom-color: rgba(22, 30, 46, 0.1) !important; }

/* Word Pacer Stage & Controls (pacer.html) */
.pacer-page .word-pacer-card,
.pacer-stage {
  background: #fffdf8 !important;
  border: 1px solid rgba(22, 30, 46, 0.12) !important;
  color: #161e2e !important;
  box-shadow: var(--studio-shadow) !important;
}
.pacer-hero p, .pace-card p { color: #334155 !important; }
.pacer-word-focus { color: #161e2e !important; }
.pacer-word-orp { color: #d44835 !important; }
.pacer-guide-line { background: rgba(212, 72, 53, 0.25) !important; }
.pacer-progress-track { background: #e8dfd0 !important; }
.pacer-progress-fill { background: linear-gradient(90deg, #d44835, #0f766e) !important; }

/* Coaching Wizard & Practice Page (coaching.html / practice.html / roles.html) */
.coaching-wizard-card, .booking-confirm, .bk-step-pane, .my-requests-box, .my-request,
.practice-card, .workout-gym-box, .twister-display, .dialogue-prompt-box, .roadmap-card-wrapper {
  background: rgba(255, 253, 248, 0.94) !important;
  border: 1px solid rgba(22, 30, 46, 0.11) !important;
  color: #161e2e !important;
  box-shadow: var(--studio-shadow) !important;
}
.twister-text, .my-request strong { color: #161e2e !important; }

/* Legal Pages */
.legal-page { color: #334155 !important; }
.legal-page h1, .legal-page h2, .legal-page h3, .legal-page strong { color: #161e2e !important; }
.legal-page p, .legal-page li, .legal-page td { color: #334155 !important; }
.legal-lead { color: #475569 !important; }
.legal-page th { background: #ede4d1 !important; color: #161e2e !important; }
.legal-page td, .legal-page tr > td:first-child { background: rgba(255, 253, 248, 0.92) !important; color: #161e2e !important; }
.legal-page td, .legal-page th, .legal-toc { border-color: rgba(22, 30, 46, 0.12) !important; }
.legal-toc { background: rgba(255, 253, 248, 0.94) !important; }
.legal-toc a { color: #0f766e !important; }
/* <code> chips (pay_, sub_, HttpOnly): the pages still gave them the old dark theme's pale blue
   (#bae6fd), which is about 1.2:1 on cream and could not be read. */
.legal-page code { background: rgba(15, 118, 110, 0.1) !important; color: #134e4a !important; }

/* Role Roadmap Preview, Mock Room & Coaching Room inline overrides */
.career-card { background: rgba(255, 253, 248, 0.94) !important; border-color: rgba(22, 30, 46, 0.12) !important; color: #161e2e !important; }
#roomQuestionText, #feedbackSection h4 { color: #161e2e !important; }
#feedbackSection, #interviewRoomCard > div[style*="background:#151e24"],
#interviewRoomCard > div > div[style*="background:#151e24"] {
  background: #f5efe1 !important; border-color: rgba(22, 30, 46, 0.12) !important; color: #161e2e !important;
}
#feedbackStarBreakdown, #feedbackTips { color: #334155 !important; }
.interviewer-card { background: #f5efe1 !important; border-color: rgba(22, 30, 46, 0.12) !important; color: #161e2e !important; }
.interviewer-card.active { background: #fff4ef !important; border-color: #d44835 !important; box-shadow: 0 4px 14px rgba(212, 72, 53, 0.15) !important; }
.coaching-room-page, .coaching-room-shell, .session-sidebar, .video-grid-area { background: #f7f1e3 !important; color: #161e2e !important; }
.participant-tile, .rubric-box, .chat-panel { background: #fffdf8 !important; border-color: rgba(22, 30, 46, 0.12) !important; color: #161e2e !important; }
.participant-tile *, .rubric-box label, .chat-panel * { color: #161e2e !important; }

/* Footer, Floating Help & Cookie Consent Banner */
footer.site-footer {
  background: rgba(243, 235, 219, 0.85) !important;
  border-top: 1px solid rgba(22, 30, 46, 0.1) !important;
  color: #334155 !important;
}
.site-footer-links a, .site-footer-legal a { color: #334155 !important; }
.site-footer-links a:hover, .site-footer-legal a:hover { color: #d44835 !important; }
.floating-help {
  background: #ffffff !important;
  color: #d44835 !important;
  border: 1px solid rgba(212, 72, 53, 0.3) !important;
  box-shadow: 0 12px 30px rgba(72, 57, 36, 0.14) !important;
}
.consent-banner {
  background: rgba(255, 253, 248, 0.97) !important;
  border-top: 1px solid rgba(22, 30, 46, 0.14) !important;
  color: #161e2e !important;
  box-shadow: 0 -10px 30px rgba(72, 57, 36, 0.1) !important;
}
.consent-banner-title, .consent-banner-text { color: #161e2e !important; }
.consent-btn-decline { background: #f3ecdc !important; color: #161e2e !important; border-color: rgba(22, 30, 46, 0.16) !important; }
.consent-btn-accept { background: #d44835 !important; color: #ffffff !important; border-color: #b83827 !important; }
.consent-btn-keep { color: #475569 !important; }

/* Inline-styled card & banner cleanups */
.feedback-fallback-note {
  background: #fef3c7 !important; border-color: #f59e0b !important; color: #92400e !important;
}

/* Home Demo Stage, Megamenu Foot, Marquee & Card Tag Inline Overrides */
.megamenu-foot a { color: #334155 !important; font-weight: 600; }
.megamenu-foot a:hover { color: #d44835 !important; }
.skill-showcase-card .skill-tag {
  background: rgba(15, 118, 110, 0.1) !important;
  color: #0f766e !important;
  border: 1px solid rgba(15, 118, 110, 0.28) !important;
}
#demoVideoPane div[style*="rgba(0,0,0"] {
  background: rgba(255, 253, 248, 0.94) !important;
  border: 1px solid rgba(22, 30, 46, 0.12) !important;
}
#demoHostName,
.demo-candidate-pip,
.demo-candidate-pip * { color: #161e2e !important; }
#demoBadge,
#demoSpeakerLabel,
#demoChipValue,
#btnShuffleLabQuestion { color: #0f766e !important; font-weight: 700; }
#demoScreenUrl,
#demoPanelNote,
#demoChipLabel,
.section-company-marquee span[style*="color:#94a3b8"],
.section-company-marquee span[style*="color: #94a3b8"],
.section-faculty span[style*="color:#94a3b8"],
.section-faculty span[style*="color: #94a3b8"],
.section-reels span[style*="color:#94a3b8"],
.section-reels span[style*="color: #94a3b8"],
.section-careers-banner p,
.section-careers-banner span[style*="color:#94a3b8"] { color: #475569 !important; }
.faculty-badge-pill,
.section-courses div[style*="color:#7dd3fc"],
.section-careers-banner span[style*="color:#38bdf8"] {
  background: rgba(15, 118, 110, 0.1) !important;
  color: #0f766e !important;
  border-color: rgba(15, 118, 110, 0.28) !important;
}
.faculty-verified {
  background: #0f766e !important;
  color: #ffffff !important;
  border: 2px solid #fffdf8 !important;
}
.orientation-timetable {
  background: rgba(255, 253, 248, 0.94) !important;
  background-image: none !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(22, 30, 46, 0.12) !important;
  box-shadow: var(--studio-shadow) !important;
  color: #161e2e !important;
}
.timetable-item strong { color: #161e2e !important; }
.timetable-item span { color: #475569 !important; }
.timetable-icon {
  background: rgba(212, 72, 53, 0.1) !important;
  border: 1px solid rgba(212, 72, 53, 0.22) !important;
  color: #d44835 !important;
}
.section-pricing div[style*="color:#22c55e"] {
  background: rgba(15, 118, 110, 0.1) !important;
  color: #065f46 !important;
  border-color: rgba(15, 118, 110, 0.3) !important;
}
#demoChipTag,
.demo-chip span[style*="color:#22c55e"],
.demo-scorecard-list span[style*="color:#22c55e"],
#demoPanelList span[style*="color:#22c55e"] { color: #065f46 !important; font-weight: 700; }
.demo-scorecard-list span[style*="color:#38bdf8"],
#demoPanelList span[style*="color:#38bdf8"] { color: #b83827 !important; }
.demo-wave-box {
  background: rgba(255, 253, 248, 0.94) !important;
  border: 1px solid rgba(22, 30, 46, 0.14) !important;
  color: #161e2e !important;
}
.soundwave-bar { background: #d44835 !important; }

/* Speech Lab & Audience Offer Proof Cards (index.html) */
.offer-proof-card,
.audience-card {
  background: var(--bg-card) !important;
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle) !important;
  color: #161e2e !important;
  box-shadow: var(--studio-shadow) !important;
}
.offer-proof-card p,
.offer-proof-card li,
.audience-card p,
.audience-card li,
#labMicSub,
.lab-metric-label,
.lab-sample-note { color: #475569 !important; }
.offer-proof-card h4,
.audience-card h4 { color: #161e2e !important; }
.lab-status-badge {
  background: rgba(15, 118, 110, 0.1) !important;
  color: #065f46 !important;
  border-color: rgba(15, 118, 110, 0.3) !important;
}
.lab-metric-card span[style*="color:#4ade80"],
#labMetricConfidence { color: #065f46 !important; }
.lab-metric-card span[style*="color:#38bdf8"],
#labMetricPace { color: #0f766e !important; }
.lab-metric-card span[style*="color:#c084fc"],
#labMetricFillers { color: #b83827 !important; }

/* ==========================================================================
   GLOBAL SUBPAGE LIGHT STUDIO OVERRIDES (Pacer, Practice, Roles, Coaching,
   Coaching Room, Courses, About & Legal Pages)
   ========================================================================== */

/* Headings & high-contrast body links everywhere */
h1, h2, h3, h4, h5 {
  color: #161e2e !important;
}
.hero h1 .gradient-text,
.coaching-hero h1 .gradient-text,
.pacer-hero h1 .gradient-text,
.stat-item h3 {
  -webkit-text-fill-color: transparent !important;
}
main a:not(.btn):not(.nav-link):not(.exam-track-pill):not(.role-card):not(.domain-card):not(.footer-link):not(.roadmap-lesson-link):not(.roadmap-status-pill),
.legal-page a,
.consent-banner a,
.custom-modal-card a:not(.btn),
.setup-modal-card a:not(.btn) {
  color: #0f766e !important;
}
main a:not(.btn):not(.nav-link):not(.exam-track-pill):not(.role-card):not(.domain-card):not(.footer-link):not(.roadmap-lesson-link):not(.roadmap-status-pill):hover,
.legal-page a:hover,
.consent-banner a:hover {
  color: #d44835 !important;
}
.site-footer-bottom,
.site-footer-bottom span,
.site-footer-bottom div {
  color: #475569 !important;
}

/* Rapid Word Pacer (pacer.html) */
.pacer-hero p,
.pacer-meta-strip,
.pacer-meta-strip span,
.pacer-shortcuts-note,
.pacer-wpm-readout span,
.pacer-tip-card p,
.pacer-word.is-placeholder {
  color: #475569 !important;
}
.pacer-meta-strip strong,
.pacer-title-wrap h2,
.pacer-setting-head,
.pacer-option-line,
.pacer-option-line strong,
.pacer-option-line span,
.pacer-checkbox-label,
.pacer-textarea-head label,
.pacer-textarea-head span {
  color: #161e2e !important;
}
.pacer-badge {
  background: rgba(15, 118, 110, 0.12) !important;
  border: 1px solid rgba(15, 118, 110, 0.3) !important;
  color: #0f766e !important;
}
.pacer-stage {
  background: #fffdf8 !important;
  border: 1px solid rgba(22, 30, 46, 0.15) !important;
  box-shadow: inset 0 2px 14px rgba(72, 57, 36, 0.05), 0 8px 24px rgba(72, 57, 36, 0.05) !important;
}
.pacer-word {
  color: #161e2e !important;
}
.pacer-word .orp-focal {
  color: #d44835 !important;
  text-shadow: 0 0 14px rgba(212, 72, 53, 0.18) !important;
}
.pacer-reticle-top,
.pacer-reticle-bottom {
  background: rgba(212, 72, 53, 0.65) !important;
}
.pacer-guide-line {
  background: rgba(22, 30, 46, 0.09) !important;
}
.pacer-progress-track {
  background: rgba(22, 30, 46, 0.09) !important;
}
.pacer-progress-fill {
  background: linear-gradient(90deg, #d44835, #0f766e) !important;
}
.pacer-sample-btn,
.pacer-btn-step,
.pacer-nudge-btn,
.pacer-preset-pill {
  background: #f3ecdc !important;
  border: 1px solid rgba(22, 30, 46, 0.16) !important;
  color: #1e293b !important;
}
.pacer-sample-btn:hover,
.pacer-btn-step:hover,
.pacer-nudge-btn:hover {
  background: #fffdf8 !important;
  border-color: #d44835 !important;
  color: #b83827 !important;
}
.pacer-sample-btn.active,
.pacer-preset-pill.active,
.pacer-preset-pill:hover {
  background: #d44835 !important;
  border-color: #b83827 !important;
  color: #ffffff !important;
}
#rsvpClearBtn,
.pacer-sample-btn-clear {
  background: #fff1f2 !important;
  border-color: rgba(220, 38, 38, 0.35) !important;
  color: #b91c1c !important;
}
#rsvpClearBtn:hover,
.pacer-sample-btn-clear:hover {
  background: #fee2e2 !important;
  color: #991b1b !important;
}
.pacer-settings-grid {
  background: #f5efe1 !important;
  border: 1px solid rgba(22, 30, 46, 0.11) !important;
}
.pacer-wpm-input {
  background: #ffffff !important;
  border-color: rgba(212, 72, 53, 0.38) !important;
  color: #d44835 !important;
}
.pacer-wpm-slider,
.pacer-checkbox-label input {
  accent-color: #d44835 !important;
}
.pacer-chip-group {
  background: #e9dfca !important;
  border: 1px solid rgba(22, 30, 46, 0.14) !important;
}
.pacer-seg-btn {
  background: transparent !important;
  color: #334155 !important;
}
.pacer-seg-btn.active {
  background: #d44835 !important;
  color: #ffffff !important;
}

/* Communication Practice & P.A.C.E. (practice.html) */
.practice-hero { background: transparent !important; }
.pulse-pill {
  background: rgba(15, 118, 110, 0.11) !important;
  color: #0f766e !important;
  border-color: rgba(15, 118, 110, 0.32) !important;
}
.stage-card-box,
.history-card,
.pace-card,
.settings-panel {
  background: rgba(255, 253, 248, 0.88) !important;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(22, 30, 46, 0.12) !important;
  box-shadow: var(--studio-shadow) !important;
  color: #161e2e !important;
}
.mode-switch {
  background: #ebe2ce !important;
  border-color: rgba(22, 30, 46, 0.14) !important;
}
.mode-thumb {
  background: linear-gradient(135deg, #d44835, #c03d2b) !important;
  box-shadow: 0 4px 14px rgba(212, 72, 53, 0.28) !important;
}
.mode-option { color: #334155 !important; }
.mode-option.is-active { color: #ffffff !important; }
.mode-blurb,
.timer-next,
.history-sub,
.history-empty,
.history-meta,
.pace-intro,
.pace-step p,
.pace-howto,
.record-note,
.settings-panel-blurb,
.duration-ends,
.duration-hint {
  color: #475569 !important;
}
.niche-trigger {
  background: #fffdf8 !important;
  color: #161e2e !important;
  border: 1px solid rgba(22, 30, 46, 0.18) !important;
  box-shadow: 0 4px 14px rgba(72, 57, 36, 0.06) !important;
}
.niche-trigger:hover {
  border-color: #d44835 !important;
  box-shadow: 0 8px 20px rgba(212, 72, 53, 0.12) !important;
}
.niche-caret { border-top-color: #475569 !important; }
.niche-menu {
  background: #fffdf8 !important;
  border-color: rgba(22, 30, 46, 0.15) !important;
  box-shadow: 0 22px 48px rgba(72, 57, 36, 0.16) !important;
}
.niche-option { color: #334155 !important; }
.niche-option:hover { background: rgba(212, 72, 53, 0.08) !important; color: #b83827 !important; }
.niche-option.is-active { background: rgba(212, 72, 53, 0.14) !important; color: #b83827 !important; }
.niche-group-title { color: #0f766e !important; }
.niche-group + .niche-group { border-top-color: rgba(22, 30, 46, 0.09) !important; }
.reel {
  position: relative;
  overflow: hidden;
  background: #fff9ee !important;
  border: 1.5px solid rgba(212, 72, 53, 0.28) !important;
  box-shadow: inset 0 2px 18px rgba(72, 57, 36, 0.05), 0 8px 26px rgba(72, 57, 36, 0.06) !important;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}
.reel:hover {
  border-color: #d44835 !important;
  box-shadow: inset 0 2px 18px rgba(212, 72, 53, 0.06), 0 14px 34px rgba(212, 72, 53, 0.12) !important;
}
.reel::before {
  content: "";
  position: absolute;
  inset: -40% -25%;
  background: linear-gradient(110deg, transparent 35%, rgba(212, 72, 53, 0.09) 48%, rgba(15, 118, 110, 0.08) 54%, transparent 66%);
  transform: translateX(-110%);
  pointer-events: none;
  z-index: 0;
}
.reel > * { position: relative; z-index: 1; }
.reel-top-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.reel-spinner-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.reel.is-spinning .reel-spinner-badge {
  background: rgba(212, 72, 53, 0.16);
  color: #d44835;
}
.reel.is-spinning .reel-wheel-icon {
  animation: reel-wheel-spin 0.48s linear infinite !important;
}
.reel.is-landed .reel-spinner-badge {
  background: rgba(15, 118, 110, 0.16);
  color: #0f766e;
  transform: scale(1.08);
}
.reel-viewport {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 720px;
  overflow: hidden;
  padding: 0.15rem 0;
}
.reel-spin-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(22, 30, 46, 0.07);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.reel-spin-bar-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #d44835, #e07a32, #0f766e);
  transition: width 0.06s linear;
}
.reel.is-spinning {
  border-color: #d44835 !important;
  background: linear-gradient(180deg, #fffdf9 0%, #fff4e8 100%) !important;
  box-shadow: 0 0 0 4px rgba(212, 72, 53, 0.14), 0 18px 42px rgba(212, 72, 53, 0.18) !important;
}
.reel.is-spinning::before {
  animation: reel-sweep 0.65s linear infinite !important;
}
.reel.is-spinning .reel-spin-bar {
  opacity: 1;
}
.reel.is-spinning .reel-phrase {
  will-change: transform, opacity;
}
.reel.is-spinning .reel-phrase.tick-odd {
  animation: reel-slot-a 95ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
}
.reel.is-spinning .reel-phrase.tick-even {
  animation: reel-slot-b 95ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
}
.reel.is-landed {
  border-color: rgba(15, 118, 110, 0.52) !important;
  background: linear-gradient(180deg, #fffdf8 0%, #f5fbf8 100%) !important;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12), 0 16px 38px rgba(15, 118, 110, 0.14) !important;
}
.reel.is-landed .reel-phrase {
  animation: reel-land-pop 0.56s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}
@keyframes reel-wheel-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes reel-sweep {
  from { transform: translateX(-110%); }
  to { transform: translateX(120%); }
}
@keyframes reel-slot-a {
  0% { opacity: 0.85; transform: translateY(16px) rotateX(18deg) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) rotateX(0deg) scale(1); }
}
@keyframes reel-slot-b {
  0% { opacity: 0.85; transform: translateY(16px) rotateX(18deg) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) rotateX(0deg) scale(1); }
}
@keyframes reel-land-pop {
  0% { opacity: 0.88; transform: translateY(12px) scale(0.95); }
  55% { opacity: 1; transform: translateY(-2px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  background: #f3ecdc !important;
  color: #161e2e !important;
  border: 1px solid rgba(22, 30, 46, 0.16) !important;
}
.sound-toggle-btn[aria-pressed="true"] {
  background: rgba(212, 72, 53, 0.1) !important;
  border-color: rgba(212, 72, 53, 0.32) !important;
  color: #b83827 !important;
}
.sound-toggle-btn:hover {
  border-color: #d44835 !important;
}
.reel-eyebrow,
.reel-subtopic,
.pace-eyebrow,
.pace-letter,
.pace-time,
.timer-phase,
.timer-subtopic,
.duration-label {
  color: #0f766e !important;
}
.reel-phrase,
#reelPhrase,
.pace-card h2,
.history-head h2,
.history-topic,
.pace-step strong,
.settings-panel-title,
.duration-value {
  color: #161e2e !important;
}
.record-box,
.pace-step,
.history-item {
  background: #f4ede0 !important;
  border: 1px solid rgba(22, 30, 46, 0.11) !important;
  color: #161e2e !important;
}
.record-toggle label,
.record-playback-title,
.settings-mute label {
  color: #161e2e !important;
}
.record-playback { border-top-color: rgba(22, 30, 46, 0.1) !important; }
.settings-trigger,
#btnSettings {
  background: #f3ecdc !important;
  border: 1px solid rgba(22, 30, 46, 0.18) !important;
  color: #161e2e !important;
  box-shadow: 0 4px 12px rgba(72, 57, 36, 0.08) !important;
}
.settings-trigger:hover,
#btnSettings:hover {
  border-color: #d44835 !important;
  color: #d44835 !important;
}
.duration-slider,
.record-toggle input,
.settings-mute input { accent-color: #d44835 !important; }
.duration-slider { background: rgba(212, 72, 53, 0.2) !important; }
.duration-slider::-webkit-slider-thumb { background: #d44835 !important; box-shadow: 0 0 0 4px rgba(212, 72, 53, 0.24) !important; }
.rec-indicator { background: #fee2e2 !important; color: #b91c1c !important; border-color: rgba(220, 38, 38, 0.4) !important; }
.rec-indicator.is-off { background: #e2e8f0 !important; color: #334155 !important; }
.record-msg { color: #92400e !important; }
.record-msg.is-ok { color: #065f46 !important; }
.practice-toast { background: #fffdf8 !important; color: #161e2e !important; border-color: #d44835 !important; box-shadow: 0 12px 32px rgba(72, 57, 36, 0.18) !important; }
.timer-overlay { background: rgba(251, 247, 236, 0.94) !important; color: #161e2e !important; }
.timer-ring {
  background: radial-gradient(circle at center, #fffdf8 62%, transparent 63%), conic-gradient(#d44835 calc(var(--p) * 1turn), rgba(22, 30, 46, 0.12) 0) !important;
  box-shadow: 0 18px 45px rgba(212, 72, 53, 0.18) !important;
}
.timer-overlay.is-research .timer-ring {
  background: radial-gradient(circle at center, #fffdf8 62%, transparent 63%), conic-gradient(#0f766e calc(var(--p) * 1turn), rgba(22, 30, 46, 0.12) 0) !important;
}
.timer-digits,
.timer-status,
.timer-topic { color: #161e2e !important; }
.speech-stage { background: #f3ecdc !important; color: #334155 !important; border-color: rgba(22, 30, 46, 0.12) !important; }
.speech-stage-hint { color: #475569 !important; }
.speech-stage.is-hit { background: #d44835 !important; color: #ffffff !important; border-color: #b83827 !important; box-shadow: 0 8px 22px rgba(212, 72, 53, 0.28) !important; }
.speech-stage.is-hit .speech-stage-hint { color: rgba(255, 255, 255, 0.92) !important; }

/* Roles Directory & Roadmaps (roles.html) */
.career-card h3,
.domain-card h4,
.interview-type-card h3,
.roadmap-card-wrapper h2,
.roadmap-card-wrapper h3 { color: #161e2e !important; }
.career-card p,
.domain-card p,
.interview-type-card p,
.pack-topics,
.topic-placeholder { color: #475569 !important; }
.readiness-score-box,
.roadmap-card-wrapper,
.interview-type-card {
  background: var(--bg-card) !important;
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle) !important;
  color: #161e2e !important;
  box-shadow: var(--studio-shadow) !important;
}
.roadmap-step-item {
  background: #f3ecdc !important;
  border-left-color: #d44835 !important;
}
.english-coach-banner {
  background: linear-gradient(135deg, #fffdf8 0%, #f5efe1 100%) !important;
  border-color: rgba(212, 72, 53, 0.25) !important;
  color: #161e2e !important;
}
.topic-pill,
.pack-suggested-tag,
.interview-type-card .type-badge,
.domain-icon {
  background: rgba(15, 118, 110, 0.1) !important;
  color: #0f766e !important;
  border-color: rgba(15, 118, 110, 0.26) !important;
}
.career-tab-btn {
  background: #f3ecdc !important;
  color: #334155 !important;
  border-color: rgba(22, 30, 46, 0.14) !important;
}
.career-tab-btn.active,
.career-tab-btn:hover {
  background: linear-gradient(135deg, #d44835 0%, #c03d2b 100%) !important;
  color: #ffffff !important;
}

/* Courses Portal extras (courses.html) */
.courses-header p,
.course-lock-panel p { color: #475569 !important; }
.courses-header div[style*="color:#94a3b8"],
#courseViewer div[style*="color:#94a3b8"],
#courseCurriculum div[style*="color:#94a3b8"] { color: #475569 !important; }
#courseProgressText { color: #0f766e !important; font-weight: 800; }
.course-drill-box {
  background: #f3ecdc !important;
  border-color: rgba(15, 118, 110, 0.26) !important;
  color: #161e2e !important;
}

/* Coaching Hub & Wizard (coaching.html) */
.coaching-hero { background: transparent !important; }
.section-stats {
  background: rgba(255, 253, 248, 0.65) !important;
  backdrop-filter: blur(10px);
  border-color: rgba(22, 30, 46, 0.08) !important;
}
.stat-item p,
.mentor-speciality,
.bk-hint,
.track-price span,
.b-step { color: #475569 !important; }
.philosophy-section {
  background: rgba(243, 235, 219, 0.5) !important;
  border-color: rgba(22, 30, 46, 0.09) !important;
}
.philosophy-section p { color: #334155 !important; }
.philosophy-title,
.track-title,
.track-price { color: #161e2e !important; }
.track-card,
.booking-box {
  background: var(--bg-card) !important;
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle) !important;
  color: #161e2e !important;
  box-shadow: var(--studio-shadow) !important;
}
.b-step.active { color: #d44835 !important; }
.b-step-num { background: #e9dfca !important; color: #334155 !important; }
.b-step.active .b-step-num { background: #d44835 !important; color: #ffffff !important; }
.b-step-line { background: rgba(22, 30, 46, 0.14) !important; }
.slot-pill {
  background: #f3ecdc !important;
  border-color: rgba(22, 30, 46, 0.14) !important;
  color: #1e293b !important;
}
.slot-pill:hover,
.slot-pill.active {
  background: #d44835 !important;
  border-color: #b83827 !important;
  color: #ffffff !important;
}
.coach-card-select {
  background: #f5efe1 !important;
  border-color: rgba(22, 30, 46, 0.12) !important;
  color: #161e2e !important;
}
.coach-card-select * { color: #161e2e !important; }
.coach-card-select:hover,
.coach-card-select.active {
  background: #fff3ed !important;
  border-color: #d44835 !important;
  box-shadow: 0 8px 22px rgba(212, 72, 53, 0.14) !important;
}
.bk-field-error { color: #b91c1c !important; }
.admin-floating-pill {
  background: #fffdf8 !important;
  border-color: #d44835 !important;
  color: #161e2e !important;
  box-shadow: 0 10px 26px rgba(72, 57, 36, 0.14) !important;
}
.cx-toast {
  background: #fffdf8 !important;
  border-color: #d44835 !important;
  color: #161e2e !important;
  box-shadow: 0 12px 30px rgba(72, 57, 36, 0.18) !important;
}

/* About Page Status Pills (about.html) */
.status-pill.live {
  background: rgba(15, 118, 110, 0.12) !important;
  color: #065f46 !important;
  border-color: rgba(15, 118, 110, 0.35) !important;
}
.status-pill.soon {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-color: rgba(217, 119, 6, 0.35) !important;
}

/* 1:1 Coaching Room (coaching-room.html) */
.room-header {
  background: rgba(255, 253, 248, 0.94) !important;
  border-bottom: 1px solid rgba(22, 30, 46, 0.12) !important;
  color: #161e2e !important;
}
.room-exit-link,
.timer-caption,
.saved-note,
.sidebar-tab-btn {
  color: #475569 !important;
}
.room-exit-link:hover,
.sidebar-tab-btn.active { color: #d44835 !important; border-bottom-color: #d44835 !important; }
#roomTitleHeader { color: #161e2e !important; }
.room-notice {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #92400e !important;
}
.room-notice a,
.room-notice strong { color: #78350f !important; }
.video-stage { background: transparent !important; }
.video-tile {
  background: rgba(255, 253, 248, 0.92) !important;
  border: 1px solid rgba(22, 30, 46, 0.14) !important;
  color: #161e2e !important;
  box-shadow: var(--studio-shadow) !important;
}
.tile-tag {
  background: rgba(243, 236, 220, 0.92) !important;
  color: #161e2e !important;
  border: 1px solid rgba(22, 30, 46, 0.1) !important;
}
.controls-bar {
  background: rgba(255, 253, 248, 0.96) !important;
  border: 1px solid rgba(22, 30, 46, 0.14) !important;
  box-shadow: var(--studio-shadow) !important;
}
.ctrl-btn {
  background: #f3ecdc !important;
  color: #161e2e !important;
  border: 1px solid rgba(22, 30, 46, 0.14) !important;
}
.ctrl-btn:hover { background: #fffdf8 !important; border-color: #d44835 !important; }
.ctrl-btn.danger { background: #d44835 !important; color: #ffffff !important; border-color: #b83827 !important; }
.ctrl-btn.is-off { background: #e2e8f0 !important; color: #64748b !important; }
.ctrl-btn.is-off::after { background: #475569 !important; }
.sidebar-panel,
.room-grid > aside {
  background: rgba(255, 253, 248, 0.92) !important;
  border-left: 1px solid rgba(22, 30, 46, 0.12) !important;
  color: #161e2e !important;
}
.sidebar-panel *,
.room-grid > aside h2,
.room-grid > aside p { color: #334155 !important; }
.sidebar-panel h2,
.room-grid > aside h2,
.sidebar-panel h3 { color: #161e2e !important; }
.notes-textarea {
  background: #ffffff !important;
  color: #161e2e !important;
  border: 1px solid rgba(22, 30, 46, 0.18) !important;
}
.tab-caption,
.mentor-only-badge,
.preview-badge {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid rgba(217, 119, 6, 0.32) !important;
}

/* ==========================================================================
   VAALENTIN-2015 INTERACTIVE HOVER & ARCHITECTURAL CURSOR EFFECTS
   ========================================================================== */

/* Sweeping editorial hairline underline on header nav links */
header.navbar .nav-link,
header.navbar button.nav-link {
  position: relative;
  transition: color 0.24s ease, letter-spacing 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
header.navbar .nav-link::after,
header.navbar button.nav-link::after {
  content: '';
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d44835, #0f766e);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
header.navbar .nav-link:hover::after,
header.navbar .nav-link.active::after,
header.navbar button.nav-link:hover::after,
header.navbar button.nav-link.active::after {
  transform: scaleX(1);
}

/* Kinetic diagonal sheen + magnetic pull on CTA buttons */
.btn-primary,
.btn-secondary,
.btn-signin {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -75%;
  width: 55%;
  height: 140%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.32) 50%, transparent 80%);
  transform: skewX(-18deg);
  transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.btn-primary:hover::before {
  left: 135%;
}
.btn-primary:hover {
  transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 2px)) scale(1.015) !important;
}
.btn-secondary:hover,
.btn-signin:hover {
  transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 2px)) !important;
}

/* Exam track pills & demo tabs magnetic float + crisp left accent sweep */
.exam-track-pill,
.demo-tab-btn,
.course-filter-btn,
.pacer-preset-pill {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.22s ease, background 0.22s ease;
}
.exam-track-pill:hover,
.demo-tab-btn:hover,
.course-filter-btn:hover {
  transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 3px)) !important;
  box-shadow: 0 12px 26px rgba(212, 72, 53, 0.14) !important;
  border-color: rgba(212, 72, 53, 0.48) !important;
}

/* Vaalentin 3D Card Tilt + Radial Spotlight Glint (safe with overflowing pricing badges) */
.skill-showcase-card,
.visual-feature-card,
.course-mod-card,
.pricing-card,
.faculty-card,
.mentor-card,
.reel-card,
.domain-card,
.role-card,
.lab-metric-card,
.career-card,
.track-card,
.interview-type-card,
.pacer-tip-card,
.legal-card,
.pace-step {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.24s ease,
    background 0.26s ease;
}

.skill-showcase-card:hover,
.visual-feature-card:hover,
.course-mod-card:hover,
.pricing-card:hover,
.faculty-card:hover,
.mentor-card:hover,
.reel-card:hover,
.domain-card:hover,
.role-card:hover,
.lab-metric-card:hover,
.career-card:hover,
.track-card:hover,
.interview-type-card:hover,
.pacer-tip-card:hover,
.legal-card:hover,
.pace-step:hover {
  transform: perspective(920px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px) !important;
  background-image: radial-gradient(
    420px circle at var(--hx, 50%) var(--hy, 50%),
    rgba(212, 72, 53, 0.11),
    rgba(15, 118, 110, 0.05) 45%,
    transparent 74%
  ) !important;
  border-color: rgba(212, 72, 53, 0.42) !important;
  box-shadow: 0 24px 52px rgba(72, 57, 36, 0.13), 0 0 0 1px rgba(212, 72, 53, 0.14) inset !important;
}

.pricing-card.featured:hover {
  background-image:
    radial-gradient(440px circle at var(--hx, 50%) var(--hy, 50%), rgba(212, 72, 53, 0.14), transparent 72%),
    linear-gradient(180deg, #ffffff 0%, #fff6ef 100%) !important;
}

.skill-showcase-card:hover .skill-tag,
.course-mod-card:hover .course-mod-num,
.domain-card:hover h3,
.role-card:hover h3 {
  color: #d44835 !important;
}

/* Tactile Architectural Cursor Ring & Center Dot (Desktop fine pointers only) */
.studio-cursor-dot,
.studio-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.studio-cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d44835;
  transform: translate3d(-100px, -100px, 0);
}

.studio-cursor-ring {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1.5px solid rgba(212, 72, 53, 0.55);
  background: rgba(212, 72, 53, 0.03);
  transition:
    width 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.24s ease,
    background 0.24s ease,
    opacity 0.22s ease;
  transform: translate3d(-100px, -100px, 0);
}

.studio-cursor-ring.is-visible,
.studio-cursor-dot.is-visible {
  opacity: 1;
}

.studio-cursor-ring.is-interactive {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  border-color: #d44835;
  background: rgba(212, 72, 53, 0.09);
}

.studio-cursor-ring.is-card {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border-color: rgba(15, 118, 110, 0.65);
  background: rgba(15, 118, 110, 0.05);
}

.studio-cursor-ring.is-pressed {
  transform-origin: center;
  border-color: #0f766e;
  background: rgba(15, 118, 110, 0.14);
}

@media (hover: none), (pointer: coarse) {
  .studio-cursor-dot,
  .studio-cursor-ring {
    display: none !important;
  }
}

/* Unified Setup Modal (Packs, Topic Pills, Interviewer Cards) & Follow-Up Room UI */
.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.65rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.topic-pill-remove {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  min-width: 24px;
  min-height: 24px;
  margin: -0.2rem -0.45rem -0.2rem 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.topic-pill-remove:hover,
.topic-pill-remove:focus-visible {
  background: rgba(15, 118, 110, 0.16);
  outline: none;
}
.topic-placeholder {
  font-size: 0.78rem;
  color: #475569;
  align-self: center;
  line-height: 1.4;
}
#topicTagsContainer {
  background: #f5efe1 !important;
  border: 1px solid rgba(22, 30, 46, 0.12) !important;
  border-radius: var(--radius-sm);
}
.pack-topics {
  font-size: 0.73rem;
  color: #475569;
  line-height: 1.38;
  margin-top: 0.15rem;
}
.pack-item.pack-suggested {
  border-color: rgba(15, 118, 110, 0.42) !important;
  background: rgba(15, 118, 110, 0.06) !important;
}
.pack-suggested-tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.42rem;
  border-radius: 99px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.pack-btn-add {
  background: rgba(15, 118, 110, 0.1) !important;
  color: #0f766e !important;
  border: 1px solid rgba(15, 118, 110, 0.25) !important;
  transition: background 0.18s ease, color 0.18s ease;
}
.pack-btn-add:hover {
  background: #0f766e !important;
  color: #ffffff !important;
}
.interviewer-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}
.interviewer-meta small,
.ai-interviewer-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: #475569;
}
.setup-modal-card .field-label {
  color: #161e2e !important;
  font-weight: 700;
}
.setup-modal-card {
  max-height: min(94vh, calc(100dvh - 1.25rem)) !important;
  padding: 1.4rem 1.75rem !important;
}
.setup-modal-header {
  margin-bottom: 1rem !important;
}
.setup-body-grid {
  gap: 1.35rem !important;
  align-items: start;
}
.packs-sidebar {
  padding: 1rem !important;
  max-height: 62vh;
  overflow-y: auto;
}
.pack-list {
  gap: 0.5rem !important;
}
.pack-item {
  padding: 0.5rem 0.75rem !important;
}
.setup-form-side {
  gap: 0.85rem !important;
}
.setup-actions {
  margin-top: 0.35rem !important;
}
.setup-modal-card .setup-ai-notice a {
  color: #0f766e !important;
}

/* Live Interview Room Question Toolbar & Visible Follow-Up Preview Card */
.room-question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.room-question-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.room-tool-btn {
  background: #ffffff;
  color: #0f766e;
  border: 1px solid rgba(15, 118, 110, 0.32);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.room-tool-btn:hover:not(:disabled) {
  background: rgba(15, 118, 110, 0.08);
  border-color: #0f766e;
}
.room-tool-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.followup-preview-box {
  margin-top: 1.15rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: #fffdf8;
  border: 1.5px solid rgba(15, 118, 110, 0.35);
  box-shadow: 0 8px 20px rgba(72, 57, 36, 0.06);
}
.followup-preview-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #0f766e;
  margin-bottom: 0.4rem;
}
.followup-preview-text {
  font-size: 1.02rem;
  font-weight: 700;
  color: #161e2e !important;
  line-height: 1.45;
  margin: 0 0 0.85rem 0;
}
.followup-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

/* Shared Tool Access Gate Banner & Locked Tool Preview State (Word Pacer, Communication Practice, 1:1 Coaching) */
[hidden] { display: none !important; }
.tool-access-banner {
  border-radius: 14px;
  padding: 0.95rem 1.2rem;
  border: 1.5px solid rgba(212, 72, 53, 0.34);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 10px 26px rgba(72, 57, 36, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 auto 1.25rem;
  max-width: 960px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #161e2e;
}
.tool-access-banner.needs-upgrade {
  border-color: rgba(217, 119, 6, 0.45);
  background: #fffbeb;
  color: #78350f;
}
.tool-access-banner.unlocked {
  border-color: rgba(15, 118, 110, 0.42);
  /* solid, not a 10% tint: the 3D stage's rings and bars showed through the sentence.
     #e3ebe3 is the same green tint mixed with the page's cream */
  background: #e3ebe3;
  color: #064e3b;
}
.tool-access-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.is-tool-locked .pacer-controls-row button,
.is-tool-locked .pacer-presets button,
.is-tool-locked .pacer-chip-group button,
.is-tool-locked .pacer-samples button,
.is-tool-locked .pacer-nudge-btn,
.is-tool-locked .pacer-wpm-slider,
.is-tool-locked .pacer-wpm-input,
.is-tool-locked .pacer-textarea,
.is-tool-locked .pacer-progress-track,
.is-tool-locked .mode-switch,
.is-tool-locked .niche-select,
.is-tool-locked .actions button:not(.sound-toggle-btn),
.is-tool-locked .record-box {
  opacity: 0.76;
}
.is-tool-locked #rsvpPlayBtn,
.is-tool-locked #btnSpin {
  opacity: 1 !important;
}

/* Video modal "coming soon" panel (index.html): it was a dark navy panel whose heading the
   global heading rule turned dark ink, so the title could not be read on any screen size. */
.video-coming-soon {
  background:
    radial-gradient(circle at 28% 18%, rgba(212, 72, 53, 0.12), transparent 58%),
    radial-gradient(circle at 82% 88%, rgba(15, 118, 110, 0.12), transparent 58%),
    #f5efe1 !important;
  color: #334155 !important;
}

/* ==========================================================================
   TEXT THAT SITS STRAIGHT ON THE 3D STAGE (laptops and desktops)
   Headings, intro lines and the text of the legal pages have no card behind them, so the
   stage's objects (above all the striped ball) pass right behind the letters. Measured on
   index.html with the ball in view: 25% of the letter edges of 16px body text were under 3:1
   contrast and 41% under 4.5:1. A soft halo in the page colour brings that to 0% and 0%
   (17px intro lines: 33% / 76% down to 0% / 2%), and it cannot be seen where nothing is behind
   the text. courses.html and pacer.html do the same for their own headers.
   Only with the 3D stage: phones and the lite stage have a still background, so no halo.
   .gradient-text is clipped to its letters (transparent fill): a shadow would paint over it.
   ========================================================================== */
@media (min-width: 768px) {
  html:not(.stage-lite) .hero h1,
  html:not(.stage-lite) .hero .hero-sub,
  html:not(.stage-lite) .hero-pricing-jump,
  html:not(.stage-lite) .tracks-highlight-badge,
  html:not(.stage-lite) .practice-hero h1,
  html:not(.stage-lite) .practice-hero .hero-sub,
  html:not(.stage-lite) .pulse-pill,
  html:not(.stage-lite) .coaching-hero h1,
  html:not(.stage-lite) .coaching-hero .hero-sub,
  html:not(.stage-lite) .pacer-hero h1,
  html:not(.stage-lite) .section-title,
  html:not(.stage-lite) .marquee-head,
  html:not(.stage-lite) .careers-content > div:first-child,
  html:not(.stage-lite) .philosophy-section h2,
  html:not(.stage-lite) .philosophy-section p,
  html:not(.stage-lite) .philosophy-section .container > span,
  html:not(.stage-lite) .section-domains h3,
  html:not(.stage-lite) .legal-page > h1,
  html:not(.stage-lite) .legal-page > h2,
  html:not(.stage-lite) .legal-page > h3,
  html:not(.stage-lite) .legal-page > p,
  html:not(.stage-lite) .legal-page > ul,
  html:not(.stage-lite) .legal-page > ol,
  html:not(.stage-lite) .legal-page > .legal-note {
    text-shadow:
      0 0 1px #f8f2e3, 0 0 1px #f8f2e3,
      0 0 3px #f8f2e3, 0 0 3px #f8f2e3,
      0 0 6px #f8f2e3, 0 0 6px #f8f2e3,
      0 0 12px #f8f2e3;
  }
  html:not(.stage-lite) .gradient-text,
  html:not(.stage-lite) .section-title .btn,
  html:not(.stage-lite) .legal-page mark,
  html:not(.stage-lite) .legal-page code {
    text-shadow: none;
  }
}

/* ==========================================================================
   LITE STAGE (no 3D canvas)
   three-stage.js puts class "stage-lite" on <html> when it decides not to download the 3D
   library: screens under 768px wide, data-saver, low-memory devices, 2G connections.
   (A laptop or desktop with "reduce motion" on still gets the 3D stage, at 0.65 speed.)
   The page then gets one still gradient in the same cream / amber / teal / terracotta
   palette. Cheap on purpose: a flat colour on <html> (no fixed-attachment background, so
   nothing is repainted while scrolling), and ONE fixed layer that is painted once and then
   only moved by the compositor. No blur, no animation. The layer is as tall as the largest
   viewport (100lvh), so it is not resized when a phone's address bar slides away.
   Screens under 768px get the same background straight from the media query below, so it is
   already there on the first paint, before any script has run.
   ========================================================================== */
:root {
  --lite-stage-base: #f8f2e3;
  --lite-stage-ambient:
    radial-gradient(ellipse 90% 46% at 0% 0%, rgba(233, 180, 92, 0.30) 0%, rgba(233, 180, 92, 0) 70%),
    radial-gradient(ellipse 80% 42% at 100% 14%, rgba(15, 118, 110, 0.15) 0%, rgba(15, 118, 110, 0) 68%),
    radial-gradient(ellipse 95% 44% at 22% 100%, rgba(212, 72, 53, 0.14) 0%, rgba(212, 72, 53, 0) 70%),
    radial-gradient(ellipse 70% 36% at 100% 78%, rgba(233, 180, 92, 0.16) 0%, rgba(233, 180, 92, 0) 70%),
    linear-gradient(180deg, #fbf7ec 0%, #f6eedc 52%, #f9f3e4 100%);
}
html.stage-lite { background: var(--lite-stage-base); }
html.stage-lite .bg-ambient { display: none; } /* replaced by the single layer below */
html.stage-lite .three-stage-canvas { display: none; } /* a canvas left behind by a failed 3D start keeps no box */
html.stage-lite body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  pointer-events: none;
  background: var(--lite-stage-ambient);
}
@media (max-width: 767px) {
  html { background: var(--lite-stage-base); }
  .bg-ambient { display: none; }
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    z-index: -1;
    pointer-events: none;
    background: var(--lite-stage-ambient);
  }
}
@media print {
  body::before { display: none !important; }
}

/* ==========================================================================
   LIGHT STUDIO RESPONSIVE OVERRIDES (must stay at end of light-studio.css)
   ========================================================================== */
@media (max-width: 1180px) {
  .studio-chapter-rail { display: none; }
  .nav-links {
    background: rgb(251, 248, 240) !important;
    border-bottom-color: rgba(212, 72, 53, 0.22) !important;
    box-shadow: 0 24px 48px rgba(72, 57, 36, 0.16) !important;
  }
  .nav-link, button.nav-link {
    border-bottom-color: rgba(22, 30, 46, 0.08) !important;
  }
}

@media (max-width: 900px) {
  .demo-stage-body { grid-template-columns: 1fr !important; }
  .courses-spotlight-card { grid-template-columns: 1fr !important; padding: 1.25rem !important; }
}

@media (max-width: 768px) {
  .hero { padding-top: 6.5rem; }
  .packs-sidebar { max-height: none; overflow-y: visible; }
  .roadmap-timeline { padding-left: 2.1rem; }
  .roadmap-timeline::before { left: 0.72rem; }
  .roadmap-stage-node { left: -2.1rem; width: 1.65rem; height: 1.65rem; font-size: 0.7rem; top: 0.6rem; }
  .roadmap-lesson-row { flex-direction: column; align-items: flex-start; gap: 0.45rem; }
}

/* ==========================================================================
   PHONE PASS (light-studio half) - keep this block LAST in the file.
   light-studio.css loads after styles.css and after each page's own <style>,
   and sets many colours and shadows with !important, so the phone rules that
   have to win against those live here. The layout half is the "PHONE PASS"
   block at the end of styles.css.
   ========================================================================== */

/* ---- Touch screens: a tap must not leave a card tilted or a button "pulled" ------------
   :hover sticks after a tap on phones and tablets. The 3D tilt, the spotlight and the
   magnetic pull are mouse effects, so they are switched off where there is no mouse. */
@media (hover: none), (pointer: coarse) {
  .skill-showcase-card, .visual-feature-card, .course-mod-card, .pricing-card, .faculty-card,
  .mentor-card, .reel-card, .domain-card, .role-card, .lab-metric-card, .career-card,
  .track-card, .interview-type-card, .pacer-tip-card, .legal-card, .pace-step {
    will-change: auto;
    transform-style: flat;
  }
  .skill-showcase-card:hover, .visual-feature-card:hover, .course-mod-card:hover, .pricing-card:hover,
  .faculty-card:hover, .mentor-card:hover, .reel-card:hover, .domain-card:hover, .role-card:hover,
  .lab-metric-card:hover, .career-card:hover, .track-card:hover, .interview-type-card:hover,
  .pacer-tip-card:hover, .legal-card:hover, .pace-step:hover {
    transform: none !important;
    background-image: none !important;
    box-shadow: var(--studio-shadow) !important;
  }
  .btn-primary:hover, .btn-secondary:hover, .btn-signin:hover,
  .exam-track-pill:hover, .demo-tab-btn:hover, .course-filter-btn:hover, .marquee-pill:hover {
    transform: none !important;
  }
  .btn-primary::before { display: none; }
}

/* ---- "Reduce motion" (system setting): the recruiter strip KEEPS scrolling ---------------
   Owner's decision (4 Dec 2026): the company marquee runs on laptops and desktops even when
   Windows "Animation effects" is off. So there is no reduced-motion rule for it here: the
   track keeps its animation and the second copy of the pills stays visible, because the
   loop (translateX(-50%)) is only seamless with both copies. Hovering the strip pauses it.
   Phones are separate: under 768px the strip is a swipe row (PHONE PASS, section 2 below). */

/* The sticky Cancel / Start row of the interview setup dialog (sticky from 768px down, see
   styles.css) was a dark navy bar on the cream card and stopped short of the card's edge. */
@media (max-width: 768px) {
  .setup-actions { bottom: -1.4rem; margin-bottom: -1.4rem; background: #fffdf8; border-top: 1px solid rgba(22, 30, 46, 0.1); }
}

@media (max-width: 767px) {
  /* ---- 1. Cheap to paint --------------------------------------------------------------
     No backdrop blur at all on phones (it is re-blurred on every scrolled frame), short
     shadows instead of 40-70px ones, no extra compositor layer per card. Surfaces that
     relied on the blur to stay readable get a nearly opaque fill instead. */
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .btn-glow-secondary { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  :root {
    --bg-card: rgba(255, 253, 248, 0.9);
    --studio-shadow: 0 1px 2px rgba(72, 57, 36, 0.05), 0 3px 10px rgba(72, 57, 36, 0.06);
    --studio-shadow-hover: 0 1px 2px rgba(72, 57, 36, 0.05), 0 3px 10px rgba(72, 57, 36, 0.06);
  }
  header.navbar { background: #fbf8f0; box-shadow: 0 1px 8px rgba(72, 57, 36, 0.06); }
  .custom-modal-backdrop, .modal-overlay, .video-modal-backdrop { background: rgba(22, 30, 46, 0.62) !important; }
  .custom-modal-card, .setup-modal-card, #interviewRoomCard, .video-modal-card { box-shadow: 0 6px 20px rgba(22, 30, 46, 0.18) !important; }
  .megamenu-dropdown { box-shadow: none !important; }
  .nav-links { box-shadow: 0 10px 18px rgba(72, 57, 36, 0.12) !important; }
  .marquee-pill, .exam-track-pill, .hero-pill, .roadmap-header-strip { box-shadow: 0 1px 3px rgba(72, 57, 36, 0.07) !important; }
  .btn-primary, .btn-primary:hover { box-shadow: 0 4px 12px rgba(212, 72, 53, 0.22) !important; }
  .floating-help { box-shadow: 0 4px 12px rgba(72, 57, 36, 0.16) !important; }
  .consent-banner { background: #fffdf8 !important; box-shadow: 0 -2px 10px rgba(72, 57, 36, 0.08) !important; }
  .skill-showcase-card, .visual-feature-card, .course-mod-card, .pricing-card, .faculty-card,
  .mentor-card, .reel-card, .domain-card, .role-card, .lab-metric-card, .career-card,
  .track-card, .interview-type-card, .pacer-tip-card, .legal-card, .pace-step {
    will-change: auto;
    transform-style: flat;
  }
  /* cards inside a swiped row are simply there: no fade-in waiting for the scroll position */
  .hero-skills-showcase .studio-reveal, .visual-features-grid .studio-reveal, .reels-grid .studio-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero { padding-top: 5.75rem; } /* header is 4.5rem; was 6.5rem */

  /* ---- 2. Recruiter strip: a row the visitor swipes, not an endless animation ---------- */
  .section-company-marquee .marquee-container {
    width: auto;
    margin: 0 -1.5rem;
    padding: 0.5rem 0 0.75rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-left: 1.5rem;
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .section-company-marquee .marquee-container::-webkit-scrollbar { display: none; }
  .section-company-marquee .marquee-track { animation: none; gap: 0.75rem; padding: 0 1.5rem; }
  .marquee-pill { scroll-snap-align: start; min-width: 0; padding: 0.7rem 1rem !important; }
  .marquee-pill[aria-hidden="true"] { display: none; } /* the second copy only closed the loop */
  .marquee-eyebrow { font-size: 0.875rem; letter-spacing: 0.05em; }
  .marquee-pill-body small { font-size: 0.875rem; letter-spacing: 0; }

  /* ---- 3. Text never below 14px ---------------------------------------------------------
     Small sizes written inline in the markup (style="font-size:0.75rem" and the like) are
     lifted to 14px; the selectors match the inline values 0.6x - 0.86rem and 10 - 13px,
     written with or without a space after the colon (scripts write the space). */
  [style*="font-size:0.6"], [style*="font-size: 0.6"], [style*="font-size:0.7"], [style*="font-size: 0.7"],
  [style*="font-size:0.8rem"], [style*="font-size: 0.8rem"], [style*="font-size:0.80"], [style*="font-size: 0.80"],
  [style*="font-size:0.81"], [style*="font-size: 0.81"], [style*="font-size:0.82"], [style*="font-size: 0.82"],
  [style*="font-size:0.83"], [style*="font-size: 0.83"], [style*="font-size:0.84"], [style*="font-size: 0.84"],
  [style*="font-size:0.85"], [style*="font-size: 0.85"], [style*="font-size:0.86"], [style*="font-size: 0.86"],
  [style*="font-size:10px"], [style*="font-size: 10px"], [style*="font-size:11px"], [style*="font-size: 11px"],
  [style*="font-size:12px"], [style*="font-size: 12px"], [style*="font-size:13px"], [style*="font-size: 13px"] {
    font-size: 0.875rem !important;
  }
  /* home page */
  .tracks-highlight-badge { font-size: 0.875rem !important; letter-spacing: 0.03em !important; }
  .preview-badge, .lab-sample-note, .reel-soon-chip, .hero-cta-note, .demo-chip-tag { font-size: 0.875rem; }
  .reel-art { height: 270px; } /* room for a three-line title and the two-line "coming soon" chip under the artwork */
  .hero-cta-note { white-space: normal; }
  .video-coming-soon .btn { flex-shrink: 0; min-height: 48px; }
  .ai-interviewer-label, .interviewer-meta small { font-size: 0.875rem; letter-spacing: 0; text-transform: none; }
  /* role directory and the interview setup dialog (also on the home page) */
  .topic-pill, .topic-placeholder, .pack-topics, .pack-suggested-tag, .setup-ai-notice { font-size: 0.875rem !important; }
  .pack-item strong { font-size: 0.95rem; }
  .packs-sidebar p { font-size: 0.875rem; }
  .topic-pill-remove { min-width: 40px; min-height: 40px; margin: -0.5rem -0.6rem -0.5rem -0.1rem; }
  .room-tool-btn { min-height: 40px; padding: 0.4rem 0.9rem; font-size: 0.875rem; }
  .followup-preview-eyebrow { font-size: 0.875rem; }
  /* text button inside a sentence (roles.html): taller tap area, same line height */
  .link-btn { padding: 0.55rem 0; margin: -0.55rem 0; }
  .tab-soon { font-size: 0.875rem; }
  /* about / contact / privacy / terms / refund (their layout rules sit in each page's <style>) */
  .legal-eyebrow, .legal-toc h2, .status-pill, .mentor-role, .legal-page td[data-label]::before { font-size: 0.875rem; }
  .legal-toc a { padding: 0.55rem 0; }

  /* ---- 4. Interview setup dialog -------------------------------------------------------
     The Cancel / Start row stays at the bottom of the card while the options scroll. It was
     a dark navy bar on the cream card and stopped a few pixels short of the card's edge. */
  .setup-modal-card { padding: 1.1rem !important; }
  .setup-actions {
    bottom: -1.1rem;
    margin: 0.5rem -1.1rem -1.1rem !important;
    padding: 0.7rem 1.1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    gap: 0.6rem !important;
    background: #fffdf8;
    border-top: 1px solid rgba(22, 30, 46, 0.1);
  }
  .setup-actions .btn { min-height: 48px; }
  .setup-actions .btn-primary { flex: 1 1 auto; justify-content: center; text-align: center; }
  .setup-ai-notice { margin-top: 1.6rem !important; }

  /* ---- 5. Home roadmap: 14px text and 40px targets -------------------------------------- */
  .roadmap-header-copy p, .roadmap-progress-label { font-size: 0.875rem; }
  .roadmap-expand-btn { min-height: 40px; padding: 0.4rem 1rem; font-size: 0.875rem; }
  .roadmap-progress-meta .btn { min-height: 40px; }
  .roadmap-timeline { padding-left: 2.4rem; }
  .roadmap-timeline::before { left: 0.87rem; }
  .roadmap-stage-node { left: -2.4rem; top: 0.6rem; width: 1.9rem; height: 1.9rem; font-size: 0.875rem; }
  button.roadmap-mod-head { min-height: 48px; padding: 0.7rem 0.85rem; }
  .roadmap-mod-title { font-size: 1rem; }
  .roadmap-mod-meta, .roadmap-mod-done, .roadmap-mod-chev, .roadmap-lesson-dur { font-size: 0.875rem; }
  .roadmap-lesson-row { padding: 0.5rem 0.85rem 0.7rem; gap: 0.3rem; }
  .roadmap-lesson-row.is-free { padding-left: calc(0.85rem - 3.5px); }
  .roadmap-lesson-left { width: 100%; gap: 0.25rem; }
  .roadmap-lesson-info { flex: 1 1 auto; align-items: center; }
  .roadmap-lesson-link { display: inline-flex; align-items: center; min-height: 40px; font-size: 0.95rem; }
  .roadmap-status-pill { min-height: 40px; margin-left: calc(40px - 0.25rem); padding: 0 0.9rem; font-size: 0.875rem; }
  /* the tick box: a 40px target with a 22px box drawn inside it */
  .roadmap-check {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin: 0 0 0 -0.5rem;
    border: 0;
    border-radius: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Crect x='1' y='1' width='20' height='20' rx='5' fill='%23ffffff' stroke='%2364748b' stroke-width='1.6'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
  }
  .roadmap-check:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Crect x='1' y='1' width='20' height='20' rx='5' fill='%230f766e' stroke='%230f766e' stroke-width='1.6'/%3E%3Cpath d='M6 11.4l3.4 3.4L16.2 8' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
  .roadmap-check:disabled { opacity: 0.5; cursor: not-allowed; }
  .roadmap-check:focus-visible { outline: 2px solid #0f766e; outline-offset: -5px; }
}

/* Video dialog on phones (640px and below, where styles.css stops using the 16:9 box): the
   "coming soon" panel sits in the flow, so a long message makes the panel taller instead of
   squeezing its button. */
@media (max-width: 640px) {
  .video-coming-soon { position: relative; inset: auto; width: 100%; min-height: 320px; padding: 1.5rem 1.1rem; }
}
