/* VANLYFE site in the app's "Night Road" design (android/app/src/main/java/com/kevinpostal/vanlife/ui/Theme.kt):
   asphalt ground, chalk text, one accent, one colour per need, 8-px grid, 12-px radii, hairlines, no shadows. */
:root {
  --ground: #0f1115;
  --text: #f5f5f0;
  --muted: #9aa0a8;
  --rule: #2a2e36;
  --rule-strong: #3a3f49;
  --accent: #ffc400;
  --accent-hover: #ffd23d;
  --on-accent: #0f1115;
  --bathroom: #2ee6d6;
  --power: #b388ff;
  --camp: #3ddc84;
  --vehicle: #b8e63d;
  --food: #ff8a3d;
  --help: #ff5252;
  --money: #c8a27c;
  --activities: #ff6fd8;
  --radius: 12px;
  --radius-lg: 16px;
  --max: 1160px;
  --measure: 640px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg.i { width: 24px; height: 24px; fill: currentColor; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.skip:focus { left: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--rule); background: rgba(15, 17, 21, .88); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; font-weight: 800; letter-spacing: .08em; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.site-nav { display: flex; gap: 2px; margin-left: auto; }
.site-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .04); }
.site-header .btn { margin-left: 8px; }
@media (max-width: 900px) { .site-nav { display: none; } .site-header .btn { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: transparent; color: var(--text); font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { border-color: #4a505b; background: rgba(255, 255, 255, .04); }
.btn-primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn .i { width: 20px; height: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .btn-row .btn { flex: 1 1 100%; } }

/* Type */
h1, h2, h3, h4 { margin: 0; }
h1 { font-size: clamp(40px, 5.6vw, 66px); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; font-weight: 750; letter-spacing: -.025em; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; }
.eyebrow { display: block; margin: 0 0 16px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.lead { max-width: var(--measure); margin: 0; color: var(--muted); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; }
.muted { color: var(--muted); }
.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Sections */
.section { padding: 112px 0; border-top: 1px solid var(--rule); }
.section-head { max-width: 880px; margin-bottom: 56px; }
.section-head .lead { max-width: 780px; margin-top: 18px; }
@media (max-width: 720px) { .section { padding: 72px 0; } .section-head { margin-bottom: 40px; } }

/* Hero */
.hero { padding: 96px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 36px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 32px 0 0; padding: 0; color: var(--muted); font-size: 15px; list-style: none; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 20px; }
.phone { width: 236px; padding: 8px; border: 1px solid #333842; border-radius: 42px; background: #000; }
.phone img { width: 100%; border-radius: 34px; aspect-ratio: 720 / 1564; }
.phones .phone + .phone { margin-top: 72px; }
@media (max-width: 960px) {
  .hero { padding: 64px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .phones .phone { width: min(44vw, 236px); }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.stat { padding: 28px; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; }
.stat b { display: block; color: var(--accent); font-size: clamp(36px, 4vw, 48px); line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.stats-band { padding-bottom: 96px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .stats-band { padding-bottom: 64px; }
}

/* The app's need tiles */
.needs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.need { padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius); }
.c-bathroom { --c: var(--bathroom); }
.c-power { --c: var(--power); }
.c-camp { --c: var(--camp); }
.c-vehicle { --c: var(--vehicle); }
.c-food { --c: var(--food); }
.c-help { --c: var(--help); }
.c-money { --c: var(--money); }
.c-activities { --c: var(--activities); }
.tile { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: var(--radius); background: var(--c); }
.tile .i { width: 28px; height: 28px; fill: var(--on-accent); }
.need h3 { font-size: 18px; }
.need p { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.amenities { margin: 32px 0 0; color: var(--muted); font-size: 16px; max-width: 860px; }
@media (max-width: 980px) { .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .needs { gap: 12px; } .need { padding: 16px; } .tile { width: 44px; height: 44px; } }

/* Product walkthrough */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
.steps .phone { width: min(100%, 260px); margin: 0 0 32px; }
.step-num { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 800; }
.steps p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .steps li { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; }
  .steps .phone { width: 150px; margin: 0; padding: 5px; border-radius: 26px; }
  .steps .phone img { border-radius: 21px; }
}

/* Feature cards and lists */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: center; }
.split .phone { width: 100%; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { padding: 24px; border: 1px solid var(--rule); border-radius: var(--radius); }
.card .icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border: 1px solid var(--rule); border-radius: 10px; color: var(--accent); }
.card .icon .i { width: 22px; height: 22px; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split .phone { width: min(70vw, 280px); margin: 0 auto; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .cards, .grid-3 { grid-template-columns: 1fr; } }

.sources { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; }
.sources li { padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; }
.sources-label { margin: 48px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.sources-label + .sources { margin-top: 16px; }

/* Download */
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.platform { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.platform-head { display: flex; align-items: center; gap: 14px; }
.platform-head .icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--rule); border-radius: var(--radius); }
.platform-head .icon .i { width: 26px; height: 26px; }
.platform-head h3 { font-size: 22px; }
.platform .req { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.platform .btn { width: 100%; margin: 28px 0; }
.platform ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.platform ol li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 16px; line-height: 1.5; counter-increment: step; }
.platform ol li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--rule-strong); border-radius: 50%; color: var(--muted); font-size: 13px; font-weight: 700; }
.platform .note { margin: auto 0 0; padding-top: 28px; color: var(--muted); font-size: 15px; }
.platform .note::before { content: ""; display: block; margin-bottom: 20px; border-top: 1px solid var(--rule); }
@media (max-width: 860px) { .platforms { grid-template-columns: 1fr; } .platform { padding: 24px; } }

/* Pitch deck */
.deck-stage { position: relative; }
.deck-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-lg); }
.deck-track::-webkit-scrollbar { display: none; }
.deck-slide { flex: 0 0 100%; margin: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: #111214; scroll-snap-align: start; }
.deck-slide img { width: 100%; aspect-ratio: 1600 / 1237; }
.deck-btn { position: absolute; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--rule-strong); border-radius: 50%; background: rgba(15, 17, 21, .86); color: var(--text); cursor: pointer; transform: translateY(-50%); }
.deck-btn:hover { border-color: var(--accent); color: var(--accent); }
.deck-btn:disabled { opacity: .35; cursor: default; border-color: var(--rule-strong); color: var(--text); }
.deck-btn.prev { left: 16px; }
.deck-btn.next { right: 16px; }
.deck-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.deck-count { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.deck-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.deck-thumbs a { display: block; overflow: hidden; border: 1px solid var(--rule); border-radius: 8px; opacity: .5; transition: opacity .15s, border-color .15s; }
.deck-thumbs a:hover { opacity: .85; }
.deck-thumbs a[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.ask { margin: 40px 0 0; padding: 24px 28px; border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: var(--radius); }
.ask h3 { margin-bottom: 8px; }
.ask p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .deck-thumbs, .deck-btn { display: none; } .deck-slide { flex-basis: 86%; } }

/* Long-form pages (support, privacy, terms, shared place) */
.page { padding: 72px 0 112px; }
.prose { max-width: 720px; }
.prose h1 { margin-bottom: 20px; font-size: clamp(34px, 4.4vw, 48px); }
.prose h2 { margin: 52px 0 12px; font-size: 26px; letter-spacing: -.02em; }
.prose h3 { margin: 36px 0 8px; font-size: 19px; }
.prose p, .prose li { color: #d6d7d2; line-height: 1.65; }
.prose ul, .prose ol { padding-left: 22px; }
.prose a:not(.btn) { color: var(--accent); text-underline-offset: 3px; }
.prose .muted { color: var(--muted); font-size: 15px; }
.stack { display: grid; gap: 12px; max-width: 420px; margin: 32px 0; }
.stack .btn { width: 100%; justify-content: flex-start; }

/* Footer */
.site-footer { padding: 72px 0 40px; border-top: 1px solid var(--rule); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { max-width: 320px; margin: 16px 0 0; color: var(--muted); }
.footer-brand .tagline { margin-top: 8px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.site-footer .footer-h { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.4; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
