:root {
  --sea: #0b5d73;
  --sea-bright: #1488a6;
  --sea-soft: #6fc4d6;
  --sand: #f4ede2;
  --ink: #14242b;
  --ink-soft: #4a5b62;
  --paper: #fbfaf6;
  --line: #e7e2d7;
  --scenic: #0b7a5e;
  --balanced: #2f7fa6;
  --fast: #c9772b;
  --alt: #7a7f87;
  --radius: 16px;
  --shadow: 0 18px 50px -22px rgba(11, 93, 115, 0.45);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.1rem, 4vw, 2.5rem);
  background: rgba(251, 250, 246, 0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--sea);
}

.brand-mark { width: 1.6em; height: 1.6em; }

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.site-nav a:hover { color: var(--sea); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--sea);
  color: #fff;
  box-shadow: 0 12px 28px -14px rgba(11, 93, 115, 0.8);
}
.btn-primary:hover { background: var(--sea-bright); }
.btn-ghost {
  background: transparent;
  color: var(--sea);
  border: 1.5px solid rgba(11, 93, 115, 0.25);
}
.btn-ghost:hover { border-color: var(--sea); }
.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sea-bright);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.1rem;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 32ch;
  margin: 0 0 1.8rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.footnote {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--alt);
}

/* hero art — phone mockup */
.hero-art { display: flex; justify-content: center; }

.phone {
  position: relative;
  width: min(300px, 78vw);
  padding: 11px;
  background: #0d0e11;
  border-radius: 46px;
  box-shadow: var(--shadow), 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #2a2c31;
}
.phone-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 22px;
  background: #0d0e11;
  border-radius: 12px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  aspect-ratio: 300 / 600;
  border-radius: 36px;
  overflow: hidden;
  background: #eaece4;
}
.map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.route-line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.4s ease-out 0.4s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* in-app search bar */
.ui-search {
  position: absolute;
  top: 56px;
  left: 13px;
  right: 13px;
  z-index: 2;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.3) blur(8px);
  border-radius: 15px;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.4);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.ui-row { display: flex; align-items: center; gap: 9px; padding: 2px 0; }
.ui-divider { height: 1px; background: var(--line); margin: 4px 0 4px 20px; }
.ui-dot { width: 10px; height: 10px; flex: none; }
.ui-dot-start { border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2.5px var(--sea); }
.ui-dot-end { border-radius: 3px; background: #e2553a; }

/* in-app route sheet */
.ui-routes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 9px 11px 16px;
  background: #fff;
  border-radius: 22px 22px 36px 36px;
  box-shadow: 0 -10px 26px -14px rgba(0, 0, 0, 0.28);
}
.ui-grabber { width: 36px; height: 4px; border-radius: 2px; background: #d8d3c7; margin: 0 auto 9px; }
.ui-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border: 1.5px solid transparent;
  border-radius: 12px;
}
.ui-route + .ui-route { margin-top: 3px; }
.ui-route.is-selected { border-color: rgba(11, 93, 115, 0.35); background: rgba(11, 93, 115, 0.06); }
.ui-flavor {
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
}
.ui-flavor-scenic { background: var(--scenic); }
.ui-flavor-fast { background: var(--fast); }
.ui-flavor-balanced { background: var(--balanced); }
.ui-time {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.ui-time small {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: var(--ink-soft);
  margin-left: 3px;
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.1rem, 4vw, 2.5rem);
}
.section-tint {
  max-width: none;
  background: linear-gradient(180deg, #f1f6ee, #eaf3f4);
  border-block: 1px solid var(--line);
}
.section-tint > * { max-width: var(--maxw); margin-inline: auto; }

.section-head { max-width: 46ch; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 0.6rem; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 1.08rem; }

/* steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  counter-reset: step;
}
.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(11, 93, 115, 0.1);
  color: var(--sea);
  font-weight: 700;
  font-family: "Fraunces", serif;
  margin-bottom: 0.9rem;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* factors */
.factors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.factor {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.factor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}
.factor-icon { font-size: 1.7rem; }
.factor-weight {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--sea);
}
.factor h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.factor p { margin: 0 0 1.1rem; color: var(--ink-soft); font-size: 0.95rem; }
.bar {
  height: 7px;
  border-radius: 99px;
  background: rgba(11, 93, 115, 0.1);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sea-soft), var(--sea));
}

/* labels */
.labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}
.label {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}
.label-scenic { background: var(--scenic); }
.label-balanced { background: var(--balanced); }
.label-fast { background: var(--fast); }
.label-alt { background: var(--alt); }
.labels-note { max-width: 52ch; color: var(--ink-soft); margin: 0; }

/* cta */
.section-cta {
  text-align: center;
  max-width: 640px;
}
.section-cta h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.8rem; }
.section-cta > p { color: var(--ink-soft); font-size: 1.1rem; margin: 0 auto 1.8rem; max-width: 44ch; }
.section-cta .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #f4f1e8;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.1rem, 4vw, 2.5rem) 1.6rem;
}
.footer-top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}
.footer-brand .brand { margin-bottom: 0.9rem; }
.footer-brand p {
  color: var(--ink-soft);
  max-width: 32ch;
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
}
.footer-email { color: var(--sea); font-weight: 600; }
.footer-email:hover { text-decoration: underline; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.footer-col h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--alt);
  margin: 0 0 0.8rem;
}
.footer-col a {
  display: block;
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 0.28rem 0;
}
.footer-col a:hover { color: var(--sea); }

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.footer-bottom p { margin: 0; }
.footer-bottom .muted { color: var(--alt); }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.1rem, 4vw, 2.5rem);
}
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.4rem; }
.legal .updated { color: var(--alt); font-size: 0.9rem; margin: 0 0 2.4rem; }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 0.6rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--sea); text-decoration: underline; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--sea);
  font-weight: 600;
  text-decoration: none;
  margin-top: 2.5rem;
}
.legal-back:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .site-nav { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .route-line { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
