:root {
  --ink: #071018;
  --ink-2: #12202c;
  --ivory: #f4efe6;
  --muted: #9aa8b2;
  --dawn: #e0a85c;
  --dawn-deep: #c4853a;
  --line: rgba(244, 239, 230, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 340;
  line-height: 1.55;
}
.dawn {
  position: fixed;
  inset: -20vh auto auto -10vw;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(224, 168, 92, 0.22), transparent 62%);
  filter: blur(8px);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(12vw, 8vh, 0) scale(1.15); }
}
.nav, main, footer { position: relative; z-index: 1; }
.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 7vw;
  background: rgba(7, 16, 24, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ivory);
  text-decoration: none;
  font-weight: 580;
}
.brand img { border-radius: 8px; }
.nav nav { display: flex; gap: 18px; margin-right: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav nav a:hover { color: var(--ivory); }
.eyebrow {
  color: var(--dawn);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 580;
  margin: 0 0 14px;
}
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 460; letter-spacing: -0.03em; }
h1 { font-size: clamp(44px, 6vw, 84px); line-height: 0.96; margin: 0 0 18px; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; margin: 0 0 12px; }
.lede, .chapter p, .cards p, .close p { color: var(--muted); font-size: 17px; }
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 7vh 7vw 8vh;
  min-height: calc(100vh - 64px);
}
.hero-copy { animation: rise 1s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.text-link { color: var(--ivory); }
.play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ivory);
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 18px 10px 12px;
  font-weight: 580;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.play small { display: block; font-weight: 340; font-size: 11px; letter-spacing: 0.04em; }
.play:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 40px rgba(224, 168, 92, 0.25); }
.play-sm { padding: 8px 14px; font-size: 14px; }
.play-mark {
  width: 26px;
  height: 26px;
  flex: none;
  background: url("play.svg") center / contain no-repeat;
}
.phone {
  margin: 0;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(180deg, #243646, #0c141c);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.phone img {
  display: block;
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}
.hero-phone { animation: float 6s ease-in-out infinite; max-width: 380px; margin-left: auto; }
@keyframes float {
  50% { transform: translateY(-12px); }
}
.strip {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip-track { display: flex; gap: 42px; width: max-content; animation: marquee 28s linear infinite; }
.strip p {
  margin: 0;
  white-space: nowrap;
  color: var(--dawn);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.walk { padding: 12vh 7vw; }
.walk-intro { max-width: 640px; margin-bottom: 48px; }
.walk-grid { display: grid; grid-template-columns: 1fr 380px; gap: 8vw; align-items: start; }
.chapters { list-style: none; margin: 0; padding: 0; }
.chapter {
  min-height: 70vh;
  padding: 8vh 0;
  opacity: 0.35;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.chapter.on { opacity: 1; transform: none; }
.chapter-shot { display: none; }
.swipe-hint, .progress, .dock { display: none; }
.chapter span { color: var(--dawn-deep); font-variant-numeric: tabular-nums; }
.chapter h3 { font-size: 32px; margin: 8px 0 10px; }
.stage { position: sticky; top: 18vh; }
.sticky-phone img { transition: opacity 0.45s ease, transform 0.6s ease; }
.sticky-phone img.swap { opacity: 0; transform: translateY(10px) scale(0.985); }
.features { padding: 8vh 7vw 10vh; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.cards article {
  background: rgba(18, 32, 44, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transform: translateY(24px);
  opacity: 0;
  animation: rise 0.8s ease forwards;
}
.cards article:nth-child(2) { animation-delay: 0.08s; }
.cards article:nth-child(3) { animation-delay: 0.16s; }
.cards article:nth-child(4) { animation-delay: 0.24s; }
.cards article:nth-child(5) { animation-delay: 0.32s; }
.cards article:nth-child(6) { animation-delay: 0.4s; }
.cards img { width: 100%; height: 220px; object-fit: cover; object-position: top; display: block; }
.cards h3, .cards p { margin: 0 16px; }
.cards h3 { margin-top: 16px; font-size: 26px; }
.cards p { margin-bottom: 18px; }
.cards article:hover { border-color: rgba(224, 168, 92, 0.45); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(224, 168, 92, 0.4);
  border-radius: 999px;
  color: var(--ivory);
  text-decoration: none;
  font-size: 14px;
  background: rgba(224, 168, 92, 0.08);
}
.pill b {
  background: var(--dawn);
  color: var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 580;
}
.pill:hover { border-color: var(--dawn); }
.new { padding: 12vh 7vw 4vh; }
.new-lede, .new-grid p, .new-grid li, .video-grid p { color: var(--muted); font-size: 17px; }
.new-lede { margin: 0; max-width: 560px; }
.new-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.new-grid article {
  background: rgba(18, 32, 44, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}
.new-grid article:hover { border-color: rgba(224, 168, 92, 0.45); }
.new-grid h3 { font-size: 24px; margin: 0 0 8px; }
.new-grid p { margin: 0; }
.new-grid .new-lead {
  grid-column: span 2;
  grid-row: span 2;
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(224, 168, 92, 0.18), transparent 70%),
    rgba(18, 32, 44, 0.72);
}
.new-lead h3 { font-size: 34px; }
.new-lead ul { margin: 18px 0 0; padding: 0; list-style: none; }
.new-lead li { padding: 10px 0; border-top: 1px solid var(--line); }
.new-lead li::before { content: "✓"; color: var(--dawn); margin-right: 10px; }
.videos { padding: 4vh 7vw 10vh; }
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.video-grid figure { margin: 0; }
.video {
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101a24;
}
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-grid h3 { font-size: 24px; margin: 16px 0 4px; }
.video-grid p { margin: 0 0 8px; }
.close {
  margin: 0 7vw 10vh;
  padding: 64px 32px;
  text-align: center;
  border-radius: 32px;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(224, 168, 92, 0.2), transparent 70%),
    #101a24;
  border: 1px solid var(--line);
}
.close-mark { border-radius: 18px; margin-bottom: 12px; }
.credit {
  margin: 0 7vw 48px;
  padding: 28px 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #101a24;
}
.credit-eyebrow {
  margin: 0;
  color: var(--dawn);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 580;
}
.credit-name {
  margin: 8px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
}
.credit-tag {
  margin: 4px 0 0;
  color: var(--muted);
  font-style: italic;
}
.credit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.credit-links a {
  color: var(--ivory);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(7, 16, 24, 0.55);
}
.credit-links a:hover { border-color: var(--dawn); color: var(--dawn); }
.credit-copy { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
/* Device-aware buttons: iPhone gets the web app, Android gets Google Play, desktop sees both. */
.only-ios, .only-android { display: none !important; }
html.ios .only-ios, html.android .only-android { display: revert !important; }
html.ios a.only-ios.play { display: inline-flex !important; }
html.ios .dock.only-ios { display: none !important; }
html.ios .no-ios, html.android .no-android { display: none !important; }
.play.web {
  background: transparent;
  color: var(--ivory);
  box-shadow: inset 0 0 0 1px rgba(244, 239, 230, 0.45);
}
.play.web:hover { box-shadow: inset 0 0 0 1px var(--dawn), 0 12px 40px rgba(224, 168, 92, 0.2); }
html.ios .play.web { background: var(--ivory); color: var(--ink); box-shadow: none; }
.web-mark {
  width: 26px;
  height: 26px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0a85c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='3'/%3E%3Cpath d='M10.5 18.5h3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.close-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.iphone {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
  margin: 4vh 7vw 10vh;
  padding: 48px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 240px at 0% 0%, rgba(224, 168, 92, 0.16), transparent 70%),
    #101a24;
}
.steps { list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 0 12px 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 17px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--dawn);
  color: var(--ink);
  font-weight: 580;
  font-size: 14px;
}
.steps b { color: var(--ivory); font-weight: 580; }
.steps a { color: var(--dawn); }
.qr { margin: 0 0 24px; display: flex; align-items: center; gap: 18px; }
.qr img { border-radius: 16px; background: var(--ivory); padding: 10px; width: 140px; height: 140px; }
.qr figcaption { color: var(--muted); }
.iphone-list h3 { font-size: 22px; margin: 0 0 8px; }
.iphone-list ul { list-style: none; margin: 0 0 22px; padding: 0; }
.iphone-list li { padding: 8px 0 8px 26px; position: relative; color: var(--muted); border-top: 1px solid var(--line); }
.have li::before { content: "✓"; color: var(--dawn); position: absolute; left: 0; }
.lack li::before { content: "–"; color: var(--muted); position: absolute; left: 4px; }
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 320px; gap: 28px; padding-top: 48px; }
  .walk-grid { grid-template-columns: 1fr 300px; gap: 28px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .iphone { grid-template-columns: 1fr; gap: 28px; padding: 36px; }
  .new-grid { grid-template-columns: 1fr 1fr; }
  .new-grid .new-lead { grid-row: auto; }
  h1 { font-size: clamp(40px, 6vw, 64px); }
}

@media (max-width: 780px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .nav { padding: 12px 18px; gap: 12px; }
  .nav nav { display: none; }
  .play-sm { margin-left: auto; padding: 8px 12px 8px 8px; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 28px 18px 36px;
    text-align: left;
  }
  .hero-phone {
    animation: none;
    max-width: 280px;
    margin: 8px auto 0;
    order: -1;
  }
  .hero-actions .play { width: 100%; justify-content: center; }
  .walk { padding: 48px 0 24px; }
  .walk-intro { padding: 0 18px; margin-bottom: 16px; }
  .swipe-hint, .progress { display: block; }
  .swipe-hint { color: var(--muted); margin: 0; }
  .progress { color: var(--dawn); letter-spacing: 0.14em; font-size: 13px; margin: 10px 0 0; }
  .walk-grid { display: block; }
  .stage { display: none; }
  .chapters {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 18px;
    padding: 8px 18px 18px;
    -webkit-overflow-scrolling: touch;
  }
  .chapters::-webkit-scrollbar { display: none; }
  .chapter {
    flex: 0 0 84vw;
    scroll-snap-align: center;
    min-height: auto;
    opacity: 1;
    transform: none;
    margin: 0;
    padding: 12px 12px 18px;
    background: #101a24;
    border: 1px solid var(--line);
    border-radius: 28px;
  }
  .chapter-shot {
    display: block;
    width: 100%;
    height: 46vh;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
    margin-bottom: 12px;
  }
  .chapter h3 { font-size: 26px; }
  .features { padding: 36px 18px 24px; }
  .cards {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin-right: -18px;
  }
  .cards article {
    flex: 0 0 78vw;
    scroll-snap-align: start;
    opacity: 1;
    transform: none;
    animation: none;
  }
  .pill { font-size: 13px; }
  .new { padding: 36px 18px 8px; }
  .new-grid { grid-template-columns: 1fr; gap: 12px; }
  .new-grid .new-lead { grid-column: auto; }
  .new-lead h3 { font-size: 28px; }
  .videos { padding: 24px 18px 24px; }
  .video-grid { grid-template-columns: 1fr; gap: 28px; }
  .close { margin: 12px 18px 28px; padding: 40px 18px; }
  .close .play { width: 100%; justify-content: center; }
  .iphone { margin: 12px 18px 24px; padding: 28px 18px; }
  .iphone .play { width: 100%; justify-content: center; }
  .qr { display: none; }
  html.ios .dock.only-ios { display: flex !important; }
  .credit { margin: 8px 18px 24px; }
  .dock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 6;
    background: var(--ivory);
    color: var(--ink);
    text-decoration: none;
    font-weight: 580;
    border-radius: 999px;
    padding: 12px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}
