/* ==========================================================================
   Hospalia PMS - Professional Modern SaaS Landing Page Stylesheet
   Crafted with Vanilla CSS · Pure 60fps performance · No frameworks
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color Palette - Mediterranean Modern */
  --bg-body: #080d18;
  --bg-surface: #0e1626;
  --bg-surface-elevated: #141f36;
  --bg-glass: rgba(14, 22, 38, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(59, 130, 246, 0.5);
  
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.35);
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.25);
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #8b5cf6;

  /* Typography */
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Spacing */
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  /* Shadows & Effects */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 50px -10px var(--primary-glow);
}

/* Light mode support override */
@media (prefers-color-scheme: light) {
  :root {
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-focus: rgba(37, 99, 235, 0.4);
    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
  }
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Background Ambient Lighting */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 900px;
  background: 
    radial-gradient(circle 600px at 20% 10%, rgba(37, 99, 235, 0.15), transparent 70%),
    radial-gradient(circle 500px at 80% 20%, rgba(6, 182, 212, 0.12), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ── Typography & Headings ───────────────────────────────────────── */
h1, h2, h3, h4, .plan-name, .logo {
  font-family: var(--font-title);
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.grad {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 680px;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px var(--primary-glow);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px rgba(37, 99, 235, 0.5);
  filter: brightness(1.08);
}

.btn.ghost {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn.lg {
  padding: 16px 30px;
  font-size: 1.05rem;
}

.btn.full-w {
  width: 100%;
}

/* ── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 16px 0;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.logo .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  border-radius: 10px;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

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

.nav-cta .login {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  transition: color 0.2s ease;
}

.nav-cta .login:hover {
  color: var(--text-main);
}

/* ── Hero Section ───────────────────────────────────────────────── */
.hero {
  padding: 80px 0 70px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
  margin-bottom: 20px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-note svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

/* ── Hero Live Frontdesk OS Widget (Interactive Mockup) ──────────── */
.frontdesk-os {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
}

.os-topbar {
  background: var(--bg-surface-elevated);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.os-dots {
  display: flex;
  gap: 6px;
}

.os-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.os-dots span:nth-child(1) { background: #ef4444; }
.os-dots span:nth-child(2) { background: #f59e0b; }
.os-dots span:nth-child(3) { background: #10b981; }

.os-url {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 12px;
  border-radius: 6px;
}

.os-content {
  padding: 24px;
}

.os-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.os-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.os-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-green);
  background: var(--accent-green-glow);
  padding: 4px 10px;
  border-radius: 999px;
}

.os-live-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}

.os-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.os-kpi {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: left;
}

.os-kpi .val {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-title);
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 4px;
}

.os-kpi .lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.os-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
  transition: background 0.2s;
}

.feed-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.feed-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.feed-avatar.green { background: var(--accent-green-glow); color: var(--accent-green); }
.feed-avatar.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.feed-avatar.amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.feed-info strong {
  display: block;
  font-size: 0.9rem;
}

.feed-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.feed-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.feed-badge.success {
  background: var(--accent-green-glow);
  color: var(--accent-green);
}

.feed-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

/* ── Trust & Social Proof Bar ───────────────────────────────────── */
.trust-bar {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 30px 0;
}

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

.stat-val {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-title);
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Interactive Camping Map Simulator Section ──────────────────── */
.section {
  padding: 100px 0;
  position: relative;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-head.text-center {
  text-align: center;
}

.section-head h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.map-simulator-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.map-canvas-wrap {
  background: #060a12;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.map-legend {
  display: flex;
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.legend-dot.free { background: var(--accent-green); }
.legend-dot.busy { background: var(--primary); }
.legend-dot.warning { background: var(--accent-amber); }

/* SVG Map Grid Layout */
.camping-svg-map {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  cursor: default;
}

.map-plot {
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-plot:hover {
  filter: brightness(1.3);
  transform: translateY(-2px);
}

.map-plot.active rect, .map-plot.active path {
  stroke: #ffffff;
  stroke-width: 2.5px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

.map-detail-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.detail-header {
  margin-bottom: 20px;
}

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

.plot-id-badge {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: var(--font-title);
  color: var(--text-main);
}

.detail-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.status-free { background: var(--accent-green-glow); color: var(--accent-green); }
.status-busy { background: rgba(37, 99, 235, 0.2); color: #60a5fa; }
.status-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.detail-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.detail-list li .k {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.detail-list li .v {
  font-weight: 600;
  color: var(--text-main);
}

.detail-pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}

.badge-success { background: var(--accent-green-glow); color: var(--accent-green); }
.badge-muted { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }

/* ── Interactive OCR Scanner Simulator ──────────────────────────── */
.ocr-sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-top: 40px;
}

.ocr-scanner-visual {
  position: relative;
  background: #060a12;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow: hidden;
}

.ocr-dni-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  position: relative;
}

.dni-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dni-body {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.dni-photo-placeholder {
  width: 70px;
  height: 85px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dni-fields div {
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.dni-fields strong {
  color: #ffffff;
}

.dni-mrz {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #38bdf8;
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px;
  border-radius: 6px;
  word-break: break-all;
}

/* Scanner Laser Animation */
.scan-laser {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, #10b981, transparent);
  box-shadow: 0 0 15px #38bdf8;
}

.ocr-scanner-visual.scanning .scan-laser {
  display: block;
  animation: scan-move 1.5s ease-in-out infinite alternate;
}

@keyframes scan-move {
  0% { top: 10%; }
  100% { top: 90%; }
}

.ocr-steps-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}

.ocr-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.ocr-step.active {
  color: #38bdf8;
  font-weight: 700;
}

.ocr-step.active .step-icon {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

.ocr-step.done {
  color: var(--accent-green);
}

.ocr-step.done .step-icon {
  border-color: var(--accent-green);
  background: var(--accent-green-glow);
  color: var(--accent-green);
}

/* ── Deep PMS Feature Tabs System ────────────────────────────────── */
.module-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.module-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-tab-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.module-tab-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.15));
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 20px -2px var(--primary-glow);
}

.module-panel {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 44px;
  animation: fadeIn 0.3s ease-out forwards;
}

.module-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.module-panel-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.module-panel h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.module-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 32px;
}

.module-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--text-secondary);
}

.module-bullets svg {
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 3px;
}

/* UI Card Mockup inside Panels */
.panel-mockup-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

/* ── Comparison Table: Hospalia vs Traditional PMS ──────────────── */
.comparison-wrap {
  margin-top: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

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

.comparison-table th, .comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: var(--bg-surface-elevated);
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
}

.comparison-table th.highlight {
  color: #38bdf8;
  background: rgba(37, 99, 235, 0.1);
  border-left: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

.comparison-table td.highlight {
  background: rgba(37, 99, 235, 0.04);
  border-left: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  font-weight: 700;
  color: var(--text-main);
}

.check-yes {
  color: var(--accent-green);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.check-no {
  color: #ef4444;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Pricing Grid (3 Plans: Básico, Pro, Enterprise) ─────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--max-width);
  margin: 50px auto 0;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured {
  background: linear-gradient(180deg, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.plan-header {
  text-align: left;
  margin-bottom: 24px;
}

.plan-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 50px;
  margin-bottom: 20px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.plan-price .currency {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
}

.plan-price .amount {
  font-size: 3.4rem;
  font-weight: 900;
  font-family: var(--font-title);
  color: var(--text-main);
  line-height: 1;
}

.plan-price .period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-billing {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.plan-cta {
  margin-bottom: 32px;
}

.plan-features {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  flex: 1;
}

.feat-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.plan-features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.plan-features .check-icon {
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 40px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item svg {
  color: var(--accent-green);
}

/* ── FAQ Accordion ───────────────────────────────────────────────── */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

details {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

details[open] {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-sm);
}

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary svg.chev {
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

details[open] summary svg.chev {
  transform: rotate(180deg);
  color: var(--primary);
}

details p {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-subtle);
  background: #050810;
  padding: 60px 0 40px;
  margin-top: 80px;
}

.foot-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.foot-links, .foot-legal {
  display: flex;
  gap: 20px;
}

.foot-links a, .foot-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.foot-links a:hover, .foot-legal a:hover {
  color: var(--text-main);
}

/* ── Responsive Queries ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .lead {
    margin: 0 auto;
  }
  
  .hero-cta, .hero-note {
    justify-content: center;
  }
  
  .map-simulator-grid, .ocr-sim-grid, .module-panel-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .trust-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .module-tabs-nav {
    flex-direction: column;
  }
  
  .foot-in {
    flex-direction: column;
    text-align: center;
  }
}
