/* ============================================================
   WhereYouRan — implementation of "WhereYouRan Landing.dc.html"
   Off-white editorial, Bodoni Moda display, black hairline rules,
   dark film sections. Values match the design file.
   ============================================================ */

:root {
  --paper: #fcfcfb;
  --ink: #0a0a0a;
  --body: #4a4a48;
  --gray: #6b6b6b;
  --faded: #9a9995;
  --hairline: #e3e2df;
  --dark: #0b0b0a;
  --dark-ink: #f4f3f0;
  --dark-muted: #8b8a86;
  --dark-line: #2a2927;
  --serif: 'Bodoni Moda', 'Didot', 'Playfair Display', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ---------------------------------------------------------- shared */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 64px;
  padding-right: 64px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gray);
}
.eyebrow.dark { color: var(--dark-muted); }
.eyebrow-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.display-xl {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin-top: 28px;
  max-width: 22ch;
}
.how .display-xl { font-size: clamp(48px, 6.4vw, 96px); line-height: 1.02; max-width: 20ch; }
.display-lg {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.05;
}
.display-md {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
}
.display-hero {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 128px);
  line-height: 1;
  margin: 32px auto 0;
  max-width: 14ch;
}

.chrome {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.chrome.light { color: var(--gray); }
.chrome.light { color: var(--faded); }

/* ---------------------------------------------------------- hero */

.hero-v2 { background: var(--paper); }

/* --- top navigation --- */
.topnav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-start;
  padding: 30px 44px 18px;
  font-size: 14px;
  color: var(--ink);
  opacity: 0;
  animation: hero-focus-still 0.9s ease-out 0.05s forwards;
}
.nav-left {
  display: flex;
  align-items: flex-start;
  gap: clamp(40px, 14vw, 210px);
}
.nav-tag { line-height: 1.45; }
.nav-item {
  color: var(--ink);
  text-decoration: none;
  line-height: 1.45;
}
.nav-item:hover { text-decoration: underline; text-underline-offset: 4px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--ink);
  text-decoration: none;
}
.monogram-mark { width: 58px; height: 58px; display: block; }
.logo-rule { width: 1.5px; height: 62px; background: var(--ink); }
.logo-stack {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
}

.nav-right {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: clamp(28px, 5vw, 72px);
}
.nav-meta { line-height: 1.45; text-align: left; }
.nav-pill {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav-pill:hover { background: var(--dark-line); }

/* --- stage: clean runner plate + real text layers --- */
.hero-stage {
  position: relative;
  isolation: isolate; /* keep blend-mode contained to the hero */
}
.hero-runner {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* White text + difference blend = dark on paper, knocked-out white
   where it crosses the runner — same effect as the design comp. */
.hero-blend {
  position: absolute;
  inset: 0;
  mix-blend-mode: difference;
  color: #fff;
  text-align: center;
  pointer-events: none;
  padding-top: 20%;
}
.hero-blend h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(48px, 10.4vw, 164px);
  line-height: 0.99;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

/* --- entrance: masked line reveal + type settling into place --- */
.hero-blend h1 .line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0.1em; /* room for serifs/descenders inside the mask */
  margin: -0.04em -0.1em;
}
.hero-blend h1 .line-inner {
  display: block;
  transform: translateY(112%);
  animation:
    hero-rise 1.35s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    hero-settle 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-blend h1 .line:nth-child(1) .line-inner { animation-delay: 0.12s; }
.hero-blend h1 .line:nth-child(2) .line-inner { animation-delay: 0.26s; }

@keyframes hero-rise {
  from { transform: translateY(112%); }
  to { transform: translateY(0); }
}
@keyframes hero-settle {
  from { letter-spacing: 0.05em; }
  to { letter-spacing: 0.005em; }
}
@keyframes hero-focus {
  from { opacity: 0; transform: translateY(12px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes hero-focus-still { /* no transform: safe for positioned elements */
  from { opacity: 0; filter: blur(6px); }
  to { opacity: 1; filter: blur(0); }
}

.hero-sub {
  margin-top: clamp(14px, 2.2vw, 34px);
  font-size: clamp(14px, 1.3vw, 19px);
  line-height: 1.55;
  opacity: 0;
  animation: hero-focus 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

.hero-cta {
  position: absolute;
  left: 50%;
  top: 77%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(10, 10, 10, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  opacity: 0;
  animation: hero-focus-still 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}
.hero-cta:hover {
  transform: translate(-50%, -50%) scale(1.03);
  box-shadow: 0 12px 34px rgba(10, 10, 10, 0.22);
}
.hero-cta span { font-size: 17px; }

.hero-note {
  position: absolute;
  right: 4.5%;
  bottom: 7%;
  width: min(340px, 28%);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  opacity: 0;
  animation: hero-focus 1.1s cubic-bezier(0.16, 1, 0.3, 1) 1.45s forwards;
}

/* Entrance animations are once-on-load and fully disabled here */
@media (prefers-reduced-motion: reduce) {
  .topnav,
  .hero-sub,
  .hero-cta,
  .hero-note,
  .hero-blend h1 .line-inner {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .hero-cta { transform: translate(-50%, -50%); }
}

/* --- hero responsive --- */
@media (max-width: 1100px) {
  .nav-tag, .nav-meta { display: none; }
  .hero-note { display: none; }
  /* text heights stop scaling with vw here, so give the stack more room */
  .hero-blend { padding-top: 17%; }
  .hero-cta { top: 81%; }
}
@media (max-width: 700px) {
  .topnav { padding: 20px 20px 14px; grid-template-columns: auto 1fr; }
  .nav-left { display: none; }
  .nav-logo { justify-self: start; }
  .monogram-mark { width: 46px; height: 46px; }
  .logo-rule { height: 50px; }
  .logo-stack { font-size: 12px; }
  .nav-right { justify-self: end; align-self: center; }
  .nav-pill { font-size: 13px; padding: 12px 22px; }

  /* stack: headline block above the image, all static and sharp */
  .hero-stage { display: flex; flex-direction: column; }
  .hero-blend {
    position: static;
    mix-blend-mode: normal;
    color: var(--ink);
    padding: 44px 20px 0;
    order: 1;
  }
  .hero-blend h1 { font-size: clamp(44px, 12.6vw, 84px); }
  .hero-cta {
    position: static;
    transform: none;
    align-self: center;
    order: 2;
    margin: 26px 0 34px;
    border: 1px solid var(--hairline);
  }
  .hero-cta:hover { transform: scale(1.03); }
  .hero-runner { order: 3; }
  .hero-note {
    position: static;
    width: auto;
    order: 4;
    padding: 26px 20px 4px;
    display: block;
  }
}

/* ---------------------------------------------------------- ticker */

.ticker {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
  background: var(--paper);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: wyr-marquee 36s linear infinite;
  padding: 14px 0;
}
.ticker-group {
  display: flex;
  gap: 56px;
  padding-right: 56px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
@keyframes wyr-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------------------------------------------------------- how */

.how { padding-top: 140px; padding-bottom: 120px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 88px;
  border-top: 1px solid var(--ink);
}
.step { padding: 40px 40px 8px; border-right: 1px solid var(--hairline); }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; border-right: none; }
.step-num { font-family: var(--serif); font-size: 20px; }
.step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  margin: 28px 0 16px;
}
.step p { font-size: 15px; line-height: 1.65; color: var(--body); max-width: 34ch; }

/* ---------------------------------------------------------- receive */

.receive { padding-bottom: 140px; }
.receive-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 28px;
  align-items: end;
}
.receive-head p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
  max-width: 44ch;
  justify-self: end;
  margin-bottom: 8px;
}
.receive-list { margin-top: 72px; border-top: 1px solid var(--ink); }
.receive-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 44px 0;
  border-bottom: 1px solid var(--hairline);
}
.numeral { font-family: var(--serif); font-size: 18px; }
.receive-row h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
}
.receive-row p { font-size: 15px; line-height: 1.65; color: var(--body); max-width: 52ch; }

/* ---------------------------------------------------------- film preview */

.film-section {
  background: var(--dark);
  color: var(--dark-ink);
  padding: 140px 64px;
}
.container-inner { max-width: 1280px; margin: 0 auto; }
.film-section .display-xl { max-width: 18ch; }

.film-frame {
  margin-top: 72px;
  border: 1px solid var(--dark-line);
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dark);
}
.film-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.film-route { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.film-frame.drawn .film-route { animation: wyr-dash 6s ease-out forwards; }
@keyframes wyr-dash { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .film-route { stroke-dashoffset: 0; }
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
}

.film-frame .tl { position: absolute; top: 28px; left: 32px; }
.film-frame .tr { position: absolute; top: 28px; right: 32px; letter-spacing: 0.2em; }
.caption.bl { position: absolute; left: 32px; bottom: 30px; }
.caption.br { position: absolute; right: 32px; bottom: 30px; text-align: right; }
.caption-line {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.1;
  margin-top: 10px;
}
.caption-time {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 40px);
  margin-top: 8px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--dark-line);
  border-top: none;
}
.stat { padding: 28px 32px; border-right: 1px solid var(--dark-line); }
.stat:last-child { border-right: none; }
.stat-val { font-family: var(--serif); font-size: 32px; margin-top: 10px; }

/* ---------------------------------------------------------- why */

.why { padding-top: 140px; padding-bottom: 140px; }
.compare { margin-top: 88px; border-top: 1px solid var(--ink); }
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 36px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
  gap: 48px;
}
.them { font-size: 15px; color: var(--faded); line-height: 1.6; }
.us { font-family: var(--serif); font-size: 26px; line-height: 1.35; }

/* ---------------------------------------------------------- share */

.share-section { border-top: 1px solid var(--ink); }
.share-grid {
  padding-top: 140px;
  padding-bottom: 140px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 80px;
  align-items: center;
}
.share-grid .display-lg { font-size: clamp(44px, 5vw, 76px); margin-top: 28px; }
.share-lede {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-top: 36px;
  max-width: 46ch;
}
.share-facts {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
}
.fact-val { font-family: var(--serif); font-size: 30px; }
.share-facts .chrome { margin-top: 6px; letter-spacing: 0.2em; }

.phone-col { justify-self: center; }
.phone {
  width: 380px;
  height: 780px;
  max-width: 88vw;
  background: #000;
  border-radius: 56px;
  padding: 10px;
  border: 1px solid #262626;
  position: relative;
  box-shadow: 0 40px 90px rgba(10, 10, 10, 0.25);
}
.phone-notch {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 34px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
}
.phone-screen {
  height: 100%;
  background: var(--dark);
  color: var(--dark-ink);
  border-radius: 46px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 84px 28px 60px;
}
.phone-screen svg { width: 100%; height: auto; display: block; }
.chrome.dark { font-size: 10px; color: var(--dark-muted); }
.phone-stat {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.1;
  margin-top: 12px;
}

/* ---------------------------------------------------------- early access */

.early {
  border-top: 1px solid var(--ink);
  text-align: center;
  padding: 160px 64px;
}
.early-lede {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin: 36px auto 0;
  max-width: 48ch;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 48px;
}
#waitlist-form input[type='email'] {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 17px 28px;
  width: min(300px, 100%);
  outline: none;
}
#waitlist-form input[type='email']::placeholder { color: var(--faded); }
#waitlist-form input[type='email']:focus { border-width: 2px; padding: 16px 27px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  text-decoration: none;
  font-size: 15px;
  padding: 18px 36px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-solid span { font-size: 17px; }
.btn-solid:hover { background: var(--dark-line); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 18px 36px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s ease;
}
.btn-outline:hover { background: #f1f0ed; }

.form-msg {
  min-height: 1.6em;
  font-size: 14px;
  color: var(--ink);
  margin: 18px 0 10px;
}
.form-msg.err { color: #a03020; }

/* ---------------------------------------------------------- faq */

.faq-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 64px 160px;
}
.faq-section .display-md { margin: 24px 0 56px; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  padding: 30px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary > span:first-child { font-family: var(--serif); font-size: 24px; }
.plus { font-size: 22px; font-weight: 300; transition: transform 0.2s ease; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  margin: 0 0 30px;
  max-width: 60ch;
}

/* ---------------------------------------------------------- footer */

.footer {
  background: var(--dark);
  color: var(--dark-ink);
  padding: 72px 64px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 20px; }
.monogram { font-family: var(--serif); font-size: 26px; letter-spacing: 0.02em; }
.brand-rule { width: 1px; height: 34px; background: var(--dark-line); }
.brand-stack {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--dark-muted);
}
.footer-links {
  display: flex;
  gap: 36px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-links a { color: var(--dark-ink); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--dark-muted); }
.footer-note { font-size: 12px; color: var(--dark-muted); }

/* ---------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .share-grid { grid-template-columns: minmax(0, 1fr); gap: 72px; }
  .share-grid > div:last-child { justify-self: center; }
}

@media (max-width: 860px) {
  .container, .film-section, .early, .faq-section, .footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .how { padding-top: 90px; padding-bottom: 80px; }
  .receive { padding-bottom: 90px; }
  .why, .film-section { padding-top: 90px; padding-bottom: 90px; }
  .share-grid { padding-top: 90px; padding-bottom: 90px; }
  .early { padding-top: 110px; padding-bottom: 110px; }
  .faq-section { padding-bottom: 110px; }

  .steps { grid-template-columns: 1fr; }
  .step { padding: 32px 0 8px; border-right: none; border-bottom: 1px solid var(--hairline); }
  .step:last-child { border-bottom: none; }

  .receive-head { grid-template-columns: 1fr; gap: 24px; }
  .receive-head p { justify-self: start; }
  .receive-row { grid-template-columns: 44px 1fr; }
  .receive-row p { grid-column: 2; }

  .compare-row { grid-template-columns: 1fr; gap: 12px; }

  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--dark-line); }

  .phone { width: 320px; height: 660px; }
  .phone-screen { padding: 70px 24px 48px; }
}
