/* ==========================================================================
   Mobilinker Design System & Component Library (v2.0)
   100% Static, Mobile-First, WCAG AA Accessible Fintech Design
   ========================================================================== */

:root {
  /* Brand & Surface Palette */
  --bg-primary: #070B14;
  --bg-secondary: #0C1322;
  --bg-tertiary: #131C31;
  --bg-card: #10192D;
  --bg-card-hover: #16223C;
  --bg-elevated: #1A2744;

  /* Borders */
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --border-focus: #38BDF8;

  /* Brand Colors */
  --emerald-500: #10B981;
  --emerald-600: #059669;
  --emerald-400: #34D399;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --emerald-text-on: #041A11;

  --cyan-400: #38BDF8;
  --cyan-500: #06B6D4;
  --cyan-soft: rgba(56, 189, 248, 0.12);

  --indigo-400: #818CF8;
  --indigo-500: #6366F1;
  --indigo-soft: rgba(99, 102, 241, 0.14);

  /* Semantic Status Colors */
  --amber-400: #FBBF24;
  --amber-500: #F59E0B;
  --amber-soft: rgba(251, 191, 36, 0.12);

  --rose-400: #FB7185;
  --rose-500: #F43F5E;
  --rose-soft: rgba(244, 63, 94, 0.12);

  /* Typography Colors (WCAG AA+ on #070B14 & #10192D) */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;

  /* Typography Families */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Nirmala UI', 'Noto Sans', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 12px 28px -8px rgba(0, 0, 0, 0.45);
  --shadow-glow-emerald: 0 0 28px -6px rgba(16, 185, 129, 0.28);

  /* Layout */
  --container-max: 1200px;
  --nav-height: 74px;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  padding-top: var(--nav-height);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 75% 45% at 50% -15%, rgba(16, 185, 129, 0.11), transparent 70%),
    radial-gradient(circle 500px at 90% 18%, rgba(99, 102, 241, 0.07), transparent 65%);
  overflow-x: hidden;
}

/* Skip Link for Keyboard Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--emerald-500);
  color: var(--emerald-text-on);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

/* Focus Indicators */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

/* WebView Embed Mode (?mode=app) */
.is-app-embed body {
  padding-top: 16px;
  padding-bottom: 24px;
}
.is-app-embed .navbar,
.is-app-embed .footer,
.is-app-embed .cta-banner,
.is-app-embed .mobile-sticky-cta,
.is-app-embed .breadcrumbs {
  display: none !important;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.125rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.625rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.68;
}

a {
  color: var(--cyan-400);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.tabular-nums {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.text-emerald { color: var(--emerald-400); }
.text-cyan { color: var(--cyan-400); }
.text-indigo { color: var(--indigo-400); }
.text-amber { color: var(--amber-400); }
.text-rose { color: var(--rose-400); }
.text-muted { color: var(--text-muted); }

/* Container & Sections */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}
.section-alt {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.section-header {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-header p {
  margin-top: 12px;
  font-size: 1.075rem;
}

/* Badges / Eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--emerald-soft);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.28);
  margin-bottom: 16px;
}
.eyebrow-indigo {
  background: var(--indigo-soft);
  color: var(--indigo-400);
  border-color: rgba(129, 140, 248, 0.3);
}
.eyebrow-cyan {
  background: var(--cyan-soft);
  color: var(--cyan-400);
  border-color: rgba(56, 189, 248, 0.3);
}
.eyebrow-amber {
  background: var(--amber-soft);
  color: var(--amber-400);
  border-color: rgba(251, 191, 36, 0.3);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.navbar.scrolled {
  background: rgba(7, 11, 20, 0.96);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}
.nav-brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.nav-brand-text span {
  color: var(--emerald-400);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links > li > a,
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links > li > a:hover,
.nav-links > li > a.active,
.nav-dropdown-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-card);
  display: none;
  z-index: 1100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
}
.nav-dropdown-menu a:hover {
  background: var(--bg-tertiary);
  text-decoration: none;
}
.nav-dropdown-menu strong {
  font-size: 0.9375rem;
  font-weight: 700;
}
.nav-dropdown-menu span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.lang-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.lang-pill-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.35rem;
  cursor: pointer;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-sm {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.9375rem;
}

.btn-primary {
  background: var(--emerald-500);
  color: var(--emerald-text-on);
  box-shadow: var(--shadow-glow-emerald);
}
.btn-primary:hover {
  background: var(--emerald-400);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--cyan-400);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* ==========================================================================
   Hero & Page Headers
   ========================================================================== */
.hero {
  padding: 56px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
}
.hero-subtitle {
  margin-top: 18px;
  font-size: 1.15rem;
  max-width: 580px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  flex-shrink: 0;
}

.page-hero {
  padding: 44px 0 48px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
}
.page-hero-inner {
  max-width: 820px;
}
.page-hero p {
  margin-top: 14px;
  font-size: 1.125rem;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumbs a {
  color: var(--text-secondary);
}
.breadcrumbs a:hover {
  color: var(--emerald-400);
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

/* Clickable Feature Cards */
.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: var(--emerald-500);
  box-shadow: var(--shadow-card);
  text-decoration: none;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  background: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-bottom: 16px;
}
.feature-icon-indigo {
  background: var(--indigo-soft);
  border-color: rgba(129, 140, 248, 0.28);
}
.feature-icon-cyan {
  background: var(--cyan-soft);
  border-color: rgba(56, 189, 248, 0.28);
}
.feature-icon-amber {
  background: var(--amber-soft);
  border-color: rgba(251, 191, 36, 0.28);
}
.feature-benefit {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--emerald-400);
  margin: 6px 0 10px;
}
.feature-card p {
  font-size: 0.95rem;
  flex-grow: 1;
}
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--cyan-400);
}
.feature-card:hover .feature-link {
  color: var(--emerald-400);
}

/* Problem Cards */
.problem-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.problem-tag {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--amber-400);
}
.problem-solution {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ==========================================================================
   Conceptual App Mockups (Clearly Labelled)
   ========================================================================== */
.mockup-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.phone-frame {
  width: 100%;
  max-width: 350px;
  background: #0B1220;
  border: 2px solid var(--border-strong);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.phone-notch {
  width: 96px;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-pill);
  margin: 0 auto 14px;
}
.mockup-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--emerald-soft);
  color: var(--emerald-400);
}
.mockup-caption {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}
.mockup-card-inner {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 12px;
}
.battery-bar-track {
  height: 12px;
  border-radius: var(--radius-pill);
  background: #070B14;
  overflow: hidden;
  margin: 10px 0 6px;
}
.battery-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--emerald-500);
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* ==========================================================================
   Interactive Simulators & Plain-English Term Boxes
   ========================================================================== */
.simulator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.sim-field {
  margin-bottom: 18px;
}
.sim-field label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.sim-field input[type="range"] {
  width: 100%;
  accent-color: var(--emerald-500);
  min-height: 36px;
  cursor: pointer;
}
.sim-input, .form-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}
.sim-result-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.plain-term {
  background: var(--bg-tertiary);
  border-left: 3px solid var(--cyan-400);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 18px;
  margin: 14px 0;
}
.plain-term strong {
  color: var(--text-primary);
}

.disclaimer-box {
  background: var(--amber-soft);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Steps / Workflow
   ========================================================================== */
.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--emerald-500);
  color: var(--emerald-text-on);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 14px;
}

/* ==========================================================================
   Pricing Cards
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.pricing-card-featured {
  border: 2px solid var(--emerald-500);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-card) 45%);
  box-shadow: var(--shadow-glow-emerald);
}
.price-amount {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 12px 0 4px;
}
.price-list {
  list-style: none;
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   FAQ Accordions & Category Tabs
   ========================================================================== */
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.faq-tab-btn {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.faq-tab-btn.active,
.faq-tab-btn:hover {
  background: var(--emerald-soft);
  border-color: var(--emerald-500);
  color: var(--emerald-400);
}
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item[hidden] {
  display: none;
}
.faq-question {
  width: 100%;
  min-height: 56px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.faq-question::after {
  content: '+';
  font-size: 1.35rem;
  color: var(--emerald-400);
  flex-shrink: 0;
}
.faq-item.open .faq-question::after {
  content: '−';
}
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-secondary);
}
.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   CTA Banner & Footer
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(56, 189, 248, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius-xl);
  padding: 44px 32px;
  text-align: center;
}
.cta-banner p {
  max-width: 620px;
  margin: 12px auto 24px;
}

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  display: inline-block;
  padding: 4px 0;
  font-size: 0.925rem;
  color: var(--text-secondary);
}
.footer-links a:hover {
  color: var(--emerald-400);
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Modals, Toast, Legal Pages & Mobile Sticky Bar
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}
.modal-backdrop.open,
.modal-backdrop.active {
  display: flex;
}
.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
}
.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
}
.toast-msg {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--emerald-500);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3000;
}
.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}
.privacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.mobile-sticky-cta {
  display: none;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .sim-grid {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(7, 11, 20, 0.98);
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    background: var(--bg-primary);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 6px;
    overflow-y: auto;
    z-index: 999;
    border-top: 1px solid var(--border-subtle);
  }
  .nav-links.mobile-open {
    display: flex;
  }
  .nav-dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    margin-top: 6px;
    margin-left: 8px;
    min-width: 0;
  }
  .nav-actions .btn-primary {
    display: none;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  body {
    padding-bottom: 84px;
  }
  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 950;
    background: rgba(7, 11, 20, 0.96);
    border-top: 1px solid var(--border-subtle);
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 52px 0;
  }
  .card,
  .simulator-box,
  .package-selector-wrap,
  .modal-card {
    padding: 18px;
  }
  .cta-banner {
    padding: 28px 18px;
  }
  .hero-cta-row .btn {
    width: 100%;
  }
}


/* ==========================================================================
   Language Sheet, Early Access Tester Modal & Interactive Widget Styles
   ========================================================================== */
.lang-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.82);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  z-index: 2100;
}
.lang-sheet-backdrop.open,
.lang-sheet-backdrop.active {
  display: flex;
}
.lang-sheet-card {
  width: 100%;
  max-width: 460px;
  max-height: 86vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lang-sheet-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-sheet-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lang-sheet-headings {
  flex: 1;
}
.lang-sheet-title {
  font-size: 1.15rem;
}
.lang-sheet-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.sheet-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
}
.lang-sheet-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 46vh;
}
.lang-option-item {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}
.lang-option-item.selected {
  border-color: var(--emerald-500);
  background: var(--emerald-soft);
}

/* QR & Tester Modal Internals */
.modal-qr-container {
  display: flex;
  justify-content: center;
  padding: 18px;
  margin: 16px 0;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
}
.qr-tester-hint {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tester-inline-link {
  background: none;
  border: none;
  color: var(--emerald-400);
  font-weight: 700;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}
.early-access-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}
.ea-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.tester-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tester-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tester-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.tester-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}
.tester-field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.tester-hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.tester-error-msg {
  background: var(--rose-soft);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: var(--rose-400);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}
.tester-divider {
  text-align: center;
  margin: 14px 0 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.tester-existing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tester-existing-actions a {
  flex: 1;
}
.tester-success-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tester-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.tester-summary-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: left;
  font-size: 0.875rem;
  margin-bottom: 14px;
}
.tester-fallback-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Interactive Chips & Pills */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.chip-btn {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.chip-btn.active,
.chip-btn:hover {
  background: var(--emerald-soft);
  border-color: var(--emerald-500);
  color: var(--emerald-400);
}

/* Legal & Content Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.95rem;
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.data-table th {
  color: var(--text-primary);
  background: var(--bg-tertiary);
  font-weight: 700;
}
.data-table td {
  color: var(--text-secondary);
}


/* ==========================================================================
   Subscription Package Selector (Matching App Pricing Sheet)
   ========================================================================== */
.package-selector-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.package-selector-label {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.package-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.package-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.package-option:hover {
  border-color: var(--indigo-400);
  background: var(--bg-tertiary);
}
.package-option.selected {
  border-color: var(--indigo-500);
  background: rgba(99, 102, 241, 0.09);
}
.package-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.package-radio {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 800;
}
.package-option.selected .package-radio {
  background: var(--indigo-500);
  border-color: var(--indigo-500);
  color: #FFFFFF;
}
.package-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}
.package-price {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 2px;
}
.package-strike {
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 4px;
}
.package-badge {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-current {
  background: rgba(16, 185, 129, 0.16);
  color: #34D399;
}
.badge-monthly {
  background: rgba(148, 163, 184, 0.16);
  color: #CBD5E1;
}
.badge-save {
  background: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
}
.badge-founder {
  background: rgba(251, 191, 36, 0.18);
  color: #FBBF24;
}
@media (max-width: 560px) {
  .package-option {
    flex-direction: column;
    align-items: flex-start;
  }
  .package-badge {
    margin-left: 38px;
  }
}


/* Language Item Tiles (rendered by app.js renderLanguageSheet) */
.lang-item-tile {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.lang-item-tile:hover {
  border-color: var(--border-strong);
  background: var(--bg-tertiary);
}
.lang-item-tile.is-active {
  border-color: var(--emerald-500);
  background: var(--emerald-soft);
}
.lang-radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lang-item-tile.is-active .lang-radio-indicator {
  border-color: var(--emerald-400);
}
.lang-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
}
.lang-item-tile.is-active .lang-radio-dot {
  background: var(--emerald-400);
}
.lang-text-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.lang-name-native {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-primary);
}
.lang-name-english {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.lang-check-badge {
  color: var(--emerald-400);
  font-weight: 800;
  opacity: 0;
}
.lang-item-tile.is-active .lang-check-badge {
  opacity: 1;
}

/* Float Simulator Card Breakdown (rendered by app.js updateFloatSimulator) */
#sim-card-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.sim-card-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sim-card-item.is-best {
  border-color: var(--emerald-500);
  background: rgba(16, 185, 129, 0.08);
}
.sim-card-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  color: var(--text-primary);
}
.best-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--emerald-500);
  color: var(--emerald-text-on);
}
.sim-card-item-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.sim-card-item-days {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cyan-400);
  font-family: var(--font-mono);
}
.sim-card-item.is-best .sim-card-item-days {
  color: var(--emerald-400);
}
.sim-card-item-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
@media (max-width: 768px) {
  #sim-card-breakdown {
    grid-template-columns: 1fr;
  }
}
