/* SOURCE: Splash-draftv3-parrot.html */
  :root {
    --cream:       #F5F0E8;
    --terracotta:  #C4614A;
    --terra-light: #E8927C;
    --terra-pale:  #F5D5CC;
    --olive:       #3D4A2E;
    --olive-mid:   #6B7A54;
    --gold:        #C9A84C;
    --gold-pale:   #F0E0A8;
    --charcoal:    #1C1C1A;
    --muted:       #7A7068;
    --white:       #FFFFFF;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', sans-serif;
    --font-mono:    'DM Mono', monospace;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    background: #E8E3D8;
    font-family: var(--font-body);
    color: var(--charcoal);
    min-height: 100vh;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .page-header {
    width: 100%; max-width: 900px;
    display: flex; align-items: baseline;
    justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  }
  .page-title { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 22px; color: var(--charcoal); }
  .page-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

  .switcher { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 900px; }
  .sw-btn {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
    padding: 5px 14px; border-radius: 20px; border: 1px solid rgba(61,74,46,.25);
    background: var(--cream); color: var(--olive); cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
  }
  .sw-btn:hover { background: rgba(61,74,46,.08); }
  .sw-btn.active { background: var(--olive); color: var(--white); border-color: var(--olive); }

  /* ── Slide shell ── */
  .slide {
    width: 100%; max-width: 900px;
    background: var(--cream);
    position: relative;
    display: grid;
    grid-template-columns: 300px 1fr;
    overflow: hidden;
    border: 1px solid rgba(61,74,46,.12);
  }

  .bg-number {
    position: absolute; top: -.15em; right: -.05em;
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(200px, 30vw, 320px);
    color: transparent; -webkit-text-stroke: 1.5px rgba(61,74,46,.07);
    line-height: 1; pointer-events: none; user-select: none; z-index: 0;
  }

  /* ── Left panel ── */
  .panel-left {
    background: var(--olive); padding: 2.5rem 2rem;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; z-index: 1; overflow: hidden;
  }
  .panel-bg-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: .20; mix-blend-mode: luminosity;
    pointer-events: none; user-select: none;
  }
  .panel-left::before {
    content: ''; position: absolute; bottom: -70px; left: -70px;
    width: 240px; height: 240px; border-radius: 50%;
    background: var(--terracotta); opacity: .18;
  }
  .panel-left::after {
    content: ''; position: absolute; top: 36px; right: -36px;
    width: 120px; height: 120px; border-radius: 50%;
    border: 1.5px solid rgba(201,168,76,.28);
  }

  .track-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(201,168,76,.14); border: 1px solid rgba(201,168,76,.38);
    color: var(--gold); font-family: var(--font-mono); font-size: 9px;
    letter-spacing: .12em; text-transform: uppercase;
    padding: 4px 11px; border-radius: 20px; width: fit-content; margin-bottom: 1.75rem;
  }
  .track-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

  .module-number { font-family: var(--font-display); font-weight: 900; font-size: clamp(64px,9vw,88px); color: var(--white); line-height: .9; margin-bottom: .3rem; }
  .module-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 1.75rem; }
  .module-title { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(20px,2.8vw,26px); color: var(--white); line-height: 1.2; margin-bottom: 1.25rem; }
  .level-badge { display: inline-block; background: var(--terracotta); color: var(--white); font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; padding: 3px 11px; border-radius: 2px; width: fit-content; }

  .step-dots { display: flex; gap: 7px; margin-top: 1.5rem; }
  .step-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,.2); cursor: pointer;
    transition: background .2s, transform .2s;
  }
  .step-dot.active { background: var(--gold); transform: scale(1.3); }
  .step-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-top: .6rem; }

  .students-tag { font-size: 10px; color: rgba(255,255,255,.32); font-weight: 300; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.09); }
  .students-tag span { color: rgba(255,255,255,.58); font-weight: 400; }

  /* ── Right panel ── */
  .panel-right {
    padding: 2rem 2rem 1.5rem 1.75rem;
    display: flex; flex-direction: column; gap: 1.1rem;
    position: relative; z-index: 1; min-height: 560px;
  }

  .step-panel { display: none; flex-direction: column; gap: 1.1rem; flex: 1; }
  .step-panel.active { display: flex; }

  /* Hook */
  .hook-block { border-left: 3px solid var(--terracotta); padding-left: 1rem; }
  .hook-label { font-family: var(--font-mono); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 5px; }
  .hook-text { font-family: var(--font-display); font-style: italic; font-size: clamp(13px,1.6vw,15px); line-height: 1.45; color: var(--charcoal); }

  .section-heading { font-family: var(--font-mono); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

  /* Vowel cards */
  .vowel-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
  .vowel-card { background: var(--white); border: 1px solid rgba(61,74,46,.12); border-radius: 4px; padding: .75rem .5rem; text-align: center; }
  .vowel-letter { font-family: var(--font-display); font-weight: 700; font-size: 32px; color: var(--terracotta); line-height: 1; }
  .vowel-sound { font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-top: 4px; }
  .vowel-eg { font-size: 9px; color: var(--muted); font-style: italic; margin-top: 2px; opacity: .7; }

  /* Open/Closed grid */
  .oc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .oc-card { border-radius: 4px; padding: .85rem; }
  .oc-open { background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.3); }
  .oc-closed { background: rgba(196,97,74,.08); border: 1px solid rgba(196,97,74,.2); }
  .oc-label { font-family: var(--font-mono); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
  .oc-open .oc-label { color: var(--gold); }
  .oc-closed .oc-label { color: var(--terracotta); }
  .oc-letters { display: flex; gap: 6px; margin-bottom: 6px; }
  .oc-letter { background: var(--white); border: 1px solid rgba(61,74,46,.1); border-radius: 3px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--olive); }
  .oc-note { font-size: 10px; color: var(--muted); font-weight: 300; }

  /* Consonant rows */
  .cons-list { display: flex; flex-direction: column; gap: 7px; }
  .cons-row { background: var(--white); border: 1px solid rgba(61,74,46,.1); border-radius: 4px; padding: .65rem .85rem; display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; }
  .cons-letter { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--terracotta); line-height: 1; }
  .cons-sound { font-family: var(--font-mono); font-size: 9px; color: var(--gold); letter-spacing: .06em; margin-bottom: 2px; }
  .cons-rule { font-size: 11px; color: var(--charcoal); line-height: 1.4; }
  .cons-eg { font-size: 10px; color: var(--muted); font-style: italic; margin-top: 2px; }

  /* Stress */
  .stress-list { display: flex; flex-direction: column; gap: 7px; }
  .stress-block { background: var(--white); border: 1px solid rgba(61,74,46,.1); border-radius: 4px; padding: .65rem .85rem; }
  .stress-rule { font-size: 10px; color: var(--muted); font-family: var(--font-mono); letter-spacing: .06em; margin-bottom: 6px; }
  .syllables { display: flex; align-items: baseline; gap: 3px; flex-wrap: wrap; }
  .syl { font-family: var(--font-display); font-size: 18px; color: var(--muted); }
  .syl-sep { font-size: 12px; color: rgba(122,112,104,.4); }
  .syl.stressed { font-size: 22px; font-weight: 700; color: var(--terracotta); border-bottom: 2px solid var(--terra-light); }

  /* Diphthong table */
  .dip-table { width: 100%; border-collapse: collapse; font-size: 11px; }
  .dip-table th { background: var(--olive); color: rgba(255,255,255,.7); font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; text-align: left; }
  .dip-table td { padding: 6px 10px; border-bottom: 1px solid rgba(61,74,46,.08); color: var(--charcoal); line-height: 1.4; }
  .dip-table tr:last-child td { border-bottom: none; }
  .dip-table tr:nth-child(even) td { background: rgba(61,74,46,.03); }
  .combo-pill { display: inline-block; font-family: var(--font-mono); font-size: 9px; padding: 2px 7px; border-radius: 20px; }
  .combo-d { background: rgba(61,74,46,.1); color: var(--olive); }
  .combo-h { background: rgba(201,168,76,.15); color: #8a6b1a; }

  /* Shared blocks */
  .drill-block { background: var(--gold-pale); border: 1px solid rgba(201,168,76,.38); border-radius: 4px; padding: .75rem .9rem; }
  .drill-label { font-family: var(--font-mono); font-size: 8px; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
  .drill-text { font-size: 11px; color: var(--charcoal); line-height: 1.55; }

  .sentence-block { background: var(--olive); border-radius: 4px; padding: .9rem 1.1rem; position: relative; overflow: hidden; }
  .sentence-block::before { content: '"'; position: absolute; top: -10px; left: 6px; font-family: var(--font-display); font-size: 72px; color: rgba(255,255,255,.05); line-height: 1; pointer-events: none; }
  .sentence-es { font-family: var(--font-display); font-style: italic; font-size: 13px; color: var(--white); margin-bottom: 3px; line-height: 1.4; }
  .sentence-en { font-size: 10px; color: rgba(255,255,255,.46); font-weight: 300; }

  .concept-list { display: flex; flex-direction: column; gap: 6px; }
  .concept-item { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--charcoal); line-height: 1.4; }
  .concept-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--terra-pale); border: 1.5px solid var(--terra-light); flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; }
  .concept-dot::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--terracotta); }

  .vocab-strip { display: flex; flex-wrap: wrap; gap: 5px; }
  .vocab-pill { background: var(--white); border: 1px solid rgba(61,74,46,.15); color: var(--olive); font-family: var(--font-mono); font-size: 10px; padding: 3px 9px; border-radius: 20px; font-weight: 500; }

  .culture-block { display: flex; gap: 9px; align-items: flex-start; padding-top: .75rem; border-top: 1px solid rgba(61,74,46,.09); margin-top: auto; }
  .culture-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--terracotta); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
  .culture-icon svg { width: 13px; height: 13px; fill: var(--white); }
  .culture-text { font-size: 10px; color: var(--muted); line-height: 1.5; font-weight: 300; }
  .culture-text strong { color: var(--charcoal); font-weight: 500; }

  /* Step nav footer */
  .step-nav { display: flex; align-items: center; justify-content: space-between; padding-top: .75rem; border-top: 1px solid rgba(61,74,46,.09); margin-top: auto; }
  .nav-btn { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; background: none; border: 1px solid rgba(61,74,46,.2); color: var(--olive-mid); padding: 5px 13px; border-radius: 2px; cursor: pointer; transition: background .15s, color .15s; }
  .nav-btn:hover { background: var(--olive); color: var(--white); border-color: var(--olive); }
  .nav-btn:disabled { opacity: .25; pointer-events: none; }
  .nav-counter { font-family: var(--font-mono); font-size: 9px; color: var(--muted); letter-spacing: .1em; }

  @keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
  .panel-left  { animation: fadeUp .4s ease both; }
  .panel-right { animation: fadeUp .4s ease .1s both; }
  @keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  .step-panel.active { animation: stepIn .25s ease both; }

  /* Std-view content wrapper */
  .std-view { display: flex; flex-direction: column; gap: 1.1rem; flex: 1; }

  /* Signup screen */
  .signup-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 1.25rem; padding: 1.5rem 1rem; text-align: center; }
  .signup-label { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(18px,2.2vw,22px); color: var(--charcoal); line-height: 1.3; }
  .signup-sub { font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
  .signup-row { display: flex; gap: 8px; width: 100%; max-width: 340px; }
  .signup-input { flex: 1; font-family: var(--font-body); font-size: 12px; padding: 7px 12px; border: 1px solid rgba(61,74,46,.3); border-radius: 2px; background: var(--white); color: var(--charcoal); outline: none; }
  .signup-input:focus { border-color: var(--olive); }
  .signup-thanks { display: none; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--olive-mid); }
