@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@600;700&display=swap');

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

:root {
    --primary:      #6f1c1c;
    --primary-light:#cf4f4f;
    --primary-dim: #491a1a;
    --red50:        #fbe9e9;
    --red100: #ffffff;
    --red200:       #e89898;
    --surface:      #f7f6fb;
    --surface-alt:  #efedf5;
    --surface-dark: #ffffff;
    --border:       #e7e5f0;
    --border-light: #d9d6e6;
    --text:         #1a1633;
    --text-muted:   #6b6680;
    --radius:       12px;

    /* Dark tokens — used for the #8c2323 section that follows the white hero */
    --dark-bg:         #8c2323;
    --dark-surface:    #6f1c1c;
    --dark-border:     rgba(255,255,255,0.15);
    --dark-text:       #fbe9e9;
    --dark-text-muted: #e89898;

    /* Gradient / depth tokens */
    --glow-warm:    rgba(207,79,79,0.16);
    --glow-cool:    rgba(64,192,87,0.14);
    --grad-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 55%, #5a1616 100%);
    --grad-btn:     linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
    --grad-btn-hov: linear-gradient(135deg, var(--primary-dim) 0%, var(--primary-light) 100%);
    --shadow-sm:    0 2px 10px rgba(26,22,51,0.05);
    --shadow-md:    0 14px 32px -10px rgba(111,28,28,0.22);
}

[data-theme="dark"] {
    --surface:      #0f0f0f;
    --surface-alt:  #161616;
    --surface-dark: #0a0a0a;
    --border:       rgba(255,255,255,0.08);
    --border-light: rgba(255,255,255,0.12);
    --text:         #e8e8e8;
    --text-muted:   #888;
    /* keep --primary, --primary-light, --primary-dim as-is */
}
html { scroll-behavior: smooth; }

/* ── Accessibility: visible keyboard focus ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ── Tactile press feedback ── */
.btn-primary:active,
.btn-ghost:active,
.tour-btn-next:active,
.tour-btn-prev:active:not(:disabled),
.store-badge:active,
.nav-links button:active {
    transform: scale(0.97);
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--surface-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ── NAV ── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247,246,251,0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: grid;
    align-items: center;
    grid-template-columns: 1fr auto 1fr;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
}
.nav-links { justify-self: end; }

.nav-center {
    display: flex;
    gap: 4px;
    justify-self: center;
}

.nav-center button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.nav-center button:hover { color: var(--text); background: var(--border); }

@media (max-width: 768px) {
    .nav-center { display: none; }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
    text-decoration: none;
    cursor: pointer;
}

.nav-logo-img {
    height: 28px;
    width: auto;
    border-radius: 7px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-img { transform: scale(1.08) rotate(-4deg); }

.nav-logo-text span { color: var(--primary); }


.nav-links {
    display: flex;
}

.nav-links button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-links button:hover { color: var(--text); background: var(--border); }
.nav-links button.active { color: var(--red100); background: var(--primary-dim); }

/* ── PAGES ── */
.page { display: none; }
.page.active { display: block; animation: pageEnter 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }

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

@media (prefers-reduced-motion: reduce) {
    .page.active,
    .legal-panel.active { animation: none !important; }
}

/* ══════════════════════════════════════
   HOME PAGE
══════════════════════════════════════ */

/* Hero */
.hero {
    min-height: 92vh;
    padding: 0;
    background: var(--primary-dim);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 92vh;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
            radial-gradient(480px 480px at 14% 18%, var(--glow-warm), transparent 70%),
            radial-gradient(420px 420px at 92% 78%, var(--glow-cool), transparent 70%);
    animation: driftGlow 16s ease-in-out infinite alternate;
}

@keyframes driftGlow {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-2%, 3%) scale(1.06); }
}

/* Left column: text content */
.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 48px 80px 80px;
    position: relative;
    z-index: 1;
}

/* Right column: product screenshots */
.hero-images {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 64px 60px 32px;
    background: transparent;
    min-height: 92vh;
    position: relative;
    overflow: hidden;
}

.hero-images::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 24px 48px -18px rgba(26,22,51,0.32);
    object-fit: contain;
}

.hero-img-graph {
    animation: floatPhone 7s ease-in-out infinite 0.3s;
}

.hero-img-ride {
    max-height: 380px;
    margin-left: -90px;
    margin-right: -90px;
    margin-top: -60px;   /* pushes it up so it peeks above graph/share */
    z-index: 1;
    animation: floatPhone 6s ease-in-out infinite;
}

.hero-img-share {
    max-width: 220px;
    margin-left: 40px;
    margin-top: -60px;
    animation: floatPhone 6.5s ease-in-out infinite 0.6s;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 99px;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 28px;
    align-self: flex-start;
    animation: fadeInUp 0.7s ease both;
    border: 1px solid rgba(6, 239, 55, 0.4);
    background: rgba(0, 0, 0, 0.3);
    color: #06ef37;
    box-shadow: 0 0 12px rgba(6, 239, 55, 0.25),
    inset 0 0 12px rgba(6, 239, 55, 0.05);
}

.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

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

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: #000000;
    margin-bottom: 20px;
    position: relative;
    text-align: left;
    animation: fadeInUp 0.7s ease 0.08s both;
}

.hero h1 em {
    font-style: normal;
    color: #ffffff;
}

.hero-sub {
    font-size: 1.05rem;
    color: #000000;
    max-width: 440px;
    margin: 0 0 40px;
    line-height: 1.7;
    text-align: left;
    animation: fadeInUp 0.7s ease 0.16s both;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    animation: fadeInUp 0.7s ease 0.24s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--primary-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn-primary:hover { background: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 13px 26px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.25s, color 0.25s, transform 0.2s, background 0.25s;
}

.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); background: var(--surface-alt); transform: translateY(-2px); }

/* Phone mockup */
.hero-mockup {
    margin-top: 64px;
    position: relative;
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: flex-end;
}

.phone {
    width: 200px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

.phone:hover { transform: translateY(-6px); }
.phone.phone-offset { transform: translateY(24px); }
.phone.phone-offset:hover { transform: translateY(18px); }

.phone-bar {
    height: 28px;
    background: var(--surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-notch {
    width: 60px; height: 10px;
    background: var(--surface-dark);
    border-radius: 99px;
}

.phone-screen {
    padding: 12px;
    min-height: 340px;
    background: var(--surface-dark);
}

/* Map screen mockup */
.map-screen { position: relative; height: 340px; overflow: hidden; }

.map-bg {
    width: 100%; height: 100%;
    background:
            repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255,255,255,0.04) 20px),
            repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255,255,255,0.04) 20px),
            #1a1f2e;
}

.map-road-h {
    position: absolute;
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    left: 0; right: 0;
}

.map-road-v {
    position: absolute;
    width: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    top: 0; bottom: 0;
}

.map-route {
    position: absolute;
    left: 30px; right: 30px;
    top: 120px;
    height: 3px;
    background: #3b5bdb;
    border-radius: 2px;
}

.map-marker {
    position: absolute;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 2px solid var(--surface-dark);
}

.map-panel {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: var(--surface);
    border-radius: 14px 14px 0 0;
    padding: 12px;
}

.map-panel-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.participant-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.participant-row:last-child { border-bottom: none; }

.avatar {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--primary-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--red100);
    flex-shrink: 0;
}

.p-name { font-size: 0.65rem; font-weight: 500; color: var(--text); flex: 1; }
.p-dot { width: 6px; height: 6px; border-radius: 50%; background: #40c057; }

/* Summary screen mockup */
.summary-screen { padding: 8px; }

.summ-header {
    font-size: 0.6rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 10px;
}

.stat-card {
    background: var(--surface-alt);
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-icon { font-size: 14px; margin-bottom: 4px; }
.stat-label { font-size: 0.45rem; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }
.stat-value { font-size: 0.9rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.stat-unit { font-size: 0.45rem; color: var(--text-muted); }

.time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.time-block { text-align: center; }
.time-label { font-size: 0.45rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.time-value { font-size: 0.75rem; font-weight: 700; color: var(--text); }
.time-date { font-size: 0.4rem; color: var(--text-muted); }
.time-arrow { color: var(--text-muted); font-size: 0.7rem; }

.summ-section-title {
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.summ-participant {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
}

.summ-participant:last-child { border: none; }

.summ-p-info { flex: 1; }
.summ-p-name { font-size: 0.6rem; font-weight: 600; color: var(--text); }
.summ-p-sub { font-size: 0.45rem; color: var(--text-muted); }

.pct-badge {
    background: var(--surface-dark);
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 2px 5px;
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

/* ══════════════════════════════════════
   ONBOARDING TOUR (standalone section)
══════════════════════════════════════ */

.onboarding-section {
    background: var(--surface-dark);
    padding: 96px 24px 110px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.onboarding-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(560px 420px at 50% -10%, var(--glow-warm), transparent 72%);
}

.onboarding-section > * {
    position: relative;
    z-index: 1;
}

.onboarding-section .section-label,
.onboarding-section .section-title,
.onboarding-section .section-sub {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.onboarding-section .section-sub { margin-bottom: 56px; }

#onboarding-tour-mount {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px;
}

.tour-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* reuse existing .phone shell — add dynamic-island & tour screen area */
.tour-phone {
    width: 300px;
    flex-shrink: 0;
    position: relative;
    animation: floatPhone 6s ease-in-out infinite;
}

@keyframes floatPhone {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

.tour-phone .phone {
    width: 300px;
    cursor: default;
}

.tour-phone .phone:hover { transform: none; }

/* side buttons */
.tour-phone-btn-r {
    position: absolute; right: -3px; top: 72px;
    width: 3px; height: 52px;
    background: var(--border-light); border-radius: 0 3px 3px 0;
}
.tour-phone-btn-l1 {
    position: absolute; left: -3px; top: 64px;
    width: 3px; height: 26px;
    background: var(--border-light); border-radius: 3px 0 0 3px;
}
.tour-phone-btn-l2 {
    position: absolute; left: -3px; top: 100px;
    width: 3px; height: 40px;
    background: var(--border-light); border-radius: 3px 0 0 3px;
}
.tour-phone-btn-l3 {
    position: absolute; left: -3px; top: 150px;
    width: 3px; height: 40px;
    background: var(--border-light); border-radius: 3px 0 0 3px;
}

/* dynamic island */
.tour-island {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 22px;
    background: #000; border-radius: 99px;
    z-index: 12;
}

/* status bar */
.tour-status {
    height: 36px; background: #111;
    display: flex; align-items: flex-end; justify-content: space-between;
    padding: 0 16px 5px;
    font-size: 8px; font-weight: 700; color: #fff;
    position: relative; z-index: 5;
}

/* screen viewport */
.tour-screens {
    height: 584px; overflow: hidden; position: relative; background: #000;
}

/* each tour screen */
.ts {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    opacity: 0; transform: translateX(16px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}
.ts.active { opacity: 1; transform: translateX(0); pointer-events: auto; }

/* highlight border — applied directly to the target element */
.ts-hl {
    outline: 2px solid #cf4f4f !important;
    outline-offset: 2px;
    border-radius: 8px;
    animation: tsHlPulse 2s ease-in-out infinite;
    /* create new stacking context so z-index works vs ::before */
    isolation: isolate;
    z-index: 1;
    position: relative;
}
/* dim overlay behind the highlighted element */
.ts.active::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.50);
    z-index: 0;
    pointer-events: none;
}
@keyframes tsHlPulse {
    0%,100% { outline-color: #cf4f4f; box-shadow: 0 0 0 0 rgba(207,79,79,0.35); }
    50%      { outline-color: #e87070; box-shadow: 0 0 6px 2px rgba(207,79,79,0.20); }
}

/* home bar */
.tour-homebar {
    height: 22px; background: #000;
    display: flex; align-items: center; justify-content: center;
}
.tour-homebar-pill {
    width: 80px; height: 3px;
    background: #2a2a2a; border-radius: 99px;
}

/* ── mock primitives (scoped to .ts) ── */
.ts-topbar {
    background: #111; display: flex; justify-content: space-between; align-items: center;
    padding: 11px 15px; border-bottom: 1px solid #222; flex-shrink: 0;
}
.ts-tb-title { font-size: 13px; font-weight: 800; color: #fff; letter-spacing: 0.02em; }
.ts-tb-sub   { font-size: 9px; color: #888; margin-top: 1px; }
.ts-red-btn  {
    background: #9b2626; border-radius: 20px; padding: 5px 12px;
    font-size: 10px; font-weight: 700; color: #fff;
    display: flex; align-items: center; gap: 3px;
}
.ts-card {
    background: #1a1a1a; border-radius: 10px; padding: 12px;
    margin-bottom: 8px; border: 1px solid #2a2a2a;
}
.ts-card-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.ts-card-sub   { font-size: 9px; color: #666; margin-bottom: 6px; }
.ts-input      { background: #f1f5f9; border-radius: 8px; padding: 8px 10px; font-size: 10px; color: #aaa; }
.ts-datebox    { background: #e0e0e0; border-radius: 8px; padding: 8px 10px; font-size: 10px; font-weight: 700; color: #111; }
.ts-selectbox  {
    background: #e0e0e0; border-radius: 8px; padding: 8px 10px; margin-top: 5px;
    display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #333;
}
.ts-cta {
    background: #9b2626; border-radius: 9px; padding: 10px;
    display: flex; justify-content: center; align-items: center;
    font-size: 11px; font-weight: 700; color: #fff; gap: 4px;
}
.ts-scroll { flex: 1; overflow: hidden; padding: 10px 10px 0; display: flex; flex-direction: column; }
.ts-map-bg {
    flex: 1; background: #e8e4dc; position: relative; overflow: hidden;
}
.ts-map-lbl { position: absolute; font-size: 8px; color: #777; }
.ts-map-dot {
    position: absolute; width: 12px; height: 12px; border-radius: 50%;
    background: #4a90d9; border: 1.5px solid #fff;
}
.ts-floating-nav {
    position: absolute; top: 9px; left: 9px; right: 9px; z-index: 5;
    background: rgba(255,255,255,0.92); display: flex;
    justify-content: space-between; align-items: center;
    padding: 8px 10px; border-radius: 12px;
}
.ts-fn-back  { font-size: 9px; font-weight: 700; color: #9b2626; }
.ts-fn-title { font-size: 9px; font-weight: 700; color: #333; }
.ts-searchbar {
    position: absolute; top: 52px; left: 9px; right: 9px; z-index: 5;
    background: #fff; border-radius: 10px; padding: 8px 10px;
    display: flex; align-items: center; gap: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    font-size: 9px; color: #aaa;
}
.ts-hint-pill {
    position: absolute; bottom: 60px; left: 10px; right: 10px; z-index: 5;
    background: rgba(30,30,30,0.88); border-radius: 10px;
    padding: 8px 10px; display: flex; align-items: center; gap: 5px;
    font-size: 9px; color: #fff; font-weight: 500;
}
.ts-point-sheet {
    background: #111; border-radius: 12px; padding: 10px; margin: 9px;
    border: 1px solid #222; flex-shrink: 0;
}
.ts-sheet-handle { width: 30px; height: 3px; background: #333; border-radius: 2px; margin: 0 auto 8px; }
.ts-point-row {
    display: flex; align-items: center; gap: 8px; padding: 9px;
    border-radius: 8px; border: 1.5px solid #333; margin-bottom: 6px;
}
.ts-point-row.hi { border-color: #9b2626; }
.ts-pdot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ts-plabel { font-size: 8px; font-weight: 700; letter-spacing: 0.8px; color: #666; }
.ts-pval   { font-size: 10px; font-weight: 700; color: #fff; margin-top: 1px; }
.ts-setbtn { font-size: 9px; font-weight: 700; color: #9b2626; margin-left: auto; }
.ts-p-panel {
    position: absolute; top: 24px; right: 6px;
    background: #1a1a1a; border-radius: 11px; padding: 9px; width: 150px;
    border: 1px solid #2a2a2a; z-index: 5;
}
.ts-p-panel-title { font-size: 8px; font-weight: 700; color: #888; margin-bottom: 5px; }
.ts-p-card {
    display: flex; align-items: center; gap: 5px;
    background: #111; border-radius: 6px; border: 1px solid #2a2a2a;
    padding: 5px 6px; margin-bottom: 4px;
}
.ts-p-av {
    width: 22px; height: 22px; border-radius: 11px;
    background: #534AB7; display: flex; align-items: center; justify-content: center;
    font-size: 8px; color: #fff; font-weight: 700; flex-shrink: 0;
}
.ts-p-name   { font-size: 8px; font-weight: 700; color: #fff; }
.ts-p-status { font-size: 6px; color: #22c55e; margin-top: 1px; }
.ts-p-status.w { color: #888; }
.ts-p-dot  { width: 5px; height: 5px; border-radius: 50%; background: #22c55e; margin-left: auto; }
.ts-action-pill {
    position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%);
    background: rgba(28,28,30,0.94); border-radius: 99px;
    padding: 6px 12px 6px 14px; display: flex; align-items: center; gap: 6px;
    border: 0.5px solid rgba(255,255,255,0.1); white-space: nowrap; z-index: 5;
}
.ts-pill-label { font-size: 9px; color: rgba(255,255,255,0.75); font-weight: 600; }
.ts-pill-sep   { width: 0.5px; height: 14px; background: rgba(255,255,255,0.15); }
.ts-leave-btn  {
    background: #9b2626; border-radius: 99px; padding: 4px 10px;
    font-size: 9px; color: #fff; font-weight: 700;
}
.ts-route-line { position: absolute; top: 52px; left: 40px; width: 75px; height: 2px; background: #3366cc; }
.ts-emoji-mkr {
    position: absolute; top: 42px; left: 60px; width: 22px; height: 22px; border-radius: 11px;
    background: #22c55e; border: 1.5px solid #fff;
    display: flex; align-items: center; justify-content: center; font-size: 10px;
}
.ts-rider-dot {
    position: absolute; width: 22px; height: 22px; border-radius: 11px;
    border: 1.5px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 9px;
}
.ts-modal-sheet {
    background: #1a1a1a; border-radius: 14px 14px 0 0; border-top: 1px solid #2a2a2a;
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
}
.ts-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px 8px; }
.ts-modal-title  { font-size: 13px; font-weight: 700; color: #fff; }
.ts-modal-close  { width: 22px; height: 22px; border-radius: 11px; background: #2a2a2a; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #888; }
.ts-warn-row { display: flex; align-items: flex-start; gap: 5px; padding: 6px 8px; margin: 0 10px 6px; background: rgba(255,59,48,0.1); border-left: 2px solid #ff3b30; border-radius: 0 3px 3px 0; font-size: 8px; color: #ff6b6b; line-height: 1.5; }
.ts-arrival-card { display: flex; align-items: center; gap: 6px; padding: 8px 10px; margin: 0 10px 6px; background: #111; border-radius: 7px; border: 1px solid #2a2a2a; }
.ts-arrival-av { width: 28px; height: 28px; border-radius: 14px; background: #9b2626; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; font-weight: 700; }
.ts-arrival-name { font-size: 9px; font-weight: 700; color: #fff; }
.ts-arrival-time { font-size: 7px; color: #888; }
.ts-check-circle { width: 16px; height: 16px; border-radius: 50%; background: #22c55e; display: flex; align-items: center; justify-content: center; font-size: 7px; color: #fff; margin-left: auto; }
.ts-modal-footer { display: flex; gap: 6px; padding: 8px 10px 10px; border-top: 1px solid #2a2a2a; }
.ts-refresh-btn { flex: 1; background: #2a2a2a; border-radius: 99px; padding: 6px; display: flex; align-items: center; justify-content: center; font-size: 8px; color: #ccc; gap: 3px; }
.ts-close-btn   { flex: 1; background: #9b2626; border-radius: 99px; padding: 6px; display: flex; align-items: center; justify-content: center; font-size: 8px; color: #fff; font-weight: 700; gap: 3px; }

/* home screen-specific */
.ts-home-header { background: #111; display: flex; justify-content: space-between; align-items: center; padding: 10px 13px; border-bottom: 1px solid #222; flex-shrink: 0; }
.ts-home-av { width: 34px; height: 34px; border-radius: 17px; background: #9b2626; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.ts-home-uname { font-size: 11px; font-weight: 800; color: #fff; }
.ts-home-usub  { font-size: 8px; color: #888; }
.ts-home-actions { display: flex; align-items: center; gap: 5px; }
.ts-home-rideid { display: flex; align-items: center; gap: 3px; border: 1.5px solid #9b2626; border-radius: 6px; padding: 4px 8px; font-size: 9px; font-weight: 700; color: #fff; }
.ts-home-qr { width: 28px; height: 28px; border-radius: 6px; background: #1e1e1e; border: 1px solid #333; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; }
.ts-home-plus { width: 28px; height: 28px; border-radius: 6px; background: #9b2626; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; font-weight: 700; }
.ts-home-section { background: #1a1a1a; margin: 8px; border-radius: 9px; padding: 10px; border: 1px solid #2a2a2a; flex-shrink: 0; }
.ts-home-stitle { font-size: 10px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.ts-home-noride { font-size: 9px; color: #555; }
.ts-home-card { background: #1a1a1a; margin: 0 8px; border-radius: 10px; border: 1px solid #2a2a2a; overflow: hidden; flex-shrink: 0; }
.ts-home-card-h { padding: 10px 13px; border-bottom: 1px solid #2a2a2a; }
.ts-home-card-title { font-size: 11px; font-weight: 900; color: #fff; }
.ts-inactive-badge { display: inline-block; border: 1px solid #555; border-radius: 2px; padding: 1px 3px; font-size: 6px; font-weight: 700; color: #888; letter-spacing: 0.4px; margin-left: 4px; }
.ts-home-card-meta { padding: 8px 13px 0; }
.ts-home-card-name { font-size: 11px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.ts-home-card-row  { display: flex; align-items: center; gap: 3px; font-size: 8px; color: #888; margin-bottom: 2px; }
.ts-home-map-thumb { height: 76px; margin: 6px 13px; border-radius: 8px; overflow: hidden; background: #d5e8c8; position: relative; }
.ts-map-pin { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #9b2626; border: 1.5px solid #fff; }
.ts-home-desc { padding: 8px 13px; background: #1a1a1a; font-size: 9px; color: #ccc; line-height: 1.5; }

/* ── Right info panel ── */
.tour-info {
    flex: 1; min-width: 260px; max-width: 380px;
    display: flex; flex-direction: column; gap: 0;
    text-align: left; padding-top: 8px;
    justify-content: center;
}

.tour-step-label {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--primary-light); margin-bottom: 8px;
}

.tour-step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700; letter-spacing: -0.02em;
    color: var(--text); line-height: 1.2; margin-bottom: 14px;
}

.tour-step-desc {
    font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px;
}

.tour-dots { display: flex; gap: 6px; align-items: center; margin-bottom: 32px; }

.tour-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #2a2a2a;
    transition: all 0.25s;
}
.tour-dot.on { width: 22px; border-radius: 3px; background: var(--primary-light); }

.tour-nav { display: flex; align-items: center; gap: 12px; }

.tour-btn-prev {
    background: none; border: 1px solid var(--border-light); color: var(--text-muted);
    border-radius: 50%; width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; cursor: pointer; transition: all 0.2s;
}
.tour-btn-prev:hover:not(:disabled) { border-color: var(--text-muted); color: var(--text); }
.tour-btn-prev:disabled { opacity: 0.2; cursor: default; }

.tour-btn-next {
    background: var(--grad-btn); border: none; color: var(--red50);
    border-radius: 99px; padding: 12px 28px;
    font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; gap: 6px;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 6px 16px -6px rgba(111,28,28,0.3);
}
.tour-btn-next:hover { background: var(--grad-btn-hov); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.tour-btn-skip {
    background: none; border: none; color: var(--text-muted);
    font-size: 0.9rem; cursor: pointer; padding: 5px; transition: color 0.2s;
    margin-left: 2px;
}
.tour-btn-skip:hover { color: var(--text); }

/* screen-group chips */
.tour-chips {
    display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px;
}

.tour-chip {
    background: var(--surface-alt); border: 1px solid var(--border);
    border-radius: 99px; padding: 6px 14px; font-size: 0.8rem;
    font-weight: 600; color: var(--text-muted); cursor: pointer;
    transition: all 0.2s; white-space: nowrap;
}
.tour-chip:hover { border-color: var(--primary-light); color: var(--red100); }
.tour-chip.on { background: var(--primary-dim); border-color: var(--primary-light); color: var(--red50); }

/* ── Features section ── */
.section {
    background: var(--dark-surface);
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
    text-align: justify;
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(620px 420px at 85% -10%, rgba(255,255,255,0.08), transparent 70%);
}

.section > * {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.section .section-label { color: #ffffff; }


.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.15;
}

.section .section-title { color: #ffffff; }


.section-sub {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 48px;
}

.section .section-sub { color: var(--dark-text-muted); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.3s, box-shadow 0.3s;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.feature-card:hover::before { transform: scaleX(1); }

.section .feature-card {
    background: var(--dark-surface);
    border-color: var(--dark-border);
}

.feature-card:hover {
    border-color: var(--primary-dim);
    transform: translateY(-4px);
    box-shadow: 0 18px 32px -16px rgba(0,0,0,0.35);
}

.section .feature-card:hover { border-color: var(--primary-light); }

.feature-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(140,35,35,0.16), rgba(207,79,79,0.22));
    border: 1px solid rgba(207,79,79,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-card:hover .feature-icon { transform: scale(1.08); }

.section .feature-icon {
    background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
    border-color: rgba(255,255,255,0.2);
    color: var(--red200);
}

.feature-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.section .feature-title { color: var(--dark-text); }

.feature-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.feature-card-head .feature-title { margin-bottom: 0; }

.badge-soon {
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-light);
    border: 1px solid rgba(207,79,79,0.4);
    background: rgba(207,79,79,0.1);
    border-radius: 99px;
    padding: 3px 10px;
    white-space: nowrap;
}

.section .badge-soon {
    color: var(--red200);
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
}

/* ── Scroll reveal (fade + rise into view) ── */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.feature-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.section .feature-desc { color: var(--dark-text-muted); }

/* ── Divider ── */
.divider {
    height: 1px;
    background: var(--border);
    max-width: 960px;
    margin: 0 auto;
}

/* ── Download CTA ── */
.cta-section {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
    padding: 80px 24px;
}

.cta-section .section-title { margin: 0 auto 12px; max-width: 500px; }
.cta-section .section-sub { margin: 0 auto 36px; }

.store-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-alt);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, transform 0.15s;
}

.store-badge:hover { border-color: var(--primary-light); transform: translateY(-1px); }

.store-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(140,35,35,0.14), rgba(207,79,79,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.store-badge-icon svg { width: 20px; height: 20px; }

.store-badge-text { text-align: left; }
.store-badge-sub { font-size: 0.65rem; color: var(--text-muted); display: block; }
.store-badge-name { font-size: 0.95rem; font-weight: 600; color: var(--text); display: block; }

/* ══════════════════════════════════════
   LEGAL PAGES
══════════════════════════════════════ */
.legal-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.legal-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    width: 100%;
    max-width: 720px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 12px 0 14px;
    position: relative;
    transition: color 0.2s;
}

.tab-btn.active { color: var(--text); }

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 2px;
    background: var(--primary-light);
}

.legal-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.legal-panel { display: none; }
.legal-panel.active { display: block; animation: pageEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }

.doc-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 4px;
}

.doc-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.doc-intro {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.7;
}

.legal-main h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 36px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.legal-main h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--red100);
    margin: 20px 0 6px;
}

.legal-main p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.legal-main ul {
    padding-left: 18px;
    margin-bottom: 12px;
}

.legal-main li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.callout {
    background: rgba(140,35,35,0.15);
    border-left: 3px solid var(--primary-light);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--red100);
}

.legal-main a { color: var(--primary-light); text-decoration: none; }
.legal-main a:hover { text-decoration: underline; }
.legal-main strong { font-weight: 600; color: var(--red100); }

/* ── Facebook / Delete Account UI ── */
.fb-delete-ui { margin-top: 32px; }

.fb-profile-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 20px; margin-bottom: 28px;
}

.fb-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary-dim); border: 2px solid var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem; font-weight: 700; color: var(--red100); flex-shrink: 0;
}

.fb-profile-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.fb-username { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.fb-handle { font-size: 0.8rem; color: var(--text-muted); }

.fb-btn-profile {
    display: inline-flex; align-items: center;
    background: transparent; border: 1px solid var(--border-light);
    color: var(--text-muted); font-family: 'Inter', sans-serif;
    font-size: 0.82rem; font-weight: 600; padding: 8px 16px;
    border-radius: 8px; cursor: pointer; text-decoration: none;
    transition: border-color 0.2s, color 0.2s; white-space: nowrap;
}
.fb-btn-profile:hover { border-color: var(--text-muted); color: var(--text); text-decoration: none; }

.fb-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }

.fb-step {
    display: flex; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 14px 18px;
}

.fb-step-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--primary-dim); border: 1px solid rgba(207,79,79,0.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700; color: var(--red100); flex-shrink: 0;
}

.fb-step-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

.fb-btn-delete {
    display: block; width: 100%; background: #8c2323; color: #fbe9e9;
    font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700;
    padding: 16px; border-radius: 10px; border: none; cursor: pointer;
    transition: background 0.2s, transform 0.15s; letter-spacing: 0.02em;
}
.fb-btn-delete:hover:not(:disabled) { background: #b02a2a; transform: translateY(-1px); }

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

.footer-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer-dev {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.8rem;
}

.footer-dev-name { color: var(--text); font-weight: 600; }

.footer-dev a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-dev a:hover { color: var(--primary-light); }

.footer-sep {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--border-light);
}

.footer-about {
    font-size: 0.76rem;
    color: #4a4040;
    line-height: 1.7;
    max-width: 560px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.footer-about span { color: var(--text-muted); font-weight: 500; }

.footer-copy { font-size: 0.74rem; color: #4a4040; }
/* ── Responsive: stack hero on smaller screens ── */
@media (max-width: 900px) {
    .hero-main {
        grid-template-columns: 1fr;
        min-height: unset;
    }
    .hero-left {
        padding: 60px 32px 40px;
        align-items: center;
        text-align: center;
    }
    .hero-badge { align-self: unset; }
    .hero h1 { text-align: center; }
    .hero-sub { text-align: center; margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .hero-images {
        min-height: unset;
        padding: 40px 32px 72px;
        border-left: none;
        border-top: 1px solid var(--border);
    }
    .hero-img { max-width: 240px; }
    .hero-img-ride { max-width: 200px; margin-top: 100px; margin-left: -32px; }
}

@media (max-width: 480px) {
    nav { padding: 0 16px; height: 52px; }
    .section, .cta-section, .onboarding-section { padding: 56px 16px; }
    .hero-left { padding: 48px 16px 32px; }
    .hero-actions { width: 100%; }
    .hero-actions .btn-primary,
    .hero-actions .btn-ghost { flex: 1; justify-content: center; }
    .feature-card { padding: 22px; }
    .footer-dev { gap: 10px; }
    .store-badge { padding: 10px 16px; }
    .hero-img { max-width: 180px; }
    .hero-img-ride { max-width: 150px; margin-left: -16px; margin-top: 60px; }
}



/* ══════════════════════════════════════
   MAIN TRIO — 3-column section
   Col 1: text | Col 2: images | Col 3: onboarding
══════════════════════════════════════ */

.main-trio {
    background: var(--surface-dark);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.main-trio::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
            radial-gradient(500px 400px at 12% 20%, var(--glow-warm), transparent 70%),
            radial-gradient(400px 360px at 90% 80%, var(--glow-cool), transparent 70%);
    animation: driftGlow 16s ease-in-out infinite alternate;
}

.main-trio-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ── Column base ── */
.trio-col {
    display: flex;
    flex-direction: column;
    position: relative;
}

.trio-col + .trio-col {
    border-left: 1px solid var(--border);
}

/* ── Col 1: Text ── */
.trio-text {
    padding: 30px 48px 80px 64px;
    align-items: flex-start;
}

.trio-text h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 20px;
    animation: fadeInUp 0.7s ease 0.08s both;
}

.trio-text h1 em {
    font-style: normal;
    color: var(--primary);
}

.trio-text .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.trio-text .hero-actions {
    margin-bottom: 36px;
}

/* Stats row */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 4px;
    animation: fadeInUp 0.7s ease 0.32s both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.hero-stat-sep {
    width: 1px;
    height: 28px;
    background: var(--border-light);
    flex-shrink: 0;
}

.hero-img {
    max-height: 620px;       /* was 420px — scale up to fill the section */
    width: auto;
    max-width: none;
}

.hero-img-graph {
    max-height: 600px;      /* now the main/large one */
    margin-right: -90px;
    z-index: 2;
    animation: floatPhone 7s ease-in-out infinite 0.3s;
}

.hero-img-ride {
    max-height: 380px;      /* now the small one */
    margin-left: -90px;
    margin-right: -90px;
    z-index: 1;
    animation: floatPhone 6s ease-in-out infinite;
}

.hero-img-share {
    max-height: 600px;      /* now the main/large one */
    margin-left: -90px;
    z-index: 3;
    animation: floatPhone 6.5s ease-in-out infinite 0.6s;
}
/* floating "riders online" bubble */
.trio-bubble {
    position: absolute;
    top: -16px;
    left: -8px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 7px 14px 7px 10px;
    box-shadow: 0 6px 20px rgba(26,22,51,0.12);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    z-index: 10;
    animation: fadeInUp 0.7s ease 0.4s both;
}

.trio-bubble-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
    animation: pulse 2s ease-in-out infinite;
}

.trio-bubble-text {
    color: var(--text);
}

/* ── Col 3: Onboarding ── */
.trio-tour {
    padding: 60px 40px 60px 40px;
    background: var(--surface);
    overflow: hidden;
}

.trio-tour::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(400px 300px at 60% 0%, var(--glow-warm), transparent 70%);
}

.trio-tour > * { position: relative; z-index: 1; }

.trio-tour-label {
    margin-bottom: 32px;
}

.trio-tour-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
    margin: 10px 0 12px;
}

.trio-tour-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.trio-tour .tour-phone,
.trio-tour .tour-phone .phone {
    width: 100%;
    max-width: 240px;
}

.trio-tour .tour-screens {
    height: 460px;
}

.trio-tour .tour-wrap {
    justify-content: flex-start;
    gap: 0;
    padding-top: 24px;
}

/* ══════════════════════════════════════
   RIDE SEARCH / FILTER BAR SECTION
══════════════════════════════════════ */

.ride-search-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 5px 5px 5px;
    text-align: center;
}

.ride-search-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.ride-search-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 99px;
    box-shadow: 0 4px 24px rgba(26,22,51,0.08);
    max-width: 780px;
    margin: 0 auto;
    padding: 6px 6px 6px 8px;
    gap: 0;
    transition: box-shadow 0.25s;
}

.ride-search-bar:hover {
    box-shadow: 0 6px 32px rgba(111,28,28,0.13);
}

.rsb-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 99px;
    transition: background 0.2s;
    min-width: 0;
}

.rsb-field:hover { background: var(--surface-alt); }
.rsb-field--first { padding-left: 24px; }

.rsb-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.rsb-value {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.rsb-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
    flex-shrink: 0;
}

.rsb-search-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--grad-btn);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 8px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 14px -4px rgba(111,28,28,0.4);
}

.rsb-search-btn:hover {
    background: var(--grad-btn-hov);
    transform: scale(1.07);
    box-shadow: var(--shadow-md);
}

.rsb-search-btn svg { width: 18px; height: 18px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .main-trio-inner { grid-template-columns: 1fr 1fr; }
    .trio-tour {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1px solid var(--border);
        align-items: center;
        padding: 56px 32px;
    }
    .trio-tour .tour-wrap { justify-content: center; }
    .trio-tour .tour-phone,
    .trio-tour .tour-phone .phone { max-width: 280px; }
    .trio-tour .tour-screens { height: 520px; }
}

@media (max-width: 768px) {
    .main-trio-inner { grid-template-columns: 1fr; }
    .trio-col + .trio-col { border-left: none; border-top: 1px solid var(--border); }
    .trio-text {
        padding: 56px 24px 48px;
        align-items: center;
        text-align: center;
    }
    .trio-text .hero-badge { align-self: unset; }
    .trio-text h1, .trio-text .hero-sub { text-align: center; }
    .trio-text .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .trio-tour { padding: 48px 24px; }
    .ride-search-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 8px;
        gap: 4px;
    }
    .rsb-field { width: 100%; border-radius: 12px; padding: 10px 16px; }
    .rsb-field--first { padding-left: 16px; }
    .rsb-divider { display: none; }
    .rsb-search-btn { width: 100%; border-radius: 12px; height: 46px; margin-left: 0; }
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 720px;
}

.faq-item {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s;
}
.faq-item.open { border-color: var(--primary-light); }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 18px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-text);
}

.faq-chevron {
    width: 18px; height: 18px;
    flex-shrink: 0;
    color: var(--red200);
    transition: transform 0.3s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }

.faq-answer p {
    padding: 0 22px 20px;
    font-size: 0.88rem;
    color: var(--dark-text-muted);
    line-height: 1.7;
}

.faq-answer a { color: var(--red200); text-decoration: underline; }

