/* ====================================================================
   SAT Vocabulary — Wizard mode
   [2026-05-06] Locks the page to one viewport at a time. Top strip
   shows a progress bar that fills as the user advances through the
   14 screens; bottom strip has Back/Next.

   --wizard-max-w is the shared max-width every wizard surface (top,
   bottom, screen content) is centered to so nothing spreads past it.
   ==================================================================== */

:root {
  --wizard-max-w: 1280px;
}

body.wizard-mode {
  overflow: hidden;
  height: 100vh;
  margin: 0;
}

/* Keep the global LLOS shell header visible — site-wide nav must stay
   reachable. Hide only the chrome that would compete with the wizard. */
body.wizard-mode .llos-shell-breadcrumbs,
body.wizard-mode .llos-shell-footer-wrap,
body.wizard-mode .topbar,
body.wizard-mode .bottombar {
  display: none !important;
}

/* Top strip — brand + progress bar + step label.
   Stacks BELOW the global LLOS shell header. JS measures the header
   height at runtime and sets --global-header-h. The bar background
   spans full-width, the inner content is capped at --wizard-max-w. */
.wizard-top {
  position: fixed;
  top: var(--global-header-h, 0px);
  left: 0; right: 0;
  height: 36px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  color: #475569;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.wizard-top-inner {
  max-width: var(--wizard-max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 2px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wizard-top-brand {
  font-weight: 700;
  color: #c0694a;
  white-space: nowrap;
  font-size: 13px;
}
.wizard-top-bar {
  flex: 1;
  height: 6px;
  background: #f1f5f9;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.wizard-top-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c0694a 0%, #d97757 50%, #f0a072 100%);
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(217, 119, 87, 0.3);
}
.wizard-top-label {
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
  font-size: 12px;
  letter-spacing: 0.2px;
}

/* Bottom strip — Back / Next. Full-width background, inner content
   capped at --wizard-max-w. */
.wizard-bottom {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 52px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.02);
}
.wizard-bottom-inner {
  max-width: var(--wizard-max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wizard-btn {
  padding: 9px 20px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.wizard-btn:hover:not(:disabled) {
  background: #f8fafc;
}
.wizard-btn:active:not(:disabled) {
  transform: translateY(1px);
}
.wizard-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.wizard-btn-primary {
  background: #c0694a;
  color: #fff;
  border-color: #c0694a;
}
.wizard-btn-primary:hover:not(:disabled) {
  background: #b15a3a;
}

/* Lock active screen between (global header + wizard top) and the
   wizard bottom strip. Capped at --wizard-max-w, centered, with a
   2px minimum side padding so content never sits on the edge.
   No vertical scroll — content must fit inside the step. */
body.wizard-mode .screen { display: none; }
body.wizard-mode .screen.active {
  display: flex;
  flex-direction: column;
  position: fixed !important;
  top: calc(var(--global-header-h, 0px) + 36px);
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--wizard-max-w);
  margin: 0;
  overflow: hidden;
  background: var(--bg, #FAFAF8);
  padding: 0 2px;
  box-sizing: border-box;
}
/* Anything inside the active screen is also capped — no horizontal
   bleed past the shared max-width. */
body.wizard-mode .screen.active > * {
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 1;
  min-height: 0;
}

/* ------------------------------------------------------------------
   Content compression — tight spacing so existing per-screen content
   fits one viewport without scrolling. Type uses LLOS conventions
   (Inter family, rem-based sizes) so it reads like the rest of the
   site, just shaved one notch tighter to fit the wizard frame.
   LLOS standard: body 1rem, h1 clamp(2.2rem,4vw,3.2rem). Wizard uses
   the same rem ladder one step down.
   ------------------------------------------------------------------ */
body.wizard-mode .screen.active section,
body.wizard-mode .screen.active .hero-section,
body.wizard-mode .screen.active .features-section,
body.wizard-mode .screen.active .container {
  padding: 0.5rem 0.6rem !important;
}
body.wizard-mode .screen.active h1 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0.35rem 0 !important;
}
body.wizard-mode .screen.active h2 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.22;
  font-weight: 700;
  margin: 0.3rem 0 !important;
}
body.wizard-mode .screen.active h3 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 600;
  margin: 0.25rem 0 !important;
}
body.wizard-mode .screen.active p,
body.wizard-mode .screen.active li,
body.wizard-mode .screen.active label,
body.wizard-mode .screen.active span:not([class*="num"]):not([class*="badge"]) {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
}
body.wizard-mode .screen.active p,
body.wizard-mode .screen.active li {
  margin: 0.3rem 0 !important;
}
body.wizard-mode .screen.active .btn,
body.wizard-mode .screen.active button[class*="cta"],
body.wizard-mode .screen.active .cta-btn,
body.wizard-mode .screen.active .nav-btn {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  padding: 0.5rem 0.95rem !important;
  font-size: 0.9rem !important;
  font-weight: 600;
}
body.wizard-mode .screen.active .hero-cta-row {
  gap: 0.55rem !important;
  padding: 0.4rem 0 !important;
  margin: 0.4rem 0 !important;
}

/* Drop "scroll hint" affordances — there is no scroll anymore */
body.wizard-mode .screen.active .btn-scroll-hint,
body.wizard-mode .screen.active .scroll-hint,
body.wizard-mode .screen.active [id*="scrollHint"] {
  display: none !important;
}

/* Tighten internal screen-headers since wizard top strip already has brand */
body.wizard-mode .screen-header {
  padding: 10px 14px !important;
}

/* Smaller-screen tweaks */
@media (max-width: 520px) {
  .wizard-top-brand { display: none; }
  .wizard-top-label { min-width: 60px; }
  .wizard-btn { padding: 8px 14px; font-size: 12.5px; }
}

/* ====================================================================
   Menu popup — slide-in panel triggered from the wizard top strip's
   ☰ button. Contains LLOS slogan header, global nav, and a brief
   footer so users still get site-wide context inside wizard mode.
   ==================================================================== */

.wizard-menu-toggle {
  background: none;
  border: none;
  font-size: 19px;
  cursor: pointer;
  padding: 2px 6px;
  color: #c0694a;
  line-height: 1;
  font-weight: 800;
  border-radius: 6px;
  transition: background 0.15s;
}
.wizard-menu-toggle:hover { background: rgba(192, 105, 74, 0.08); }

.wizard-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.22s;
  align-items: stretch;
  justify-content: flex-end;
}
.wizard-menu-overlay.is-open {
  display: flex;
  opacity: 1;
}
.wizard-menu-panel {
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: -8px 0 28px rgba(15, 23, 42, 0.18);
}
.wizard-menu-overlay.is-open .wizard-menu-panel {
  transform: translateX(0);
}

/* Slogan header */
.wizard-menu-header {
  padding: 18px 20px 16px;
  background: linear-gradient(135deg, #c0694a 0%, #d97757 100%);
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.wizard-menu-header-content { flex: 1; min-width: 0; }
.wizard-menu-brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.wizard-menu-slogan {
  font-size: 12.5px;
  opacity: 0.92;
  font-style: italic;
  margin-top: 5px;
  line-height: 1.45;
}
.wizard-menu-close {
  background: rgba(255, 255, 255, 0.22);
  border: none;
  color: #fff;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 19px;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.15s;
}
.wizard-menu-close:hover { background: rgba(255, 255, 255, 0.35); }

/* Body — nav lists */
.wizard-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0 18px;
  -webkit-overflow-scrolling: touch;
}
.wizard-menu-section { padding: 0 20px; }
.wizard-menu-heading {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94a3b8;
  margin: 14px 0 8px;
}
.wizard-menu-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wizard-menu-links a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 11px;
  transition: background 0.12s, color 0.12s;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.wizard-menu-links a:hover {
  background: rgba(192, 105, 74, 0.06);
  color: #c0694a;
}
.wizard-menu-links a .ic {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

/* Footer */
.wizard-menu-footer {
  padding: 14px 20px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 11px;
  color: #64748b;
  background: #fafafa;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.wizard-menu-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 8px;
}
.wizard-menu-footer-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 11.5px;
}
.wizard-menu-footer-links a:hover {
  color: #c0694a;
  text-decoration: underline;
}
.wizard-menu-footer-copy {
  font-size: 10.5px;
  color: #94a3b8;
  letter-spacing: 0.1px;
}
