/* ==========================================================================
   Rotamatik.app — Liquid Glass & Emerald Design System
   Matches Rotamatik Mobile App Palette (Dark Obsidian & Clean Mint Light)
   ========================================================================== */

:root {
  --bg: #070b12;
  --bg-elevated: #0c1322;
  --surface: rgba(19, 29, 46, 0.66);
  --surface-solid: #161f30;
  --surface-muted: rgba(28, 39, 60, 0.68);
  --surface-pill: rgba(34, 48, 74, 0.72);
  --nav-bg: rgba(10, 17, 29, 0.76);
  --border: rgba(255, 255, 255, 0.13);
  --border-emerald: rgba(16, 185, 129, 0.36);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-soft: #6ee7b7;
  --emerald-dark: #047857;
  --emerald-deep: #064e3b;
  --mint-bg: rgba(16, 185, 129, 0.14);

  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  --shadow-glow: 0 12px 32px rgba(16, 185, 129, 0.25);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  --container: 1180px;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-solid: #ffffff;
  --surface-muted: #f1f5f9;
  --surface-pill: #eef2f6;
  --nav-bg: rgba(255, 255, 255, 0.84);
  --border: rgba(15, 23, 42, 0.09);
  --border-emerald: rgba(6, 95, 70, 0.22);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --emerald: #059669;
  --emerald-bright: #10b981;
  --emerald-soft: #047857;
  --emerald-dark: #065f46;
  --emerald-deep: #064e3b;
  --mint-bg: rgba(16, 185, 129, 0.12);

  --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.07), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 12px 28px rgba(5, 150, 105, 0.22);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section[id],
h2[id],
#heroSim {
  scroll-margin-top: 96px;
}

:focus-visible {
  outline: 2px solid var(--emerald-bright);
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.28s ease, color 0.28s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Ambient Liquid Mesh Background Orbs */
.liquid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.42;
  transition: opacity 0.3s ease;
}

html[data-theme="light"] .orb {
  opacity: 0.22;
}

.orb-1 {
  width: 560px;
  height: 560px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
}

.orb-2 {
  width: 480px;
  height: 480px;
  top: 28%;
  right: -140px;
  background: radial-gradient(circle, #047857 0%, transparent 70%);
}

.orb-3 {
  width: 520px;
  height: 520px;
  bottom: -180px;
  left: 25%;
  background: radial-gradient(circle, #0e7490 0%, transparent 72%);
}

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

/* Glass Card Utility */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.34);
}

.btn-secondary {
  background: var(--surface-muted);
  color: var(--text-primary);
  border-color: var(--border);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: var(--border-emerald);
  background: var(--mint-bg);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.875rem;
  border-radius: 12px;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  transition: padding 0.25s ease;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 18px;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 52px;
  width: auto;
}

.site-footer .brand-logo {
  height: 58px;
}

html[data-theme="dark"] .logo-light,
html[data-theme="light"] .logo-dark {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text-primary);
  background: var(--mint-bg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.18s ease;
}

.theme-toggle:hover {
  border-color: var(--border-emerald);
  background: var(--mint-bg);
}

html[data-theme="dark"] .icon-moon,
html[data-theme="light"] .icon-sun {
  display: none;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  display: none;
  margin-top: 10px;
  padding: 16px;
  border-radius: var(--radius-lg);
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer a {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.mobile-drawer a:hover {
  color: var(--text-primary);
  background: var(--mint-bg);
}

/* Hero Section */
.hero {
  padding: 54px 0 72px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--mint-bg);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-bright);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

html[data-theme="light"] .eyebrow {
  color: var(--emerald-dark);
}

.eyebrow .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4.4vw, 3.45rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(120deg, #6ee7b7 0%, #10b981 52%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .gradient-text {
  background: linear-gradient(120deg, #10b981 0%, #047857 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  margin: 0 0 28px;
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-pill svg {
  color: var(--emerald-bright);
  flex-shrink: 0;
}

/* Interactive Phone Mockup in Hero */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 100%;
  max-width: 390px;
  padding: 16px;
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.16), var(--surface) 45%);
  border: 1px solid var(--border-emerald);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.55), 0 0 60px rgba(16, 185, 129, 0.12);
  backdrop-filter: blur(26px);
}

html[data-theme="light"] .phone-frame {
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.14), 0 0 40px rgba(16, 185, 129, 0.12);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.phone-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 0.98rem;
}

.phone-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.phone-route-badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--mint-bg);
  color: var(--emerald-bright);
  border: 1px solid var(--border-emerald);
}

html[data-theme="light"] .phone-route-badge {
  color: var(--emerald-dark);
}

.mock-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}

.mock-route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.mock-route-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* Segmented Controls inside Simulator */
.sim-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--surface-muted);
  padding: 4px;
  border-radius: 12px;
  margin-top: 10px;
}

.sim-pill-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 7px 4px;
  border-radius: 9px;
  transition: all 0.18s ease;
}

.sim-pill-btn.active {
  background: linear-gradient(135deg, #10b981, #047857);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}

.sim-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.sim-route-opt {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-secondary);
  text-align: left;
  transition: all 0.18s ease;
}

.sim-route-opt strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text-primary);
}

.sim-route-opt span {
  font-size: 0.72rem;
}

.sim-route-opt.active {
  border-color: var(--emerald);
  background: var(--mint-bg);
}

/* Total Cost Dark Summary Card */
.mock-summary {
  background: linear-gradient(145deg, #071915 0%, #0c2c23 55%, #070f17 100%);
  border: 1px solid rgba(16, 185, 129, 0.42);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
  color: #f8fafc;
}

.mock-summary-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a7f3d0;
}

.mock-summary-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 4px 0 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.mock-summary-currency {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.mock-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mock-sub-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 10px;
}

.mock-sub-box span {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
}

.mock-sub-box strong {
  font-size: 0.9rem;
  color: #ffffff;
}

/* Split Card */
.split-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}

.stepper button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  background: var(--surface-solid);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stepper button:hover {
  background: var(--emerald);
  color: #ffffff;
}

.stepper span {
  font-size: 0.85rem;
  font-weight: 800;
  min-width: 48px;
  text-align: center;
}

.per-person-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--mint-bg);
  border: 1px solid var(--border-emerald);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.per-person-box span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.per-person-box strong {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--emerald-bright);
}

html[data-theme="light"] .per-person-box strong {
  color: var(--emerald-dark);
}

/* Mock Dock */
.mock-dock {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
  border-radius: 22px;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mock-dock .dock-active {
  background: var(--mint-bg);
  color: var(--emerald-bright);
  border-radius: 14px;
  padding: 5px 2px;
}

.mock-dock div {
  padding: 5px 2px;
}

/* Section Headers */
.section {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald-bright);
  margin-bottom: 10px;
}

html[data-theme="light"] .section-tag {
  color: var(--emerald-dark);
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.02rem;
}

/* Features Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-emerald);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--mint-bg);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

html[data-theme="light"] .feature-icon {
  color: var(--emerald-dark);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* 5-Tab App Showcase */
.tabs-showcase {
  padding: 28px;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.tab-btn {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, #10b981, #047857);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.tab-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.tab-panel.active {
  display: grid;
}

.tab-panel-info h3 {
  margin: 0 0 12px;
  font-size: 1.55rem;
  font-weight: 800;
}

.tab-panel-info p {
  margin: 0 0 18px;
  color: var(--text-secondary);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.check-list svg {
  color: var(--emerald-bright);
  flex-shrink: 0;
  margin-top: 3px;
}

.tab-visual {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.compare-demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.compare-demo-row.winner {
  border-color: var(--emerald);
  background: var(--mint-bg);
}

.compare-demo-row:last-child {
  margin-bottom: 0;
}

/* How it Works Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  padding: 28px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 16px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.step-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

/* Popular Routes & SEO Guide */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.route-seo-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.route-seo-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-emerald);
}

.route-seo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.route-seo-head h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
}

.route-km-badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--mint-bg);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-bright);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

html[data-theme="light"] .route-km-badge {
  color: var(--emerald-dark);
}

.route-seo-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.route-seo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.seo-guide-box {
  padding: 26px 28px;
}

.seo-guide-box h3 {
  margin: 0 0 10px;
  font-size: 1.14rem;
  font-weight: 700;
}

.seo-guide-box p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* FAQ Accordion */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 20px 24px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color 0.18s ease;
}

.faq-question:hover {
  background: var(--mint-bg);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.22s ease;
  color: var(--emerald-bright);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* CTA Banner */
.cta-banner {
  padding: 48px 36px;
  text-align: center;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.18), var(--surface) 60%);
  border: 1px solid var(--border-emerald);
}

.cta-banner h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
}

.cta-banner p {
  margin: 0 auto 26px;
  max-width: 580px;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 42px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 340px;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--emerald-bright);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Legal Pages */
.legal-wrap {
  padding: 48px 0 72px;
}

.legal-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px;
}

.legal-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

.legal-card h2 {
  margin: 32px 0 12px;
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--emerald-bright);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

html[data-theme="light"] .legal-card h2 {
  color: var(--emerald-dark);
}

.legal-card h3 {
  margin: 20px 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.legal-card a {
  color: var(--emerald-bright);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-theme="light"] .legal-card a {
  color: var(--emerald-dark);
}

.legal-card ul,
.legal-card ol {
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.legal-box {
  background: var(--mint-bg);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
  color: var(--text-primary);
  font-size: 0.94rem;
}

.legal-toc {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0 28px;
}

.legal-toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.legal-toc ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal-table th {
  background: var(--surface-muted);
  color: var(--text-primary);
  font-weight: 700;
}

.legal-table td {
  color: var(--text-secondary);
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .legal-toc ul {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (min-width: 981px) {
  .mobile-drawer.open {
    display: none;
  }
}

@media (max-width: 980px) {
  .nav-links,
  .nav-cta-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-grid,
  .tab-panel {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .brand-logo {
    height: 42px;
  }

  .bento-grid,
  .steps-grid,
  .routes-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-card {
    padding: 24px;
  }
}
