/* Brand tokens match the Figma screens (navy primary, amber accent, cool gray ground). */
:root {
  --navy: #142b4f;
  --navy-deep: #0e2140;
  --amber: #f2a516;
  --amber-soft: #fdf1d8;
  --ground: #f3f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6678;
  --border: #e1e6ee;
  --blue: #2f6fe4;
  --green: #1f9d63;
  --radius: 20px;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.mono {
  font-family: var(--font-mono);
}

/* Header */

.site-header {
  background: var(--navy);
  color: #fff;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #fff;
  display: grid;
  place-items: center;
}

.logo-mark svg {
  width: 26px;
  height: 26px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.nav a {
  text-decoration: none;
  opacity: 0.85;
}

.nav a:hover {
  opacity: 1;
}

.nav .nav-link {
  display: none;
}

/* Buttons and store badges */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.button-amber {
  background: var(--amber);
  color: var(--navy-deep);
}

.button-amber:hover {
  background: #f6b53c;
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 12px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 18px 8px 14px;
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.store svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.store strong {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.2;
}

.store-note {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.7;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 40px 0 72px;
}

.hero-route {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 70%;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--amber);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 68px);
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero-lede {
  margin: 20px 0 32px;
  max-width: 34em;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.82);
}

/* Phone mock of the live trip page */

.phone {
  justify-self: center;
  width: 320px;
  max-width: 100%;
  padding: 12px;
  border-radius: 44px;
  background: #0a1830;
  box-shadow: 0 40px 80px rgba(3, 10, 25, 0.45);
}

.screen {
  border-radius: 34px;
  background: var(--ground);
  color: var(--text);
  padding: 22px 16px 18px;
  font-size: 13px;
}

.screen-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.screen-top .logo {
  font-size: 16px;
  gap: 7px;
}

.screen-top .logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--navy);
}

.screen-top .logo-mark svg {
  width: 18px;
  height: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #e5eeff;
  color: var(--blue);
}

.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill-green {
  background: #e3f5ec;
  color: var(--green);
}

.pill-green::before {
  display: none;
}

.screen-kicker {
  color: var(--muted);
}

.screen-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  margin: 2px 0 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

.card + .card {
  margin-top: 10px;
}

.lands {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

.lands-time {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 38px;
  letter-spacing: -0.03em;
  margin: 6px 0 2px;
}

.progress {
  position: relative;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin: 14px 0 8px;
}

.progress span {
  position: absolute;
  inset: 0 22% 0 0;
  background: var(--navy);
  border-radius: 2px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.map {
  padding: 0;
  overflow: hidden;
}

.map svg {
  display: block;
  width: 100%;
  height: auto;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.facts .card {
  margin: 0;
  padding: 10px 8px;
}

.facts small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.facts strong {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

/* Sections */

section {
  padding: 80px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2,
.split h2 {
  font-size: clamp(30px, 5vw, 44px);
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b07600;
  margin-bottom: 12px;
}

/* How it works */

.steps {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--amber);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
}

/* Messages */

.messages {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.checks li {
  position: relative;
  padding-left: 34px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--amber-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='%23142B4F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 22px no-repeat;
}

.checks strong {
  font-family: var(--font-head);
}

.thread {
  background: var(--ground);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: grid;
  gap: 12px;
  max-width: 440px;
  width: 100%;
  justify-self: center;
}

.thread-from {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.bubble {
  max-width: 88%;
  padding: 11px 15px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.4;
}

.bubble-in {
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}

.bubble-out {
  justify-self: end;
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.bubble .link {
  color: var(--blue);
  text-decoration: underline;
}

/* Pricing */

.plans {
  display: grid;
  gap: 20px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.plan-paid {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.plan h3 {
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--navy-deep);
}

.price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 52px;
  letter-spacing: -0.03em;
  margin: 14px 0 2px;
}

.price small {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.7;
}

.price-note {
  font-size: 15px;
  color: var(--muted);
}

.plan-paid .price-note {
  color: rgba(255, 255, 255, 0.72);
}

.plan .checks {
  margin-top: 24px;
}

.plan-paid .checks li::before {
  background-color: var(--amber);
}

.fine {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* Trust and FAQ */

.trust {
  display: grid;
  gap: 16px;
}

.trust div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.trust h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.trust p {
  color: var(--muted);
  font-size: 16px;
}

.faq {
  max-width: 760px;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: #b07600;
  font-size: 24px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details p {
  margin-top: 10px;
  color: var(--muted);
}

/* Closing call to action and footer */

.cta {
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.cta h2 {
  font-size: clamp(30px, 5vw, 44px);
}

.cta p {
  margin: 14px auto 32px;
  max-width: 32em;
  color: rgba(255, 255, 255, 0.8);
}

.cta .stores {
  justify-content: center;
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  padding: 32px 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.site-footer .logo {
  color: #fff;
  font-size: 18px;
}

.site-footer .logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.site-footer .logo-mark svg {
  width: 21px;
  height: 21px;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

@media (min-width: 720px) {
  .nav .nav-link {
    display: inline;
  }

  .steps,
  .trust {
    grid-template-columns: repeat(3, 1fr);
  }

  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 64px 0 96px;
  }

  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  section {
    padding: 104px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
