/* U-tour landing page — sleek athletic.
   The register of Strava and AllTrails: a warm off-white ground, white
   cards with soft depth, one dark full-bleed band, big tight-tracked
   grotesk headlines, and restrained accents. The two accent voices are
   still the app's own (UI/Theme.swift): beacon amber for the thing you
   press, signal teal for live state and eyebrows. The one decorative
   motif is the radar ring, kept faint. */

:root {
  --bg: #f7f4ef;
  --card: #ffffff;
  --line: #e9e4db;
  --ink: #14181f;
  --muted: #5d6470;
  --faint: #9aa0ab;

  --amber: #ff7a2e;          /* Theme.beacon */
  --amber-deep: #e75f12;
  --amber-tint: #fff1e7;
  --teal: #0da88e;           /* Theme.signal, deepened for light ground */
  --teal-tint: #e4f5f1;
  --dark: #0b0f17;           /* the app's night-chart ink */

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --radius: 20px;
  --shadow: 0 1px 2px rgba(20, 24, 31, 0.05), 0 14px 40px rgba(20, 24, 31, 0.08);
  --shadow-lift: 0 2px 4px rgba(20, 24, 31, 0.06), 0 22px 56px rgba(20, 24, 31, 0.13);
  --max-width: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber); color: #fff; }

h1, h2, h3 { text-wrap: balance; }

/* ---------- Shared bits ---------- */

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Nav ---------- */

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 239, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: var(--amber);
  border-radius: 999px;
  padding: 14px 28px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  box-shadow: 0 6px 20px rgba(255, 122, 46, 0.32);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(255, 122, 46, 0.4); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: 0 3px 10px rgba(255, 122, 46, 0.25); }
.btn.small { font-size: 13.5px; padding: 10px 20px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 13px 26px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Sections ---------- */

section { padding: 96px 0 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 12px 0 14px;
}
.section-head p { color: var(--muted); font-size: 17px; }

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

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 84px 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: -0.032em;
  line-height: 1.02;
  margin: 16px 0 20px;
}
.hero h1 em { font-style: normal; color: var(--amber-deep); }
.hero .sub {
  color: var(--muted);
  font-size: 18.5px;
  max-width: 460px;
  margin-bottom: 30px;
}
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-points { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.hero-points svg { flex-shrink: 0; }

/* Phone + faint rings */

.hero-stage { position: relative; display: flex; justify-content: center; }
.rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.phone {
  position: relative;
  width: min(310px, 78vw);
  border-radius: 44px;
  border: 10px solid #10141c;
  background: #10141c;
  box-shadow: 0 30px 80px rgba(20, 24, 31, 0.35);
  overflow: hidden;
}
.phone img, .phone video { display: block; width: 100%; height: auto; }

/* ---------- Stats strip ---------- */

.strip { margin-top: 88px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.strip-inner span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.strip-inner b { color: var(--amber-deep); font-weight: 600; }
.strip-inner .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); padding: 0; }

/* ---------- How it works ---------- */

.band-white { background: var(--card); border-bottom: 1px solid var(--line); padding-bottom: 96px; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 44px;
}
.how-card .glyph {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--amber-tint);
  margin-bottom: 18px;
}
.how-card:nth-child(2) .glyph { background: var(--teal-tint); }
.how-card:nth-child(3) .glyph { background: #efeafc; }
.how-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 9px; }
.how-card p { color: var(--muted); font-size: 15.5px; }

/* ---------- Tour cards ---------- */

.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.tour-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tour-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.tour-card .shot {
  position: relative;
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  background: #10141c;
}
.tour-card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Portrait landmark shots keep their subject in the crop. */
.tour-card .shot img.tall { object-position: center 28%; }

/* The app's own view rides along as a picture-in-picture thumb — the
   AllTrails map-thumbnail pattern, pointed at the narration console. */
.tour-card .shot .pip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 86px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(20, 24, 31, 0.4);
  overflow: hidden;
  background: #10141c;
}
.tour-card .shot .pip img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  /* The bottom of the capture is where the narration card lives. */
  object-position: center bottom;
}
.tour-card.featured .shot .pip { width: 104px; }
.tour-card.featured .shot .pip img { height: 146px; }
.tour-card .shot .loc {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(11, 15, 23, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 7px 12px;
}
.tour-card .shot .loc svg { flex-shrink: 0; }

.tour-body { padding: 20px 22px 20px; display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.tour-body h3 { font-size: 19.5px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
.tour-body .expect { color: var(--muted); font-size: 14.5px; }
.tour-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 6px;
}
.tour-stats .stat { display: inline-flex; align-items: center; gap: 6px; }
.tour-stats svg { flex-shrink: 0; }
.tour-stats .preset {
  margin-left: auto;
  color: var(--amber-deep);
  background: var(--amber-tint);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
}

.tour-card.featured { grid-column: span 2; flex-direction: row; }
.tour-card.featured .shot { aspect-ratio: auto; flex: 0 0 46%; }
.tour-card.featured .tour-body { flex: 1; justify-content: center; }
.tour-card.featured h3 { font-size: 24px; }

.tour-card.anywhere {
  background: transparent;
  border: 1.5px dashed #d8d2c7;
  box-shadow: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 26px;
  gap: 12px;
}
.tour-card.anywhere:hover { transform: none; box-shadow: none; border-color: var(--teal); }
.tour-card.anywhere svg { width: 96px; height: 96px; }
.tour-card.anywhere h3 { font-size: 19.5px; font-weight: 800; letter-spacing: -0.015em; }
.tour-card.anywhere .expect { color: var(--muted); font-size: 14.5px; }

/* ---------- Video band (dark) ---------- */

.band-dark {
  margin-top: 96px;
  background: var(--dark);
  color: #f4f6f9;
}
.band-dark-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.band-dark .eyebrow { color: #2fd4b8; }
.band-dark h2 {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 12px 0 14px;
}
.band-dark p { color: rgba(244, 246, 249, 0.66); font-size: 17px; max-width: 460px; margin-bottom: 20px; }
.band-dark .note {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 246, 249, 0.45);
}
.band-dark .phone { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(13, 168, 142, 0.12); border-color: #1c222e; background: #1c222e; }

/* ---------- CTA ---------- */

.get { text-align: center; padding-bottom: 110px; }
.get .eyebrow { color: var(--teal); }
.get h2 {
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 14px 0 16px;
}
.get p { color: var(--muted); max-width: 440px; margin: 0 auto 30px; font-size: 17px; }
.get .fine-line { display: block; margin-top: 16px; font-size: 13px; color: var(--faint); }

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

footer { background: var(--card); border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
footer .tagline { color: var(--muted); font-size: 14.5px; }
footer .fine {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--faint);
}
.credits {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 30px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--faint);
}
.credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.credits a:hover { color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-stage { margin-top: 28px; }
  .rings { width: 480px; height: 480px; }
  .tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-card.featured { grid-column: span 2; flex-direction: column; }
  .tour-card.featured .shot { aspect-ratio: 4 / 3.2; flex: 1 1 auto; }
  .band-dark-inner { grid-template-columns: 1fr; padding: 72px 24px; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .tour-grid { grid-template-columns: 1fr; }
  .tour-card.featured { grid-column: span 1; }
  section { padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn-ghost, .tour-card { transition: none; }
}
