/* ============================================================
   CatchLingo — Official Website Styles
   ============================================================ */

/* ─── Variables ─── */
:root {
  --bg: #edf2fa;
  --bg-card: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: rgba(26, 26, 46, 0.08);
  --border-strong: rgba(26, 26, 46, 0.14);

  --accent-red: #FF6B6B;
  --accent-purple: #c084fc;
  --accent-cyan: #2bd2ff;
  --accent-green: #2bff88;
  --accent-blue: #4F86F7;

  --grad-start: #fa8bff;
  --grad-end: #2bd2ff;

  --font-display: 'Nunito', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;

  --shadow-xs: 0 1px 3px rgba(26, 26, 46, 0.04);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 30px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 20px 60px rgba(26, 26, 46, 0.14);
  --shadow-xl: 0 40px 100px rgba(26, 26, 46, 0.18);

  --max-w: 1200px;
  --section-py: clamp(80px, 10vw, 140px);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
::selection {
  background: rgba(79, 134, 247, 0.2);
  color: var(--text-primary);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(26, 26, 46, 0.15);
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(26, 26, 46, 0.25); }

/* ─── Utilities ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.gradient-text {
  background: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 134, 247, 0.08);
  color: var(--accent-blue);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid rgba(79, 134, 247, 0.15);
}
.section-badge-light {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.section-sub {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 20px auto 0;
  line-height: 1.75;
}

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  border-radius: 100px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.97); }

.btn-dark {
  background: var(--text-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(26, 26, 46, 0.25);
}
.btn-dark:hover {
  box-shadow: 0 8px 32px rgba(26, 26, 46, 0.35);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(26, 26, 46, 0.05);
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(26, 26, 46, 0.08);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-sm { font-size: 13px; padding: 9px 20px; }
.btn-lg { font-size: 15px; padding: 15px 30px; }

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(237, 242, 250, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-xs);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px clamp(20px, 5vw, 60px);
  transition: padding 0.3s ease;
}
.nav.scrolled .nav-inner { padding-top: 12px; padding-bottom: 12px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  flex-shrink: 0;
}
.nav-logo-mark { display: flex; align-items: center; }
.nav-logo-mark img { width: 30px; height: 30px; border-radius: 8px; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(26, 26, 46, 0.04);
}
.nav-active-link {
  color: var(--text-primary) !important;
  background: rgba(79, 134, 247, 0.08) !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  flex-shrink: 0;
}
.nav-secondary {
  font-size: 13px !important;
}
.nav-cta { margin-left: 4px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.3s;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  padding-top: 90px;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.blob-1 {
  width: 700px; height: 700px;
  top: -200px; right: -200px;
  background: radial-gradient(circle, rgba(250, 139, 255, 0.28) 0%, transparent 70%);
  animation: blobPulse 8s ease-in-out infinite;
}
.blob-2 {
  width: 500px; height: 500px;
  bottom: 100px; left: -150px;
  background: radial-gradient(circle, rgba(43, 210, 255, 0.22) 0%, transparent 70%);
  animation: blobPulse 10s ease-in-out infinite reverse;
}
.blob-3 {
  width: 400px; height: 400px;
  top: 50%; left: 40%;
  background: radial-gradient(circle, rgba(43, 255, 136, 0.13) 0%, transparent 70%);
  animation: blobPulse 12s ease-in-out infinite 2s;
}
@keyframes blobPulse {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33% { transform: scale(1.06) translate(18px, -12px); }
  66% { transform: scale(0.96) translate(-8px, 16px); }
}

.dot-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 80px;
  flex: 1;
}

/* Hero text */
.hero-text { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 16px 7px 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  animation: fadeInDown 0.8s var(--ease-out-expo) both;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(43, 255, 136, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(43, 255, 136, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(43, 255, 136, 0.08); }
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 22px;
  animation: fadeInUp 0.9s var(--ease-out-expo) 0.08s both;
}

.hero-sub {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 32px;
  animation: fadeInUp 0.9s var(--ease-out-expo) 0.16s both;
}
.hero-sub strong { color: var(--text-primary); font-weight: 600; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fadeInUp 0.9s var(--ease-out-expo) 0.24s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: fadeInUp 0.9s var(--ease-out-expo) 0.32s both;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Trust signals */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  animation: fadeInUp 0.9s var(--ease-out-expo) 0.4s both;
}
.trust-stars { display: flex; gap: 2px; }
.trust-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 1s var(--ease-out-expo) 0.16s both;
}

/* Phone mockup */
.phone-wrap { position: relative; z-index: 2; }

.phone-frame {
  width: 268px;
  height: 576px;
  background: #0f0f1e;
  border-radius: 50px;
  padding: 13px;
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.32),
    0 30px 60px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1.5px rgba(255,255,255,0.1),
    inset 0 0 0 3px rgba(0,0,0,0.35);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #0f0f1e;
  border-radius: 14px;
  z-index: 10;
}
.phone-notch::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #1a1a2e;
  box-shadow: -16px 0 0 3.5px #1a1a2e;
}

.phone-screen {
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-side-btn { position: absolute; background: #1a1a2e; border-radius: 3px; }
.phone-vol-up { left: -3px; top: 110px; width: 3px; height: 32px; }
.phone-vol-dn { left: -3px; top: 152px; width: 3px; height: 32px; }
.phone-power { right: -3px; top: 130px; width: 3px; height: 52px; }

/* App UI */
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 44px 16px 10px;
  flex-shrink: 0;
}
.app-topbar-date { font-family: var(--font-display); }
.app-topbar-d {
  font-size: 20px; font-weight: 900;
  color: var(--text-primary);
  line-height: 1; letter-spacing: -0.03em;
}
.app-topbar-c {
  font-size: 10px; font-weight: 700;
  color: var(--text-muted); margin-top: 3px;
}
.app-topbar-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #e2e8f0;
  overflow: hidden;
}

.app-dotgrid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(26,26,46,0.07) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

.app-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 6px 16px 12px;
  overflow: hidden;
}
.app-card {
  background: white;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,0.07);
}
.app-card-glow {
  position: absolute; inset: 0;
  opacity: 0.1; border-radius: inherit;
}
.glow-red { background: var(--accent-red); }
.glow-purple { background: var(--accent-purple); }
.glow-cyan { background: var(--accent-cyan); }
.glow-green { background: var(--accent-green); }

.app-card-emoji {
  font-size: 32px; line-height: 1;
  margin-bottom: 5px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.app-card-word {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.app-capsule-nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: white;
  margin: 0 14px 14px;
  border-radius: 26px;
  padding: 8px 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.09);
}
.app-nav-item {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-nav-camera { display: flex; align-items: center; justify-content: center; }
.app-nav-cam-btn {
  width: 48px; height: 48px;
  background: var(--text-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(26,26,46,0.35);
}

/* Floating sticker cards */
.fl-sticker {
  position: absolute;
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  z-index: 3;
  white-space: nowrap;
}

.fl-emoji { font-size: 24px; line-height: 1; }
.fl-info { display: flex; flex-direction: column; }
.fl-word {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 800;
  color: var(--text-primary); line-height: 1.2;
}
.fl-trans {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted); margin-top: 2px;
}
.fl-sound { color: var(--accent-blue); opacity: 0.6; flex-shrink: 0; }

.fl-s1 { top: 8%; right: -10%; transform: rotate(3deg); animation: float1 4s ease-in-out infinite; }
.fl-s2 { bottom: 28%; left: -16%; transform: rotate(-2.5deg); animation: float2 5s ease-in-out infinite 1.2s; }
.fl-s3 { top: 38%; right: -18%; transform: rotate(1.5deg); animation: float3 4.5s ease-in-out infinite 0.7s; }
.fl-s4 { bottom: 8%; right: 0; transform: rotate(-1deg); animation: float1 5.5s ease-in-out infinite 1.8s; }

@keyframes float1 {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-12px); }
}
@keyframes float2 {
  0%, 100% { transform: rotate(-2.5deg) translateY(0); }
  50% { transform: rotate(-2.5deg) translateY(-10px); }
}
@keyframes float3 {
  0%, 100% { transform: rotate(1.5deg) translateY(0); }
  50% { transform: rotate(1.5deg) translateY(-11px); }
}

/* ─── SOCIAL PROOF BAR ─── */
.social-proof-bar {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.proof-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.proof-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
}
.proof-num {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
}
.proof-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.proof-sep {
  width: 1px; height: 32px;
  background: var(--border);
}

/* ─── MARQUEE ─── */
.marquee-strip {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  margin-top: auto;
}
.marquee-strip::before,
.marquee-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px; z-index: 2;
}
.marquee-strip::before { left: 0; background: linear-gradient(to right, white, transparent); }
.marquee-strip::after { right: 0; background: linear-gradient(to left, white, transparent); }

.marquee-track {
  display: flex; gap: 0;
  width: max-content;
  animation: marquee 35s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 800;
  color: var(--text-secondary);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.mi-flag { font-size: 16px; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── HOW IT WORKS ─── */
.how-section { background: white; }

.steps-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  justify-content: center;
}

.step-card {
  flex: 1;
  max-width: 300px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 40px);
  position: relative;
  border: 1px solid rgba(26,26,46,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.step-num {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 900;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.step-icon-wrap {
  width: 68px; height: 68px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.step-icon-blue { background: linear-gradient(135deg, #4F86F7, #2bd2ff); box-shadow: 0 10px 28px rgba(79,134,247,0.3); }
.step-icon-purple { background: linear-gradient(135deg, #a78bfa, #fa8bff); box-shadow: 0 10px 28px rgba(167,139,250,0.3); }
.step-icon-green { background: linear-gradient(135deg, #2bff88, #2bd2ff); box-shadow: 0 10px 28px rgba(43,255,136,0.25); }

.step-card h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 18px;
}

.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  color: var(--text-secondary);
}

.step-arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px; flex-shrink: 0; align-self: center;
}

/* ─── FEATURES ─── */
.features-section { background: var(--bg); }

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

.feat-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid rgba(26,26,46,0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feat-card-inner {
  padding: clamp(22px, 2.8vw, 32px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feat-span-2 { grid-column: span 2; }

.feat-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; flex-shrink: 0;
}
.feat-icon-blue { background: linear-gradient(135deg, #4F86F7, #2bd2ff); box-shadow: 0 8px 22px rgba(79,134,247,0.28); }
.feat-icon-purple { background: linear-gradient(135deg, #a78bfa, #fa8bff); box-shadow: 0 8px 22px rgba(167,139,250,0.28); }
.feat-icon-cyan { background: linear-gradient(135deg, #06b6d4, #2bd2ff); box-shadow: 0 8px 22px rgba(43,210,255,0.28); }
.feat-icon-green { background: linear-gradient(135deg, #2bff88, #06b6d4); box-shadow: 0 8px 22px rgba(43,255,136,0.22); }
.feat-icon-red { background: linear-gradient(135deg, #FF6B6B, #fa8bff); box-shadow: 0 8px 22px rgba(255,107,107,0.28); }

.feat-card h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.feat-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

/* AI scan preview */
.feat-preview {
  margin-top: 24px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.feat-preview-ai {
  height: 160px;
  background: #0f0f1e;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ai-scan-line {
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--accent-cyan), transparent 95%);
  box-shadow: 0 0 12px var(--accent-cyan), 0 0 30px rgba(43,210,255,0.3);
  animation: scanLine 3s ease-in-out infinite;
}
@keyframes scanLine {
  0% { top: 0; opacity: 0.9; }
  50% { top: 100%; opacity: 0.3; }
  50.1% { top: 0; opacity: 0; }
  60% { opacity: 0.9; }
  100% { top: 100%; opacity: 0.3; }
}
.ai-target {
  position: relative;
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
}
.ai-corner {
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--accent-cyan); border-style: solid;
  transition: border-color 0.3s;
}
.ai-c1 { top: 0; left: 0; border-width: 2px 0 0 2px; border-radius: 3px 0 0 0; }
.ai-c2 { top: 0; right: 0; border-width: 2px 2px 0 0; border-radius: 0 3px 0 0; }
.ai-c3 { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-radius: 0 0 0 3px; }
.ai-c4 { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-radius: 0 0 3px 0; }
.ai-emoji {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(43,210,255,0.3));
}
.ai-pulse {
  position: absolute; inset: -8px;
  border: 1.5px solid var(--accent-cyan);
  border-radius: 4px;
  opacity: 0;
  animation: aiPulse 3s ease-out infinite;
}
@keyframes aiPulse {
  0% { opacity: 0.6; inset: -8px; }
  100% { opacity: 0; inset: -20px; }
}
.ai-label {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent-cyan);
  color: #0f0f1e;
  font-family: var(--font-display);
  font-size: 10px; font-weight: 800;
  padding: 4px 12px; border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(43,210,255,0.4);
  animation: aiLabelIn 3s ease-in-out infinite;
}
@keyframes aiLabelIn {
  0%, 45% { opacity: 0; transform: translateX(-50%) translateY(6px); }
  55%, 90% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-4px); }
}
/* Subtle grid overlay */
.feat-preview-ai::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(43,210,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,210,255,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* Vocab preview */
.feat-preview-vocab {
  margin-top: 20px;
  background: var(--bg);
  border-radius: 14px;
  padding: 14px 18px;
}
.vocab-main {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.vocab-sep { color: var(--text-muted); font-weight: 400; }
.vocab-pron {
  font-size: 13px; font-weight: 600;
  color: var(--accent-blue);
}
.vocab-related { display: flex; flex-wrap: wrap; gap: 6px; }
.vocab-chip {
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 11px; font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-secondary);
}

/* ─── LANGUAGES ─── */
.languages-section { background: white; position: relative; overflow: hidden; }

.languages-bg { position: absolute; inset: 0; pointer-events: none; }
.lang-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
}
.lang-blob-1 {
  width: 600px; height: 600px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(79,134,247,0.35) 0%, transparent 70%);
}
.lang-blob-2 {
  width: 500px; height: 500px;
  bottom: -150px; right: -150px;
  background: radial-gradient(circle, rgba(192,132,252,0.35) 0%, transparent 70%);
}

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

.lang-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 22px 14px;
  text-align: center;
  border: 1.5px solid transparent;
  transition: all 0.25s ease;
  cursor: default;
}
.lang-card:hover {
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.lang-flag { font-size: 30px; margin-bottom: 8px; }
.lang-name {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.lang-native {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── SHOWCASE ─── */
.showcase-section { background: var(--bg); }

.showcase-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.showcase-text .section-badge { margin-bottom: 20px; }
.showcase-text .section-title { text-align: left; }
.showcase-p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 20px 0 32px;
  max-width: 440px;
}

.showcase-list { display: flex; flex-direction: column; gap: 16px; }
.showcase-list li {
  display: flex; align-items: flex-start; gap: 14px;
}
.sl-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}
.showcase-list li strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800; font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.showcase-list li span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Sticker board */
.sticker-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.sb-sticker {
  background: white;
  border-radius: 18px;
  padding: 14px 8px;
  display: flex; flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  transform: rotate(var(--rot, 0deg));
}
.sb-sticker:nth-child(4n+1) { --rot: -2deg; }
.sb-sticker:nth-child(4n+2) { --rot: 1.5deg; }
.sb-sticker:nth-child(4n+3) { --rot: -1deg; }
.sb-sticker:nth-child(4n)   { --rot: 2deg; }
.sb-sticker:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.05);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}
.sb-emoji { font-size: 30px; line-height: 1; margin-bottom: 5px; }
.sb-label {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 800;
  color: var(--text-primary);
  text-align: center;
}
.sb-trans {
  font-size: 10px; color: var(--text-muted);
  font-weight: 600; margin-top: 2px;
  text-align: center;
}

/* Rarity dot */
.sb-rarity {
  position: absolute;
  top: 7px; right: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.sb-common .sb-rarity { background: var(--text-muted); }
.sb-medium .sb-rarity { background: var(--accent-blue); box-shadow: 0 0 6px rgba(79,134,247,0.5); }
.sb-rare   .sb-rarity { background: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,0.5); }

/* Medium cards */
.sb-medium { border-color: rgba(79,134,247,0.2); }
.sb-medium:hover { border-color: rgba(79,134,247,0.4); box-shadow: var(--shadow-lg), 0 0 16px rgba(79,134,247,0.1); }

/* Rare cards */
.sb-rare { border-color: rgba(245,158,11,0.25); box-shadow: var(--shadow-sm), 0 0 10px rgba(245,158,11,0.06); }
.sb-rare:hover { border-color: rgba(245,158,11,0.5); box-shadow: var(--shadow-lg), 0 0 24px rgba(245,158,11,0.15); }

/* Legend */
.sb-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.sb-legend-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.sb-ld-common { background: var(--text-muted); }
.sb-ld-medium { background: var(--accent-blue); box-shadow: 0 0 4px rgba(79,134,247,0.4); }
.sb-ld-rare   { background: #f59e0b; box-shadow: 0 0 4px rgba(245,158,11,0.4); }

/* ─── TESTIMONIALS ─── */
.testimonials-section { background: white; }

.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid rgba(26,26,46,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tm-stars { display: flex; gap: 2px; margin-bottom: 16px; }
.tm-quote {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 20px;
  font-style: italic;
}
.tm-author {
  display: flex; align-items: center; gap: 12px;
}

.tm-name {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 800;
  color: var(--text-primary);
}
.tm-detail {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Early-access cards (replaces fabricated testimonials) */
.early-emoji {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 14px;
}
.early-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.early-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}
.early-cta {
  text-align: center;
  margin-top: 36px;
}

/* ─── FAQ ─── */
.faq-section { background: var(--bg); }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  text-align: left;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent-blue); }

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-out-expo);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo), padding 0.4s var(--ease-out-expo);
  padding: 0 0 0 0;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 0 22px 0;
}
.faq-a p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.faq-a a {
  color: var(--accent-blue);
  font-weight: 600;
  transition: opacity 0.2s;
}
.faq-a a:hover { opacity: 0.75; }

/* ─── DOWNLOAD ─── */
.download-section {
  background: var(--bg);
  position: relative; overflow: hidden;
}

.download-bg { position: absolute; inset: 0; pointer-events: none; }
.dl-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35;
}
.dl-blob-1 {
  width: 500px; height: 500px;
  top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(250,139,255,0.45) 0%, transparent 70%);
}
.dl-blob-2 {
  width: 400px; height: 400px;
  bottom: -100px; left: -100px;
  background: radial-gradient(circle, rgba(43,210,255,0.35) 0%, transparent 70%);
}

.download-card {
  background: var(--text-primary);
  border-radius: var(--radius-xl);
  padding: clamp(44px, 5.5vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
  position: relative; overflow: hidden;
}
.download-card::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(250,139,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.download-card .section-badge {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.15);
}

.download-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: white;
  margin: 14px 0 18px;
}
.download-sub {
  font-size: clamp(14px, 1.4vw, 16px);
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 32px;
}

.download-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px;
}

.store-btn {
  display: flex; align-items: center; gap: 12px;
  background: white; color: var(--text-primary);
  border-radius: 14px; padding: 12px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.28);
}
.store-text { display: flex; flex-direction: column; }
.store-small { font-size: 10px; color: var(--text-secondary); font-weight: 500; }
.store-large {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 900;
  color: var(--text-primary);
}

.download-note {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
}

.download-visual { position: relative; }
.dl-stickers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px; width: 180px;
}
.dl-sticker {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 12px;
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  font-size: 24px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, background 0.2s;
}
.dl-sticker:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,0.12);
}
.dl-sticker span {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 800;
  color: rgba(255,255,255,0.5);
}
.dl-st1 { animation: float1 5s ease-in-out infinite; }
.dl-st2 { animation: float2 6s ease-in-out infinite 0.4s; }
.dl-st3 { animation: float3 5.5s ease-in-out infinite 0.9s; }
.dl-st4 { animation: float1 4.5s ease-in-out infinite 1.3s; }
.dl-st5 { grid-column: span 2; animation: float2 5s ease-in-out infinite 0.7s; }

/* ─── FOOTER ─── */
.footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 60px;
  align-items: start;
  padding-bottom: 40px;
}

.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-tagline {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-social { display: flex; gap: 8px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.social-link:hover {
  background: var(--text-primary);
  color: white;
  transform: translateY(-2px);
}

.footer-links { display: flex; gap: 56px; }
.footer-col {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── PRICING PAGE ─── */
.pricing-page { background: var(--bg); }

.pricing-hero {
  padding: 120px 0 0;
  position: relative;
}

.pricing-hero .section-header { margin-bottom: 40px; }

/* Pricing toggle */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.toggle-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.toggle-label.active { color: var(--text-primary); }

.save-badge {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

.pricing-toggle {
  width: 52px; height: 28px;
  background: var(--text-primary);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-thumb {
  width: 22px; height: 22px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 3px; left: 3px;
  transition: transform 0.3s var(--ease-spring);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.pricing-toggle.yearly .toggle-thumb {
  transform: translateX(24px);
}

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.price-card {
  background: white;
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 32px);
  border: 1.5px solid rgba(26,26,46,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.price-card-popular {
  border-color: rgba(79, 134, 247, 0.3);
  box-shadow: 0 8px 40px rgba(79, 134, 247, 0.12);
}
.price-card-popular:hover {
  box-shadow: 0 12px 48px rgba(79, 134, 247, 0.18);
}

.price-card-best {
  border-color: rgba(43, 255, 136, 0.3);
  box-shadow: 0 8px 40px rgba(43, 255, 136, 0.1);
}
.price-card-best:hover {
  box-shadow: 0 12px 48px rgba(43, 255, 136, 0.16);
}

.popular-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent-blue);
  color: white;
  font-family: var(--font-display);
  font-size: 10px; font-weight: 800;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.popular-badge-blue {
  background: linear-gradient(135deg, #2bff88, #2bd2ff);
  color: var(--text-primary);
}

.price-card-header { margin-bottom: 16px; }
.price-name {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 900;
  color: var(--text-secondary);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

/* Main price = daily average (now the hero number) */
.price-daily {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pd-value {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}
.pd-unit {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-muted);
}

/* Yearly best-value gradient */
.price-daily-best .pd-value {
  background: linear-gradient(135deg, #2bff88, #2bd2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 48px;
}
.price-daily-best .pd-unit {
  font-size: 18px;
}

/* Subscription price (secondary, below daily) */
.price-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 600;
  padding-bottom: 2px;
}

.price-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.price-btn {
  width: 100%;
  margin-bottom: 0;
}
.price-btn-popular {
  background: var(--accent-blue);
  box-shadow: 0 4px 20px rgba(79,134,247,0.35);
}
.price-btn-popular:hover {
  background: #3b78e0;
}

/* Spacer to equalize card heights */
.price-spacer {
  flex: 1;
}

/* Remove old feature lists */
.price-features { display: none; }
.pf-included { display: none; }

/* Monthly/Yearly billing toggle — show one price block per card */
.price-yearly { display: none; }
.pricing-grid[data-billing="yearly"] .price-monthly { display: none; }
.pricing-grid[data-billing="yearly"] .price-yearly { display: block; }

/* Credit allowance line (per-tier differentiator) */
.price-credits {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

/* Guarantee banner (merged free trial CTA) */
.guarantee {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 760px;
  margin: 40px auto 80px;
  background: white;
  border-radius: var(--radius-md);
  padding: 24px 32px;
  border: 1px solid rgba(43,255,136,0.15);
}
.guarantee-icon { flex-shrink: 0; }
.guarantee-body { flex: 1; min-width: 0; }
.guarantee h3 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.guarantee p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.guarantee-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ─── COMPARISON TABLE ─── */
.comparison-section { background: white; }

.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.comparison-table th {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 800;
  color: var(--text-primary);
  background: var(--bg);
  white-space: nowrap;
}
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.comparison-table tbody tr:hover {
  background: rgba(79,134,247,0.03);
}
.ct-popular {
  background: rgba(79,134,247,0.06) !important;
  position: relative;
}
.ct-check { color: var(--accent-green); font-weight: 700; font-size: 15px; }
.ct-dash { color: var(--text-muted); }

/* Daily average row in comparison table */
.ct-daily-row {
  background: var(--bg);
}
.ct-daily-row td {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--text-primary);
}
.ct-daily-best {
  color: transparent !important;
  background: linear-gradient(135deg, #2bff88, #2bd2ff);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 16px !important;
  font-weight: 900 !important;
}

/* ─── LEGAL PAGES (privacy / terms) ─── */
.legal-hero {
  padding: 120px 0 28px;
  background: linear-gradient(180deg, #edf2fa 0%, #ffffff 100%);
  text-align: center;
}
.legal-hero .section-badge { margin-bottom: 16px; }
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.legal-updated { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 88px;
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 36px 0 12px;
  scroll-margin-top: 90px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--accent-blue); text-decoration: underline; }
.legal-body strong { color: var(--text-primary); }
.legal-toc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 8px;
}
.legal-toc strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; }
.legal-toc li { margin-bottom: 6px; break-inside: avoid; }
.legal-toc a { color: var(--text-secondary); text-decoration: none; }
.legal-toc a:hover { color: var(--accent-blue); }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }

/* ─── Keyframes ─── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .lang-grid { grid-template-columns: repeat(4, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-span-2 { grid-column: span 2; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 16px;
  }
  .hero-text { order: 1; }
  .hero-visual { order: 2; display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-sub { margin: 0 auto 32px; }

  .proof-items { gap: 24px; }
  .proof-sep { display: none; }

  .steps-row {
    flex-direction: column;
    align-items: center; gap: 20px;
  }
  .step-arrow { transform: rotate(90deg); padding: 0; }
  .step-card { max-width: 100%; width: 100%; }

  .showcase-layout { grid-template-columns: 1fr; gap: 48px; }
  .showcase-text .section-title { text-align: center; }
  .showcase-text { text-align: center; }
  .showcase-list { text-align: left; max-width: 380px; margin: 0 auto; }
  .sticker-board { display: none; }
  .sb-legend { display: none; }

  .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

  .download-card {
    grid-template-columns: 1fr;
    text-align: center; gap: 36px;
  }
  .download-sub { margin: 0 auto 32px; }
  .download-actions { justify-content: center; }
  .download-visual { display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-links { flex-wrap: wrap; gap: 36px; }
  .footer-bottom-inner { flex-direction: column; gap: 4px; text-align: center; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .price-card-popular { transform: none; }
  .price-card-popular:hover { transform: translateY(-4px); }
}

@media (max-width: 720px) {
  :root { --section-py: 60px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(237, 242, 250, 0.98);
    backdrop-filter: blur(20px);
    padding: 16px clamp(20px, 5vw, 60px) 28px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-right { display: none; }
  .nav-hamburger { display: flex; }

  .lang-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .feat-span-2 { grid-column: 1; }

  .hero-visual { display: none; }
  .phone-wrap { display: none; }
  .fl-sticker { display: none; }

  .store-btn { flex: 1; min-width: 140px; }

  .comparison-table { font-size: 12px; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-h1 { font-size: 36px; }
  .download-title { font-size: 32px; }
  .download-actions { flex-direction: column; }
  .store-btn { width: 100%; }
  .proof-items { flex-direction: column; gap: 16px; }
  .explorer-grid { grid-template-columns: 1fr; }
  .day-track { flex-direction: column; align-items: flex-start; }
  .day-line { width: 2px; height: 32px; margin: 0 0 0 29px; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ─── FOR EVERY EXPLORER ─── */
.explorer-section { background: white; }

.explorer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.explorer-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(26,26,46,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.explorer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ec-scene {
  position: relative;
  height: 120px;
  overflow: hidden;
}
.ec-scene-items { position: absolute; inset: 0; }
.ec-item {
  position: absolute;
  font-size: 26px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  animation: ecFloat 3.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.ec-scene-kids { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.ec-scene-life { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }
.ec-scene-tech { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.ec-scene-world { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }

@keyframes ecFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.ec-body {
  padding: clamp(20px, 2.8vw, 28px);
  background: white;
}
.ec-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.ec-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.ec-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}
.ec-stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ec-chip {
  background: var(--bg);
  border-radius: 100px;
  padding: 4px 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ─── YOUR CATCHLINGO DAY ─── */
.day-section { background: var(--bg); }

.day-timeline {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.day-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.day-track::-webkit-scrollbar { display: none; }

.day-node {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  scroll-snap-align: start;
}

.dn-time {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.dn-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.dn-morning  { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.dn-commute  { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.dn-lunch    { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }
.dn-afternoon { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.dn-evening  { background: linear-gradient(135deg, #ede7f6, #d1c4e9); }
.dn-night    { background: linear-gradient(135deg, #e8eaf6, #c5cae9); }

.dn-content {
  margin-top: 14px;
}
.dn-word {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.dn-trans {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 120px;
}

.day-line {
  flex-shrink: 0;
  width: 40px;
  height: 2px;
  background: var(--border-strong);
  margin-top: 72px;
  border-radius: 2px;
}

/* ─── EXPANDED TESTIMONIALS (6 cards) ─── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tm-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 900;
  color: white; flex-shrink: 0;
}
.tm-av-1 { background: linear-gradient(135deg, #4F86F7, #2bd2ff); }
.tm-av-2 { background: linear-gradient(135deg, #FF6B6B, #fa8bff); }
.tm-av-3 { background: linear-gradient(135deg, #a78bfa, #2bd2ff); }
.tm-av-4 { background: linear-gradient(135deg, #fa8bff, #FF6B6B); }
.tm-av-5 { background: linear-gradient(135deg, #2bff88, #06b6d4); }
.tm-av-6 { background: linear-gradient(135deg, #2bd2ff, #4F86F7); }

/* ═══════════════════════════════════════════════════════════════
   ENHANCEMENTS — Visual richness, interactivity, micro-moments
   ═══════════════════════════════════════════════════════════════ */

/* ─── Scroll progress bar ─── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-purple), var(--accent-cyan), var(--accent-green));
  z-index: 10001;
  pointer-events: none;
}

/* ─── Noise texture overlay ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ─── Download card pulsing glow ─── */
@keyframes downloadGlow {
  0%, 100% { box-shadow: 0 20px 60px rgba(26,26,46,0.18), 0 0 40px rgba(250,139,255,0.06); }
  50%      { box-shadow: 0 20px 60px rgba(26,26,46,0.18), 0 0 80px rgba(250,139,255,0.14), 0 0 120px rgba(43,210,255,0.06); }
}
.download-card { animation: downloadGlow 3s ease-in-out infinite; }

/* ─── Language card tooltip ─── */
.lang-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--text-primary);
  color: white;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  padding: 7px 14px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.lang-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text-primary);
}
.lang-card:hover .lang-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Enhanced hover states ─── */
.btn-dark:hover {
  box-shadow: 0 8px 32px rgba(26,26,46,0.35), 0 0 24px rgba(79,134,247,0.12);
}
.explorer-card:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(79,134,247,0.06);
}
.feat-card:hover {
  box-shadow: var(--shadow-lg), 0 0 30px rgba(43,210,255,0.06);
}
.step-card:hover {
  box-shadow: var(--shadow-lg), 0 0 30px rgba(79,134,247,0.08);
}
.step-icon-wrap {
  transition: transform 0.3s var(--ease-spring);
}
.step-card:hover .step-icon-wrap {
  transform: scale(1.08) rotate(-3deg);
}
.price-card:hover {
  box-shadow: var(--shadow-lg), 0 0 30px rgba(79,134,247,0.06);
}
