:root {
      --navy: #0a0f5a;
      --navy-2: #101973;
      --navy-3: #070b43;
      --blue: #7ba3e8;
      --blue-2: #b9d1ff;
      --blue-light: #eef4ff;
      --orange: #f59e0b;
      --orange-2: #facc15;
      --orange-dark: #d97706;
      --white: #ffffff;
      --text: #172033;
      --muted: #64748b;
      --border: #e2e8f0;
      --bg: #f8fafc;
      --bg-2: #f1f5f9;
      --success: #16a34a;
      --danger: #dc2626;
      --shadow: 0 18px 45px rgba(10, 15, 90, 0.10);
      --shadow-soft: 0 10px 30px rgba(10, 15, 90, 0.08);
      --shadow-hover: 0 24px 60px rgba(10, 15, 90, 0.14);
      --radius: 24px;
      --radius-sm: 18px;
      --max: 1120px;
    }

    * { box-sizing: border-box; }
    html {
      scroll-behavior: smooth;
      scroll-padding-top: 96px;
    }

    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background:
        radial-gradient(circle at top left, rgba(123,163,232,0.12), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 22%, var(--bg) 100%);
      color: var(--text);
      line-height: 1.6;
      text-rendering: optimizeLegibility;
    }

    a { color: inherit; text-decoration: none; }


    .topbar {
      background: rgba(255,255,255,0.88);
      border-bottom: 1px solid rgba(226,232,240,0.82);
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(18px);
    }

    .nav {
      max-width: var(--max);
      margin: 0 auto;
      padding: 14px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      position: relative;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 950;
      color: var(--navy);
      letter-spacing: -0.035em;
      font-size: 1.12rem;
      flex-shrink: 0;
    }

    .brand-mark {
      width: 36px;
      height: 36px;
      border-radius: 14px;
      background:
        radial-gradient(circle at 32% 24%, rgba(255,255,255,0.55), transparent 26%),
        linear-gradient(135deg, var(--navy), var(--blue));
      display: grid;
      place-items: center;
      color: white;
      font-weight: 950;
      box-shadow: 0 10px 22px rgba(10,15,90,0.18);
    }

    .nav-center {
      display: flex;
      align-items: center;
      gap: 6px;
      background: #f8fafc;
      border: 1px solid var(--border);
      padding: 5px;
      border-radius: 999px;
    }

    .nav-item {
      position: relative;
    }

    .nav-trigger,
    .nav-direct {
      border: 0;
      background: transparent;
      color: var(--muted);
      font: inherit;
      font-size: 0.92rem;
      cursor: pointer;
      padding: 8px 12px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: background .15s ease, color .15s ease, box-shadow .15s ease;
    }

    .nav-trigger:hover,
    .nav-direct:hover,
    .nav-item:focus-within .nav-trigger {
      color: var(--navy);
      background: #fff;
      box-shadow: 0 6px 18px rgba(10,15,90,0.06);
    }

    .chevron {
      font-size: 0.72rem;
      line-height: 1;
      opacity: 0.72;
    }

    .mega-panel {
      position: absolute;
      top: calc(100% + 14px);
      left: 50%;
      transform: translateX(-50%) translateY(8px);
      width: min(920px, calc(100vw - 32px));
      background: rgba(255,255,255,0.98);
      border: 1px solid var(--border);
      border-radius: 24px;
      box-shadow: 0 28px 80px rgba(10,15,90,0.18);
      padding: 18px;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
      backdrop-filter: blur(18px);
      z-index: 120;
    }

    .nav-item.open .mega-panel,
    .nav-item:hover .mega-panel,
    .nav-item:focus-within .mega-panel {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateX(-50%) translateY(0);
    }

    .mega-panel::before {
      content: "";
      position: absolute;
      top: -22px;
      left: 0;
      right: 0;
      height: 22px;
    }

    .mega-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
    }

    .mega-course {
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 16px;
      background: linear-gradient(180deg, #ffffff, #fbfdff);
    }

    .mega-course-head {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      margin-bottom: 12px;
    }

    .mega-icon {
      width: 38px;
      height: 38px;
      border-radius: 15px;
      background: var(--blue-light);
      border: 1px solid #dbeafe;
      display: grid;
      place-items: center;
      flex-shrink: 0;
    }

    .mega-course h4 {
      margin: 0;
      color: var(--navy);
      font-size: 1rem;
      letter-spacing: -0.02em;
      line-height: 1.18;
    }

    .mega-course p {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 0.83rem;
      line-height: 1.35;
    }

    .mega-links {
      display: grid;
      gap: 7px;
      margin-top: 10px;
    }

    .mega-links a {
      color: var(--muted);
      font-size: 0.9rem;
      padding: 7px 8px;
      border-radius: 12px;
      transition: background .15s ease, color .15s ease, transform .15s ease;
    }

    .mega-links a:hover {
      color: var(--navy);
      background: var(--blue-light);
      transform: translateX(2px);
    }

    .mega-view-all {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid var(--border);
    }

    .mega-view-all a {
      color: var(--navy);
      font-weight: 950;
      font-size: 0.9rem;
    }

    .dropdown-panel {
      position: absolute;
      top: calc(100% + 14px);
      left: 50%;
      transform: translateX(-50%) translateY(8px);
      min-width: 280px;
      background: rgba(255,255,255,0.98);
      border: 1px solid var(--border);
      border-radius: 22px;
      box-shadow: 0 24px 64px rgba(10,15,90,0.16);
      padding: 12px;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
      z-index: 120;
    }

    .nav-item.open .dropdown-panel,
    .nav-item:hover .dropdown-panel,
    .nav-item:focus-within .dropdown-panel {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateX(-50%) translateY(0);
    }

    .dropdown-panel::before {
      content: "";
      position: absolute;
      top: -22px;
      left: 0;
      right: 0;
      height: 22px;
    }

    .dropdown-panel a {
      display: block;
      padding: 11px 12px;
      border-radius: 14px;
      color: var(--muted);
      font-size: 0.92rem;
      transition: background .15s ease, color .15s ease, transform .15s ease;
    }

    .dropdown-panel a:hover {
      background: var(--blue-light);
      color: var(--navy);
      transform: translateX(2px);
    }

    .dropdown-panel strong {
      display: block;
      color: var(--navy);
      line-height: 1.15;
      margin-bottom: 2px;
    }

    .dropdown-panel span {
      display: block;
      color: var(--muted);
      font-size: 0.82rem;
      line-height: 1.3;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .login-link {
      color: var(--muted);
      font-weight: 850;
      font-size: 0.92rem;
      padding: 9px 10px;
      border-radius: 999px;
      transition: color .15s ease, background .15s ease;
    }

    .login-link:hover {
      color: var(--navy);
      background: #f8fafc;
    }

    .nav-cta {
      background: linear-gradient(135deg, var(--orange), var(--orange-2));
      color: #111827;
      font-weight: 950;
      padding: 10px 16px;
      border-radius: 999px;
      box-shadow: 0 12px 26px rgba(245, 158, 11, 0.25);
      transition: transform .15s ease, box-shadow .15s ease;
      white-space: nowrap;
      font-size: 0.92rem;
    }

    .nav-cta:hover {
      transform: translateY(-1px);
      box-shadow: 0 16px 34px rgba(245, 158, 11, 0.32);
    }

    .mobile-menu-button {
      display: none;
      border: 1px solid var(--border);
      background: white;
      color: var(--navy);
      border-radius: 12px;
      padding: 9px 11px;
      font-weight: 950;
      cursor: pointer;
    }

    .mobile-menu {
      display: none;
      max-width: var(--max);
      margin: 0 auto;
      padding: 0 20px 16px;
    }

    .mobile-menu details {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 16px;
      margin-top: 10px;
      overflow: hidden;
    }

    .mobile-menu summary {
      cursor: pointer;
      color: var(--navy);
      font-weight: 950;
      padding: 13px 14px;
    }

    .mobile-menu a {
      display: block;
      padding: 10px 16px;
      color: var(--muted);
      border-top: 1px solid var(--border);
      font-size: 0.92rem;
    }

    .mobile-menu .mobile-cta {
      margin-top: 12px;
      text-align: center;
      background: var(--orange);
      color: #111827;
      font-weight: 950;
      border-radius: 999px;
      border: 0;
    }

    .hero {
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(circle at 10% 12%, rgba(123, 163, 232, 0.42), transparent 24rem),
        radial-gradient(circle at 92% 8%, rgba(245, 158, 11, 0.20), transparent 20rem),
        radial-gradient(circle at 55% 110%, rgba(123,163,232,0.18), transparent 24rem),
        linear-gradient(135deg, var(--navy-3), var(--navy) 48%, var(--navy-2));
      color: var(--white);
      padding: 36px 20px 44px;
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
      background-size: 48px 48px;
      mask-image: radial-gradient(circle at top left, black, transparent 68%);
      pointer-events: none;
    }

    .hero-inner {
      position: relative;
      max-width: var(--max);
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 28px;
      align-items: center;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      background: rgba(255,255,255,0.11);
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 999px;
      font-size: 0.9rem;
      margin-bottom: 10px;
      color: rgba(255,255,255,0.9);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
    }

    h1 {
      font-size: clamp(2.15rem, 4.55vw, 3.55rem);
      line-height: 1.02;
      margin: 0 0 10px;
      letter-spacing: -0.062em;
      max-width: 780px;
    }

    .hero-subheading {
      font-size: 1.05rem;
      font-weight: 700;
      line-height: 1.35;
      color: rgba(255,255,255,0.76);
      margin: 0 0 12px;
      letter-spacing: -0.015em;
    }

    .hero p {
      font-size: 1.08rem;
      max-width: 675px;
      color: rgba(255,255,255,0.82);
      margin: 0 0 16px;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
    }

    .btn-primary,
    .btn-secondary,
    .btn-navy,
    .btn-soft {
      border: 0;
      border-radius: 999px;
      padding: 13px 20px;
      font-size: 1rem;
      font-weight: 950;
      cursor: pointer;
      transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background .15s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--orange), var(--orange-2));
      color: #111827;
      box-shadow: 0 16px 34px rgba(245, 158, 11, 0.30);
    }

    .btn-secondary {
      background: rgba(255,255,255,0.10);
      color: var(--white);
      border: 1px solid rgba(255,255,255,0.22);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
    }

    .btn-navy {
      background: linear-gradient(135deg, var(--navy), var(--navy-2));
      color: white;
      box-shadow: 0 14px 30px rgba(10, 15, 90, 0.16);
    }

    .btn-soft {
      background: var(--blue-light);
      color: var(--navy);
      border: 1px solid #dbeafe;
    }

    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-navy:hover,
    .btn-soft:hover {
      transform: translateY(-2px);
    }

    .hero-trust {
      margin-top: 11px;
      color: rgba(255,255,255,0.72);
      font-size: 0.92rem;
    }

    .trust-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }

    .trust-chip {
      border: 1px solid rgba(255,255,255,0.16);
      background: rgba(255,255,255,0.08);
      padding: 7px 10px;
      border-radius: 999px;
      color: rgba(255,255,255,0.78);
      font-size: .84rem;
    }

    .hero-card {
      position: relative;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.10));
      border: 1px solid rgba(255,255,255,0.20);
      backdrop-filter: blur(18px);
      border-radius: 30px;
      padding: 16px;
      box-shadow: 0 28px 70px rgba(0,0,0,0.26);
      overflow: hidden;
    }

    .hero-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 15rem);
      pointer-events: none;
    }

    .dashboard-top {
      position: relative;
      background: rgba(255,255,255,0.96);
      color: var(--text);
      border-radius: 22px;
      padding: 14px;
      box-shadow: 0 18px 44px rgba(0,0,0,0.16);
      margin-bottom: 12px;
    }

    .dash-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }

    .dash-title strong {
      display: block;
      color: var(--navy);
      line-height: 1.1;
      letter-spacing: -.02em;
    }

    .dash-title span {
      color: var(--muted);
      font-size: .86rem;
    }

    .streak-pill {
      background: #fff7ed;
      color: var(--orange-dark);
      border: 1px solid #fed7aa;
      border-radius: 999px;
      padding: 7px 10px;
      font-weight: 950;
      font-size: .84rem;
      white-space: nowrap;
    }

    .mission-card {
      background: linear-gradient(135deg, var(--blue-light), #ffffff);
      border: 1px solid #dbeafe;
      border-radius: 18px;
      padding: 12px;
      margin-bottom: 10px;
    }

    .mission-top {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      color: var(--muted);
      font-size: 0.86rem;
      margin-bottom: 6px;
    }

    .mission-card strong {
      color: var(--navy);
      display: block;
      font-size: 1.05rem;
      line-height: 1.25;
      letter-spacing: -.02em;
    }

    .progress-label {
      display: flex;
      justify-content: space-between;
      font-size: 0.88rem;
      color: var(--muted);
      margin-bottom: 8px;
    }

    .progress-label strong { color: var(--navy); }

    .progress-bar {
      height: 10px;
      background: #e2e8f0;
      border-radius: 999px;
      overflow: hidden;
      margin-bottom: 12px;
    }

    .progress-fill {
      width: 38%;
      height: 100%;
      background: linear-gradient(90deg, var(--orange), var(--orange-2));
      border-radius: 999px;
    }

    .hero-stat-grid {
      position: relative;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }

    .hero-stat {
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.14);
      border-radius: 18px;
      padding: 11px;
    }

    .hero-stat strong {
      display: block;
      font-size: 1.28rem;
      line-height: 1;
    }

    .hero-stat span {
      color: rgba(255,255,255,0.72);
      font-size: 0.84rem;
    }

    .page {
      max-width: var(--max);
      margin: -34px auto 86px;
      padding: 0 20px;
      display: grid;
      gap: 24px;
    }

    .panel {
      background: rgba(255,255,255,0.92);
      border: 1px solid rgba(226,232,240,0.92);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 30px;
      backdrop-filter: blur(10px);
    }

    .panel.compact { padding: 24px; }

    .section-eyebrow {
      color: var(--orange-dark);
      font-weight: 950;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 0.78rem;
      margin-bottom: 8px;
    }

    h2 {
      margin: 0 0 12px;
      font-size: clamp(1.48rem, 3vw, 2.18rem);
      letter-spacing: -0.045em;
      line-height: 1.1;
      color: var(--navy);
    }

    h3 {
      margin: 0 0 8px;
      color: var(--navy);
      letter-spacing: -0.027em;
      line-height: 1.2;
    }

    p { margin-top: 0; }
    .muted { color: var(--muted); }

    .intro-grid,
    .keyword-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-top: 20px;
    }

    .mini-card,
    .keyword-card {
      position: relative;
      background:
        linear-gradient(180deg, #ffffff, #fbfdff);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 18px;
      box-shadow: 0 8px 22px rgba(10,15,90,0.045);
      transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
      overflow: hidden;
    }

    .mini-card:hover,
    .keyword-card:hover {
      transform: translateY(-2px);
      border-color: #c7d8ff;
      box-shadow: var(--shadow-soft);
    }

    .mini-card strong,
    .keyword-card strong {
      display: block;
      color: var(--navy);
      font-size: 1.05rem;
      margin-bottom: 6px;
    }

    .mini-card span,
    .keyword-card p {
      color: var(--muted);
      font-size: 0.94rem;
      margin: 0;
    }

    .icon-bubble {
      width: 38px;
      height: 38px;
      border-radius: 15px;
      display: grid;
      place-items: center;
      background: var(--blue-light);
      margin-bottom: 12px;
      border: 1px solid #dbeafe;
    }

    .course-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
      margin-top: 20px;
    }

    .course-card {
      position: relative;
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 22px;
      background:
        radial-gradient(circle at top right, rgba(123,163,232,0.14), transparent 11rem),
        linear-gradient(180deg, #ffffff, #fbfdff);
      transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
      min-height: 305px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      overflow: hidden;
    }

    .course-card::after {
      content: "";
      position: absolute;
      inset: auto 20px 0 20px;
      height: 4px;
      background: linear-gradient(90deg, var(--orange), var(--blue));
      border-radius: 999px 999px 0 0;
      opacity: 0;
      transition: opacity .15s ease;
    }

    .course-card:hover {
      transform: translateY(-4px);
      border-color: var(--blue);
      box-shadow: var(--shadow-hover);
    }

    .course-card:hover::after { opacity: 1; }

    .course-pill {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      font-size: 0.78rem;
      font-weight: 950;
      color: var(--orange-dark);
      background: #fff7ed;
      border: 1px solid #fed7aa;
      padding: 6px 10px;
      border-radius: 999px;
      margin-bottom: 12px;
    }

    .course-card ul {
      padding-left: 18px;
      color: var(--muted);
      margin: 12px 0 18px;
      font-size: 0.94rem;
    }

    .course-link {
      color: var(--navy);
      font-weight: 950;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .practice-strip {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
      margin-top: 20px;
    }

    .step-card {
      background:
        radial-gradient(circle at top right, rgba(123,163,232,0.22), transparent 10rem),
        var(--blue-light);
      border: 1px solid #dbeafe;
      border-radius: 20px;
      padding: 18px;
      position: relative;
      overflow: hidden;
    }

    .step-num {
      width: 34px;
      height: 34px;
      border-radius: 13px;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, var(--navy), var(--navy-2));
      color: white;
      font-weight: 950;
      margin-bottom: 12px;
      box-shadow: 0 10px 20px rgba(10,15,90,0.16);
    }

    .resources-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 20px;
    }

    .resource-card {
      border: 1px solid var(--border);
      background: linear-gradient(180deg, #ffffff, #fbfdff);
      border-radius: 22px;
      padding: 20px;
      min-height: 178px;
      box-shadow: 0 8px 22px rgba(10,15,90,0.04);
      transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
    }

    .resource-card:hover {
      transform: translateY(-2px);
      border-color: #c7d8ff;
      box-shadow: var(--shadow-soft);
    }

    .resource-card p {
      color: var(--muted);
      margin-bottom: 12px;
    }

    .resource-card a {
      color: var(--navy);
      font-weight: 950;
    }

    .highlight-box {
      background:
        radial-gradient(circle at 86% 16%, rgba(245,158,11,0.22), transparent 17rem),
        radial-gradient(circle at 12% 100%, rgba(123,163,232,0.23), transparent 18rem),
        linear-gradient(135deg, var(--navy-3), var(--navy-2));
      color: white;
      border-radius: 28px;
      padding: 30px;
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 22px;
      align-items: center;
      box-shadow: 0 24px 60px rgba(10,15,90,0.20);
      overflow: hidden;
      position: relative;
    }

    .highlight-box h2 { color: white; }

    .highlight-box p {
      color: rgba(255,255,255,0.78);
      margin-bottom: 0;
    }

    .mock-widget {
      background: rgba(255,255,255,0.11);
      border: 1px solid rgba(255,255,255,0.16);
      border-radius: 22px;
      padding: 18px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
    }

    .topic-row {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid rgba(255,255,255,0.14);
      color: rgba(255,255,255,0.82);
      font-size: 0.92rem;
    }

    .topic-row:last-child { border-bottom: 0; }
    .weak { color: #fecaca; font-weight: 950; }
    .ready { color: #bbf7d0; font-weight: 950; }
    .warn { color: #fde68a; font-weight: 950; }

    .question-demo {
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 22px;
      background: linear-gradient(180deg, #ffffff, #fcfdff);
      margin-top: 18px;
      box-shadow: 0 10px 26px rgba(10,15,90,0.05);
    }

    .question-meta {
      display: flex;
      justify-content: space-between;
      color: var(--muted);
      font-size: 0.9rem;
      margin-bottom: 12px;
      gap: 12px;
    }

    .options {
      display: grid;
      gap: 10px;
      margin-top: 12px;
    }

    .option {
      width: 100%;
      text-align: left;
      background: white;
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 13px 14px;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.15s ease;
      color: var(--text);
    }

    .option:hover {
      border-color: var(--blue);
      transform: translateY(-1px);
      box-shadow: 0 8px 18px rgba(10,15,90,0.05);
    }

    .option.correct {
      border-color: var(--success);
      background: #f0fdf4;
    }

    .option.incorrect {
      border-color: var(--danger);
      background: #fef2f2;
    }

    .explanation {
      display: none;
      margin-top: 14px;
      padding: 14px;
      border-radius: 16px;
      background: var(--blue-light);
      border: 1px solid #dbeafe;
    }

    .feedback-row {
      display: none;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 14px;
    }

    .feedback-tile {
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 12px;
      background: white;
    }

    .feedback-tile strong {
      color: var(--navy);
      display: block;
      line-height: 1.2;
    }

    .feedback-tile span {
      color: var(--muted);
      font-size: 0.88rem;
    }

    .two-col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 22px;
      align-items: start;
    }

    .seo-copy p { color: var(--muted); }

    .list-clean {
      margin: 14px 0 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 10px;
    }

    .list-clean li {
      display: flex;
      gap: 10px;
      background: #fff7ed;
      border: 1px solid #fed7aa;
      padding: 12px 14px;
      border-radius: 16px;
    }

    .check {
      color: var(--orange-dark);
      font-weight: 950;
    }

    .comparison-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 22px;
      margin-top: 18px;
      background: white;
      box-shadow: 0 8px 22px rgba(10,15,90,0.04);
    }

    .comparison-table th,
    .comparison-table td {
      padding: 14px 16px;
      text-align: left;
      border-bottom: 1px solid var(--border);
      vertical-align: top;
    }

    .comparison-table tr:last-child td { border-bottom: 0; }

    .comparison-table th {
      background: linear-gradient(180deg, var(--blue-light), #f8fbff);
      color: var(--navy);
    }

    .comparison-table td { color: var(--muted); }
    .comparison-table td strong { color: var(--navy); }

    .trust-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
      margin-top: 18px;
    }

    .trust-card {
      border: 1px solid var(--border);
      border-radius: 20px;
      background: linear-gradient(180deg, #ffffff, #fbfdff);
      padding: 16px;
      box-shadow: 0 8px 22px rgba(10,15,90,0.04);
    }

    .trust-icon {
      width: 38px;
      height: 38px;
      border-radius: 15px;
      display: grid;
      place-items: center;
      background: var(--blue-light);
      margin-bottom: 10px;
      border: 1px solid #dbeafe;
    }


    .testimonial-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-top: 20px;
    }

    .testimonial-card {
      background:
        radial-gradient(circle at top right, rgba(123,163,232,0.16), transparent 10rem),
        linear-gradient(180deg, #ffffff, #fbfdff);
      border: 1px solid var(--border);
      border-radius: 22px;
      padding: 20px;
      box-shadow: 0 10px 26px rgba(10,15,90,0.05);
      transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    }

    .testimonial-card:hover {
      transform: translateY(-2px);
      border-color: #c7d8ff;
      box-shadow: var(--shadow-soft);
    }

    .stars {
      color: var(--orange-dark);
      letter-spacing: 0.05em;
      font-weight: 950;
      margin-bottom: 12px;
    }

    .quote {
      color: var(--text);
      font-weight: 750;
      line-height: 1.45;
      margin-bottom: 12px;
    }

    .student-meta {
      color: var(--muted);
      font-size: 0.92rem;
    }

    .proof-strip {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-top: 18px;
    }

    .proof-tile {
      background: var(--blue-light);
      border: 1px solid #dbeafe;
      border-radius: 18px;
      padding: 14px;
      text-align: center;
    }

    .proof-tile strong {
      display: block;
      color: var(--navy);
      font-size: 1.25rem;
      letter-spacing: -0.03em;
    }

    .proof-tile span {
      color: var(--muted);
      font-size: 0.88rem;
    }


    .bio-pillar-slides-embed {
      position: relative;
      max-width: 960px;
      width: 100%;
      margin-top: 14px;
      border-radius: 12px;
      border: 1px solid var(--border);
      overflow: hidden;
      background: #f8f9fa;
      aspect-ratio: 960 / 569;
    }

    .bio-pillar-slides-embed iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
      max-width: none;
    }

    .faq-soft {
      padding: 30px;
      background:
        radial-gradient(circle at top right, rgba(123,163,232,0.18), transparent 18rem),
        linear-gradient(180deg, #ffffff, #fbfdff);
    }

    .faq-soft-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 20px;
    }

    .faq-soft-head h2 {
      margin-bottom: 8px;
    }

    .faq-head-cta {
      flex-shrink: 0;
      margin-top: 8px;
    }

    .faq-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
      margin-top: 12px;
    }

    .faq-column {
      display: grid;
      gap: 10px;
      align-content: start;
    }

    .faq-group-label {
      margin: 12px 0 2px;
      color: var(--orange-dark);
      font-weight: 950;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 0.74rem;
    }

    .faq-group-label:first-child {
      margin-top: 0;
    }

    .faq details {
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 0;
      background: rgba(255,255,255,0.88);
      overflow: hidden;
      box-shadow: 0 8px 22px rgba(10,15,90,0.035);
      transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    }

    .faq details:hover {
      border-color: #c7d8ff;
      box-shadow: 0 12px 26px rgba(10,15,90,0.07);
      transform: translateY(-1px);
    }

    .faq details[open] {
      background: white;
      border-color: #c7d8ff;
      box-shadow: 0 14px 34px rgba(10,15,90,0.09);
    }

    .faq summary {
      cursor: pointer;
      color: var(--navy);
      list-style: none;
      padding: 16px 44px 16px 16px;
      line-height: 1.28;
      font-size: 1.03rem;
      font-weight: 950;
      letter-spacing: -0.025em;
      position: relative;
    }

    .faq summary::-webkit-details-marker {
      display: none;
    }

    .faq summary::after {
      content: "+";
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      width: 24px;
      height: 24px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: var(--blue-light);
      color: var(--navy);
      border: 1px solid #dbeafe;
      font-weight: 950;
      font-size: 1rem;
    }

    .faq details[open] summary::after {
      content: "–";
      background: #fff7ed;
      border-color: #fed7aa;
      color: var(--orange-dark);
    }

    .faq details p {
      margin: 0;
      padding: 0 16px 16px 16px;
      color: var(--muted);
      font-size: 0.95rem;
      line-height: 1.55;
    }


    .final-cta {
      text-align: center;
      background:
        radial-gradient(circle at top right, rgba(123,163,232,0.24), transparent 18rem),
        radial-gradient(circle at bottom left, rgba(245,158,11,0.12), transparent 18rem),
        white;
    }

    .final-cta p {
      max-width: 690px;
      margin: 0 auto 20px;
      color: var(--muted);
    }



    .footer {
      background:
        radial-gradient(circle at top left, rgba(123,163,232,0.18), transparent 20rem),
        radial-gradient(circle at top right, rgba(245,158,11,0.14), transparent 18rem),
        linear-gradient(135deg, #070b43, #0a0f5a);
      color: rgba(255,255,255,0.85);
      margin-top: 60px;
    }

    .footer-inner {
      max-width: var(--max);
      margin: 0 auto;
      padding: 52px 20px 32px;
      display: grid;
      grid-template-columns: 1.55fr 1fr 1fr 1fr;
      gap: 34px;
      align-items: start;
    }

    .footer-col {
      text-align: left;
    }

    .footer-col h4 {
      margin: 0 0 13px;
      color: white;
      font-size: 0.96rem;
      letter-spacing: 0.01em;
    }

    .footer-col p {
      font-size: 0.92rem;
      color: rgba(255,255,255,0.68);
      margin: 0;
      max-width: 310px;
    }

    .footer-col ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      gap: 8px;
    }

    .footer-col a {
      color: rgba(255,255,255,0.72);
      font-size: 0.92rem;
      transition: color 0.15s ease, transform 0.15s ease;
      display: inline-block;
    }

    .footer-col a:hover {
      color: white;
      transform: translateX(2px);
    }

    .footer-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
      font-weight: 950;
      color: white;
      letter-spacing: -0.03em;
      font-size: 1.12rem;
    }

    .footer-mini-cta {
      margin-top: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(255,255,255,0.10);
      border: 1px solid rgba(255,255,255,0.16);
      color: white;
      border-radius: 999px;
      padding: 10px 14px;
      font-size: 0.9rem;
      font-weight: 900;
      transition: transform 0.15s ease, background 0.15s ease;
    }

    .footer-mini-cta:hover {
      transform: translateY(-1px);
      background: rgba(255,255,255,0.14);
    }

    .footer-bottom {
      max-width: var(--max);
      margin: 0 auto;
      border-top: 1px solid rgba(255,255,255,0.12);
      padding: 18px 20px 30px;
      display: flex;
      justify-content: space-between;
      gap: 24px;
      align-items: flex-start;
      font-size: 0.85rem;
      color: rgba(255,255,255,0.62);
      text-align: left;
    }

    .footer-disclaimer {
      max-width: 620px;
      text-align: right;
    }

    .mobile-sticky {
      display: none;
      position: fixed;
      left: 12px;
      right: 12px;
      bottom: 12px;
      z-index: 60;
      background: linear-gradient(135deg, var(--navy), var(--navy-2));
      color: white;
      border-radius: 999px;
      padding: 13px 16px;
      text-align: center;
      font-weight: 950;
      box-shadow: 0 20px 44px rgba(10,15,90,0.28);
    }

    footer {
      padding: 34px 20px 88px;
      color: var(--muted);
      font-size: 0.9rem;
      text-align: center;
    }

    @media (max-width: 900px) {
      .hero-inner,
      .intro-grid,
      .keyword-grid,
      .course-grid,
      .practice-strip,
      .resources-grid,
      .highlight-box,
      .two-col,
      .trust-grid,
      .testimonial-grid,
      .proof-strip,
      .faq-grid,
      .faq-soft-head,
      .feedback-row {
        grid-template-columns: 1fr;
      }

      .nav-center, .login-link, .nav-actions .nav-cta { display: none; }
      .mobile-menu-button { display: inline-flex; }
      .page { margin-top: -24px; }
      .hero-card { max-width: 560px; }
      .footer-inner { grid-template-columns: 1fr 1fr; }
      .footer-bottom { flex-direction: column; }
      .footer-disclaimer { text-align: left; }
    }

    @media (max-width: 640px) {
      .hero { padding: 30px 18px 40px; }
      .panel { padding: 22px; border-radius: 20px; }
      .hero-actions { flex-direction: column; align-items: stretch; }
      .btn-primary, .btn-secondary, .btn-navy, .btn-soft { width: 100%; }
      .hero-stat-grid { grid-template-columns: 1fr; }
      .question-meta { flex-direction: column; }
      .comparison-table { font-size: 0.9rem; display: block; overflow-x: auto; }
      .comparison-table th, .comparison-table td { padding: 12px; min-width: 170px; }
  

    .footer {
      background:
        radial-gradient(circle at top left, rgba(123,163,232,0.18), transparent 20rem),
        radial-gradient(circle at top right, rgba(245,158,11,0.14), transparent 18rem),
        linear-gradient(135deg, #070b43, #0a0f5a);
      color: rgba(255,255,255,0.85);
      margin-top: 60px;
    }

    .footer-inner {
      max-width: var(--max);
      margin: 0 auto;
      padding: 52px 20px 32px;
      display: grid;
      grid-template-columns: 1.55fr 1fr 1fr 1fr;
      gap: 34px;
      align-items: start;
    }

    .footer-col {
      text-align: left;
    }

    .footer-col h4 {
      margin: 0 0 13px;
      color: white;
      font-size: 0.96rem;
      letter-spacing: 0.01em;
    }

    .footer-col p {
      font-size: 0.92rem;
      color: rgba(255,255,255,0.68);
      margin: 0;
      max-width: 310px;
    }

    .footer-col ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      gap: 8px;
    }

    .footer-col a {
      color: rgba(255,255,255,0.72);
      font-size: 0.92rem;
      transition: color 0.15s ease, transform 0.15s ease;
      display: inline-block;
    }

    .footer-col a:hover {
      color: white;
      transform: translateX(2px);
    }

    .footer-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
      font-weight: 950;
      color: white;
      letter-spacing: -0.03em;
      font-size: 1.12rem;
    }

    .footer-mini-cta {
      margin-top: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(255,255,255,0.10);
      border: 1px solid rgba(255,255,255,0.16);
      color: white;
      border-radius: 999px;
      padding: 10px 14px;
      font-size: 0.9rem;
      font-weight: 900;
      transition: transform 0.15s ease, background 0.15s ease;
    }

    .footer-mini-cta:hover {
      transform: translateY(-1px);
      background: rgba(255,255,255,0.14);
    }

    .footer-bottom {
      max-width: var(--max);
      margin: 0 auto;
      border-top: 1px solid rgba(255,255,255,0.12);
      padding: 18px 20px 30px;
      display: flex;
      justify-content: space-between;
      gap: 24px;
      align-items: flex-start;
      font-size: 0.85rem;
      color: rgba(255,255,255,0.62);
      text-align: left;
    }

    .footer-disclaimer {
      max-width: 620px;
      text-align: right;
    }

    .mobile-sticky { display: block; }
      .nav { padding-inline: 16px; }
    }
  
    /* AP Biology Course Pillar */
    .course-hero {
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(circle at 10% 12%, rgba(123, 163, 232, 0.38), transparent 24rem),
        radial-gradient(circle at 92% 8%, rgba(245, 158, 11, 0.18), transparent 20rem),
        radial-gradient(circle at 45% 110%, rgba(123,163,232,0.14), transparent 24rem),
        linear-gradient(135deg, var(--navy-3), var(--navy) 48%, var(--navy-2));
      color: white;
      padding: 38px 20px 52px;
    }

    .course-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
      background-size: 48px 48px;
      mask-image: radial-gradient(circle at top left, black, transparent 68%);
      pointer-events: none;
    }

    .course-hero-inner {
      position: relative;
      max-width: var(--max);
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1.08fr 0.92fr;
      gap: 32px;
      align-items: center;
    }

    .breadcrumb {
      color: rgba(255,255,255,0.72);
      font-size: 0.9rem;
      margin-bottom: 12px;
    }

    .course-hero h1 {
      color: #ffffff;
      font-size: clamp(2.15rem, 4.55vw, 3.55rem);
      line-height: 1.02;
      margin: 0 0 10px;
      letter-spacing: -0.062em;
    }

    .course-hero h2 {
      color: rgba(255, 255, 255, 0.88);
      font-size: 1.08rem;
      line-height: 1.35;
      font-weight: 750;
      letter-spacing: -0.015em;
      margin: 0 0 14px;
    }

    .course-hero p,
    .course-hero .hero-lead {
      color: rgba(255, 255, 255, 0.88);
      font-size: 1.08rem;
      max-width: 720px;
      margin: 0 0 18px;
    }

    .course-dashboard-card {
      background:
        linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.10));
      border: 1px solid rgba(255,255,255,0.20);
      backdrop-filter: blur(18px);
      border-radius: 30px;
      padding: 18px;
      box-shadow: 0 28px 70px rgba(0,0,0,0.26);
    }

    .course-dashboard-inner {
      background: rgba(255,255,255,0.96);
      color: var(--text);
      border-radius: 22px;
      padding: 18px;
      box-shadow: 0 18px 44px rgba(0,0,0,0.12);
    }

    .course-stat-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 14px;
    }

    .course-stat {
      background: #f8fafc;
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 12px;
    }

    .course-stat strong {
      display: block;
      color: var(--navy);
      font-size: 1.25rem;
      line-height: 1;
    }

    .course-stat span {
      color: var(--muted);
      font-size: 0.82rem;
    }

    .course-page {
      max-width: var(--max);
      margin: 0 auto 84px;
      padding: 0 20px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 310px;
      gap: 24px;
      align-items: start;
    }

    .course-main {
      display: grid;
      gap: 32px;
    }

    /* Sticky section nav + quick path (scannable layout) */
    .page-jump-nav {
      position: sticky;
      top: 70px;
      z-index: 45;
      margin: -8px 0 0;
      padding: 12px 14px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.93));
      border: 1px solid var(--border);
      border-radius: 18px;
      box-shadow: 0 8px 24px rgba(10, 15, 90, 0.06);
      backdrop-filter: blur(14px);
    }
    .page-jump-inner {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px 12px;
    }
    .page-jump-label {
      font-size: 0.72rem;
      font-weight: 950;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--orange-dark);
      flex-shrink: 0;
    }
    .page-jump-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .page-jump-list a {
      display: inline-flex;
      align-items: center;
      padding: 8px 13px;
      border-radius: 999px;
      font-size: 0.86rem;
      font-weight: 750;
      color: var(--navy);
      background: #fff;
      border: 1px solid var(--border);
      transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
      white-space: nowrap;
    }
    .page-jump-list a:hover {
      border-color: var(--blue);
      background: var(--blue-light);
      transform: translateY(-1px);
    }

    .bio-quick-path {
      padding: 22px 24px;
    }
    .bio-quick-path-title {
      margin: 0 0 14px;
      font-size: clamp(1.15rem, 2.5vw, 1.35rem);
      color: var(--navy);
      letter-spacing: -0.03em;
    }
    .bio-quick-path-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }
    .bio-qp-card {
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 14px 16px;
      background: linear-gradient(180deg, #ffffff, #fbfdff);
      display: grid;
      gap: 8px;
      min-height: 100%;
    }
    .bio-qp-num {
      display: inline-grid;
      place-items: center;
      width: 28px;
      height: 28px;
      border-radius: 10px;
      background: var(--blue-light);
      color: var(--navy);
      font-weight: 950;
      font-size: 0.85rem;
    }
    .bio-qp-card strong {
      display: block;
      color: var(--navy);
      font-size: 1.02rem;
      letter-spacing: -0.02em;
    }
    .bio-qp-card p {
      margin: 0;
      font-size: 0.9rem;
      color: var(--muted);
      line-height: 1.5;
    }
    .bio-qp-card a {
      font-weight: 900;
      font-size: 0.9rem;
      color: var(--navy-2);
      text-decoration: underline;
      text-underline-offset: 3px;
      margin-top: 4px;
    }

    .bio-readable {
      max-width: 68ch;
    }

    .bio-pillar-figure {
      margin: 16px 0 0;
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: #fff;
      box-shadow: 0 10px 28px rgba(10, 15, 90, 0.06);
    }
    .bio-pillar-figure img {
      display: block;
      width: 100%;
      height: auto;
      vertical-align: middle;
    }
    .bio-pillar-figure figcaption {
      padding: 12px 14px;
      font-size: 0.88rem;
      color: var(--muted);
      line-height: 1.45;
      background: linear-gradient(180deg, #fbfdff, #ffffff);
      border-top: 1px solid var(--border);
    }

    .sidebar-jump-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 8px;
    }
    .sidebar-jump-list a {
      display: block;
      font-size: 0.9rem;
      font-weight: 750;
      color: var(--navy-2);
      padding: 8px 10px;
      border-radius: 12px;
      border: 1px solid transparent;
      transition: background 0.15s ease, border-color 0.15s ease;
    }
    .sidebar-jump-list a:hover {
      background: var(--blue-light);
      border-color: #dbeafe;
    }

    @media (max-width: 900px) {
      .bio-quick-path-grid {
        grid-template-columns: 1fr;
      }
      .page-jump-nav {
        top: 64px;
        padding: 10px 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 14px;
      }
      .page-jump-inner {
        flex-wrap: nowrap;
        min-width: min-content;
      }
      .page-jump-list {
        flex-wrap: nowrap;
      }
    }

    .course-sidebar {
      position: sticky;
      top: 88px;
      display: grid;
      gap: 16px;
    }

    .sidebar-card {
      background: white;
      border: 1px solid var(--border);
      border-radius: 22px;
      box-shadow: var(--shadow-soft);
      padding: 20px;
    }

    .sidebar-card h3 {
      margin-bottom: 8px;
    }

    .sidebar-card p,
    .sidebar-card li {
      color: var(--muted);
      font-size: 0.92rem;
    }

    .sidebar-card ul {
      margin: 10px 0 0;
      padding-left: 18px;
    }

    .sticky-progress {
      background: rgba(255,255,255,0.92);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 14px;
      box-shadow: var(--shadow-soft);
    }

    .progress-label-dark {
      display: flex;
      justify-content: space-between;
      color: var(--muted);
      font-size: 0.9rem;
      margin-bottom: 8px;
    }

    .progress-label-dark strong {
      color: var(--navy);
    }

    .progress-bar-light {
      height: 10px;
      background: #e2e8f0;
      border-radius: 999px;
      overflow: hidden;
    }

    .progress-fill-light {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--orange), var(--orange-2));
      border-radius: 999px;
      transition: width .35s ease;
    }

    .answer-block {
      background:
        radial-gradient(circle at top right, rgba(123,163,232,0.18), transparent 18rem),
        linear-gradient(180deg, #ffffff, #fbfdff);
    }

    .direct-answer {
      background: var(--blue-light);
      border: 1px solid #dbeafe;
      border-radius: 20px;
      padding: 18px;
      color: var(--navy);
      font-weight: 720;
      font-size: 1.05rem;
      line-height: 1.58;
      margin-top: 14px;
    }

    .split-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
      margin-top: 20px;
    }

    .soft-card {
      background: #fbfdff;
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 18px;
      box-shadow: 0 8px 22px rgba(10,15,90,0.04);
    }

    .soft-card h3 {
      margin-bottom: 8px;
    }

    .soft-card p,
    .soft-card li {
      color: var(--muted);
      font-size: 0.94rem;
    }

    .soft-card ul {
      margin: 10px 0 0;
      padding-left: 18px;
    }

    .table-wrap {
      overflow-x: auto;
      border: 1px solid var(--border);
      border-radius: 20px;
      margin-top: 18px;
      background: white;
      box-shadow: 0 8px 22px rgba(10,15,90,0.04);
    }

    .data-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 640px;
    }

    .data-table th,
    .data-table td {
      padding: 13px 14px;
      text-align: left;
      border-bottom: 1px solid var(--border);
      vertical-align: top;
    }

    .data-table th {
      background: var(--blue-light);
      color: var(--navy);
      font-size: 0.92rem;
    }

    .data-table tr:last-child td {
      border-bottom: 0;
    }

    .unit-roadmap {
      display: grid;
      gap: 14px;
      margin-top: 20px;
    }

    .unit-card {
      display: grid;
      grid-template-columns: 70px 1fr;
      gap: 16px;
      border: 1px solid var(--border);
      border-radius: 22px;
      background: linear-gradient(180deg, #ffffff, #fbfdff);
      padding: 18px;
      box-shadow: 0 8px 22px rgba(10,15,90,0.04);
    }

    .unit-num {
      width: 54px;
      height: 54px;
      border-radius: 18px;
      background: linear-gradient(135deg, var(--navy), var(--navy-2));
      color: white;
      display: grid;
      place-items: center;
      font-weight: 950;
      font-size: 1.1rem;
      box-shadow: 0 10px 20px rgba(10,15,90,0.16);
    }

    .unit-card h3 {
      margin-bottom: 4px;
    }

    .unit-kicker {
      color: var(--orange-dark);
      font-weight: 950;
      font-size: 0.78rem;
      letter-spacing: .06em;
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .unit-card p {
      color: var(--muted);
      margin-bottom: 10px;
    }

    .concept-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 12px 0;
    }

    .concept-chip {
      background: var(--blue-light);
      border: 1px solid #dbeafe;
      color: var(--navy);
      border-radius: 999px;
      padding: 6px 9px;
      font-size: 0.82rem;
      font-weight: 850;
    }

    .trap-box {
      background: #fff7ed;
      border: 1px solid #fed7aa;
      color: #7c2d12;
      border-radius: 16px;
      padding: 12px;
      font-size: 0.92rem;
    }

    .diagnostic-card {
      border: 1px solid var(--border);
      border-radius: 22px;
      background: #fcfdff;
      padding: 22px;
      margin-top: 18px;
    }

    .question-meta {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      color: var(--muted);
      font-size: 0.9rem;
      margin-bottom: 14px;
    }

    .question-stem {
      color: var(--navy);
      font-size: 1.08rem;
      font-weight: 900;
      line-height: 1.4;
    }

    .options {
      display: grid;
      gap: 10px;
      margin-top: 16px;
    }

    .option {
      width: 100%;
      text-align: left;
      background: white;
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 13px 14px;
      font-size: 1rem;
      cursor: pointer;
      transition: all .15s ease;
      color: var(--text);
    }

    .option:hover {
      border-color: var(--blue);
      transform: translateY(-1px);
      box-shadow: 0 8px 18px rgba(10,15,90,0.05);
    }

    .option.correct {
      border-color: var(--success);
      background: #f0fdf4;
    }

    .option.incorrect {
      border-color: var(--danger);
      background: #fef2f2;
    }

    .explanation {
      display: none;
      margin-top: 14px;
      padding: 14px;
      border-radius: 16px;
      background: var(--blue-light);
      border: 1px solid #dbeafe;
      color: var(--navy);
    }

    .diagnostic-actions {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      margin-top: 16px;
    }

    .next-question-btn {
      border: 0;
      border-radius: 999px;
      background: var(--navy);
      color: white;
      padding: 11px 16px;
      font-weight: 950;
      cursor: pointer;
      min-height: 44px;
    }

    .next-question-btn[disabled] {
      opacity: 0.62;
      cursor: not-allowed;
    }

    .quiz-status {
      color: var(--muted);
      font-size: 0.92rem;
      font-weight: 800;
    }

    /* Starting-point result + unit tools */
    .bio-starting-result {
      margin-top: 22px;
      padding: 22px;
      border-radius: 22px;
      border: 1px solid var(--border);
      background: linear-gradient(180deg, #ffffff, #f8fbff);
      box-shadow: var(--shadow-soft);
    }
    .bio-result-head {
      margin-bottom: 16px;
    }
    .bio-result-title {
      margin: 0 0 6px;
      font-size: 1.25rem;
      color: var(--navy);
    }
    .bio-result-sub {
      margin: 0;
      color: var(--muted);
      font-size: 0.95rem;
    }
    .bio-result-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-bottom: 18px;
    }
    .bio-result-label {
      display: block;
      font-size: 0.72rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      font-weight: 850;
      color: var(--orange-dark);
      margin-bottom: 6px;
    }
    .bio-result-value {
      margin: 0;
      font-weight: 900;
      color: var(--navy);
      line-height: 1.35;
    }
    .bio-rec-list {
      margin: 10px 0 0;
      padding-left: 1.25rem;
      color: var(--text);
      line-height: 1.65;
    }
    .bio-rec-link {
      color: var(--navy-2);
      font-weight: 800;
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    .bio-result-cta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      margin-top: 18px;
    }
    .bio-result-cta.btn-primary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 12px 20px;
      border-radius: 999px;
      font-weight: 950;
      background: linear-gradient(135deg, var(--navy), var(--navy-2));
      color: #fff !important;
      box-shadow: 0 12px 28px rgba(10, 15, 90, 0.18);
    }
    .bio-retake-btn {
      border: 1px solid var(--border);
      background: #fff;
      color: var(--navy);
      padding: 11px 18px;
      border-radius: 999px;
      font-weight: 850;
      cursor: pointer;
      min-height: 44px;
    }
    .bio-retake-btn:hover {
      border-color: var(--blue);
      background: var(--blue-light);
    }
    .bio-ls-note {
      margin: 14px 0 0;
      font-size: 0.86rem;
    }

    .bio-priority-wrap {
      margin-top: 16px;
    }
    .priority-badge {
      display: inline-block;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 0.78rem;
      font-weight: 900;
      letter-spacing: 0.02em;
    }
    .priority-high {
      background: #fef3c7;
      color: #92400e;
      border: 1px solid #fcd34d;
    }
    .priority-medium {
      background: #e0f2fe;
      color: #075985;
      border: 1px solid #7dd3fc;
    }
    .priority-review {
      background: #fef9c3;
      color: #713f12;
      border: 1px solid #fde047;
    }

    .bio-missed-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 14px;
      margin-top: 18px;
    }
    .bio-missed-card {
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 16px;
      background: #fff;
      box-shadow: 0 8px 22px rgba(10, 15, 90, 0.045);
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-height: 100%;
    }
    .bio-missed-card h3 {
      margin: 0;
      font-size: 1.05rem;
      color: var(--navy);
    }
    .bio-missed-card p {
      margin: 0;
      color: var(--text);
      font-size: 0.95rem;
      line-height: 1.55;
    }
    .bio-trap-line {
      font-size: 0.88rem;
      color: #7c2d12;
      background: #fff7ed;
      border: 1px solid #fed7aa;
      border-radius: 12px;
      padding: 10px;
      margin: 0;
    }
    .bio-missed-card > a:last-child {
      margin-top: auto;
      font-weight: 900;
      color: var(--navy-2);
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .bio-missed-figure {
      margin: 0;
      padding: 0;
      border: none;
    }
    .bio-missed-thumb {
      display: block;
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
      aspect-ratio: 16 / 9;
      max-height: 200px;
    }
    .bio-missed-thumb img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
      display: block;
    }
    .bio-missed-figure figcaption {
      margin: 8px 0 0;
      font-size: 0.76rem;
      line-height: 1.35;
      color: var(--muted);
      text-align: center;
    }

    .bio-frq-steps {
      margin: 16px 0 0;
      padding-left: 1.25rem;
      line-height: 1.75;
      color: var(--text);
    }
    .bio-frq-prompt-box {
      margin-top: 18px;
      padding: 18px;
      border-radius: 18px;
      border: 1px solid var(--border);
      background: #fbfdff;
    }
    .bio-frq-mini-q {
      margin: 0 0 14px;
      color: var(--navy);
      font-size: 1.02rem;
    }
    .bio-frq-compare {
      margin-top: 12px;
    }
    .bio-frq-card h3 {
      margin-top: 0;
      font-size: 1rem;
      color: var(--navy);
    }
    .bio-frq-weak {
      border-color: #fecaca;
      background: #fef2f2;
    }
    .bio-frq-strong {
      border-color: #bbf7d0;
      background: #f0fdf4;
    }
    .small-note {
      font-size: 0.88rem;
      margin: 0;
    }

    .bio-plan-grid {
      display: grid;
      gap: 14px;
      margin-top: 18px;
    }
    .bio-plan-day {
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 16px 18px;
      background: linear-gradient(180deg, #ffffff, #fbfdff);
      box-shadow: 0 8px 18px rgba(10, 15, 90, 0.05);
    }
    .bio-plan-day-label {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 950;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--orange-dark);
      margin-bottom: 8px;
    }
    .bio-plan-day h3 {
      margin: 0 0 10px;
      font-size: 1.08rem;
      color: var(--navy);
    }
    .bio-plan-day p {
      margin: 0 0 8px;
      color: var(--text);
      font-size: 0.94rem;
      line-height: 1.55;
    }
    .bio-plan-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 22px;
      align-items: center;
    }
    .bio-plan-actions .btn-primary,
    .bio-plan-actions .btn-secondary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 12px 18px;
      border-radius: 999px;
      font-weight: 950;
    }

    @media (max-width: 720px) {
      .bio-result-grid {
        grid-template-columns: 1fr;
      }
      .bio-frq-compare.split-grid {
        grid-template-columns: 1fr;
      }
    }


    .signup-nudge {
      display: none;
      margin-top: 14px;
      border: 1px solid #fed7aa;
      background: #fff7ed;
      color: #7c2d12;
      border-radius: 16px;
      padding: 14px;
    }

    .signup-nudge.show {
      display: block;
    }

    .flashcard-shell {
      border: 1px solid var(--border);
      border-radius: 24px;
      background: linear-gradient(180deg, #ffffff, #fbfdff);
      padding: 20px;
      margin-top: 18px;
      box-shadow: 0 10px 28px rgba(10,15,90,0.055);
    }

    .flashcard-stage {
      min-height: 260px;
      perspective: 1000px;
    }

    .flashcard {
      width: 100%;
      min-height: 260px;
      position: relative;
      transform-style: preserve-3d;
      transition: transform .35s ease;
      cursor: pointer;
    }

    .flashcard.flipped {
      transform: rotateY(180deg);
    }

    .flash-face {
      position: absolute;
      inset: 0;
      backface-visibility: hidden;
      border-radius: 22px;
      padding: 22px;
      border: 1px solid var(--border);
      background: radial-gradient(circle at top right, rgba(123,163,232,0.16), transparent 12rem), #fff;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .flash-face.back {
      transform: rotateY(180deg);
      background: linear-gradient(135deg, var(--navy), var(--navy-2));
      color: white;
      border-color: rgba(255,255,255,0.16);
    }

    .flash-kicker {
      color: var(--orange-dark);
      font-weight: 950;
      letter-spacing: .08em;
      text-transform: uppercase;
      font-size: .78rem;
    }

    .flash-term {
      color: var(--navy);
      font-size: clamp(1.4rem, 3vw, 2.2rem);
      font-weight: 950;
      letter-spacing: -.04em;
      line-height: 1.12;
      margin: 8px 0;
    }

    .flash-face.back .flash-term {
      color: white;
      font-size: 1.3rem;
      letter-spacing: -.02em;
    }

    .flash-note {
      color: var(--muted);
      font-size: .9rem;
    }

    .flash-face.back .flash-note {
      color: rgba(255,255,255,.72);
    }


    .flash-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-top: 16px;
    }

    .flash-next {
      border: 0;
      border-radius: 999px;
      background: var(--navy);
      color: white;
      padding: 11px 16px;
      font-weight: 950;
      cursor: pointer;
      min-height: 44px;
    }

    .flash-next[disabled] {
      opacity: .62;
      cursor: not-allowed;
    }

    .flash-progress {
      color: var(--muted);
      font-weight: 850;
      font-size: .92rem;
    }

    .conversion-box {
      background:
        radial-gradient(circle at top right, rgba(245,158,11,0.18), transparent 18rem),
        linear-gradient(135deg, var(--navy-3), var(--navy-2));
      color: white;
      border-radius: 28px;
      padding: 30px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 22px;
      align-items: center;
      box-shadow: 0 24px 60px rgba(10,15,90,0.20);
    }

    .conversion-box h2 {
      color: white;
    }

    .conversion-box p,
    .conversion-box li {
      color: rgba(255,255,255,.78);
    }

    .conversion-box ul {
      margin: 0;
      padding-left: 18px;
      display: grid;
      gap: 8px;
    }

    .sidebar-stat {
      background:
        radial-gradient(circle at bottom left, rgba(245,158,11,0.22), transparent 12rem),
        linear-gradient(135deg, var(--navy-3), var(--navy-2));
      color: white;
      border-radius: 22px;
      padding: 18px 18px 16px;
      box-shadow: var(--shadow-soft);
    }

    .sidebar-stat .section-eyebrow {
      color: #fbbf24;
      font-size: 0.72rem;
    }

    .sidebar-stat .stat-figure {
      font-size: 1.55rem;
      font-weight: 950;
      letter-spacing: -0.01em;
      line-height: 1.15;
      margin: 4px 0 8px;
      color: white;
    }

    .sidebar-stat .stat-figure span {
      color: #fbbf24;
    }

    .sidebar-stat p {
      color: rgba(255,255,255,.78);
      font-size: 0.85rem;
      margin: 0;
      line-height: 1.45;
    }

    .faq details {
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 0;
      background: rgba(255,255,255,0.88);
      overflow: hidden;
      box-shadow: 0 8px 22px rgba(10,15,90,0.035);
      margin-top: 10px;
    }

    .faq summary {
      cursor: pointer;
      color: var(--navy);
      list-style: none;
      padding: 16px 44px 16px 16px;
      line-height: 1.28;
      font-size: 1.03rem;
      font-weight: 950;
      letter-spacing: -0.025em;
      position: relative;
    }

    .faq summary::-webkit-details-marker {
      display: none;
    }

    .faq summary::after {
      content: "+";
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      width: 24px;
      height: 24px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: var(--blue-light);
      color: var(--navy);
      border: 1px solid #dbeafe;
      font-weight: 950;
    }

    .faq details[open] summary::after {
      content: "–";
      background: #fff7ed;
      border-color: #fed7aa;
      color: var(--orange-dark);
    }

    .faq details p {
      margin: 0;
      padding: 0 16px 16px 16px;
      color: var(--muted);
      font-size: .95rem;
    }


    .score-bars {
      display: grid;
      gap: 9px;
      margin-top: 14px;
    }

    .score-row {
      display: grid;
      grid-template-columns: 22px 1fr 52px;
      gap: 8px;
      align-items: center;
      font-size: 0.86rem;
      color: var(--muted);
    }

    .score-row span {
      color: var(--navy);
      font-weight: 950;
    }

    .score-row strong {
      color: var(--navy);
      text-align: right;
      font-size: 0.84rem;
    }

    .score-track {
      height: 9px;
      border-radius: 999px;
      background: #e2e8f0;
      overflow: hidden;
    }

    .score-track div {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--orange), var(--orange-2));
    }


    .comparison-answer-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
      margin-top: 18px;
    }

    .comparison-answer-card {
      border: 1px solid var(--border);
      border-radius: 22px;
      background: linear-gradient(180deg, #ffffff, #fbfdff);
      padding: 20px;
      box-shadow: 0 8px 22px rgba(10,15,90,0.04);
    }

    .comparison-answer-card h3 {
      margin-bottom: 8px;
      font-size: 1.12rem;
    }

    .comparison-answer-card p {
      color: var(--muted);
      margin-bottom: 12px;
    }

    .comparison-answer-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 18px;
      background: white;
      margin-top: 12px;
    }

    .comparison-answer-table th,
    .comparison-answer-table td {
      padding: 12px 13px;
      text-align: left;
      border-bottom: 1px solid var(--border);
      vertical-align: top;
      font-size: 0.94rem;
    }

    .comparison-answer-table tr:last-child td {
      border-bottom: 0;
    }

    .comparison-answer-table th {
      background: var(--blue-light);
      color: var(--navy);
      font-weight: 950;
    }

    .comparison-answer-table td {
      color: var(--muted);
    }

    .quick-answer-pill {
      display: inline-flex;
      color: var(--orange-dark);
      background: #fff7ed;
      border: 1px solid #fed7aa;
      border-radius: 999px;
      padding: 6px 10px;
      font-size: 0.82rem;
      font-weight: 950;
      margin-bottom: 10px;
    }

    @media (max-width: 700px) {
      .comparison-answer-table {
        display: block;
        overflow-x: auto;
      }

      .comparison-answer-table th,
      .comparison-answer-table td {
        min-width: 170px;
      }
    }


    /* Sidebar and mobile polish */
    .course-sidebar .sidebar-card,
    .course-sidebar .sticky-progress {
      width: 100%;
      min-width: 0;
    }

    .course-sidebar a {
      color: var(--navy);
      font-weight: 850;
    }

    @media (max-width: 980px) {
      .course-page {
        grid-template-columns: 1fr;
      }

      .course-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
      }

      .course-sidebar .sticky-progress {
        grid-column: 1 / -1;
      }

      .course-sidebar .sidebar-card {
        box-shadow: 0 10px 26px rgba(10,15,90,0.06);
      }
    }

    @media (max-width: 700px) {
      .course-sidebar {
        grid-template-columns: 1fr;
      }

      .sidebar-card {
        padding: 18px;
      }

      .score-row {
        grid-template-columns: 22px 1fr 48px;
      }

      .score-card p {
        font-size: 0.95rem;
      }
    }

    @media (max-width: 980px) {
      .course-hero-inner,
      .course-page,
      .conversion-box {
        grid-template-columns: 1fr;
      }

      .course-sidebar {
        position: static;
      }
    }

    @media (max-width: 760px) {
      .split-grid,
      .course-stat-grid,
      .unit-card {
        grid-template-columns: 1fr;
      }

      .diagnostic-actions,
      .flash-actions {
        flex-direction: column;
        align-items: stretch;
      }

      .next-question-btn,
      .flash-next {
        width: 100%;
      }
    }

  
    /* =========================================================
       APScore5 mobile + footer optimization patch
       ========================================================= */
    img, svg, video {
      max-width: 100%;
      height: auto;
    }

    .course-main,
    .course-page,
    .course-sidebar,
    .panel,
    .conversion-box,
    .unit-card,
    .course-card,
    .sidebar-card {
      min-width: 0;
    }

    @media (max-width: 980px) {
      body {
        font-size: 17px;
      }

      .course-hero {
        padding: 34px 18px 46px;
      }

      .course-hero-inner {
        grid-template-columns: 1fr;
        gap: 22px;
      }

      .course-hero h1 {
        font-size: clamp(2.35rem, 8vw, 3.25rem);
        line-height: 1.03;
        letter-spacing: -0.055em;
      }

      .course-hero h2 {
        font-size: 1.16rem;
        line-height: 1.42;
      }

      .course-hero p {
        font-size: 1.08rem;
        line-height: 1.58;
      }

      .breadcrumb {
        font-size: 0.92rem;
        line-height: 1.35;
      }

      .badge {
        font-size: 0.92rem;
        padding: 9px 12px;
      }

      .trust-chip {
        font-size: 0.9rem;
        padding: 8px 11px;
      }

      .course-dashboard-card {
        padding: 14px;
        border-radius: 24px;
      }

      .course-dashboard-inner {
        padding: 16px;
        border-radius: 20px;
      }

      .course-page {
        grid-template-columns: 1fr !important;
        margin-top: -24px;
        padding: 0 18px;
        gap: 18px;
      }

      .course-main {
        display: grid;
        gap: 18px;
      }

      .course-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        order: 2;
      }

      .sidebar-stat {
        grid-column: 1 / -1;
      }

      .panel,
      .conversion-box {
        padding: 24px;
        border-radius: 22px;
      }

      .split-grid,
      .conversion-box {
        grid-template-columns: 1fr;
      }

      .soft-card,
      .sidebar-card,
      .diagnostic-card {
        padding: 18px;
        border-radius: 18px;
      }

      .unit-card {
        grid-template-columns: 56px 1fr;
        gap: 12px;
        padding: 16px;
      }

      .unit-num {
        width: 46px;
        height: 46px;
        border-radius: 15px;
      }

      .concept-chip {
        font-size: 0.9rem;
        padding: 7px 10px;
      }

      .trap-box {
        font-size: 0.96rem;
        line-height: 1.5;
      }

      .question-stem {
        font-size: 1.15rem;
        line-height: 1.48;
      }

      .option {
        font-size: 1.05rem;
        line-height: 1.45;
        padding: 15px 15px;
        border-radius: 17px;
        min-height: 54px;
      }

      .next-question-btn,
      .flash-next,
      .btn-primary,
      .btn-secondary,
      .btn-navy,
      .btn-soft {
        min-height: 52px;
        font-size: 1.02rem;
        padding: 14px 18px;
      }

      .flashcard-stage,
      .flashcard {
        min-height: 300px;
      }

      .flash-term {
        font-size: clamp(1.75rem, 7vw, 2.45rem);
      }

      .flash-face.back .flash-term {
        font-size: 1.35rem;
        line-height: 1.35;
      }

      .comparison-answer-table {
        display: block;
        overflow-x: auto;
        white-space: normal;
      }

      .comparison-answer-table th,
      .comparison-answer-table td,
      .data-table th,
      .data-table td {
        font-size: 0.96rem;
      }

      .final-engagement {
        margin-left: 18px !important;
        margin-right: 18px !important;
      }

      .course-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 700px) {
      body {
        font-size: 17px;
        padding-bottom: 76px;
      }

      .nav {
        padding: 12px 16px;
      }

      .brand {
        font-size: 1.08rem;
      }

      .brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 13px;
      }

      .mobile-menu {
        padding: 0 16px 14px;
      }

      .mobile-menu details {
        border-radius: 15px;
      }

      .mobile-menu summary {
        font-size: 1rem;
        padding: 14px 15px;
      }

      .mobile-menu a {
        font-size: 0.98rem;
        padding: 12px 16px;
      }

      .course-hero {
        padding: 28px 16px 42px;
      }

      .course-hero h1 {
        font-size: clamp(2.2rem, 10vw, 2.85rem);
      }

      .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .course-stat-grid {
        grid-template-columns: 1fr 1fr;
      }

      .course-stat strong {
        font-size: 1.4rem;
      }

      .course-stat span {
        font-size: 0.9rem;
      }

      .course-page {
        padding: 0 14px;
        gap: 16px;
      }

      .panel,
      .conversion-box {
        padding: 20px;
        border-radius: 20px;
      }

      h2 {
        font-size: clamp(1.65rem, 7vw, 2.05rem);
        line-height: 1.12;
      }

      h3 {
        font-size: 1.15rem;
      }

      .direct-answer {
        font-size: 1.05rem;
        line-height: 1.58;
      }

      .split-grid,
      .unit-card,
      .course-sidebar,
      .course-stat-grid,
      .diagnostic-actions,
      .flash-actions,
      .footer-inner,
      .footer-bottom {
        grid-template-columns: 1fr !important;
      }

      .unit-card {
        padding: 18px;
      }

      .unit-num {
        margin-bottom: 4px;
      }

      .question-meta {
        flex-direction: column;
        gap: 4px;
        font-size: 0.96rem;
      }

      .diagnostic-card {
        padding: 16px;
      }

      .diagnostic-actions,
      .flash-actions {
        display: grid;
        align-items: stretch;
      }

      .quiz-status,
      .flash-progress {
        text-align: center;
        font-size: 0.96rem;
      }

      .flashcard-shell {
        padding: 16px;
        border-radius: 21px;
      }

      .flash-face {
        padding: 20px;
      }

      .course-sidebar {
        gap: 14px;
      }

      .sidebar-card,
      .sidebar-stat {
        padding: 18px;
        border-radius: 20px;
      }

      .score-row {
        grid-template-columns: 24px 1fr 56px;
        font-size: 0.92rem;
      }

      .final-engagement {
        margin: 0 14px 46px !important;
      }

      .mobile-sticky {
        display: block;
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 14px 16px;
        min-height: 52px;
        font-size: 0.96rem;
      }
    }

    /* Footer: desktop and mobile cleanup */
    .footer {
      margin-top: 46px;
      padding: 0;
    }

    .footer-inner {
      padding: 46px 20px 28px;
    }

    .footer-col h4 {
      font-size: 1rem;
    }

    .footer-col a {
      padding: 2px 0;
    }

    @media (max-width: 900px) {
      .footer-inner {
        grid-template-columns: 1.2fr 1fr;
        gap: 24px;
        padding: 38px 18px 24px;
      }

      .footer-bottom {
        align-items: flex-start;
        gap: 12px;
        padding: 18px 18px 96px;
      }

      .footer-disclaimer {
        text-align: left;
        max-width: 100%;
      }
    }

    @media (max-width: 640px) {
      .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 36px 18px 22px;
      }

      .footer-brand-col {
        padding-bottom: 4px;
        border-bottom: 1px solid rgba(255,255,255,0.12);
      }

      .footer-col ul {
        gap: 6px;
      }

      .footer-col a {
        font-size: 0.98rem;
        padding: 5px 0;
      }

      .footer-mini-cta {
        width: 100%;
        min-height: 48px;
      }

      .footer-bottom {
        display: grid;
        gap: 10px;
        padding: 18px 18px 96px;
        font-size: 0.86rem;
      }
    }

  
    /* AP Biology hero concept dashboard */
    .bio-concept-dashboard {
      position: relative;
      overflow: hidden;
      display: grid;
      gap: 16px;
      background:
        radial-gradient(circle at 18% 18%, rgba(123,163,232,0.28), transparent 9rem),
        radial-gradient(circle at 88% 12%, rgba(245,158,11,0.18), transparent 8rem),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.98));
    }

    .bio-dashboard-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 14px;
    }

    .bio-dashboard-top h3 {
      margin-bottom: 5px;
    }

    .bio-dashboard-top p {
      margin: 0;
      font-size: 0.94rem;
    }

    .bio-live-pill {
      background: #fff7ed;
      color: var(--orange-dark);
      border: 1px solid #fed7aa;
      border-radius: 999px;
      padding: 6px 10px;
      font-size: 0.78rem;
      font-weight: 950;
      white-space: nowrap;
    }

    .bio-concept-visual {
      min-height: 210px;
      border: 1px solid #dbeafe;
      border-radius: 24px;
      background:
        radial-gradient(circle at center, rgba(123,163,232,0.32), transparent 7rem),
        linear-gradient(135deg, #eef5ff, #ffffff);
      display: grid;
      place-items: center;
      position: relative;
      overflow: hidden;
    }

    .bio-orbit {
      width: 178px;
      height: 178px;
      border: 2px dashed rgba(10,15,90,0.18);
      border-radius: 999px;
      position: relative;
      animation: bioFloat 6s ease-in-out infinite;
    }

    .bio-orbit::before,
    .bio-orbit::after {
      content: "";
      position: absolute;
      inset: 28px;
      border: 1px solid rgba(123,163,232,0.45);
      border-radius: 999px;
      transform: rotate(32deg);
    }

    .bio-orbit::after {
      inset: 50px;
      border-color: rgba(245,158,11,0.38);
      transform: rotate(-22deg);
    }

    .bio-cell-core {
      position: absolute;
      inset: 52px;
      border-radius: 44% 56% 50% 50%;
      background:
        radial-gradient(circle at 38% 36%, rgba(255,255,255,0.98), rgba(255,255,255,0.36) 34%, transparent 35%),
        linear-gradient(135deg, rgba(10,15,90,0.92), rgba(38,50,130,0.92));
      box-shadow: 0 18px 38px rgba(10,15,90,0.22);
      display: grid;
      place-items: center;
    }

    .bio-core-dot {
      width: 24px;
      height: 24px;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--orange), var(--orange-2));
      box-shadow: 0 0 0 10px rgba(245,158,11,0.14);
    }

    .bio-node {
      position: absolute;
      z-index: 3;
      background: white;
      border: 1px solid #dbeafe;
      color: var(--navy);
      border-radius: 999px;
      padding: 6px 9px;
      font-size: 0.76rem;
      font-weight: 950;
      box-shadow: 0 8px 18px rgba(10,15,90,0.09);
    }

    .node-a { top: -8px; left: 56px; }
    .node-b { right: -18px; top: 66px; }
    .node-c { bottom: 8px; left: 18px; }
    .node-d { left: -24px; top: 68px; }

    @keyframes bioFloat {
      0%, 100% { transform: translateY(0) rotate(0deg); }
      50% { transform: translateY(-5px) rotate(1.5deg); }
    }

    .bio-concept-copy {
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 16px;
      background: white;
      box-shadow: 0 8px 22px rgba(10,15,90,0.035);
    }

    .bio-concept-copy .section-eyebrow {
      margin-bottom: 6px;
    }

    .bio-concept-copy h4 {
      color: var(--navy);
      font-size: 1.25rem;
      letter-spacing: -0.035em;
      line-height: 1.1;
      margin: 0 0 6px;
    }

    .bio-concept-copy p {
      color: var(--muted);
      font-size: 0.95rem;
      line-height: 1.5;
      margin: 0;
    }

    .bio-mini-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 9px;
    }

    .bio-mini-stats div {
      border: 1px solid var(--border);
      background: #fbfdff;
      border-radius: 16px;
      padding: 11px;
    }

    .bio-mini-stats strong {
      display: block;
      color: var(--navy);
      font-size: 1.35rem;
      line-height: 1;
      margin-bottom: 3px;
    }

    .bio-mini-stats span {
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 800;
    }

    .bio-dashboard-cta {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      min-height: 46px;
      border-radius: 999px;
      background: var(--navy);
      color: white;
      font-weight: 950;
      text-decoration: none;
      padding: 12px 16px;
      box-shadow: 0 14px 28px rgba(10,15,90,0.20);
    }

    @media (max-width: 980px) {
      .bio-concept-dashboard {
        grid-template-columns: 1fr 1fr;
        align-items: center;
      }

      .bio-dashboard-top,
      .bio-concept-copy,
      .bio-mini-stats,
      .bio-dashboard-cta {
        grid-column: 1;
      }

      .bio-concept-visual {
        grid-column: 2;
        grid-row: 1 / span 4;
        min-height: 300px;
      }

      .bio-orbit {
        width: 210px;
        height: 210px;
      }
    }

    @media (max-width: 700px) {
      .bio-concept-dashboard {
        grid-template-columns: 1fr;
        gap: 14px;
      }

      .bio-dashboard-top,
      .bio-concept-copy,
      .bio-mini-stats,
      .bio-dashboard-cta,
      .bio-concept-visual {
        grid-column: auto;
        grid-row: auto;
      }

      .bio-concept-visual {
        min-height: 235px;
      }

      .bio-orbit {
        width: 176px;
        height: 176px;
      }

      .bio-mini-stats {
        grid-template-columns: repeat(3, 1fr) !important;
      }

      .bio-mini-stats div {
        padding: 10px 8px;
      }

      .bio-mini-stats strong {
        font-size: 1.25rem;
      }

      .bio-mini-stats span {
        font-size: 0.72rem;
      }

      .bio-dashboard-cta {
        width: 100%;
        min-height: 52px;
        font-size: 1rem;
      }
    }

  
    /* Small hero height reduction + dashboard text readability */
    .course-hero {
      padding-top: 36px !important;
      padding-bottom: 49px !important;
    }

    .bio-dashboard-top p,
    .bio-concept-dashboard .muted {
      color: #64748b !important;
      opacity: 1 !important;
    }

    @media (max-width: 980px) {
      .course-hero {
        padding-top: 32px !important;
        padding-bottom: 44px !important;
      }
    }

    @media (max-width: 700px) {
      .course-hero {
        padding-top: 26px !important;
        padding-bottom: 40px !important;
      }

      .bio-dashboard-top p {
        font-size: 0.98rem !important;
        line-height: 1.45 !important;
      }
    }

  
    /* Final clean hero height reduction: extra 5–7%, mobile-safe */
    .course-hero {
      padding-top: 30px !important;
      padding-bottom: 44px !important;
    }

    .course-hero h1 {
      margin-bottom: 10px !important;
    }

    .course-hero h2 {
      margin-bottom: 10px !important;
    }

    .course-hero p {
      margin-bottom: 14px !important;
    }

    .bio-concept-dashboard {
      gap: 12px !important;
    }

    .bio-dashboard-top p,
    .bio-concept-dashboard .muted {
      color: #64748b !important;
      opacity: 1 !important;
    }

    @media (max-width: 980px) {
      .course-hero {
        padding-top: 26px !important;
        padding-bottom: 38px !important;
      }
    }

    @media (max-width: 700px) {
      .course-hero {
        padding-top: 22px !important;
        padding-bottom: 34px !important;
      }

      .course-hero h1 {
        margin-bottom: 8px !important;
      }

      .course-hero p {
        margin-bottom: 12px !important;
      }

      .bio-concept-dashboard {
        gap: 12px !important;
      }
    }

  
    /* Final AP Biology hero: tighter, cleaner, mobile-safe */
    .course-hero {
      padding-top: 28px !important;
      padding-bottom: 40px !important;
    }

    .course-hero h1 {
      margin-bottom: 8px !important;
    }

    .course-hero h2 {
      margin-bottom: 8px !important;
    }

    .course-hero p {
      margin-bottom: 12px !important;
    }

    .bio-concept-dashboard {
      gap: 10px !important;
    }

    .bio-dashboard-top-compact {
      align-items: center !important;
    }

    .bio-dashboard-top-compact p,
    .bio-dashboard-top p,
    .bio-concept-dashboard .muted {
      color: #64748b !important;
      opacity: 1 !important;
      font-weight: 750 !important;
      line-height: 1.4 !important;
      margin: 0 !important;
    }

    .bio-concept-copy {
      padding: 14px !important;
    }

    .bio-concept-copy h4 {
      margin-bottom: 5px !important;
    }

    .bio-concept-copy p {
      margin-bottom: 0 !important;
    }

    .bio-mini-stats div {
      padding: 10px !important;
    }

    @media (max-width: 980px) {
      .course-hero {
        padding-top: 24px !important;
        padding-bottom: 34px !important;
      }

      .bio-concept-visual {
        min-height: 270px !important;
      }
    }

    @media (max-width: 700px) {
      .course-hero {
        padding-top: 20px !important;
        padding-bottom: 30px !important;
      }

      .course-hero h1 {
        margin-bottom: 7px !important;
      }

      .course-hero p {
        margin-bottom: 10px !important;
      }

      .bio-concept-dashboard {
        gap: 10px !important;
      }

      .bio-concept-visual {
        min-height: 220px !important;
      }

      .bio-dashboard-top-compact {
        gap: 10px !important;
      }
    }

  
    /* Final AP Biology hero + rotating concept polish */
    .course-hero {
      padding-top: 28px !important;
      padding-bottom: 40px !important;
    }

    .course-hero h1 {
      margin-bottom: 8px !important;
    }

    .course-hero h2 {
      margin-bottom: 8px !important;
    }

    .course-hero p {
      margin-bottom: 12px !important;
    }

    .bio-concept-dashboard {
      gap: 10px !important;
    }

    .bio-dashboard-top-compact {
      align-items: center !important;
    }

    .bio-dashboard-top-compact p,
    .bio-dashboard-top p,
    .bio-concept-dashboard .muted {
      color: #64748b !important;
      opacity: 1 !important;
      font-weight: 750 !important;
      line-height: 1.4 !important;
      margin: 0 !important;
    }

    .bio-concept-copy {
      padding: 14px !important;
      transition: opacity 0.24s ease, transform 0.24s ease;
    }

    .bio-concept-copy.is-changing {
      opacity: 0;
      transform: translateY(4px);
    }

    .bio-concept-copy h4 {
      margin-bottom: 5px !important;
    }

    .bio-concept-copy p {
      margin-bottom: 0 !important;
    }

    .bio-mini-stats div {
      padding: 10px !important;
    }

    .bio-node {
      transition: transform 0.24s ease, opacity 0.24s ease;
    }

    .bio-node.is-changing {
      opacity: 0.25;
      transform: scale(0.92);
    }

    @media (max-width: 980px) {
      .course-hero {
        padding-top: 24px !important;
        padding-bottom: 34px !important;
      }

      .bio-concept-visual {
        min-height: 270px !important;
      }
    }

    @media (max-width: 700px) {
      .course-hero {
        padding-top: 20px !important;
        padding-bottom: 30px !important;
      }

      .course-hero h1 {
        margin-bottom: 7px !important;
      }

      .course-hero p {
        margin-bottom: 10px !important;
      }

      .bio-concept-dashboard {
        gap: 10px !important;
      }

      .bio-concept-visual {
        min-height: 220px !important;
      }

      .bio-dashboard-top-compact {
        gap: 10px !important;
      }
    }
