/* Maggie's Cookbook landing page. The ink-wash cookbook (docs/DESIGN.md) on the web:
   paper, sepia-black Garamond, art straight on the page, one terracotta action. Tokens = packages/shared/src/palette.ts.
   Phones show real App Store captures (apps/app/fastlane/store-screenshots) and the App Store preview video. */
:root {
  --paper: #fffdf9;
  --paper-deep: #f6f1e8;
  --card: #ffffff;
  --ink: #231e1a;
  --ink-soft: #5f574f;
  --ink-mid: #7a7168;
  --ink-faint: #a39a8f;
  --sepia: #8c6b52;
  --sepia-deep: #75573f;
  --hairline: #eae2d6;
  --accent: #d9744a;
  --accent-soft: #fbe9df;
  --wash-ochre: #f7eedc;
  --wash-sage: #edf0e4;
  --wash-rose: #f8e8e2;
  --wash-sky: #e9eff0;
  --serif: "EB Garamond", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --slow: cubic-bezier(.33, 0, .2, 1);
  --gutter: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink-soft); font: 18px/1.6 var(--serif); overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--hairline); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--sepia); }
h1, h2, h3 { color: var(--ink); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(34px, 4.4vw, 50px); line-height: 1.08; text-wrap: balance; }
h1 em, h2 em { color: var(--sepia); }
.eyebrow { font: 600 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sepia); margin: 0 0 14px; }
.lede { font-size: 20px; line-height: 1.55; margin: 18px 0 0; max-width: 32em; }
.aside { font-style: italic; color: var(--sepia); }
.dek { font-style: italic; color: var(--sepia); font-size: 21px; margin: 12px 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ─── Bar ─── */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px max(var(--gutter), calc((100vw - 1180px) / 2));
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .4s;
}
.bar.scrolled { border-color: var(--hairline); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: auto; }
.bar nav { display: flex; align-items: center; gap: 26px; font: 500 14px var(--sans); }
.bar nav a { text-decoration: none; color: var(--ink-soft); }
.bar nav a:hover { color: var(--ink); }
.bar .get { color: var(--ink); border: 1px solid var(--hairline); padding: 7px 14px; border-radius: 999px; background: var(--card); }
@media (max-width: 640px) { .bar nav a:not(.get) { display: none; } }

/* ─── Primary action: the one terracotta thing ─── */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: #fff; text-decoration: none;
  font: 600 19px var(--sans); padding: 14px 26px; border-radius: 999px;
  transition: transform .5s var(--slow), background .3s;
}
.cta:hover { background: #c9663e; transform: translateY(-1px); }
.cta.wide { display: flex; width: 100%; margin-top: 26px; }

/* ─── Device: a real capture in a thin ink bezel ─── */
.device {
  --w: 300px;
  position: relative; width: var(--w); flex: none;
  border: calc(var(--w) * .03) solid var(--ink);
  border-radius: calc(var(--w) * .165);
  overflow: hidden; background: var(--paper);
  box-shadow: 0 0 0 1px #3a322b, 0 50px 90px -40px rgba(70, 48, 30, .45), 0 16px 34px -18px rgba(70, 48, 30, .3);
  isolation: isolate;
}
.device > img, .device > video { width: 100%; height: auto; aspect-ratio: 640 / 1386; object-fit: cover; }

/* ─── Hero ─── */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px;
  max-width: 1180px; margin: 0 auto; padding: 56px var(--gutter) 72px;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(46px, 6vw, 76px); line-height: .98; letter-spacing: -0.02em; }
.hero h1 em { font-style: italic; }
@media (min-width: 901px) { .hero h1 em { white-space: nowrap; } }
.hero .dek { max-width: 26em; font-size: 22px; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin-top: 34px; }
.actions .aside { font-size: 17px; }
.hero-stage { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; }
.hero-device { --w: 318px; }
.chapters { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; width: 360px; }
.chapters li {
  flex: 1; cursor: pointer; font: 500 11.5px/1.3 var(--sans); color: var(--ink-mid); text-align: center;
  display: grid; gap: 7px; transition: color .4s;
}
.chapters li i { display: block; height: 2px; border-radius: 1px; background: var(--hairline); overflow: hidden; position: relative; }
.chapters li i::after { content: ""; position: absolute; inset: 0; background: var(--sepia); transform-origin: left; transform: scaleX(var(--p, 0)); }
.chapters li.active { color: var(--ink); }


/* ─── Sources ─── */
.sources {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px;
  max-width: 1180px; margin: 0 auto; padding: 22px var(--gutter);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); font-size: 19px; color: var(--ink);
}
.sources b { font-weight: 400; }
.sources i { width: 4px; height: 4px; background: var(--sepia); transform: rotate(45deg); opacity: .6; }

/* ─── Feature rows ─── */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px;
  max-width: 1180px; margin: 0 auto; padding: 120px var(--gutter);
}
.feature + .feature { border-top: 1px solid var(--hairline); }
.feature.flip .feature-copy { order: 2; }
.feature-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 680px; }
.feature-stage::before { /* a faint round wash behind the phone, never a box */
  content: ""; position: absolute; width: 520px; height: 520px; top: 50%; left: 50%; translate: -50% -50%;
  border-radius: 50%; background: radial-gradient(closest-side, var(--wash-ochre), transparent); z-index: -1;
}
#cook .feature-stage::before { background: radial-gradient(closest-side, var(--wash-rose), transparent); }
#plan .feature-stage::before { background: radial-gradient(closest-side, var(--wash-sage), transparent); }
#ask .feature-stage::before { background: radial-gradient(closest-side, var(--wash-sky), transparent); }

/* step lists that follow a cycling phone */
.steps, .ways { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: s; }
.steps li, .ways li { position: relative; border-top: 1px solid var(--hairline); cursor: pointer; }
.steps li:last-child, .ways li:last-child { border-bottom: 1px solid var(--hairline); }
.steps li::after, .ways li::after { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--sepia); }
.steps li.active::after, .ways li.active::after { width: 100%; transition: width var(--dur, 3s) linear; }
.steps li { padding: 14px 0 14px 46px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 4px; top: 10px; font: italic 26px/1 var(--serif); color: var(--ink-mid); transition: color .5s; }
.steps li.active::before { color: var(--accent); }
.steps b, .ways b { display: block; font: 500 19px/1.3 var(--serif); color: var(--ink-soft); transition: color .5s; }
.steps span, .ways span { display: block; font-size: 16px; color: var(--ink-mid); }
.steps li.active b, .ways li.active b { color: var(--ink); }
.ways li { display: flex; align-items: center; gap: 16px; padding: 10px 12px; margin: 0 -12px; border-radius: 4px; transition: background .6s var(--slow); }
.ways li.active { background: linear-gradient(90deg, var(--wash-ochre), color-mix(in srgb, var(--wash-ochre) 0%, transparent)); }
.ways li::after { left: 12px; right: 12px; }
.ways li.active::after { width: calc(100% - 24px); }
.ways img { opacity: .7; } .ways li.active img { opacity: 1; }
.ways img { width: 58px; height: 58px; object-fit: contain; flex: none; transition: transform .8s var(--slow); }
.ways li.active img { transform: scale(1.12) rotate(-3deg); }

.facts { list-style: none; padding: 0; margin: 30px 0 0; }
.facts li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid var(--hairline); font-size: 18px; }
.facts li:last-child { border-bottom: 1px solid var(--hairline); }
.facts li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 5px; height: 5px; background: var(--sepia); transform: rotate(45deg); }
.facts b { font-weight: 500; color: var(--ink); }

/* Ways in: a spotlight that walks down the real Add screen */
.spot {
  position: absolute; left: 3%; right: 3%; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 1.5px var(--sepia), 0 0 0 2000px rgba(35, 30, 26, .14);
  transition: top .9s var(--slow), height .9s var(--slow), opacity .6s;
}
.ring { display: none; }

/* A pair of phones: the back one, then the front one slides over it */
.pair .device { position: absolute; transition: transform 1.1s var(--slow), opacity 1.1s var(--slow); }
.pair .back { transform: translateX(-30%) rotate(-3deg); }
.pair .front { transform: translateX(44%) translateY(4%) rotate(3deg); opacity: 0; }
.pair.s1 .front, #plan .pair.s2 .front { opacity: 1; transform: translateX(34%) translateY(3%) rotate(2deg); }
#plan .pair.s1:not(.s2) .front { opacity: 0; transform: translateX(44%) translateY(4%) rotate(3deg); }
.pair.s1 .back { transform: translateX(-36%) rotate(-4deg) scale(.96); }
#plan .pair.s1:not(.s2) .back { transform: translateX(-30%) rotate(-3deg); }
#plan .pair.s2 .back { transform: translateX(-36%) rotate(-4deg) scale(.96); }

.tap {
  position: absolute; width: 16%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: rgba(35, 30, 26, .22); opacity: 0; transform: scale(.4); pointer-events: none;
}
[data-step="1"] .tap { animation: tap 1s .5s var(--slow) both; }
@keyframes tap {
  0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1); }
  70% { opacity: .8; transform: scale(.86); } 100% { opacity: 0; transform: scale(1.15); }
}
.check {
  position: absolute; left: 90.8%; width: 5.4%; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%;
  background: var(--ink); transform: scale(0); transition: transform .45s var(--slow);
}
.check::after { content: ""; position: absolute; left: 34%; top: 18%; width: 28%; height: 50%; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.s2 .check { transform: scale(1); }
.s2 .check:nth-of-type(1) { transition-delay: 1.4s; } .s2 .check:nth-of-type(2) { transition-delay: 2.2s; }
.s2 .check:nth-of-type(3) { transition-delay: 3s; } .s2 .check:nth-of-type(4) { transition-delay: 3.8s; }

/* Ask: the question appears, then the answer writes itself down the real screen */
.cover { position: absolute; left: 2%; right: 2%; background: var(--paper); pointer-events: none; }
.cover.q { transition: opacity .6s var(--slow); }
.s1 .cover.q { opacity: 0; }
.cover.a { clip-path: inset(0 0 0 0); }
.s2 .cover.a { clip-path: inset(100% 0 0 0); transition: clip-path 3.6s cubic-bezier(.45, .05, .55, .95); }
.cover.a::before { /* typing dots while it thinks */
  content: "• • •"; position: absolute; left: 4%; top: 6px; font: 18px var(--sans); letter-spacing: 2px; color: var(--ink-faint);
  opacity: 0; transition: opacity .3s;
}
[data-step="1"] .cover.a::before { opacity: 1; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ─── Pantry belts ─── */
.pantry { padding: 110px 0 120px; background: var(--paper-deep); overflow: hidden; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.pantry .eyebrow { color: var(--sepia-deep); }
.pantry-head { max-width: 760px; margin: 0 auto 56px; padding: 0 var(--gutter); text-align: center; }
.pantry-head .lede { margin-inline: auto; }
.belt { display: flex; width: max-content; gap: 34px; padding: 10px 0; animation: belt 90s linear infinite; }
.belt.rev { animation-direction: reverse; animation-duration: 110s; margin-top: 22px; }
.belt:hover { animation-play-state: paused; }
.belt figure { margin: 0; width: 118px; text-align: center; flex: none; }
.belt img { width: 118px; height: 118px; object-fit: contain; transition: transform 1s var(--slow); }
.belt figure:hover img { transform: translateY(-6px) rotate(-3deg); }
.belt figcaption { font: italic 16px var(--serif); color: var(--sepia-deep); margin-top: 2px; }
@keyframes belt { to { transform: translateX(-50%); } }

/* ─── Your cookbook: three phones fanned ─── */
.shelfwide { max-width: 1180px; margin: 0 auto; padding: 120px var(--gutter) 100px; }
.shelf-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.shelf-head .lede { margin-inline: auto; }
.fan { display: flex; justify-content: center; align-items: flex-start; gap: 0; }
.fan figure { margin: 0 -18px; display: grid; justify-items: center; gap: 18px; transition: transform 1.2s var(--slow), opacity 1.2s var(--slow); }
.fan .device { --w: 270px; }
.fan figcaption { font: italic 17px var(--serif); color: var(--sepia); }
.fan figure:first-child { transform: translate(40px, 40px) rotate(-5deg); }
.fan figure:last-child { transform: translate(-40px, 40px) rotate(5deg); }
.fan figure.mid { position: relative; z-index: 2; }
.fan.in figure:first-child { transform: translate(0, 34px) rotate(-4deg); }
.fan.in figure:last-child { transform: translate(0, 34px) rotate(4deg); }
.fan[data-reveal] { opacity: 1; transform: none; }

/* ─── Pricing ─── */
.pricing { max-width: 980px; margin: 0 auto; padding: 120px var(--gutter); border-top: 1px solid var(--hairline); }
.pricing-head { text-align: center; max-width: 720px; margin: 0 auto; }
.pricing-head .lede { margin-inline: auto; }
.period {
  display: flex; width: max-content; margin: 40px auto 0; padding: 4px; gap: 2px;
  border: 1px solid var(--hairline); border-radius: 999px; background: var(--card);
}
.period button {
  font: 500 14px var(--sans); color: var(--ink-soft); background: none; border: 0; cursor: pointer;
  padding: 9px 18px; border-radius: 999px; transition: background .4s var(--slow), color .4s;
}
.period button em { font: italic 14px var(--serif); color: var(--sepia); margin-left: 4px; }
.period button[aria-selected="true"] { background: var(--ink); color: #fff; }
.period button[aria-selected="true"] em { color: #e9d9c8; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; }
.tier { position: relative; background: var(--card); border: 1px solid var(--hairline); border-radius: 26px; padding: 34px 32px 32px; }
.tier img { position: absolute; right: 22px; top: 18px; width: 96px; height: auto; }
.tier h3 { font: 600 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sepia); }
.amount { font: 400 58px/1 var(--serif); color: var(--ink); margin: 14px 0 0; font-variant-numeric: lining-nums; }
.amount small { font: italic 20px var(--serif); color: var(--sepia); margin-left: 4px; }
.per { font: italic 17px var(--serif); color: var(--sepia); margin: 8px 0 0; min-height: 1.6em; }
.tier ul { list-style: none; padding: 0; margin: 26px 0 0; }
.tier li { position: relative; padding: 10px 0 10px 24px; border-top: 1px solid var(--hairline); font-size: 17px; }
.tier li::before { content: ""; position: absolute; left: 3px; top: 20px; width: 5px; height: 5px; background: var(--sepia); transform: rotate(45deg); }
.tier li b { font-weight: 500; color: var(--ink); }
.tier.pro { border-color: var(--sepia); box-shadow: 0 30px 60px -40px rgba(70, 48, 30, .35); }
.amount, .per { transition: opacity .3s; }
.swap .amount, .swap .per { opacity: 0; }

.compare { width: 100%; margin-top: 64px; border-collapse: collapse; font-size: 17px; }
.compare caption { font: 400 30px/1.2 var(--serif); color: var(--ink); text-align: left; padding-bottom: 14px; }
.compare thead th { font: 600 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sepia); text-align: center; padding: 0 0 10px; }
.compare th[scope="row"] { text-align: left; font-weight: 400; color: var(--ink); padding: 11px 12px 11px 0; }
.compare td { text-align: center; padding: 11px 8px; color: var(--ink-soft); width: 22%; }
.compare tr { border-top: 1px solid var(--hairline); }
.compare td:last-child { background: color-mix(in srgb, var(--wash-ochre) 55%, transparent); color: var(--ink); }
.compare .group th { font: italic 19px var(--serif); color: var(--sepia); text-align: left; padding: 26px 0 8px; }
.compare .group { border-top: 0; }
.compare .yes { font-family: var(--sans); color: var(--ink); }
.compare .shared { font-style: italic; vertical-align: middle; border-inline: 1px solid var(--hairline); }
.compare b { font: 500 20px var(--serif); color: var(--ink); }

.faq { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.faq details { border-top: 1px solid var(--hairline); padding: 16px 0; }
.faq summary { cursor: pointer; list-style: none; font: 500 19px var(--serif); color: var(--ink); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 22px/1 var(--sans); color: var(--sepia); transition: transform .4s var(--slow); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 8px 0 0; font-size: 17px; }

/* ─── Download + foot ─── */
.download { text-align: center; padding: 40px var(--gutter) 110px; }
.download img { width: 220px; height: auto; margin: 0 auto 6px; }
.download .dek { margin-bottom: 30px; }
.foot { max-width: 640px; margin: 0 auto; padding: 0 var(--gutter) 60px; text-align: center; font-size: 16px; }
.foot .small { font: 12px var(--sans); color: var(--ink-mid); }
.orn { display: flex; align-items: center; gap: 8px; margin: 10px 0 24px; }
.orn span { flex: 1; height: 1px; background: var(--hairline); }
.orn i { width: 5px; height: 5px; background: var(--sepia); transform: rotate(45deg); }

/* ─── Reveal on scroll ─── */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--slow), transform 1.1s var(--slow); }
[data-reveal].in { opacity: 1; transform: none; }

/* ─── The noodles in the video, laid out under the hero ─── */
.mise { max-width: 1180px; margin: 0 auto; padding: 8px var(--gutter) 40px; text-align: center; }
.mise-note { font: italic 17px var(--serif); color: var(--sepia); margin: 0 0 18px; }
.mise-note em { color: var(--ink-mid); }
.mise-row { display: flex; justify-content: center; gap: 4px; }
.mise-row figure { margin: 0; width: 80px; flex: none; display: grid; justify-items: center; gap: 2px;
  opacity: 0; transform: translateY(8px); transition: opacity .8s var(--slow), transform .8s var(--slow); }
.mise-row img { width: 76px; height: 76px; object-fit: contain; }
.mise-row figcaption { font: italic 14px/1.2 var(--serif); color: var(--ink-mid); }
.mise-row[data-reveal] { opacity: 1; transform: none; }
.mise-row.in figure { opacity: 1; transform: none; }
.mise-row.in figure:nth-child(1) { transition-delay: 0ms; }
.mise-row.in figure:nth-child(2) { transition-delay: 60ms; }
.mise-row.in figure:nth-child(3) { transition-delay: 120ms; }
.mise-row.in figure:nth-child(4) { transition-delay: 180ms; }
.mise-row.in figure:nth-child(5) { transition-delay: 240ms; }
.mise-row.in figure:nth-child(6) { transition-delay: 300ms; }
.mise-row.in figure:nth-child(7) { transition-delay: 360ms; }
.mise-row.in figure:nth-child(8) { transition-delay: 420ms; }
.mise-row.in figure:nth-child(9) { transition-delay: 480ms; }
.mise-row.in figure:nth-child(10) { transition-delay: 540ms; }
.mise-row.in figure:nth-child(11) { transition-delay: 600ms; }
.mise-row.in figure:nth-child(12) { transition-delay: 660ms; }
.mise-row.in figure:nth-child(13) { transition-delay: 720ms; }
.mise-row.in figure:nth-child(14) { transition-delay: 780ms; }

/* ─── Trails: a dotted pen line and a few ingredients leading from one section's phone to the next ─── */
.trail { position: relative; z-index: 2; max-width: 1180px; height: 230px; margin: -112px auto; pointer-events: none; }
.trail[data-reveal] { opacity: 1; transform: none; }
.trail svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; clip-path: inset(0 0 100% 0); transition: clip-path 1.8s var(--slow); }
.trail path { fill: none; stroke: var(--sepia); stroke-opacity: .6; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.5 8; }
.trail img { position: absolute; width: var(--s); height: auto; translate: -50% -50%; rotate: var(--r); opacity: 0; scale: .85; transition: opacity .7s var(--slow), scale .7s var(--slow); }
.trail.in svg { clip-path: inset(0 0 -10% 0); }
.trail.in img { opacity: 1; scale: 1; }

/* ─── Narrow screens ─── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 44px; gap: 48px; }
  .hero .dek { margin-inline: auto; }
  .actions { justify-content: center; }
  .feature { grid-template-columns: 1fr; gap: 40px; padding: 88px var(--gutter); }
  .feature.flip .feature-copy { order: 0; }
  .fan .device { --w: 220px; }
  .trail { height: 200px; margin: -80px auto; }
}
@media (max-width: 720px) {
  .tiers, .faq { grid-template-columns: 1fr; }
  .fan figure:not(.mid) { display: none; }
  .fan .device { --w: 270px; }
  .compare { font-size: 15px; }
  .compare td { width: 26%; }
}
@media (max-width: 480px) {
  .mise-row { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .mise-row::-webkit-scrollbar { display: none; }
  .mise-row figure { scroll-snap-align: start; }
  .trail { height: 190px; margin: -70px auto; }
  body { font-size: 17px; }
  .lede { font-size: 18px; }
  .hero-device { --w: 280px; }
  .chapters { width: 100%; }
  .feature-stage { min-height: 560px; }
  .feature-stage > .device, .pair .device { --w: 250px; }
  .pair .device { --w: 220px; }
  .feature-stage.pair { min-height: 500px; }
  .pair .back, #plan .pair.s1:not(.s2) .back { transform: translateX(-24%) rotate(-3deg); }
  .pair.s1 .back, #plan .pair.s2 .back { transform: translateX(-28%) rotate(-4deg) scale(.96); }
  .pair.s1 .front, #plan .pair.s2 .front { transform: translateX(24%) translateY(3%) rotate(2deg); }
  .feature-stage::before { width: 360px; height: 360px; }
  .belt figure, .belt img { width: 92px; } .belt img { height: 92px; }
  .period button { padding: 9px 12px; }
  .tier { padding: 28px 22px 24px; }
  .tier img { width: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .belt { flex-wrap: wrap; width: auto; justify-content: center; }
}
