/* TrainAtlas - site.css (v2, full redesign)
   Mirrors the iOS app's design system exactly:
     Signal Cyan #06B6D4 (accent) / #0891B2 (deep) / #67E8F9 (glow)
     Surface #0F1419 / Card #181F27 / Hairline #232B35
     Ink #ECEAE3 / Muted #8B96A3
   Typography: ui-serif (New York on Apple) display, ui-monospace
   eyebrows, system sans body - Apple visitors see the app's exact
   typefaces with zero webfont payload.
   No framework. WCAG 2.1 AA. prefers-reduced-motion respected. */

/* ─── Tokens ─── */
:root {
  --accent:       #06B6D4;
  --accent-deep:  #0891B2;
  --accent-glow:  #67E8F9;
  --surface:      #0F1419;
  --surface-deep: #0A0E12;
  --card:         #181F27;
  --card-raised:  #1D2530;
  --hairline:     #232B35;
  --ink:          #ECEAE3;
  --muted:        #8B96A3;
  --muted-deep:   #5A6D80;

  --font-serif:  ui-serif, "New York", "Iowan Old Style", "Palatino", Georgia, serif;
  --font-sans:   -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --font-mono:   ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, monospace;

  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;

  --max-w:       1140px;
  --max-w-text:  720px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

::selection { background: rgba(6, 182, 212, .35); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #06262c;
  padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Type helpers ─── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.display {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.015em;
  color: var(--ink);
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: transparent;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(15, 20, 25, .82);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  border-bottom-color: var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.wordmark svg { width: 30px; height: 30px; flex: none; }
.header-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.header-nav a {
  font-size: .9375rem;
  color: var(--muted);
  transition: color .15s ease;
}
.header-nav a:hover { color: var(--ink); }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: #06262c;
  font-size: .9375rem;
  font-weight: 600;
  padding: .5rem 1.05rem;
  border-radius: 999px;
  transition: background .15s ease, transform .15s ease;
}
.header-cta:hover { background: var(--accent-glow); transform: translateY(-1px); }

@media (max-width: 720px) {
  .header-nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7.5rem 0 4rem;
  overflow: hidden;
}
.hero-atlas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .9;
}
.hero-atlas svg { width: 100%; height: 100%; }
/* Soft cyan glow pools behind the content */
.hero::before {
  content: "";
  position: absolute;
  width: 900px; height: 900px;
  top: -360px; right: -240px;
  background: radial-gradient(circle, rgba(6,182,212,.13) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,20,25,.4) 0%, transparent 28%, transparent 62%, var(--surface) 96%);
  pointer-events: none;
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-eyebrow { margin-bottom: 1.4rem; }
.hero-title {
  font-size: clamp(2.9rem, 8.5vw, 5.4rem);
  max-width: 13ch;
  margin-bottom: 1.6rem;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1.0625rem, 2.2vw, 1.3125rem);
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2.4rem;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--accent);
  color: #06262c;
  font-size: 1.0625rem;
  font-weight: 600;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 0 0 0 rgba(6,182,212,0);
}
.btn-primary:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(6,182,212,.35);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  transition: border-color .15s ease, background .15s ease;
}
.btn-secondary:hover { border-color: var(--muted-deep); background: rgba(255,255,255,.03); }
.hero-note {
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--muted-deep);
  letter-spacing: .04em;
}

/* ─── Stat ticker ─── */
.ticker {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-deep);
  padding: 1.4rem 0;
}
.ticker-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem 2rem;
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .65rem;
}
.ticker-item::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  box-shadow: 0 0 10px rgba(6,182,212,.8);
}

/* ─── Sections ─── */
.section { padding: 6.5rem 0; }
.section-head { max-width: var(--max-w-text); margin-bottom: 3.5rem; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-bottom: 1.1rem;
}
.section-lede {
  font-size: 1.1875rem;
  color: var(--muted);
}

/* ─── Feature bento ─── */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: rgba(6,182,212,.45); transform: translateY(-3px); }
.card-lg { grid-column: span 3; }
.card-sm { grid-column: span 2; }
@media (max-width: 900px) {
  .card-lg, .card-sm { grid-column: span 6; }
}
.card-visual {
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--surface-deep);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.card-visual svg { width: 100%; height: 100%; }
.card h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.card p { color: var(--muted); font-size: .98rem; }
.card .pro-tag {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: #06262c;
  background: var(--accent);
  padding: .22rem .55rem;
  border-radius: 999px;
}

/* ─── Privacy manifesto ─── */
.privacy-section {
  background: var(--surface-deep);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.privacy-section .section-head {
  margin: 0 auto 3rem;
  text-align: center;
}
.privacy-statement {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  max-width: 21ch;
  margin: 0 auto 3rem;
}
.privacy-statement em {
  font-style: italic;
  color: var(--accent);
}
.privacy-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.75rem;
  margin-bottom: 2.6rem;
}
.privacy-points li {
  font-family: var(--font-mono);
  font-size: .875rem;
  letter-spacing: .12em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.privacy-points li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}
.privacy-link {
  font-size: .9375rem;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.privacy-link:hover { color: var(--accent); border-color: var(--accent); }

/* ─── Pricing ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.1rem;
  max-width: 880px;
}
@media (max-width: 820px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
}
.price-card.featured {
  border-color: rgba(6,182,212,.55);
  background: linear-gradient(160deg, rgba(6,182,212,.08) 0%, var(--card) 45%);
  position: relative;
}
.price-card .plan-name {
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.price-card.featured .plan-name { color: var(--accent); }
.price-line {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .35rem;
}
.price-line span {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}
.price-alt {
  font-size: .9375rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.price-features { display: grid; gap: .72rem; }
.price-features li {
  display: flex;
  gap: .7rem;
  font-size: .98rem;
  color: var(--ink);
}
.price-features li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  margin-top: .55rem;
}
.price-features li.dim { color: var(--muted); }
.price-features li.dim::before { background: var(--muted-deep); }
.price-foot {
  margin-top: 1.8rem;
  font-size: .8125rem;
  color: var(--muted-deep);
}

/* ─── Final CTA ─── */
.cta-final {
  text-align: center;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  width: 700px; height: 700px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(6,182,212,.12) 0%, transparent 65%);
  pointer-events: none;
}
.cta-final .container { position: relative; }
.cta-final h2 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 1.2rem;
}
.cta-final p {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 2.4rem;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--surface-deep);
  padding: 3.5rem 0 2.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .6rem;
}
.footer-brand svg { width: 26px; height: 26px; }
.footer-tagline {
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  color: var(--muted-deep);
  margin-bottom: 1.4rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-links a {
  font-size: .9375rem;
  color: var(--muted);
  transition: color .15s ease;
}
.footer-links a:hover { color: var(--accent); }
.footer-meta {
  font-size: .8125rem;
  color: var(--muted-deep);
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem;
}

/* ─── Route-draw + reveal animations ─── */
.route-path {
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
}
.in-view .route-path {
  animation: route-draw 2.4s cubic-bezier(.45, 0, .2, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes route-draw { to { stroke-dashoffset: 0; } }

.station-dot { opacity: 0; }
.in-view .station-dot {
  animation: dot-in .5s ease forwards;
  animation-delay: var(--d, 0s);
}
@keyframes dot-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.pulse {
  transform-origin: center;
  transform-box: fill-box;
}
.in-view .pulse {
  animation: dot-pulse 3.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes dot-pulse {
  0%, 100% { opacity: .55; }
  50%       { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--d, 0s);
}
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-path { stroke-dashoffset: 0 !important; animation: none !important; }
  .station-dot { opacity: 1 !important; animation: none !important; }
  .in-view .pulse { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card, .btn-primary, .header-cta { transition: none !important; }
}

/* ─── Legal / support pages ─── */
.page {
  /* Keep horizontal padding - .page shares the .container class and
     this declaration wins the cascade, so dropping the 24px here
     would let text touch the viewport edge on phones. */
  padding: 9rem 24px 5rem;
  max-width: var(--max-w-text);
  margin: 0 auto;
}
.page-header { margin-bottom: 3rem; }
.page-header .eyebrow { margin-bottom: .9rem; }
.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: .8rem;
}
.page-header .updated {
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--muted-deep);
  letter-spacing: .06em;
}
.page article h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 2.6rem 0 .9rem;
}
.page article h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.8rem 0 .6rem;
}
.page article p { color: var(--muted); margin-bottom: 1rem; }
.page article p strong { color: var(--ink); }
.page article ul {
  margin: 0 0 1.2rem;
  display: grid;
  gap: .55rem;
}
.page article ul li {
  color: var(--muted);
  display: flex;
  gap: .7rem;
}
.page article ul li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  margin-top: .6rem;
}
.page article ul li strong { color: var(--ink); }
.page article a {
  color: var(--accent);
  border-bottom: 1px solid rgba(6,182,212,.35);
  transition: border-color .15s ease;
}
.page article a:hover { border-color: var(--accent); }
.page .callout {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0;
}
.page .callout p { margin: 0; }

/* Support page extras */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin: 2rem 0 3rem;
}
@media (max-width: 640px) { .support-grid { grid-template-columns: 1fr; } }
.support-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.support-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: .5rem;
}
.support-card p { color: var(--muted); font-size: .95rem; margin-bottom: .8rem; }
.support-card a { color: var(--accent); }
details {
  border-bottom: 1px solid var(--hairline);
  padding: 1.1rem 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.2rem;
  flex: none;
  transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-top: .8rem; }

/* 404 */
.error-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.error-code {
  font-family: var(--font-mono);
  font-size: .875rem;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.error-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin-bottom: 1rem;
}
.error-page p { color: var(--muted); margin-bottom: 2rem; }

/* ─── v2.1: Flighty-style layout additions ─── */

/* Real app icon in nav/footer */
.app-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}
.footer-brand .app-icon { width: 28px; height: 28px; border-radius: 7px; }

/* Hero app icon - Flighty-style centerpiece above the headline */
.hero-appicon {
  width: 92px; height: 92px;
  border-radius: 22px;
  object-fit: cover;
  margin: 0 auto 1.6rem;
  box-shadow: 0 14px 48px rgba(6,182,212,.35), 0 2px 8px rgba(0,0,0,.5);
  border: 1px solid rgba(103,232,249,.25);
}

/* Centered hero variant */
.hero.centered { text-align: center; }
.hero.centered .hero-title,
.hero.centered .hero-sub { margin-left: auto; margin-right: auto; }
.hero.centered .hero-ctas { justify-content: center; }

/* Map background uses the real-rails SVG via <img> */
.hero-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-map img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Readability scrim over the map. Kept deliberately light - the
   route reveal IS the hero, so the map should read clearly behind
   the title (text legibility comes from the serif weight + a
   tight radial pool under the copy, not a heavy blanket). */
.hero-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 52% 42% at 50% 44%, rgba(10,14,18,.62) 0%, rgba(10,14,18,.28) 60%, rgba(10,14,18,0) 100%),
    linear-gradient(to bottom, rgba(10,14,18,.45) 0%, transparent 22%, transparent 72%, var(--surface) 98%);
}

/* The decorative cyan glow blob fights the real map - off in the
   centered (map) hero variant. */
.hero.centered::before { content: none; }

/* Text pops over route lines via shadow, not by darkening the map -
   keeps the reveal animation fully visible. */
.hero.centered .hero-title,
.hero.centered .hero-sub,
.hero.centered .hero-eyebrow,
.hero.centered .hero-note {
  text-shadow: 0 1px 10px rgba(10,14,18,.95), 0 0 36px rgba(10,14,18,.8);
}

/* ─── Device frame + media slots ─── */
.device {
  position: relative;
  width: min(320px, 78vw);
  border-radius: 44px;
  padding: 10px;
  background: #0B0F14;
  border: 1px solid #2A3340;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.6),
    0 24px 80px rgba(0,0,0,.55),
    0 6px 24px rgba(6,182,212,.08);
  margin: 0 auto;
}
.device::before {
  /* Dynamic Island */
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 24px;
  border-radius: 14px;
  background: #000;
  z-index: 3;
}
.device-screen {
  border-radius: 35px;
  overflow: hidden;
  background: var(--surface-deep);
  position: relative;
}

/* Media slot: shows a labeled dashed placeholder while empty.
   To fill: drop an <img> or <video autoplay muted loop playsinline>
   inside the .media-slot div - the placeholder chrome disappears
   automatically the moment the slot has content. */
.media-slot {
  aspect-ratio: 1320 / 2868;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.media-slot:empty {
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(6,182,212,.045) 14px 28px),
    var(--surface-deep);
  outline: 2px dashed rgba(6,182,212,.4);
  outline-offset: -10px;
}
.media-slot:empty::after {
  /* Centered via the slot's flexbox - no absolute positioning, so the
     label always sits mid-screen regardless of slot aspect ratio. */
  content: attr(data-label);
  padding: 0 22px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.8;
  letter-spacing: .1em;
  color: var(--accent);
  opacity: .85;
  white-space: pre-line;
}
.media-slot img,
.media-slot video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Wide (landscape) media slot for non-device media, e.g. a banner video */
.media-slot.wide { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }

/* ─── Alternating feature rows (Flighty-style) ─── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding: 4.5rem 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--hairline); }
.feature-row.flip .feature-copy { order: 2; }
.feature-row.flip .feature-media { order: 1; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 0; }
  .feature-row.flip .feature-copy { order: 1; }
  .feature-row.flip .feature-media { order: 2; }
}
.feature-copy .eyebrow { margin-bottom: .9rem; display: block; }
.feature-copy h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.12;
  margin-bottom: 1rem;
}
.feature-copy p {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 32rem;
}
.feature-copy .pro-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: #06262c;
  background: var(--accent);
  padding: .25rem .6rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* Hero device sits below the CTAs, overlapping the fold */
.hero-device {
  margin-top: 3.5rem;
  position: relative;
  z-index: 2;
}

/* --- v2.2: scroll-pinned feature showcase --- */
/* One sticky device, copy panels scroll past it; the screen content
   crossfades to match the active panel. Replaces the stacked
   feature rows. */

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 380px);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

/* Sticky device column. DOM-first so it can pin above the steps in
   the single-column mobile layout; order pushes it right on desktop. */
.showcase-sticky {
  order: 2;
  position: sticky;
  /* Centered when there's room, never higher than 84px (header
     clearance) - keeps the full device + dots on screen down to
     ~760px-tall laptops. */
  top: max(84px, calc(50vh - 360px));
  padding: 1rem 0;
}
.showcase-sticky .device { margin: 0 auto; width: min(300px, 74vw); }

/* Stacked slides inside one device screen */
.showcase-screen {
  aspect-ratio: 1320 / 2868;
  position: relative;
}
.showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.showcase-slide.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
/* Slides reuse .media-slot placeholder chrome; make the slot fill
   the slide instead of bringing its own aspect ratio. */
.showcase-slide .media-slot { aspect-ratio: auto; height: 100%; }

/* Step progress dots under the device */
.showcase-dots {
  display: flex;
  justify-content: center;
  gap: .55rem;
  margin-top: 1.3rem;
}
.showcase-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--hairline);
  transition: background .3s ease, transform .3s ease;
}
.showcase-dots span.active {
  background: var(--accent);
  transform: scale(1.25);
}

/* Copy column: tall panels, dimmed until active */
.showcase-copy { order: 1; }
.showcase-step {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: .22;
  transition: opacity .45s ease;
}
.showcase-step.active { opacity: 1; }
.showcase-step .eyebrow { margin-bottom: .9rem; display: block; }
.showcase-step h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.12;
  margin-bottom: 1rem;
}
.showcase-step p {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 30rem;
}
.showcase-step .pro-pill {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: #06262c;
  background: var(--accent);
  padding: .25rem .6rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* Mobile: device pins at the top, smaller; copy scrolls beneath it */
@media (max-width: 860px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 0; }
  .showcase-sticky {
    order: 0;
    top: 60px;
    z-index: 5;
    padding: .5rem 0 .8rem;
    background: linear-gradient(to bottom, var(--surface) 82%, transparent);
  }
  .showcase-sticky .device { width: min(190px, 48vw); border-radius: 30px; padding: 7px; }
  .showcase-sticky .device::before { width: 54px; height: 15px; top: 14px; }
  .showcase-sticky .device .device-screen { border-radius: 24px; }
  .showcase-slide .media-slot:empty::after { font-size: .55rem; line-height: 1.6; }
  /* Copy renders in the bottom band of each scroll page, below the
     pinned device - never behind it. One step per screenful. */
  .showcase-step {
    min-height: 92svh;
    justify-content: flex-end;
    padding-bottom: 9svh;
  }
  .showcase-step h3 { font-size: 1.45rem; }
  .showcase-step p { font-size: .96rem; }
  .showcase-dots { margin-top: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-slide, .showcase-step, .showcase-dots span { transition: none !important; }
}

/* --- v2.3: real media inside showcase slides --- */
/* Screenshots/videos fill the device screen edge-to-edge. The slide
   wrapper already has the right aspect ratio from .showcase-slide
   above; object-fit: cover ensures the captured iPhone screen content
   reaches all four edges of the bezel-free area without letterboxing. */
.slide-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
