/* NavBuddy marketing home — "the calm journey"
   Scoped to index.html only; legal pages keep styles.css. */

:root {
  --ink: #12383B;
  --ink-soft: #3a5457;
  --muted: #5c7274;
  --teal: #308890;
  --teal-deep: #266064;
  --mint: #e9f3f1;
  --sky-1: #eef6f5;
  --sky-2: #dcebea;
  --dawn: #ef9a7c;
  --dawn-deep: #d97a58;
  --dawn-soft: #fbe7dd;
  --paper: #ffffff;
  --rule: #d3e2e1;
  --shadow: 0 18px 40px -24px rgba(18, 56, 59, 0.45);
  --maxw: 960px;
  --font-display: "Overpass", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--teal-deep); }

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(233, 243, 241, 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.topbar .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(48, 136, 144, 0.18);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.topbar nav a:hover { color: var(--teal-deep); }

.topbar nav a.pill {
  background: var(--teal);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.topbar nav a.pill:hover { background: var(--teal-deep); }

.nav-links { display: contents; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 460px at 78% -8%, rgba(239, 154, 124, 0.16), transparent 60%),
    linear-gradient(180deg, var(--sky-1), var(--sky-2));
  overflow: hidden;
}

.hero .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 84px 24px 96px;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 22px;
}

.origin-pin {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--teal);
  flex: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 12ch;
  color: var(--ink);
}

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

.hero .lede {
  margin: 26px 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover { background: var(--teal-deep); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border: 1.5px solid var(--teal);
}

.btn-ghost:hover { background: rgba(48, 136, 144, 0.08); }

/* reassurance strip in hero */
.reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--muted);
}

.reassure span { display: inline-flex; align-items: center; gap: 8px; }
.reassure span::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--dawn);
}

/* ---------- Journey (the route line) ---------- */
.journey {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 24px 40px 24px;
}

/* the dotted route */
.route {
  position: relative;
  padding-left: 46px;
}

.stop { position: relative; padding-bottom: 68px; }
.stop:last-child { padding-bottom: 0; }

/* connectors run between consecutive waypoints, so the route ends
   cleanly at the destination flag rather than trailing past it */
.stop:not(:last-child)::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 40px;
  bottom: -6px;
  border-left: 3px dotted rgba(48, 136, 144, 0.45);
}

.stop > .waypoint {
  position: absolute;
  left: -46px;
  top: 2px;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--mint);
  border: 3px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--teal-deep);
}

.stop > .waypoint.flag {
  border-color: var(--dawn);
  background: var(--dawn-soft);
  color: var(--dawn-deep);
}

.stop h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
}

.stop .stop-sub {
  margin: 0 0 26px;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- Feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card .tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  margin: 8px 0 8px;
  color: var(--ink);
}

.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Drive steps ---------- */
.drive {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.drive li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.drive .marker {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--teal-deep);
  background: var(--mint);
  border: 2px solid var(--rule);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.drive strong {
  font-family: var(--font-display);
  font-weight: 700;
  display: block;
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.drive p { margin: 0; color: var(--muted); }

/* ---------- Destination / CTA ---------- */
.destination {
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(239, 154, 124, 0.22), transparent 65%),
    var(--dawn-soft);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
}

.destination h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--ink);
}

.destination p { margin: 0 auto 26px; color: var(--ink-soft); max-width: 44ch; }

.destination .actions { justify-content: center; }

.destination .btn-primary { background: var(--dawn-deep); }
.destination .btn-primary:hover { background: #c26847; }
.destination .btn-ghost { border-color: var(--dawn-deep); color: var(--dawn-deep); }
.destination .btn-ghost:hover { background: rgba(217, 122, 88, 0.1); }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--rule);
  margin-top: 60px;
}

.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--teal-deep); }

/* ---------- Accessibility & motion ---------- */
a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (max-width: 620px) {
  .topbar nav { gap: 14px; }
  .nav-links a:not(.pill) { display: none; }
  .hero .inner { padding: 60px 20px 72px; }
  .journey { padding-top: 56px; }
}

/* Scroll reveal is a progressive enhancement: only hide content once we know
   JS is running (html.js). Without JS the sections render fully visible. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .js .reveal.in { opacity: 1; transform: none; }
}
