/* RouteMap website. One accent (the app's route blue, Theme.accent in Design.swift), the system font (SF Pro, as in
   the app), 8 pt spacing, left-aligned copy on a single edge, light and dark from the system setting. */
:root {
  --bg: #FFFFFF;
  --bg-2: #F2F3F6;
  --card: #FFFFFF;
  --text: #111318;
  --text-2: #5E6573;
  --text-3: #6B7280;
  --line: rgba(17, 19, 24, 0.09);
  --accent: #1F5AD6;
  --accent-fill: #1F5AD6;
  --accent-hover: #1D4FC0;
  --accent-soft: #E4ECFF;
  --field: #13804A;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(17, 19, 24, 0.04), 0 12px 32px -12px rgba(17, 19, 24, 0.12);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --bg-2: #1B1D22;
    --card: #1B1D22;
    --text: #F5F6F8;
    --text-2: #A3AAB6;
    --text-3: #8A909B;
    --line: rgba(255, 255, 255, 0.09);
    --accent: #4F86FF;
    --accent-fill: #3366E6;
    --accent-hover: #3D6FE0;
    --accent-soft: #1D2A47;
    --field: #3DD68C;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 48px); margin: 0 auto; }
@media (max-width: 600px) { .wrap { width: calc(100% - 32px); } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--card); padding: 8px 14px; border-radius: 10px; }

/* Nav: brand left, links and the one action right. */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 24px; font-size: 15px; margin-left: auto; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .nav-links { display: none; } .nav .btn-sm { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px; background: var(--accent-fill); color: #fff; font-weight: 600; font-size: 17px; transition: background 0.15s, transform 0.15s; }
.btn:hover { text-decoration: none; background: var(--accent-hover); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; gap: 7px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-note { color: var(--text-3); font-size: 14px; margin: 14px 0 0; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); padding: 14px 22px; border-radius: 999px; font-weight: 500; font-size: 15px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); transition: opacity 0.25s, transform 0.25s; z-index: 20; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Type */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
h1, h2, h3 { font-weight: 700; margin: 0; }
h2 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 16px; max-width: 18ch; }
.lede { color: var(--text-2); font-size: clamp(18px, 1.8vw, 20px); max-width: 44ch; margin: 0; }

/* Hero: copy on the left edge, two phones on the right. */
.hero { padding: 72px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.045em; margin: 0 0 22px; }
@media (max-width: 600px) { .hero h1 br { display: none; } }
.hero .lede { margin-bottom: 32px; max-width: 34ch; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--text-2); font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--field); flex: none; }
.hero-visual { position: relative; height: 700px; }
.phone { position: absolute; width: 290px; border-radius: 46px; padding: 9px; background: #0A0A0B; box-shadow: 0 40px 80px -24px rgba(15, 17, 21, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.07) inset; }
.phone img { border-radius: 37px; width: 100%; }
.hero .phone.back { top: 0; right: 0; }
.hero .phone.front { top: 70px; left: 4%; }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { height: 520px; max-width: 520px; }
  .phone { width: 230px; border-radius: 38px; padding: 7px; }
  .phone img { border-radius: 31px; }
}
@media (max-width: 480px) {
  .hero-visual { height: 460px; }
  .phone { width: 200px; }
  .hero .phone.front { left: 0; }
}

/* Sections */
section { padding: 96px 0; }
section.tint { background: var(--bg-2); }
.section-head { margin-bottom: 48px; }
@media (max-width: 600px) { section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

/* How it works: three numbered steps, one row. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 18px; }
.steps h3 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 6px; }
.steps p { color: var(--text-2); margin: 0; font-size: 16px; }

/* Feature rows: copy and one phone, alternating sides. */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip .feature-media { order: -1; }
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { position: relative; width: 300px; }
.feature ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.feature li { display: flex; gap: 12px; color: var(--text-2); }
.feature li b { color: var(--text); font-weight: 600; }
.feature li svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .feature-media { order: 0; }
  .feature-media .phone { width: 250px; }
  .feature + .feature { margin-top: 88px; }
}

/* Detail grid */
.details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .details { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .details { grid-template-columns: 1fr; } }
.detail { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.detail svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.detail h3 { font-size: 17px; margin-bottom: 4px; }
.detail p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }

/* Pricing: Free and Pro side by side, Pro carries the one action. */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price-card.pro { border: 2px solid var(--accent); }
.price-card h3 { font-size: 20px; letter-spacing: -0.01em; }
.price-card .amount { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-top: 10px; }
.price-card .amount small { font-size: 18px; color: var(--text-2); font-weight: 500; letter-spacing: 0; }
.price-card p { color: var(--text-2); margin: 12px 0 0; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; color: var(--text-2); font-size: 16px; }
.price-card li svg { flex: none; width: 20px; height: 20px; color: var(--field); margin-top: 3px; }
.price-card .fine { font-size: 14px; color: var(--text-3); }
.price-card .btn { margin-top: auto; width: 100%; }
.price-card .btn-wrap { margin-top: 24px; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
/* FAQ */
.faq details, .faq .section-head { max-width: 760px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 12px 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 28px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--text-2); }

/* Closing call to action */
.cta-band { text-align: left; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; background: var(--card); border: 1px solid var(--line); border-radius: 32px; padding: 48px; box-shadow: var(--shadow); }
.cta-band h2 { margin-bottom: 8px; }
.cta-band .lede { font-size: 18px; }
@media (max-width: 600px) { .cta-band .wrap { padding: 32px 24px; } }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--text-2); }

/* Legal and support pages */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 8px; }
.doc .meta { color: var(--text-3); font-size: 15px; margin-bottom: 36px; }
.doc h2 { font-size: 24px; letter-spacing: -0.01em; margin: 44px 0 10px; max-width: none; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.summary { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin-bottom: 8px; }
.summary p { margin: 0; }
.summary ul { margin: 10px 0 0; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; min-width: 520px; }
table.data th, table.data td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { color: var(--text); font-weight: 600; }
table.data td { color: var(--text-2); }
.contact { background: var(--accent-soft); border-radius: 20px; padding: 24px; margin-top: 36px; }
.contact p { margin: 0; color: var(--text); }
