/* ==========================================================================
   Setout Live — site stylesheet
   Structure: 1 reset · 2 base · 3 header/nav · 4 buttons+forms · 5 cards
              6 hero+search · 7 ribbon · 8 home sections · 9 planner
              10 meet · 11 legal/doc pages · 12 modal · 13 footer · 14 utilities
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; }

body {
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 15% -10%, #ffffff 0%, rgba(255,255,255,0) 55%),
    radial-gradient(900px 600px at 100% 0%, #e6f4ee 0%, rgba(230,244,238,0) 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 780px; }

h1, h2, h3 { letter-spacing: -.02em; line-height: 1.08; font-weight: 800; }
h1 { font-size: clamp(32px, 5vw, 54px); }
h2 { font-size: clamp(23px, 2.8vw, 33px); }
h3 { font-size: clamp(17px, 1.6vw, 20px); letter-spacing: -.01em; }

.tnum { font-variant-numeric: tabular-nums; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--surface); color: var(--ink);
  padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------- 3. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 34px; height: 34px; }
.brand .name { font-weight: 800; font-size: 17.5px; letter-spacing: -.01em; }
.brand .name em { font-style: normal; color: var(--brand-deep); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
/* :not(.btn) matters — a bare `.nav a` rule outranks `.btn-primary` on
   specificity (0,1,1 vs 0,1,0) and would repaint the buttons. */
.nav a:not(.btn) {
  text-decoration: none; font-size: 14.5px; font-weight: 650; color: var(--ink2);
  padding: 9px 13px; border-radius: var(--r-pill); transition: background .16s var(--ease), color .16s var(--ease);
}
.nav a:not(.btn):hover { background: var(--brand-tint); color: var(--brand-deep); }
.nav a:not(.btn)[aria-current="page"] { color: var(--brand-deep); background: var(--brand-tint); }
.nav a.btn { text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 9px; margin-left: 10px; }

.menu-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span { display: block; width: 17px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 2px; background: var(--ink); border-radius: 2px;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 18px 20px; margin: 0;
    box-shadow: var(--shadow); display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 13px 12px; font-size: 16px; }
  .nav-actions { margin: 8px 0 0; }
  .nav-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- 4. Buttons + form controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 14.5px; line-height: 1;
  padding: 12px 18px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .14s var(--ease), box-shadow .18s var(--ease), background .16s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

.btn-primary { background: linear-gradient(150deg, var(--brand), var(--brand-deep)); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(18,166,122,.38); }

.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand-edge); color: var(--brand-deep); }

.btn-quiet { background: transparent; color: var(--ink2); }
.btn-quiet:hover { background: var(--brand-tint); color: var(--brand-deep); }

.btn-lg { padding: 15px 26px; font-size: 15.5px; }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }

.input, select.input, textarea.input {
  width: 100%; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 13px 15px; font-size: 15.5px; color: var(--ink);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.input::placeholder { color: var(--ink3); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--ink2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 8px 13px; cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}
.chip:hover { border-color: var(--brand-edge); color: var(--brand-deep); }
.chip.on { background: var(--brand-tint); border-color: var(--brand-edge); color: var(--brand-deep); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--brand-deep); font-weight: 800; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }

/* ---------- 5. Cards ---------- */
.card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
.card-glass {
  background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255,255,255,.9);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card-pad-lg { padding: 26px; }

.section-label {
  font-size: 11.5px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink3);
}

/* ---------- 6. Hero + search ---------- */
.hero { padding: clamp(46px, 8vw, 86px) 0 30px; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px; border-radius: var(--r-pill);
  background: var(--brand-tint); border: 1px solid var(--brand-edge);
  color: var(--brand-deep); font-weight: 700; font-size: 13.5px;
}
.hero .kicker .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand); position: relative;
}
.hero .kicker .pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(18,166,122,.45); animation: pulse 2s infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .9 } 100% { transform: scale(1.6); opacity: 0 } }

.hero h1 { margin-top: 20px; max-width: 15ch; }
.hero h1 .accent { color: var(--brand); }
.hero .lede { margin-top: 18px; max-width: 62ch; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink2); }
.hero .lede b { color: var(--ink); font-weight: 700; }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 34px; } }

/* the search card — the page's single primary action */
.searchbox { margin-top: 30px; max-width: 640px; }
.searchbox .shell {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  padding: 8px 8px 8px 18px;
  display: flex; align-items: center; gap: 10px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.searchbox .shell:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint), var(--shadow); }
.searchbox .shell .pin { color: var(--brand); flex: none; }
.searchbox input {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  font-size: 16.5px; padding: 14px 0; color: var(--ink);
}
.searchbox input::placeholder { color: var(--ink3); }
.searchbox .go { flex: none; }
@media (max-width: 560px) {
  .searchbox .shell { padding-left: 14px; }
  .searchbox .go span { display: none; }
  .searchbox .go { width: 46px; height: 46px; padding: 0; border-radius: 50%; }
}

.searchbox .hint { margin-top: 10px; font-size: 13px; color: var(--ink3); display: flex; gap: 14px; flex-wrap: wrap; }
.searchbox .hint button {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--brand-deep); font-weight: 700; font-size: 13px;
}
.searchbox .hint button:hover { text-decoration: underline; }

/* autocomplete list — shared by every place input */
.ac-wrap { position: relative; }
.ac-list {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 8px);
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-sm); box-shadow: var(--shadow);
  overflow: hidden; display: none; max-height: 320px; overflow-y: auto;
}
.ac-list.open { display: block; }
.ac-list li { padding: 0; }
.ac-list button {
  display: flex; gap: 11px; align-items: flex-start; width: 100%;
  text-align: left; background: none; border: none; cursor: pointer;
  padding: 12px 15px; border-bottom: 1px solid var(--line);
}
.ac-list li:last-child button { border-bottom: none; }
.ac-list button:hover, .ac-list button[aria-selected="true"] { background: var(--brand-tint); }
.ac-list .ac-primary { font-weight: 700; font-size: 14.5px; }
.ac-list .ac-secondary { font-size: 12.5px; color: var(--ink3); margin-top: 2px; }
.ac-list .ac-ico { color: var(--brand); margin-top: 2px; flex: none; }
.ac-state { padding: 14px 15px; font-size: 13.5px; color: var(--ink3); }

/* ---------- 7. Trip ribbon (the signature element) ---------- */
.ribbon-card { padding: 18px 18px 15px; }
.ribbon-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 11px;
}
.ribbon-head .now { font-size: 12px; font-weight: 800; color: var(--ink); letter-spacing: .02em; }
.ribbon-head .meta { font-size: 12px; color: var(--ink3); font-weight: 650; }

.ribbon {
  height: 46px; border-radius: 12px; overflow: hidden; display: flex;
  box-shadow: inset 0 0 0 1px rgba(13,27,21,.06);
}
.ribbon .seg { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; }
.ribbon .seg[data-night="1"]::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(43,58,82,.42), rgba(43,58,82,.42));
  pointer-events: none;
}
.ribbon .seg .glare {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--glare); box-shadow: 0 0 0 3px rgba(242,177,52,.35);
}
.ribbon-ticks { display: flex; margin-top: 8px; font-size: 10.5px; color: var(--ink3); font-weight: 700; }
.ribbon-ticks span { flex: 1; text-align: center; }
.ribbon-ticks span:first-child { text-align: left; }
.ribbon-ticks span:last-child { text-align: right; }

.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.legend i { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 11.5px; color: var(--ink2); font-weight: 650; }
.legend i b { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- 8. Home sections ---------- */
.section { padding: clamp(48px, 7vw, 78px) 0; }
.section > .wrap > .head { max-width: 780px; }
.section > .wrap > .head h2 { margin-top: 13px; }
.section > .wrap > .head p { margin-top: 12px; color: var(--ink2); font-size: 16px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar { display: flex; flex-direction: column; gap: 10px; }
.pillar .k { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.pillar .k .pin { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.pillar p { color: var(--ink2); font-size: 14.5px; }
.pillar .q { color: var(--ink3); font-size: 13px; font-style: italic; }
.pillar .go { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 13.5px; color: var(--brand-deep); text-decoration: none; }
.pillar .go:hover { text-decoration: underline; }
.pillar .soon { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; }
.step .n {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-deep); font-weight: 800; font-size: 13.5px;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 7px; }
.step p { color: var(--ink2); font-size: 14.5px; }

.factors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
@media (max-width: 900px) { .factors { grid-template-columns: repeat(2, 1fr); } }
.factor { padding: 16px; }
.factor .ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 11px; }
.factor h3 { font-size: 15.5px; }
.factor p { font-size: 13.5px; color: var(--ink2); margin-top: 5px; }

.band {
  margin-top: 26px; border-radius: 26px; padding: clamp(26px, 4vw, 40px);
  background: linear-gradient(135deg, #1a2b22, #0d1b15);
  color: #eaf3ef; position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.band::before {
  content: ""; position: absolute; right: -90px; top: -90px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(18,166,122,.35), transparent 65%);
}
.band .inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }
@media (max-width: 860px) { .band .inner { grid-template-columns: 1fr; } }
.band h2 { color: #fff; }
.band p { color: #9fb7ac; margin-top: 13px; font-size: 15px; }
.band p b { color: #eaf3ef; }
.band .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.band .btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #eaf3ef; box-shadow: none; }
.band .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }

.store-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 10px 16px; color: #eaf3ef;
}
.store-badge small { display: block; font-size: 10.5px; color: #9fb7ac; letter-spacing: .06em; text-transform: uppercase; }
.store-badge strong { font-size: 14.5px; font-weight: 700; }
.store-badge[aria-disabled="true"] { opacity: .6; cursor: default; }

.faq { margin-top: 26px; display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-sm); padding: 16px 18px;
}
.faq summary { cursor: pointer; font-weight: 700; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-deep); font-size: 20px; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 11px; color: var(--ink2); font-size: 14.5px; }

/* mobile app nudge */
.app-nudge {
  display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 12px 14px;
  align-items: center; gap: 12px;
}
.app-nudge.show { display: flex; }
.app-nudge img { width: 38px; height: 38px; flex: none; }
.app-nudge .t { flex: 1; min-width: 0; }
.app-nudge .t strong { display: block; font-size: 14px; }
.app-nudge .t span { font-size: 12px; color: var(--ink3); }
.app-nudge .x { background: none; border: none; color: var(--ink3); font-size: 20px; cursor: pointer; padding: 0 4px; line-height: 1; }

/* ---------- 9. Planner ---------- */
.planner { padding: 26px 0 60px; }
.planner-grid { display: grid; grid-template-columns: 390px 1fr; gap: 20px; align-items: start; }
@media (max-width: 1040px) { .planner-grid { grid-template-columns: 1fr; } }

.panel { display: flex; flex-direction: column; gap: 16px; }
.panel .card + .card { margin-top: 0; }

.leg { display: grid; gap: 14px; }
.leg .swap {
  justify-self: end; margin-top: -6px; margin-bottom: -6px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer;
  display: grid; place-items: center; color: var(--ink2); box-shadow: var(--shadow-sm);
}
.leg .swap:hover { color: var(--brand-deep); border-color: var(--brand-edge); }

.when-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .when-row { grid-template-columns: 1fr; } }

.map-shell {
  position: relative; border-radius: var(--r); overflow: hidden;
  border: 1.5px solid var(--line); box-shadow: var(--shadow-sm);
  background: var(--surface); min-height: 420px;
}
#map, #meet-map { position: absolute; inset: 0; }
.map-shell .map-overlay {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 500;
  pointer-events: none;
}
.map-shell .map-overlay > * { pointer-events: auto; }
@media (max-width: 1040px) { .map-shell { min-height: 340px; } }

/* ---- interactive drive playback + weather-painted route ---- */
.map-shell .map-play {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 700;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--glass); backdrop-filter: blur(8px);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.map-shell .map-play[hidden] { display: none; }
.mp-btn {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 12px; line-height: 1;
  display: grid; place-items: center;
}
.mp-btn:hover { background: var(--brand-deep); }
.mp-scrub { flex: 1; min-width: 60px; accent-color: var(--brand); }
.mp-hud {
  flex: none; display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap;
}
.mp-hud .dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(13,27,21,.12); }
@media (max-width: 460px) { .mp-hud { display: none; } }

.car-dot {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(13,27,21,.45);
}

.dep-scrub-row { display: flex; align-items: center; gap: 12px; }
.dep-scrub-row input[type="range"] { flex: 1; accent-color: var(--brand); }
.dep-scrub-row .lbl { font-size: 12.5px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.dep-scrub-row .lbl.tnum { color: var(--ink2); font-weight: 700; }

.factor-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.factor-chip {
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink2);
  border-radius: var(--r-pill); padding: 6px 13px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.factor-chip:hover { border-color: var(--brand-edge); }
.factor-chip.on { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-deep); }
.factor-chip[aria-pressed="false"] { text-decoration: line-through; opacity: .65; }

.ribbon { position: relative; }
.ribbon .playhead {
  position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: var(--ink); box-shadow: 0 0 0 1px rgba(255,255,255,.65);
  pointer-events: none; border-radius: 2px;
}

.verdict .lbl { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-deep); }
.verdict .big { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; margin-top: 6px; letter-spacing: -.01em; }
.verdict .rz { font-size: 14px; color: var(--ink2); margin-top: 9px; }
.verdict .rz b { color: var(--ink); }
.verdict .chips { margin-top: 13px; }

.options { display: grid; gap: 10px; margin-top: 4px; }
.option {
  display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; align-items: center;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 16px; padding: 14px 15px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), transform .14s var(--ease);
}
.option:hover { border-color: var(--brand-edge); box-shadow: var(--shadow-sm); }
.option.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.option .lv { font-weight: 800; font-size: 15px; }
.option .lv small { display: block; font-weight: 650; font-size: 11.5px; color: var(--ink3); margin-top: 2px; }
.option .bar { height: 9px; border-radius: var(--r-pill); overflow: hidden; display: flex; background: var(--clear); }
.option .sub { margin-top: 7px; font-size: 12.5px; color: var(--ink2); }
.option .arrive { text-align: right; font-weight: 800; font-size: 14px; }
.option .arrive small { display: block; font-weight: 650; font-size: 11px; color: var(--ink3); margin-top: 2px; }
.option .tag {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--r-pill); margin-bottom: 6px;
  background: var(--brand-tint); color: var(--brand-deep);
}
.option .tag.warn { background: rgba(232,137,43,.12); color: #a75d13; }
@media (max-width: 520px) {
  .option { grid-template-columns: 66px 1fr; }
  .option .arrive { grid-column: 1 / -1; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .option .arrive small { margin: 0; }
}

.state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 34px 20px; color: var(--ink2);
}
.state .ico { width: 46px; height: 46px; border-radius: 15px; background: var(--brand-tint); color: var(--brand-deep); display: grid; place-items: center; }
.state h2, .state h3 { font-size: 17px; letter-spacing: -.01em; }
.state p { font-size: 14px; color: var(--ink3); max-width: 42ch; }

.error-card { border-color: rgba(224,80,62,.4); background: rgba(224,80,62,.05); }
.error-card h2, .error-card h3 { color: #a8321f; font-size: 15.5px; letter-spacing: -.01em; }
.error-card p { font-size: 13.5px; color: var(--ink2); margin-top: 7px; }
.error-card code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--brand-tint); border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.disclaimer { font-size: 12px; color: var(--ink3); line-height: 1.5; }

.raw {
  margin-top: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; background: #0d1b15; color: #b9d8cb;
  border-radius: var(--r-sm); padding: 14px; overflow: auto; max-height: 320px;
}

/* ---------- 10. Meet ---------- */
.people { display: grid; gap: 10px; }
.person { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.person .rm {
  width: 44px; height: 46px; border-radius: var(--r-sm);
  background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; color: var(--ink3);
  display: grid; place-items: center;
}
.person .rm:hover { color: var(--red); border-color: rgba(224,80,62,.4); }

.venue {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  border: 1.5px solid var(--line); border-radius: 16px; padding: 15px; background: var(--surface);
}
.venue.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,255,.12); }
.venue h3 { font-size: 16px; }
.venue .addr { font-size: 13px; color: var(--ink3); margin-top: 4px; }
.venue .tag { background: rgba(47,107,255,.1); color: #1c48b8; }
.venue .times { margin-top: 10px; display: grid; gap: 5px; font-size: 13px; color: var(--ink2); }
.venue .times b { color: var(--ink); }

/* ---------- monitor this trip (plan page) ---------- */
.day-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.day-chip {
  width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink2); font: 650 12px var(--font); cursor: pointer;
}
.day-chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.mon-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--ink2); }
.mon-row label { display: inline-flex; align-items: center; gap: 6px; }
.mon-row input, .mon-row select {
  font: inherit; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink);
}
.mon-note { font-size: 11.5px; color: var(--ink3); }
.mon-preview { font-size: 14px; padding: 10px 13px; border-radius: 10px; line-height: 1.5; }
.mon-preview.clear { background: var(--brand-tint); color: var(--ink2); }
.mon-preview.breach { background: rgba(224,80,62,.08); color: #8a2a1e; }
.mon-saved-trip { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.mon-saved-trip:first-child { border-top: 0; }
.mon-saved-trip b { font-size: 14.5px; }

/* ---------- live radar toggle (map control) ---------- */
.radar-ctl { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.radar-time {
  display: none; font: 600 11px var(--font); background: rgba(13,27,21,.72); color: #fff;
  padding: 2px 8px; border-radius: 6px; letter-spacing: .02em;
}
.radar-ctl.playing .radar-time { display: inline-block; }
.radar-toggle {
  background: var(--surface); color: var(--ink2);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 11px; font: 650 12px var(--font); cursor: pointer;
  box-shadow: var(--shadow-sm); line-height: 1;
}
.radar-toggle:hover { color: var(--brand-deep); border-color: var(--brand-edge); }
.radar-toggle.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.radar-toggle.unavailable { opacity: .55; }
.radar-ctl.playing .radar-time { max-width: 220px; }

/* ---------- severe-weather alerts (plan page) ---------- */
.alert-card {
  border: 1.5px solid rgba(224,80,62,.35);
  background: linear-gradient(180deg, rgba(224,80,62,.06), rgba(224,80,62,.02));
}
.alert-head { font-weight: 800; font-size: 15px; color: #b23324; }
.alert-item { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin-top: 10px; }
.alert-item b { font-size: 14.5px; color: var(--ink); }
.alert-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--traffic); }
.alert-dot.sev-extreme { background: #7a1d13; }
.alert-dot.sev-severe { background: var(--traffic); }
.alert-dot.sev-moderate { background: var(--glare); }
.alert-dot.sev-minor { background: var(--rain-mod); }
.alert-area { display: block; font-size: 12.5px; color: var(--ink2); margin-top: 2px; }
.alert-when { display: block; font-size: 12.5px; color: var(--ink3); margin-top: 2px; }

/* ---------- trip timeline (milestones along the drive) ---------- */
.trip-timeline { margin-top: 12px; }
.trip-timeline .tl-head { margin-bottom: 8px; }
.tl-track {
  position: relative; height: 8px; border-radius: var(--r-pill);
  background: var(--line); margin: 12px 6px 14px;
}
.tl-track::before, .tl-track::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px;
  border-radius: 50%; transform: translateY(-50%); background: var(--ink3); opacity: .5;
}
.tl-track::before { left: -3px; }
.tl-track::after  { right: -3px; }
.tl-dot {
  position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2.5px var(--surface), 0 1px 3px rgba(13,27,21,.28);
}
.tl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink2);
  border-radius: var(--r-pill); padding: 5px 12px; font-size: 13px; font-weight: 600;
}
.tl-chip i { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.tl-chip b { color: var(--ink); font-weight: 800; }

/* ---------- 11. Legal / doc pages ---------- */
.doc { padding: 40px 0 70px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); }
.doc .updated { color: var(--ink3); font-size: 13.5px; margin-top: 12px; }
.doc .body { margin-top: 26px; }
.doc .body h2 { font-size: 21px; margin-top: 34px; }
.doc .body h3 { font-size: 16.5px; margin-top: 22px; }
.doc .body p { margin-top: 12px; color: var(--ink2); font-size: 15.5px; }
.doc .body ul { margin-top: 12px; padding-left: 20px; display: grid; gap: 7px; }
.doc .body li { color: var(--ink2); font-size: 15.5px; }
.doc .body strong { color: var(--ink); }
.doc .body a { color: var(--brand-deep); font-weight: 650; }
.notice {
  border-left: 4px solid var(--amber); background: rgba(232,137,43,.08);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 14px 16px; font-size: 14px; color: var(--ink2);
}
.notice strong { color: var(--ink); }

/* ---------- 12. Modal ---------- */
.modal {
  /* Above Leaflet's map panes + controls (z-index up to ~1000), which otherwise
     paint over the sign-in sheet since Leaflet's container isn't its own context. */
  position: fixed; inset: 0; z-index: 3000; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(13,27,21,.42); backdrop-filter: blur(3px);
}
.modal.open { display: flex; }
.modal .sheet {
  width: 100%; max-width: 420px; background: var(--surface);
  border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 26px;
  animation: rise .22s var(--ease);
}
@keyframes rise { from { transform: translateY(12px); opacity: 0 } to { transform: none; opacity: 1 } }
.modal h2 { font-size: 22px; }
.modal p { color: var(--ink2); font-size: 14px; margin-top: 9px; }
.modal .close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 22px; color: var(--ink3); cursor: pointer; }
.modal .sheet { position: relative; }
.sso { display: grid; gap: 10px; margin-top: 20px; }
.sso .btn { justify-content: flex-start; padding: 13px 16px; }
.sso .btn svg { flex: none; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink3); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* ---------- 13. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.5); margin-top: 30px; }
.site-footer .cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px;
  padding: 44px 0 28px;
}
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; gap: 26px; } }
.site-footer h4 { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); margin-bottom: 12px; }
.site-footer ul { display: grid; gap: 9px; }
.site-footer a:not(.brand) { text-decoration: none; color: var(--ink2); font-size: 14px; }
.site-footer a:not(.brand):hover { color: var(--brand-deep); }
.site-footer .about { color: var(--ink2); font-size: 13.5px; max-width: 34ch; margin-top: 12px; }
.site-footer .base {
  border-top: 1px solid var(--line); padding: 18px 0 30px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--ink3); font-size: 12.5px;
}

/* ---------- 14. Utilities ---------- */
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 14px }
.mt-3 { margin-top: 22px } .mt-4 { margin-top: 32px }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink3); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Live-radar intensity key — shown only while the radar animates (bottom-left). */
.radar-legend{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.92);border:1px solid rgba(20,40,30,.12);border-radius:8px;padding:5px 9px;box-shadow:0 1px 6px rgba(0,0,0,.18);font-size:11px;color:var(--ink,#10241b);line-height:1}
.radar-legend .rl-title{font-weight:800}
.radar-legend .rl-item{display:inline-flex;align-items:center;gap:4px}
.radar-legend .rl-item i{width:11px;height:11px;border-radius:2px;display:inline-block}
@media (max-width:560px){.radar-legend .rl-item>span{display:none}.radar-legend{gap:6px;padding:5px 7px}}
