/* Snapturn website. Colours and type follow the iOS app (Shots/Theme/Theme.swift):
   Space Grotesk for display, DM Sans for text, teal primary, coral secondary.
   Radius rule: buttons and chips are pills, cards are 24px, images inside cards 16px. */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}

@view-transition { navigation: auto; }

:root {
  color-scheme: dark;
  --bg: #0f1417;
  --surface: #1a2126;
  --raised: #252e34;
  --line: rgb(232 238 241 / 0.08);
  --text: #e8eef1;
  --text-2: #a9b8c0;
  --text-3: #7d8f99;
  --primary: #3e9aa4;
  --primary-ink: #0f1417;
  --secondary: #ee6464;
  --accent: #3c4c55;
  --shadow: 0 30px 80px rgb(0 0 0 / 0.45);
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1200px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f6f7;
    --surface: #ffffff;
    --raised: #ecf0f2;
    --line: rgb(38 50 56 / 0.09);
    --text: #263238;
    --text-2: #546e7a;
    --text-3: #5f7380;
    --primary: #2e7d86;
    --primary-ink: #ffffff;
    --secondary: #e35050;
    --accent: #263238;
    --shadow: 0 30px 70px rgb(38 50 56 / 0.16);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.06; }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 34ch; }
.muted { color: var(--text-2); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; color: var(--text); text-decoration: none; }
.brand svg { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--text-2); font-size: 15px; font-weight: 500; transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--primary-ink); }
.menu-btn { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  font: 600 16px/1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, var(--text)); }
.btn-quiet { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { background: var(--raised); }
.btn .ph { font-size: 20px; transition: transform 0.2s var(--ease); }
.btn:hover .ph-arrow-down, .btn:hover .ph-arrow-right { transform: translateX(3px); }
.btn:hover .ph-arrow-down { transform: translateY(3px); }
.nav .btn { height: 42px; padding: 0 18px; font-size: 15px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--primary);
  font: 600 14px/1 var(--body);
}
.badge .ph { font-size: 18px; }

/* Hero */
.hero { padding: 56px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; height: min(660px, 78vh); min-height: 520px; }
.phone {
  position: absolute;
  width: 300px;
  aspect-ratio: 1206 / 2622;
  border-radius: 46px;
  padding: 9px;
  background: #050708;
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgb(255 255 255 / 0.12);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.hero-art .phone { right: 2%; top: 0; transform: rotate(2deg); }
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: #0b0f11; }

/* Story switcher: which recording plays in the hero phone */
.stories {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
  width: min(226px, 40%);
}
.story {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
  border: 0;
  border-radius: 18px;
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.16s var(--ease);
}
.story:hover { color: var(--text); }
.story:active { transform: scale(0.98); }
.story[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.story-marks { display: flex; align-items: center; gap: 8px; color: var(--text); }
.story-marks .logo-mark { width: 20px; height: 20px; }
.story-marks .ph { font-size: 20px; }
.story-marks .ph-arrow-right { font-size: 14px; color: var(--text-3); }
.story-text { display: grid; gap: 2px; }
.story-text strong { font: 600 15px/1.25 var(--display); }
.story-text span { font-size: 13.5px; line-height: 1.35; color: var(--text-3); }
.story-bar { position: absolute; left: 16px; right: 16px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--line); opacity: 0; }
.story-bar i { display: block; height: 100%; border-radius: inherit; background: var(--primary); transform-origin: left; transform: scaleX(0); }
.story[aria-pressed="true"] .story-bar { opacity: 1; }
.story.playing .story-bar i { animation: story-progress var(--dur, 12s) linear forwards; }
.story.paused .story-bar i { animation-play-state: paused; }
@keyframes story-progress { to { transform: scaleX(1); } }

/* Logo marquee */
.logos { padding: 28px 0 96px; }
.logos p { text-align: center; color: var(--text-3); font-size: 15px; margin-bottom: 26px; }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-mark {
  width: 34px;
  height: 34px;
  flex: none;
  background: var(--text-2);
  mask: var(--src) center / contain no-repeat;
  -webkit-mask: var(--src) center / contain no-repeat;
  opacity: 0.75;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* How it works: the section pins while three short scroll stops switch the step.
   .how-track adds the scroll room; each <i> is one stop the script watches. */
.how { position: relative; height: calc(100vh - 72px + 90vh); }
.how-pin { position: sticky; top: 72px; height: calc(100vh - 72px); display: grid; align-items: center; padding: 24px 0; }
.how-track { position: absolute; left: 0; right: 0; top: calc(50vh - 72px); height: 90vh; display: grid; grid-template-rows: repeat(3, 1fr); pointer-events: none; }
.how-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.how-stage { display: grid; justify-items: center; }
.how-stage .phone { position: relative; width: min(300px, calc((100vh - 140px) * 1206 / 2622)); }
.how-stage .phone img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); opacity: 0; transition: opacity 0.3s ease; }
.how-stage .phone img.on { opacity: 1; }
.how-side { display: grid; gap: 26px; align-content: center; }
.how-head { display: grid; gap: 14px; max-width: 560px; }
.how-apps { display: flex; flex-wrap: wrap; gap: 8px; }
.how-app {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font: 500 14px/1 var(--body); cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.16s var(--ease);
}
.how-app:hover { color: var(--text); }
.how-app:active { transform: scale(0.97); }
.how-app .logo-mark { width: 16px; height: 16px; background: currentColor; opacity: 1; }
.how-app .ph { font-size: 17px; }
.how-app[aria-pressed="true"] { background: color-mix(in srgb, var(--primary) 18%, var(--surface)); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--primary); }
.how-app[aria-pressed="true"] .logo-mark, .how-app[aria-pressed="true"] .ph { color: var(--primary); background-color: var(--primary); }
.how-app[aria-pressed="true"] .ph { background: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.step button { display: flex; align-items: center; gap: 16px; width: 100%; padding: 10px 0; border: 0; background: none; color: var(--text-3); font: inherit; text-align: left; cursor: pointer; transition: color 0.2s ease; }
.step button:hover, .step.active button { color: var(--text); }
.step h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.step p { color: var(--text-2); max-width: 44ch; font-size: 1.08rem; padding-left: 68px; opacity: 0; height: 0; overflow: hidden; transition: opacity 0.25s ease; }
.step.active p { height: auto; opacity: 1; padding-bottom: 8px; }
.step-icon {
  flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--surface); color: var(--text-3); font-size: 26px; transition: background-color 0.3s ease, color 0.3s ease;
}
.step.active .step-icon { background: var(--primary); color: var(--primary-ink); }

/* Examples: tabs on the left, the selected recording in a phone on the right */
.examples { padding: 40px 0 120px; }
.ex-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.ex-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ex-tab {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 16px 18px;
  border: 0;
  border-radius: 18px;
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.16s var(--ease);
}
.ex-tab:hover { color: var(--text); }
.ex-tab:active { transform: scale(0.98); }
.ex-tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--primary); }
/* App marks sit top right, in the page's teal; text stays left. */
.ex-tab .story-marks { order: 2; gap: 6px; padding-top: 2px; color: var(--primary); }
.ex-tab .story-marks .logo-mark { background: var(--primary); opacity: 1; }
.ex-tab .story-marks .ph-arrow-right { color: color-mix(in srgb, var(--primary) 60%, var(--text-3)); }
.ex-tab-text { display: grid; gap: 2px; }
.ex-tab-text strong { font: 600 15.5px/1.25 var(--display); }
.ex-tab-text span { font-size: 14px; line-height: 1.35; color: var(--text-3); }
.ex-stage { position: sticky; top: 100px; display: grid; gap: 22px; justify-items: center; }
.ex-stage .phone { position: relative; width: 300px; }
.ex-video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: #0b0f11; }
.ex-text { color: var(--text-2); text-align: center; max-width: 32ch; min-height: 3.2em; }

/* What turns into a link */
.kinds { padding: 40px 0 120px; }
.kind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kind:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.kind { border-radius: 24px; background: var(--surface); padding: 26px 26px 28px; display: grid; align-content: start; gap: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.kind > .ph { font-size: 28px; color: var(--primary); }
.kind h3 { font-size: 1.2rem; }
.kind .chip-row { margin: 6px 0 0; padding: 0; list-style: none; }
.kind .chip { gap: 8px; color: var(--text); }
.kind .chip .logo-mark { width: 16px; height: 16px; background: var(--text); opacity: 0.9; }

/* Bento */
.features { padding: 40px 0 120px; }
.features h2 { max-width: 16ch; margin-bottom: 48px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.tile {
  position: relative;
  border-radius: 24px;
  background: var(--surface);
  padding: 30px;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.tile p { color: var(--text-2); max-width: 34ch; }
.tile .ph { font-size: 28px; color: var(--primary); }
.tile-pins { grid-column: span 4; grid-row: span 2; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px; }
.tile-pins .copy { align-self: stretch; display: grid; gap: 10px; grid-template-rows: auto auto auto auto 1fr; }
/* The Photos album full of screenshots, tilted into the empty corner: the pile Snapturn makes useful. */
.pile { position: relative; margin: 24px 0 -30px 18px; align-self: end; display: flex; align-items: flex-end; gap: 18px; }
.pile img { flex: none; width: 150px; height: 300px; object-fit: cover; object-position: top; border-radius: 22px; border: 5px solid #050708; box-shadow: var(--shadow); transform: rotate(-6deg); transform-origin: bottom left; }
.pile figcaption { padding-bottom: 54px; max-width: 18ch; color: var(--text-2); font-size: 15px; line-height: 1.4; }
.pile figcaption strong { display: block; color: var(--text); font: 600 1.15rem/1.25 var(--display); }
.tile-pins .pins-shot { border-radius: 20px; width: 270px; height: 460px; object-fit: cover; object-position: 50% 30%; justify-self: end; align-self: end; margin-bottom: -30px; box-shadow: var(--shadow); transform: rotate(2deg); }
.tile-copy { grid-column: span 2; background: color-mix(in srgb, var(--primary) 18%, var(--surface)); }
.tile-search { grid-column: span 2; }
.tile-private { grid-column: span 6; grid-template-columns: auto 1fr; align-items: center; gap: 28px; background:
  radial-gradient(circle at 12% 50%, color-mix(in srgb, var(--secondary) 22%, transparent), transparent 42%), var(--surface); }
.tile-private .big-icon { font-size: 64px; color: var(--secondary); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--raised); display: inline-flex; align-items: center; font-size: 14px; color: var(--text-2); }
.copied {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--bg);
  font: 500 15px/1.3 var(--body);
  color: var(--text);
  width: fit-content;
}
.copied .ph { font-size: 18px; color: var(--primary); }

/* Pricing */
.pricing { padding: 40px 0 120px; }
.pricing-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.pricing-copy { display: grid; gap: 20px; position: sticky; top: 120px; }
/* The free pack leads the list: coral, larger, with a stamp, so the "free" is the first thing seen. */
.pack.pack-free {
  position: relative; grid-template-columns: auto 1fr auto; padding: 32px 30px; overflow: hidden;
  background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--secondary) 38%, transparent), transparent 60%),
    color-mix(in srgb, var(--secondary) 10%, var(--surface));
  box-shadow: inset 0 0 0 2px var(--secondary), 0 24px 60px color-mix(in srgb, var(--secondary) 18%, transparent);
}
.free-stamp {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: var(--secondary); color: #22100f; font: 700 1.35rem/1 var(--display); letter-spacing: -0.02em; text-transform: uppercase;
  transform: rotate(-10deg); box-shadow: 0 10px 30px color-mix(in srgb, var(--secondary) 40%, transparent);
}
.pack-free .what strong { font: 700 1.45rem/1.2 var(--display); letter-spacing: -0.02em; }
.pack-free .what span { font-size: 15.5px; }
.pack-free .price { font-size: 2.6rem; color: var(--secondary); }
.packs-then { margin: 22px 6px 12px; color: var(--text-3); font-size: 15px; }
.packs { display: grid; gap: 14px; }
.pack {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 26px 28px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.25s var(--ease);
}
.pack:hover { transform: translateY(-2px); }
.pack .size { font: 700 2.4rem/1 var(--display); letter-spacing: -0.04em; }
.pack .what strong { display: block; font-size: 1.15rem; }
.pack .what span { color: var(--text-2); font-size: 15px; }
.pack .price { font: 700 1.6rem/1 var(--display); text-align: right; }
.pack .price small { display: block; font: 500 13px/1.4 var(--body); color: var(--text-3); margin-top: 6px; }
.pack.featured { padding: 34px 28px; box-shadow: inset 0 0 0 2px var(--primary); }
.pack.featured .size { color: var(--primary); }
.tag { display: inline-flex; margin-left: 8px; vertical-align: 2px; padding: 3px 9px; border-radius: 999px; background: var(--secondary); color: #fff; font: 600 12px/1.3 var(--body); }
.backlog { margin-top: 10px; color: var(--text-2); font-size: 15px; padding: 0 6px; }

/* Closing band */
.closing { padding: 0 0 120px; }
.closing-card {
  border-radius: 32px;
  padding: clamp(36px, 6vw, 72px);
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--primary) 35%, transparent), transparent 50%),
    var(--surface);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.closing-card img { width: 120px; height: 120px; align-self: center; border-radius: 28px; box-shadow: var(--shadow); }
.closing-card .copy { display: grid; gap: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 10px 0; }
.footer-links a:hover { color: var(--text); }
.site-footer small { color: var(--text-3); font-size: 14px; }

/* Text pages (privacy, support) */
.doc { padding: 56px 0 120px; }
.doc-head { max-width: 760px; display: grid; gap: 16px; margin-bottom: 48px; }
.doc-body { max-width: 680px; display: grid; gap: 18px; }
.doc-body h2 { font-size: 1.6rem; margin-top: 28px; }
.doc-body p, .doc-body li { color: var(--text-2); }
.doc-body ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.doc-body strong { color: var(--text); }
.doc-body a { color: var(--primary); }
.updated { color: var(--text-3); font-size: 15px; }
.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details { border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font: 600 1.08rem/1.35 var(--body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ph { font-size: 20px; color: var(--text-3); flex: none; transition: transform 0.25s var(--ease); }
.faq details[open] summary .ph { transform: rotate(45deg); color: var(--primary); }
.faq .answer { padding: 0 24px 22px; color: var(--text-2); display: grid; gap: 10px; }
.faq details[open] .answer { animation: answer-in 0.25s var(--ease); }
@keyframes answer-in { from { opacity: 0; transform: translateY(-6px); } }
.contact-card {
  max-width: 760px;
  margin-top: 40px;
  padding: 30px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--primary) 14%, var(--surface));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.contact-card .copy { display: grid; gap: 6px; }

/* Entrance and reveal motion (only when JS is running and motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { opacity: 0; transform: translateY(16px); animation: rise 0.6s var(--ease) forwards; }
  .js .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .js .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .js .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .js .hero-art .phone { opacity: 0; animation: phone-in 0.8s var(--ease) 0.1s forwards; }
  .js .hero-art .story { opacity: 0; animation: story-in 0.5s var(--ease) forwards; }
  .js .hero-art .story:nth-child(1) { animation-delay: 0.35s; }
  .js .hero-art .story:nth-child(2) { animation-delay: 0.41s; }
  .js .hero-art .story:nth-child(3) { animation-delay: 0.47s; }
  .js .hero-art .story:nth-child(4) { animation-delay: 0.53s; }
  .js .hero-art .story:nth-child(5) { animation-delay: 0.59s; }
  .ex-text.swap { animation: text-swap 0.25s var(--ease); }
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal-group .reveal:nth-child(2) { transition-delay: 0.06s; }
  .js .reveal-group .reveal:nth-child(3) { transition-delay: 0.12s; }
  .js .reveal-group .reveal:nth-child(4) { transition-delay: 0.18s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes phone-in { from { opacity: 0; transform: translateY(40px) rotate(5deg); } to { opacity: 1; transform: rotate(2deg); } }
@keyframes text-swap { from { opacity: 0; transform: translateY(4px); } }
@keyframes story-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .how-stage .phone img { transition: none; }
  @view-transition { navigation: none; }
}

/* Mobile */
@media (max-width: 900px) {
  .hero { padding: 24px 0 64px; }
  .hero-grid, .how-grid, .pricing-grid { grid-template-columns: 1fr; }
  .hero-art { height: auto; min-height: 0; display: grid; gap: 20px; justify-items: center; }
  .hero-art .phone { position: relative; right: auto; width: min(280px, 72vw); }
  .stories { position: static; transform: none; width: 100%; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .story:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .story { padding: 12px 12px 14px; }
  .story-text span { display: none; }
  .story-bar { left: 12px; right: 12px; }
  .how { height: auto; }
  .how-pin { position: static; height: auto; padding: 48px 0; }
  .how-track { display: none; }
  .how-grid { gap: 28px; }
  .how-stage .phone { width: min(260px, 66vw); }
  .how-side { order: -1; }
  .ex-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ex-stage { position: static; }
  .ex-stage .phone { width: min(280px, 72vw); }
  /* Tabs become one swipeable row above the phone, so picking one keeps the video in view. */
  .ex-tabs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -20px; padding: 2px 20px 6px; scrollbar-width: none; }
  .ex-tabs::-webkit-scrollbar { display: none; }
  .ex-tab { flex: none; scroll-snap-align: start; padding: 10px 14px; grid-template-columns: auto auto; align-items: center; border-radius: 999px; }
  .ex-tab .story-marks { order: 0; padding: 0; }
  .ex-tab-text strong { white-space: nowrap; }
  .ex-tab .story-marks .ph-arrow-right { transform: none; }
  .ex-tab-text span { display: none; }
  .kind-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile-pins, .tile-copy, .tile-search, .tile-private { grid-column: auto; grid-row: auto; }
  .tile-pins { grid-template-columns: 1fr; }
  .tile-pins .pins-shot { justify-self: center; width: 240px; height: 400px; margin-bottom: -30px; }
  .pile { margin-bottom: 0; }
  .pile img { width: 120px; height: 240px; }
  .pile figcaption { padding-bottom: 30px; }
  .tile-private { grid-template-columns: 1fr; }
  .pricing-copy { position: static; }
  .pack { grid-template-columns: 56px 1fr auto; gap: 14px; padding: 22px 20px; }
  .pack .size { font-size: 1.9rem; }
  .pack-free { grid-template-columns: 64px 1fr auto; padding: 24px 20px; }
  .free-stamp { width: 64px; height: 64px; font-size: 1rem; }
  .pack-free .what strong { font-size: 1.2rem; }
  .pack-free .price { font-size: 2rem; }
  .closing-card { grid-template-columns: 1fr; }
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity 0.2s ease, transform 0.2s var(--ease), visibility 0s linear 0.2s; }
  .nav-links a { padding: 14px 0; font-size: 18px; }
  .nav-links .btn { margin-top: 10px; justify-content: center; height: 50px; }
  .nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 0.2s ease, transform 0.2s var(--ease), visibility 0s; }
  .menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--surface); color: var(--text); font-size: 22px; cursor: pointer; }
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
