/* ========================================
   ESL Courseware - Homepage Styles
   ======================================== */

.home-page {
  background: var(--app-bg);
}

/* Scroll-triggered fade-in */
.home-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.home-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 1. Top Navigation */
.home-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--app-shadow);
  border-bottom: 1px solid var(--app-border);
}

.home-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(12px, 1.5vw, 20px) clamp(20px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.home-nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.home-nav-logo-img {
  width: clamp(130px, 16vw, 200px);
  height: auto;
  max-height: 44px;
  object-fit: contain;
  display: block;
}

.home-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--app-text);
  min-width: var(--app-touch-min);
  min-height: var(--app-touch-min);
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.home-nav-links a {
  color: var(--app-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--app-transition);
}

.home-nav-links a:hover {
  color: var(--app-primary);
}


.home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--app-radius);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--app-font);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--app-transition), box-shadow var(--app-transition);
}

.home-cta-primary {
  background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-primary-dark) 100%);
  color: white !important;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.home-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
  color: white !important;
}

.home-cta-secondary {
  background: transparent;
  color: var(--app-primary) !important;
  border: 2px solid var(--app-primary);
}

.home-cta-secondary:hover {
  background: rgba(13, 148, 136, 0.08);
  color: var(--app-primary-dark) !important;
}

.home-cta-outline {
  background: transparent;
  color: var(--app-primary) !important;
  border: 2px solid var(--app-border);
}

.home-cta-outline:hover {
  border-color: var(--app-primary);
  color: var(--app-primary) !important;
}

.home-cta-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.home-cta-xl {
  padding: 18px 36px;
  font-size: 1.15rem;
}

/* 2. Hero */
.home-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(60px, 10vw, 120px) clamp(24px, 4vw, 48px);
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(13, 148, 136, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 60%, rgba(245, 158, 11, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(20, 184, 166, 0.1), transparent 45%),
    linear-gradient(135deg, rgba(13, 148, 136, 0.06) 0%, rgba(20, 184, 166, 0.04) 50%, rgba(245, 158, 11, 0.05) 100%);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  max-width: 900px;
  text-align: center;
}

.home-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--app-text);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.home-hero-highlight {
  color: var(--app-primary);
}

.home-hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--app-text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.home-hero-trial {
  font-size: 1rem;
  font-weight: 600;
  color: var(--app-primary);
  margin: 0 0 1.25rem;
}

.home-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* 3b. Free Trial Section */
.home-free-trial {
  background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-primary-dark) 100%);
  padding: clamp(48px, 8vw, 72px) clamp(24px, 4vw, 48px);
  text-align: center;
}

.home-free-trial-inner {
  max-width: 720px;
  margin: 0 auto;
}

.home-free-trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.home-free-trial-badge i {
  color: var(--app-accent-light);
}

.home-free-trial-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: white;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.home-free-trial-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1.75rem;
}

.home-cta-trial {
  background: white !important;
  color: var(--app-primary) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.home-cta-trial:hover {
  background: var(--app-bg) !important;
  color: var(--app-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.home-free-trial-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 1rem 0 0;
}

/* 3. Trust Bar */
.home-trust {
  background: var(--app-surface);
  border-top: 1px solid var(--app-border);
  border-bottom: 1px solid var(--app-border);
  padding: clamp(20px, 3vw, 32px) clamp(24px, 4vw, 48px);
}

.home-trust-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.home-trust-label {
  font-size: 0.85rem;
  color: var(--app-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

.home-trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.home-trust-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--app-text-muted);
  padding: 6px 16px;
  background: var(--app-bg);
  border-radius: 8px;
}

.home-trust-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--app-text-muted);
}

.home-trust-stats strong {
  color: var(--app-primary);
}

/* 4. Features */
.home-features {
  padding: clamp(60px, 10vw, 100px) clamp(24px, 4vw, 48px);
}

.home-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.home-section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--app-text);
  text-align: center;
  margin: 0 0 0.5rem;
}

.home-section-sub {
  font-size: 1.1rem;
  color: var(--app-text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.home-section-sub-lg {
  max-width: 720px;
  font-size: 1.12rem;
  line-height: 1.75;
}

.home-section-eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--app-primary);
  margin: 0 0 14px;
}

.home-section-eyebrow-light {
  color: rgba(255, 255, 255, 0.75);
}

.home-section-title-gradient .home-title-accent,
.home-title-accent {
  color: var(--app-primary);
  font-weight: 800;
}

/* Feature bento */
.home-features-bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  align-items: stretch;
}

.home-feature-card {
  position: relative;
  background: var(--app-surface);
  border-radius: var(--app-radius-lg);
  padding: 28px 26px;
  box-shadow: var(--app-shadow);
  border: 1px solid var(--app-border);
  transition: transform var(--app-transition), box-shadow var(--app-transition), border-color var(--app-transition);
  overflow: hidden;
}

.home-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--app-primary), var(--app-primary-light));
  opacity: 0;
  transition: opacity var(--app-transition);
}

.home-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 40px -12px rgba(13, 148, 136, 0.12), var(--app-shadow-lg);
  border-color: rgba(13, 148, 136, 0.25);
}

.home-feature-card:hover::before {
  opacity: 1;
}

.home-feature-card--tall {
  grid-row: span 2;
}

.home-feature-card--wide {
  grid-column: 1 / -1;
}

.home-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.home-feature-icon--teal {
  background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-primary-light) 100%);
}

.home-feature-icon--amber {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.home-feature-icon--rose {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

.home-feature-icon--violet {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
}

.home-feature-card h3 {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--app-text);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.home-feature-card p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--app-text-muted);
  margin: 0;
}

/* Games showcase band */
.home-games-showcase {
  position: relative;
  padding: clamp(64px, 11vw, 110px) clamp(24px, 4vw, 48px);
  overflow: hidden;
}

.home-games-showcase-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, #1e1b4b 0%, #312e81 28%, #4c1d95 55%, #5b21b6 100%);
  background-size: 200% 200%;
  animation: home-games-bg-shift 18s ease infinite;
}

@keyframes home-games-bg-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .home-games-showcase-bg {
    animation: none;
    background-position: 50% 50%;
  }
}

.home-games-showcase-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 20% 20%, rgba(99, 102, 241, 0.45), transparent 50%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(236, 72, 153, 0.35), transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 100%, rgba(34, 211, 238, 0.2), transparent 45%);
  pointer-events: none;
}

.home-games-showcase-inner {
  position: relative;
  z-index: 1;
}

.home-games-otc-notice {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 3vw, 22px);
  max-width: 760px;
  margin: 0 auto clamp(28px, 5vw, 40px);
  padding: clamp(20px, 3.5vw, 28px) clamp(22px, 4vw, 32px);
  border-radius: 18px;
  border: 2px solid rgba(251, 191, 36, 0.72);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 27, 75, 0.9) 55%, rgba(49, 46, 129, 0.85) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 14px 44px rgba(0, 0, 0, 0.38);
}

.home-games-otc-notice__badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #0f172a;
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  box-shadow: 0 6px 18px rgba(251, 191, 36, 0.35);
}

.home-games-otc-notice__content {
  min-width: 0;
}

.home-games-otc-notice__label {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fde68a;
  line-height: 1.25;
}

.home-games-otc-notice__text {
  margin: 0;
  font-size: clamp(0.98rem, 1.75vw, 1.12rem);
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.95);
}

.home-games-otc-notice__link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: #fde68a;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-games-otc-notice__link:hover {
  color: #fff;
}

@media (max-width: 520px) {
  .home-games-otc-notice {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-games-otc-notice__link {
    margin-top: 14px;
  }
}

.home-games-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #f8fafc;
  text-align: center;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.home-games-title-highlight {
  background: linear-gradient(90deg, #fde68a, #fbbf24, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-games-lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(248, 250, 252, 0.88);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.home-games-grid {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 960px;
}

.home-game-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 22px 20px;
  margin: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  transition: transform var(--app-transition), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-game-tile:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(253, 230, 138, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.home-game-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(168, 85, 247, 0.85));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.home-game-tile-name {
  font-size: 1.08rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.home-game-tile-tag {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(253, 230, 138, 0.95);
}

.home-games-footnote {
  text-align: center;
  font-size: 0.95rem;
  color: rgba(248, 250, 252, 0.75);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.home-games-footnote i {
  margin-right: 8px;
  color: #fbbf24;
}

/* 5. How It Works */
.home-how {
  background: linear-gradient(180deg, var(--app-surface) 0%, var(--app-bg) 100%);
  padding: clamp(60px, 10vw, 100px) clamp(24px, 4vw, 48px);
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 2.5rem;
}

.home-steps-rail {
  padding: clamp(28px, 4vw, 40px) clamp(20px, 3vw, 32px);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 40%, rgba(240, 253, 250, 0.8) 100%);
  border-radius: 20px;
  border: 1px solid rgba(13, 148, 136, 0.12);
  box-shadow: 0 20px 50px -20px rgba(13, 148, 136, 0.15), var(--app-shadow);
}

.home-step {
  text-align: center;
  padding: 20px 12px;
  position: relative;
}

.home-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark));
  color: white;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}

.home-step h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--app-text);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.home-step p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--app-text-muted);
  margin: 0;
}

.home-how-cta {
  text-align: center;
}

/* 6. Product Showcase */
.home-showcase {
  padding: clamp(60px, 10vw, 100px) clamp(24px, 4vw, 48px);
}

.home-showcase-img-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--app-radius-lg);
  overflow: hidden;
  box-shadow: var(--app-shadow-lg);
}

.home-showcase-frame {
  position: relative;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--app-surface), var(--app-surface)) padding-box,
    linear-gradient(135deg, var(--app-primary-light), var(--app-accent), var(--app-primary)) border-box;
  border-radius: 20px;
  box-shadow: 0 28px 60px -15px rgba(13, 148, 136, 0.2), var(--app-shadow-lg);
}

.home-showcase-img {
  width: 100%;
  height: auto;
  display: block;
}

.home-tour {
  margin-top: 3rem;
  text-align: center;
}

.home-tour-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--app-text);
  margin: 0 0 0.5rem;
}

.home-tour-sub {
  font-size: 1rem;
  color: var(--app-text-muted);
  margin: 0 0 1.5rem;
}

.home-tour-sub a {
  color: var(--app-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-tour-sub a:hover {
  color: var(--app-primary-dark);
}

.home-tour-video-wrap {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--app-radius-lg);
  overflow: hidden;
  box-shadow: var(--app-shadow-lg);
  aspect-ratio: 16 / 9;
}

.home-tour-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* 7. Stars & Certificates */
.home-stars {
  position: relative;
  background: linear-gradient(180deg, var(--app-bg) 0%, rgba(255, 245, 230, 0.5) 40%, rgba(13, 148, 136, 0.04) 100%);
  padding: clamp(60px, 10vw, 100px) clamp(24px, 4vw, 48px);
  overflow: hidden;
}

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

.home-stars-decoration .star {
  position: absolute;
  color: rgba(245, 158, 11, 0.25);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  animation: star-float 8s ease-in-out infinite;
}

.home-stars-decoration .star:nth-child(odd) { animation-delay: -2s; color: rgba(13, 148, 136, 0.2); }
.home-stars-decoration .star:nth-child(3n) { animation-delay: -4s; color: rgba(251, 191, 36, 0.3); }

.star-1 { top: 8%; left: 5%; }
.star-2 { top: 15%; right: 12%; font-size: 1.2rem; }
.star-3 { top: 35%; left: 8%; font-size: 0.9rem; }
.star-4 { top: 50%; right: 6%; }
.star-5 { bottom: 30%; left: 10%; font-size: 1.1rem; }
.star-6 { bottom: 20%; right: 15%; font-size: 0.85rem; }
.star-7 { bottom: 45%; left: 3%; }
.star-8 { top: 25%; right: 25%; font-size: 1.3rem; }

@keyframes star-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-10px) scale(1.1); opacity: 1; }
}

.home-stars .home-section-title i {
  color: var(--app-accent);
  margin-right: 8px;
}

.home-stars-section-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-stars-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.home-stars-content {
  order: 1;
}

.home-stars-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--app-text);
  margin: 0 0 1.25rem;
}

.home-stars-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.home-stars-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--app-text);
}

.home-stars-bullet {
  color: var(--app-accent);
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.home-stars-note {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--app-text-muted);
  margin: 0;
  padding: 16px 20px;
  background: rgba(13, 148, 136, 0.06);
  border-radius: var(--app-radius);
  border-left: 4px solid var(--app-primary);
}

.home-stars-visual {
  position: relative;
  order: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-stars-cert-wrap {
  position: relative;
  max-width: 380px;
  border-radius: var(--app-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(13, 148, 136, 0.15), 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(13, 148, 136, 0.2);
}

.home-stars-cert-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--app-radius-lg);
}

.home-stars-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}

/* 8. Teacher Tools */
.home-teacher-tools {
  background: var(--app-surface);
  padding: clamp(60px, 10vw, 100px) clamp(24px, 4vw, 48px);
}

.home-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.home-tool-card {
  background: var(--app-bg);
  border-radius: var(--app-radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--app-border);
  transition: transform var(--app-transition), box-shadow var(--app-transition), border-color var(--app-transition);
}

.home-tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.12), var(--app-shadow-lg);
}

.home-tool-card--teal:hover {
  border-color: rgba(13, 148, 136, 0.35);
}

.home-tool-card--violet:hover {
  border-color: rgba(124, 58, 237, 0.35);
}

.home-tool-card--red:hover {
  border-color: rgba(220, 38, 38, 0.35);
}

.home-tool-card--sky:hover {
  border-color: rgba(14, 165, 233, 0.35);
}

.home-tool-card--amber:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

.home-tool-card--emerald:hover {
  border-color: rgba(5, 150, 105, 0.35);
}

.home-tool-card--games {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, var(--app-bg) 50%, rgba(168, 85, 247, 0.06) 100%);
}

.home-tool-card--games:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.home-tool-card--span {
  grid-column: 1 / -1;
}

.home-tool-card--teal .home-tool-icon {
  background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-primary-dark) 100%);
}

.home-tool-card--violet .home-tool-icon {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

.home-tool-card--red .home-tool-icon {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.home-tool-card--sky .home-tool-icon {
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
}

.home-tool-card--amber .home-tool-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
}

.home-tool-card--emerald .home-tool-icon {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.home-tool-card--games .home-tool-icon {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35);
}

.home-tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.home-tool-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--app-text);
  margin: 0 0 10px;
}

.home-tool-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--app-text-muted);
  margin: 0;
}

/* 9. Feature Grid */
.home-grid {
  background: linear-gradient(180deg, var(--app-bg) 0%, var(--app-surface) 35%, var(--app-surface) 100%);
  padding: clamp(60px, 10vw, 100px) clamp(24px, 4vw, 48px);
}

.home-dimension-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.home-dimension-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--app-text);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
  transition: transform var(--app-transition), box-shadow var(--app-transition), border-color var(--app-transition);
}

.home-dimension-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--app-shadow-lg);
  border-color: rgba(13, 148, 136, 0.2);
}

.home-dimension-card i {
  color: var(--app-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.home-dimension-card--highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.09) 0%, #ffffff 55%, rgba(236, 72, 153, 0.06) 100%);
  border-color: rgba(99, 102, 241, 0.28);
}

.home-dimension-card--highlight i {
  color: #6366f1;
}

.home-dimension-card--highlight:hover {
  border-color: rgba(99, 102, 241, 0.45);
}

/* OTC Pro — homepage: single panel (matches popup card), two columns inside */
.home-otc-pro-sales {
  position: relative;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px);
  background:
    radial-gradient(90% 60% at 10% 0%, rgba(99, 102, 241, 0.14) 0%, transparent 50%),
    radial-gradient(70% 50% at 100% 20%, rgba(13, 148, 136, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.home-otc-pro-sales__inner {
  max-width: 960px;
  margin: 0 auto;
}

.home-otc-pro-sales__card {
  --otc-home-card-border: rgba(120, 140, 220, 0.35);
  --otc-home-card-shadow: 0 24px 80px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--otc-home-card-border);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(240, 249, 255, 0.92) 45%,
    rgba(255, 255, 255, 0.96) 100%
  );
  box-shadow: var(--otc-home-card-shadow);
  overflow: hidden;
}

.home-otc-pro-sales__shine {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(ellipse at 30% 0%, rgba(37, 99, 235, 0.14), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.home-otc-pro-sales__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px 28px;
  padding: clamp(22px, 4vw, 28px) clamp(18px, 3vw, 26px) clamp(20px, 3vw, 26px);
  align-items: start;
}

@media (min-width: 840px) {
  .home-otc-pro-sales__layout {
    grid-template-columns: 1fr 1.05fr;
    gap: 20px 32px;
    padding: 28px 32px 26px;
  }

  .home-otc-pro-sales__bundle {
    border-left: 1px solid rgba(203, 213, 225, 0.65);
    padding-left: 28px;
    margin-left: 0;
    min-height: 100%;
  }
}

@media (max-width: 839px) {
  .home-otc-pro-sales__bundle {
    padding-top: 20px;
    margin-top: 4px;
    border-top: 1px solid rgba(203, 213, 225, 0.65);
  }
}

.home-otc-pro-sales__lead {
  position: relative;
  min-width: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.home-otc-pro-sales__logo {
  width: clamp(64px, 12vw, 88px);
  height: auto;
  border-radius: 16px;
  margin-bottom: 14px;
  box-shadow:
    0 4px 16px rgba(13, 148, 136, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.home-otc-pro-sales__title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--app-text);
}

.home-otc-pro-sales__intro {
  margin: 0 0 16px;
  font-size: clamp(0.95rem, 1.7vw, 1.05rem);
  line-height: 1.65;
  color: var(--app-text-muted);
  max-width: none;
}

.home-otc-pro-sales__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-bottom: 14px;
}

.home-otc-pro-sales__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--app-radius);
  text-decoration: none;
  transition: transform var(--app-transition), box-shadow var(--app-transition), filter 0.2s ease;
}

.home-otc-pro-sales__btn--primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--app-primary) 0%, #0e7490 45%, #6366f1 130%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 4px 20px rgba(13, 148, 136, 0.35),
    0 8px 28px -6px rgba(99, 102, 241, 0.3);
}

.home-otc-pro-sales__btn--primary:hover {
  color: #fff !important;
  filter: brightness(1.04);
  transform: translateY(-2px);
}

.home-otc-pro-sales__btn--secondary {
  color: var(--app-primary) !important;
  background: transparent;
  border: 2px solid var(--app-primary);
}

.home-otc-pro-sales__btn--secondary:hover {
  background: rgba(13, 148, 136, 0.06);
}

.home-otc-pro-sales__btn:focus-visible {
  outline: 3px solid rgba(13, 148, 136, 0.45);
  outline-offset: 3px;
}

.home-otc-pro-sales__nudge {
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--app-text-muted);
  max-width: none;
}

.home-otc-pro-sales__only-app {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--app-primary-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  text-align: left;
}

.home-otc-pro-sales__only-app:hover {
  color: var(--app-primary);
}

.home-otc-pro-sales__only-app:focus-visible {
  outline: 2px solid var(--app-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.home-otc-pro-sales__foot {
  margin: clamp(20px, 3vw, 28px) 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--app-text-muted);
}

.home-otc-pro-sales__foot strong {
  color: var(--app-text);
  font-weight: 600;
}

.home-otc-pro-sales__price-wrap {
  margin: 0 0 12px;
}

.home-otc-pro-sales__coupon-note {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--app-text-muted);
}

.home-otc-pro-sales__bundle {
  min-width: 0;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Popup-style price + feature list, scoped to homepage embed (mirrors otc-pro-promo-popup.css) */
.otc-pro-promo-embed {
  --otc-promo-text: #0f172a;
  --otc-promo-muted: #475569;
  --otc-promo-accent: #0d9488;
  --otc-promo-accent2: #2563eb;
  font-family: var(--app-font);
}

.otc-pro-promo-embed .otc-pro-promo__price-block {
  margin: 0 0 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(236, 253, 245, 0.97) 0%,
    rgba(240, 253, 250, 0.9) 45%,
    rgba(255, 255, 255, 0.94) 100%
  );
  border: 1px solid rgba(45, 212, 191, 0.38);
  box-shadow: 0 6px 26px rgba(13, 148, 136, 0.1);
}

.otc-pro-promo-embed .otc-pro-promo__price-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: linear-gradient(135deg, #0d9488, #059669);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.otc-pro-promo-embed .otc-pro-promo__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 20px;
}

.otc-pro-promo-embed .otc-pro-promo__price-now {
  margin: 0;
  line-height: 1;
}

.otc-pro-promo-embed .otc-pro-promo__price-now-inner {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #0f766e;
  font-variant-numeric: tabular-nums;
}

.otc-pro-promo-embed .otc-pro-promo__price-period {
  font-size: 0.48em;
  font-weight: 700;
  color: var(--otc-promo-muted);
  margin-left: 3px;
}

.otc-pro-promo-embed .otc-pro-promo__price-compare {
  margin: 0;
  flex: 1;
  min-width: min(100%, 11rem);
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--otc-promo-muted);
}

.otc-pro-promo-embed .otc-pro-promo__price-if-separate {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(13, 148, 136, 0.22);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--otc-promo-muted);
}

.otc-pro-promo-embed .otc-pro-promo__price-foot {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f766e;
  line-height: 1.35;
}

.otc-pro-promo-embed .otc-pro-promo__features-title {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--otc-promo-muted);
}

.otc-pro-promo-embed .otc-pro-promo__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

@media (min-width: 480px) {
  .otc-pro-promo-embed .otc-pro-promo__features {
    grid-template-columns: 1fr 1fr;
  }
}

.otc-pro-promo-embed .otc-pro-promo__feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(203, 213, 225, 0.45);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--otc-promo-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.otc-pro-promo-embed .otc-pro-promo__feature:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.08);
}

.otc-pro-promo-embed .otc-pro-promo__feature-logo-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(203, 213, 225, 0.55);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.otc-pro-promo-embed .otc-pro-promo__feature-logo-wrap--svg {
  background: linear-gradient(165deg, #fafafa 0%, #f1f5f9 100%);
  border-color: rgba(148, 163, 184, 0.45);
}

.otc-pro-promo-embed .otc-pro-promo__feature-icon-svg {
  width: 26px;
  height: 26px;
  display: block;
  flex-shrink: 0;
}

.otc-pro-promo-embed .otc-pro-promo__feature-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.otc-pro-promo-embed .otc-pro-promo__feature-label {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

/* OTC Pro — membership promo (above collapsible app-only pricing) */
.home-otc-pro-banner {
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px) clamp(12px, 2vw, 20px);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, rgba(13, 148, 136, 0.06) 100%);
}

.home-otc-pro-banner__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(20px, 3vw, 28px);
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 36px) clamp(22px, 4vw, 40px);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 48%, rgba(240, 253, 250, 0.85) 100%);
  border: 1px solid rgba(13, 148, 136, 0.14);
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 24px -8px rgba(13, 148, 136, 0.2),
    0 20px 50px -28px rgba(15, 23, 42, 0.12);
}

.home-otc-pro-banner__main {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 3vw, 24px);
  min-width: 0;
}

.home-otc-pro-banner__logo {
  width: clamp(64px, 12vw, 88px);
  height: auto;
  flex-shrink: 0;
  border-radius: 16px;
  box-shadow:
    0 4px 16px rgba(13, 148, 136, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.home-otc-pro-banner__text {
  min-width: 0;
}

.home-otc-pro-banner__title {
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 800;
  color: var(--app-text);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 12px;
  background: linear-gradient(105deg, var(--app-text) 0%, var(--app-primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@supports not (background-clip: text) {
  .home-otc-pro-banner__title {
    color: var(--app-text);
    -webkit-text-fill-color: unset;
    background: none;
  }
}

.home-otc-pro-banner__body {
  font-size: clamp(0.92rem, 1.65vw, 1.05rem);
  line-height: 1.65;
  color: var(--app-text-muted);
  margin: 0;
  max-width: 58ch;
}

.home-otc-pro-banner__body strong {
  color: var(--app-text);
  font-weight: 700;
}

.home-otc-pro-banner__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-top: 4px;
  border-top: 1px solid rgba(13, 148, 136, 0.1);
}

.home-otc-pro-banner__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}

.home-otc-pro-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--app-radius);
  text-decoration: none;
  transition: transform var(--app-transition), box-shadow var(--app-transition), filter 0.2s ease, border-color var(--app-transition), color var(--app-transition);
}

.home-otc-pro-banner__cta--primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--app-primary) 0%, #0e7490 45%, #6366f1 130%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 4px 20px rgba(13, 148, 136, 0.35),
    0 8px 28px -6px rgba(99, 102, 241, 0.35);
}

.home-otc-pro-banner__cta--primary:hover {
  color: #fff !important;
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 28px rgba(13, 148, 136, 0.4),
    0 14px 36px -8px rgba(99, 102, 241, 0.4);
}

.home-otc-pro-banner__cta--secondary.home-cta-outline {
  padding: 12px 20px;
  border-width: 2px;
  border-radius: var(--app-radius);
}

.home-otc-pro-banner__cta:focus-visible {
  outline: 3px solid rgba(13, 148, 136, 0.45);
  outline-offset: 3px;
}

.home-otc-pro-banner__decline {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--app-primary-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  text-align: left;
}

.home-otc-pro-banner__decline:hover {
  color: var(--app-primary);
}

.home-otc-pro-banner__decline:focus-visible {
  outline: 2px solid var(--app-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.home-otc-pro-banner__footnote {
  margin: 0;
  font-size: 0.8rem;
  color: var(--app-text-muted);
  letter-spacing: 0.01em;
}

.home-otc-pro-banner__footnote strong {
  color: var(--app-text);
  font-weight: 600;
}

.home-pricing-trial-ref {
  text-align: center;
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.home-pricing-trial-ref a {
  color: var(--app-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-pricing-trial-ref a:hover {
  color: var(--app-primary-dark);
}

/* 8. Pricing — ESL Courseware app only (simple, not OTC Pro) */
.home-pricing {
  padding: clamp(56px, 9vw, 88px) clamp(24px, 4vw, 48px);
  scroll-margin-top: 88px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%);
}

.home-app-pricing {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.home-app-pricing__title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--app-text);
  line-height: 1.15;
}

.home-app-pricing__trial {
  margin: 0 auto 2rem;
  max-width: 40rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--app-text-muted);
}

.home-app-pricing__trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 auto 0.65rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f766e;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(20, 184, 166, 0.08));
  border: 1px solid rgba(13, 148, 136, 0.25);
}

.home-app-pricing__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.home-app-pricing__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 1.75rem 1.35rem 1.5rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.home-app-pricing__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(13, 148, 136, 0.2);
  border-color: rgba(13, 148, 136, 0.35);
}

.home-app-pricing__card:focus-visible {
  outline: 3px solid rgba(13, 148, 136, 0.45);
  outline-offset: 3px;
}

.home-app-pricing__card--best {
  border-color: rgba(13, 148, 136, 0.45);
  background: linear-gradient(165deg, rgba(240, 253, 250, 0.9) 0%, #ffffff 55%);
  box-shadow:
    0 4px 24px rgba(13, 148, 136, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.home-app-pricing__ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, #0d9488, #059669);
}

.home-app-pricing__plan {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--app-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.home-app-pricing__amount {
  display: block;
  font-size: clamp(2.25rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--app-text);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.home-app-pricing__period {
  font-size: 0.45em;
  font-weight: 700;
  color: var(--app-text-muted);
  margin-left: 0.05em;
}

.home-app-pricing__usd {
  font-size: 0.82rem;
  color: var(--app-text-muted);
  margin-bottom: 1rem;
}

.home-app-pricing__go {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--app-primary);
}

.home-app-pricing__go i {
  margin-left: 0.35rem;
  font-size: 0.8em;
  opacity: 0.85;
}

.home-app-pricing__foot {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--app-text-muted);
}

.home-app-pricing__foot a {
  color: var(--app-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-app-pricing__foot a:hover {
  color: var(--app-primary-dark);
}

/* Legacy pricing grid (embeds / older pages) */
.home-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 720px;
  margin: 0 auto 40px;
  justify-items: center;
}

.home-pricing-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.home-pricing-compare__col {
  padding: 24px 26px;
  border-radius: var(--app-radius-lg);
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
}

.home-pricing-compare__col--highlight {
  border-color: rgba(13, 148, 136, 0.35);
  background: linear-gradient(160deg, rgba(240, 253, 250, 0.65) 0%, #ffffff 55%);
  box-shadow:
    0 4px 20px rgba(13, 148, 136, 0.1),
    var(--app-shadow);
}

.home-pricing-compare__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--app-text);
  margin: 0 0 10px;
}

.home-pricing-compare__title i {
  color: var(--app-primary);
  font-size: 1rem;
}

.home-pricing-compare__lead {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--app-text-muted);
  margin: 0 0 14px;
}

.home-pricing-compare__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--app-text);
}

.home-pricing-compare__list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 10px;
}

.home-pricing-compare__list li:last-child {
  margin-bottom: 0;
}

.home-pricing-compare__list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 0.75rem;
  color: var(--app-primary);
}

.home-pricing-card {
  background: var(--app-surface);
  border-radius: var(--app-radius-lg);
  padding: 40px 36px;
  border: 2px solid var(--app-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--app-transition), border-color var(--app-transition);
  width: 100%;
  max-width: 320px;
}

.home-pricing-card:hover {
  transform: translateY(-4px);
}

.home-pricing-featured {
  border-color: var(--app-primary);
  box-shadow: 0 8px 30px rgba(13, 148, 136, 0.15);
  transform: scale(1.03);
}

.home-pricing-featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.home-pricing-badge {
  font-size: 0.8rem;
  color: var(--app-text-muted);
  margin: 0 0 8px;
}

.home-pricing-badge-featured {
  color: var(--app-primary);
  font-weight: 600;
}

.home-pricing-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--app-text);
  margin: 0 0 10px;
}

.home-pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--app-text);
  margin: 0 0 6px;
}

.home-pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--app-text-muted);
}

.home-pricing-savings {
  font-size: 0.95rem;
  font-weight: 700;
  color: #059669;
  margin: 0 0 8px;
  line-height: 1.4;
}

.home-pricing-desc {
  font-size: 0.9rem;
  color: var(--app-text-muted);
  margin: 0 0 24px;
  flex-grow: 1;
}

.home-pricing-card .home-cta {
  width: 100%;
  max-width: 200px;
}

/* 9. OTC Message */
.home-otc {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(245, 158, 11, 0.06) 100%);
  padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 48px);
}

.home-otc-inner {
  max-width: 700px;
  text-align: center;
}

.home-otc-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--app-text);
  margin: 0;
}

.home-otc-text a {
  color: var(--app-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-otc-text a:hover {
  color: var(--app-primary-dark);
}

/* 10. Social Proof */
.home-proof {
  padding: clamp(60px, 10vw, 100px) clamp(24px, 4vw, 48px);
}

.home-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.home-testimonial {
  position: relative;
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--app-radius-lg);
  padding: 28px 28px 28px 32px;
  margin: 0;
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
  transition: transform var(--app-transition), box-shadow var(--app-transition);
}

.home-testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(13, 148, 136, 0.12), var(--app-shadow-lg);
}

.home-testimonial-quote {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(13, 148, 136, 0.2);
  font-weight: 700;
  pointer-events: none;
}

.home-testimonial p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--app-text);
  margin: 0 0 14px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.home-testimonial cite {
  font-size: 0.9rem;
  color: var(--app-text-muted);
  font-style: normal;
}

/* 11. FAQ */
.home-faq {
  background: var(--app-surface);
  padding: clamp(60px, 10vw, 100px) clamp(24px, 4vw, 48px);
}

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

.home-faq-item {
  border-bottom: 1px solid var(--app-border);
}

.home-faq-item summary {
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--app-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-faq-item summary::-webkit-details-marker {
  display: none;
}

.home-faq-item summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--app-text-muted);
  transition: transform var(--app-transition);
}

.home-faq-item[open] summary::after {
  transform: rotate(180deg);
}

.home-faq-item p {
  padding: 0 0 20px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--app-text-muted);
}

/* 12. Final CTA */
.home-final-cta {
  background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-primary-dark) 100%);
  padding: clamp(60px, 10vw, 80px) clamp(24px, 4vw, 48px);
}

.home-final-cta-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: white;
  text-align: center;
  margin: 0 0 1.5rem;
}

.home-final-cta .home-cta-primary {
  background: white;
  color: var(--app-primary) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.home-final-cta .home-cta-primary:hover {
  background: var(--app-bg);
  color: var(--app-primary-dark) !important;
}

.home-final-cta-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1.25rem;
}

.home-final-cta .home-section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 13. Footer */
.home-footer {
  background: var(--app-text);
  color: var(--app-bg);
  padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 48px);
}

.home-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.home-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.home-footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
}

.home-footer-links a:hover {
  color: white;
}

.home-footer-copy {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Mobile */
@media (max-width: 1024px) {
  .home-features-bento {
    grid-template-columns: 1fr;
  }

  .home-feature-card--tall {
    grid-row: auto;
  }

  .home-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-testimonials {
    grid-template-columns: 1fr;
  }

  .home-stars-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-stars-visual {
    order: 0;
  }

  .home-stars-cert-wrap {
    max-width: 340px;
    margin: 0 auto;
  }

  .home-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-tool-card--span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .home-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .home-nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--app-surface);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--app-shadow-lg);
    display: none;
  }

  .home-nav-links.show {
    display: flex;
  }

  .home-games-grid {
    grid-template-columns: 1fr;
  }

  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-app-pricing__cards {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .home-app-pricing__card--best {
    order: -1;
  }

  .home-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .home-pricing-card {
    max-width: 100%;
  }

  .home-pricing-featured {
    transform: none;
    order: -1;
  }

  .home-pricing-featured:hover {
    transform: translateY(-4px);
  }

  .home-otc-pro-banner__card {
    text-align: center;
  }

  .home-otc-pro-banner__main {
    flex-direction: column;
    align-items: center;
  }

  .home-otc-pro-banner__text {
    text-align: center;
  }

  .home-otc-pro-banner__body {
    max-width: none;
  }

  .home-otc-pro-banner__actions {
    align-items: center;
    text-align: center;
  }

  .home-otc-pro-banner__cta-row {
    justify-content: center;
  }

  .home-otc-pro-banner__cta {
    width: 100%;
    max-width: 320px;
    white-space: normal;
  }

  .home-otc-pro-banner__decline {
    text-align: center;
  }

  .home-pricing-compare {
    grid-template-columns: 1fr;
  }

  .home-hero-ctas {
    flex-direction: column;
  }

  .home-hero-ctas .home-cta {
    width: 100%;
  }

  .home-tools-grid {
    grid-template-columns: 1fr;
  }
}
