/* ============================================
   Ready Korean — Design System
   --------------------------------------------
   Color  : Korean Red #c73e3a + Deep Navy + Cream
   Type   : DM Sans (UI) + Noto Sans KR (learning)
   Lang   : UI = English only, Korean = learning content
   ============================================ */

.hidden {
  display: none !important;
}

:root {
  /* — Color: Korean Red — */
  --red: #c73e3a;
  --red-dark: #a8322f;
  --red-light: #fde8e7;
  --red-glow: rgba(199, 62, 58, 0.12);

  /* — Color: Deep Navy — */
  --navy: #1a2332;
  --navy-dark: #0f1623;
  --navy-muted: #2e3d52;
  --navy-light: #e8ecf2;
  --navy-glow: rgba(26, 35, 50, 0.08);

  /* — Color: Cream — */
  --cream: #f7f5f0;
  --cream-dark: #efe9df;
  --cream-darker: #e5e0d8;

  /* — Semantic aliases — */
  --bg: var(--cream);
  --bg-warm: var(--cream-dark);
  --surface: #ffffff;
  --text: var(--navy-dark);
  --text-muted: #5c5a56;
  --primary: var(--red);
  --primary-dark: var(--red-dark);
  --primary-light: var(--red-light);
  --border: var(--cream-darker);

  /* — Typography — */
  --font-ui: "DM Sans", system-ui, sans-serif;
  --font-kr: "Noto Sans KR", "Malgun Gothic", sans-serif;

  /* — Layout — */
  --shadow: 0 4px 24px var(--navy-glow);
  --shadow-lg: 0 20px 60px rgba(15, 22, 35, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* UI text — always DM Sans + English */
body,
.ui-text,
h1, h2, h3, h4, h5, h6,
p, a, button, input, label, li, span:not(.learning-kr):not(.learning-kr *) {
  font-family: var(--font-ui);
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-pill,
  .nav-group--secondary .nav-group-links a,
  .menu-toggle,
  .auth-user-btn,
  .auth-dropdown-item {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Korean — learning content only */
.learning-kr {
  font-family: var(--font-kr);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.learning-kr--bold {
  font-weight: 700;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Background */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 90% 10%, var(--red-glow) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 5% 80%, var(--navy-glow) 0%, transparent 55%),
    var(--cream);
  pointer-events: none;
}

.bg-pattern::after {
  content: "가나다라마바사아자차카타파하";
  position: absolute;
  top: 12%;
  right: -2%;
  font-family: var(--font-kr);
  font-size: clamp(6rem, 14vw, 11rem);
  font-weight: 700;
  color: rgba(15, 22, 35, 0.03);
  writing-mode: vertical-rl;
  letter-spacing: 0.15em;
  user-select: none;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.logo-image--footer {
  width: 80px;
  height: 80px;
}

.logo-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--red);
  color: white;
  border-radius: 10px;
  font-size: 1.1rem;
}

/* Unified site navigation */
.nav--enhanced {
  gap: 1.25rem;
}

.nav-links--enhanced {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.75;
  white-space: nowrap;
}

.nav-group-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1.5px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-pill:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
}

.nav-pill--active {
  color: var(--red);
  background: var(--red-light);
  border-color: rgba(199, 62, 58, 0.2);
}

.nav-pill--active .nav-icon {
  color: var(--red);
}

.nav-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-pill:hover .nav-icon {
  color: var(--text);
}

.nav-group--secondary .nav-group-links {
  gap: 0.15rem;
}

.nav-group--secondary .nav-group-links a {
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.nav-group--secondary .nav-group-links a:hover,
.nav-group--secondary .nav-group-links a.nav-link--active {
  color: var(--red);
  background: var(--red-light);
}

.nav-actions--enhanced {
  align-items: center;
  gap: 0.6rem;
}

.nav-actions--enhanced .auth-nav-slot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 2px 12px rgba(199, 62, 58, 0.3);
}

.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 4px 20px rgba(199, 62, 58, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(15, 22, 35, 0.04);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--navy-muted);
  background: var(--surface);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--navy-light);
  color: var(--navy);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.highlight {
  color: var(--red);
  position: relative;
}

.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 8px;
  background: var(--red-glow);
  z-index: -1;
  border-radius: 4px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  background: var(--navy);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.phone-notch {
  width: 100px;
  height: 24px;
  background: var(--navy);
  border-radius: 0 0 16px 16px;
  margin: 0 auto 8px;
  position: relative;
  top: -4px;
}

.phone-screen {
  background: var(--surface);
  border-radius: 28px;
  padding: 1.25rem;
  min-height: 420px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.streak {
  background: var(--red-light);
  color: var(--red-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.75rem;
}

.lesson-card {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.lesson-tag {
  font-size: 0.7rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lesson-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
}

.romanized {
  font-size: 0.9rem;
  opacity: 0.8;
  font-style: italic;
}

.meaning {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 0.75rem;
}

.play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  cursor: pointer;
  display: grid;
  place-items: center;
  margin: 0 auto;
  transition: background 0.2s, transform 0.15s;
}

.play-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.progress-section {
  margin-bottom: 1.25rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.progress-bar {
  height: 8px;
  background: var(--cream-dark);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  width: 60%;
  height: 100%;
  background: var(--navy);
  border-radius: 100px;
}

.quick-lessons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.6rem 0.25rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.quick-icon {
  font-size: 1.1rem;
}

.quick-icon--kr {
  font-weight: 700;
}

/* Floating cards */
.floating-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.card-1 {
  top: 10%;
  left: -10%;
}

.card-2 {
  bottom: 15%;
  right: -8%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  animation-delay: -2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.fc-icon {
  width: 32px;
  height: 32px;
  background: var(--navy-light);
  color: var(--navy);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.fc-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.floating-card strong {
  display: block;
  font-size: 0.85rem;
}

.floating-card span:last-child {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Trust bar */
.trust-bar {
  padding: 2rem 0;
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.trust-bar p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.flags {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.flags span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Highlights */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.btn {
  text-decoration: none;
}

.lessons-cta-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.lessons-cta-link:hover {
  text-decoration: underline;
}

a.lesson-tile {
  text-decoration: none;
  color: inherit;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.feature-icon--kr {
  background: var(--red-light);
  color: var(--red);
  font-size: 1.2rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p,
.feature-lead {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.feature-lead {
  margin-bottom: 1rem;
}

.feature-highlights {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.feature-highlights li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.feature-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red);
  transition: gap 0.2s;
}

.feature-card--link:hover .feature-cta {
  text-decoration: underline;
}

/* Levels */
.levels {
  background: var(--navy);
  color: white;
}

.levels .section-tag {
  color: #f0a8a6;
}

.levels .section-header h2 {
  color: white;
}

.level-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.level-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.level-card.featured {
  background: var(--surface);
  color: var(--text);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.level-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  margin-bottom: 1rem;
}

.level-badge.beginner {
  background: var(--navy-light);
  color: var(--navy);
}

.level-badge.intermediate {
  background: var(--red-light);
  color: var(--red);
}

.level-badge.advanced {
  background: var(--cream-dark);
  color: var(--navy-dark);
}

.level-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.level-korean {
  font-size: 0.95rem;
  opacity: 0.6;
  margin-bottom: 1.25rem;
}

.level-card.featured .level-korean {
  color: var(--text-muted);
}

.level-card ul {
  list-style: none;
  flex: 1;
  margin-bottom: 1.5rem;
}

.level-card li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  padding-left: 1.25rem;
  position: relative;
}

.level-card.featured li {
  color: var(--text-muted);
}

.level-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* Lessons */
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.lesson-tile {
  display: flex;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.lesson-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.lesson-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: var(--cream-dark);
  display: grid;
  place-items: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.lesson-cat {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lesson-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.25rem 0 0.4rem;
}

.lesson-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Culture */
.culture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.culture-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.culture-content > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.culture-list {
  list-style: none;
}

.culture-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.culture-list li:last-child {
  border-bottom: none;
}

.culture-list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.chat-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.chat-bubble {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  max-width: 90%;
}

.chat-bubble.ai {
  background: var(--cream);
  margin-right: auto;
}

.chat-bubble.user {
  background: var(--red);
  color: white;
  margin-left: auto;
  text-align: right;
}

.chat-bubble.success {
  background: var(--navy-light);
  border: 1px solid rgba(26, 35, 50, 0.12);
}

.chat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
  margin-bottom: 0.35rem;
}

.chat-bubble.user .chat-label {
  opacity: 0.75;
}

/* CTA */
.cta-box {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: white;
  border-radius: 24px;
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-deco {
  position: absolute;
  top: -20px;
  right: 5%;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 700;
  opacity: 0.08;
  user-select: none;
}

.cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-box > p {
  opacity: 0.9;
  margin-bottom: 2rem;
  position: relative;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto 1rem;
  position: relative;
}

.cta-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
}

.cta-form .btn-primary {
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.cta-form .btn-primary:hover {
  background: var(--navy-dark);
}

.cta-note {
  font-size: 0.8rem;
  opacity: 0.75;
  position: relative;
}

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 1.5rem;
}

.footer .logo {
  color: white;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 240px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-links h5 {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

/* Mobile nav */
.nav.open .nav-links,
.nav.open .nav-actions {
  display: flex;
}

.nav.open .menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav.open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.nav.open .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .culture-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-cta,
  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .floating-card.card-1 { left: 0; }
  .floating-card.card-2 { right: 0; }

  .feature-grid,
  .level-cards {
    grid-template-columns: 1fr;
  }

  .level-card.featured {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-actions {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0));
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links--enhanced {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .nav-group-label {
    display: block;
    margin-bottom: 0.15rem;
  }

  .nav-group--secondary {
    display: flex;
  }

  .nav-group-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-pill,
  .nav-group--secondary .nav-group-links a {
    border-radius: 8px;
    padding: 0.85rem 0.65rem;
    min-height: 44px;
    border-bottom: 1px solid var(--border);
  }

  .nav-group-links a:last-child,
  .nav-group-links .nav-pill:last-child {
    border-bottom: none;
  }

  .nav-pill--active {
    border-color: transparent;
  }

  .nav-actions {
    gap: 0.75rem;
    padding-top: 1rem;
  }

  .nav-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: relative;
    flex-wrap: wrap;
    height: auto;
    min-height: 72px;
    padding-block: 0.35rem;
  }

  .lesson-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-bar .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1120px, 94vw);
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn-lg {
    width: 100%;
    min-height: 48px;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .stat-divider {
    display: none;
  }

  .phone-mockup {
    width: min(280px, 88vw);
  }

  .floating-card {
    display: none;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .lesson-tile {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .footer {
    padding: 2.5rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0));
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1120px, 96vw);
  }

  .logo-text {
    font-size: 1rem;
  }

  .logo-image {
    width: 56px;
    height: 56px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .btn {
    min-height: 44px;
  }

  .btn-lg {
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .chat-demo {
    padding: 1rem;
  }

  .chat-bubble {
    max-width: 100%;
    font-size: 0.85rem;
  }
}

/* Auth nav */
.auth-nav-slot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-user-menu {
  position: relative;
}

.auth-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem 0.35rem 0.35rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-user-btn:hover {
  border-color: var(--navy-muted);
  box-shadow: 0 2px 8px rgba(15, 22, 35, 0.06);
}

.auth-user-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-user-chevron {
  color: var(--text-muted);
}

.auth-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 200;
}

.auth-dropdown-email {
  padding: 0.5rem 0.65rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.35rem;
  word-break: break-all;
}

.auth-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.auth-dropdown-item:hover {
  background: var(--cream);
}

@media (max-width: 900px) {
  .auth-user-name,
  .auth-user-chevron {
    display: none;
  }

  .auth-user-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0.35rem;
  }

  .auth-dropdown {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: none;
    border: 1px solid var(--border);
  }
}

/* Level samples page */
.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.sample-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.sample-card.featured {
  border-color: var(--red);
  box-shadow: 0 8px 32px var(--red-glow);
}

.sample-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.sample-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.85rem;
}

.sample-points {
  list-style: none;
  flex: 1;
  margin-bottom: 1.25rem;
}

.sample-points li {
  padding: 0.35rem 0 0.35rem 1.1rem;
  position: relative;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.sample-points li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.sample-card .btn {
  width: 100%;
  min-height: 44px;
}

.level-samples-page .section-header h1 {
  font-size: clamp(1.65rem, 5vw, 2.25rem);
}

@media (max-width: 900px) {
  .sample-grid {
    grid-template-columns: 1fr;
  }
}
