/*
 * PHONLAB -- Landing Page CSS v2
 * public/assets/css/landing2.css
 *
 * Mobile-first. Standalone -- no @import from app CSS.
 * Uses --lp-* custom properties only.
 * Font: DM Sans (display) + DM Mono (IPA/code)
 */

/* =====================================================================
   TOKENS
   ===================================================================== */
:root {
  /* Palette */
  --lp-bg:          #090b14;
  --lp-surface:     #0f1220;
  --lp-card:        #131625;
  --lp-card-border: rgba(255,255,255,0.11);
  --lp-card-hover:  rgba(255,255,255,0.04);
  --lp-header-bg:   rgba(9,11,20,0.96);
  --lp-rose:        #f43f5e;

  /* Text */
  --lp-text:        rgba(241,245,249,0.97);
  --lp-muted:       rgba(186,200,218,0.90);
  --lp-dim:         rgba(148,163,184,0.78);

  /* Accent */
  --lp-accent:      #6366f1;
  --lp-accent-dim:  rgba(99,102,241,0.18);
  --lp-accent-glow: rgba(99,102,241,0.25);
  --lp-violet:      #8b5cf6;
  --lp-green:       #10b981;
  --lp-green-dim:   rgba(16,185,129,0.14);
  --lp-amber:       #f59e0b;
  --lp-amber-dim:   rgba(245,158,11,0.14);
  --lp-red:         #ef4444;
  --lp-red-dim:     rgba(239,68,68,0.14);

  /* Layout */
  --lp-header-h:    58px;
  --lp-max-w:       900px;
  --lp-pad:         20px;
  --lp-r:           14px;
  --lp-r-sm:        9px;
}

/* =====================================================================
   RESET
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--lp-bg);
  color: var(--lp-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* Skip link */
.lp-skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--lp-accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  z-index: 999;
  transition: top 0.2s;
}
.lp-skip:focus { top: 8px; }

/* =====================================================================
   HEADER
   ===================================================================== */
#lp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--lp-header-h);
  background: var(--lp-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
#lp-header.scrolled {
  border-bottom-color: var(--lp-card-border);
}

.lp-header-inner {
  max-width: var(--lp-max-w);
  margin: 0 auto;
  padding: 0 var(--lp-pad);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.lp-logo {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--lp-text);
  flex-shrink: 0;
}
.lp-logo span { color: var(--lp-accent); }

.lp-nav {
  display: none; /* hidden on mobile, shown >= 640px */
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.lp-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-text);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.lp-nav a:hover {
  color: var(--lp-text);
  background: var(--lp-card-hover);
}

/* Hamburger */
.lp-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-left: auto;
  border-radius: 8px;
  transition: background 0.15s;
}
.lp-hamburger:hover { background: var(--lp-card-hover); }
.lp-hamburger span {
  display: block;
  height: 2px;
  background: var(--lp-text);
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}
.lp-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-hamburger.is-open span:nth-child(2) { opacity: 0; }
.lp-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.lp-mobile-nav {
  position: fixed;
  top: var(--lp-header-h);
  left: 0; right: 0;
  background: var(--lp-surface);
  border-bottom: 1px solid var(--lp-card-border);
  z-index: 199;
  display: flex;
  flex-direction: column;
  padding: 12px var(--lp-pad) 20px;
  gap: 2px;
  transform: translateY(-110%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.lp-mobile-nav.is-open {
  transform: translateY(0);
  pointer-events: auto;
}
.lp-mobile-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--lp-text);
  padding: 11px 12px;
  border-radius: 9px;
  transition: color 0.15s, background 0.15s;
}
.lp-mobile-nav a:hover {
  color: var(--lp-text);
  background: var(--lp-card-hover);
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: var(--lp-r-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.lp-btn:active { transform: scale(0.97); }

.lp-btn--primary {
  background: var(--lp-accent);
  color: #fff;
}
.lp-btn--primary:hover {
  background: #5254cc;
  box-shadow: 0 0 0 4px var(--lp-accent-glow);
}

.lp-btn--ghost {
  background: transparent;
  color: var(--lp-text);
  border: 1px solid rgba(255,255,255,0.22);
}
.lp-btn--ghost:hover {
  color: var(--lp-text);
  background: var(--lp-card-hover);
  border-color: rgba(255,255,255,0.12);
}

/* =====================================================================
   LAYOUT PRIMITIVES
   ===================================================================== */
.lp-section {
  padding: 72px var(--lp-pad);
  max-width: var(--lp-max-w);
  margin: 0 auto;
}

.lp-section-header {
  margin-bottom: 36px;
  text-align: center;
}
.lp-section-header--center {
  text-align: center;
}

.lp-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-accent);
  margin-bottom: 10px;
}

.lp-heading {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--lp-text);
  margin-bottom: 14px;
}
.lp-heading em {
  font-style: normal;
  background: linear-gradient(130deg, var(--lp-accent), var(--lp-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-lead {
  font-size: 16px;
  color: var(--lp-text);
  line-height: 1.7;
  max-width: 100%;
  opacity: 0.82;
}
.lp-lead--center { margin: 0 auto; }

/* Scroll reveal */
.lp-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.lp-reveal.is-visible { opacity: 1; transform: none; }

.lp-reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.lp-reveal-stagger.is-visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0s; }
.lp-reveal-stagger.is-visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.08s; }
.lp-reveal-stagger.is-visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.16s; }
.lp-reveal-stagger.is-visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.24s; }

/* =====================================================================
   HERO
   ===================================================================== */
#hero {
  padding-top: calc(var(--lp-header-h) + 20px);
  padding-bottom: 64px;
  padding-left: var(--lp-pad);
  padding-right: var(--lp-pad);
  position: relative;
  overflow: hidden;
}

/* Glow orbs */
#hero::before, #hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
#hero::before {
  width: 600px; height: 600px;
  background: rgba(99,102,241,0.10);
  top: -160px; right: -160px;
}
#hero::after {
  width: 400px; height: 400px;
  background: rgba(139,92,246,0.07);
  bottom: -100px; left: -100px;
}

.lp-hero-inner {
  max-width: var(--lp-max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-accent);
  background: var(--lp-accent-dim);
  border: 1px solid rgba(99,102,241,0.28);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.lp-badge-dot {
  width: 6px; height: 6px;
  background: var(--lp-accent);
  border-radius: 50%;
  animation: lp-pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes lp-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.lp-headline {
  font-size: clamp(32px, 8vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--lp-text);
  margin-bottom: 18px;
}
.lp-headline em {
  font-style: normal;
  background: linear-gradient(130deg, var(--lp-accent), var(--lp-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-sub {
  font-size: 16px;
  color: var(--lp-muted);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 32px;
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero mockup */
.lp-mockup {
  background: var(--lp-card);
  border: 1px solid var(--lp-card-border);
  border-radius: var(--lp-r);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55),
              0 0 0 1px rgba(255,255,255,0.04);
  animation: lp-float 7s ease-in-out infinite;
}
@keyframes lp-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.lp-mockup-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--lp-card-border);
}
.lp-mockup-dots { display: flex; gap: 5px; }
.lp-mockup-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: block;
}
.lp-mockup-bar {
  flex: 1;
  height: 7px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
}
.lp-mockup-body { padding: 16px; }

/* =====================================================================
   FEATURES -- EXPANDABLE CARD DECK
   ===================================================================== */
#features {
  background: var(--lp-surface);
  border-top: 1px solid var(--lp-card-border);
  border-bottom: 1px solid var(--lp-card-border);
}
 
.lp-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
 
/* The card is the full visual unit -- dark background, border, radius */
.lp-card {
  background: var(--lp-card);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--lp-r);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(99,102,241,0.08), 0 4px 16px rgba(0,0,0,0.25);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lp-card:hover {
  border-color: rgba(255,255,255,0.20);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.18), 0 8px 28px rgba(0,0,0,0.35);
}
.lp-card:has(.lp-card-trigger[aria-expanded="true"]) {
  border-color: rgba(99,102,241,0.35);
  box-shadow: 0 4px 24px rgba(99,102,241,0.10);
}
 
/* Trigger fills the entire card header -- no partial highlighting */
.lp-card-trigger {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px 20px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  border-radius: var(--lp-r);
}
.lp-card-trigger:hover {
  background: rgba(255,255,255,0.025);
}
.lp-card-trigger[aria-expanded="true"] {
  border-radius: var(--lp-r) var(--lp-r) 0 0;
}

/* Row 1: icon + role label + chevron */
.lp-card-trigger-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* Row 3: Open button on its own row */
.lp-card-trigger-bottom {
  display: flex;
  align-items: center;
  margin-top: 10px;
}
 
.lp-card-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lp-card-icon--student { background: rgba(99,102,241,0.15);  color: var(--lp-accent); }
.lp-card-icon--teacher { background: rgba(16,185,129,0.15);  color: var(--lp-green); }
.lp-card-icon--admin   { background: rgba(245,158,11,0.15);   color: var(--lp-amber); }
 
.lp-card-trigger-text { min-width: 0; flex: 1; }

.lp-card-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.lp-card-trigger:has(.lp-card-icon--student) .lp-card-role { color: var(--lp-accent); }
.lp-card-trigger:has(.lp-card-icon--teacher) .lp-card-role { color: var(--lp-green); }
.lp-card-trigger:has(.lp-card-icon--admin)   .lp-card-role { color: var(--lp-amber); }

.lp-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--lp-text);
  line-height: 1.3;
  padding: 2px 0 0;
}

/* Launch button -- sits in row 2 alongside title */
.lp-card-launch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.28);
  border-radius: 100px;
  color: var(--lp-accent);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.lp-card-trigger:hover .lp-card-launch,
.lp-card-trigger[aria-expanded="true"] .lp-card-launch {
  background: rgba(99,102,241,0.22);
  border-color: rgba(99,102,241,0.45);
}

.lp-card-chevron {
  flex-shrink: 0;
  color: var(--lp-dim);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), color 0.2s;
}
.lp-card-trigger[aria-expanded="true"] .lp-card-chevron {
  transform: rotate(180deg);
  color: var(--lp-accent);
}
 
/* Card body -- smooth expand with separator line */
.lp-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1);
}
.lp-card-body:not([hidden]) {
  max-height: 700px;
}
/* Keep the element in flow for the height animation */
.lp-card-body[hidden] { display: block !important; }
 
.lp-card-desc {
  font-size: 14px;
  color: var(--lp-muted);
  line-height: 1.75;
  margin-bottom: 18px;
  padding: 18px 22px 0;
  border-top: 1px solid var(--lp-card-border);
}
 
.lp-feat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 22px 22px;
}
.lp-feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--lp-muted);
  line-height: 1.5;
}
.lp-feat-icon {
  width: 15px; height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--lp-green);
}
/* =====================================================================
   HOW IT WORKS -- card-deck style
   ===================================================================== */
.lp-step-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
 
.lp-step-card {
  background: var(--lp-card);
  border: 1px solid var(--lp-card-border);
  border-radius: var(--lp-r);
  padding: 24px 22px 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lp-step-card:hover {
  border-color: rgba(99,102,241,0.22);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
 
.lp-step-card-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--lp-accent-dim);
  border: 1px solid rgba(99,102,241,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--lp-accent);
  margin-bottom: 14px;
}
 
.lp-step-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 8px;
}
 
.lp-step-card-body {
  font-size: 14px;
  color: var(--lp-muted);
  line-height: 1.7;
}

/* =====================================================================
   TRY IT -- card-deck style expandable demo cards
   ===================================================================== */
#try { background: var(--lp-surface); border-top: 1px solid var(--lp-card-border); border-bottom: 1px solid var(--lp-card-border); }
 
/* Grid of three cards -- stacked on mobile, row on wider screens */
.lp-demo-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}
 
/* Demo card preview pill shown at rest in the trigger */
.lp-demo-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-right: 8px;
  max-width: 140px;
  overflow: hidden;
}
.lp-demo-preview-word {
  font-size: 16px;
  font-weight: 800;
  color: var(--lp-text);
  letter-spacing: -0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-demo-preview-cefr {
  font-size: 10px;
  font-weight: 700;
  color: var(--lp-accent);
  background: var(--lp-accent-dim);
  border-radius: 100px;
  padding: 1px 7px;
  flex-shrink: 0;
}
.lp-demo-preview-prompt {
  font-size: 12px;
  color: var(--lp-muted);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
 
/* Inner content wrapper inside the expanded card body */
.lp-demo-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

/* Word card */
.lp-word-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-card-border);
  border-radius: var(--lp-r-sm);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.lp-word-display {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--lp-text);
  line-height: 1;
  min-height: 46px;
  word-break: break-all;
}
/* Per-letter colour coding revealed after submit */
.lp-letter-correct {
  color: var(--lp-green);
}
.lp-letter-wrong {
  color: var(--lp-red);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.lp-word-cefr {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-accent);
  background: var(--lp-accent-dim);
  border-radius: 100px;
  padding: 2px 10px;
}
.lp-hear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--lp-accent-dim);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--lp-r-sm);
  color: var(--lp-accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.lp-hear-btn:hover {
  background: rgba(99,102,241,0.25);
  border-color: rgba(99,102,241,0.4);
}
.lp-ipa {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 16px;
  color: var(--lp-violet);
  min-height: 24px;
  transition: opacity 0.25s;
}

/* Answer row -- stacked vertically so submit is always visible */
.lp-answer-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-answer-row .lp-btn {
  width: 100%;
  justify-content: center;
}
.lp-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-card-border);
  border-radius: var(--lp-r-sm);
  color: var(--lp-text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lp-input:focus {
  border-color: var(--lp-accent);
  box-shadow: 0 0 0 3px var(--lp-accent-glow);
}
.lp-input.is-correct {
  border-color: var(--lp-green);
  background: var(--lp-green-dim);
}
.lp-input.is-wrong {
  border-color: var(--lp-red);
  background: var(--lp-red-dim);
}

/* Feedback */
.lp-feedback {
  font-size: 13px;
  padding: 9px 12px;
  border-radius: var(--lp-r-sm);
  background: rgba(255,255,255,0.03);
  color: var(--lp-muted);
  text-align: center;
  min-height: 36px;
}
.lp-feedback.is-correct {
  background: var(--lp-green-dim);
  color: var(--lp-green);
}
.lp-feedback.is-wrong {
  background: var(--lp-red-dim);
  color: var(--lp-red);
}

/* Demo footer (score + next) */
.lp-demo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.lp-score {
  font-size: 13px;
  color: var(--lp-dim);
}
.lp-score-val {
  color: var(--lp-text);
  font-weight: 700;
}

/* Conversation */
.lp-conv-prompt {
  background: var(--lp-surface);
  border-left: 3px solid var(--lp-violet);
  border-radius: 0 var(--lp-r-sm) var(--lp-r-sm) 0;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--lp-text);
  line-height: 1.55;
}
.lp-conv-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-violet);
  margin-bottom: 6px;
}

/* MCQ */
.lp-mcq-q {
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-text);
  line-height: 1.5;
}
.lp-mcq-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-mcq-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-card-border);
  border-radius: var(--lp-r-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--lp-muted);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  text-align: left;
  width: 100%;
}
.lp-mcq-opt:hover {
  border-color: rgba(99,102,241,0.32);
  background: var(--lp-card-hover);
  color: var(--lp-text);
}
.lp-mcq-opt.is-correct  { border-color: var(--lp-green); background: var(--lp-green-dim); color: var(--lp-green); }
.lp-mcq-opt.is-wrong    { border-color: var(--lp-red);   background: var(--lp-red-dim);   color: var(--lp-red); }
.lp-mcq-opt.is-revealed { border-color: var(--lp-green); color: var(--lp-green); }
.lp-key-circle {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* =====================================================================
   CONTACT
   ===================================================================== */
.lp-contact-wrap { max-width: 580px; margin: 0 auto; }

.lp-contact-form {
  background: var(--lp-card);
  border: 1px solid var(--lp-card-border);
  border-radius: var(--lp-r);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.lp-form-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lp-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text);
  margin-bottom: 6px;
}
.lp-required { color: var(--lp-accent); }

.lp-field input,
.lp-field select,
.lp-field textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-card-border);
  border-radius: var(--lp-r-sm);
  color: var(--lp-text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.lp-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238892a4' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.lp-field select option { background: var(--lp-surface); }
.lp-field input:focus,
.lp-field select:focus,
.lp-field textarea:focus {
  border-color: var(--lp-accent);
  box-shadow: 0 0 0 3px var(--lp-accent-glow);
}
.lp-field textarea { resize: vertical; min-height: 96px; }

/* Honeypot */
.lp-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.lp-form-status {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--lp-r-sm);
  text-align: center;
  display: none;
}
.lp-form-status.is-success { display: block; background: var(--lp-green-dim); color: var(--lp-green); }
.lp-form-status.is-error   { display: block; background: var(--lp-red-dim);   color: var(--lp-red); }

.lp-form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-form-note {
  font-size: 12px;
  color: var(--lp-dim);
  text-align: center;
  line-height: 1.5;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
#lp-footer {
  border-top: 1px solid var(--lp-card-border);
  padding: 28px var(--lp-pad);
  background: var(--lp-surface);
}
.lp-footer-inner {
  max-width: var(--lp-max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lp-footer-logo {
  font-size: 15px;
  font-weight: 800;
  color: var(--lp-text);
  letter-spacing: -0.3px;
}
.lp-footer-logo span { color: var(--lp-accent); }
.lp-footer-tag { font-size: 12px; color: var(--lp-dim); margin-top: 2px; }
.lp-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.lp-footer-nav a {
  font-size: 13px;
  color: var(--lp-muted);
  transition: color 0.15s;
}
.lp-footer-nav a:hover { color: var(--lp-text); }
.lp-footer-copy { font-size: 12px; color: var(--lp-dim); }

/* =====================================================================
   RESPONSIVE -- 640px+ (tablet / small desktop)
   ===================================================================== */
@media (min-width: 640px) {
  .lp-nav      { display: flex; }
  .lp-hamburger { display: none; }

  .lp-hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }
  .lp-hero-copy { flex: 1; }
  .lp-hero-visual { flex: 1; }

  .lp-form-row { flex-direction: row; }

  .lp-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .lp-step-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .lp-demo-cards {
    grid-template-columns: repeat(4, 1fr);
  }
  /* Hide preview pills on wider screens -- cards are side by side, no space needed */
  .lp-demo-preview { display: none; }

  .lp-footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (min-width: 640px) and (max-width: 900px) {
  /* Keep hero mockup from getting too wide */
  .lp-hero-visual { max-width: 360px; }
}

/* =====================================================================
   PRONUNCIATION CARD
   ===================================================================== */
.lp-card-icon--pron {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
}

.lp-pron-setup {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lp-pron-setup-msg {
  font-size: 14px;
  color: var(--lp-muted);
  line-height: 1.6;
  text-align: center;
}

/* Audio level meter */
.lp-meter-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-meter-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-dim);
}

.lp-meter {
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}

.lp-meter-bar {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  background: var(--lp-accent);
  transition: width 0.08s linear, background 0.2s;
}

.lp-meter-hint {
  font-size: 12px;
  color: var(--lp-dim);
}

/* Activity pane */
.lp-pron-activity {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Stimulus */
.lp-pron-stimulus {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.lp-pron-word {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--lp-text);
  line-height: 1;
}

.lp-pron-ipa {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 28px;
  color: var(--lp-violet);
  text-align: center;
}

.lp-pron-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-pron-img svg {
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Prompt text */
.lp-pron-prompt {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-muted);
  text-align: center;
  letter-spacing: 0.02em;
}

/* Speak button */
.lp-pron-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lp-speak-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: rgba(244,63,94,0.12);
  border: 2px solid rgba(244,63,94,0.3);
  border-radius: 100px;
  color: #f43f5e;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.lp-speak-btn:hover:not(:disabled) {
  background: rgba(244,63,94,0.2);
  border-color: rgba(244,63,94,0.5);
}

.lp-speak-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Pulsing ring when listening */
.lp-speak-btn.is-listening {
  background: rgba(244,63,94,0.2);
  border-color: #f43f5e;
  box-shadow: 0 0 0 4px rgba(244,63,94,0.15),
              0 0 0 8px rgba(244,63,94,0.07);
  animation: lp-pulse-ring 1.2s ease-in-out infinite;
}

@keyframes lp-pulse-ring {
  0%, 100% { box-shadow: 0 0 0 4px rgba(244,63,94,0.15), 0 0 0 8px rgba(244,63,94,0.07); }
  50%       { box-shadow: 0 0 0 6px rgba(244,63,94,0.25), 0 0 0 12px rgba(244,63,94,0.10); }
}

/* Transcript display */
.lp-pron-transcript {
  font-size: 14px;
  font-style: italic;
  color: var(--lp-muted);
  min-height: 20px;
  text-align: center;
}

.lp-pron-transcript.is-correct { color: var(--lp-green); font-style: normal; font-weight: 600; }
.lp-pron-transcript.is-wrong   { color: var(--lp-red);   font-style: normal; }

/* End screen */
.lp-end-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  text-align: center;
}

.lp-end-icon {
  font-size: 36px;
  color: var(--lp-green);
  line-height: 1;
}

.lp-end-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-muted);
}

.lp-end-score {
  font-size: 36px;
  font-weight: 800;
  color: var(--lp-text);
  letter-spacing: -1px;
  line-height: 1;
}

.lp-end-level {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--lp-accent);
  background: var(--lp-accent-dim);
  border-radius: 100px;
  padding: 3px 14px;
}

.lp-end-label {
  font-size: 14px;
  color: var(--lp-muted);
  line-height: 1.5;
  max-width: 240px;
}

.lp-end-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.lp-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 2.5rem 1rem 1rem;
}
.lp-brand-wordmark {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: 3px;
  color: #ffffff;
  margin: 0;
}
.lp-brand-wordmark span { color: #6ee7b7; }
/* end of landing2.css */