/* MileLog landing page — matches app design system (dark navy + emerald) */
:root {
  /* Surfaces — mirrors src/index.css HSL tokens */
  --bg: hsl(222, 38%, 7%);
  --bg-2: hsl(222, 47%, 8%);
  --surface: hsl(222, 32%, 10%);
  --surface-2: hsl(222, 28%, 14%);
  --border: hsl(222, 24%, 16%);
  --text: hsl(210, 40%, 96%);
  --muted: hsl(215, 18%, 60%);
  /* Brand: emerald */
  --primary: hsl(158, 72%, 52%);
  --primary-2: hsl(170, 80%, 48%);
  --primary-glow: hsl(152, 80%, 62%);
  --accent: hsl(158, 60%, 20%);
  --radius: 0.85rem;
  --container: 1120px;
  --shadow: 0 10px 40px -12px hsl(158, 72%, 30%, 0.45);
  --shadow-card: 0 8px 24px -12px hsl(222, 60%, 2%, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    radial-gradient(60% 60% at 50% 0%, hsl(158, 72%, 52%, 0.18), transparent 70%),
    radial-gradient(900px 500px at -10% 20%, hsl(170, 80%, 48%, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }

h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text); }
.muted { color: var(--muted); }

.grad {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: hsl(222, 40%, 6%, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: var(--shadow); color: hsl(222, 47%, 8%); }
.brand-mark svg { width: 18px; height: 18px; }
.brand-name { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; letter-spacing: -0.01em; }
.nav-links { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease; border: 1px solid transparent; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: hsl(222, 47%, 8%); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }

/* Hero */
.hero { padding: 4rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { display: inline-block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 0.35rem 0.7rem; border: 1px solid var(--border); border-radius: 999px; margin-bottom: 1rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 540px; }
.cta-row { display: flex; gap: 0.75rem; margin: 1.5rem 0 1.25rem; flex-wrap: wrap; }
.trust { list-style: none; display: flex; gap: 1rem; padding: 0; margin: 0; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }

.hero-card { display: grid; place-items: center; }
.phone { width: 280px; height: 560px; border-radius: 36px; background: linear-gradient(180deg, #1c2440, #0e1530); padding: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; }
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 100px; height: 22px; background: #0b1020; border-radius: 999px; }
.phone-screen { width: 100%; height: 100%; border-radius: 26px; background: linear-gradient(180deg, #131a2e, #0f1530); padding: 48px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: hsl(158, 72%, 52%, 0.12); border: 1px solid hsl(158, 72%, 52%, 0.30); }
.stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.stat-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--text); }
.stat-value small { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: 999px; }
.row { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); font-size: 0.9rem; }
.row strong { color: var(--text); }
.row span { color: var(--muted); }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02), transparent); }
.section-title { text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 2.5rem; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: transform 0.2s, border-color 0.2s; }
.feature:hover { transform: translateY(-3px); border-color: hsl(158, 72%, 52%, 0.45); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: hsl(158, 72%, 52%, 0.15); margin-bottom: 0.85rem; font-size: 22px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; max-width: 760px; margin-inline: auto; }
.steps li { display: flex; gap: 1rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps span { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-2)); font-weight: 700; color: hsl(222, 47%, 8%); }
.steps p { margin: 0; color: var(--muted); }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 0.75rem; }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] summary { color: var(--primary-2); }
details p { margin: 0.75rem 0 0; color: var(--muted); }

/* CTA */
.cta-section { background: radial-gradient(800px 300px at 50% 0%, hsl(158, 72%, 52%, 0.18), transparent 60%); }
.cta-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.cta-section p { color: var(--muted); margin-bottom: 1.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: 3rem; background: rgba(0, 0, 0, 0.2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.75rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-grid a { color: var(--text); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--primary-2); }
.copy { color: var(--muted); font-size: 0.85rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* Legal pages */
.legal { padding: 3rem 0 4rem; }
.legal h1 { margin-bottom: 0.25rem; }
.legal h2 { margin-top: 2rem; font-size: 1.3rem; }
.legal ul { color: var(--muted); padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--primary-2); }
.legal a:hover { text-decoration: underline; }
.legal code { background: rgba(255, 255, 255, 0.06); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.9em; }
