/* ==========================================================================
   Nutrition Buddy - Refined Light Design System
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Brand Colors - Fresh, Natural, Premium */
  --primary: #15803D;             /* Deep Emerald Green */
  --primary-hover: #166534;
  --primary-light: #22C55E;
  --primary-subtle: #DCFCE7;       /* Soft Mint */
  --primary-border: #BBF7D0;

  /* Macro Palette (Okabe-Ito Colorblind Aligned) */
  --macro-protein: #009E73;
  --macro-carbs: #D97706;
  --macro-fat: #0284C7;
  --macro-cals: #15803D;

  /* Neutral Light Palette */
  --bg-page: #F8FAFC;              /* Clean Crisp Off-White */
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F1F5F9;
  --border-light: #E2E8F0;
  --border-subtle: #EDF2F7;
  --border-focus: #15803D;

  --text-dark: #0F172A;            /* Slate 900 for High Contrast Titles */
  --text-body: #334155;            /* Slate 700 for Readable Body */
  --text-muted: #64748B;           /* Slate 500 for Secondary Labels */
  --text-dim: #94A3B8;

  /* Layout Measurements */
  --nav-height: 74px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Subtle Shadows (Apple / Stripe style) */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 40px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.975rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(21, 128, 61, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(21, 128, 61, 0.35);
}

.btn-secondary {
  background: var(--bg-surface);
  border-color: var(--border-light);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-surface-alt);
  border-color: var(--text-dim);
  transform: translateY(-1px);
}

/* Google Play Store Official Button */
.btn-playstore {
  background: #0F172A;
  color: #FFFFFF;
  border-radius: 14px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  transition: all 0.2s ease;
}

.btn-playstore:hover {
  background: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
}

.btn-playstore-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.btn-playstore-text {
  text-align: left;
  line-height: 1.15;
}

.btn-playstore-text .subtext {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94A3B8;
  display: block;
}

.btn-playstore-text .maintext {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

/* Subtle Pill Badge */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.pill-badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--primary);
  border-radius: 50%;
}

/* Header & Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  transition: all 0.25s ease;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
}

.brand-icon-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--text-dark);
}

.nav-cta-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta-btn {
  padding: 10px 22px;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.nav-toggle-btn:hover {
  background: var(--bg-surface-alt);
  border-color: var(--text-dim);
}

.nav-toggle-btn .icon-close {
  display: none;
}

.nav-toggle-btn.is-active .icon-menu {
  display: none;
}

.nav-toggle-btn.is-active .icon-close {
  display: block;
}

/* Hero Section */
.hero-section {
  padding-top: calc(var(--nav-height) + 54px);
  padding-bottom: 70px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  line-height: 1.12;
  margin-bottom: 22px;
  color: var(--text-dark);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-body);
  margin-bottom: 34px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item svg {
  width: 17px;
  height: 17px;
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   Realistic Phone Mockup (Accurate to Flutter App Theme & Widgets)
   ========================================================================== */
.hero-phone-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
  z-index: 1;
  width: 310px;
  max-width: 100%;
  aspect-ratio: 469 / 1024;
  background: #FFFFFF;
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.08);
  border: 4px solid #CBD5E1;
}

.phone-screen {
  background: #FFFFFF;
  border-radius: 32px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.screenshot-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.screenshot-fallback {
  width: 100%;
  height: 100%;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 20px;
  background: #CBD5E1;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

/* Inside Mockup UI */
.app-ui-header {
  padding: 26px 14px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
  border-bottom: 1px solid #EEEEEE;
}

.app-ui-brand-text {
  font-weight: 700;
  color: #1E1E1E;
  font-size: 14px;
}

.app-ui-date-text {
  font-size: 11px;
  color: #757575;
}

.app-ui-scroll {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Flutter-Accurate Daily Progress Card */
.mock-progress-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #EEEEEE;
}

.mock-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
}

.mock-progress-header .title {
  font-weight: 700;
  color: #757575;
}

.mock-progress-header .cals {
  font-weight: 700;
  color: #1E1E1E;
}

.mock-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(30, 30, 30, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.mock-progress-bar-fill {
  width: 72%;
  height: 100%;
  background: #009E73; /* AppColors.cbGreen */
  border-radius: 4px;
}

.mock-macro-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding-top: 4px;
  border-top: 1px solid #F5F5F5;
}

.mock-macro-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mock-macro-col span:first-child {
  font-weight: 700;
}

.mock-macro-col span:last-child {
  color: #757575;
  font-size: 10px;
}

/* Flutter-Accurate Snap Camera Placeholder Card */
.mock-camera-box {
  background: #FFFFFF;
  border-radius: 20px;
  border: 2px dashed #E0E0E0;
  padding: 22px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mock-camera-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #F1F8E9;
  color: #8BC34A; /* Flutter App _primaryColor */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 2px;
}

.mock-camera-title {
  font-weight: 600;
  font-size: 12px;
  color: #1E1E1E;
}

.mock-camera-ref {
  font-size: 10px;
  color: #757575;
  background: #F5F5F5;
  padding: 3px 8px;
  border-radius: 8px;
  margin-top: 4px;
}

/* Flutter-Accurate Meal Card */
.mock-meal-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #EEEEEE;
}

.mock-meal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.mock-meal-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #1E1E1E;
}

.mock-meal-cals {
  font-size: 11px;
  font-weight: 700;
  color: #15803D;
  background: #DCFCE7;
  padding: 2px 7px;
  border-radius: 6px;
}

.mock-ingredients-pill {
  font-size: 10.5px;
  color: #64748B;
  line-height: 1.4;
  margin-bottom: 10px;
}

.mock-action-row {
  display: flex;
  gap: 6px;
}

.mock-log-btn {
  flex: 1;
  background: #8BC34A;
  color: #000000;
  font-weight: 700;
  font-size: 10.5px;
  padding: 6px 0;
  border-radius: 8px;
  border: none;
  text-align: center;
}

/* Flutter-Accurate Bottom Navigation Bar */
.mock-bottom-nav {
  height: 48px;
  background: #FFFFFF;
  border-top: 1px solid #EEEEEE;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
}

.mock-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 9px;
  color: #9E9E9E;
  gap: 2px;
}

.mock-nav-item.active {
  color: #8BC34A;
  font-weight: 700;
}

/* Stats Ribbon */
.stats-section {
  padding: 36px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 60px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  margin-bottom: 14px;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Features Grid */
.features-section {
  padding: 60px 0 90px;
}

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

.feature-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
}

.feature-card.span-2 {
  grid-column: span 2;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.feature-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}



/* How It Works Section */
.steps-section {
  padding: 80px 0;
}

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

.step-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  color: #DCFCE7;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Screenshots Showcase Section */
.screenshots-section {
  padding: 84px 0;
  background: var(--bg-surface-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 820px;
  margin: 0 auto;
}

.screenshot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.screenshot-phone-frame {
  width: 270px;
  max-width: 100%;
  aspect-ratio: 469 / 1024;
  background: #FFFFFF;
  border-radius: 36px;
  padding: 6px;
  box-shadow: 0 18px 40px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.06);
  border: 3.5px solid #CBD5E1;
  overflow: hidden;
  margin-bottom: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.screenshot-phone-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.screenshot-frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  display: block;
}

.screenshot-card-caption h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.screenshot-card-caption p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 320px;
}

@media (max-width: 768px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item.active {
  border-color: #CBD5E1;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
}

.faq-chevron {
  transition: transform 0.25s ease;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.25s ease;
  padding: 0 24px;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 260px;
  padding: 0 24px 20px;
}

/* Call to Action Banner */
.download-banner-section {
  padding: 90px 0 110px;
}

.cta-banner {
  background: linear-gradient(135deg, #15803D 0%, #166534 100%);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 16px 40px -8px rgba(21, 128, 61, 0.35);
}

.cta-banner h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  color: #FFFFFF;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 1.1rem;
  color: #DCFCE7;
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

/* Footer */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding: 60px 0 32px;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr) 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mobile Sticky Download Bar */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-light);
  padding: 12px 20px;
  z-index: 99;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.mobile-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Legal Content Container */
.legal-page-header {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 30px;
  text-align: center;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
}

.legal-content-container {
  max-width: 820px;
  margin: 40px auto 90px;
  padding: 44px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.legal-content-container h2 {
  font-size: 1.45rem;
  color: var(--text-dark);
  margin-top: 32px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.legal-content-container h2:first-of-type {
  margin-top: 8px;
}

.legal-content-container p, .legal-content-container li {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-content-container ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions, .hero-trust-strip {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card.span-2 {
    grid-column: span 1;
  }
  .preview-layout {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }
  .container {
    padding: 0 16px;
  }
  .brand-logo {
    font-size: 1.15rem;
    gap: 8px;
    flex-shrink: 0;
  }
  .brand-icon-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .nav-cta-wrapper {
    gap: 8px;
    flex-shrink: 0;
  }
  .nav-cta-btn {
    display: none !important;
  }
  .nav-toggle-btn {
    display: flex;
    width: 38px;
    height: 38px;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    gap: 0;
    z-index: 101;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-menu .nav-link {
    display: block;
    padding: 12px 4px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-subtle);
  }
  .hero-section {
    padding-top: calc(var(--nav-height) + 28px);
    padding-bottom: 48px;
  }
  .hero-title {
    font-size: clamp(1.85rem, 6.2vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 16px;
  }
  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }
  .hero-actions {
    gap: 12px;
    margin-bottom: 28px;
  }
  .btn-playstore {
    padding: 10px 20px;
    border-radius: 12px;
  }
  .btn-playstore-icon {
    width: 22px;
    height: 22px;
  }
  .btn-playstore-text .subtext {
    font-size: 0.6rem;
  }
  .btn-playstore-text .maintext {
    font-size: 1.05rem;
  }
  .hero-phone-wrapper {
    margin-top: 10px;
  }
  .phone-mockup {
    width: 260px;
    border-radius: 36px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .stats-section {
    padding: 24px 0;
    margin-bottom: 40px;
  }
  .features-section, .steps-section, .screenshots-section, .faq-section {
    padding: 50px 0;
  }
  .features-grid, .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card, .step-card {
    padding: 24px 20px;
  }
  .mobile-sticky-cta {
    display: block;
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
  }
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .legal-content-container {
    padding: 20px 16px;
    margin: 20px 12px 60px;
  }
  .cta-banner {
    padding: 36px 20px;
  }
}

@media (max-width: 420px) {
  :root {
    --nav-height: 58px;
  }
  .container {
    padding: 0 12px;
  }
  .brand-logo {
    font-size: 1.05rem;
    gap: 6px;
  }
  .brand-icon-img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }
  .nav-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .hero-trust-strip {
    gap: 12px;
  }
  .trust-item {
    font-size: 0.8rem;
  }
}
