:root {
  --paper: #eef3f1;      /* survey-map ground */
  --paper-2: #e3ebe8;
  --ink: #13233f;        /* navy contour ink */
  --ink-soft: #4b5b75;
  --route: #2c6bf0;      /* the app's blue */
  --route-dark: #1d52c4;
  --water: #bfd6e6;
  --park: #c5dfc0;
  --road: #ffffff;
  --amber: #e9a23b;
  --line: #c9d5d1;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--route-dark); }
:focus-visible { outline: 3px solid var(--route); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px var(--display); color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  background: var(--route); color: #fff; text-decoration: none; font: 600 16px var(--body);
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(44, 107, 240, .7);
}
.btn:hover { background: var(--route-dark); }
.btn.small { padding: 9px 16px; font-size: 15px; box-shadow: none; }
.btn .price { font-weight: 700; opacity: .9; }

/* ---------- hero */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding: 40px 0 88px; }
.hero h1 {
  font: 800 clamp(40px, 5.6vw, 66px)/1.02 var(--display); letter-spacing: -.035em; margin: 0 0 22px;
}
.hero p.lede { font-size: 20px; color: var(--ink-soft); max-width: 34ch; margin: 0 0 30px; }
.hero .fine { margin-top: 16px; font-size: 14.5px; color: var(--ink-soft); }

/* the interactive demo */
.demo { position: relative; padding: 0 70px 40px 0; }
.win {
  background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(19, 35, 63, .45);
}
.win-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #f6f8f8; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.win-bar img { width: 16px; height: 16px; }
.win-body { display: grid; grid-template-columns: 170px 1fr; height: 330px; }
.side { background: #171a21; color: #e8eaf0; padding: 14px; font-size: 12.5px; display: flex; flex-direction: column; gap: 10px; }
.side .status { display: flex; align-items: center; gap: 7px; color: #a5adbd; }
.side .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; }
.side .label { color: #8a92a3; font-size: 11px; margin-top: 4px; }
.side .now { font-weight: 650; font-size: 14px; color: #fff; }
.places { display: grid; gap: 6px; margin-top: 4px; }
.places button {
  font: 600 12.5px var(--body); text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer;
  background: #232835; color: #dfe3ea; border: 1px solid #2d3341;
}
.places button[aria-pressed="true"] { background: var(--route); border-color: var(--route); color: #fff; }
.places button:hover { border-color: #56607a; }
.mapbox { position: relative; overflow: hidden; background: var(--paper-2); }
.mapbox svg:not(.pin), .screen svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapbox .pin {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 40px; margin: -40px 0 0 -15px;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.25));
}
.mapbox .pin.drop { animation: drop .45s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes drop { from { transform: translateY(-26px); opacity: 0; } to { transform: none; opacity: 1; } }

.phone {
  position: absolute; right: 0; bottom: 0; width: 168px; aspect-ratio: 9 / 19.2;
  background: #0d1117; border-radius: 30px; padding: 7px;
  box-shadow: 0 26px 50px -18px rgba(19, 35, 63, .6);
}
.screen { position: relative; height: 100%; border-radius: 24px; overflow: hidden; background: var(--paper-2); }
.island { position: absolute; top: 8px; left: 50%; width: 52px; height: 15px; margin-left: -26px; background: #0d1117; border-radius: 10px; z-index: 3; }
.me {
  position: absolute; left: 50%; top: 46%; width: 16px; height: 16px; margin: -8px 0 0 -8px; z-index: 2;
  background: #2f80ff; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 7px rgba(47, 128, 255, .22);
}
.card {
  position: absolute; left: 8px; right: 8px; bottom: 10px; z-index: 2; background: rgba(255,255,255,.96);
  border-radius: 14px; padding: 9px 11px; font-size: 11px; line-height: 1.35; color: var(--ink-soft);
}
.card b { display: block; font: 700 14px var(--display); color: var(--ink); }
.moving .card b { color: var(--route); }
.try { position: absolute; left: 0; bottom: 6px; font-size: 14px; color: var(--ink-soft); }

/* ---------- sections */
section { padding: 84px 0; border-top: 1px solid var(--line); }
h2 { font: 800 clamp(30px, 3.6vw, 42px)/1.08 var(--display); letter-spacing: -.025em; margin: 0 0 14px; max-width: 22ch; }
.intro { color: var(--ink-soft); max-width: 58ch; margin: 0 0 40px; font-size: 18px; }

/* steps: a real sequence, drawn as a route with stops */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 19px; left: 20px; right: calc((100% - 56px) / 3 + 8px); border-top: 3px dashed var(--route); opacity: .45;
}
.steps li { position: relative; }
.steps .stop {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: #fff; border: 3px solid var(--route); font: 800 16px var(--display); color: var(--route); margin-bottom: 16px;
}
.steps h3 { font: 700 21px var(--display); margin: 0 0 6px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* features as a map legend */
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin: 0; }
.legend > div { display: grid; grid-template-columns: 52px 1fr; gap: 2px 16px; align-content: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.legend dt { grid-row: span 2; }
.legend dt svg { width: 44px; height: 44px; }
.legend .name { font: 700 19px var(--display); margin: 0; }
.legend dd { margin: 0; color: var(--ink-soft); }

.video { margin-top: 44px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.video video { width: 100%; display: block; }
.video .tall { display: none; }
@media (max-width: 640px) {
  .video { max-width: 360px; margin-left: auto; margin-right: auto; }
  .video .wide { display: none; }
  .video .tall { display: block; }
}

/* requirements: the travel checklist */
.needs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.checklist { list-style: none; margin: 0; padding: 26px 28px; background: #fff; border-radius: 14px; border: 1px solid var(--line); border-left: 6px solid var(--amber); }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 9px 0; }
.checklist li + li { border-top: 1px solid #edf1ef; }
.checklist svg { width: 22px; height: 22px; margin-top: 3px; }
.checklist b { display: block; }
.checklist span { color: var(--ink-soft); font-size: 15.5px; }

/* price */
.buy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.ticket {
  background: var(--ink); color: #fff; border-radius: 18px; padding: 34px; position: relative;
  background-image: radial-gradient(circle at 0 50%, var(--paper) 14px, transparent 15px),
                    radial-gradient(circle at 100% 50%, var(--paper) 14px, transparent 15px);
}
.ticket .amount { font: 800 64px/1 var(--display); letter-spacing: -.03em; }
.ticket .once { color: #b8c3d6; margin: 6px 0 22px; }
.ticket ul { margin: 0 0 28px; padding-left: 20px; color: #dfe5f0; }
.ticket li { margin: 5px 0; }
.ticket .btn { width: 100%; }
.ticket .refund { font-size: 14px; color: #b8c3d6; margin: 14px 0 0; text-align: center; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; max-width: 760px; }
.faq summary { cursor: pointer; font: 700 19px var(--display); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--route); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); max-width: 64ch; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 52px; font-size: 14.5px; color: var(--ink-soft); }
footer .row { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--ink); }
footer .small { margin-top: 18px; font-size: 13px; }

/* legal pages */
.legal { max-width: 720px; padding: 30px 0 80px; }
.legal h1 { font: 800 44px/1.05 var(--display); letter-spacing: -.03em; margin: 10px 0 8px; }
.legal .updated { color: var(--ink-soft); margin: 0 0 30px; }
.legal h2 { font-size: 24px; margin: 34px 0 8px; max-width: none; }
.legal p, .legal li { color: #2a3a55; }

@media (max-width: 900px) {
  .hero, .needs, .buy { grid-template-columns: 1fr; }
  .hero { gap: 36px; padding-bottom: 60px; }
  .legend { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { top: 20px; bottom: 20px; left: 19px; right: auto; border-top: 0; border-left: 3px dashed var(--route); }
  .steps li { padding-left: 62px; }
  .steps .stop { position: absolute; left: 0; top: 0; }
  section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .demo { padding: 0 0 262px; }
  .win-body { grid-template-columns: 1fr; height: auto; }
  .side { order: 2; }
  .mapbox { height: 190px; }
  .phone { width: 140px; right: 12px; }
  .try { bottom: 230px; display: none; }
  .ticket .amount { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mapbox .pin.drop { animation: none; }
}
