/* ══════════════════════════════════════════════════════════════
   ReadingCraft — Phonics Masterclass for Parents
   Extends spelling-course design system; phonics additions below
   ══════════════════════════════════════════════════════════════ */

    :root {
      --teal: #3BBCB8;
      --teal-dark: #2A9490;
      --teal-pale: #EAF9F8;
      --teal-border: rgba(59,188,184,0.2);
      --coral: #FF6B44;
      --coral-dark: #E05530;
      --coral-pale: #FFF0EC;
      --cream: #FDFCF9;
      --cream-mid: #F5F0E8;
      --cream-dark: #EDE8DF;
      --text: #1A1A1A;
      --text-mid: #5A5550;
      --text-light: #9A9590;
      --gold: #F59E0B;
      --green: #22C55E;
      --green-pale: #ECFDF5;
      --purple: #8B5CF6;
      --purple-pale: #F3EBFF;
      --border: rgba(0,0,0,0.07);
      --border-mid: rgba(0,0,0,0.12);
      --mono: 'DM Mono', monospace;
      --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
      --shadow: 0 4px 20px rgba(0,0,0,0.08);
      --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
      --radius: 16px;
      /* Level colours */
      --l1: #F59E0B;   --l1-pale: #FFFBEB;
      --l2: #3BBCB8;   --l2-pale: #EAF9F8;
      --l3: #8B5CF6;   --l3-pale: #F3EBFF;
      --l4: #22C55E;   --l4-pale: #ECFDF5;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
    html { scroll-behavior: smooth; }
    body { font-family: 'Fredoka', system-ui, sans-serif; background: var(--cream); color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }

    /* ── NAV ─────────────────────────────────── */
    nav { position: fixed; top: 0; left: 0; right: 0; z-index: 300; background: rgba(253,252,249,0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; }
    .nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
    .nav-logo img { height: 32px; width: auto; }
    .nav-logo-text { font-size: 1rem; font-weight: 700; color: var(--text); }
    .nav-logo-text span { color: var(--teal); }
    .nav-right { display: flex; align-items: center; gap: 10px; }
    .nav-login-btn { background: var(--coral); color: white; border: none; padding: 8px 18px; border-radius: 20px; font-family: 'Fredoka', sans-serif; font-size: 0.88rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s; white-space: nowrap; }
    .nav-login-btn:hover { background: var(--coral-dark); }
    .nav-avatar { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--teal-border); object-fit: cover; }
    .nav-user-name { font-size: 0.85rem; font-weight: 600; color: var(--text-mid); }
    .nav-logout { font-size: 0.78rem; color: var(--text-light); background: none; border: 1px solid var(--border-mid); padding: 5px 10px; border-radius: 8px; text-decoration: none; }
    .nav-progress { font-size: 0.75rem; color: var(--text-light); white-space: nowrap; }
    .nav-progress span { color: var(--teal); font-weight: 700; }

    /* ── PROGRESS STRIP ───────────────────────── */
    .progress-strip { display: flex; align-items: center; gap: 12px; padding: 10px 1.25rem; background: white; border-bottom: 1px solid var(--border); margin-top: 56px; position: sticky; top: 56px; z-index: 200; }
    .progress-bar-outer { flex: 1; height: 6px; background: var(--cream-dark); border-radius: 6px; overflow: hidden; }
    .progress-bar-inner { height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-dark)); border-radius: 6px; transition: width 0.5s ease; }
    .progress-text { font-size: 0.75rem; font-weight: 700; color: var(--text-light); white-space: nowrap; }
    .progress-text span { color: var(--teal-dark); }

    /* ── LAYOUT ───────────────────────────────── */
    .course-layout { display: flex; min-height: calc(100vh - 100px); padding-top: 56px; }

    /* Sidebar */
    .sidebar { width: 260px; flex-shrink: 0; background: white; border-right: 1px solid var(--border); position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
    @media(max-width:860px) { .sidebar { display: none; } }

    .sidebar-unit-btn { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: none; padding: 10px 14px; cursor: pointer; font-family: 'Fredoka', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--text-mid); border-radius: 8px; transition: background 0.15s; }
    .sidebar-unit-btn:hover { background: var(--cream); }
    .sidebar-unit-icon { font-size: 1rem; }
    .sidebar-unit-name { flex: 1; text-align: left; }
    .sidebar-unit-chevron { font-size: 0.7rem; color: var(--text-light); transition: transform 0.25s; }
    .sidebar-section { border-bottom: 1px solid var(--border); }
    .sidebar-section.unit-open .sidebar-unit-chevron { transform: rotate(180deg); }
    .sidebar-unit-modules { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
    .sidebar-section.unit-open .sidebar-unit-modules { max-height: 600px; }

    .mod-btn { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: none; padding: 9px 14px 9px 28px; cursor: pointer; font-family: 'Fredoka', sans-serif; font-size: 0.82rem; color: var(--text-mid); text-align: left; transition: all 0.15s; border-radius: 0; }
    .mod-btn:hover { background: var(--cream); color: var(--text); }
    .mod-btn.active { background: var(--teal-pale); color: var(--teal-dark); font-weight: 700; }
    .mod-btn.done .mod-btn-num { background: var(--green); color: white; }
    .mod-btn-num { width: 22px; height: 22px; border-radius: 50%; background: var(--cream-dark); color: var(--text-light); font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: 'DM Mono', monospace; }
    .mod-btn.active .mod-btn-num { background: var(--teal); color: white; }
    .mod-btn-text { flex: 1; line-height: 1.3; }

    /* Main content */
    .home-view, .main-content { flex: 1; min-width: 0; padding: 32px 40px; max-width: 780px; }
    @media(max-width:860px) { .home-view, .main-content { padding: 24px 20px; } }

    /* ── "BEST ON A BIGGER SCREEN" STRIP — phones only ──
       Pinned just under the fixed 56px nav; content (.course-layout) padding-top
       is bumped on phones so nothing hides behind it. */
    .screen-tip { display: none; }
    @media(max-width:600px) {
      .screen-tip {
        display: flex; align-items: center; justify-content: center; gap: 6px;
        position: fixed; top: 56px; left: 0; right: 0; z-index: 280;
        background: var(--teal-pale); color: var(--teal-dark);
        border-bottom: 1px solid var(--teal-border);
        font-family: 'Fredoka', sans-serif; font-size: 0.74rem; font-weight: 600;
        line-height: 1.25; text-align: center; padding: 7px 12px;
      }
      .screen-tip b { color: var(--coral-dark); font-weight: 700; }
      .course-layout { padding-top: 92px; }
    }

    /* ── MOBILE NAV ────────────────────────────── */
    .mobile-mod-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 250; }
    @media(max-width:860px) { .mobile-mod-nav { display: block; } }
    .mmn-bar { display: flex; align-items: center; background: white; border-top: 1px solid var(--border); padding: 8px 12px; gap: 8px; box-shadow: 0 -4px 20px rgba(0,0,0,0.08); }
    .mmn-home-btn, .mmn-nav-btn, .mmn-grid-btn { background: var(--cream); border: 1px solid var(--border-mid); border-radius: 10px; padding: 8px 12px; font-size: 0.9rem; cursor: pointer; flex-shrink: 0; transition: all 0.15s; }
    .mmn-nav-btn:disabled { opacity: 0.35; cursor: default; }
    .mmn-current { flex: 1; cursor: pointer; text-align: center; min-width: 0; }
    .mmn-unit-label { font-size: 0.62rem; color: var(--text-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mmn-mod-label { font-size: 0.82rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    .mmn-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(26,26,26,0.5); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
    .mmn-overlay.open { opacity: 1; pointer-events: all; }
    .mmn-overlay-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: white; border-bottom: 1px solid var(--border); }
    .mmn-overlay-title { font-size: 1rem; font-weight: 700; }
    .mmn-close-btn { background: var(--cream); border: 1px solid var(--border-mid); border-radius: 8px; padding: 6px 12px; font-size: 0.85rem; cursor: pointer; }
    .mmn-overlay-body { background: white; height: calc(100vh - 57px); overflow-y: auto; padding: 8px 0 80px; }
    .mmn-unit { border-bottom: 1px solid var(--border); }
    .mmn-unit-header { display: flex; align-items: center; gap: 10px; padding: 12px 20px; cursor: pointer; }
    .mmn-unit-icon { font-size: 1.1rem; }
    .mmn-unit-name { flex: 1; font-size: 0.9rem; font-weight: 700; color: var(--text); }
    .mmn-unit-progress { font-size: 0.72rem; color: var(--text-light); font-family: var(--mono); }
    .mmn-unit-chevron { font-size: 0.7rem; color: var(--text-light); transition: transform 0.2s; }
    .mmn-unit.open .mmn-unit-chevron { transform: rotate(180deg); }
    .mmn-unit-mods { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
    .mmn-unit.open .mmn-unit-mods { max-height: 600px; }
    .mmn-mod-item { display: flex; align-items: center; gap: 10px; padding: 10px 20px 10px 44px; cursor: pointer; transition: background 0.15s; }
    .mmn-mod-item:hover { background: var(--cream); }
    .mmn-mod-item.active { background: var(--teal-pale); }
    .mmn-mod-item.done .mmn-mod-num { background: var(--green); color: white; }
    .mmn-mod-num { width: 22px; height: 22px; border-radius: 50%; background: var(--cream-dark); color: var(--text-light); font-size: 0.68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .mmn-mod-item.active .mmn-mod-num { background: var(--teal); color: white; }
    .mmn-mod-title { font-size: 0.85rem; color: var(--text); font-weight: 500; }

    /* ── HOME VIEW ────────────────────────────── */
    .home-greeting { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
    .home-tagline { font-family: 'Lora', serif; font-style: italic; color: var(--text-mid); font-size: 0.92rem; margin-bottom: 28px; }

    .home-framework { background: white; border: 1.5px solid var(--border-mid); border-radius: var(--radius); padding: 22px; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
    .home-framework-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-light); margin-bottom: 8px; }
    .home-framework-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 14px; line-height: 1.4; }
    .home-fw-steps { display: flex; flex-direction: column; gap: 8px; }
    .home-fw-step { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--text-mid); line-height: 1.45; }
    .home-fw-num { width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: white; font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }

    .home-journey { display: flex; flex-direction: column; gap: 12px; }
    .home-unit-card { background: white; border: 1.5px solid var(--border-mid); border-radius: var(--radius); padding: 18px; cursor: pointer; transition: all 0.2s; box-shadow: var(--shadow-sm); }
    .home-unit-card:hover { border-color: var(--teal-border); box-shadow: var(--shadow); transform: translateY(-1px); }
    .home-unit-card.unit-started { border-color: var(--teal-border); }
    .home-unit-card.unit-done { border-color: rgba(34,197,94,0.3); background: var(--green-pale); }
    .home-unit-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
    .home-unit-icon { font-size: 1.4rem; flex-shrink: 0; }
    .home-unit-info { flex: 1; min-width: 0; }
    .home-unit-name { font-size: 1rem; font-weight: 700; color: var(--text); }
    .home-unit-meta { font-size: 0.72rem; color: var(--text-light); margin-top: 2px; }
    .home-unit-arrow { color: var(--text-light); flex-shrink: 0; }
    .home-unit-desc { font-family: 'Lora', serif; font-size: 0.84rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 10px; }
    .home-unit-progress-bar { height: 5px; background: var(--cream-dark); border-radius: 5px; overflow: hidden; margin-bottom: 6px; }
    .home-unit-progress-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-dark)); border-radius: 5px; transition: width 0.5s ease; }
    .home-unit-progress-text { font-size: 0.7rem; color: var(--text-light); font-family: var(--mono); }
    .home-unit-progress-text span { color: var(--teal-dark); font-weight: 700; }

    /* Level badge on home cards */
    .home-unit-level { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
    .home-unit-level.l1 { background: var(--l1-pale); color: #92400E; }
    .home-unit-level.l2 { background: var(--l2-pale); color: var(--teal-dark); }
    .home-unit-level.l3 { background: var(--l3-pale); color: #5B21B6; }
    .home-unit-level.l4 { background: var(--l4-pale); color: #15803D; }

    /* ── MODULE SCREEN ────────────────────────── */
    .module-screen { display: none; }
    .module-screen.active { display: block; animation: fadeSlide 0.3s ease forwards; }
    @keyframes fadeSlide { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

    .mod-eyebrow { display: flex; align-items: center; gap: 6px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-light); margin-bottom: 10px; }
    .mod-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
    .mod-title { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 700; line-height: 1.15; color: var(--text); margin-bottom: 8px; }
    .mod-title .accent { color: var(--teal); }
    .mod-title .accent-coral { color: var(--coral); }
    .mod-desc { font-family: 'Lora', serif; font-style: italic; font-size: 0.95rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 24px; }

    /* Level badge on module eyebrow */
    .level-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 20px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-right: 6px; }
    .level-badge.l1 { background: var(--l1-pale); color: #92400E; border: 1px solid rgba(245,158,11,0.2); }
    .level-badge.l2 { background: var(--l2-pale); color: var(--teal-dark); border: 1px solid var(--teal-border); }
    .level-badge.l3 { background: var(--l3-pale); color: #5B21B6; border: 1px solid rgba(139,92,246,0.2); }
    .level-badge.l4 { background: var(--l4-pale); color: #15803D; border: 1px solid rgba(34,197,94,0.2); }

    /* ── RULE BOX ─────────────────────────────── */
    .rule-box { background: var(--teal-pale); border: 1.5px solid var(--teal-border); border-radius: var(--radius); padding: 20px 22px; margin: 20px 0; }
    .rb-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--teal-dark); margin-bottom: 8px; }
    .rb-rule { font-size: 0.95rem; color: var(--text); line-height: 1.65; font-weight: 500; }
    .rb-rule .gold { color: var(--coral); font-weight: 700; }
    .rb-note { font-family: 'Lora', serif; font-style: italic; font-size: 0.82rem; color: var(--text-mid); margin-top: 10px; line-height: 1.6; }

    /* ── TABLE ────────────────────────────────── */
    .compare-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.85rem; }
    .compare-table thead tr { background: var(--cream-dark); }
    .compare-table th { padding: 10px 14px; text-align: left; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-light); }
    .compare-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-mid); line-height: 1.5; }
    .compare-table tbody tr:last-child td { border-bottom: none; }
    .compare-table tbody tr:hover { background: var(--cream); }
    .td-green { color: var(--teal-dark) !important; font-weight: 700; }
    .td-gold { color: var(--gold) !important; font-weight: 700; }
    .td-coral { color: var(--coral) !important; font-weight: 700; }

    /* ── INSIGHT BOX ──────────────────────────── */
    .insight { background: white; border: 1.5px solid var(--border-mid); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
    .insight ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
    .insight ul li { font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; padding-left: 18px; position: relative; }
    .insight ul li::before { content: '•'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
    .insight-gold { border-color: rgba(245,158,11,0.2); background: var(--l1-pale); }
    .insight-purple { border-color: rgba(139,92,246,0.2); background: var(--l3-pale); }
    .insight-green { border-color: rgba(34,197,94,0.2); background: var(--l4-pale); }

    /* ── EXAMPLES SECTION ─────────────────────── */
    .examples-section { margin: 18px 0; }
    .examples-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-light); margin-bottom: 10px; }
    .examples-grid { display: flex; flex-wrap: wrap; gap: 8px; }
    .example-word { font-family: var(--mono); font-size: 0.88rem; background: white; border: 1.5px solid var(--border-mid); border-radius: 8px; padding: 6px 12px; color: var(--text); }
    .ew-highlight { border-color: var(--teal-border); background: var(--teal-pale); color: var(--teal-dark); font-weight: 600; }
    .ew-gold { border-color: rgba(245,158,11,0.25); background: var(--l1-pale); color: #92400E; font-weight: 600; }

    /* ── PHONEME CARD (new for phonics course) ─ */
    .phoneme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin: 16px 0; }
    .phoneme-card { background: white; border: 2px solid var(--border-mid); border-radius: 14px; padding: 14px 10px; text-align: center; cursor: pointer; transition: all 0.2s; box-shadow: var(--shadow-sm); user-select: none; }
    .phoneme-card:hover { border-color: var(--teal-border); box-shadow: var(--shadow); transform: translateY(-2px); }
    .phoneme-card.playing { border-color: var(--teal); background: var(--teal-pale); }
    .phoneme-card.vowel { border-color: rgba(245,158,11,0.3); }
    .phoneme-card.vowel:hover { border-color: var(--gold); background: var(--l1-pale); }
    .phoneme-letter { font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 4px; font-family: 'Fredoka', sans-serif; }
    .phoneme-card.vowel .phoneme-letter { color: var(--coral); }
    .phoneme-sound { font-size: 0.68rem; color: var(--text-light); font-family: 'Lora', serif; font-style: italic; }
    .phoneme-example { font-size: 0.72rem; font-weight: 600; color: var(--text-mid); margin-top: 3px; font-family: var(--mono); }

    /* ── SAY IT LIKE THIS (new) ──────────────── */
    .say-it-box { background: linear-gradient(135deg, #FFFBEB, #FEF3C7); border: 1.5px solid rgba(245,158,11,0.25); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
    .say-it-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: #92400E; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
    .say-it-label::before { content: '🎙'; font-size: 0.85rem; }
    .say-it-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
    .say-it-row:last-child { margin-bottom: 0; }
    .say-it-sound { font-size: 1.3rem; font-weight: 700; width: 44px; text-align: center; flex-shrink: 0; }
    .say-it-desc { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; padding-top: 3px; }
    .say-it-desc strong { color: var(--text); }

    /* ── TEACH THIS SESSION (new) ─────────────── */
    .session-box { background: white; border: 2px solid var(--teal-border); border-radius: var(--radius); padding: 20px 22px; margin: 22px 0; }
    .session-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--teal-dark); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
    .session-label::before { content: '📋'; font-size: 0.85rem; }
    .session-steps { display: flex; flex-direction: column; gap: 12px; }
    .session-step { display: flex; gap: 12px; }
    .session-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: white; font-size: 0.78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
    .session-step-body { flex: 1; }
    .session-step-title { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
    .session-step-desc { font-size: 0.82rem; color: var(--text-mid); line-height: 1.6; }
    .session-step-desc .script { font-family: 'Lora', serif; font-style: italic; color: var(--teal-dark); display: block; margin-top: 4px; border-left: 3px solid var(--teal-border); padding-left: 10px; }
    .session-time { display: inline-flex; align-items: center; gap: 4px; font-size: 0.65rem; font-weight: 700; background: var(--cream-dark); color: var(--text-light); padding: 2px 8px; border-radius: 10px; margin-left: 6px; }

    /* ── WATCH FOR (new) ──────────────────────── */
    .watchfor-box { background: var(--coral-pale); border: 1.5px solid rgba(255,107,68,0.2); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
    .watchfor-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--coral-dark); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
    .watchfor-label::before { content: '⚠️'; font-size: 0.85rem; }
    .watchfor-items { display: flex; flex-direction: column; gap: 8px; }
    .watchfor-item { display: flex; gap: 10px; align-items: flex-start; }
    .watchfor-wrong { font-family: var(--mono); font-size: 0.82rem; background: white; border: 1.5px solid rgba(255,107,68,0.3); border-radius: 6px; padding: 3px 8px; color: var(--coral-dark); font-weight: 600; flex-shrink: 0; }
    .watchfor-fix { font-size: 0.82rem; color: var(--text-mid); line-height: 1.55; padding-top: 3px; }

    /* ── BLENDING DEMO (new) ──────────────────── */
    .blend-demo { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; margin: 16px 0; }
    .blend-tile { background: white; border: 2px solid var(--border-mid); border-radius: 10px; min-width: 44px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; color: var(--text); transition: all 0.3s; font-family: 'Fredoka', sans-serif; }
    .blend-tile.vowel { border-color: rgba(245,158,11,0.4); background: var(--l1-pale); color: var(--coral); }
    .blend-tile.digraph { border-color: var(--teal-border); background: var(--teal-pale); color: var(--teal-dark); }
    .blend-arrow { font-size: 1.2rem; color: var(--text-light); margin: 0 4px; }
    .blend-word { font-size: 1.6rem; font-weight: 700; color: var(--text); font-family: 'Fredoka', sans-serif; padding: 8px 16px; background: var(--green-pale); border: 2px solid rgba(34,197,94,0.3); border-radius: 12px; }

    /* ── FLIP CARDS (mod-04 blending strategies) ─ */
    .flip3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
    /* faces stacked in one grid cell (not absolute) so the card grows to fit
       its TALLEST face — long back text can never spill out of the border */
    .flip-card { perspective: 900px; cursor: pointer; display: flex; min-height: 185px; }
    .flip-card-inner { flex: 1; display: grid; transition: transform 0.5s; transform-style: preserve-3d; }
    .flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
    .flip-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 14px; padding: 16px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
    .flip-front { background: white; border: 2px solid var(--border-mid); gap: 6px; box-shadow: var(--shadow-sm); }
    .flip-front .flip-icon { font-size: 1.9rem; }
    .flip-front .flip-name { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--text); line-height: 1.25; }
    .flip-front .flip-tag { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal-dark); background: var(--teal-pale); border-radius: 20px; padding: 2px 10px; }
    .flip-front .flip-hint { font-size: 0.64rem; color: var(--text-light); }
    .flip-back { transform: rotateY(180deg); background: var(--teal-pale); border: 2px solid var(--teal-border); font-family: 'Lora', serif; font-size: 0.84rem; line-height: 1.55; color: var(--text-mid); }
    /* featured strategy = the one the ReadingCraft app uses */
    .flip-card--featured .flip-front { border-color: var(--teal); box-shadow: 0 4px 14px rgba(59,188,184,0.18); }
    .flip-card--featured .flip-back { border-color: var(--teal); }
    .flip-tag--app { background: var(--teal) !important; color: white !important; }
    .flip-img { width: 58px; height: 58px; object-fit: contain; }

    /* ── SOUND WAVES — subtle pulse on tappable-audio chips ── */
    .snd-waves { display: inline-flex; align-items: center; gap: 1.5px; height: 11px; margin-left: 3px; vertical-align: middle; }
    .snd-waves i { width: 2px; border-radius: 2px; background: currentColor; opacity: 0.65; transform-origin: center; animation: sndWave 1.5s ease-in-out infinite; }
    .snd-waves i:nth-child(1) { height: 5px; }
    .snd-waves i:nth-child(2) { height: 9px; animation-delay: 0.25s; }
    .snd-waves i:nth-child(3) { height: 6px; animation-delay: 0.5s; }
    @keyframes sndWave { 0%, 100% { transform: scaleY(0.6); } 50% { transform: scaleY(1.25); } }
    @media (prefers-reduced-motion: reduce) { .snd-waves i { animation: none; } }

    /* ── APP BRIDGE CARD (new) ───────────────── */
    .app-bridge { background: white; border: 2px solid var(--teal-border); border-radius: var(--radius); padding: 20px; margin: 24px 0; display: flex; gap: 16px; align-items: flex-start; }
    .app-bridge-icon { font-size: 2rem; flex-shrink: 0; }
    .app-bridge-body { flex: 1; min-width: 0; }
    .app-bridge-title { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
    .app-bridge-text { font-size: 0.82rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 12px; }
    .app-bridge-links { display: flex; flex-wrap: wrap; gap: 8px; }
    .app-bridge-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--teal); color: white; text-decoration: none; font-size: 0.8rem; font-weight: 700; padding: 8px 14px; border-radius: 10px; transition: all 0.2s; font-family: 'Fredoka', sans-serif; border: none; cursor: pointer; }
    .app-bridge-btn:hover { background: var(--teal-dark); transform: translateY(-1px); }
    .app-bridge-btn.secondary { background: var(--cream); color: var(--text); border: 1.5px solid var(--border-mid); }
    .app-bridge-btn.secondary:hover { border-color: var(--teal-border); }

    /* ── INTERACTIVE TOOL WRAP ────────────────── */
    .tool-wrap { background: white; border: 1.5px solid var(--border-mid); border-radius: var(--radius); overflow: hidden; margin: 22px 0; box-shadow: var(--shadow-sm); }
    .tool-header { background: linear-gradient(180deg, var(--teal-pale) 0%, rgba(234,249,248,0.7) 100%); padding: 16px 22px 14px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--teal-border); }
    .tool-header-title { font-family: 'Fredoka', sans-serif; font-size: 1rem; font-weight: 700; color: var(--teal-dark); letter-spacing: -0.01em; }
    .tool-header-sub { font-family: 'Lora', serif; font-style: italic; font-size: 0.8rem; color: var(--teal); margin-top: 2px; }
    .tool-body { padding: 22px 20px; background: linear-gradient(180deg, #FDFCF9 0%, white 40%); }

    /* Shared tool elements */
    .rc-word-display { text-align: center; margin-bottom: 16px; }
    .rc-word { font-size: 2rem; font-weight: 700; font-family: 'Fredoka', sans-serif; color: var(--text); letter-spacing: 1px; }
    .rc-hint { font-family: 'Lora', serif; font-style: italic; font-size: 0.82rem; color: var(--text-light); margin-bottom: 8px; }
    .rc-options { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
    .rc-opt-btn { background: white; border: 2px solid var(--border-mid); border-radius: 10px; padding: 10px 18px; font-family: 'Fredoka', sans-serif; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: all 0.15s; color: var(--text); }
    .rc-opt-btn:hover { border-color: var(--teal); background: var(--teal-pale); }
    .rc-opt-btn.correct { border-color: var(--green); background: var(--green-pale); color: #166534; }
    .rc-opt-btn.wrong { border-color: var(--coral); background: var(--coral-pale); color: var(--coral-dark); }
    .rc-feedback { text-align: center; font-family: 'Lora', serif; font-size: 0.88rem; color: var(--text-mid); min-height: 24px; line-height: 1.5; }
    .rc-feedback.correct { color: #166534; }
    .rc-feedback.wrong { color: var(--coral-dark); }
    .tool-btn { background: var(--teal); color: white; border: none; padding: 10px 24px; border-radius: 10px; font-family: 'Fredoka', sans-serif; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
    .tool-btn:hover { background: var(--teal-dark); }
    .tool-score { font-size: 0.72rem; font-family: var(--mono); color: var(--text-light); text-align: center; margin-top: 8px; }

    /* Blending sequencer tool */
    .blend-seq { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 12px 0; }
    .blend-seq-tile { min-width: 48px; height: 56px; border: 2px solid var(--border-mid); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; cursor: pointer; transition: all 0.2s; background: white; font-family: 'Fredoka', sans-serif; }
    .blend-seq-tile:hover { transform: scale(1.08); border-color: var(--teal); }
    .blend-seq-tile.active { border-color: var(--teal); background: var(--teal-pale); color: var(--teal-dark); transform: scale(1.1); }

    /* ── WORKSHEET BUTTONS ────────────────────── */
    .ws-btn-wrap { margin: 24px 0 18px; padding: 16px 18px; background: var(--cream-mid); border-radius: var(--radius); border: 1px solid var(--border); }
    .ws-print-btn { background: white; border: 1.5px solid var(--border-mid); border-radius: 8px; padding: 8px 14px; font-family: 'Fredoka', sans-serif; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.15s; color: var(--text-mid); }
    .ws-print-btn:hover { border-color: var(--teal-border); background: var(--teal-pale); color: var(--teal-dark); }

    /* ── NEXT BUTTON ──────────────────────────── */
    .mod-next-btn { background: var(--coral); color: white; border: none; padding: 14px 28px; border-radius: 14px; font-family: 'Fredoka', sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s; margin-top: 8px; margin-bottom: 40px; display: block; }
    .mod-next-btn:hover { background: var(--coral-dark); transform: translateY(-1px); }

    /* ── GUEST / LANDING ──────────────────────── */
    .guest-wrap { max-width: 640px; margin: 80px auto 60px; padding: 0 1.25rem; text-align: center; }
    .guest-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--teal-pale); color: var(--teal-dark); border: 1px solid var(--teal-border); font-size: 0.7rem; font-weight: 700; padding: 5px 14px; border-radius: 20px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 20px; }
    .guest-h1 { font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 700; line-height: 1.1; margin-bottom: 14px; }
    .guest-h1 em { font-style: normal; color: var(--teal); }
    .guest-h1 strong { font-style: normal; color: var(--coral); }
    .guest-tagline { font-family: 'Lora', serif; font-style: italic; font-size: 1rem; color: var(--text-mid); line-height: 1.7; max-width: 480px; margin: 0 auto 28px; }
    .google-btn { display: inline-flex; align-items: center; gap: 10px; background: white; color: var(--text); font-family: 'Fredoka', sans-serif; font-size: 1rem; font-weight: 600; padding: 14px 28px; border-radius: 14px; border: 2px solid var(--border-mid); cursor: pointer; text-decoration: none; transition: all 0.2s; box-shadow: var(--shadow); }
    .google-btn:hover { border-color: var(--teal); box-shadow: 0 4px 20px rgba(59,188,184,0.18); transform: translateY(-1px); }

    .price-strip { display: inline-flex; align-items: baseline; gap: 8px; background: var(--coral-pale); border: 1.5px solid rgba(255,107,68,0.2); border-radius: 12px; padding: 10px 20px; margin: 20px 0 0; }
    .price-original { font-size: 0.9rem; color: var(--text-light); text-decoration: line-through; }
    .price-main { font-size: 1.8rem; font-weight: 700; color: var(--coral); }
    .price-label { font-size: 0.78rem; color: var(--text-mid); }

    .benefits-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 0; margin: 28px 0; }
    .benefit-chip { display: flex; align-items: center; gap: 7px; background: white; border: 1.5px solid var(--border-mid); border-radius: 12px; padding: 10px 14px; font-size: 0.85rem; font-weight: 600; color: var(--text-mid); box-shadow: var(--shadow-sm); }

    /* Course outline on landing */
    .outline-section { text-align: left; margin: 32px 0; }
    .outline-level { background: white; border: 1.5px solid var(--border-mid); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
    .outline-level-header { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; }
    .outline-level-badge { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
    .outline-level-badge.l1 { background: var(--l1-pale); color: #92400E; }
    .outline-level-badge.l2 { background: var(--l2-pale); color: var(--teal-dark); }
    .outline-level-badge.l3 { background: var(--l3-pale); color: #5B21B6; }
    .outline-level-badge.l4 { background: var(--l4-pale); color: #15803D; }
    .outline-level-info { flex: 1; }
    .outline-level-name { font-size: 0.92rem; font-weight: 700; color: var(--text); }
    .outline-level-sub { font-size: 0.72rem; color: var(--text-light); margin-top: 2px; }
    .outline-chevron { color: var(--text-light); transition: transform 0.25s; }
    .outline-level.open .outline-chevron { transform: rotate(180deg); }
    .outline-level-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; border-top: 0; }
    .outline-level.open .outline-level-body { max-height: 500px; border-top: 1px solid var(--border); }
    .outline-mods { padding: 12px 18px 14px; display: flex; flex-direction: column; gap: 6px; }
    .outline-mod { font-size: 0.82rem; color: var(--text-mid); display: flex; gap: 8px; align-items: flex-start; }
    .outline-mod::before { content: '→'; color: var(--teal); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

    /* ── PRINT / WORKSHEETS ───────────────────── */
    .worksheet-container { display: none; }
    .ws-printable { display: none; }
    @media print {
      body > *:not(.worksheet-container.print-target) { display: none !important; }
      .worksheet-container.print-target { display: block !important; }
    }

    /* ── RESPONSIVE ───────────────────────────── */
    @media(max-width:600px) {
      .home-view, .main-content { padding: 20px 16px 100px; }
      .phoneme-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
      .blend-tile { min-width: 38px; height: 46px; font-size: 1.2rem; }
      .flip3-grid { grid-template-columns: 1fr; }
      .flip-card { min-height: 140px; }
      .compare-table { font-size: 0.78rem; }
      .compare-table th, .compare-table td { padding: 8px 10px; }
    }

    /* ══════════════════════════════════════════
       PRINT / WORKSHEET STYLES
       ══════════════════════════════════════════ */
    @media print {
      body > *:not(.ws-printable.printing) { display: none !important; }
      .ws-printable.printing { display: block !important; }
      .ws-page { padding: 14mm 18mm; font-family: 'Fredoka', system-ui, sans-serif; background: white; color: #111; }
      .ws-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6mm; padding-bottom: 3mm; border-bottom: 2.5px solid #3BBCB8; }
      .ws-logo { display: flex; align-items: center; gap: 2mm; font-size: 13pt; font-weight: 700; color: #2A9490; }
      .ws-logo img { height: 28px; width: auto; }
      .ws-mod-tag { font-size: 8pt; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #78716C; }
      .ws-title { font-size: 17pt; font-weight: 700; color: #1A1A1A; margin-bottom: 1mm; }
      .ws-subtitle { font-size: 9pt; font-style: italic; color: #78716C; margin-bottom: 4mm; }
      .ws-rule-box { background: #EAF9F8; border: 1.5px solid #3BBCB8; border-radius: 3mm; padding: 3mm 5mm; margin-bottom: 5mm; }
      .ws-rule-label { font-size: 7pt; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #2A9490; margin-bottom: 1.5mm; }
      .ws-rule-text { font-size: 9.5pt; color: #1A1A1A; line-height: 1.5; }
      .ws-rule-text b { color: #FF6B44; }
      .ws-section { margin-bottom: 5mm; }
      .ws-section-title { font-size: 8.5pt; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #2A9490; margin-bottom: 2mm; border-bottom: 1px solid #DDD5C8; padding-bottom: 1mm; }
      .ws-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
      .ws-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3mm; }
      .ws-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 3mm; }
      .ws-box { border: 1px solid #DDD5C8; border-radius: 2mm; padding: 3mm; min-height: 16mm; background: #FAFAFA; }
      .ws-box-label { font-size: 8pt; font-weight: 700; color: #44403C; margin-bottom: 2mm; }
      .ws-line { border-bottom: 1px solid #DDD5C8; height: 7mm; margin-bottom: 1mm; }
      .ws-lines { display: flex; flex-direction: column; gap: 0; }
      .ws-word-list { display: flex; flex-wrap: wrap; gap: 2.5mm; margin: 2mm 0; }
      .ws-word { font-family: 'DM Mono', monospace; font-size: 10pt; font-weight: 700; background: #EAF9F8; color: #2A9490; padding: 1.5mm 4mm; border-radius: 2mm; }
      .ws-word.blank { background: white; border: 1.5px solid #DDD5C8; min-width: 22mm; }
      .ws-word.coral { background: #FFF0EC; color: #E05530; }
      .ws-sort-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
      .ws-sort-col { border: 1.5px solid; border-radius: 2mm; padding: 3mm; min-height: 28mm; }
      .ws-sort-col.gc { border-color: #22C55E; background: #ECFDF5; }
      .ws-sort-col.rc { border-color: #FF6B44; background: #FFF0EC; }
      .ws-sort-col.bc { border-color: #3BBCB8; background: #EAF9F8; }
      .ws-sort-col.pc { border-color: #9C27B0; background: #F3E5F5; }
      .ws-col-label { font-size: 8pt; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2.5mm; }
      .ws-sort-col.gc .ws-col-label { color: #15803D; }
      .ws-sort-col.rc .ws-col-label { color: #E05530; }
      .ws-sort-col.bc .ws-col-label { color: #2A9490; }
      .ws-sort-col.pc .ws-col-label { color: #6A1B9A; }
      .ws-table { width: 100%; border-collapse: collapse; font-size: 9pt; margin: 2mm 0; }
      .ws-table th { background: #EAF9F8; color: #2A9490; padding: 2mm 3mm; text-align: left; font-size: 8pt; border-bottom: 1.5px solid #3BBCB8; }
      .ws-table td { border: 1px solid #DDD5C8; padding: 2mm 3mm; }
      .ws-table td.ans { background: #FAFAFA; min-width: 22mm; }
      .ws-num { counter-reset: wn; }
      .ws-item { counter-increment: wn; display: flex; gap: 2.5mm; align-items: flex-start; margin-bottom: 3mm; font-size: 9.5pt; color: #111; }
      .ws-item::before { content: counter(wn) '.'; font-weight: 700; color: #2A9490; min-width: 5mm; flex-shrink: 0; }
      .ws-elkonin { display: flex; gap: 1mm; align-items: flex-end; margin: 3mm 0; }
      .ws-elkonin-word { font-size: 10pt; font-weight: 700; color: #1A1A1A; min-width: 20mm; }
      .ws-elkonin-boxes { display: flex; gap: 1.5mm; }
      .ws-elkonin-box { width: 14mm; height: 12mm; border: 1.5px solid #3BBCB8; border-radius: 1.5mm; background: #FAFAFA; display: flex; align-items: center; justify-content: center; font-family: 'DM Mono', monospace; font-size: 10pt; font-weight: 700; color: #2A9490; }
      .ws-elkonin-box.empty { background: white; }
      .ws-elkonin-count { font-size: 8pt; color: #78716C; align-self: center; margin-left: 2mm; }
      .ws-highlight { background: #FFF0EC; color: #E05530; font-weight: 700; padding: 0 1mm; border-radius: 1mm; }
      .ws-highlight.teal { background: #EAF9F8; color: #2A9490; }
      .ws-highlight.purple { background: #F3E5F5; color: #6A1B9A; }
      .footer-note { font-size: 7pt; color: #A8A29E; text-align: center; margin-top: 8mm; font-style: italic; border-top: 1px solid #EEE; padding-top: 3mm; }
      .ws-dictation-line { display: flex; align-items: baseline; gap: 3mm; margin-bottom: 5mm; font-size: 9.5pt; }
      .ws-dictation-num { font-weight: 700; color: #2A9490; min-width: 5mm; }
      .ws-dictation-blank { flex: 1; border-bottom: 1px solid #DDD5C8; height: 7mm; }
    }

    /* ══════════════════════════════════════════
       TAPPABLE DOT PULSE — vowel trapezoids
       ══════════════════════════════════════════ */
    @keyframes dot-ring-pulse {
      0% { opacity: 0.6; stroke-width: 2; }
      100% { opacity: 0; stroke-width: 0.5; }
    }
    @keyframes dot-invite {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.18); }
    }
/* ══════════════════════════════════════════════════════════════
   INTRO & MODULE 1 — VISUAL REDESIGN
   Add this to the END of course.css
   ══════════════════════════════════════════════════════════════ */

/* ── INTRO HERO ──────────────────────────── */
.intro-hero {
  text-align: center;
  padding: 40px 20px 36px;
  margin: -32px -40px 0;
  background: linear-gradient(170deg, var(--l1-pale) 0%, var(--cream) 40%, var(--teal-pale) 100%);
  border-bottom: 1.5px solid var(--border);
}
@media(max-width:860px) { .intro-hero { margin: -24px -20px 0; padding: 32px 16px 28px; } }

.intro-hero-badge {
  display: inline-block;
  background: white;
  border: 1.5px solid var(--border-mid);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  animation: fadeSlide 0.5s ease forwards;
}
.intro-hero-title {
  font-size: clamp(1.8rem, 5.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 8px;
  animation: fadeSlide 0.5s 0.1s ease both;
}
.intro-hero-accent {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.intro-hero-sub {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 24px;
  animation: fadeSlide 0.5s 0.2s ease both;
}
.intro-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  animation: fadeSlide 0.5s 0.3s ease both;
}
.intro-stat { text-align: center; }
.intro-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1;
  font-family: 'Fredoka', sans-serif;
}
.intro-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.intro-stat-divider {
  width: 1.5px;
  height: 32px;
  background: var(--border-mid);
}

/* ── REASSURANCE STRIP ───────────────────── */
.intro-reassurance {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0;
}
.intro-reassurance-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.5;
  transition: all 0.2s;
}
.intro-reassurance-item:hover {
  border-color: var(--teal-border);
  box-shadow: var(--shadow-sm);
}
.intro-reassurance-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ── JOURNEY HEADER ──────────────────────── */
.intro-journey-header {
  text-align: center;
  margin: 36px 0 20px;
}
.intro-journey-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 4px;
}
.intro-journey-subtitle {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-mid);
}

/* ── LEVEL CARDS ─────────────────────────── */
.intro-levels {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.intro-level-card {
  background: white;
  border: 2px solid color-mix(in srgb, var(--level-color) 25%, transparent);
  border-radius: 18px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}
.intro-level-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--level-color);
}
.intro-level-card:hover {
  box-shadow: 0 6px 24px color-mix(in srgb, var(--level-color) 15%, transparent);
  transform: translateY(-2px);
}
.intro-level-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.intro-level-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--level-pale);
  color: var(--level-text);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--level-color) 30%, transparent);
}
.intro-level-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.intro-level-modules {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 1px;
}
.intro-level-sounds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.intro-sound-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--level-pale);
  color: var(--level-text);
  border: 1.5px solid color-mix(in srgb, var(--level-color) 25%, transparent);
  letter-spacing: 0.02em;
}
.intro-sound-chip.more {
  background: transparent;
  border-style: dashed;
  font-size: 0.72rem;
  color: var(--text-light);
}
.intro-level-outcome {
  font-family: 'Lora', serif;
  font-size: 0.84rem;
  color: var(--level-text);
  font-style: italic;
  line-height: 1.5;
}
.intro-outcome-arrow {
  font-style: normal;
  margin-right: 2px;
}

/* ── MODULE FLOW ─────────────────────────── */
.intro-module-flow {
  background: white;
  border: 1.5px solid var(--border-mid);
  border-radius: 18px;
  padding: 28px 24px;
  margin: 0 0 28px;
  text-align: center;
}
.intro-flow-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 20px;
}
.intro-flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.intro-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100px;
}
.intro-flow-icon {
  font-size: 1.8rem;
  height: 48px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 14px;
  border: 1.5px solid var(--border);
}
.intro-flow-step-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.intro-flow-step-desc {
  font-size: 0.7rem;
  color: var(--text-light);
  line-height: 1.4;
}
.intro-flow-connector {
  width: 24px;
  height: 2px;
  background: var(--border-mid);
  margin-top: 24px;
  flex-shrink: 0;
}
@media(max-width:560px) {
  .intro-flow-steps { gap: 4px; }
  .intro-flow-step { width: 72px; }
  .intro-flow-connector { width: 12px; }
  .intro-flow-step-desc { font-size: 0.62rem; }
}

/* ── COLLAPSIBLE DETAILS ─────────────────── */
.intro-details {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  margin: 0 0 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.intro-details[open] {
  border-color: var(--teal-border);
}
.intro-details-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}
.intro-details-summary::-webkit-details-marker { display: none; }
.intro-details-summary:hover { background: var(--cream); }
.intro-details-icon { font-size: 1.1rem; flex-shrink: 0; }
.intro-details-chevron {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-light);
  transition: transform 0.25s;
}
.intro-details[open] .intro-details-chevron {
  transform: rotate(180deg);
}
.intro-details-body {
  padding: 0 20px 20px;
}
.intro-details-body .compare-table {
  margin: 0;
}

/* ── INTRO TIP CARDS ─────────────────────── */
.intro-tip-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.intro-tip-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--cream);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.intro-tip-emoji {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════
   MODULE 1 — VISUAL REDESIGN
   ══════════════════════════════════════════════════════════════ */

/* ── KEY CONCEPT: WRONG VS RIGHT ─────────── */
.mod1-key-concept {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 32px;
}
@media(max-width:560px) { .mod1-key-concept { grid-template-columns: 1fr; } }

.mod1-kc-wrong, .mod1-kc-right {
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
}
.mod1-kc-wrong {
  background: #FFF5F5;
  border: 2px solid #FED7D7;
}
.mod1-kc-right {
  background: var(--green-pale);
  border: 2px solid rgba(34,197,94,0.25);
}
.mod1-kc-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.mod1-kc-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mod1-kc-sound {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 10px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}
.mod1-kc-sound.wrong {
  background: white;
  color: #E53E3E;
  border: 1.5px solid #FED7D7;
}
.mod1-kc-sound.right {
  background: white;
  color: #22C55E;
  border: 1.5px solid rgba(34,197,94,0.25);
}
.mod1-kc-arrow {
  font-size: 1rem;
  color: var(--text-light);
}
.mod1-kc-result {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 10px;
}
.mod1-kc-result.wrong {
  color: #E53E3E;
}
.mod1-kc-result.right {
  color: #15803D;
}

/* ── SOUNDS SECTION HEADER ───────────────── */
.mod1-sounds-section {
  margin: 0 0 32px;
}
.mod1-sounds-header {
  text-align: center;
  margin-bottom: 16px;
}
.mod1-sounds-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.mod1-sounds-subtitle {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ── ARTICULATION CARDS ──────────────────── */
.mod1-articulation {
  margin: 0 0 32px;
}
.mod1-art-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 14px;
}
.mod1-art-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media(max-width:560px) { .mod1-art-cards { grid-template-columns: 1fr; } }

.mod1-art-card {
  background: var(--art-pale);
  border: 2px solid color-mix(in srgb, var(--art-color) 25%, transparent);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  transition: all 0.2s;
}
.mod1-art-card:hover {
  box-shadow: 0 4px 16px color-mix(in srgb, var(--art-color) 12%, transparent);
  transform: translateY(-1px);
}
.mod1-art-sounds {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--art-color);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.mod1-art-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 8px;
}
.mod1-art-tip {
  font-family: 'Lora', serif;
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.55;
}

/* ── WATCH-FOR CARDS ─────────────────────── */
.mod1-watchfor-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media(max-width:600px) { .mod1-watchfor-cards { grid-template-columns: 1fr; } }

.mod1-wf-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.mod1-wf-wrong {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #E53E3E;
  background: #FFF5F5;
  border: 1.5px solid #FED7D7;
  border-radius: 10px;
  padding: 6px 12px;
  display: inline-block;
  margin-bottom: 8px;
}
.mod1-wf-fix {
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ── TEACH SESSION — HIGHLIGHTED ─────────── */
.mod1-session {
  background: linear-gradient(135deg, var(--l1-pale), #FFF8EE);
  border: 2px solid rgba(245,158,11,0.3);
  border-radius: 20px;
  padding: 24px;
  margin: 28px 0;
  position: relative;
}
.mod1-session::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--coral));
  border-radius: 20px 20px 0 0;
}
.mod1-session-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.mod1-session-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #92400E;
  background: white;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(245,158,11,0.25);
}
.mod1-session-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
}

/* ════════════════════════════════════════════
   HOMEPAGE REDESIGN — append to course.css
   ════════════════════════════════════════════ */

/* ── Parent Skills (replaces home-framework) ── */
/* ── Home hero — warm greeting with Crumbs ── */
.home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(160deg, var(--teal-pale) 0%, var(--cream) 100%);
  border: 1.5px solid var(--teal-border);
  border-radius: 20px;
  padding: 22px 22px 20px;
  margin-bottom: 16px;
}
.home-hero-text { flex: 1; min-width: 0; }
.home-hero .home-tagline { margin-bottom: 0; }
.home-hero-mascot { width: 96px; height: 96px; object-fit: contain; flex-shrink: 0; }
@media(max-width: 600px) {
  .home-hero { padding: 16px 16px 14px; border-radius: 16px; }
  .home-hero-mascot { width: 70px; height: 70px; }
  .home-greeting { font-size: 1.25rem; }
  .home-tagline { font-size: 0.84rem; }
}

/* ── "Pick up where you left off" CTA ── */
.home-next {
  background: white;
  border: 1.5px solid var(--border-mid);
  border-left: 5px solid var(--lc, var(--teal));
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.home-next:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.home-next-eyebrow {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-light); margin-bottom: 10px;
}
.home-next-main { display: flex; align-items: center; gap: 13px; }
.home-next-num {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--lbg, var(--teal-pale)); color: var(--lc, var(--teal-dark));
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.home-next-info { flex: 1; min-width: 0; }
.home-next-group {
  font-size: 0.63rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--lc, var(--teal-dark)); margin-bottom: 2px;
}
.home-next-title { font-size: 0.98rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.home-next-btn {
  display: inline-flex; align-items: center;
  background: var(--lc, var(--teal)); color: white;
  border: none; border-radius: 12px; padding: 10px 18px;
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 0.86rem;
  flex-shrink: 0; white-space: nowrap;
}
@media(max-width: 480px) {
  .home-next-btn { padding: 9px 13px; font-size: 0.78rem; }
  .home-next-num { width: 38px; height: 38px; font-size: 1.05rem; }
  .home-next-title { font-size: 0.9rem; }
}

.home-skills-wrap {
  margin-bottom: 28px;
}
.home-skills-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 10px;
}
.home-skills-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.4;
}
.home-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media(max-width: 540px) {
  .home-skills { grid-template-columns: 1fr; gap: 8px; }
}
.home-skill-card {
  background: white;
  border: 1.5px solid var(--border-mid);
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.home-skill-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.home-skill-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}
@media(max-width: 540px) {
  .home-skill-card { padding: 10px 12px; align-items: center; }
}
.home-skill-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Fredoka', sans-serif;
}
.home-skill-desc {
  font-size: 0.73rem;
  color: var(--text-mid);
  font-family: 'Lora', serif;
  font-style: italic;
  line-height: 1.45;
}

/* ── Progress Card ── */
.home-prog-card {
  background: white;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.home-prog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.home-prog-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.home-prog-pct {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
  color: var(--teal-dark);
}
.home-prog-bar-outer {
  height: 7px;
  background: var(--cream-dark);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}
.home-prog-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  border-radius: 8px;
  transition: width 0.6s ease;
}
.home-prog-levels {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.home-prog-lvl {
  flex: 1;
  min-width: 40px;
  text-align: center;
}
.home-prog-lvl-bar {
  height: 5px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}
.home-prog-lvl-label {
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
}
.home-prog-lvl-count {
  font-size: 0.58rem;
  color: var(--text-light);
  font-family: 'DM Mono', monospace;
}

/* ── Unit Cards (new design) ── */
/* ── Hero progress — gentle line inside the welcome card ── */
.hh-prog { margin-top: 12px; max-width: 320px; }
.hh-prog-bar {
  height: 7px; background: rgba(255,255,255,0.7);
  border: 1px solid var(--teal-border); border-radius: 8px; overflow: hidden;
}
.hh-prog-fill {
  height: 100%; border-radius: 8px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  transition: width 0.6s ease;
}
.hh-prog-label {
  margin-top: 6px; font-size: 0.72rem; font-weight: 600;
  color: var(--teal-dark); font-family: 'Fredoka', sans-serif;
}

/* ── Journey section label ── */
.home-journey-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text-light); margin: 4px 0 12px;
}

/* ── Unit cards — Crumbs-illustrated, outcome-led ── */
.huc {
  background: linear-gradient(135deg, var(--lbg, white) 0%, #fff 62%);
  border: 1.5px solid var(--border-mid);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.huc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.09);
  border-color: var(--lc, var(--teal));
}
.huc-main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
}
.huc-text { flex: 1; min-width: 0; }
.huc-chiprow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 7px; }
.huc-level-chip {
  display: inline-flex; align-items: center;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--lc, var(--teal-dark)); background: white;
  border: 1.5px solid var(--lc, var(--teal)); border-radius: 20px;
  padding: 2px 10px; font-family: 'Fredoka', sans-serif;
}
.huc-tag {
  display: inline-flex; align-items: center;
  font-size: 0.62rem; font-weight: 700;
  color: #9D174D; background: #FDF2F8;
  border: 1.5px solid #F9A8D4; border-radius: 20px;
  padding: 2px 10px; font-family: 'Fredoka', sans-serif;
}
.huc-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  font-family: 'Fredoka', sans-serif;
  margin-bottom: 5px;
}
.huc-outcome {
  font-family: 'Lora', serif;
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.huc-mascot {
  width: 76px; height: 76px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.08));
}
.huc-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.huc-badge-done {
  background: #DCFCE7;
  color: #166534;
}
.huc-badge-started {
  background: var(--teal-pale);
  color: var(--teal-dark);
}
.huc-badge-new {
  background: var(--cream-dark);
  color: var(--text-mid);
}
.huc-words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.huc-word {
  font-size: 0.73rem;
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid transparent;
}
.huc-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.65);
  border-top: 1px solid var(--border);
}
.huc-bar-outer {
  flex: 1;
  height: 5px;
  background: var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
}
.huc-bar-inner {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}
@media(max-width: 480px) {
  .huc-mascot { width: 62px; height: 62px; }
  .huc-name { font-size: 1rem; }
  .huc-outcome { font-size: 0.78rem; }
}

/* ════════════════════════════════════════════
   INTRO MODULE REDESIGN — append to course.css
   ════════════════════════════════════════════ */

/* ── Before Your First Session cards ── */
.intro-know-header {
  margin: 28px 0 14px;
}
.intro-know-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.intro-know-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: white;
  border: 1.5px solid var(--border-mid);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.intro-know-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.intro-know-body {
  flex: 1;
  min-width: 0;
}
.intro-know-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.3;
}
.intro-know-text {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.6;
  font-family: 'Lora', serif;
}

/* ── Mobile: flow steps stack vertically ── */
@media(max-width: 600px) {
  .intro-flow-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .intro-flow-step {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    padding: 10px 0;
  }
  .intro-flow-icon {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .intro-flow-step-title {
    font-size: 0.88rem;
    margin-bottom: 1px;
  }
  .intro-flow-step-desc {
    font-size: 0.75rem;
    color: var(--text-mid);
  }
  .intro-flow-connector {
    width: 2px;
    height: 16px;
    background: var(--border-mid);
    border-radius: 2px;
    margin-left: 19px; /* aligns under icon centre */
    align-self: flex-start;
  }

  /* level cards single column */
  .intro-levels {
    grid-template-columns: 1fr !important;
  }

  /* know cards full width */
  .intro-know-card {
    padding: 14px 14px;
  }
}
/* ════════════════════════════════════════════
   SOUND–SPELLING REFERENCE MODULE
   Append to course.css
   ════════════════════════════════════════════ */

/* ── Legend ── */
.spref-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.spref-badge-demo {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  font-family: 'Fredoka', sans-serif;
}
.spref-badge-demo.most-common { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.spref-badge-demo.common      { background: #CCFBF1; color: #0D9488; border: 1px solid #99F6E4; }
.spref-badge-demo.rare        { background: #F5F4F3; color: #57534E; border: 1px solid #E7E5E4; }

/* ── Back button ── */
.spref-back-btn {
  background: none;
  border: 1.5px solid var(--border-mid);
  border-radius: 10px;
  padding: 8px 16px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  margin: 20px 0 8px;
  transition: all 0.15s;
}
.spref-back-btn:hover { border-color: var(--teal-border); color: var(--teal-dark); }

/* ── Section header ── */
.spref-section-head {
  margin: 32px 0 16px;
}
.spref-section-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.spref-section-pill.l1 { background: #FEF3C7; color: #92400E; }
.spref-section-pill.l2 { background: #CCFBF1; color: #0D9488; }
.spref-section-pill.l3 { background: #EDE9FE; color: #6D28D9; }
.spref-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Fredoka', sans-serif;
  margin-bottom: 4px;
}
.spref-section-note {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ── Card grid ── */
.spref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.spref-card-wide {
  grid-column: 1 / -1; /* full width for long-vowel cards */
}

/* ── Individual card ── */
.spref-card {
  background: white;
  border: 1.5px solid var(--border-mid);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.spref-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.spref-card-head.l1 { background: #FFFBEB; border-color: #FDE68A; }
.spref-card-head.l2 { background: #F0FDFA; border-color: #99F6E4; }
.spref-card-head.l3 { background: #F5F3FF; border-color: #DDD6FE; }

.spref-phoneme {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
  color: var(--text);
  flex-shrink: 0;
  min-width: 48px;
  text-align: center;
}
.spref-sound-meta {
  flex: 1;
  min-width: 0;
}
.spref-sound-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.spref-keyword {
  font-size: 0.72rem;
  color: var(--text-mid);
  font-family: 'DM Mono', monospace;
  margin-top: 2px;
}

/* ── Spelling rows ── */
.spref-spellings {
  padding: 6px 0;
}
.spref-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.spref-row:last-child { border-bottom: none; }
.spref-row:nth-child(even) { background: var(--cream); }

.spref-grapheme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  flex-shrink: 0;
  border: 1px solid transparent;
}
.spref-grapheme.l1 { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.spref-grapheme.l2 { background: #CCFBF1; color: #0D9488; border-color: #99F6E4; }
.spref-grapheme.l3 { background: #EDE9FE; color: #6D28D9; border-color: #DDD6FE; }

.spref-examples {
  flex: 1;
  font-size: 0.78rem;
  color: var(--text-mid);
  font-family: 'Lora', serif;
  line-height: 1.4;
  min-width: 0;
}
.spref-examples em {
  color: var(--text-light);
  font-size: 0.73rem;
}

.spref-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: 'Fredoka', sans-serif;
}
.spref-badge.most-common { background: #DCFCE7; color: #166534; }
.spref-badge.common      { background: #CCFBF1; color: #0D9488; }
.spref-badge.rare        { background: #F5F4F3; color: #57534E; }

/* ── Warning note rows ── */
.spref-note-row {
  background: #FFFBEB !important;
  border-top: 1px dashed #FDE68A;
}
.spref-note {
  font-size: 0.75rem;
  font-family: 'Lora', serif;
  font-style: italic;
  color: #92400E;
  line-height: 1.45;
}

/* ── Mobile ── */
@media(max-width: 640px) {
  .spref-grid {
    grid-template-columns: 1fr;
  }
  .spref-card-wide {
    grid-column: 1;
  }
  .spref-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .spref-badge {
    /* Move badge to new line on narrow screens */
    margin-top: 2px;
  }
  .spref-legend {
    gap: 6px;
  }
  .spref-phoneme {
    font-size: 1.1rem;
    min-width: 36px;
  }
}


 
   
/* ════════════════════════════════════════════
   MOD-00 APPENDIX — missing CSS additions
   ════════════════════════════════════════════ */

/* ── Appendix section header ── */
.intro-appendix-header {
  margin: 32px 0 14px;
}
.intro-appendix-note {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.83rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-top: 6px;
}

/* ── Appendix details — colored left border per level ── */
.intro-appendix-details {
  border-left: 3px solid var(--app-color, var(--teal));
}

/* ── Section label inside appendix body ── */
.intro-app-section-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 10px;
}

/* ── Inline sound chips inside table cells ── */
.intro-sound-chips-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 0;
}
.iac {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.iac.l1 { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.iac.l2 { background: #CCFBF1; color: #0D9488; border-color: #99F6E4; }
.iac.l3 { background: #EDE9FE; color: #6D28D9; border-color: #DDD6FE; }
.iac.l4 { background: #DCFCE7; color: #15803D; border-color: #BBF7D0; }

/* ── Word family grid ── */
.intro-wf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 4px;
}
.intro-wf-group {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.intro-wf-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.intro-wf-row {
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-family: 'Lora', serif;
}
.intro-wf-row strong {
  font-family: 'DM Mono', monospace;
  color: var(--text);
  font-size: 0.75rem;
}

/* ── Reference link to mod-25 ── */
.intro-reflink {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 2px solid var(--teal-border);
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  margin: 16px 0 24px;
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}
.intro-reflink:hover { background: var(--teal-pale); transform: translateY(-1px); }
.intro-reflink-icon { font-size: 1.6rem; flex-shrink: 0; }
.intro-reflink-title { font-size: 0.9rem; font-weight: 700; color: var(--teal-dark); }
.intro-reflink-desc { font-size: 0.76rem; color: var(--text-mid); font-family: 'Lora', serif; font-style: italic; margin-top: 2px; }

/* ── Blending sequencer laptop tip ── */
.blend-laptop-tip {
  font-size: 0.72rem;
  color: var(--text-light);
  font-family: 'Lora', serif;
  font-style: italic;
  text-align: center;
  margin-top: 10px;
  padding: 6px 12px;
  background: var(--cream);
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ── Mobile: word family grid single column ── */
@media(max-width: 600px) {
  .intro-wf-grid { grid-template-columns: 1fr; }
  .intro-sound-chips-cell { gap: 3px; }
}

/* ════════════════════════════════════════════
   HERO FIX + SOUND PLAY BUTTON
   ════════════════════════════════════════════ */

/* ── Hero: prevent truncation on laptop ── */
.intro-hero {
  min-height: fit-content;
  box-sizing: border-box;
}
/* Extend hero to fill the main-content padding on desktop — but NOT over the sidebar */
@media(min-width: 861px) {
  .intro-hero {
    margin: -32px -40px 0 -40px;
    padding: 48px 40px 40px;
  }
}
/* Tighten title on mid-size laptops so it doesn't oversize */
@media(min-width: 861px) and (max-width: 1280px) {
  .intro-hero-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  }
}
/* mod-25 hero: shorter sub text wraps less aggressively */
.spref-hero .intro-hero-sub {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Tappable sound button ── */
.spref-card-head {
  position: relative;
}
.spref-play-btn {
  background: white;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
  position: relative;
  padding: 0;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
}
.spref-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.spref-play-btn:active {
  transform: scale(0.95);
}
/* Animated ring */
.spref-play-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}
/* Pop + ring animation on tap */
.spref-play-btn.sp-active {
  animation: spref-pop 0.5s ease forwards;
}
.spref-play-btn.sp-active .spref-play-ring {
  animation: spref-ring 0.7s ease forwards;
}
@keyframes spref-pop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.28); }
  65%  { transform: scale(0.93); }
  100% { transform: scale(1); }
}
@keyframes spref-ring {
  0%   { opacity: 0.9; transform: scale(0.9); }
  100% { opacity: 0;   transform: scale(2.0); }
}

/* Mobile: ensure button doesn't squash card head */
@media(max-width: 480px) {
  .spref-play-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 0.9rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   MOD-0 REDESIGN — Rich Intro Components
   ══════════════════════════════════════════════════════════════ */

/* ── PLAIN LANGUAGE PROMISE ──────────────── */
.m0-promise {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 28px 0 0;
  padding: 20px 22px;
  background: linear-gradient(135deg, #EEF2FF, #F0F9FF);
  border: 2px solid #C7D2FE;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.m0-promise::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, #818CF8, #6366F1);
  border-radius: 4px 0 0 4px;
}
.m0-promise-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.m0-promise-body { flex: 1; min-width: 0; }
.m0-promise-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #3730A3;
  margin-bottom: 5px;
}
.m0-promise-text {
  font-size: 0.84rem;
  color: #4338CA;
  line-height: 1.65;
  font-family: 'Lora', serif;
}

/* ── LEVEL BLOCKS ────────────────────────── */
.m0-level-block {
  background: white;
  border: 2px solid var(--level-border);
  border-radius: 20px;
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}
.m0-level-block:hover {
  box-shadow: 0 8px 32px color-mix(in srgb, var(--level-color) 15%, transparent);
}

.m0-level-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px 0;
}
.m0-level-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--level-pale);
  color: var(--level-text);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--level-color) 30%, transparent);
}
.m0-level-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.m0-level-meta {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 1px;
}

/* Milestone banner */
.m0-milestone {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 22px 0;
  padding: 14px 16px;
  background: var(--level-pale);
  border-radius: 14px;
  border: 1.5px solid color-mix(in srgb, var(--level-color) 20%, transparent);
}
.m0-milestone-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.m0-milestone-text {
  font-size: 0.88rem;
  color: var(--level-text);
  line-height: 1.5;
  font-family: 'Lora', serif;
}
.m0-milestone-text strong {
  color: var(--text);
}

.m0-level-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
  padding: 14px 22px 0;
}
.m0-level-desc em { font-style: italic; }
.m0-level-desc strong { color: var(--text); font-weight: 700; }

/* Sound showcase */
.m0-sound-showcase {
  padding: 16px 22px 0;
}
.m0-showcase-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.m0-showcase-group {
  margin-bottom: 12px;
}
.m0-showcase-group:last-child { margin-bottom: 0; }

.m0-showcase-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--level-text);
  margin-bottom: 6px;
}
.m0-showcase-words {
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: 'DM Mono', monospace;
  margin-top: 4px;
  padding-left: 2px;
}

/* Sound chips */
.m0-sound-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.m0-sound-chips span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  transition: transform 0.15s;
}
.m0-sound-chips span:hover { transform: scale(1.08); }

.m0-sound-chips.l1 span { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.m0-sound-chips.l2 span { background: #CCFBF1; color: #0D9488; border-color: #99F6E4; }
.m0-sound-chips.l3 span { background: #EDE9FE; color: #6D28D9; border-color: #DDD6FE; }
.m0-sound-chips.l4 span { background: #DCFCE7; color: #15803D; border-color: #BBF7D0; }

/* Sample words */
.m0-sample-words {
  padding: 14px 22px 20px;
}
.m0-sample-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.m0-sample-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.m0-sample-chips span {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--cream);
  border: 1.5px solid var(--border-mid);
  border-radius: 8px;
  padding: 5px 12px;
  color: var(--text);
  transition: all 0.15s;
}
.m0-sample-chips span:hover {
  border-color: var(--teal-border);
  background: var(--teal-pale);
  color: var(--teal-dark);
}

/* ── SCIENCE / REPETITION CARD ───────────── */
.m0-science-card {
  background: white;
  border: 2px solid var(--border-mid);
  border-radius: 20px;
  padding: 24px;
  margin: 28px 0 0;
  position: relative;
  overflow: hidden;
}
.m0-science-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--coral), var(--teal));
}
.m0-science-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.m0-science-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.m0-science-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.m0-science-big {
  text-align: center;
  margin: 0 0 16px;
  padding: 20px;
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border-radius: 16px;
  border: 1.5px solid rgba(245,158,11,0.2);
}
.m0-science-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
  font-family: 'Fredoka', sans-serif;
}
.m0-science-unit {
  font-size: 0.82rem;
  font-weight: 700;
  color: #92400E;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.m0-science-body {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 16px;
}
.m0-science-body strong { color: var(--text); }

.m0-science-reassure {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: #FFFBEB;
  border: 1.5px solid rgba(245,158,11,0.2);
  border-radius: 14px;
  margin-bottom: 14px;
}
.m0-science-reassure-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.m0-science-reassure-text {
  font-size: 0.85rem;
  color: #92400E;
  line-height: 1.6;
  font-family: 'Lora', serif;
  font-style: italic;
}
.m0-science-footer {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.5;
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ── MOBILE ADJUSTMENTS ──────────────────── */
@media(max-width: 600px) {
  .m0-promise { flex-direction: column; gap: 8px; padding: 16px; }
  .m0-level-header { padding: 16px 16px 0; }
  .m0-milestone { margin: 12px 16px 0; padding: 12px 14px; }
  .m0-level-desc { padding: 12px 16px 0; }
  .m0-sound-showcase { padding: 12px 16px 0; }
  .m0-sample-words { padding: 12px 16px 16px; }
  .m0-science-card { padding: 18px; }
  .m0-science-big { padding: 16px; }
  .m0-science-num { font-size: 2.2rem; }
  .m0-sound-chips span { font-size: 0.72rem; padding: 2px 8px; }
}

/* ══════════════════════════════════════════════════════════════
   REUSABLE MODULE COMPONENTS
   Family cards, tip cards, mistake cards — used across modules
   ══════════════════════════════════════════════════════════════ */

/* ── Family card grid ────────────────────── */
.rc-family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}
.rc-family-card {
  background: white;
  border: 2px solid var(--fc-border, var(--border-mid));
  border-radius: 14px;
  padding: 14px 16px;
  border-top: 4px solid var(--fc-color, var(--teal));
}
.rc-family-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.rc-family-letter {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: 'Fredoka', sans-serif;
  color: var(--fc-color);
}
.rc-family-label {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 600;
}
.rc-family-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.rc-family-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--fc-pale, var(--cream));
  color: var(--fc-text, var(--text));
  border: 1.5px solid var(--fc-border, var(--border-mid));
  transition: transform 0.15s;
}
.rc-family-pill:hover { transform: scale(1.06); }

/* ── Tip card grid ───────────────────────── */
.rc-tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}
.rc-tip-card {
  background: var(--tc-bg, var(--cream));
  border: 2px solid var(--tc-border, var(--border-mid));
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
}
.rc-tip-icon { font-size: 1.6rem; margin-bottom: 8px; }
.rc-tip-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.rc-tip-text {
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ── Mistake card grid ───────────────────── */
.rc-mistake-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}
.rc-mistake-card {
  background: white;
  border-radius: 14px;
  padding: 16px;
  border: 1.5px solid #FED7D7;
  text-align: center;
}
.rc-mistake-badge {
  display: inline-block;
  background: #FFF5F5;
  border: 1.5px solid #FED7D7;
  border-radius: 8px;
  padding: 4px 12px;
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #E53E3E;
  margin-bottom: 8px;
}
.rc-mistake-text {
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ── Section label (reusable) ────────────── */
.rc-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* ── Mobile: stack grids single column ───── */
@media(max-width: 480px) {
  .rc-family-grid,
  .rc-tip-grid,
  .rc-mistake-grid {
    grid-template-columns: 1fr;
  }
}
