/* ============================================
   Crusd.io Design System
   Colors from ios/Crusd/Crusd/ColorTheme.swift
   ============================================ */

:root {
  /* Flame accents */
  --flame-orange: #FF9843;
  --flame-red: #FF5C39;
  --flame-gradient: linear-gradient(135deg, #FF9843, #FF5C39);

  /* Backgrounds (dark theme — matches iOS app dark mode) */
  --bg-primary: #0F1117;
  --bg-card: #1A1C24;
  --bg-secondary: #12141A;

  /* Text */
  --text-primary: #F2F2F2;
  --text-secondary: #8A8F98;
  --text-tertiary: #4A4E58;

  /* Borders & Dividers */
  --divider: #2A2F3A;
  --border: #2A2F3A;
  --card-border: rgba(255, 152, 67, 0.08);

  /* Functional */
  --success: #4DB366;

  /* Glow effects */
  --glow-orange: rgba(255, 152, 67, 0.15);
  --glow-red: rgba(255, 92, 57, 0.1);

  /* Shadows */
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.4);

  /* Radii */
  --radius-card: 16px;
  --radius-button: 10px;
  --radius-pill: 20px;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                  "SF Pro Text", "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Layout */
  --max-width: 1120px;
  --nav-height: 64px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--flame-orange);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--flame-red);
}

ul, ol {
  list-style: none;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: 48px;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 32px;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

h4 {
  font-size: 16px;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
}

.text-gradient {
  background: var(--flame-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Layout
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

.section-header p {
  margin-top: var(--space-md);
  font-size: 18px;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(15, 17, 23, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-brand:hover {
  color: var(--text-primary);
}

.nav-flame {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-flame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 1px;
}

/* Language Switcher */
#lang-switcher {
  position: relative;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.lang-btn:hover {
  color: var(--text-primary);
  border-color: var(--flame-orange);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1001;
}

.lang-dropdown.open {
  display: flex;
  flex-direction: column;
}

.lang-item {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.lang-item:hover {
  background: rgba(255, 152, 67, 0.1);
  color: var(--text-primary);
}

.lang-item.active {
  color: var(--flame-orange);
  font-weight: 600;
}

/* RTL Support */
[dir="rtl"] .feature-showcase { flex-direction: row-reverse; }
[dir="rtl"] .feature-showcase--reverse { flex-direction: row; }
[dir="rtl"] .plan-card-accent { border-radius: 0 4px 4px 0; }
[dir="rtl"] .mini-card { text-align: right; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }

/* Mobile nav open state */
.nav-links.open {
  display: flex;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: var(--radius-button);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--flame-gradient);
  color: white;
}

.btn-primary:hover {
  color: white;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--flame-orange);
  border: 2px solid var(--flame-orange);
}

.btn-secondary:hover {
  color: var(--flame-red);
  border-color: var(--flame-red);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-white {
  background: white;
  color: var(--flame-red);
}

.btn-white:hover {
  color: var(--flame-red);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
}

/* ============================================
   Badge / Pill
   ============================================ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
}

.pill-flame {
  background: var(--flame-gradient);
  color: white;
}

.pill-outline {
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--flame-gradient);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-left: 6px;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 152, 67, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  margin-top: var(--space-lg);
}

.hero p {
  font-size: 18px;
  margin-top: var(--space-md);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.hero-note {
  margin-top: var(--space-md);
  font-size: 14px;
  color: var(--text-tertiary);
}

/* ============================================
   Features Grid
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 152, 67, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--space-md);
}

.feature-icon--img {
  background: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
}

.feature-icon--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 15px;
  line-height: 1.5;
}

/* ============================================
   How It Works
   ============================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--flame-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto var(--space-md);
}

.step h3 {
  margin-bottom: var(--space-sm);
}

.step p {
  font-size: 15px;
}

/* ============================================
   Stats Bar
   ============================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  text-align: center;
  padding: var(--space-2xl) 0;
}

.stat-value {
  font-size: 48px;
  font-weight: 700;
  background: var(--flame-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

/* ============================================
   CTA Banner
   ============================================ */

.cta-banner {
  background: var(--flame-gradient);
  border-radius: var(--radius-card);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  color: white;
}

.cta-banner h2 {
  color: white;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin-top: var(--space-sm);
}

.cta-banner .btn {
  margin-top: var(--space-lg);
}

.cta-note {
  margin-top: var(--space-md);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid var(--divider);
  padding: var(--space-xl) 0;
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-contact {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-disclaimer {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--divider);
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.5;
}

.footer-copyright {
  margin-top: var(--space-md);
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ============================================
   Pricing Page
   ============================================ */

.pricing-header {
  text-align: center;
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-xl);
}

.pricing-header p {
  margin-top: var(--space-sm);
  font-size: 18px;
}

/* Toggle */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.toggle-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}

.toggle-label.active {
  color: var(--text-primary);
  font-weight: 600;
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-switch.active {
  background: var(--flame-gradient);
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch.active::after {
  transform: translateX(24px);
}

.save-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--flame-red);
  background: rgba(255, 92, 57, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Pricing Cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  padding: var(--space-xl);
  position: relative;
}

.pricing-card.featured {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-card), var(--bg-card)), var(--flame-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--flame-gradient);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 22px;
  margin-bottom: var(--space-xs);
}

.pricing-price {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-md) 0 var(--space-xs);
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-equivalent {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
}

.pricing-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--space-lg);
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
}

.pricing-feature .check {
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-trial {
  text-align: center;
  margin-top: var(--space-sm);
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Comparison Table */
.comparison {
  max-width: 800px;
  margin: var(--space-2xl) auto 0;
}

.comparison h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--divider);
}

.comparison-table th {
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table th:not(:first-child),
.comparison-table td:not(:first-child) {
  text-align: center;
  width: 140px;
}

.comparison-table thead th {
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--divider);
  font-size: 16px;
}

.comparison-table .check-icon {
  color: var(--success);
  font-weight: 700;
}

.comparison-table .x-icon {
  color: var(--text-tertiary);
}

/* FAQ */
.faq {
  max-width: 640px;
  margin: var(--space-2xl) auto 0;
}

.faq h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.faq-item {
  border-bottom: 1px solid var(--divider);
  padding: var(--space-lg) 0;
}

.faq-item:first-of-type {
  border-top: 1px solid var(--divider);
}

.faq-item h3 {
  font-size: 16px;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.faq-item p {
  font-size: 15px;
  line-height: 1.5;
}

/* Subscription note */
.subscription-note {
  max-width: 640px;
  margin: var(--space-xl) auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* ============================================
   Legal Pages (Terms, Privacy)
   ============================================ */

.legal {
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-3xl);
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 36px;
  margin-bottom: var(--space-sm);
}

.legal-updated {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2xl);
}

.legal-content h2 {
  font-size: 22px;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-content p {
  margin-bottom: var(--space-md);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
}

.legal-content ul, .legal-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.legal-content a {
  text-decoration: underline;
}

.legal-highlight {
  background: rgba(255, 152, 67, 0.1);
  border-left: 3px solid var(--flame-orange);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-button) var(--radius-button) 0;
  margin: var(--space-lg) 0;
}

.legal-highlight p {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0;
}

.legal-highlight p + p {
  margin-top: var(--space-sm);
}

/* ============================================
   Hero — Two-Column Layout
   ============================================ */

.hero-layout {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  max-width: 560px;
}

.hero-text h1 {
  margin-top: var(--space-lg);
}

.hero-text p {
  font-size: 18px;
  margin-top: var(--space-md);
}

.hero-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--glow-orange) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* Hero — 3 Staggered Phones */
.hero-phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
}

.hero-phone {
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  position: relative;
}

.hero-phone--left {
  transform: translateX(20px) scale(0.88);
  z-index: 1;
  opacity: 0.85;
}

.hero-phone--center {
  z-index: 3;
  transform: scale(1);
}

.hero-phone--right {
  transform: translateX(-20px) scale(0.88);
  z-index: 1;
  opacity: 0.85;
}

/* Screenshot styling — rounded corners to match iOS */
.screenshot-img {
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Celebration — two screenshots side by side */
.celebrate-phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.celebrate-phones img {
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ============================================
   Section Variants
   ============================================ */

.section--dark {
  background: var(--bg-secondary);
}

.section--glow {
  position: relative;
  overflow: hidden;
}

.section--glow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 152, 67, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================
   Stats Bar
   ============================================ */

.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
}

.stat-item {
  text-align: center;
}

.stats-bar .stat-value {
  font-size: 28px;
  font-weight: 700;
}

.stats-bar .stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--divider);
}

/* ============================================
   Feature Showcase — Two-Column Alternating
   ============================================ */

.feature-showcase {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.feature-showcase--reverse {
  flex-direction: row-reverse;
}

.feature-showcase-text {
  flex: 1;
  max-width: 520px;
}

.feature-showcase-text h2 {
  margin-top: var(--space-md);
}

.feature-showcase-text > p {
  margin-top: var(--space-md);
  font-size: 16px;
  line-height: 1.7;
}

.feature-showcase-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-showcase-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ============================================
   Mini Cards (Feature Highlights)
   ============================================ */

.mini-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.mini-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.mini-card-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(255, 152, 67, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.mini-card span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ============================================
   Readiness Zones
   ============================================ */

.readiness-zones {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.readiness-zone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.zone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================
   Centered Feature (Smart Breaks, Share Cards)
   ============================================ */

.centered-feature {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.centered-feature h2 {
  margin-top: var(--space-md);
}

.centered-feature-body {
  font-size: 18px;
  margin-top: var(--space-md);
  line-height: 1.7;
}

.centered-feature-image {
  margin-top: var(--space-xl);
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.share-showcase {
  margin-top: var(--space-xl);
}

.share-showcase img {
  max-width: 340px;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
}

/* ============================================
   Training Plans Layout
   ============================================ */

.plans-layout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2xl);
}

.plans-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.plans-image {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plans-image img {
  max-width: 320px;
  height: auto;
  border-radius: 12px;
}

.plan-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.plan-card-accent {
  width: 4px;
  background: var(--flame-gradient);
  border-radius: 4px 0 0 4px;
  flex-shrink: 0;
}

.plan-card-content {
  padding: var(--space-lg);
}

.plan-card-content h3 {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.plan-card-content p {
  font-size: 15px;
  line-height: 1.6;
}

.plan-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.plan-badge {
  padding: 4px 12px;
  background: rgba(255, 152, 67, 0.1);
  color: var(--flame-orange);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
}

/* ============================================
   Two-Column Features (Ecosystem & Privacy)
   ============================================ */

.two-col-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

.ecosystem-col h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}

.ecosystem-col p {
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================
   Trust Badges
   ============================================ */

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 152, 67, 0.08);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================
   CTA Banner — Enhanced
   ============================================ */

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.cta-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Apple Watch Showcase
   ============================================ */

.watch-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 380px;
}

.watch-img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ============================================
   Language Grid
   ============================================ */

.language-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.language-tag {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================
   Float Animation
   ============================================ */


/* ============================================
   Scroll Animations
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Responsive: Tablet (768px)
   ============================================ */

@media (max-width: 1024px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }

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

  .feature-showcase {
    gap: var(--space-xl);
  }

  .hero-layout {
    gap: var(--space-xl);
  }

  .plans-layout {
    gap: var(--space-xl);
  }

  .two-col-features {
    gap: var(--space-xl);
  }
}

/* ============================================
   Responsive: Mobile (<768px)
   ============================================ */

@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }

  .section {
    padding: var(--space-2xl) 0;
  }

  /* Mobile nav */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--divider);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    display: flex;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .hero-layout {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    padding: 0 var(--space-lg);
  }

  .hero-phones {
    transform: scale(0.75);
  }

  .hero-glow {
    width: 280px;
    height: 280px;
  }

  .celebrate-phones {
    flex-direction: column;
    gap: var(--space-md);
  }

  .celebrate-phones img {
    max-width: 240px;
  }

  .watch-showcase {
    max-width: 300px;
    margin: 0 auto;
  }

  /* Feature Showcase */
  .feature-showcase,
  .feature-showcase--reverse {
    flex-direction: column;
    text-align: center;
  }

  .feature-showcase-text {
    max-width: 100%;
  }

  .feature-showcase-image img {
    max-width: 300px;
  }

  .mini-cards {
    grid-template-columns: 1fr;
  }

  .mini-card {
    text-align: left;
  }

  /* Readiness Zones */
  .readiness-zones {
    justify-content: center;
  }

  /* Plans */
  .plans-layout {
    flex-direction: column;
    align-items: center;
  }

  .plans-image {
    order: -1;
  }

  .plans-image img {
    max-width: 260px;
  }

  /* Two-Col Features */
  .two-col-features {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trust-badges {
    justify-content: center;
  }

  /* Stats Bar */
  .stats-bar {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .stats-bar .stat-value {
    font-size: 24px;
  }

  /* Share Showcase */
  .share-showcase img {
    max-width: 260px;
  }

  /* CTA */
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    padding: 0 var(--space-lg);
  }

  .cta-badges {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Steps */
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Pricing */
  .pricing-header {
    padding-top: calc(var(--nav-height) + var(--space-xl));
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card.featured {
    order: -1;
  }

  /* Comparison table */
  .comparison {
    overflow-x: auto;
  }

  /* CTA Banner */
  .cta-banner {
    padding: var(--space-xl) var(--space-lg);
    border-radius: 0;
    margin: 0 -20px;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Legal */
  .legal {
    padding-top: calc(var(--nav-height) + var(--space-xl));
  }

  .legal-content h1 {
    font-size: 28px;
  }
}

/* Phones: show a single representative screenshot per group instead of
   stacking 2-3 vertically (no room to place them side by side). */
@media (max-width: 640px) {
  .celebrate-phones img:not(:first-child) {
    display: none;
  }
}
