/* Rutalto public site. Palette mirrors RutaltoPalette.swift / Android Color.kt; type uses the platform UI fonts the apps use. */
:root {
  --gold: #D88B36;
  --gold-strong: #B86E1C;
  --gold-text: #8A5212;
  --gold-soft: rgba(216, 139, 54, 0.14);
  --tide: #2B6F82;
  --tide-soft: rgba(60, 140, 163, 0.12);
  --ink: #231C16;
  --ink-muted: #5E5248;
  --bg: #F7F3EE;
  --bg-raised: #FFFBF7;
  --line: rgba(35, 28, 22, 0.10);
  --volcanic: #18171A;
  --volcanic-raised: #232228;
  --on-volcanic: #F4EFE8;
  --on-volcanic-muted: #BDB2A4;
  --shadow: 0 1px 2px rgba(35, 28, 22, 0.06), 0 12px 32px rgba(35, 28, 22, 0.08);
  --radius: 20px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --gold-text: #E8A65C;
    --gold-soft: rgba(216, 139, 54, 0.16);
    --tide: #7CC3D6;
    --tide-soft: rgba(124, 195, 214, 0.12);
    --ink: #F4EFE8;
    --ink-muted: #C2B7A9;
    --bg: #18171A;
    --bg-raised: #222127;
    --line: rgba(255, 255, 255, 0.10);
    --volcanic: #0F0E10;
    --volcanic-raised: #1B1A1E;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--tide); text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 14px; background: var(--bg-raised); color: var(--ink); border-radius: 10px; }
.skip-link:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink-muted); max-width: 38rem; }
.muted { color: var(--ink-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--ink-muted); text-decoration: none; font-size: 0.9375rem; font-weight: 600; }
.site-nav a:hover { color: var(--ink); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-size: 0.8125rem; font-weight: 700; }
.lang-switch a, .lang-switch span { padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--ink-muted); }
.lang-switch [aria-current="page"] { background: var(--ink); color: var(--bg); }
@media (max-width: 860px) { .site-nav { display: none; } .lang-switch { margin-left: auto; } }

/* ---------- Buttons / store pills ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 14px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent;
}
.button-primary { background: var(--gold); color: #1B140D; }
.button-primary:hover { background: var(--gold-strong); color: #1B140D; }
.button-quiet { border-color: var(--line); color: var(--ink); background: var(--bg-raised); }
.button-quiet:hover { color: var(--ink); border-color: var(--ink-muted); }
.store-pill {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 18px;
  border-radius: 14px; background: var(--ink); color: var(--bg); line-height: 1.2;
}
.store-pill small { font-size: 0.6875rem; font-weight: 600; opacity: 0.75; letter-spacing: 0.02em; }
.store-pill strong { font-size: 1rem; }

/* ---------- Phone frame ---------- */
.phone {
  position: relative; width: 100%; max-width: 300px;
  padding: 9px; border-radius: 44px; background: #0E0D0F;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 30px 60px -20px rgba(35, 28, 22, 0.45), 0 10px 20px -10px rgba(35, 28, 22, 0.25);
}
.phone img { width: 100%; aspect-ratio: 1344 / 2892; object-fit: cover; border-radius: 35px; background: #1A1A1D; }
.phone-sm { max-width: 248px; border-radius: 38px; padding: 8px; }
.phone-sm img { border-radius: 30px; }
@media (max-width: 560px) { .phone { max-width: 250px; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); font-weight: 850; margin: 14px 0 20px; }
.hero h1 em { font-style: normal; color: var(--gold-text); }
.hero .lead { margin-bottom: 30px; }
.hero-note { margin-top: 18px; font-size: 0.875rem; color: var(--ink-muted); }
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 520px; }
.hero-visual .phone:first-child { z-index: 2; transform: translateX(-18%); }
.hero-visual .phone:nth-child(2) { position: absolute; top: 56px; right: 2%; z-index: 1; transform: rotate(4deg); }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; }
  .hero-visual .phone:first-child { transform: none; }
  .hero-visual .phone:nth-child(2) { display: none; }
}

/* ---------- Facts strip ---------- */
.facts { border-block: 1px solid var(--line); background: var(--bg-raised); }
.facts ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.facts li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 3px solid var(--gold); }
.facts strong { font-size: 1rem; }
.facts span { font-size: 0.875rem; color: var(--ink-muted); }
@media (max-width: 860px) { .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .facts ul { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 44rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2, .coverage h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); font-weight: 800; margin: 10px 0 14px; }
.section-tight { padding-top: 0; }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.role { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.role h3 { font-size: 1.5rem; margin: 6px 0 18px; }
.role-tag { display: inline-block; font-size: 0.8125rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.role-passenger .role-tag { background: var(--tide-soft); color: var(--tide); }
.role-driver .role-tag { background: var(--gold-soft); color: var(--gold-text); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-weight: 800; font-size: 0.9375rem; border: 1.5px solid var(--line); color: var(--ink);
}
.steps strong { display: block; }
.steps span { color: var(--ink-muted); font-size: 0.9375rem; }
@media (max-width: 760px) { .roles { grid-template-columns: 1fr; } }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 128px); }
.feature-media { display: flex; justify-content: center; gap: 20px; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; margin: 10px 0 14px; }
.feature p + p { margin-top: 12px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg);
}
.note { margin-top: 18px; padding: 12px 16px; border-radius: 14px; background: var(--tide-soft); font-size: 0.9375rem; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-media .phone-sm:nth-child(2) { display: none; }
}

/* More features grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tile h3 { font-size: 1.125rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.tile p { color: var(--ink-muted); font-size: 0.9375rem; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }

/* Coverage band (always volcanic, like the app's dark theme) */
.band { background: var(--volcanic); color: var(--on-volcanic); }
.band .eyebrow { color: #E8A65C; }
.band .lead, .band .muted { color: var(--on-volcanic-muted); }
.coverage { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.region { padding: 16px 18px; border-radius: 16px; background: var(--volcanic-raised); border: 1px solid rgba(255, 255, 255, 0.08); }
.region strong { display: block; }
.region span { font-size: 0.875rem; color: var(--on-volcanic-muted); }
.coverage-art { justify-self: center; width: min(360px, 80%); }
@media (max-width: 860px) { .coverage { grid-template-columns: 1fr; } .coverage-art { order: -1; width: min(220px, 60%); } }
@media (max-width: 480px) { .regions { grid-template-columns: 1fr; } }

/* Pro */
.pro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.plan { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: var(--bg-raised); }
.plan-pro { border: 2px solid var(--gold); }
.plan h3 { font-size: 1.375rem; margin-bottom: 6px; }
@media (max-width: 760px) { .pro { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted); transform: rotate(45deg);
}
@media (prefers-reduced-motion: no-preference) { .faq summary::after { transition: transform 0.2s ease; } }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 20px; color: var(--ink-muted); }

/* Closing CTA */
.cta { text-align: center; }
.cta img { width: 96px; height: 96px; margin: 0 auto 20px; }
.cta h2 { font-size: clamp(1.875rem, 3.6vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }
.cta .lead { margin: 0 auto 28px; }
.cta .actions { justify-content: center; }

/* ---------- Utility pages (support, account deletion) ---------- */
.page { padding: clamp(40px, 6vw, 72px) 0; }
.page .wrap { max-width: 780px; }
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 32px); margin-bottom: 24px; }
.card h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: 8px; }
.card h2 { font-size: 1.125rem; margin: 22px 0 6px; letter-spacing: -0.01em; }
.card ul { padding-left: 22px; }
.card li { margin: 6px 0; }
.center { text-align: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 0.9375rem; color: var(--ink-muted); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer nav a { color: var(--ink-muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .brand { font-size: 1rem; margin-bottom: 8px; }
.site-footer .brand img { width: 28px; height: 28px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
