/*
 * Good Hang Web - "Last Call" design system
 * Tokens mirrored from the app theme (src/theme/index.ts). Dark-first by brand.
 * See docs/design-system.md. Do not invent a new system.
 */

:root {
  /* Surfaces */
  --bg: #0c0d18;
  --surface: #12131e;
  --surface-elevated: #1a1c2e;
  --surface-press: #1d2032;
  --border: #252840;
  --border-strong: #333860;

  /* Accents */
  --violet: #818cf8;
  --violet-light: #a5aefa;
  --coral: #c8533a;
  --teal: #3cbfb8;
  --error: #d75c57;

  /* Text */
  --text-primary: #eeeeff;
  --text-secondary: #8288b0;
  --text-muted: #6870a8;

  /* Type families */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* Spacing (matches app spacing scale) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-xxxl: 64px;

  /* Layout widths */
  --width-narrow: 520px;
  --width-reading: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Subtle grain overlay (~3% opacity), inline so no external asset is needed. */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/></svg>");
}

/* Typography niceties: prevent orphaned/widowed words site-wide.
   `balance` evens out heading lines; `pretty` keeps a paragraph's last line
   from being a single stranded word. Ignored gracefully where unsupported. */
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

/* Links */

a {
  color: var(--violet);
  text-decoration: none;
  transition: color 120ms ease, opacity 120ms ease;
}

a:hover {
  color: var(--violet-light);
}

a:focus-visible {
  outline: 2px solid var(--violet-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Typography helpers */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 var(--space-xs);
}

.meta {
  font-family: var(--font-mono);
  font-size: 12px;
  /* text-secondary (not text-muted) to clear WCAG AA 4.5:1 on the dark bg. */
  color: var(--text-secondary);
  margin: 0 0 var(--space-xs);
}

/* Coming Soon (centered narrow column) */

.center-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
}

.center-screen .column {
  width: 100%;
  max-width: var(--width-narrow);
}

.wordmark {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0;
}

.headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 12vw, 56px);
  line-height: 1.02;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin: var(--space-md) 0 0;
}

.lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: var(--space-lg) 0 0;
  max-width: 46ch;
}

.link-row {
  margin-top: var(--space-xl);
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.link-row a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Reading pages (privacy / terms) */

.reading {
  max-width: var(--width-reading);
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg) var(--space-xxxl);
}

.reading .page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 7vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin: 0 0 var(--space-xs);
}

.reading h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text-primary);
  margin: var(--space-xl) 0 var(--space-sm);
}

.reading h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--violet);
  margin: var(--space-lg) 0 var(--space-xs);
}

.reading p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 var(--space-md);
}

.reading .divider {
  height: 1px;
  border: 0;
  background-color: var(--border);
  margin: var(--space-lg) 0;
}

.reading .back-link {
  display: inline-block;
  margin-bottom: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Auth callback */

.callback-card {
  text-align: center;
}

.callback-card .lede {
  margin-left: auto;
  margin-right: auto;
}

.button {
  display: inline-block;
  margin-top: var(--space-xl);
  padding: 14px 28px;
  border-radius: 999px;
  background-color: var(--violet);
  /* Dark ink on the light violet fill: ~6.4:1, clears WCAG AA.
     White-on-violet would be ~3:1 and fail. */
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.button:hover {
  background-color: var(--violet-light);
  color: var(--bg);
}

.button:focus-visible {
  outline: 2px solid var(--violet-light);
  outline-offset: 3px;
}

/* Motion: gentle fade-up, disabled for reduced-motion */

.fade-up {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fade-up.d1 { animation-delay: 90ms; }
.fade-up.d2 { animation-delay: 180ms; }
.fade-up.d3 { animation-delay: 270ms; }

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .fade-up.d1,
  .fade-up.d2,
  .fade-up.d3 {
    animation: none;
    opacity: 1;
    transform: none;
  }
  a {
    transition: none;
  }
}

/* ==================================================================
   Marketing landing page (GH-0179)
   Long-scroll homepage built on the same tokens. The coming-soon /
   callback classes above are still used by /auth/callback.
   ================================================================== */

.landing {
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(56px, 9vw, 120px);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin: 0 0 var(--space-md);
}

.section-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
}
.skip-link:focus {
  left: var(--gutter);
  top: var(--space-sm);
  background: var(--surface-elevated);
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: 8px;
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 13, 24, 0.72);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: var(--space-md);
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}
.brand-wordmark:hover {
  color: var(--text-primary);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header-nav .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-secondary);
}
.header-nav .nav-link:hover {
  color: var(--text-primary);
}

.button-sm {
  /* Reset the base button's top margin (meant for buttons stacked under text)
     so it centers in the flex header. */
  margin-top: 0;
  padding: 9px 18px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .header-nav .nav-link {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 8vw, 88px);
}

.hero::before {
  /* Soft violet glow backdrop */
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(
    circle,
    rgba(129, 140, 248, 0.22) 0%,
    rgba(129, 140, 248, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 8vw, 68px);
  line-height: 1.02;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin: var(--space-md) 0 0;
}

.hero-sub {
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 42ch;
  margin: var(--space-lg) 0 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-sub {
    margin-inline: auto;
  }
  .badge-row {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
}

/* Official App Store / Google Play badges (used as-is per brand guidelines).
   Google's badge ships with built-in padding, so it is scaled a little taller
   to visually balance against Apple's tighter lockup. */
.app-badge {
  display: inline-flex;
  border-radius: 10px;
}
.app-badge img {
  display: block;
  height: 40px;
  width: auto;
}
.app-badge--gplay img {
  height: 58px;
}
.app-badge:focus-visible {
  outline: 2px solid var(--violet-light);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Coming-soon mode: the COMING_SOON flag (config.js) adds .is-coming-soon to
   <html>. Store badges and the header CTA are disabled in landing.js; these
   rules dim them and reveal the "Coming soon" captions. */
.coming-soon-note {
  display: none;
  width: 100%;
  margin: var(--space-sm) 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}
.is-coming-soon .coming-soon-note {
  display: block;
}
.is-coming-soon .app-badge {
  opacity: 0.4;
  filter: grayscale(0.35);
  pointer-events: none;
  cursor: default;
}
.is-coming-soon .button-sm[aria-disabled="true"] {
  background-color: var(--surface-elevated);
  color: var(--text-secondary);
  pointer-events: none;
  cursor: default;
}

/* Phone mockup + stylized app screen */
.phone {
  position: relative;
  width: min(280px, 78vw);
  aspect-ratio: 9 / 19;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: 34px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(129, 140, 248, 0.08);
}
.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 20px;
  background: var(--bg);
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.app-screen {
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(180deg, #14162a 0%, var(--bg) 60%);
  overflow: hidden;
  padding: 30px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.venue-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.venue-card .venue-photo {
  height: 76px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3a2f5e, #123f3d 70%);
}
.venue-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.venue-card .venue-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}
.venue-dist {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.venue-cat {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-press);
  color: var(--text-secondary);
  white-space: nowrap;
}
.match-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.match-tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  color: var(--text-secondary);
}
.match-flames {
  display: inline-flex;
  gap: 2px;
}
.flame {
  width: 13px;
  height: 13px;
  fill: #e8964a;
  filter: drop-shadow(0 0 3px rgba(232, 150, 74, 0.55));
}
.flame--dim {
  fill: var(--border-strong);
  filter: none;
}
.venue-address {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--text-muted);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.chip {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.12);
  color: var(--violet-light);
}

/* Discovery-feed chrome (mirrors the app's Explore screen) */
.app-discovery {
  padding: 26px 11px 0;
  background: var(--bg);
  gap: 7px;
}
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}
.app-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
}
.app-ico {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--text-secondary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.app-ico--sm {
  width: 11px;
  height: 11px;
  stroke: var(--violet);
}
.app-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-secondary);
}
.app-tabs {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
.app-tab {
  position: relative;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
}
.app-tab.is-active {
  color: var(--violet);
}
.app-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--violet);
  border-radius: 2px;
}
.app-filters {
  display: flex;
  gap: 6px;
}
.app-pill {
  font-family: var(--font-body);
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.app-feed {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-tabbar {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 6px 2px 8px;
  margin-top: auto;
}
.app-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  font-family: var(--font-body);
  font-size: 7px;
  color: var(--text-muted);
}
.app-nav svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-nav.is-active {
  color: var(--violet);
}
.nav-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(4px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

/* Venue-detail screen (mirrors the app's venue page) */
.app-detail {
  padding: 26px 11px 0;
  background: var(--bg);
  gap: 6px;
}
.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.detail-actions-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.detail-chip {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}
.detail-photo {
  height: 90px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3a2f5e, #123f3d 70%);
}
.detail-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}
.detail-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-secondary);
}
.detail-disclaimer {
  margin: 0;
  font-family: var(--font-body);
  font-size: 8.5px;
  line-height: 1.35;
  color: var(--text-muted);
}
.wordcloud {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 10px;
}
.wc {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--violet);
  line-height: 1;
}
.wc-sm {
  font-size: 10px;
  color: var(--violet-light);
  opacity: 0.8;
}
.wc-md {
  font-size: 13px;
}
.wc-lg {
  font-size: 20px;
}
.detail-actions {
  display: flex;
  gap: 6px;
}
.detail-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 6px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-primary);
}
.detail-btn svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Trip screen (mirrors the app's routed-night trip page) */
.app-trip {
  padding: 26px 11px 0;
  background: var(--bg);
  gap: 6px;
}
.trip-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.trip-actions {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.trip-trash {
  stroke: var(--error);
  stroke-width: 2;
  width: 15px;
  height: 15px;
}
.trip-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}
.trip-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.trip-date {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--violet);
}
.trip-time {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 7px;
}
.trip-time-ico {
  width: 9px;
  height: 9px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trip-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.trip-timeline {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 5px;
  padding-left: 18px;
  overflow: hidden;
}
.trip-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--border-strong);
}
.trip-stop {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.trip-stop::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  /* Visited stops read muted; the last stop (current location) is bright. */
  background: var(--text-muted);
  border: 2px solid var(--bg);
}
.trip-stop:last-child::before {
  background: var(--violet);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
}
.trip-stop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}
.trip-stop-tags {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding-top: 1px;
}
.trip-handle {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  stroke-linecap: round;
}
.trip-stop-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
}
.trip-stop-addr {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--text-muted);
}
.trip-stop-leave {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--violet);
}
.trip-stop-walk {
  font-family: var(--font-body);
  font-size: 8.5px;
  color: var(--text-secondary);
}
.trip-stop-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 500;
  color: var(--violet);
}
.trip-stop-change svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-lg);
}
.step .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--violet);
  margin: 0 0 var(--space-sm);
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  margin: 0 0 var(--space-xs);
}
.step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.feature {
  background: linear-gradient(180deg, var(--surface-elevated), var(--surface));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.feature .feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(129, 140, 248, 0.12);
  margin-bottom: var(--space-xs);
}
.feature .feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--violet);
  fill: none;
  stroke-width: 1.8;
}
.feature.teal .feature-icon {
  background: rgba(60, 191, 184, 0.12);
}
.feature.teal .feature-icon svg {
  stroke: var(--teal);
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  margin: 0;
}
.feature p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 760px) {
  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Screenshots band */
.shots {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.shots-row {
  display: flex;
  gap: clamp(16px, 4vw, 40px);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}
.shots-row .phone {
  width: min(220px, 66vw);
}
/* Raise the middle phone. Set as the reveal "resting" offset so it still
   fades/slides up into this position instead of the transform being overridden. */
.shots-row .phone:nth-child(2) {
  --reveal-rest: -18px;
}
@media (max-width: 760px) {
  .shots-row .phone:nth-child(2) {
    --reveal-rest: 0px;
  }
}

/* Final CTA */
.cta {
  text-align: center;
}
.cta .wrap {
  position: relative;
  background: linear-gradient(180deg, var(--surface-elevated), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: clamp(36px, 6vw, 64px) var(--gutter);
  overflow: hidden;
}
.cta .section-title {
  margin-inline: auto;
  max-width: 16ch;
}
.cta .section-lede {
  margin-inline: auto;
}
.cta .badge-row {
  justify-content: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--section-y) var(--space-xl);
}
.site-footer .wrap {
  display: grid;
  gap: var(--space-lg);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.footer-tagline {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 32ch;
  margin: var(--space-sm) 0 0;
}
.footer-nav {
  display: flex;
  gap: clamp(24px, 6vw, 64px);
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-col .footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-col a:hover {
  color: var(--text-primary);
}
.footer-soon {
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-soon em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--violet);
  margin-left: 6px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-bottom p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  /* Animate up to the element's resting position. --reveal-rest lets an element
     (e.g. a staggered phone) settle somewhere other than 0 without the offset
     fighting the reveal transform. */
  transform: translateY(calc(var(--reveal-rest, 0px) + 20px));
  transition: opacity 400ms ease-out, transform 400ms ease-out;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(var(--reveal-rest, 0px));
}

/* Gentle float on the hero phone */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-visual .phone {
  animation: float 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    /* Keep the resting offset (e.g. the phone stagger) but skip the motion. */
    transform: translateY(var(--reveal-rest, 0px));
    transition: none;
  }
  .hero-visual .phone {
    animation: none;
  }
  .site-header {
    backdrop-filter: none;
  }
}
