/* planforadventure.com homepage only (prd-website-homepage-refresh). Shared
   rules (tokens, nav, footer, buttons, reveal) are in site.css. Every motion
   below is gated on the `js` class that home.js sets, and all of it stops
   under prefers-reduced-motion (block at the end of this file and site.css). */

.ic-sage { color: var(--text-brand); }
.ic-accent { color: var(--text-accent); }
.center { text-align: center; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }
.center-head { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.center-head .sec-h { max-width: 820px; }

/* ---------- Hero ---------- */
.hero {
  --hero-h: max(600px, min(860px, calc(100vh - 58px)));
  /* The frame's width (and so its height, ×9/16): wider than the screen up to 1376 px. */
  --hero-fw: max(100vw, 1376px, calc(var(--hero-h) * 16 / 9));
  position: relative;
  height: var(--hero-h);
  overflow: hidden;
  background: var(--bg-primary);
}
.hero-frame {
  position: absolute; left: 50%; top: 50%;
  /* The S2 frame is 2880×1620 (16:9): always cover the hero, never letterbox. */
  width: max(100%, 1376px, calc(var(--hero-h) * 16 / 9));  /* = --hero-fw */
  aspect-ratio: 2880 / 1620;
  transform: translate(-50%, -50%);
}
.hero-zoom { position: absolute; inset: 0; transform-origin: 70% 50%; }
.hero-zoom picture, .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.hero-img { object-fit: cover; }
.hero-pin { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.hero-trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trail { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trail-casing { stroke: var(--color-off-white); stroke-opacity: 0.9; stroke-width: 18; }
.trail-line { stroke: var(--color-burnt-orange); stroke-width: 10; }
.trail-halo { fill: none; stroke: var(--color-burnt-orange); stroke-width: 8; }
.hero-card {
  /* Outside the zoom layer (the zoom never pushes it off screen) and tied to the
     trail's geometry rather than the screen edge (gate round 2: a right-pinned card
     covered the trail at 961-1480 px). The anchor is the trail-safe corner below
     the point where the trail swings back left: in the 2880x1620 frame, every
     trail point (casing included) at y >= 975 lies left of x = 1884. Both
     multipliers are frame-width fractions, worst case over the zoom (1.02-1.10,
     or 1.0 unzoomed with no JS or reduced motion):
       left = x of 1884 at 1.0:  0.2 - 1.0 * (0.7 - 1884/2880) = 0.1542
       top  = y of 975 at 1.10: 1.10 * 9/16 * (975/1620 - 0.5) = 0.0630
     The pin and label (y 388-520) are far above, the copy column far left. */
  --hero-card-x: calc(var(--hero-fw) * 0.1542 + 12px);
  position: absolute;
  left: calc(50% + var(--hero-card-x));
  top: calc(50% + var(--hero-fw) * 0.0630 + 12px);
  max-width: calc(50% - var(--hero-card-x) - 24px);
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-popup);
  display: flex; flex-direction: column; gap: 8px;
}
.hero-card strong { font-weight: 600; }
.hero-recon {
  margin: 0; padding: 0; list-style: none;
  display: flex; gap: 12px;
  font-size: 13px; line-height: 18px; color: var(--text-secondary);
}
.hero-recon li { display: inline-flex; gap: 4px; align-items: center; }
.hero-recon .ic { width: 16px; height: 16px; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, var(--bg-primary) 0%, rgba(33, 31, 33, 0) 160px),
    linear-gradient(90deg, rgba(33, 31, 33, 0.88) 0%, rgba(33, 31, 33, 0.55) 40%, rgba(33, 31, 33, 0) 64%);
}
.hero-content {
  position: relative; max-width: 1312px; height: 100%;
  margin: 0 auto; padding: 0 var(--site-pad);
  display: flex; align-items: center;
}
.hero-copy { max-width: 640px; display: flex; flex-direction: column; gap: 24px; }
.hero-eyebrow {
  font-size: 11px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-brand);
}
.hero-h {
  font-size: 80px; line-height: 80px; font-weight: 900; font-style: italic;
  letter-spacing: -0.02em;
}
.hero-sub { font-size: 19px; line-height: 29px; color: var(--text-secondary); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-fine { font-size: 13px; line-height: 18px; color: var(--text-tertiary); }
.hero-credit {
  position: absolute; left: 16px; right: 16px; bottom: 8px; margin: 0;
  text-align: right;
  font-size: 11px; line-height: 15px; color: var(--text-secondary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.hero-cue { position: absolute; left: 50%; bottom: 28px; margin-left: -12px; width: 24px; height: 24px; color: var(--text-secondary); }

@media (max-width: 1279px) {
  .hero-recon { display: grid; grid-template-columns: auto auto; gap: 6px 12px; }
}
@media (max-width: 1100px) {
  .hero-h { font-size: 64px; line-height: 66px; }
}
@media (max-width: 960px) {
  .hero-card { display: none; }
}
/* Phone: mockup C, the portrait crop with the copy at the bottom. The
   <picture> source sends phones only the crop. No trail or card here. */
@media (max-width: 700px) {
  .hero { height: max(560px, min(720px, calc(100vh - 52px))); min-height: 0; }
  .hero-frame { left: 0; top: 0; width: 100%; height: 100%; aspect-ratio: auto; transform: none; }
  .hero-img { object-position: 50% 30%; }
  .hero-trail, .hero-pin, .hero-card, .hero-cue { display: none; }
  .hero-shade {
    background: linear-gradient(0deg, var(--bg-primary) 0%, rgba(33, 31, 33, 0.85) 38%, rgba(33, 31, 33, 0.15) 70%, rgba(33, 31, 33, 0.55) 100%);
  }
  /* Room under the copy for the imagery credit (two lines here, three below 420). */
  .hero-content { align-items: flex-end; padding: 0 16px 60px; }
  .hero-copy { gap: 14px; }
  .hero-h { font-size: 44px; line-height: 44px; }
  .hero-sub { font-size: 17px; line-height: 26px; }
  .hero-ctas .btn { width: 100%; }
}
@media (max-width: 420px) {
  .hero-content { padding-bottom: 76px; }
}
/* Small or short phones: the copy is taller than the space above the pin, so
   it would cover it. The picture becomes a band above the copy instead. */
@media (max-width: 370px), (max-width: 700px) and (max-height: 760px) {
  .hero { height: auto; }
  .hero-frame { position: relative; height: 300px; overflow: hidden; }
  .hero-shade { bottom: auto; height: 300px; background: linear-gradient(0deg, var(--bg-primary) 0%, rgba(33, 31, 33, 0.6) 22%, rgba(33, 31, 33, 0) 55%, rgba(33, 31, 33, 0.45) 100%); }
  .hero-content { height: auto; margin-top: -56px; }
}
/* Short phones (gate round 2): a 220 px band keeps "Explore the map free" above
   the fold at 320x640 and 360x740. Not on wider short screens (700x700): there
   the shorter band crops the camp out of the picture, and the CTA fits anyway. */
@media (max-width: 430px) and (max-height: 760px) {
  .hero-frame { height: 220px; }
  .hero-shade { height: 220px; }
}
@media (max-width: 359px) {
  .hero-h { font-size: 38px; line-height: 40px; }
}

/* ---------- Pillars ---------- */
.pillars { position: relative; padding-top: 48px; overflow: hidden; }
.topo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.7; pointer-events: none;
}
.pillars-inner { position: relative; display: flex; flex-direction: column; gap: 40px; }
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.pillar {
  padding: 28px; border-radius: var(--radius-2xl);
  background: var(--bg-surface); border: 1px solid var(--border-default);
  display: flex; flex-direction: column; gap: 14px;
  color: var(--text-primary); text-decoration: none;
}
.pillar:hover { color: var(--text-primary); }
.pillar strong { font-size: 22px; line-height: 28px; font-weight: 700; }
.pillar-body { color: var(--text-secondary); }
.pillar-more { margin-top: auto; color: var(--text-accent); font-weight: 600; }
.pillar-ic {
  width: 52px; height: 52px; border-radius: var(--radius-lg);
  display: inline-flex; align-items: center; justify-content: center; color: var(--text-primary);
}
.pillar-ic .ic { width: 26px; height: 26px; }
.bg-forest { background: var(--color-forest); }
.bg-primary { background: var(--interactive-primary); }
.bg-services { background: var(--map-services); }

.lift { transition: transform var(--duration-slow) var(--ease-standard), box-shadow var(--duration-slow) var(--ease-standard), border-color var(--duration-slow); }
.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-control); }

/* ---------- Find the perfect camp ---------- */
.find { padding-top: 64px; padding-bottom: 64px; }
.find-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.find-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.find-shots { flex: 2 1 620px; min-width: 0; position: relative; padding-bottom: 40px; }
.trip-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.trip-tabs[hidden] { display: none; }
.trip-tab {
  min-height: var(--touch-target); padding: 0 18px;
  border: 1px solid var(--border-control); border-radius: var(--radius-full);
  background: transparent; color: var(--text-secondary);
  font: 600 15px/22px var(--font-body); cursor: pointer;
}
.trip-tab:hover { color: var(--text-primary); }
.trip-tab[aria-selected="true"] { background: var(--interactive-primary); border-color: var(--interactive-primary); color: var(--text-on-accent); }
.trip-panels { display: flex; flex-direction: column; gap: 12px; }
.trip-panel {
  padding: 20px; border-radius: var(--radius-xl);
  background: var(--bg-surface); border: 1px solid var(--border-default);
  display: flex; flex-direction: column; gap: 14px;
}
.trip-panel[hidden] { display: none; }
.trip-title { font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 700; }
.is-tabbed .trip-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js .is-tabbed .trip-panel:not([hidden]) { animation: pop 400ms var(--ease-standard) both; }
.trip-blurb { font-size: 17px; line-height: 26px; }
.trip-filters { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.trip-filters li {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: var(--radius-md); background: var(--bg-input);
}
.trip-ic {
  width: 32px; height: 32px; border-radius: var(--radius-md);
  background: var(--interactive-primary-tint); color: var(--text-accent);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.trip-ic .ic { width: 18px; height: 18px; }
.trip-dim { flex-grow: 1; font-weight: 500; }
.trip-filters .rating { color: var(--text-accent); font-weight: 600; }

/* Device frames */
.browser {
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border-default); background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
}
.browser picture { display: block; }
.browser img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.browser-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--border-subtle);
}
.browser-bar i { width: 10px; height: 10px; border-radius: var(--radius-full); background: var(--border-control); }
.browser-bar span {
  margin-left: 12px; padding: 4px 12px; border-radius: var(--radius-md);
  background: var(--bg-input); color: var(--text-tertiary); font-size: 13px; line-height: 18px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.phone {
  border-radius: 32px; padding: 7px;
  background: var(--bg-input); border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg);
}
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 552 / 1200; object-fit: cover; border-radius: 25px; }
.phone-lg { width: 300px; max-width: 100%; border-radius: 40px; padding: 10px; }
.phone-lg img { border-radius: 31px; }
.phone-float { position: absolute; right: 4px; bottom: 0; width: 200px; }
@media (min-width: 1320px) { .phone-float { right: -12px; } }
.tablet {
  border-radius: 24px; padding: 9px;
  background: var(--bg-input); border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg);
}
.tablet img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; }

/* ---------- Camp recon ---------- */
.recon-grid { display: flex; flex-wrap: wrap-reverse; gap: 56px; align-items: center; }
.recon-phone { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; }
.recon-copy { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.recon-copy .lead { max-width: 620px; }
.quality-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quality {
  padding: 18px; border-radius: var(--radius-lg);
  background: var(--bg-surface); border: 1px solid var(--border-default);
  display: flex; flex-direction: column; gap: 10px;
}
.quality-head { display: flex; gap: 12px; align-items: center; }
.q-ic {
  width: 40px; height: 40px; border-radius: var(--radius-full); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.q-ic .ic { width: 22px; height: 22px; }
.q-sage { background: rgba(128, 167, 121, 0.16); color: var(--text-brand); }
.q-accent { background: rgba(195, 85, 42, 0.14); color: var(--text-accent); }
.q-name { flex-grow: 1; font-size: 18px; line-height: 24px; font-weight: 700; min-width: 0; }
.q-val { color: var(--text-secondary); font-weight: 600; }
.q-val-brand { color: var(--text-brand); }
.q-val-accent { color: var(--text-accent); }
.meter { height: 6px; border-radius: var(--radius-full); background: var(--bg-input); overflow: hidden; }
.meter-fill { display: block; height: 100%; width: var(--fill); border-radius: var(--radius-full); transition: width 1.2s var(--ease-standard) 200ms; }
.meter-sage { background: var(--color-sage); }
.meter-orange { background: var(--color-burnt-orange); }
.js .reveal:not(.in) .meter-fill { width: 0; }
.scale { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; font-size: 13px; line-height: 18px; color: var(--text-tertiary); }
.scale li + li::before { content: "·"; padding: 0 6px; }
.chips-block { display: flex; flex-direction: column; gap: 10px; }
.chips-h { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list { display: contents; margin: 0; padding: 0; list-style: none; }
.dchip {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 8px 12px; border-radius: var(--radius-full);
  border: 1px solid var(--border-default); background: var(--bg-surface);
  color: var(--text-secondary); font-size: 13px; line-height: 18px; font-weight: 500;
  transition: border-color var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
}
.dchip:hover { border-color: var(--border-control); color: var(--text-primary); transform: translateY(-2px); }
.dchip .ic { width: 16px; height: 16px; color: var(--text-brand); }
@media (max-width: 520px) {
  .quality-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Bands (more than camps, AI) ---------- */
.band { background: var(--bg-input); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.band > .wrap { display: flex; flex-direction: column; gap: 40px; }
.split-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.split-head-main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split-head > .lead { flex: 1 1 380px; min-width: 0; }
.narrow .lead { max-width: 640px; }
.plan-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.plan-shot { flex: 3 1 640px; min-width: 0; }
.trip-sum {
  flex: 1 1 240px; min-width: 0; padding: 20px; border-radius: var(--radius-xl);
  background: var(--bg-surface); border: 1px solid var(--border-default);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.trip-sum-h { grid-column: 1 / -1; font-size: 13px; line-height: 18px; color: var(--text-tertiary); }
.stat { display: flex; flex-direction: column; font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.stat-n { font-size: 28px; line-height: 32px; font-weight: 900; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.stack-40 > .split-head-main { flex: none; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.tile {
  padding: 20px; border-radius: var(--radius-xl);
  background: var(--bg-surface); border: 1px solid var(--border-default);
  display: flex; flex-direction: column; gap: 12px;
}
.tile strong { font-size: 18px; line-height: 24px; font-weight: 700; }
.tile-body { color: var(--text-secondary); }
.pins { display: flex; gap: 8px; }
.pin {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  border: 2px solid var(--map-pin-ring); color: var(--text-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.pin .ic { width: 22px; height: 22px; }
.pin-campsite { background: var(--map-campsite); }
.pin-activity { background: var(--map-activity); }
.pin-water { background: var(--map-water); }
.pin-services { background: var(--map-services); }
.pin-forest { background: var(--color-forest); }
.pin-fuel { background: var(--map-fuel); color: var(--color-near-black); }
.pin-hazard { background: var(--map-hazard); color: var(--color-near-black); }

/* ---------- Planning ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.feature {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius-lg);
  background: var(--bg-surface); border: 1px solid var(--border-default);
}
.feature strong { display: block; font-weight: 600; }
.f-body { display: block; color: var(--text-secondary); font-size: 13px; line-height: 18px; }
.f-ic {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius-full);
  background: rgba(195, 85, 42, 0.14); color: var(--text-accent);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- One account (D2) ---------- */
.devices { padding-top: 32px; }
.devices-inner { display: flex; flex-direction: column; gap: 32px; }
.device-row { display: flex; gap: 24px; align-items: flex-end; justify-content: center; }
.device { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.device figcaption { display: inline-flex; gap: 8px; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.device figcaption .ic { width: 16px; height: 16px; color: var(--text-brand); }
.device-web { flex: 3 1 0; }
.device-ipad { flex: 1.15 1 0; }
.device-iphone { flex: 0.7 1 0; }
@media (max-width: 700px) {
  .device-row { flex-wrap: wrap; }
  .device-web { flex: 1 1 100%; }
  .device-ipad, .device-iphone { flex: 1 1 40%; }
}

/* ---------- AI ---------- */
.ai { position: relative; overflow: hidden; }
.ai .topo { opacity: 0.6; }
.ai-grid { position: relative; display: flex; flex-wrap: wrap; flex-direction: row !important; gap: 48px; align-items: center; }
.ai-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ai-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ai-points li { display: flex; gap: 10px; align-items: center; }
.ai-ic {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--radius-full);
  background: var(--color-forest); color: var(--text-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.ai-ic .ic { width: 16px; height: 16px; }
.chat {
  flex: 1 1 560px; min-width: 0; padding: 28px; border-radius: var(--radius-2xl);
  background: var(--bg-surface); border: 1px solid var(--border-default); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 14px;
}
.msg { padding: 14px 18px; font-size: 17px; line-height: 26px; }
.msg-me { align-self: flex-end; max-width: 460px; border-radius: 16px 16px 4px 16px; background: var(--bg-surface-hover); }
.msg-ai { align-self: flex-start; max-width: 500px; border-radius: 16px 16px 16px 4px; background: var(--bg-input); border: 1px solid var(--border-default); color: var(--text-secondary); }
.recon-inline .rating { color: var(--text-primary); font-weight: 600; }
.ai-status { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; }
.status-chip {
  display: inline-flex; gap: 6px; align-items: center;
  padding: 6px 10px; border-radius: var(--radius-full);
  background: var(--bg-input); border: 1px solid var(--border-default);
  color: var(--text-secondary); font-size: 13px; line-height: 18px;
  transition: opacity 400ms var(--ease-standard), transform 400ms var(--ease-standard);
}
.status-chip:nth-child(2) { transition-delay: 300ms; }
.status-chip:nth-child(3) { transition-delay: 600ms; }
.js .reveal:not(.in) .status-chip { opacity: 0; transform: scale(0.92); }
.status-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--color-burnt-orange); }
.js .status-dot { animation: pulse 2.4s ease-out infinite; }
.saved {
  align-self: flex-start; display: inline-flex; gap: 10px; align-items: center;
  padding: 10px 14px; border-radius: var(--radius-lg);
  background: var(--status-success-bg); color: var(--status-success-text); font-weight: 600;
}

/* ---------- Bring your own data ---------- */
.byod-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.byod-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.byod-grid > .browser { flex: 2 1 620px; min-width: 0; }
.files { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.file {
  padding: 10px 14px; border-radius: var(--radius-md);
  background: var(--bg-surface); border: 1px solid var(--border-default); font-weight: 700;
  transition: opacity 500ms var(--ease-standard), transform 500ms var(--ease-standard);
}
.file:nth-child(2) { transition-delay: 120ms; }
.file:nth-child(3) { transition-delay: 240ms; }
.file:nth-child(4) { transition-delay: 360ms; }
.file:nth-child(5) { transition-delay: 480ms; }
.js .reveal:not(.in) .file { opacity: 0; transform: translateY(-30px); }

/* ---------- Offline ---------- */
.offline { position: relative; overflow: hidden; background: var(--color-forest); }
.offline .topo { opacity: 0.8; }
.offline-grid { position: relative; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.offline-copy { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.offline-phone { flex: 1 1 280px; min-width: 0; display: flex; justify-content: center; }
.offline-phone .phone-lg { width: 270px; }
.eyebrow-light { color: var(--text-secondary); }
.offline-h { font-size: 56px; line-height: 58px; font-style: italic; }
.lead-light { color: var(--text-primary); max-width: 560px; }
.dl-card {
  max-width: 440px; padding: 16px; border-radius: var(--radius-lg);
  background: var(--bg-glass); display: flex; flex-direction: column; gap: 10px;
}
.dl-head { display: flex; gap: 10px; align-items: center; }
.dl-head strong { flex-grow: 1; font-weight: 600; }
.dl-head span, .dl-note { color: var(--text-secondary); }
.dl-note { font-size: 13px; line-height: 18px; }
.dl-bar { display: block; height: 100%; width: 100%; background: var(--color-burnt-orange); border-radius: var(--radius-full); transition: width 4s var(--ease-standard) 300ms; }
.js .reveal:not(.in) .dl-bar { width: 6%; }
@media (max-width: 760px) {
  .offline-h { font-size: 40px; line-height: 42px; }
}

/* ---------- Plans ---------- */
#plans h2 { font-family: var(--font-display); font-size: 44px; line-height: 48px; font-weight: 900; letter-spacing: -0.01em; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.plan {
  position: relative; padding: 28px; border-radius: var(--radius-2xl);
  background: var(--bg-surface); border: 1px solid var(--border-default);
  display: flex; flex-direction: column; gap: 16px;
}
.plan h3 { font-size: 22px; line-height: 28px; font-weight: 700; }
.plan-featured { border: 2px solid var(--color-burnt-orange); }
.plan-tag {
  position: absolute; top: -13px; left: 28px;
  padding: 4px 10px; border-radius: var(--radius-sm);
  background: var(--interactive-primary); color: var(--text-on-accent);
  font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price .disp { font-size: 40px; line-height: 44px; font-weight: 900; }
.plan-price span:last-child { color: var(--text-secondary); }
.plan-body { color: var(--text-secondary); }
.plan .btn { margin-top: auto; }
.founding {
  padding: 16px 20px; border-radius: var(--radius-lg);
  background: var(--interactive-primary-tint); border: 1px solid var(--color-burnt-orange);
  /* One centred line box, star inline before the text: as a flex row the wrapped
     paragraph took the full width and left the star stranded far left. */
  text-align: center; text-wrap: balance;
}
.founding > .ic { margin-right: 8px; vertical-align: -4px; }
.founding strong { font-weight: 600; }
.founding p { display: inline; }
.buying { display: flex; flex-direction: column; gap: 16px; }
.buying-h { text-align: center; font-size: 15px; line-height: 22px; font-weight: 600; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.steps li {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: var(--radius-lg);
  background: var(--bg-surface); border: 1px solid var(--border-default);
}
.step-n {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--radius-full);
  background: var(--interactive-primary); color: var(--text-on-accent); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.step-done { background: var(--color-forest); }
.step-done .ic { width: 16px; height: 16px; }
@media (max-width: 760px) {
  #plans h2 { font-size: 32px; line-height: 36px; }
}

/* ---------- Closing ---------- */
.closing-wrap { padding: 0 var(--site-pad) 112px; }
.closing {
  position: relative; max-width: var(--site-max); margin: 0 auto;
  border-radius: var(--radius-2xl); overflow: hidden; min-height: 440px;
  display: flex; align-items: flex-end;
}
.closing-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.closing-body {
  position: relative; width: 100%; padding: 48px;
  background: linear-gradient(0deg, rgba(33, 31, 33, 0.85) 40%, rgba(33, 31, 33, 0) 100%);
  display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between;
}
.closing-h { font-size: 56px; line-height: 58px; font-weight: 900; font-style: italic; letter-spacing: -0.01em; max-width: 640px; }
.closing-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) {
  .closing-wrap { padding: 0 16px 64px; }
  .closing { min-height: 360px; }
  .closing-body { padding: 24px; }
  .closing-h { font-size: 36px; line-height: 40px; }
  .closing-ctas, .closing-ctas .btn { width: 100%; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 760px) {
  .find-grid, .recon-grid, .byod-grid, .offline-grid, .ai-grid { gap: 32px; }
  .find-shots { padding-bottom: 0; }
  .phone-float { width: 120px; right: -4px; bottom: -24px; }
  .chat { padding: 16px; }
  .msg { font-size: 15px; line-height: 23px; }
  .pillar { padding: 20px; }
}

/* ---------- Motion (JS on only) ---------- */
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.10); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes topo { from { transform: translate(0, 0) scale(1.05); } to { transform: translate(-2%, -3%) scale(1.1); } }
@keyframes floatA { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(-4deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(195, 85, 42, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(195, 85, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(195, 85, 42, 0); }
}
.js .hero-zoom { animation: kb 24s ease-in-out infinite alternate; }
.js .trail { stroke-dasharray: 1; animation: draw 2.6s var(--ease-standard) 600ms both; }
.js .trail-halo { animation: appear 500ms var(--ease-standard) 3s both; }
.js .hero-card { animation: card-in 600ms var(--ease-standard) 3.2s both; }
.js .hero-copy > * { animation: rise 800ms var(--ease-standard) both; }
.js .hero-copy > :nth-child(2) { animation-delay: 120ms; }
.js .hero-copy > :nth-child(3) { animation-delay: 260ms; }
.js .hero-copy > :nth-child(n+4) { animation-delay: 400ms; }
.js .hero-cue { animation: cue 1.8s ease-in-out infinite; }
.js .topo-drift { animation: topo 30s ease-in-out infinite alternate; }
.js .phone-float { animation: floatA 7s ease-in-out infinite; }
.js .phone-float-b { animation: floatB 8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .lift:hover, .dchip:hover { transform: none; }
  .js .reveal:not(.in) .meter-fill { width: var(--fill); }
  .js .reveal:not(.in) .dl-bar { width: 100%; }
  .js .reveal:not(.in) .file, .js .reveal:not(.in) .status-chip { transform: none; }
}
