*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

:root {
  --accent: #3b82f6;
  --accent-dim: rgba(59, 130, 246, 0.15);
  --accent-glow: rgba(59, 130, 246, 0.4);
  --green: #5eead4;
  --green-dim: rgba(94, 234, 212, 0.15);
  --pink: #ec4899;
  --pink-dim: rgba(236, 72, 153, 0.15);
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.15);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

[data-theme="dark"] {
  --bg: #09090b;
  --bg-subtle: #0f0f12;
  --bg-card: #141418;
  --bg-card-hover: #1a1a1f;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.1);
  --nav-bg: rgba(9,9,11,0.85);
  --logo-filter: invert(1);
  --shadow-heavy: rgba(0,0,0,0.5);
}

body {
  font-family: 'Geist Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { height: 22px; width: auto; filter: var(--logo-filter); }
.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  padding: 6px 12px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--bg-card); text-decoration: none; }
.nav-link.primary {
  background: var(--accent); color: #fff; font-weight: 600;
}
.nav-link.primary:hover { background: #2563eb; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HUB PAGE ===== */
.hero { text-align: center; padding: 80px 24px 48px; }
.hero h1 { font-size: 36px; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 12px; }
.hero p { font-size: 16px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

.product-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; max-width: 900px; margin: 0 auto 80px; padding: 0 24px;
}
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column; gap: 12px;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.product-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.product-card-icon svg { width: 22px; height: 22px; stroke-width: 2; fill: none; }
.product-card h3 { font-size: 18px; font-weight: 650; }
.product-card .price { font-size: 14px; color: var(--accent); font-weight: 600; }
.product-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.product-card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--accent); margin-top: auto;
}
.product-card .card-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ===== DEMO PAGE LAYOUT ===== */
.demo-page { padding: 48px 0 80px; }
.demo-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: start;
}
@media (max-width: 900px) { .demo-layout { grid-template-columns: 1fr; } }

/* Explainer (left) */
.explainer { padding: 8px 0; }
.explainer .product-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--accent); margin-bottom: 16px;
}
.explainer h2 { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 8px; }
.explainer .tagline { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.6; }

.explainer-section { margin-bottom: 24px; }
.explainer-section h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 10px;
}
.explainer-section ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.explainer-section li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-secondary); line-height: 1.5;
}
.explainer-section li svg {
  width: 16px; height: 16px; stroke: #22c55e; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; margin-top: 2px;
}

.explainer .pricing-badge {
  display: inline-block; padding: 8px 16px; border-radius: 8px;
  background: var(--accent-dim); color: var(--accent);
  font-size: 16px; font-weight: 700; margin-bottom: 20px;
}

.explainer .cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: background 0.2s;
}
.explainer .cta-btn:hover { background: #2563eb; text-decoration: none; }

/* Wizard panel (right) */
.wizard-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky; top: 80px;
}

/* Wizard internals - same as landing page */
.wizard-progress {
  display: flex; align-items: center; gap: 0;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.wizard-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.3s, transform 0.3s;
}
.wizard-dot.active { background: #3b82f6; transform: scale(1.25); }
.wizard-dot.done { background: #22c55e; }
.wizard-line { flex: 1; height: 2px; background: var(--border-strong); transition: background 0.3s; }
.wizard-line.done { background: #22c55e; }

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.wizard-body { padding: 24px; }
.wizard-body h3 { font-size: 16px; font-weight: 650; margin-bottom: 4px; }
.wizard-body .subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }

/* Shared wizard components */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 5px; }
.field input, .field select {
  width: 100%; padding: 9px 12px; border-radius: 8px; font-size: 14px;
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--text);
  outline: none;
}
.otp-row { display: flex; gap: 8px; margin-bottom: 16px; }
.otp-box {
  width: 42px; height: 48px; text-align: center; font-size: 18px; font-weight: 600;
  border-radius: 8px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text);
}
.btn-primary {
  width: 100%; padding: 10px 16px; border: none; border-radius: 8px;
  background: #3b82f6; color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.2s; margin-top: 4px;
}
.btn-primary:hover { background: #2563eb; }
.btn-secondary {
  width: 100%; padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: transparent; color: var(--text); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: background 0.2s; margin-top: 8px;
}
.btn-secondary:hover { background: var(--bg-card-hover); }

.duration-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.duration-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border-strong);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.duration-option:hover { border-color: #3b82f6; }
.duration-option.selected { border-color: #3b82f6; background: rgba(59,130,246,0.08); }
.duration-label { font-size: 14px; font-weight: 500; }
.duration-price { font-size: 14px; font-weight: 600; }
.duration-price.free { color: #22c55e; }

.confirm-icon {
  width: 48px; height: 48px; margin: 0 auto 12px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.confirm-icon.green { background: rgba(34,197,94,0.12); }
.confirm-icon.green svg { stroke: #22c55e; }
.confirm-icon.red { background: rgba(239,68,68,0.12); }
.confirm-icon.red svg { stroke: #ef4444; }
.confirm-icon.amber { background: rgba(245,158,11,0.12); }
.confirm-icon.amber svg { stroke: #f59e0b; }
.confirm-icon svg { width: 24px; height: 24px; fill: none; stroke-width: 2.5; }

.confirm-text { text-align: center; margin-bottom: 20px; }
.confirm-text h3 { font-size: 16px; font-weight: 650; margin-bottom: 4px; }
.confirm-text p { font-size: 13px; color: var(--text-muted); }

.timer {
  text-align: center; font-size: 28px; font-weight: 700;
  letter-spacing: 2px; margin-bottom: 16px; font-variant-numeric: tabular-nums;
}

.detail-card { display: flex; flex-direction: column; }
.detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--border); font-size: 13px;
}
.detail-row:first-child { border-top: none; }
.detail-row .label { color: var(--text-muted); }
.detail-row .value { color: var(--text); font-weight: 500; }
.detail-row .value.green { color: #22c55e; }
.detail-row .value.red { color: #ef4444; }
.detail-row .value.amber { color: #f59e0b; }
.detail-row.total { font-weight: 700; font-size: 14px; border-top: 2px solid var(--border-strong); padding-top: 12px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge.green { background: rgba(34,197,94,0.12); color: #22c55e; }
.badge.red { background: rgba(239,68,68,0.12); color: #ef4444; }
.badge.amber { background: rgba(245,158,11,0.12); color: #f59e0b; }
.badge.blue { background: rgba(59,130,246,0.12); color: #3b82f6; }

.vehicle-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 8px; border: 1px solid var(--border-strong); margin-bottom: 14px;
}
.vehicle-card.selected { border-color: #3b82f6; background: rgba(59,130,246,0.06); }
.vehicle-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(59,130,246,0.1);
  display: flex; align-items: center; justify-content: center;
}
.vehicle-icon svg { width: 18px; height: 18px; stroke: #3b82f6; fill: none; stroke-width: 2; }
.vehicle-info { flex: 1; }
.vehicle-info .name { font-size: 13px; font-weight: 600; }
.vehicle-info .plate { font-size: 12px; color: var(--text-muted); }

/* Surge banner */
.surge-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px; margin-bottom: 16px;
  background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2);
}
.surge-banner svg { width: 18px; height: 18px; stroke: #f59e0b; fill: none; stroke-width: 2; flex-shrink: 0; }
.surge-banner .surge-text { font-size: 13px; color: #f59e0b; font-weight: 600; }

/* Occupancy bar */
.occupancy-bar { height: 8px; border-radius: 4px; background: var(--border-strong); margin: 8px 0 16px; overflow: hidden; }
.occupancy-fill { height: 100%; border-radius: 4px; transition: width 0.8s ease; }
.occupancy-fill.green { background: #22c55e; }
.occupancy-fill.amber { background: #f59e0b; }
.occupancy-fill.red { background: #ef4444; }

/* Feature checklist */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.feature-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text);
}
.feature-list li svg { width: 16px; height: 16px; stroke: #22c55e; fill: none; stroke-width: 2.5; flex-shrink: 0; }

/* Replay button */
.replay-bar {
  padding: 12px 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: center;
}
.replay-btn {
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.replay-btn:hover { color: var(--text); }
.replay-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Implementation spec (collapsible) */
.impl-spec { margin-top: 40px; }
.impl-toggle {
  width: 100%; padding: 14px 20px;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius); color: var(--text-muted);
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: color 0.2s, border-color 0.2s;
}
.impl-toggle:hover { color: var(--text); border-color: var(--accent); }
.impl-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.2s; }
.impl-toggle.open svg { transform: rotate(180deg); }
.impl-content {
  display: none; padding: 20px;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  font-size: 13px; color: var(--text-secondary); line-height: 1.7;
}
.impl-content.open { display: block; }
.impl-content h4 { font-size: 13px; font-weight: 700; color: var(--text); margin: 12px 0 4px; }
.impl-content h4:first-child { margin-top: 0; }
.impl-content code {
  font-family: 'Geist Mono', monospace; font-size: 12px;
  background: var(--bg); padding: 2px 6px; border-radius: 4px;
}
.impl-content a { color: var(--accent); }

/* Plan comparison cards */
.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (max-width: 400px) { .plan-cards { grid-template-columns: 1fr; } }
.plan-card {
  padding: 16px; border-radius: 8px; border: 1px solid var(--border-strong);
  cursor: pointer; transition: border-color 0.2s;
}
.plan-card.selected { border-color: #3b82f6; background: rgba(59,130,246,0.06); }
.plan-card.recommended { border-color: #22c55e; }
.plan-card h4 { font-size: 14px; font-weight: 650; margin-bottom: 4px; }
.plan-card .plan-price { font-size: 18px; font-weight: 700; color: var(--accent); }
.plan-card .plan-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Savings callout */
.savings-callout {
  padding: 12px 16px; border-radius: 8px;
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2);
  font-size: 13px; color: #22c55e; font-weight: 600;
  text-align: center; margin-bottom: 16px;
}

/* Toggle switch */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
}
.toggle-row .toggle-label { font-size: 14px; font-weight: 500; }
.toggle {
  width: 40px; height: 22px; border-radius: 11px;
  background: var(--border-strong); position: relative;
  cursor: pointer; transition: background 0.2s;
}
.toggle.on { background: #22c55e; }
.toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: white; transition: transform 0.2s;
}
.toggle.on::after { transform: translateX(18px); }

/* Revenue split preview */
.split-preview {
  display: flex; gap: 8px; margin: 12px 0;
}
.split-bar {
  height: 8px; border-radius: 4px; transition: width 0.5s;
}
.split-bar.property { background: #22c55e; }
.split-bar.polarity { background: #3b82f6; }
.split-labels {
  display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted);
}

/* Footer */
.footer {
  text-align: center; padding: 40px 24px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
}
