/* ============================================================================
   TrailArk Labs — a modern travel-companion site.
   Brand: Sofia orange (#EA580C) → pink (#EC4899). Warm sand neutrals,
   cinematic sunset hero, handwritten accents. Self-contained, responsive.
   ========================================================================== */

:root {
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --orange-soft: #fff1e6;
  --pink: #ec4899;
  --amber: #f59e0b;
  --teal: #0ea5a4;
  --blue: #2563eb;
  --emerald: #059669;
  --plum: #2a1247;

  /* Warm neutrals */
  --ink: #20160f;
  --ink-soft: #5b4636;
  --subtle: #8a7665;
  --faint: #b8a899;
  --sand: #fff8f1;
  --sand-2: #fdeee1;
  --cream: #fffdfb;
  --line: #f0e4d8;
  --surface: #ffffff;

  --grad: linear-gradient(120deg, var(--orange), var(--pink));
  --grad-warm: linear-gradient(120deg, #f59e0b, #ea580c 55%, #ec4899);
  --sunset: linear-gradient(180deg, #2a1247 0%, #6d1f4f 38%, #d6452f 72%, #f59e0b 100%);

  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --shadow-sm: 0 2px 8px rgba(90, 50, 20, 0.07);
  --shadow: 0 16px 40px rgba(120, 60, 25, 0.14);
  --shadow-lg: 0 40px 90px rgba(180, 60, 50, 0.28);
  --container: 1160px;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font);
  --font-hand: 'Caveat', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); color: var(--ink); background: var(--sand);
  line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(236, 72, 153, 0.20); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -0.02em; }
.hand { font-family: var(--font-hand); font-weight: 700; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: #fff; color: var(--ink); padding: 10px 18px; border-radius: 0 0 12px 0; font-weight: 700; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid #d97706; outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .night :focus-visible, .footer :focus-visible, .cta-band :focus-visible { outline-color: #ffd17a; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display);
  font-weight: 700; font-size: 16px; line-height: 1; padding: 15px 26px; border-radius: 999px;
  cursor: pointer; border: 0; transition: transform .16s ease, box-shadow .16s ease, background .16s; white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--grad-warm); color: #fff; box-shadow: 0 12px 30px rgba(234, 88, 12, 0.40); }
.btn-primary:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 18px 40px rgba(234, 88, 12, 0.48); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--orange-dark); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange-dark); background: #fff; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,248,241,0.85); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(240,228,216,0.7); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.brand .mark { width: 38px; height: 38px; flex: none; border-radius: 10px; object-fit: cover; box-shadow: 0 5px 14px rgba(180,80,40,.30); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 15.5px; transition: color .15s; }
.nav-links a:hover { color: var(--orange-dark); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .25s; }

/* ── Hero (cinematic sunset) ─────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--sunset); color: #fff; padding: 78px 0 120px; }
.hero-scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-sun { position: absolute; top: 14%; left: 50%; transform: translateX(-50%); width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, #ffe9b0 0%, #ffd17a 40%, rgba(255,176,89,0) 70%); filter: blur(2px); opacity: .9; }
.hero-stars { position: absolute; inset: 0; background-image:
  radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.8), transparent),
  radial-gradient(1.5px 1.5px at 28% 9%, rgba(255,255,255,.6), transparent),
  radial-gradient(1.5px 1.5px at 67% 14%, rgba(255,255,255,.7), transparent),
  radial-gradient(1.5px 1.5px at 82% 8%, rgba(255,255,255,.5), transparent),
  radial-gradient(1.5px 1.5px at 45% 6%, rgba(255,255,255,.5), transparent); }
.hero-mtns { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; display: block; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28); color: #fff; font-weight: 700; font-size: 13px; padding: 7px 15px; border-radius: 999px; margin-bottom: 22px; backdrop-filter: blur(6px); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #ffd17a; box-shadow: 0 0 10px #ffd17a; }
h1.hero-title { font-size: clamp(40px, 6vw, 72px); line-height: 1.0; font-weight: 800; letter-spacing: -0.035em; }
h1.hero-title .hand { font-family: var(--font-hand); font-weight: 700; font-size: 1.06em; color: #ffd17a; -webkit-text-fill-color: #ffd17a; letter-spacing: 0; display: inline-block; transform: rotate(-3deg); }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,0.86); margin: 24px 0 30px; max-width: 520px; text-shadow: 0 1px 12px rgba(42, 18, 71, 0.55); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-rating { margin-top: 22px; display: flex; align-items: center; gap: 10px; color: #fff; font-size: 14px; font-weight: 600; text-shadow: 0 1px 8px rgba(42,18,71,.55); }

/* Floating phone + sticker cards */
.hero-art { position: relative; display: flex; justify-content: center; }
.phone { width: 280px; max-width: 74vw; aspect-ratio: 9/19; background: #120c1c; border-radius: 40px; padding: 11px; box-shadow: var(--shadow-lg); transform: rotate(-3deg); position: relative; }
.phone::after { content:''; position:absolute; top:15px; left:50%; transform:translateX(-50%); width:96px; height:20px; background:#120c1c; border-radius:0 0 14px 14px; z-index:3; }
.phone-screen { width:100%; height:100%; border-radius:30px; overflow:hidden; background:var(--sand); display:flex; flex-direction:column; }
.ps-header { background: var(--grad-warm); padding: 28px 16px 16px; color:#fff; }
.ps-loc { font-size:11.5px; opacity:.9; } .ps-title { font-family:var(--font-display); font-size:18px; font-weight:800; margin-top:2px; }
.ps-search { margin-top:12px; background:rgba(255,255,255,0.24); border-radius:11px; height:34px; display:flex; align-items:center; padding:0 11px; color:#fff; font-size:12px; }
.ps-body { padding:12px; display:flex; flex-direction:column; gap:10px; flex:1; }
.ps-feature { height:108px; border-radius:15px; position:relative; overflow:hidden; background:linear-gradient(135deg,#fdba74,#fb7185); }
.ps-feature .ps-cap { position:absolute; left:11px; bottom:9px; color:#fff; font-weight:800; font-size:14px; text-shadow:0 1px 6px rgba(0,0,0,.4); }
.ps-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.ps-card { height:84px; border-radius:13px; position:relative; overflow:hidden; }
.ps-card.a { background:linear-gradient(135deg,#34d399,#2563eb); } .ps-card.b { background:linear-gradient(135deg,#c084fc,#ec4899); }
.ps-card .ps-cap { position:absolute; left:8px; bottom:6px; color:#fff; font-weight:700; font-size:11px; text-shadow:0 1px 5px rgba(0,0,0,.4); }
.ps-nav { height:50px; background:#fff; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-around; }
.ps-nav i { width:20px; height:20px; border-radius:6px; background:var(--line); } .ps-nav i.on { background:var(--grad-warm); }

.sticker { position: absolute; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 15px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; animation: float 5s ease-in-out infinite; }
.sticker .si { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.sticker small { display: block; font-weight: 600; font-size: 11.5px; color: var(--subtle); }
.sticker.s1 { top: 8%; left: -6%; } .sticker.s2 { top: 46%; right: -10%; animation-delay: 1.4s; } .sticker.s3 { bottom: 4%; left: -2%; animation-delay: 2.6s; }
@keyframes float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }

/* ── Marquee (destination strip) ─────────────────────────────────────────── */
.marquee { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.dchip { display: inline-flex; align-items: center; gap: 8px; background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 15px; color: var(--ink-soft); white-space: nowrap; font-family: var(--font-display); }
.dchip span { font-size: 17px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 92px 0; }
.section.sand { background: var(--sand-2); }
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-eyebrow { font-family: var(--font-hand); color: var(--orange); font-weight: 700; font-size: 26px; transform: rotate(-2deg); display: inline-block; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.06; font-weight: 800; margin: 6px 0 14px; }
.section-head p { color: var(--ink-soft); font-size: 18px; }

/* ── Bento features ──────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tile .ficon { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.tile .ficon svg { width: 27px; height: 27px; }
.tile h3 { font-size: 22px; font-weight: 800; }
.tile p { color: var(--ink-soft); margin-top: 9px; font-size: 16px; }
.tile.big { grid-column: span 3; }
.tile.tall { grid-column: span 3; }
.tile.sm { grid-column: span 2; }
.tile.feature-dark { background: var(--plum); color: #fff; border: 0; }
.tile.feature-dark h3 { color: #fff; } .tile.feature-dark p { color: rgba(255,255,255,.78); }
.tile .spark { position: absolute; right: -30px; top: -30px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.18), transparent 70%); }
.bg-grad { background: var(--grad-warm); } .bg-blue { background: linear-gradient(135deg,#3b82f6,#2563eb); }
.bg-emerald { background: linear-gradient(135deg,#10b981,#059669); } .bg-amber { background: linear-gradient(135deg,#fbbf24,#d97706); }
.bg-rose { background: linear-gradient(135deg,#fb7185,#e11d48); } .bg-violet { background: linear-gradient(135deg,#a78bfa,#7c3aed); }
.bg-teal { background: linear-gradient(135deg,#2dd4bf,#0ea5a4); }

/* AI planner — mini itinerary preview that fills the big tile */
.mini-itin { margin-top: auto; display: grid; gap: 9px; padding-top: 24px; }
.mini-itin .day { display: flex; align-items: center; gap: 11px; background: var(--sand); border: 1px solid var(--line); border-radius: 13px; padding: 11px 13px; font-weight: 600; font-size: 13.5px; color: var(--ink-soft); }
.mini-itin .day .d { width: 28px; height: 28px; border-radius: 9px; background: var(--grad-warm); color: #fff; font-weight: 800; font-size: 11px; display: grid; place-items: center; flex: none; font-family: var(--font-display); }
.mini-itin .day em { margin-left: auto; font-style: normal; color: var(--subtle); font-weight: 700; font-size: 12px; }
.mini-itin .day.ghost { opacity: .48; }

/* convoy — live map inside the tall dark tile */
.mini-map { margin-top: auto; border-radius: 18px; aspect-ratio: 16/11; position: relative; overflow: hidden; background: radial-gradient(120% 120% at 0% 0%, #3b2a5e, #150c22); border: 1px solid rgba(255,255,255,.07); }
.mini-map::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 32px 32px; }
.mm-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-map .rider { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mini-map .rider .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--grad-warm); box-shadow: 0 0 0 0 rgba(245,158,11,.5), 0 2px 8px rgba(0,0,0,.45); animation: pulse 2.4s infinite; }
.mini-map .rider .tag { font-size: 10px; font-weight: 700; color: #fff; background: rgba(0,0,0,.42); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.mini-map .rider.r2 .dot { animation-delay: .7s; } .mini-map .rider.r3 .dot { animation-delay: 1.4s; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(245,158,11,.45), 0 2px 8px rgba(0,0,0,.45);} 70%{box-shadow:0 0 0 16px rgba(245,158,11,0), 0 2px 8px rgba(0,0,0,.45);} 100%{box-shadow:0 0 0 0 rgba(245,158,11,0), 0 2px 8px rgba(0,0,0,.45);} }

/* ── Split / spotlight ───────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .badge { display: inline-flex; align-items: center; gap: 8px; background: var(--orange-soft); color: var(--orange-dark); font-weight: 800; font-size: 13px; padding: 7px 14px; border-radius: 999px; }
.split h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.08; margin: 16px 0 14px; font-weight: 800; }
.split p { color: var(--ink-soft); font-size: 17px; }
.checklist { list-style: none; margin-top: 22px; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.checklist li svg { width: 22px; height: 22px; flex: none; color: var(--emerald); margin-top: 1px; }
.split-visual { border-radius: var(--radius-xl); aspect-ratio: 4/3; position: relative; overflow: hidden; background: radial-gradient(120% 120% at 0 0, #3b2a5e, #140c22); box-shadow: var(--shadow); }
.split-visual .pulse { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--grad-warm); animation: pulse 2.4s infinite; }
.split-visual .pulse:nth-child(2){ top:30%; left:28%; } .split-visual .pulse:nth-child(3){ top:55%; left:60%; animation-delay:.6s; }
.split-visual .pulse:nth-child(4){ top:68%; left:38%; animation-delay:1.2s; } .split-visual .pulse:nth-child(5){ top:40%; left:72%; animation-delay:1.8s; }
.split-visual .route { position: absolute; inset: 0; }

/* ── Steps (trail) ───────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 30px; position: relative; }
.step .num { width: 46px; height: 46px; border-radius: 14px; background: var(--grad-warm); color: #fff; font-family: var(--font-display); font-weight: 800; display: grid; place-items: center; font-size: 20px; margin-bottom: 16px; }
.step h3 { font-size: 20px; font-weight: 800; } .step p { color: var(--ink-soft); margin-top: 8px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 17px; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 22px; height: 22px; flex: none; transition: transform .2s; color: var(--orange); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { color: var(--ink-soft); padding: 0 0 18px; }

/* ── CTA band ────────────────────────────────────────────────────────────── */
.cta-band { background: var(--sunset); color: #fff; border-radius: var(--radius-xl); padding: 64px 40px; text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band .sun { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255,209,122,.5), transparent 70%); }
.cta-band h2 { font-size: clamp(30px, 4vw, 48px); position: relative; font-weight: 800; }
.cta-band p { opacity: .9; font-size: 18px; margin: 14px auto 28px; max-width: 540px; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { background: #1a1009; color: #d8c7b5; padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand { color: #fff; }
.footer-about { color: #b8a08c; margin-top: 16px; font-size: 15px; max-width: 320px; }
.footer h4 { color: #fff; font-family: var(--font-display); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { color: #b8a08c; font-size: 15px; transition: color .15s; } .footer ul a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #3a2a1c; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #a08a72; font-size: 14px; }

/* ── Legal / doc pages ───────────────────────────────────────────────────── */
.doc-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff4ea 0%, var(--sand-2) 100%); border-bottom: 1px solid var(--line); padding: 76px 0 56px; }
.doc-hero::before { content: ''; position: absolute; inset: 0; z-index: 0; background: radial-gradient(46% 72% at 90% -22%, rgba(236,72,153,.22), transparent 66%), radial-gradient(44% 62% at -2% -10%, rgba(234,88,12,.17), transparent 70%); }
.doc-hero::after { content: ''; position: absolute; top: -70px; right: 8%; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,209,122,.55), transparent 68%); filter: blur(2px); }
.doc-hero .container { position: relative; z-index: 1; }
.doc-hero .eyebrow { background: #fff; border: 1px solid var(--line); color: var(--orange-dark); margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.doc-hero .eyebrow .dot { background: var(--grad-warm); box-shadow: none; }
.doc-hero h1 { font-size: clamp(33px, 4.8vw, 54px); font-weight: 800; letter-spacing: -0.025em; }
.doc-hero .updated { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); margin-top: 16px; font-size: 14px; font-weight: 600; background: rgba(255,255,255,0.7); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.doc { padding: 50px 0 80px; }
.doc .container { max-width: 820px; }
.doc h2 { font-size: 25px; font-weight: 800; margin: 40px 0 12px; position: relative; padding-left: 16px; }
.doc h2::before { content: ''; position: absolute; left: 0; top: 0.16em; height: 0.82em; width: 5px; border-radius: 3px; background: var(--grad-warm); }
.doc h3 { font-size: 19px; font-weight: 700; margin: 26px 0 8px; font-family: var(--font-display); }
.doc p { color: var(--ink-soft); margin: 12px 0; }
.doc ul, .doc ol { color: var(--ink-soft); margin: 12px 0 12px 22px; display: grid; gap: 8px; }
.doc a { color: var(--orange-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.doc .callout { background: var(--orange-soft); border: 1px solid #fcd9bd; border-radius: var(--radius); padding: 18px 20px; margin: 22px 0; color: var(--ink-soft); }
.doc .callout strong { color: var(--ink); }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 30px; }
.toc strong { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--subtle); }
.toc ul { list-style: none; margin: 12px 0 0; display: grid; gap: 8px; }
.toc a { color: var(--ink-soft); text-decoration: none; font-weight: 600; } .toc a:hover { color: var(--orange-dark); }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 820px; margin: 0 auto; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.contact-card .ficon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; }
.contact-card h2 { font-size: 19px; font-weight: 800; margin: 0; padding-left: 0; }
.contact-card h2::before { content: none; }
.contact-card p { color: var(--ink-soft); margin: 8px 0 14px; }

/* ── Reveal + responsive ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal{opacity:1;transform:none;transition:none;} .phone{transform:none;}
  .sticker,.marquee-track,.sv-chip,.rider .dot,.split-visual .pulse,.sos-dot{animation:none;}
  html{scroll-behavior:auto;}
}

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 54px; text-align: center; }
  .hero-actions, .hero-rating { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  /* Single-column: the sun glow would sit right behind the subtitle and wash
     out the white text — tuck it up behind the bold headline and dim it. */
  .hero-sun { top: 2%; width: 150px; height: 150px; opacity: 0.45; }
  .sticker.s1 { left: 0; } .sticker.s2 { right: 0; } .sticker.s3 { left: 4%; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .tile.big, .tile.tall { grid-column: span 4; } .tile.sm { grid-column: span 2; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--cream); padding: 18px 22px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open .nav-links a { font-size: 17px; }
  .bento { grid-template-columns: 1fr; } .tile.big, .tile.tall, .tile.sm { grid-column: span 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .sticker.s1 { display: none; }
}

/* ── Convoy showcase: hazard pin + UI chips on the night map ─────────────── */
.mini-map .rider.hz .dot { background: linear-gradient(120deg, #f59e0b, #d97706); animation-delay: .35s; }
.mini-map .rider.hz .tag { background: rgba(180, 83, 9, .85); }
.sv-pin { position: absolute; top: 47%; left: 49%; width: 22px; height: 22px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: #f59e0b; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.45); }
.sv-pin::after { content: '!'; position: absolute; inset: 0; transform: rotate(45deg); display: grid;
  place-items: center; color: #fff; font-weight: 800; font-size: 12px; font-family: var(--font-display); }
.sv-chip { position: absolute; display: flex; align-items: center; gap: 9px; font-family: var(--font-display);
  font-weight: 700; font-size: 13px; line-height: 1.25; color: #fff; padding: 9px 13px; border-radius: 13px;
  box-shadow: 0 12px 28px rgba(0,0,0,.38); white-space: nowrap; animation: float 5s ease-in-out infinite; }
.sv-chip > span { font-size: 16px; }
.sv-chip small { display: block; font-weight: 600; font-size: 11px; opacity: .85; }
.sv-alert { top: 7%; left: 6%; background: linear-gradient(120deg, #b45309, #d97706); }
.sv-broadcast { top: 27%; right: 5%; background: var(--grad-warm); animation-delay: 1.3s; }
.sv-dest { bottom: 7%; left: 7%; background: rgba(10, 5, 20, .62); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation-delay: 2.4s; }

/* ── "In your car" night section + head-unit mock ────────────────────────── */
.section.night { background: var(--plum); color: #fff; }
.section.night h2 { color: #fff; }
.section.night .split p { color: rgba(255,255,255,.78); }
.section.night .badge { background: rgba(255,255,255,.12); color: #ffd17a; }
.car-badges { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 24px; }
.car-badge { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 11px 19px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.car-badge.soon { background: var(--grad-warm); color: #fff; box-shadow: 0 12px 28px rgba(234,88,12,.38); }
.car-badge.roadmap { border: 1.5px solid rgba(255,255,255,.35); color: rgba(255,255,255,.92); }
.car-badge .pill { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  background: rgba(255,255,255,.22); padding: 3px 9px; border-radius: 999px; }
.car-badge.roadmap .pill { background: rgba(255,255,255,.14); }
.car-note { margin-top: 16px; font-size: 13px; }
.section.night .split p.car-note { color: rgba(255,255,255,.5); }

.headunit { border-radius: 24px; background: #0b0714; border: 1px solid rgba(255,255,255,.1); padding: 14px;
  box-shadow: var(--shadow-lg); }
.hu-screen { display: grid; grid-template-columns: 1.05fr 1.35fr; border-radius: 15px; overflow: hidden;
  background: #171024; min-height: 240px; }
.hu-list { background: #1d1430; padding: 13px; display: flex; flex-direction: column; gap: 8px; }
.hu-title { font-family: var(--font-display); font-weight: 800; font-size: 13.5px; color: #fff; padding: 2px 4px 6px; }
.hu-row { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border-radius: 11px;
  padding: 8px 11px; color: #fff; font-size: 12.5px; font-weight: 700; font-family: var(--font-display); }
.hu-row small { color: rgba(255,255,255,.55); font-weight: 600; font-size: 10.5px; display: block; font-family: var(--font); }
.hu-ic { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; font-size: 13px;
  color: #fff; flex: none; font-family: var(--font-display); font-weight: 800; }
.hu-ic.me { background: var(--grad-warm); } .hu-ic.rider { background: var(--blue); }
.hu-ic.hz { background: #d97706; } .hu-ic.dest { background: var(--emerald); }
.hu-map { position: relative; background: radial-gradient(120% 120% at 0% 0%, #3b2a5e, #150c22); }
.hu-map::before { content: ''; position: absolute; inset: 0; background-image:
  linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 32px 32px; }
.hu-map .hu-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.hu-map .rider { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column;
  align-items: center; gap: 5px; }
.hu-map .rider .dot { width: 13px; height: 13px; border-radius: 50%; background: var(--grad-warm);
  box-shadow: 0 0 0 0 rgba(245,158,11,.5), 0 2px 8px rgba(0,0,0,.45); animation: pulse 2.4s infinite; }
.hu-map .rider .tag { font-size: 10px; font-weight: 700; color: #fff; background: rgba(0,0,0,.42);
  padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.hu-map .rider.r2 .dot { animation-delay: .7s; } .hu-map .rider.r3 .dot { animation-delay: 1.4s; background: var(--emerald); }
.hu-map .rider.hz .dot { background: linear-gradient(120deg, #f59e0b, #d97706); animation-delay: .35s; }
.hu-map .rider.hz .tag { background: rgba(180, 83, 9, .85); }
.hu-bar { display: flex; align-items: center; justify-content: center; gap: 30px; padding-top: 11px; }
.hu-bar i { width: 36px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.14); }

@media (max-width: 900px) {
  .sv-chip { font-size: 11.5px; padding: 7px 10px; }
  .sv-chip small { font-size: 9.5px; }
}
@media (max-width: 640px) {
  .hu-screen { grid-template-columns: 1fr; min-height: 0; }
  .hu-map { min-height: 170px; }
  .sv-broadcast { top: 30%; right: 3%; }
}

/* ── v3 overhaul: trust strip, photo chips, richer tiles, gallery, trail ──── */
.dchip .dthumb { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; border: 1.5px solid #fff; box-shadow: 0 2px 6px rgba(120,60,25,.25); }

.trust { background: var(--plum); color: #fff; padding: 13px 0; }
.trust-inner { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.trust-item { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: rgba(255,255,255,.88); white-space: nowrap; }

/* hero phone — real Discover content */
.ps-chips { display: flex; gap: 7px; }
.ps-chips span { background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: 10.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.ps-chips span.on { background: var(--grad-warm); color: #fff; border: 0; }
.ps-feature, .ps-card { background-size: cover; background-position: center; }

/* planner tile note + richer small tiles */
.itin-note { font-family: var(--font-hand); font-weight: 700; font-size: 19px; color: var(--orange); transform: rotate(-2deg); padding: 4px 2px 0; }
.tile .pill-stack { margin-top: auto; padding-top: 18px; display: grid; gap: 8px; }
.tpill { background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; font-weight: 700; font-size: 12.5px; color: var(--ink-soft); font-family: var(--font-display); width: fit-content; }
.tpill.ok { background: #e9f7ef; border-color: #bfe8cf; color: #0a7a45; }
.polaroids { margin-top: auto; padding-top: 20px; display: flex; justify-content: center; min-height: 86px; position: relative; }
.pol { width: 84px; height: 70px; object-fit: cover; border-radius: 8px; border: 4px solid #fff; box-shadow: 0 8px 18px rgba(90,50,20,.18); }
.pol.p1 { transform: rotate(-7deg) translateX(14px); } .pol.p2 { transform: rotate(2deg); z-index: 1; } .pol.p3 { transform: rotate(8deg) translateX(-14px); }
.tile:hover .pol.p1 { transform: rotate(-10deg) translateX(10px); } .tile:hover .pol.p3 { transform: rotate(11deg) translateX(-10px); }
.pol { transition: transform .25s ease; }
.bg-rose2 { background: linear-gradient(135deg,#f87171,#dc2626); }
.motif { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--ink-soft); }
.motif.offline i { flex: 1; border-top: 2px dashed var(--faint); }
.motif .sos-dot { width: 12px; height: 12px; border-radius: 50%; background: #dc2626; animation: pulse 2.4s infinite; flex: none; }
.motif.creator span, .motif.chat .bub { background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; }
.motif.chat { gap: 6px; flex-wrap: wrap; }
.motif.chat .bub.me { background: var(--orange-soft); border-color: #fcd9bd; color: var(--orange-dark); }

/* gallery — straight from the app */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.shot { margin: 0; }
.shot-frame { background: #18181b; border-radius: 26px; padding: 9px; box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease; }
.shot:hover .shot-frame { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.shot-screen { background: var(--sand); border-radius: 19px; overflow: hidden; aspect-ratio: 9/16.6; display: flex; flex-direction: column; }
.shot-screen.dark { background: radial-gradient(120% 120% at 0% 0%, #3b2a5e, #150c22); position: relative; }
.ss-bar { padding: 13px 12px 11px; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 12.5px; }
.bg-grad-b { background: var(--grad-warm); }
.ss-body { padding: 11px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ss-date { color: var(--orange); font-family: var(--font-display); font-weight: 800; font-size: 9.5px; letter-spacing: .07em; }
.ss-dayrow { display: flex; gap: 9px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; }
.ss-dayrow .d { width: 26px; height: 26px; border-radius: 9px; background: var(--grad-warm); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 12px; flex: none; }
.ss-dayrow b { display: block; font-family: var(--font-display); font-size: 12px; color: var(--ink); }
.ss-dayrow small { color: var(--subtle); font-size: 10px; line-height: 1.3; display: block; }
.ss-tiprow { margin-top: auto; background: var(--orange-soft); border: 1px solid #fcd9bd; border-radius: 11px; padding: 8px 10px; font-size: 10.5px; font-weight: 600; color: var(--orange-dark); }
.ss-map { position: absolute; inset: 0; }
.ss-map::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 28px 28px; }
.ss-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ss-alert { position: absolute; top: 10px; left: 10px; right: 10px; background: linear-gradient(120deg,#b45309,#d97706); color: #fff; border-radius: 11px; padding: 8px 10px; font-family: var(--font-display); font-weight: 700; font-size: 10.5px; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.ss-exp { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.ss-exp b { font-family: var(--font-display); color: var(--ink); font-size: 12px; }
.ss-settle { margin-top: auto; background: #e9f7ef; border: 1px solid #bfe8cf; color: #0a7a45; border-radius: 11px; padding: 9px 10px; font-size: 10.5px; font-weight: 700; }
.ss-mem { padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ss-mem img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.shot figcaption { margin-top: 13px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; padding: 0 4px; }

/* riders on the convoy split-visual + gallery map (mirrors .mini-map) */
.split-visual::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 32px 32px; }
.split-visual .rider, .ss-map .rider { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 5px; z-index: 1; }
.split-visual .rider .dot, .ss-map .rider .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--grad-warm); box-shadow: 0 0 0 0 rgba(245,158,11,.5), 0 2px 8px rgba(0,0,0,.45); animation: pulse 2.4s infinite; }
.split-visual .rider .tag, .ss-map .rider .tag { font-size: 10px; font-weight: 700; color: #fff; background: rgba(0,0,0,.42); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.split-visual .rider.r2 .dot, .ss-map .rider.r2 .dot { animation-delay: .7s; }
.split-visual .rider.r3 .dot, .ss-map .rider.r3 .dot { animation-delay: 1.4s; }
.split-visual .rider.hz .dot, .ss-map .rider.hz .dot { background: linear-gradient(120deg,#f59e0b,#d97706); animation-delay: .35s; }
.split-visual .rider.hz .tag, .ss-map .rider.hz .tag { background: rgba(180,83,9,.85); }
.sv-suv { position: absolute; bottom: 9%; left: 8%; width: 96px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.4)); animation: float 5s ease-in-out infinite .6s; }

/* mid-page CTA strip */
.mid-cta { padding: 0 0 6px; }
.mid-cta-inner { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.mid-cta-inner strong { display: block; font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.mid-cta-inner span { color: var(--ink-soft); font-size: 14.5px; }

/* night-section mountain dividers */
.section.night { position: relative; padding: 116px 0; }
.night-divider { position: absolute; left: 0; width: 100%; height: 42px; }
.night-divider.top { top: 0; }
.night-divider.bottom { bottom: 0; }

/* how-it-works trail */
.steps { padding-top: 8px; }
.steps-trail { position: absolute; top: -26px; left: 0; width: 100%; height: 56px; pointer-events: none; }
.step .num { border-radius: 50% 50% 50% 6px; box-shadow: 0 8px 18px rgba(234,88,12,.35); }
.steps-note { position: absolute; right: 6px; bottom: -42px; font-size: 23px; color: var(--orange); transform: rotate(-3deg); }
#how .section-head { margin-bottom: 70px; }

/* founder note */
.founder { padding: 10px 0 70px; background: var(--sand-2); }
.founder-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.founder-inner p { font-size: clamp(24px, 3vw, 31px); color: var(--ink); line-height: 1.35; }
.founder-inner span { display: block; margin-top: 12px; color: var(--subtle); font-size: 14px; font-weight: 600; }

/* CTA band extras */
.cta-band { padding-bottom: 110px; }
.cta-row { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-qr { display: flex; align-items: center; gap: 13px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.3); border-radius: 18px; padding: 10px 16px 10px 10px; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.cta-qr img { border-radius: 10px; background: #fff; padding: 5px; }
.cta-qr span { text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.35; }
.cta-qr small { font-weight: 600; font-size: 11.5px; opacity: .85; }
.cta-mtns { position: absolute; bottom: 0; left: 0; width: 100%; height: 90px; }

/* footer extras */
.footer { border-top: 4px solid transparent; border-image: var(--grad-warm) 1; }
.footer-ios { margin-top: 14px; font-size: 14px; color: #b8a08c; }
.footer-ios a { color: #ffd17a; font-weight: 700; }

/* real app screenshots (hero phone + gallery) */
.ps-shot { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shot-screen.real { aspect-ratio: auto; display: block; background: #120c1c; }
.ss-img { display: block; width: 100%; height: auto; }

/* sticky TOC for legal pages */
.doc .container.doc-layout { max-width: 1140px; }
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 820px); gap: 44px; justify-content: center; }
.doc-side { position: sticky; top: 96px; align-self: start; }
.doc-side .toc { margin: 0; }
.doc-side .toc a.on { color: var(--orange-dark); font-weight: 800; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 60; background: var(--grad-warm); color: #fff; border: 0; border-radius: 999px; width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 26px rgba(234,88,12,.4); opacity: 0; pointer-events: none; transition: opacity .25s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:focus-visible { outline: 3px solid #d97706; outline-offset: 3px; }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 1100px) {
  .doc-layout { display: block; }
  .doc-side { position: static; margin-bottom: 30px; }
}

@media (max-width: 1024px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .shot figcaption { font-size: 11.5px; }
  .trust-inner { gap: 8px 18px; }
  .trust-item { font-size: 11.5px; white-space: normal; }
  .mid-cta-inner { justify-content: center; text-align: center; }
  .steps-note { position: static; display: block; text-align: center; margin-top: 16px; transform: none; }
  .sv-suv { width: 64px; }
  .cta-qr { display: none; }
}
