/* momry.app. Photo-led: real family moments carry the page, the app appears
   as small screen cards, and the words stay short. Colours come from the
   photographs (autumn mustard, deep green, cream); the logo keeps its own. */

:root {
  --cream: oklch(95.6% 0.018 80);
  --cream-2: oklch(92.4% 0.026 78);
  --card: oklch(98.8% 0.008 80);
  --ink: oklch(24% 0.022 150);
  --ink-soft: oklch(40% 0.02 150);
  --line: oklch(24% 0.022 150 / 0.14);
  --green: oklch(31% 0.045 158);
  --green-2: oklch(26% 0.04 158);
  --on-green: oklch(95% 0.02 90);
  --on-green-soft: oklch(84% 0.03 120);
  --mustard: oklch(76% 0.13 78);
  --mustard-deep: oklch(52% 0.11 65);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --wide: 78rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.035em; text-wrap: balance; font-optical-sizing: auto; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--mustard-deep); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--ink); color: var(--cream); padding: 0.6rem 1rem; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── Header: floats over the hero photo, turns solid on scroll ── */
.top { position: fixed; inset: 0 0 auto; z-index: 30; transition: background-color 0.35s, box-shadow 0.35s, translate 0.45s var(--ease); }
.top.is-tucked { translate: 0 -100%; }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: inline-grid; }
.brand img { grid-area: 1 / 1; width: 7.5rem; transition: opacity 0.35s; }
.brand .logo-photo { filter: drop-shadow(0 1px 10px oklch(15% 0.03 150 / 0.35)); }
.brand .logo-paper { opacity: 0; }
.top.is-scrolled .logo-photo, body:has(.legal) .logo-photo { opacity: 0; }
.top.is-scrolled .logo-paper, body:has(.legal) .logo-paper { opacity: 1; }
.nav { display: flex; gap: 0.25rem; margin-left: auto; font-weight: 600; font-size: 0.97rem; padding: 0.3rem; border-radius: 999px; background: oklch(18% 0.03 150 / 0.38); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav a { padding: 0.45rem 0.9rem; border-radius: 999px; }
.nav a { text-decoration: none; color: var(--card); text-shadow: 0 1px 12px oklch(20% 0.02 150 / 0.5); }
.top .btn { margin-left: 0.5rem; }
.brand + .btn { margin-left: auto; }
.top.is-scrolled, body:has(.legal) .top { background: oklch(95.6% 0.018 80 / 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.top.is-scrolled .nav { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.top.is-scrolled .nav a { color: var(--ink-soft); text-shadow: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0 1.35rem;
  border-radius: 999px; background: var(--mustard); color: var(--ink); font: 700 0.98rem/1 var(--sans); text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.btn:hover { background: oklch(80% 0.13 80); }
.btn:active { transform: scale(0.97); }

/* Getting the app: computers get a QR code to scan with their phone; phones
   and tablets, which cannot scan their own screen, get a "Get momry" link.
   Both go to /download, which sends each phone to its own store. */
.get-app { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.1rem; margin-top: 1.75rem; }
.qr { display: block; width: 6.25rem; padding: 0.45rem; border-radius: 14px; background: oklch(99% 0.01 85); box-shadow: 0 0.6rem 1.5rem -0.8rem oklch(15% 0.03 150 / 0.5); flex-shrink: 0; }
.qr img { width: 100%; image-rendering: pixelated; }
.qr-note { display: grid; gap: 0.1rem; font-size: 0.95rem; line-height: 1.35; }
.qr-note b { font-size: 1.05rem; font-weight: 600; }
.get-btn { display: none; min-height: 3.4rem; padding-inline: 2rem; font-size: 1.1rem; }
.get-note { display: none; font-size: 1rem; }

/* ── Hero: the photograph is the page ───────────────── */
.hero { position: relative; min-height: min(100svh, 56rem); display: flex; align-items: flex-end; color: var(--card); isolation: isolate; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, oklch(18% 0.03 150 / 0.45), transparent 9rem),
              linear-gradient(to top, oklch(18% 0.03 150 / 0.78), oklch(18% 0.03 150 / 0.25) 45%, transparent 70%),
              linear-gradient(to right, oklch(18% 0.03 150 / 0.35), transparent 55%);
}
.hero-copy { padding-block: 8rem clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 .line { display: block; }
.hero h1 { font-size: clamp(2.7rem, 1.3rem + 5vw, 5.8rem); line-height: 0.95; }
.hero p { margin-top: 1.1rem; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); max-width: 30ch; color: oklch(96% 0.015 85); }
.hero .get-note, .hero .qr-note { color: oklch(96% 0.015 85); }

/* ── Ticker: a few of the things momry is remembering ── */
.ticker { overflow: hidden; padding-block: 1.1rem; background: var(--green-2); color: var(--on-green); }
.ticker-track { display: flex; width: max-content; }
.ticker ul { list-style: none; margin: 0; padding: 0 0.35rem; display: flex; gap: 0.7rem; }
.ticker li { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; padding: 0.55rem 1rem 0.55rem 0.8rem; border-radius: 999px; background: oklch(34% 0.04 158); font-weight: 500; }
.ticker li small { font-size: 0.78rem; font-weight: 600; color: var(--on-green-soft); }
.dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; flex-shrink: 0; }
.dot.lily { background: oklch(72% 0.12 300); }
.dot.max { background: oklch(70% 0.14 355); }
.dot.tom { background: oklch(68% 0.11 250); }
.dot.emma { background: oklch(74% 0.1 165); }

/* ── Phones: a real frame around a real screen, always cut off by an edge ── */
.phone {
  --w: 16rem;
  position: relative; width: var(--w); aspect-ratio: 393 / 852; flex-shrink: 0;
  border-radius: calc(var(--w) * 0.155); padding: calc(var(--w) * 0.03);
  background: oklch(17% 0.01 150);
  box-shadow: inset 0 0 0 1.5px oklch(36% 0.01 150), 0 1.5rem 3rem -1rem oklch(18% 0.03 150 / 0.45);
}
.phone .screen { position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--w) * 0.125); background: var(--card); }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .status {
  position: absolute; inset: 0 0 auto 0; height: 6.35%; display: flex; align-items: center; justify-content: space-between;
  padding: 0.4% 8.5% 0 12%; font: 600 calc(var(--w) * 0.044) / 1 var(--sans); color: oklch(18% 0.02 150);
}
.phone .status svg { height: calc(var(--w) * 0.037); width: auto; fill: currentColor; }
.phone .status .icons { display: flex; gap: calc(var(--w) * 0.017); align-items: center; }
.phone .status::after { content: ""; position: absolute; left: 50%; top: 20%; translate: -50% 0; width: 32%; height: 68%; border-radius: 999px; background: oklch(10% 0.01 150); }
.phone.is-dark .status { color: oklch(96% 0.01 85); }
.phone.is-dark .screen { background: oklch(8% 0 0); }

/* A stage crops a phone at its bottom edge, so only the useful top shows. */
.stage { display: flex; justify-content: center; align-items: flex-start; height: clamp(17rem, 26vw, 21rem); padding-top: 1.75rem; overflow: hidden; border-radius: 26px; background: var(--cream-2); }
.stage .phone { --w: clamp(12.5rem, 19vw, 15.5rem); }

/* A phone rising out of the bottom of a photograph. */
.photo-phone { position: relative; margin: 0; overflow: hidden; border-radius: 28px; }
.photo-phone > img { border-radius: 0; }
.photo-phone .is-rising { --w: 40%; position: absolute; left: 7%; bottom: 0; translate: 0 44%; box-shadow: inset 0 0 0 1.5px oklch(36% 0.01 150), 0 0 2.5rem oklch(15% 0.03 150 / 0.35); }
.evening .photo-phone .is-rising { --w: 26%; left: auto; right: 6%; translate: 0 50%; }
.steps { list-style: none; margin: 0; padding: 0 0 clamp(3.5rem, 8vw, 6rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.how h2, .aha h2, .everything h2 { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 4rem); line-height: 1; max-width: 18ch; }
.how { padding-top: clamp(4rem, 8vw, 6.5rem); }
.how h2 { max-width: 16ch; }
.lead { margin: 1.1rem 0 clamp(1.75rem, 3.5vw, 2.5rem); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); color: var(--ink-soft); max-width: 38ch; }
.lead b { display: block; color: var(--mustard-deep); font-weight: 600; }
.steps h3 { margin-top: 1.25rem; font-size: 1.5rem; display: flex; align-items: center; gap: 0.6rem; }
.steps h3 span { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--mustard); font: 700 0.95rem/1 var(--sans); letter-spacing: 0; }
.steps p { margin-top: 0.4rem; color: var(--ink-soft); max-width: 26ch; }

/* ── Hero chips: what momry is holding for this family, over the photo ── */
.chips { position: absolute; right: clamp(1rem, 6vw, 7rem); top: 22%; list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; justify-items: end; }
.chip { display: grid; padding: 0.6rem 1rem; border-radius: 16px; background: oklch(98.5% 0.01 85 / 0.94); color: var(--ink); font-weight: 600; font-size: 0.98rem; line-height: 1.3; box-shadow: 0 0.75rem 2rem -0.75rem oklch(15% 0.03 150 / 0.5); }
.chip small { font-size: 0.75rem; font-weight: 600; color: var(--mustard-deep); }
.chip:nth-child(2) { margin-right: 3.5rem; }

/* ── The aha: a real-looking newsletter, and what momry made of it ── */
.aha { background: var(--cream-2); padding-block: clamp(3.5rem, 7vw, 5.5rem); margin-top: clamp(1rem, 3vw, 2rem); }
.aha-copy p { margin-top: 1rem; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-soft); max-width: 44ch; }
.aha-pair { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(1.75rem, 4vw, 2.75rem); align-items: stretch; }
.email { background: var(--card); border-radius: 22px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 1.25rem 2.5rem -1.5rem oklch(20% 0.03 150 / 0.3); }
.email-head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.email-head span { color: var(--ink-soft); }
.email ol { margin: 0.9rem 0 0; padding-left: 1.4rem; display: grid; gap: 0.35rem; color: var(--ink-soft); font-size: 0.98rem; }
.email li::marker { color: oklch(60% 0.02 150); font-size: 0.85em; }
.email li.is-yours { color: var(--ink); font-weight: 600; }
.email li.is-yours { background: linear-gradient(transparent 55%, oklch(86% 0.12 88 / 0.85) 55%) no-repeat; background-size: 100% 100%; width: fit-content; }
.stage.is-green { background: var(--green); position: relative; height: auto; min-height: 22rem; }
.aha .stage .phone { --w: clamp(13rem, 20vw, 16rem); position: absolute; top: 1.75rem; left: 50%; translate: -50% 0; }

/* ── Everything: a bento of cut-off phones ─────────── */
.everything { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(1.5rem, 3vw, 2rem); }
.bento { list-style: none; margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.9rem, 2vw, 1.25rem); }
.tile { position: relative; overflow: hidden; border-radius: 26px; background: var(--cream-2); height: clamp(24rem, 32vw, 27rem); padding: 1.5rem 1.5rem 0; display: flex; flex-direction: column; align-items: center; }
.tile:nth-child(2) { background: oklch(91% 0.03 60); }
.tile:nth-child(3) { background: oklch(91% 0.03 150); }
.tile:nth-child(4) { background: oklch(90% 0.035 95); }
.tile.is-wide { grid-column: span 2; flex-direction: row; align-items: flex-start; gap: 2rem; background: oklch(90% 0.04 80); }
.tile-copy { align-self: stretch; }
.tile.is-wide .tile-copy { flex: 1; align-self: center; padding-bottom: 1.5rem; max-width: 22rem; }
.tile-copy p { margin-top: 0.7rem; font-weight: 500; font-size: 1.05rem; line-height: 1.4; }
.tile.is-wide .tile-copy p { font-family: var(--display); font-size: clamp(1.4rem, 1rem + 1.2vw, 1.9rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; }
.tile .phone { --w: clamp(11.5rem, 15vw, 13.5rem); margin-top: 1.25rem; }
.tile.is-wide .phone { margin-top: 0.5rem; }
.pill { display: inline-block; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; }

/* ── Two photo tiles, words on the photo ───────────── */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.9rem, 2vw, 1.25rem); padding-block: clamp(1rem, 2vw, 1.5rem) clamp(3rem, 6vw, 4.5rem); }
.photo-tile { position: relative; margin: 0; overflow: hidden; border-radius: 26px; aspect-ratio: 4 / 4.6; color: var(--card); isolation: isolate; }
.tile-photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.tile-photo > img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.photo-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, oklch(15% 0.03 150 / 0.72), oklch(15% 0.03 150 / 0.2) 42%, transparent 60%); }
.photo-tile figcaption { padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 0.45rem; max-width: 26rem; font-size: 1.05rem; color: oklch(94% 0.015 85); }
.photo-tile figcaption .pill { justify-self: start; background: var(--mustard); color: var(--ink); }
.photo-tile figcaption b { margin-top: 0.3rem; font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.02; letter-spacing: -0.03em; color: var(--card); }
.photo-tile .is-rising { --w: 38%; position: absolute; right: 7%; left: auto; bottom: 0; translate: 0 46%; z-index: 1; }

.evening h2, .trust h2, .faq h2 { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 4rem); line-height: 1; }
.evening-copy p { margin-top: 1rem; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); max-width: 30ch; }

/* ── Evening ────────────────────────────────────────── */
.evening { background: var(--green); color: var(--on-green); padding-block: clamp(3.5rem, 7vw, 6rem); }
.evening .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.evening-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 60% 50%; border-radius: 28px; }
.evening-copy p { color: var(--on-green-soft); }

/* ── Trust, price, questions: short and plain ───────── */
.trust { padding-block: clamp(3.5rem, 7vw, 6rem) 0; }
.trust ul { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2.5rem; max-width: 56rem; }
.trust li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 1.15rem; font-weight: 500; }
.trust svg { flex-shrink: 0; width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; padding: 0.2rem; border-radius: 50%; background: var(--mustard); color: var(--ink); }
.trust .more { display: inline-block; margin-top: 1.5rem; font-weight: 600; color: var(--mustard-deep); text-underline-offset: 0.25em; }

.get { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.get .wrap { background: var(--green-2); color: var(--on-green); border-radius: 32px; padding: clamp(2.25rem, 5vw, 4rem); }
.get h2 { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 4rem); line-height: 1; }
.get p { margin-top: 0.9rem; font-size: 1.15rem; color: var(--on-green-soft); }
.get .get-note, .get .qr-note { color: var(--on-green-soft); }
.get .qr { width: 7.5rem; }

.faq { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 5vw, 5rem); padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 1.15rem 2.25rem 1.15rem 0; font-weight: 600; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; translate: 0 -50%; font: 500 1.6rem/1 var(--sans); color: var(--mustard-deep); transition: rotate 0.25s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 2.25rem 1.2rem 0; color: var(--ink-soft); max-width: 60ch; }

.foot { background: var(--green-2); color: var(--on-green-soft); padding-block: 2.75rem; font-size: 0.95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1.25rem 3rem; align-items: center; justify-content: space-between; }
.foot .mark { display: flex; align-items: center; gap: 0.9rem; color: var(--on-green); }
.foot .mark img { width: 2.5rem; }
.foot nav { display: flex; gap: 1.5rem; }
.foot a { color: var(--on-green); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 0.25em; }

/* ── Legal pages ────────────────────────────────────── */
.legal { padding-block: 7rem 5rem; }
.legal .wrap { max-width: 44rem; }
.legal h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.5rem); line-height: 1; }
.legal .intro { margin-top: 1.1rem; padding: 0; font-size: 1.2rem; color: var(--ink-soft); }
.legal .note { margin-top: 1.5rem; padding: 0.9rem 1.1rem; border-radius: 14px; background: var(--cream-2); font-size: 0.95rem; color: var(--ink-soft); }
.legal h2 { margin-top: 2.4rem; font-size: 1.6rem; }
.legal h2 + p, .legal h2 + ul { margin-top: 0.8rem; }
.legal p + p { margin-top: 0.9rem; }
.legal ul { padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.legal .back { display: inline-block; margin-top: 3rem; color: var(--mustard-deep); font-weight: 600; }

/* ── Motion ─────────────────────────────────────────── */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; translate: 0 1.5rem; transition: opacity 0.9s var(--ease), translate 1.1s var(--ease); transition-delay: var(--d, 0s); }
  .reveal.is-in { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.d1 { --d: 0.08s; } .d2 { --d: 0.16s; } .d3 { --d: 0.4s; } .d4 { --d: 0.55s; } .d5 { --d: 0.7s; }

/* ── Motion: a bit of life, all of it off under reduced motion ── */
@media (prefers-reduced-motion: no-preference) {
  /* The hero photo settles in, and the chips float. */
  .hero-photo { animation: settle 2.6s var(--ease) both; }
  @keyframes settle { from { scale: 1.08; } to { scale: 1; } }
  .chip { animation: float 7s ease-in-out infinite; }
  .chip:nth-child(2) { animation-delay: -2.3s; }
  .chip:nth-child(3) { animation-delay: -4.6s; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

  /* The ticker drifts, and stops when you point at it. */
  .ticker-track { animation: drift 60s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  @keyframes drift { to { transform: translateX(-50%); } }

  /* The highlighter sweeps across the three things that matter. */
  @media (scripting: enabled) {
    .email li.is-yours { background-size: 0% 100%; transition: background-size 0.9s var(--ease); }
    .email.is-in li.is-yours { background-size: 100% 100%; }
    .email.is-in li.is-yours:nth-of-type(3) { transition-delay: 0.5s; }
    .email.is-in li.is-yours:nth-of-type(5) { transition-delay: 0.9s; }
    .email.is-in li.is-yours:nth-of-type(7) { transition-delay: 1.3s; }
  }

  /* Phones rise out of their panels as they scroll into view. */
  @supports (animation-timeline: view()) {
    .stage .phone, .tile .phone, .photo-tile .is-rising, .evening .is-rising { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @keyframes rise { from { transform: translateY(22%); } to { transform: translateY(0); } }
  }

  /* On a computer, tiles lift and photos lean in when you point at them. */
  @media (hover: hover) {
    .tile { transition: translate 0.5s var(--ease), box-shadow 0.5s var(--ease); }
    .tile .phone { transition: translate 0.6s var(--ease); }
    .tile:hover { translate: 0 -4px; box-shadow: 0 1.5rem 3rem -1.75rem oklch(20% 0.03 150 / 0.45); }
    .tile:hover .phone { translate: 0 -14px; }
    .photo-tile:hover .tile-photo > img, .evening .photo-phone:hover > img { scale: 1.04; }
    .evening .photo-phone > img { transition: scale 1.2s var(--ease); }
    .btn:hover { translate: 0 -1px; box-shadow: 0 0.6rem 1.2rem -0.6rem oklch(40% 0.1 70 / 0.6); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker ul[aria-hidden] { display: none; }
}

/* ── Smaller screens ────────────────────────────────── */
@media (max-width: 60rem) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .evening .wrap, .faq, .aha-pair, .pair { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips { display: none; }
  .trust ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 44rem), (hover: none) and (pointer: coarse) {
  .qr, .qr-note { display: none; }
  .get-btn { display: inline-flex; }
  .get-note { display: block; }
}
@media (max-width: 44rem) {
  .hero { display: block; min-height: 0; background: var(--green-2); }
  .hero-photo { position: relative; height: 64svh; min-height: 24rem; object-position: 64% 30%; }
  .hero::after { inset: 0 0 auto 0; height: max(64svh, 24rem); background: linear-gradient(to bottom, oklch(18% 0.03 150 / 0.62), transparent 26%, transparent 72%, var(--green-2)); }
  .hero-copy { padding-block: 0.5rem 2.5rem; }
  .photo-tile { aspect-ratio: auto; background: var(--green-2); }
  .photo-tile::after { display: none; }
  .tile-photo { position: relative; z-index: 0; aspect-ratio: 4 / 3.6; }
  .photo-tile figcaption { padding: 1.25rem 1.25rem 1.5rem; }
  .foot .wrap { flex-direction: column; justify-content: center; text-align: center; }
  .foot .mark { flex-direction: column; gap: 0.6rem; }
  .foot nav { justify-content: center; }
  .hero { min-height: 88svh; }
  .hero-photo { object-position: 72% 40%; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .stage { height: 15rem; padding-top: 1.25rem; }
  .stage .phone { --w: 13rem; }
  .evening .photo-phone .is-rising { --w: 34%; }
  .photo-tile .is-rising { --w: 42%; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile.is-wide { grid-column: auto; flex-direction: column; align-items: center; height: 25rem; }
  .tile.is-wide .tile-copy { align-self: stretch; padding-bottom: 0; }
}

/* ── momry.app/download ─────────────────────────────── */
.download { position: relative; min-height: 100svh; display: grid; place-items: center; padding: var(--gutter); isolation: isolate; }
.download-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; z-index: -2; }
.download::after { content: ""; position: absolute; inset: 0; z-index: -1; background: oklch(18% 0.03 150 / 0.45); }
.download-card { width: min(100%, 24rem); padding: 2rem; border-radius: 28px; background: var(--cream); text-align: center; box-shadow: 0 2rem 4rem -1.5rem oklch(10% 0.03 150 / 0.6); }
.download-logo { width: 8rem; margin-inline: auto; }
.download h1 { margin-top: 1.5rem; font-size: 2.5rem; line-height: 1; }
.download-card > p { margin-top: 0.6rem; color: var(--ink-soft); }
.store-links { display: grid; gap: 0.7rem; margin-top: 1.5rem; }
.store-link { display: grid; min-height: 3.6rem; place-content: center; border-radius: 16px; background: var(--ink); color: var(--cream); font: 600 1.1rem/1.2 var(--sans); text-decoration: none; }
.store-link small { font-size: 0.8rem; font-weight: 500; opacity: 0.75; }
.store-link.is-other { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.download .back { display: inline-block; margin-top: 1.25rem; color: var(--mustard-deep); font-weight: 600; }
