/* Landing page (/). Marketing scale; tokens only. */

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-9) var(--space-10);
  background: var(--grad-hero);
}
.hero::before {           /* 60px plotting grid, faded at the edges */
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grid-texture);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; gap: var(--space-9); align-items: center; }
.hero__copy { max-width: 640px; }
.hero__copy .badge { margin-bottom: var(--space-5); }
.hero h1 { max-width: 15ch; }
.hero__lead { margin-top: var(--space-5); max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-7); }
.hero__helper { display: flex; align-items: flex-start; gap: var(--space-2); margin-top: var(--space-4); color: var(--text-2); font-size: var(--type-xs); }
.hero__helper .icon { color: var(--info); margin-top: 2px; flex: none; }
.hero__art { margin: 0; position: relative; }
.hero__art::before {      /* soft orange glow behind the art */
  content: "";
  position: absolute;
  inset: 10% 5%;
  background: var(--glow-device);
  filter: blur(30px);
  pointer-events: none;
}
.hero__art img { position: relative; width: 100%; height: auto; border-radius: var(--radius-2xl); box-shadow: var(--shadow-device); }
@media (max-width: 479.98px) {
  .hero__ctas .btn { flex: 1 1 100%; }
}
@media (min-width: 768px) {
  .hero { padding-block: var(--space-11) var(--space-12); }
  .hero__art { max-width: 640px; }
}
@media (min-width: 768px) and (max-width: 1279.98px) { .hero__copy { max-width: 600px; } }
@media (min-width: 1280px) {
  .hero { min-height: calc(100svh - var(--nav-height)); display: flex; align-items: center; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: var(--space-9); }
}

/* ---- Feature grid ------------------------------------------------------- */
.section--tight { padding-block: var(--space-10); }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
@media (min-width: 768px) { .features { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); } }
@media (min-width: 1280px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--base); }
.feature h3 { margin-bottom: var(--space-2); }
.feature--cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--card-pad-lg);
  border: 1px dashed var(--border-md);
  border-radius: var(--radius-xl);
  color: var(--text-1);
}

/* ---- Preview note and safety callout (info callouts, components §10.2) ---- */
.preview-note, .safety-callout { padding: var(--space-5); gap: var(--space-2) var(--space-4); }
@media (min-width: 768px) { .preview-note, .safety-callout { padding: var(--space-7) var(--space-8); } }
.preview-note > .icon, .safety-callout > .icon { margin-top: 6px; }
.preview-note__title, .safety-callout__title { font-size: var(--type-h2-app); font-weight: var(--fw-extrabold); letter-spacing: var(--ls-title); line-height: var(--lh-snug); }
.preview-note .callout__body, .safety-callout .callout__body { font-size: var(--type-body); line-height: var(--lh-relaxed); }
.preview-note .callout__body p + p, .safety-callout .callout__body p + p { margin-top: var(--space-3); }
.preview-note .link-target, .safety-callout .link-target { gap: var(--space-2); font-weight: var(--fw-semibold); }
.section--tight + .section--tight { padding-top: 0; }

/* ---- Steps (01 / 02 / 03 with a rail) ----------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); position: relative; }
.step { text-align: center; max-width: 340px; margin-inline: auto; }
.step__num {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: var(--space-5);
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-md);
  color: var(--accent);
  font-size: 13px;
  font-weight: var(--fw-extrabold);
  position: relative;
  z-index: 1;
}
.step h3 { margin-bottom: var(--space-2); }
.step p { font-size: var(--type-small); line-height: var(--lh-relaxed); }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-7); }
  .steps::before {
    content: "";
    position: absolute;
    top: 28px; left: 16%; right: 16%;
    height: 1px;
    background: var(--grad-step-rail);
  }
}
.section--band .step__num { background: var(--base); }

/* ---- Coming soon grid --------------------------------------------------- */
.soon-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .soon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .soon-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1280px) { .soon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .soon-grid > :last-child:nth-child(odd) { grid-column: auto; } }
.soon-grid .card h3 { margin-bottom: var(--space-1); }
.soon-grid .card__head { flex-wrap: wrap; row-gap: var(--space-2); }   /* gate 2 S1: no overflow at 1280+ */

/* ---- App section -------------------------------------------------------- */
.app { display: grid; gap: var(--space-9); align-items: start; }
@media (min-width: 1024px) { .app { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-10); } }
.app__copy .eyebrow { margin-bottom: var(--space-3); }
.app__copy .lead { margin-top: var(--space-4); max-width: 560px; }
.perks { list-style: none; margin: var(--space-7) 0 0; padding: 0; display: grid; gap: var(--space-5); }
.perks li { display: flex; gap: var(--space-4); align-items: flex-start; }
.perks h3 { font-size: var(--type-h4); margin-bottom: var(--space-1); }
.perks p { font-size: var(--type-small); line-height: var(--lh-relaxed); }

.download { background: var(--base); display: grid; gap: var(--space-4); justify-items: start; }
.download__title { font-size: var(--type-h3); }
.download__qr { display: none; align-items: center; gap: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); width: 100%; }
.download__qr img { width: 112px; height: 112px; border-radius: var(--radius-md); flex: none; }
.download__qr p { font-size: var(--type-small); color: var(--text-2); }
@media (min-width: 1024px) and (pointer: fine) { .download__qr { display: flex; } }   /* a QR is pointless on the phone itself */

/* ---- PRO ---------------------------------------------------------------- */
.container--pro { max-width: calc(860px + 2 * var(--gutter)); }
.pro .badge { margin-bottom: var(--space-4); }
.pro__lead { margin: var(--space-4) auto 0; max-width: 520px; }
.pro__ticks { max-width: 480px; margin: var(--space-7) auto; }
.pro__fine { margin-top: var(--space-4); }
.pro__price { margin: 0 0 var(--space-5); text-align: center; font-size: var(--text-lg, 1.125rem); }


/* ---- UI review 2026-11 ---------------------------------------------------- */
/* Hero: short lede on phones, transport chips instead of a list in a sentence */
/* (hero__lead-more removed: the lead shows in full at every width) */
.hero__modes { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: var(--space-4) 0 0; padding: 0; }
/* Helper: one block (icon + text), link on its own line */
.hero__helper > span { display: block; }
.hero__helper a { display: inline-block; margin-top: var(--space-1); }
/* Logged-in hero: sample link is a plain text link */
.hero__sample { margin-top: var(--space-4); }
.hero__sample a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target-min); }
/* Short sample note replaces the long "Plan your trip." band */
.sample-note .callout__body p { margin: 0; }
/* "Your trips" (logged in): up to 3 cards, no cover image */
.my-trips__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .my-trips__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); } }
.my-trips__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.my-trips__head h2 { margin: 0; }
/* Phones: about 25% less section padding; "Coming next" becomes one swipeable row */
@media (max-width: 599.98px) {
  .section { padding-block: calc(var(--section-pad-y-sm) * 0.75); }
  .section--tight { padding-block: calc(var(--space-10) * 0.75); }
  .section-head { margin-bottom: var(--space-6); }
  .soon-grid { display: flex; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: var(--space-3); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .soon-grid > li { flex: 0 0 72%; scroll-snap-align: start; }
}
/* ---- UI review 2026-11, pass 2 (visual polish) --------------------------- */
/* Transport modes: quiet outlined pills, secondary to the CTAs */
.hero__modes { margin-top: var(--space-5); }
.hero__modes > .chip { background: transparent; border: 1px solid var(--border-md); color: var(--text-2); font-weight: var(--fw-medium); }
/* Helper: one line, the link inline */
.hero__helper > span { display: inline; }
.hero__helper a { display: inline; margin: 0; white-space: nowrap; }
/* The sample trip is explained under the art (was a separate band) */
.hero__caption { position: relative; margin-top: var(--space-4); color: var(--text-3); font-size: var(--type-xs); line-height: var(--lh-body); text-align: center; }
.hero__caption strong { color: var(--text-2); font-weight: var(--fw-semibold); }
@media (max-width: 599.98px) {
  .hero__ctas { margin-top: var(--space-6); }
  .hero__caption { text-align: left; }
}
/* Logged-in home: a compact "Your trips" band replaces the marketing hero */
.home-in { min-height: 0; padding-block: var(--space-10) var(--space-11); display: block; }
.home-in__head { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-5) var(--space-8); margin-bottom: var(--space-7); }
.home-in__head .eyebrow { margin-bottom: var(--space-3); }
.home-in__title { font-size: var(--type-h2); font-weight: var(--fw-extrabold); letter-spacing: var(--ls-heading); line-height: var(--lh-heading); margin: 0; }
.home-in__lede { margin: var(--space-3) 0 0; color: var(--text-2); font-size: var(--type-lead); }
.home-in__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.home-in__actions .btn { gap: var(--space-2); }
.home-in__grid { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--trip-card-min)), 1fr)); }
@media (min-width: 768px) { .home-in__grid { gap: var(--space-6); } }
.home-trip__when { margin: 0; color: var(--text-3); font-size: var(--type-eyebrow); font-weight: var(--fw-bold); letter-spacing: var(--ls-badge); text-transform: uppercase; }
.home-trip--next .home-trip__when { color: var(--accent); }
.home-trip h3 { font-size: var(--type-h3); margin: 0; }
.home-trip .trip-card__body { gap: var(--space-1); padding: var(--space-5) var(--space-6) var(--space-6); flex: 1; align-content: start; }
.home-trip .trip-card__body h3 { margin-block: var(--space-1); }
.home-trip .trip-card__foot { margin-top: var(--space-3); }
.home-trip--next { border-color: var(--accent-bd); }
.home-in__sample { position: relative; margin: var(--space-6) 0 0; }
.home-in__sample a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target-min); }
@media (max-width: 599.98px) {
  .home-in { padding-block: var(--space-8) var(--space-9); }
  .home-in__actions { width: 100%; }
  .home-in__actions .btn { flex: 1 1 0; }
}
@media (max-width: 599.98px) { .features .card--lg { padding: var(--space-6); } }

/* ---- Home UI 2026-11: hero (planner + phone), steps, app, GPX band -------- */
/* Lead is full length at every width now */
.hero__built { margin-top: var(--space-5); }
.hero__built-label { margin: 0 0 var(--space-2); color: var(--text-3); font-size: var(--type-eyebrow); font-weight: var(--fw-bold); letter-spacing: var(--ls-badge); text-transform: uppercase; }
.hero__segments { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.chip--accent-outline { background: var(--accent-bg); border: 1px solid var(--accent-bd); color: var(--text-1); min-height: 32px; padding-inline: var(--space-3); }
.hero__modes-line { margin: var(--space-3) 0 0; color: var(--text-2); font-size: var(--type-small); }
.hero__ctas { align-items: stretch; }
.hero__ctas .btn--hero, .store-btn--hero { min-height: 56px; }
.store-btn--hero { padding-block: 0; border-radius: var(--radius-full); padding-inline: var(--space-6); }
.hero__sample { margin: var(--space-3) 0 0; }
.hero__sample a { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--fw-semibold); }
.hero__sample .icon { width: 16px; height: 16px; }
.hero__helper { margin-top: var(--space-2); }

/* Planner card and phone sit side by side: the phone never covers the card's text or chips */
.hero__art-stage { display: flex; align-items: flex-end; gap: var(--space-4); }
.hero__art .hero__planner { display: block; flex: 1 1 0; min-width: 0; width: 0; }
@media (max-width: 599.98px) {
  .hero__art-stage { flex-direction: column; align-items: center; gap: var(--space-5); }
  .hero__art .hero__planner { flex: none; width: 100%; }
}
/* Mobile: the sample link and the CTAs stay thumb-friendly */
@media (max-width: 479.98px) {
  .hero__ctas .store-btn--hero { flex: 1 1 100%; justify-content: center; }
}

/* Steps: step 2 (the app) is featured */
.step--featured { background: var(--surface); border: 1px solid var(--accent-bd); border-radius: var(--radius-xl); padding: var(--space-6) var(--space-5); max-width: 380px; width: 100%; }
.step--featured .step__num { border-color: var(--accent-bd); background: var(--accent-bg); }
.step__link { gap: var(--space-2); margin-top: var(--space-2); font-weight: var(--fw-semibold); }
.step__link .icon { width: 16px; height: 16px; }
.steps__more { margin: var(--space-8) auto 0; text-align: center; color: var(--text-2); font-size: var(--type-small); max-width: 520px; }
@media (min-width: 768px) { .step--featured { align-self: start; } }
.section--band .step--featured { background: var(--base); }

/* App section */
.perk__tag { margin-left: var(--space-2); padding: 2px var(--space-2); font-size: 11px; vertical-align: middle; letter-spacing: 0.06em; }
.app__side { display: grid; gap: var(--space-6); align-content: start; }
.app__phones { display: flex; gap: var(--space-4); justify-content: center; align-items: flex-start; padding-top: var(--space-8); }
.app__phone { flex: 0 1 220px; margin: 0; min-width: 0; }
.app__phone img { display: block; width: 100%; height: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-device); border: 1px solid var(--border-md); }
@media (max-width: 599.98px) {
  .app__phones { justify-content: flex-start; }
  .app__phone { flex-basis: 200px; }
  .app__phone + .app__phone { display: none; }
  .app__phones { justify-content: center; padding-top: 0; }
}
.download .fine { margin-top: calc(-1 * var(--space-2)); }
@media (max-width: 599.98px) { .download .store-btn { width: 100%; justify-content: center; } }

/* GPX band: compact and lighter than the app section (no phones, no store button, no band fill) */
.gpx__head { max-width: 680px; }
.gpx__head .eyebrow { margin-bottom: var(--space-2); }
.gpx__title { font-size: var(--type-h3); font-weight: var(--fw-extrabold); letter-spacing: var(--ls-title); line-height: var(--lh-snug); margin: 0; }
.gpx__lead { margin: var(--space-3) 0 0; color: var(--text-2); font-size: var(--type-body); line-height: var(--lh-relaxed); }
.gpx__facts { list-style: none; margin: var(--space-7) 0 0; padding: 0; display: grid; gap: var(--space-5); }
@media (min-width: 768px) { .gpx__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7); } }
.gpx__facts li { display: flex; gap: var(--space-3); align-items: flex-start; }
.gpx__facts .icon { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--accent); }
.gpx__facts h3 { font-size: var(--type-h4); margin-bottom: var(--space-1); }
.gpx__facts p { font-size: var(--type-small); line-height: var(--lh-relaxed); }
.gpx__fine { margin: var(--space-6) 0 0; }
.gpx__cta { margin: var(--space-2) 0 0; }
.gpx__cta a { gap: var(--space-2); font-weight: var(--fw-semibold); }
.gpx__cta .icon { width: 16px; height: 16px; }

/* ---- Home UI fix 2026-11: bigger hero visual, aligned steps ---------------- */
/* Hero visual: the planner card alone, as large as its column allows */
.hero__art-stage { display: block; position: relative; }
.hero__art .hero__planner { display: block; width: 100%; height: auto; }
@media (min-width: 768px) {
  .hero__art { width: 100%; max-width: 760px; margin-inline: auto; }
}
@media (min-width: 1280px) {
  .hero__art { width: auto; max-width: none; margin-inline: 0; }
  .hero__grid { max-width: 1400px; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-9); }
}

/* How it works: the rail runs behind the cards; all three circles share one line */
.steps > .step { position: relative; z-index: 1; }
@media (min-width: 768px) {
  .steps { align-items: start; }
  .step--featured { align-self: stretch; margin-top: calc(-1 * var(--space-6)); margin-bottom: calc(-1 * var(--space-4)); padding-top: calc(var(--space-6) - 1px); padding-bottom: var(--space-6); max-width: none; }
}

/* Stacked hero (below 1280): one centred column; the side-by-side desktop layout is unchanged */
@media (max-width: 1279.98px) {
  .hero__copy { margin-inline: auto; text-align: center; }
  .hero h1 { margin-inline: auto; }
  .hero__lead { margin-inline: auto; max-width: 560px; }
  .hero__segments, .hero__ctas, .hero__helper { justify-content: center; }
  .hero__helper { display: block; text-align: center; }
  .hero__helper .icon { display: inline-block; vertical-align: -3px; margin: 0 var(--space-2) 0 0; }
  .hero__caption { text-align: center; }
  .hero__sample a { justify-content: center; }
}
