/* NovaTransport — site styles
   One typeface (Bricolage Grotesque), a teal-cast off-white in light,
   deep teal in dark. The app's own marker colours (green start, blue stops,
   red end, purple volunteers) carry through the illustration. */

:root {
  --bg: #f4f7f5;
  --bg-raised: #ffffff;
  --ink: #14211f;
  --ink-soft: #46595a;
  --ink-mute: #7c8b8a;
  --line: #d6dedb;
  --line-strong: #b6c3bf;
  --dot: #c3cfcb;
  --brand: #2f6f64;
  --brand-ink: #245a51;
  --brand-soft: #dcefe9;
  --on-brand: #ffffff;
  --pin-start: #3a9d5c;
  --pin-stop: #2f6bd9;
  --pin-end: #c9463a;
  --pin-vol: #6d3fd9;
  --night-bg: #e5ebfb;
  --night-ink: #2b3f7a;
  --focus: #2f6bd9;
  --shot-frame: #e3e9e6;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 56px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1d1b;
    --bg-raised: #152624;
    --ink: #eef4f2;
    --ink-soft: #b6c6c2;
    --ink-mute: #7f918e;
    --line: #26393a;
    --line-strong: #3a5150;
    --dot: #29403e;
    --brand: #6cc2b2;
    --brand-ink: #8fd6c8;
    --brand-soft: #173430;
    --on-brand: #0f1d1b;
    --pin-start: #4fbf72;
    --pin-stop: #5a8ff0;
    --pin-end: #e05e51;
    --pin-vol: #9a75f2;
    --night-bg: #1f2c4f;
    --night-ink: #c6d3f7;
    --focus: #8fb4ff;
    --shot-frame: #22363a;
  }
}

:root[data-theme="dark"] {
  --bg: #0f1d1b;
  --bg-raised: #152624;
  --ink: #eef4f2;
  --ink-soft: #b6c6c2;
  --ink-mute: #7f918e;
  --line: #26393a;
  --line-strong: #3a5150;
  --dot: #29403e;
  --brand: #6cc2b2;
  --brand-ink: #8fd6c8;
  --brand-soft: #173430;
  --on-brand: #0f1d1b;
  --pin-start: #4fbf72;
  --pin-stop: #5a8ff0;
  --pin-end: #e05e51;
  --pin-vol: #9a75f2;
  --night-bg: #1f2c4f;
  --night-ink: #c6d3f7;
  --focus: #8fb4ff;
  --shot-frame: #22363a;
}

/* Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 5.4vw, 4.1rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0; max-width: 62ch; }
p + p { margin-top: 1em; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); margin-inline: auto; }

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  background: var(--brand);
  color: var(--on-brand);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.1;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 0.55rem 1rem; font-size: 0.95rem; }
.btn-primary { font-size: 1.05rem; }

.link-quiet { color: var(--ink-soft); font-weight: 500; }

/* Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.brand b { font-weight: 800; }
.brand-mark { width: 26px; height: 26px; color: var(--brand); }

.header-nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.5rem); }
.header-nav > a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.header-nav > a:not(.btn):hover { color: var(--ink); }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--ink-soft); }
.theme-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

@media (max-width: 720px) {
  .header-nav > a:not(.btn) { display: none; }
}

/* Hero ------------------------------------------------------------------ */

.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy { max-width: 36rem; }

.lede { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); line-height: 1.5; }

.hero-note {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.hero-art { margin: 0; }
.route-art { width: 100%; height: auto; display: block; }

.route-line {
  stroke: var(--pin-stop);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 0;
}

.stop text {
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  fill: #fff;
}
.stop-start text, .stop-end text { font-size: 15px; }

.overnight-text { font-size: 12.5px; font-weight: 600; fill: var(--night-ink); }
.leg-label text { font-size: 12.5px; font-weight: 500; fill: var(--ink-mute); }

/* One orchestrated entrance: the route draws, then stops and pins land. */
@media (prefers-reduced-motion: no-preference) {
  .route-line { animation: draw 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both; }
  .stop { animation: land 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; transform-box: fill-box; transform-origin: center; }
  .stop:nth-of-type(1) { animation-delay: 0.25s; }
  .stop:nth-of-type(2) { animation-delay: 0.6s; }
  .stop:nth-of-type(3) { animation-delay: 0.9s; }
  .stop:nth-of-type(4) { animation-delay: 1.2s; }
  .stop:nth-of-type(5) { animation-delay: 1.5s; }
  .stop:nth-of-type(6) { animation-delay: 1.8s; }
  .vol-pins { animation: fade 0.8s ease 1.9s both; }
  .leg-label { animation: fade 0.6s ease 2.1s both; }
  .overnight { animation: fade 0.6s ease 2.2s both; }
}
@keyframes draw { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
@keyframes land { from { opacity: 0; scale: 0.4; } to { opacity: 1; scale: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
}

/* Features -------------------------------------------------------------- */

.feature { padding-block: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--line); }

.feature-head { max-width: 40rem; margin-bottom: 2rem; }
.feature-head p, .feature-text p { margin-top: 1rem; color: var(--ink-soft); }

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.feature-row-flip .feature-text { order: 2; }

.plain-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}
.plain-list li { position: relative; padding-left: 1.4rem; }
.plain-list li + li { margin-top: 0.6rem; }
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pin-stop);
}

/* Screenshots sit in a thin frame — the product is the picture. */
.shot {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--shot-frame);
  padding: 6px;
}
.shot img { border-radius: calc(var(--radius) - 6px); }

.shot-tall { max-width: 420px; justify-self: center; }

.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.shot-offset { margin-top: 2.5rem; }

@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row-flip .feature-text { order: 0; }
  .shot-tall { justify-self: start; }
  .shot-offset { margin-top: 0; }
}
@media (max-width: 560px) {
  .shot-pair { grid-template-columns: 1fr; }
}

/* Included list --------------------------------------------------------- */

.included { padding-block: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--line); }

.included-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem 2.5rem;
  margin: 2rem 0 0;
}
.included-list > div { padding-top: 1rem; border-top: 2px solid var(--brand); }
.included-list dt { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.included-list dd { margin: 0.35rem 0 0; color: var(--ink-soft); }

/* Free for rescues + request form -------------------------------------- */

.rescues {
  padding-block: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  background: var(--brand-soft);
}

.rescues-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.rescues-copy p { margin-top: 1rem; color: var(--ink-soft); }
.rescues-copy h2 + p { margin-top: 1.25rem; font-size: 1.15rem; color: var(--ink); }
.rescues-fineprint { font-size: 0.95rem; color: var(--ink-mute); }

.request {
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  scroll-margin-top: 90px;
}
.request h3 { margin-bottom: 1.25rem; }

.form-embed { min-height: 320px; }
.form-embed iframe { max-width: 100%; }

@media (max-width: 900px) {
  .rescues-grid { grid-template-columns: 1fr; }
}

/* Footer ---------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 1.75rem; font-size: 0.925rem; color: var(--ink-mute); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.footer-brand { color: var(--ink); letter-spacing: -0.02em; }
.footer-brand b { font-weight: 800; }
