/* Phones in landscape are wider than 900px but short and touch: they keep
   the phone layout (the user, 10/29). WIDE in home.js matches. */
/* carve.run's home page (the user, 2026-10-29; reordered 11/1): great roads
   near you, then the app (plan, share, the group, no signal), the founder,
   then the roads to explore and the questions. On a
   computer the hero has a small front door to the planner and a map of the
   roads near you; on a phone, no typing up top, just the roads. Figtree
   only. Loaded after /styles.css (base, footer, .rise) and
   /assets/site-bar.css (the green bar). */

:root {
  color-scheme: dark;
  --green: #1D5B3A; --green-dark: #15432A; --mint: #14301F; --mint-ink: #2C5A3F;
  --ink: #EEF1EE; --ink-2: #C3CAC5; --ink-3: #9AA39D; --ink-4: #737C76;
  --cream: #0E1210; --sand: #161B18; --sand-2: #1B211D; --rule: #2A332E;
  --violet: #6A4CFF; --route: #2E92FF;
  --green-ink: #6FD39A;
  /* dark (the user, 2026-11-01: the whole site dark): page #0E1210, card #161B18, raised #1D2420, line #2A332E */
}
body { background: var(--cream); color: var(--ink); font-family: "Figtree", -apple-system, system-ui, sans-serif; }
.home h1, .home h2, .home h3 { font-family: inherit; font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin: 0; }
.home p { margin: 0; }
.home a { color: var(--green-ink); }
.home .em { color: var(--green-ink); }
.wide-only-h { display: block; }
.phone-only-h { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── buttons ── */
.hb {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px;
  border: 0; border-radius: 999px; font: 700 17px/1 "Figtree", system-ui, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s, transform .15s;
}
.hb:active { transform: translateY(1px); }
.hb svg { width: 18px; height: 18px; flex: none; }
.hb.green { background: var(--green); color: #fff; }
.hb.green:hover { background: var(--green-dark); }
.hb.dark { background: #EEF1EE; color: #0E1210; }
.hb.dark:hover { background: #fff; }
.hb.light { background: #161B18; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.hb.light:hover { background: var(--sand); }
.home .hb.green { color: #fff; }
@media (prefers-color-scheme: dark) {
.home .hb.dark { color: #0E1210; }
}
.home .hb.light { color: var(--ink); }

/* ── the place chip ── */
.near-chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 10px;
  border: 1px solid var(--rule); border-radius: 999px; background: #161B18; font-size: 14px; font-weight: 600; color: var(--ink-3);
}
.near-chip svg { width: 15px; height: 15px; color: var(--green-ink); }
.near-chip strong { color: var(--ink); }
.near-chip button { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--green-ink); cursor: pointer; }
.near-chip button:hover { text-decoration: underline; }

/* ═══ HERO ═══ */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: min(760px, calc(100vh - 64px)); }
.hero-copy { padding: clamp(40px, 6vh, 72px) 48px 56px clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.hero-copy .lead { display: flex; flex-direction: column; gap: 16px; max-width: 600px; }
.hero h1 { font-size: clamp(44px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -0.03em; }
.hero .pitch { font-size: 19px; line-height: 1.5; color: var(--ink-3); max-width: 34em; }

/* The planner's front door: a start and an end, or a route you have. */
.door { max-width: 560px; background: #161B18; border: 1px solid var(--rule); border-radius: 24px; box-shadow: 0 18px 50px rgba(21,24,28,.10); padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.door .tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--sand-2); }
.door .tabs button { height: 40px; border: 0; border-radius: 999px; background: none; font: 600 15px "Figtree", system-ui, sans-serif; color: var(--ink-3); cursor: pointer; }
.door .tabs button[aria-selected="true"] { background: #161B18; color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.door .stops { display: flex; flex-direction: column; padding: 4px; border-radius: 16px; background: var(--sand); }
.door .stops label { display: flex; align-items: center; gap: 12px; padding: 6px 8px; }
.door .stops .pin { width: 20px; height: 20px; flex: none; border-radius: 50%; }
.door input[type="text"], .door input[type="url"] {
  flex: 1; min-width: 0; height: 50px; padding: 0 14px; border: 0; border-radius: 12px; background: #1D2420;
  font: 500 17px "Figtree", system-ui, sans-serif; color: var(--ink); outline: none;
}
.door input:focus { box-shadow: 0 0 0 2px var(--green) inset; }
.door .go { width: 100%; }
.door .drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 18px; text-align: center; cursor: pointer;
  border: 2px dashed #2A332E; border-radius: 16px; background: var(--sand);
}
.door .drop.over { border-color: var(--green); background: var(--mint); }
.door .drop svg { width: 26px; height: 26px; color: var(--green-ink); }
.door .drop b { font-size: 17px; }
.door .drop span { font-size: 14px; color: var(--ink-3); }
/* Import, in three clear parts: the file, "or", a link (the user, 2026-11-02:
   the link's field was cut off and ran into the rest). */
.door .or { display: flex; align-items: center; gap: 12px; margin: 2px 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.door .or::before, .door .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.door .paste { display: flex; flex-direction: column; gap: 8px; }
.door .paste-label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.door .paste-row { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 16px; border-radius: 999px; background: #1D2420; box-shadow: inset 0 0 0 1px #2A332E; }
@media not all and (prefers-color-scheme: dark) { .door .paste-row { background: var(--sand); box-shadow: inset 0 0 0 1px var(--rule); } }
.door .paste input { flex: 1; min-width: 0; height: 40px; padding: 0; background: none; font-size: 15px; }
.door .paste input:focus { box-shadow: none; }
.door .paste .hb { height: 42px; padding: 0 18px; font-size: 15px; }
.door .err { font-size: 14px; color: #DF837C; }
.for-app { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; text-underline-offset: 4px; }
.for-app svg { width: 16px; height: 16px; }

/* The map of the roads near you. */
.hero-map { position: relative; background: #1D2420; overflow: hidden; }
.hero-map .maplibregl-map { position: absolute; inset: 0; }
.hero-map .label {
  position: absolute; z-index: 2; left: 20px; top: 20px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; background: #161B18; box-shadow: 0 4px 14px rgba(0,0,0,.12); font-weight: 700; font-size: 14px;
}
.hero-map .label i { width: 28px; height: 0; border-top: 3px dashed var(--violet); }
.hero-map .locate {
  position: absolute; z-index: 2; right: 20px; top: 20px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border: 0; border-radius: 999px; background: #161B18; box-shadow: 0 4px 14px rgba(0,0,0,.12); font: 700 14px "Figtree", system-ui, sans-serif; color: var(--ink); cursor: pointer;
}
.hero-map .locate svg { width: 16px; height: 16px; color: var(--route); }
.road-pop .maplibregl-popup-content { padding: 12px; border-radius: 18px; box-shadow: 0 14px 40px rgba(21,24,28,.22); font-family: "Figtree", system-ui, sans-serif; }
.road-pop .maplibregl-popup-tip { display: none; }
.road-card { width: 280px; display: flex; flex-direction: column; gap: 10px; }
.road-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; background: var(--sand-2); }
.road-card .n { font-weight: 800; font-size: 18px; line-height: 1.15; color: var(--ink); }
.road-card .m { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.road-card .hb { height: 46px; font-size: 15px; }
.road-card .guide { text-align: center; font-weight: 700; font-size: 14px; }
.road-card.small { width: 250px; flex-direction: row; align-items: center; gap: 10px; }
.road-card.small img { width: 64px; height: 64px; flex: none; }
.road-card.small .n { font-size: 15px; }

/* ═══ DRIVES NEAR YOU ═══ */
.near { padding: 44px clamp(24px, 5vw, 72px) 64px; display: flex; flex-direction: column; gap: 20px; }
.near-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.near-head h2 { font-size: 30px; }
.near-head a { font-weight: 700; font-size: 16px; }
.cards-near { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cards-near a { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.cards-near .ph { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand-2); }
.cards-near img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cards-near a:hover img { transform: scale(1.03); }
.cards-near .t { display: flex; flex-direction: column; gap: 3px; }
.cards-near .n { font-weight: 800; font-size: 17px; line-height: 1.2; }
.cards-near .m { font-size: 14px; color: var(--ink-3); }
.cards-near .lv { font-weight: 700; }
.cards-near .away { display: none; }
.cards-near.loading li { height: 260px; border-radius: 18px; background: var(--sand-2); }

/* ═══ GET THE APP ═══ */
.get-app { scroll-margin-top: max(104px, calc(50vh - 60px)); align-self: center; display: flex; align-items: center; gap: 32px; padding: 28px 36px; border-radius: 28px; background: var(--sand); }
.get-app > .qr { width: 112px; height: 112px; flex: none; padding: 10px; box-sizing: border-box; border-radius: 14px; background: #fff; border: 1px solid var(--rule); }
.get-app > .qr svg { width: 100%; height: 100%; display: block; }
.get-app .side { display: flex; flex-direction: column; gap: 14px; }
.get-app h3 { font-size: 24px; letter-spacing: -0.01em; }
.get-app .side > div > p { font-size: 15px; color: var(--ink-3); margin-top: 2px; }
.get-app .stores { display: flex; gap: 10px; flex-wrap: wrap; }
.get-app .apex { font-size: 14px; font-weight: 700; }

/* ═══ LEGENDARY DRIVES ═══ */
.wrapx { max-width: 1296px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 72px); }
.legends { padding-top: 64px; display: flex; flex-direction: column; gap: 18px; }
.legends h2, .anywhere h2, .faq2 h2 { font-size: 34px; }
/* From the founder: the quote alone, the photo beside it (the user, 11/1). */
.founder-sec { margin-top: 56px; }
.founder-sec .founder { margin: 0; padding: 14px; border-radius: 28px; background: var(--mint); color: #C3CAC5; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.founder-sec img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; object-position: 30% 60%; border-radius: 18px; }
.founder-sec figcaption { padding: 24px 34px 24px 0; }
.founder-sec blockquote { margin: 0; }
.founder-sec blockquote p { font-size: 21px; line-height: 1.5; font-weight: 600; color: var(--green-ink); }
.founder-sec .sig { margin-top: 16px; font-weight: 700; color: var(--green-ink); }
.founder-sec .fine { margin-top: 18px; font-size: 13px; opacity: .75; }
.rail { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail li { flex: 0 0 300px; scroll-snap-align: start; }
.rail a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; background: #161B18; color: var(--ink); text-decoration: none; }
.rail img { width: 100%; height: 210px; object-fit: cover; }
.rail .body { padding: 12px 14px 14px; }
.rail .n { font-weight: 800; font-size: 17px; }
.rail .m { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.rail .chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 700; }
.rail .chip svg { width: 12px; height: 12px; }

/* ═══ CLUBS ═══ */

/* ═══ DRIVES ANYWHERE (build_area_pages.py fills the states) ═══ */
.anywhere { padding: 64px 0 24px; display: flex; flex-direction: column; gap: 20px; }
.anywhere .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; }
.anywhere h3 { font-size: 18px; margin-bottom: 10px; }
.anywhere ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; font-size: 15px; }
.anywhere ul a { color: var(--ink-2); text-decoration: none; }
.anywhere ul a:hover { color: var(--green-ink); text-decoration: underline; }
.anywhere ul span { color: var(--ink-4); font-size: 13px; }
.anywhere .all { margin-top: 10px; font-size: 15px; font-weight: 700; }

/* ═══ FAQ ═══ */
.faq2 { padding: 48px 0 40px; display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.faq2 details { background: #161B18; border-color: var(--rule); }
.faq2 summary { font-weight: 700; }
.faq2 details p { color: var(--ink-2); line-height: 1.55; }

/* ═══ A PHONE ═══ */
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) {
  .wide-only-h { display: none !important; }
  .phone-only-h { display: flex !important; }
  .hero { display: block; min-height: 0; }
  .hero-copy { padding: 28px 16px 8px; gap: 14px; }
  .hero h1 { font-size: 38px; }
  .hero .pitch { font-size: 17px; }
  .door, .for-app { display: none; }
  .hero-map { display: none; }
  .near { padding: 14px 0 8px; gap: 14px; }
  .near-head { padding: 0 16px; }
  .near-head h2 { display: none; }
  /* The roads as a deck you swipe, the next card peeking in. */
  .cards-near { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cards-near::-webkit-scrollbar { display: none; }
  .cards-near li { flex: 0 0 82%; scroll-snap-align: start; }
  .cards-near a { position: relative; color: #fff; }
  .cards-near .ph { aspect-ratio: 4 / 5; border-radius: 24px; box-shadow: 0 14px 34px rgba(21,24,28,.18); }
  .cards-near .t { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 18px 18px; border-radius: 0 0 24px 24px;
    background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0)); display: flex; flex-direction: column; gap: 4px; }
  .cards-near .n { font-size: 23px; }
  .cards-near .m { color: #fff; font-weight: 600; }
  .cards-near .lv { color: #fff !important; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.2); }
  .cards-near .away { display: block; font-size: 13px; font-weight: 700; opacity: .85; order: -1; }
  .near-all { margin: 0 16px; }
  .get-app { flex-direction: column; align-items: stretch; padding: 0; background: none; gap: 10px; }
  .get-app > .qr, .get-app h3, .get-app .side > div > p { display: none; }
  .get-app .stores { flex-direction: column; }
  .get-app .stores .hb { width: 100%; }
  .get-app .apex { text-align: center; }
  .legends { padding-top: 44px; }
  .legends h2, .anywhere h2, .faq2 h2 { font-size: 26px; }
  .rail li { flex-basis: 240px; }
  .anywhere { padding-top: 44px; }
  .anywhere .cols { grid-template-columns: 1fr; }
}
.door .pane { display: flex; flex-direction: column; gap: 14px; }
.door .pane[hidden] { display: none; }

/* ═══ On a computer, the hero as the planner looks (the user, 2026-10-29):
   the map across the whole width, the words and the front door on a card
   floating over its left side. ═══ */
@media (min-width: 900px) and (min-height: 501px), (min-width: 900px) and (pointer: fine) {
  .hero { position: relative; display: block; height: min(800px, calc(100vh - 64px)); min-height: 660px; }
  /* MapLibre's stylesheet, loaded after this one, makes its container relative. */
  .hero > .hero-map, .hero > .hero-map.maplibregl-map { position: absolute; inset: 0; }
  .hero-copy {
    position: absolute; z-index: 3; left: 24px; top: 24px; bottom: 24px; width: min(540px, 44vw);
    padding: 30px 32px; gap: 22px; justify-content: center; overflow-y: auto;
    background: #161B18; border-radius: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.14), 0 1px 3px rgba(0,0,0,.06);
  }
  .hero h1 { font-size: clamp(36px, 3.3vw, 48px); }
  .hero .pitch { font-size: 17px; }
  .door { padding: 0; border: 0; box-shadow: none; background: none; max-width: none; }
  .hero-map .label { left: calc(min(540px, 44vw) + 48px); }
}

/* ═══ One measure for the whole page (the user, 2026-10-29: full width was
   imposing on big screens): every section's content, the hero's map
   included, sits in the same column with the same side margins. ═══ */
:root { --page: 1180px; --gutter: clamp(16px, 4vw, 40px); }
.near, .wrapx { padding-left: max(var(--gutter), calc((100% - var(--page)) / 2)); padding-right: max(var(--gutter), calc((100% - var(--page)) / 2)); }
.wrapx { max-width: none; }
.cards-near .ph { aspect-ratio: 16 / 10; border-radius: 16px; }
.cards-near .n { font-size: 16px; }
.cards-near .m { font-size: 13.5px; }
.rail li { flex-basis: 250px; }
.rail img { height: 160px; }
.rail .n { font-size: 16px; }
.legends h2, .anywhere h2, .faq2 h2 { font-size: 30px; }
.near-head h2 { font-size: 26px; }
@media (min-width: 900px) and (min-height: 501px), (min-width: 900px) and (pointer: fine) {
  .hero {
    width: calc(100% - 2 * var(--gutter)); max-width: var(--page); margin: 24px auto 0;
    height: min(660px, calc(100vh - 64px - 48px)); min-height: 600px; border-radius: 28px; overflow: hidden;
    box-shadow: 0 1px 0 var(--rule), 0 0 0 1px var(--rule);
  }
  .hero-copy { left: 18px; top: 18px; bottom: 18px; width: min(460px, 42%); padding: 26px 28px; gap: 18px; }
  .hero h1 { font-size: clamp(32px, 3vw, 42px); }
  .hero .pitch { font-size: 16px; }
  .door input[type="text"] { height: 46px; font-size: 16px; }
  .door .tabs button { height: 36px; }
  .hb { height: 48px; font-size: 16px; }
  .hero-map .label { left: calc(min(460px, 42%) + 36px); top: 18px; }
  .hero-map .locate { right: 18px; top: 18px; }
  .near { padding-top: 40px; padding-bottom: 56px; }
}
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) {
  .near { padding-left: 0; padding-right: 0; }
}
/* The map's layers stay under the sticky bar as the page scrolls. */
.hero { isolation: isolate; z-index: 0; }
/* The map's own layers stay on the map, never over the card. */
.hero > .hero-map { z-index: 0; }
/* The start's flag and the destination's checkered flag, as the planner marks them. */
.door .stops .pin { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: #fff; }
.door .stops .pin svg { width: 14px; height: 14px; }
/* A clicked road's card, docked at the map's top right; the map fits the road beside it. */
.road-panel { position: absolute; z-index: 4; right: 18px; top: 70px; padding: 12px; border-radius: 18px; background: #161B18; box-shadow: 0 14px 40px rgba(21,24,28,.22); max-height: calc(100% - 88px); overflow-y: auto; }
.road-panel .x { position: absolute; right: 18px; top: 18px; z-index: 1; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(22, 27, 24, .92); box-shadow: 0 2px 8px rgba(0,0,0,.2); font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.road-panel .road-card { width: 268px; }
.road-panel .road-card img { height: 140px; }


/* ═══ For the organizer (the user, 2026-10-29: is it clear why Carve, and
   what an organizer does here?) ═══ */
.proof { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.proof li { display: inline-flex; align-items: center; gap: 6px; }
.proof li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231D5B3A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.for-org { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--mint); color: var(--green-ink); font-weight: 700; font-size: 14.5px; line-height: 1.3; text-decoration: none; }
.for-org:hover { background: #173620; }
.for-org svg { width: 16px; height: 16px; flex: none; }
.home .for-org { color: var(--green-ink); }
@media (min-width: 900px) and (min-height: 501px), (min-width: 900px) and (pointer: fine) {
  .hero-copy { gap: 16px; }
  .for-org { font-size: 13.5px; padding: 9px 12px; }
}
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) {
  .proof { font-size: 13px; }
  .for-org { display: none; }
}
@media (min-width: 900px) and (min-height: 501px), (min-width: 900px) and (pointer: fine) {
  .hero { height: min(740px, calc(100vh - 64px - 40px)); min-height: 660px; }
  .hero-copy { justify-content: safe center; gap: 14px; padding: 24px 26px; }
  .hero-copy .lead { gap: 12px; }
  .hero h1 { font-size: clamp(30px, 2.8vw, 40px); }
  .proof { font-size: 13px; gap: 4px 12px; }
  .door { gap: 10px; }
  .door .stops label { padding: 4px 8px; }
  .door input[type="text"] { height: 42px; }
  .hb { height: 46px; }
  .for-app { font-size: 14px; }
}
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) { .cards-near .ph { aspect-ratio: 4 / 5; border-radius: 24px; } .cards-near .n { font-size: 23px; } }
/* A phone's deck (the user, 2026-10-29: the cards were edge to edge and too tall):
   the snap keeps the page's margin, and the cards are a normal size. */
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) {
  .cards-near { padding: 0 16px 6px; scroll-padding-inline: 16px; gap: 12px; }
  .cards-near li { flex: 0 0 72%; }
  .cards-near .ph { aspect-ratio: 4 / 3; border-radius: 18px; }
  .cards-near .t { padding: 50px 14px 14px; border-radius: 0 0 18px 18px; }
  .cards-near .n { font-size: 18px; }
  .cards-near .m { font-size: 13px; }
  .cards-near .away { font-size: 12px; }
  .rail { scroll-padding-inline: 0; }
}

/* On a phone, the first time: app or browser (home.js offerApp). */
.app-sheet { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.app-sheet .veil { position: absolute; inset: 0; background: rgba(10,14,12,.45); opacity: 0; transition: opacity .3s; }
.app-sheet .sheet-card { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #161B18; transform: translateY(100%); transition: transform .35s cubic-bezier(.2,.9,.3,1); display: flex; flex-direction: column; }
.app-sheet.on { pointer-events: auto; }
.app-sheet.on .veil { opacity: 1; }
.app-sheet.on .sheet-card { transform: none; }
.app-sheet .choice { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 2px; border: 0; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.app-sheet .choice + .choice { border-top: 1px solid var(--line, #2A332E); }
.app-sheet .choice img, .app-sheet .globe { width: 52px; height: 52px; flex: none; border-radius: 13px; }
.app-sheet .globe { display: flex; align-items: center; justify-content: center; background: var(--sand); color: var(--ink-3); }
.app-sheet .globe svg { width: 26px; height: 26px; }
.app-sheet .choice > span:not(.globe) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.app-sheet .choice b { font-size: 17px; }
.app-sheet .choice small { font-size: 13px; color: var(--ink-3); }
.app-sheet .choice > svg { width: 20px; height: 20px; flex: none; color: var(--ink-4); }

/* ═══ The calmer hero card (the user, 2026-10-29: "cluttered"): the headline,
   three reasons, one question, an import link; the place sits on the map. ═══ */
.door .pane { gap: 10px; }
.door .field { display: flex; align-items: center; gap: 12px; padding: 5px 6px 5px 12px; border-radius: 14px; background: #1D2420; }
/* a thin edge, so the fields read on the dark card (the user, 2026-11-02) */
@media (prefers-color-scheme: dark) { .door .field { box-shadow: inset 0 0 0 1px #3A453F; } }
.door .field[hidden] { display: none; }
.door .field .pin { width: 24px; height: 24px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.door .field .pin svg { width: 14px; height: 14px; }
.door .from { font-size: 15px; color: var(--ink-3); padding: 2px 2px 0; }
.door .from strong { color: var(--ink); }
.door .from .textlink, .door .switch { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--green-ink); cursor: pointer; }
.door .switch { align-self: center; font-size: 14px; font-weight: 600; margin-top: 2px; }
.door .switch:hover, .door .from .textlink:hover { text-decoration: underline; }
.org-line { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--green-ink); text-decoration: none; }
.home .org-line { color: var(--green-ink); }
.org-line svg { width: 15px; height: 15px; }
.org-line:hover { text-decoration: underline; }
.hero-video { display: none; }
@media (min-width: 900px) and (min-height: 501px), (min-width: 900px) and (pointer: fine) {
  /* the place belongs to the map */
  .hero > .near-chip { position: absolute; z-index: 3; left: calc(min(460px, 42%) + 36px); top: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.12); border: 0; }
  .hero-copy { gap: 20px; }
  .hero h1 { font-size: clamp(32px, 3vw, 44px); }
  .proof { flex-wrap: nowrap; font-size: 13.5px; }
}

/* On a phone, the canyon run plays behind the words, dimmed. */
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) {
  .hero { position: relative; overflow: hidden; background: #17221B; color: #fff; padding-bottom: 26px; }
  .hero-video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
  .hero-video.on { opacity: 1; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(8,14,10,.45), rgba(8,14,10,.62)); }
  .hero > .near-chip, .hero-copy { position: relative; z-index: 2; }
  .hero > .near-chip { margin: 22px 16px 0; background: rgba(22, 27, 24, .92); border: 0; }
  .hero-copy { padding-top: 18px; }
  .hero h1 { color: #fff; }
  .hero .em { color: #BFE5CB; }
  .proof { color: #fff; }
  .proof li::before { background-color: #9DB3A6; } /* brighter, so the tick reads (the user, 11/2) */
  .org-line { display: none; }
}

/* ═══ Drive them together: the club's own photos ═══ */
.together { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; height: 460px; }
.together figure { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: var(--sand-2); }
.together img { width: 100%; height: 100%; object-fit: cover; display: block; }
.together .tall img { object-position: 50% 70%; }
.together figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 28px 26px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0)); display: flex; flex-direction: column; gap: 4px; }
.together figcaption b { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.together figcaption span { font-size: 16px; opacity: .9; }
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) {
  .together { margin-top: 36px; grid-template-columns: 1fr; height: auto; }
  .together .wide img { aspect-ratio: 4 / 3; height: auto; }
  .together .tall { display: none; }
  .together figcaption { padding: 60px 18px 18px; }
  .together figcaption b { font-size: 26px; }
  .together figcaption span { font-size: 14px; }
}

/* The founder, in his car, beside his words. */
@media (min-width: 900px) and (min-height: 501px), (min-width: 900px) and (pointer: fine) {
  .proof { flex-wrap: wrap; }
  .proof li { white-space: nowrap; }
  .hero h1 { font-size: clamp(30px, 2.7vw, 40px); }
  /* the card hugs what's in it, floating over the map like the planner's */
  .hero { height: min(640px, calc(100vh - 64px - 40px)); min-height: 560px; }
  .hero-copy { bottom: auto; max-height: calc(100% - 36px); justify-content: flex-start; padding: 30px 30px 26px; }
}


/* Drive them together: three photos as one piece, split on the diagonal,
   the words over all of it (the user, 2026-10-29). Each panel is cut by
   the same slant (--s) with a gap (--g) between. */
.together { display: block; height: auto; }
/* room under the collage before the app section (the user, 2026-11-02) */
.together { margin-bottom: 72px; }
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) { .together { margin-bottom: 44px; } }
.collage { --s: 56px; --g: 10px; position: relative; height: 440px; border-radius: 28px; overflow: hidden; background: var(--cream); }
.collage figure { position: absolute; top: 0; bottom: 0; margin: 0; border-radius: 0; background: var(--sand-2); }
.collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage .p1 { left: 0; width: calc(33.333% + var(--s) / 2 - var(--g) / 2);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%); }
.collage .p2 { left: calc(33.333% - var(--s) / 2 + var(--g) / 2); width: calc(33.333% + var(--s) - var(--g));
  clip-path: polygon(var(--s) 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%); }
.collage .p3 { left: calc(66.667% - var(--s) / 2 + var(--g) / 2); right: 0;
  clip-path: polygon(var(--s) 0, 100% 0, 100% 100%, 0 100%); }
.collage .p1 img { object-position: 50% 60%; }
.collage .p2 img { object-position: 50% 75%; }
.collage .p3 img { object-position: 60% 60%; }
.collage .words { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 34px 30px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0)); display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.collage .words b { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.collage .words span { font-size: 17px; opacity: .92; }
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) {
  .collage { --s: 28px; --g: 6px; height: 300px; border-radius: 22px; }
  .collage .words { padding: 80px 18px 18px; }
  .collage .words b { font-size: 26px; }
  .collage .words span { font-size: 14px; }
}
/* the Giulia in the middle, the cars behind it in view; the redwoods on the right */
.collage .p2 img { object-position: 22% 60%; }
.collage .p3 img { object-position: 45% 80%; }
/* Drive them together: the way in, on the right. */
.collage .words { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 20px; pointer-events: none; }
.collage .words > div { display: flex; flex-direction: column; gap: 4px; }
.collage .words .cta { pointer-events: auto; flex: none; box-shadow: none; }
.home .collage .words .cta { color: var(--ink); }
/* Explore drives: white over the photos in both themes (the user, 2026-11-02:
   the dark button was lost in dark mode) */
.home .collage .words .cta.hb.light { background: #fff; color: #15181C; }
.home .collage .words .cta.hb.light:hover { background: #EEF1EE; }
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) { .collage .words { gap: 12px; } .collage .words .cta { height: 42px; padding: 0 16px; font-size: 14px; } }
/* the button under the words, not beside them (the user, 2026-10-29) */
.collage .words { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; }
.collage .words .cta { margin-top: 14px; }
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) { .collage .words .cta { margin-top: 10px; } }
/* Four panels (the user, 2026-10-29): boundaries at a quarter, a half and three quarters. */
.collage .p1 { left: 0; right: auto; width: calc(25% + var(--s) / 2 - var(--g) / 2); clip-path: polygon(0 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%); }
.collage .p2 { left: calc(25% - var(--s) / 2 + var(--g) / 2); right: auto; width: calc(25% + var(--s) - var(--g)); clip-path: polygon(var(--s) 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%); }
.collage .p3 { left: calc(50% - var(--s) / 2 + var(--g) / 2); right: auto; width: calc(25% + var(--s) - var(--g)); clip-path: polygon(var(--s) 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%); }
.collage .p4 { left: calc(75% - var(--s) / 2 + var(--g) / 2); right: 0; clip-path: polygon(var(--s) 0, 100% 0, 100% 100%, 0 100%); }
.collage .p1 img { object-position: 45% 60%; }
.collage .p2 img { object-position: 18% 60%; }
.collage .p3 img { object-position: 55% 70%; }
.collage .p4 img { object-position: 45% 80%; }
/* a deeper scrim, so the words read over any of the photos */
.collage .words { padding-top: 170px; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 100%); }
.collage .words b, .collage .words span { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) {
  /* on a phone, the two that read best at that size */
  .collage .p1, .collage .p4 { display: none; }
  .collage .p2 { left: 0; width: calc(50% + var(--s) / 2 - var(--g) / 2); clip-path: polygon(0 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%); }
  .collage .p3 { left: calc(50% - var(--s) / 2 + var(--g) / 2); right: 0; width: auto; clip-path: polygon(var(--s) 0, 100% 0, 100% 100%, 0 100%); }
  .collage .words { padding-top: 110px; }
}
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) { .collage { height: 400px; } }
/* the three reasons on one line (the user, 2026-10-29) */
.proof { flex-wrap: wrap; gap: 4px 12px; } /* the longer reasons (11/2) wrap rather than run off the card */
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) { .proof { gap: 4px 10px; font-size: 13px; } }
.proof li { white-space: nowrap; }
@media (max-width: 399px) { .proof { gap: 4px 8px; font-size: 12px; } }
/* "Drive them together." on one line on small phones (360px) */
@media (max-width: 379px) { .hero h1 { font-size: 34px; } }
/* clubs, shortened (the user, 2026-10-29): one line, four ticks, planner CTA */
/* On a phone: three club photos behind the words, story style (the user, 10/29: the video was too fast) */
.hero-story { display: none; }
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) {
  .hero { min-height: 380px; }
  .hero-story { display: block; position: absolute; inset: 0; }
  .hero-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
  .hero-story img.on { opacity: 1; }
  .hero::before { background: linear-gradient(to bottom, rgba(8,14,10,.72) 0%, rgba(8,14,10,.42) 42%, rgba(8,14,10,.05) 70%, rgba(8,14,10,.3) 100%); }
  .hero-story .bars { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 3; display: flex; gap: 5px; }
  .hero-story .bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; position: relative; }
  .hero-story .bars i::after { content: ""; position: absolute; inset: 0; background: #161B18; transform-origin: left; transform: scaleX(0); }
  .hero-story .bars i.done::after { transform: scaleX(1); }
  .hero-story .bars i.on::after { animation: storyfill 8s linear forwards; }
  .hero-story.still .bars { display: none; }
}
@keyframes storyfill { to { transform: scaleX(1); } }
/* On a phone: the app button under the reasons; the place moves to the drives below (the user, 10/29) */
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) {
  .hero { min-height: 400px; }
  .hero .door, .hero > .near-chip { display: none !important; }
  .hero-get { margin-top: 26px; width: 100%; height: 52px; justify-content: center; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
  .hero-get svg { width: 20px; height: 20px; }
  .near-head { align-items: baseline; justify-content: space-between; flex-wrap: nowrap; }
  .near-head h2 { display: block !important; font-size: 22px; letter-spacing: -0.01em; }
  .near-change2 { flex: none; border: 0; background: none; padding: 0; font: inherit; font-size: 15px; font-weight: 700; color: var(--green-ink); cursor: pointer; }
  .near-change2[hidden] { display: none !important; }
}
/* On a phone: the reasons stacked, bigger (the user, 10/29) */
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) {
  .hero .proof { flex-direction: column; flex-wrap: nowrap; gap: 9px; font-size: 17px; margin-top: 6px; }
  .hero .proof li::before { width: 20px; height: 20px; }
  .hero-get { margin-top: 30px; }
}
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) { .hero { min-height: 0; padding-bottom: 46px; } }
/* the scrim behind the words on phones, lighter again (the user, 11/2; darker 10/29) */
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) { .hero::before { background: linear-gradient(to bottom, rgba(8,14,10,.58) 0%, rgba(8,14,10,.42) 55%, rgba(8,14,10,.28) 100%); } }
/* more air in the phone header and above the drives (the user, 10/29) */
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) {
  .hero { padding-bottom: 84px; } /* 20px taller (the user, 2026-11-02) */
  .hero-copy { padding-top: 40px; gap: 18px; }
  .hero .proof { margin-top: 10px; gap: 11px; }
  .hero-get { margin-top: 36px; }
  .near { padding-top: 30px; }
}
/* The app button: white with green words, so it stands off the dimmed
   photo, in both themes (the user, 2026-11-02). */
.home .hb.green.hero-get { background: #fff; color: #1D5B3A; }
.home .hb.green.hero-get:hover { background: #EEF1EE; }
/* under the app button: the car screen, small (the user, 10/29) */
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) {
  .hero-car { margin: 10px 0 0; justify-content: center; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.85); }
  .hero-car svg { width: 15px; height: 15px; }
}
/* place suggestions under the card's fields (as the planner's rows) */
.door .field { position: relative; }
.door .suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #161B18; border-radius: 14px; box-shadow: 0 14px 40px rgba(21,24,28,.18), 0 1px 3px rgba(21,24,28,.08); max-height: 320px; overflow-y: auto; }
.door .suggest li { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.door .suggest li[aria-selected="true"] { background: var(--sand); }
.door .suggest .n { font-size: 15px; color: var(--ink); }
.door .suggest .n b { font-weight: 800; }
.door .suggest .a { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.door .suggest li.none { color: var(--ink-3); cursor: default; font-size: 14px; }
.door .bot-check { font-size: 13px; color: var(--ink-3); }
.door .bot-check[hidden] { display: none; }
.door .bot-check p { margin: 0 0 6px; }
/* the card lets the suggestions hang below it */
@media (min-width: 900px) and (min-height: 501px), (min-width: 900px) and (pointer: fine) { .hero-copy { overflow: visible; } }

/* Six photos, 8 s each (the user, 2026-10-30). Each photo carries its own
   crop: --p behind a phone's words, --w across the card's top on a computer,
   where the photo grows so the card sits as far from the map's foot as its top. */
.hero-story img { object-position: var(--p); }
.hero-story.card-story { display: none; }
@media (min-width: 900px) and (min-height: 501px), (min-width: 900px) and (pointer: fine) {
  .hero-copy { bottom: 18px; max-height: none; }
  .hero-story.card-story { display: block; position: relative; flex: 1 1 auto; min-height: 128px; margin: -30px -30px 2px; border-radius: 26px 26px 0 0; overflow: hidden; background: #17221B; cursor: pointer; }
  .card-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--w); opacity: 0; transition: opacity .9s ease; }
  .card-story img.on { opacity: 1; }
  .card-story .bars { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; gap: 5px; }
  .card-story .bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.4); overflow: hidden; position: relative; }
  .card-story .bars i::after { content: ""; position: absolute; inset: 0; background: #161B18; transform-origin: left; transform: scaleX(0); }
  .card-story .bars i.done::after { transform: scaleX(1); }
  .card-story .bars i.on::after { animation: storyfill 8s linear forwards; }
  .card-story.still .bars { display: none; }
}
/* 10/30 stock photos in the collage's first and third panels (the user kept the Giulia and the redwoods). */
.collage .p1 img { object-position: 45% 62%; }
.collage .p3 img { object-position: 35% 28%; }

/* Place suggestions can run past the hero's foot (the user, 2026-10-30:
   they were cut off): the map keeps the rounded corners, the hero lets
   the list out and sits above the sections after it. */
@media (min-width: 900px) and (min-height: 501px), (min-width: 900px) and (pointer: fine) {
  .hero { overflow: visible; z-index: 5; }
  .hero > .hero-map { border-radius: inherit; overflow: hidden; }
}

/* Places on their way: a small spinner at the end of the field. */
.door .field.busy input { padding-right: 42px; }
.door .field.busy::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 16px; height: 16px; margin-top: -10px;
  border: 2px solid rgba(21,24,28,.14); border-top-color: var(--green); border-radius: 50%;
  animation: field-spin .7s linear infinite; pointer-events: none;
}
@keyframes field-spin { to { transform: rotate(360deg); } }

/* ═══ The app, right under the hero (the user, 2026-11-01, after AllTrails):
   three of its best, one under another, each a big centered line, one
   sentence, the app in a phone and Download the app. ═══ */
.feats { background: var(--sand-2); padding: 24px 16px 8px; }
.feat { max-width: 760px; margin: 0 auto; padding: 72px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.feat + .feat { border-top: 1px solid var(--rule); }
.feats h2 { font-size: clamp(40px, 5.4vw, 68px); text-wrap: balance; }
.feats .sub { margin-top: 18px; font-size: 20px; line-height: 1.45; color: var(--ink-2); max-width: 28em; text-wrap: pretty; }
/* The clips are the whole simulator screen; the app's sheet floats 8 pt in
   from its sides and bottom, which showed as a strip of map inside the
   frame (the user, 11/1). The screen crops those 25 px (of 1320) off the
   sides and 27 off the bottom, and takes the sheet's own corner (55 pt). */
.feat-phone { position: relative; width: 300px; margin-top: 44px; padding: 9px; border-radius: 46px; background: #0C0C0E; box-shadow: 0 30px 60px rgba(21,24,28,.22), inset 0 0 0 1.5px rgba(255,255,255,.12); }
.feat-phone .screen { position: relative; display: block; aspect-ratio: 1270 / 2841; overflow: hidden; border-radius: 13% / 5.8%; background: #1B2027; }
.feat-phone video { position: absolute; left: -1.97%; top: 0; width: 103.94%; height: auto; display: block; opacity: 0; transition: opacity .2s; }
.feat-phone video.ready { opacity: 1; }
.feat-get { margin-top: 40px; height: 56px; padding: 0 34px; font-size: 18px; }
.badge { display: inline-flex; align-items: center; gap: 10px; width: 200px; height: 58px; padding: 0 18px; box-sizing: border-box; border-radius: 12px; background: #000; color: #fff; text-decoration: none; }
.home .badge { color: #fff; }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge span { display: flex; flex-direction: column; font-size: 21px; font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
.badge small { font-size: 12px; font-weight: 500; letter-spacing: 0; }
.badge:hover { background: #22262B; }
/* On a computer, Download the app (and the bar's Get the App): the code to
   scan and both stores. */
.get-dialog { width: min(440px, calc(100vw - 32px)); padding: 36px 36px 32px; border: 0; border-radius: 28px; background: #161B18; color: var(--ink); text-align: center; box-shadow: 0 30px 80px rgba(21,24,28,.3); box-sizing: border-box; }
.get-dialog::backdrop { background: rgba(10,14,12,.5); }
.get-dialog h2 { font-size: 28px; }
.get-dialog p { margin-top: 8px; font-size: 16px; color: var(--ink-3); }
.get-dialog .get-app { margin-top: 24px; flex-direction: column; gap: 24px; padding: 0; background: none; }
.get-dialog .get-app > .qr { width: 168px; height: 168px; }
.get-dialog .stores { justify-content: center; }
.get-dialog .badge { width: 172px; padding: 0 14px; }
.get-dialog .badge span { font-size: 19px; }
.get-dialog .x { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--sand); color: var(--ink-2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.get-dialog .x svg { width: 18px; height: 18px; }
/* The bar: Get the App leads; Sign in steps back beside it. */
.bar .pill.get-wide + #sign-in { background: rgba(255,255,255,.14); color: #fff; }
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) {
  .feats { padding: 0 16px; }
  .feat { padding: 56px 0; }
  .feats h2 { font-size: clamp(34px, 10vw, 44px); }
  .feats .sub { margin-top: 14px; font-size: 17px; }
  .feat-phone { width: min(260px, 66vw); margin-top: 36px; padding: 8px; border-radius: 40px; }
  .feat-get { margin-top: 32px; width: min(280px, 100%); }
}
/* On a computer, the phone beside its words, and under them the code to scan
   and both stores, in place of Download the app (the user, 2026-11-02, after
   AllTrails). Phones keep the button, which opens the store. */
.feat-stores { display: none; }
@media (min-width: 900px) and (min-height: 501px), (min-width: 900px) and (pointer: fine) {
  .feats { padding: 24px 40px 8px; }
  .feat { max-width: 1040px; padding: 88px 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); column-gap: clamp(56px, 8vw, 120px);
    grid-template-rows: 1fr auto auto auto 1fr; grid-template-areas: "phone ." "phone title" "phone sub" "phone stores" "phone ."; align-items: start; text-align: left; }
  /* the phone alternates sides, left first, then right (the user, 2026-11-02) */
  .feat:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: ". phone" "title phone" "sub phone" "stores phone" ". phone"; }
  .feats h2 { grid-area: title; font-size: clamp(44px, 4.6vw, 64px); }
  .feats .sub { grid-area: sub; max-width: 24em; }
  .feat-phone { grid-area: phone; width: 320px; margin-top: 0; }
  .feat-get { display: none; }
  .feat-stores { grid-area: stores; display: flex; align-items: center; gap: 20px; margin-top: 36px; }
  .feat-qr { width: 128px; height: 128px; flex: none; padding: 10px; box-sizing: border-box; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); }
  .feat-stores .stores { display: flex; flex-direction: column; gap: 12px; }
  .feat-stores .badge { width: 190px; height: 56px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
}
@media (max-width: 899px), (max-height: 500px) and (pointer: coarse) {
  .founder-sec { margin-top: 36px; }
  .founder-sec .founder { grid-template-columns: 1fr; gap: 6px; padding: 12px; border-radius: 24px; }
  .founder-sec img { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .founder-sec figcaption { padding: 12px 10px 14px; }
  .founder-sec blockquote p { font-size: 17px; }
}

/* MapLibre's own controls and popups, dark like the site (the user, 2026-11-01) */
@media (prefers-color-scheme: dark) {
.maplibregl-ctrl-group { background: #161B18 !important; box-shadow: 0 6px 18px rgba(0,0,0,.4), inset 0 0 0 1px #2A332E !important; }
.maplibregl-ctrl-group button + button { border-top: 1px solid #2A332E !important; }
.maplibregl-ctrl-group button:hover { background-color: #1D2420 !important; }
.maplibregl-ctrl button .maplibregl-ctrl-icon { filter: invert(1) brightness(.92); }
.maplibregl-ctrl-attrib, .maplibregl-ctrl.maplibregl-ctrl-attrib { background: rgba(14, 18, 16, .78) !important; color: #9AA39D; }
.maplibregl-ctrl-attrib a { color: #C3CAC5 !important; }
.maplibregl-ctrl-attrib-button { filter: invert(1); background-color: transparent !important; }
.maplibregl-popup-content { background: #161B18 !important; color: #EEF1EE; }
.maplibregl-popup-tip { border-top-color: #161B18 !important; border-bottom-color: #161B18 !important; }
}

/* light theme (scripts/light_theme.py): the device's light setting */
@media not all and (prefers-color-scheme: dark) {
  :root { color-scheme: light; --mint: #DCF1E2; --mint-ink: #BFE5CB; --ink: #15181C; --ink-2: #3D434B; --ink-3: #5D636C; --ink-4: #8B9098; --cream: #FBF8EF; --sand: #F6F4EE; --sand-2: #F1EEE5; --rule: #E2DCCC; --green-ink: #1D5B3A; }
  .home a { color: var(--green); }
  .home .em { color: var(--green); }
  .hb.green { color: #fff; }
  .hb.dark { background: var(--ink); color: #fff; }
  .hb.dark:hover { background: #2A2E33; }
  .hb.light { background: #fff; color: var(--ink); }
  .hb.light:hover { background: var(--sand); }
  .home .hb.green { color: #fff; }
  .home .hb.light { color: var(--ink); }
  .near-chip { background: #fff; color: var(--ink-3); }
  .near-chip svg { color: var(--green); }
  .near-chip strong { color: var(--ink); }
  .near-chip button { background: none; color: var(--green); }
  .hero .pitch { color: var(--ink-3); }
  .door { background: #fff; }
  .door .tabs { background: var(--sand-2); }
  .door .tabs button { background: none; color: var(--ink-3); }
  .door .tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
  .door .stops { background: var(--sand); }
  .door input[type="text"], .door input[type="url"] { background: #fff; color: var(--ink); }
  .door .drop { border: 2px dashed #CFC8B6; background: var(--sand); }
  .door .drop.over { border-color: var(--green); background: var(--mint); }
  .door .drop svg { color: var(--green); }
  .door .drop span { color: var(--ink-3); }
  .door .or { color: var(--ink-4); }
  .door .or::before, .door .or::after { background: var(--rule); }
  .door .paste-label { color: var(--ink-3); }
  .door .paste input { background: none; }
  .door .err { color: #B0352B; }
  .hero-map { background: #ECEFE2; }
  .hero-map .label { background: #fff; }
  .hero-map .label i { border-top: 3px dashed var(--violet); }
  .hero-map .locate { border: 0; background: #fff; color: var(--ink); }
  .hero-map .locate svg { color: var(--route); }
  .road-card img { background: var(--sand-2); }
  .road-card .n { color: var(--ink); }
  .road-card .m { color: var(--ink-3); }
  .cards-near a { color: var(--ink); }
  .cards-near .ph { background: var(--sand-2); }
  .cards-near .m { color: var(--ink-3); }
  .cards-near.loading li { background: var(--sand-2); }
  .get-app { background: var(--sand); }
  .get-app > .qr { background: #fff; border: 1px solid var(--rule); }
  .get-app .side > div > p { color: var(--ink-3); }
  .founder-sec .founder { background: var(--mint); color: #2B4A37; }
  .founder-sec blockquote p { color: var(--green-dark); }
  .founder-sec .sig { color: var(--green-dark); }
  .rail a { border: 1px solid var(--rule); background: #fff; color: var(--ink); }
  .rail .m { color: var(--ink-3); }
  .rail .chip { color: #fff; }
  .anywhere ul a { color: var(--ink-2); }
  .anywhere ul a:hover { color: var(--green); }
  .anywhere ul span { color: var(--ink-4); }
  .faq2 details { background: #fff; border-color: var(--rule); }
  .faq2 details p { color: var(--ink-2); }
  @media (max-width: 899px), (max-height: 500px) and (pointer: coarse) {
  .cards-near a { color: #fff; }
  .cards-near .t { background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0)); }
  .cards-near .m { color: #fff; }
  .cards-near .lv { color: #fff !important; background: rgba(255,255,255,.2); }
  .get-app { background: none; }
  }
  @media (min-width: 900px) and (min-height: 501px), (min-width: 900px) and (pointer: fine) {
  .hero-copy { background: #fff; }
  .door { border: 0; background: none; }
  }
  .door .stops .pin { color: #fff; }
  .road-panel { background: #fff; }
  .road-panel .x { border: 0; background: rgba(255,255,255,.92); color: var(--ink); }
  .proof { color: var(--ink-2); }
  .proof li::before { background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231D5B3A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
  .for-org { background: var(--mint); color: var(--green-dark); }
  .for-org:hover { background: #CDEBD6; }
  .home .for-org { color: var(--green-dark); }
  .app-sheet .veil { background: rgba(10,14,12,.45); }
  .app-sheet .sheet-card { background: #fff; }
  .app-sheet .choice { border: 0; background: none; color: var(--ink); }
  .app-sheet .choice + .choice { border-top: 1px solid var(--line, #ECE7DA); }
  .app-sheet .globe { background: var(--sand); color: var(--ink-3); }
  .app-sheet .choice small { color: var(--ink-3); }
  .app-sheet .choice > svg { color: var(--ink-4); }
  .door .field { background: var(--sand); }
  .door .field .pin { color: #fff; }
  .door .from { color: var(--ink-3); }
  .door .from strong { color: var(--ink); }
  .door .from .textlink, .door .switch { border: 0; background: none; color: var(--green); }
  .org-line { color: var(--green-dark); }
  .home .org-line { color: var(--green-dark); }
  @media (min-width: 900px) and (min-height: 501px), (min-width: 900px) and (pointer: fine) {
  .hero > .near-chip { border: 0; }
  }
  @media (max-width: 899px), (max-height: 500px) and (pointer: coarse) {
  .hero { background: #17221B; color: #fff; }
  .hero::before { background: linear-gradient(to bottom, rgba(8,14,10,.45), rgba(8,14,10,.62)); }
  .hero > .near-chip { background: rgba(255,255,255,.92); border: 0; }
  .hero h1 { color: #fff; }
  .hero .em { color: #BFE5CB; }
  .proof { color: #fff; }
  .proof li::before { background-color: rgba(255,255,255,.9); }
  }
  .together figure { background: var(--sand-2); }
  .together figcaption { color: #fff; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0)); }
  .collage { background: var(--cream); }
  .collage figure { background: var(--sand-2); }
  .collage .words { color: #fff; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0)); }
  .home .collage .words .cta { color: var(--ink); }
  .home .collage .words .cta.hb.light { background: #fff; color: #15181C; }
  .home .collage .words .cta.hb.light:hover { background: #EEF1EE; }
  .collage .words { background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 100%); }
  @media (max-width: 899px), (max-height: 500px) and (pointer: coarse) {
  .hero::before { background: linear-gradient(to bottom, rgba(8,14,10,.72) 0%, rgba(8,14,10,.42) 42%, rgba(8,14,10,.05) 70%, rgba(8,14,10,.3) 100%); }
  .hero-story .bars i { background: rgba(255,255,255,.35); }
  .hero-story .bars i::after { background: #fff; }
  .near-change2 { border: 0; background: none; color: var(--green); }
  .hero::before { background: linear-gradient(to bottom, rgba(8,14,10,.78) 0%, rgba(8,14,10,.62) 55%, rgba(8,14,10,.45) 100%); }
  }
  .home .hb.green.hero-get { background: #fff; color: #1D5B3A; }
  .home .hb.green.hero-get:hover { background: #EEF1EE; }
  @media (max-width: 899px), (max-height: 500px) and (pointer: coarse) {
  .hero-car { color: rgba(255,255,255,.85); }
  }
  .door .suggest { background: #fff; }
  .door .suggest li[aria-selected="true"] { background: var(--sand); }
  .door .suggest .n { color: var(--ink); }
  .door .suggest .a { color: var(--ink-3); }
  .door .suggest li.none { color: var(--ink-3); }
  .door .bot-check { color: var(--ink-3); }
  @media (min-width: 900px) and (min-height: 501px), (min-width: 900px) and (pointer: fine) {
  .hero-story.card-story { background: #17221B; }
  .card-story .bars i { background: rgba(255,255,255,.4); }
  .card-story .bars i::after { background: #fff; }
  }
  .door .field.busy::after { border: 2px solid rgba(21,24,28,.14); border-top-color: var(--green); }
  .feats { background: var(--sand-2); }
  .feat + .feat { border-top: 1px solid var(--rule); }
  .feats .sub { color: var(--ink-2); }
  .feat-phone { background: #0C0C0E; }
  .feat-phone .screen { background: #1B2027; }
  .badge { background: #000; color: #fff; }
  .home .badge { color: #fff; }
  .badge:hover { background: #22262B; }
  .get-dialog { border: 0; background: #fff; color: var(--ink); }
  .get-dialog::backdrop { background: rgba(10,14,12,.5); }
  .get-dialog p { color: var(--ink-3); }
  .get-dialog .get-app { background: none; }
  .get-dialog .x { border: 0; background: var(--sand); color: var(--ink-2); }
  .bar .pill.get-wide + #sign-in { background: rgba(255,255,255,.14); color: #fff; }
  @media (min-width: 900px) and (min-height: 501px), (min-width: 900px) and (pointer: fine) {
  .feat-qr { background: #fff; }
  }
}
/* end light theme */
