/* Lost Remedies website. Same palette and type as the app (src/ui/theme.ts): warm cream, deep green,
   ochre, Fraunces for headings and Source Sans 3 for everything else. Sized for someone reading at 58. */

:root {
  --cream: #FBF7F0;
  --paper: #FFFFFF;
  --cream-2: #F3EDE1;
  --cream-3: #EDE3D0;
  --ink: #1E2A24;
  --muted: #5F6B64;
  --faint: #8A948E;
  --line: #E6DFD2;
  --green: #2E5E4E;
  --green-deep: #1F4437;
  --green-soft: #E4EFE9;
  --olive: #6E7F3C;
  --olive-deep: #4A5827;
  --terracotta: #C8663B;
  --terracotta-soft: #F7E3D8;
  --gold: #D9A441;
  --gold-soft: #FBF0D9;
  --danger: #B8433A;
  --danger-soft: #F8E3E0;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(18px, 4vw, 44px);
  --shadow-print: 0 1px 2px rgba(30, 42, 36, .08), 0 16px 34px -16px rgba(30, 42, 36, .38);
  --shadow-card: 0 1px 0 var(--line), 0 20px 44px -30px rgba(30, 42, 36, .32);
  --pw: 260px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--cream);
  /* a whisper of paper grain */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.16  0 0 0 0 0.14  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.25rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
h1 { font-size: clamp(2.6rem, 1.85rem + 3vw, 4.4rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); }
h3 { font-size: clamp(1.45rem, 1.3rem + .5vw, 1.7rem); }
p { margin: 0; }
.lead { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.45rem); line-height: 1.5; color: var(--muted); }
.eyebrow {
  display: block;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .88);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 42px; height: 42px; flex: none; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.nav a:hover { color: var(--green); }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 480px) {
  .site-header .wrap { height: 68px; gap: 12px; }
  .site-header .brand { font-size: 1.2rem; gap: 9px; }
  .site-header .brand svg { width: 34px; height: 34px; }
  .btn.small { min-height: 42px; padding: 0 16px; font-size: .95rem; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 28px; border-radius: 999px;
  background: var(--green); color: #fff;
  font-family: var(--body); font-weight: 700; font-size: 1.1rem; text-decoration: none;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn.small { min-height: 46px; padding: 0 20px; font-size: 1rem; }
.btn.ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn.ghost:hover { background: var(--green-soft); }

.store { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .15s ease, opacity .15s ease; }
.store img { height: 62px; width: auto; display: block; }
.store.small img { height: 50px; }
.store:hover { transform: translateY(-1px); opacity: .92; }

/* ---------- phone and prints ---------- */
.phone {
  position: relative;
  width: var(--pw);
  aspect-ratio: 644 / 1400;
  border-radius: calc(var(--pw) * .165);
  background: #151815;
  padding: calc(var(--pw) * .03);
  box-shadow: 0 0 0 1.5px #3b403b, 0 30px 44px -18px rgba(31, 68, 55, .38);
  flex: none;
}
.phone img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  border-radius: calc(var(--pw) * .135);
  background: #fff;
}
.phone::after {
  content: ""; position: absolute;
  top: calc(var(--pw) * .052); left: 50%; transform: translateX(-50%);
  width: calc(var(--pw) * .29); height: calc(var(--pw) * .075);
  background: #000; border-radius: 999px;
}
.phone.crop { aspect-ratio: auto; height: var(--ph, 320px); border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; }
.phone.crop img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.print {
  position: relative; margin: 0;
  background: #fff; padding: 3.2% 3.2% 0;
  box-shadow: var(--shadow-print);
  transform: rotate(var(--r, 0deg));
}
.print img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.print figcaption {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(.95rem, .85rem + .5vw, 1.2rem); color: var(--muted);
  text-align: center; padding: 9px 4px 11px; letter-spacing: .01em;
  font-variation-settings: "SOFT" 60, "WONK" 1;
}
.print.tape::before {
  content: ""; position: absolute; top: -11px; left: 50%; z-index: 2;
  width: 40%; height: 22px;
  background: rgba(217, 164, 65, .45);
  transform: translateX(-50%) rotate(-4deg);
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 84px) clamp(40px, 6vw, 80px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy .lead { margin-top: 24px; max-width: 36ch; }
.hero-cta { display: flex; align-items: center; gap: 18px 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { font-size: 1.02rem; color: var(--muted); line-height: 1.35; }
.trust { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 36px 0 0; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; }
.trust svg { width: 26px; height: 26px; flex: none; color: var(--olive); }

.scene { --pw: clamp(190px, 25vw, 280px); position: relative; width: 100%; max-width: 600px; height: calc(var(--pw) * 2.5); margin-inline: auto; }
.scene::before {
  content: ""; position: absolute; inset: 8% -6% 4% -6%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--gold-soft) 0%, rgba(251, 240, 217, .55) 55%, rgba(251, 240, 217, 0) 100%);
}
/* slots hold the positions and take the pointer drift; the prints and phone animate inside them */
.scene .slot { position: absolute; width: calc(var(--pw) * .8); z-index: 1; transform: translate(var(--px, 0px), var(--py, 0px)); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.scene .slot-a { left: 0; top: 0; }
.scene .slot-b { right: 0; top: 5%; }
.scene .slot-c { left: 2%; bottom: 2%; }
.scene .slot-d { right: 1%; bottom: 0; }
.scene .slot-phone { left: 50%; top: 50%; width: var(--pw); z-index: 2; transform: translate(calc(-50% + var(--px, 0px)), calc(-50% + var(--py, 0px))); }
.scene .slot .print { width: 100%; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { text-align: left; }
  .scene { --pw: clamp(168px, 44vw, 230px); margin-top: 8px; }
}

/* ---------- bands and sections ---------- */
.band { background: var(--green-deep); color: var(--cream); padding-block: clamp(56px, 8vw, 104px); }
.band .wrap { text-align: center; }
.band .rule { width: 56px; height: 3px; background: var(--gold); margin: 0 auto 28px; border-radius: 2px; }
.band p {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.5rem); line-height: 1.25;
  max-width: 28ch; margin-inline: auto; text-wrap: balance;
  font-variation-settings: "SOFT" 70, "WONK" 1;
}

.section { padding-block: clamp(56px, 8vw, 112px); }
.section.alt { background: var(--cream-2); }
.section-head { max-width: 50ch; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.3rem); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.why-copy .lead { margin-top: 18px; color: var(--ink); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.3rem); }
.why-copy h2 + .lead { margin-top: 24px; }
.believe { background: var(--paper); border-radius: 26px; padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow-card); border-top: 6px solid var(--olive); position: sticky; top: 100px; }
.believe ol { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: b; display: grid; gap: 20px; }
.believe li { position: relative; padding-left: 54px; font-size: 1.08rem; color: var(--muted); counter-increment: b; line-height: 1.5; }
.believe li::before { content: counter(b); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-family: var(--display); font-weight: 600; font-size: 1.2rem; display: grid; place-items: center; }
.believe li strong { display: block; color: var(--ink); font-size: 1.15rem; margin-bottom: 4px; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } .believe { position: static; } }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--paper); border-radius: 26px; padding: 30px 28px 0;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column; overflow: hidden;
}
.step-n {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  font-family: var(--display); font-weight: 600; font-size: 1.4rem;
  display: grid; place-items: center; margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 1.1rem; }
.step-visual {
  margin: 26px -28px 0; background: var(--cream-2);
  padding: 26px 26px 0; height: 300px; overflow: hidden;
  display: flex; justify-content: center; align-items: flex-start;
}
.step-visual .phone { --pw: 210px; --ph: 330px; }
.mini {
  background: var(--paper); border-radius: 22px 22px 0 0;
  padding: 22px 20px; width: 100%; max-width: 310px;
  box-shadow: 0 -10px 30px -18px rgba(30, 42, 36, .45);
}
.mini-label { font-family: var(--display); font-weight: 600; font-size: 1.15rem; display: block; margin-bottom: 12px; }
.mini-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mini-chips li { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: .98rem; font-weight: 600; background: var(--cream); }
.mini-chips li.on { background: var(--green); border-color: var(--green); color: #fff; }
.mini-chips li.on::before { content: "\2713\00a0"; }

.week {
  margin-top: 28px; background: var(--paper); border-radius: 30px;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.week-copy { padding: clamp(28px, 4vw, 56px); }
.week-copy p { margin-top: 14px; color: var(--muted); font-size: 1.15rem; }
.week-media { background: var(--green-soft); align-self: stretch; display: flex; justify-content: center; align-items: flex-start; gap: 22px; padding: 44px 24px 0; overflow: hidden; max-height: 420px; }
.week-media .phone { --pw: 230px; --ph: 400px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .week { grid-template-columns: 1fr; }
  .week-media { max-height: 360px; }
  .week-media .phone { --pw: 200px; --ph: 340px; }
}

/* ---------- features ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center;
  padding-block: clamp(36px, 5vw, 64px);
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-child(even) .feature-media { order: -1; }
.feature-media {
  background: var(--cream-2); border-radius: 30px; padding: clamp(24px, 4vw, 44px);
  display: flex; justify-content: center; position: relative; overflow: hidden; min-height: 420px; align-items: center;
}
.feature-media .phone { --pw: clamp(200px, 24vw, 262px); }
.feature-media .print { position: absolute; width: 34%; z-index: 0; }
.feature-media .print.ne { right: -3%; top: 6%; --r: 7deg; }
.feature-media .print.sw { left: -3%; bottom: 6%; --r: -6deg; }
.feature-media .print.se { right: -2%; bottom: 6%; --r: 5deg; }
.feature-media .phone { z-index: 1; }
.feature-copy h2 { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); }
.feature-copy .lead { margin-top: 16px; font-size: 1.2rem; }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.1rem; }
.points svg { width: 24px; height: 24px; flex: none; color: var(--olive); margin-top: 4px; }
.quote {
  background: var(--paper); border-radius: 22px; padding: 24px 28px; margin-top: 26px;
  box-shadow: var(--shadow-print); border-left: 5px solid var(--gold);
}
.quote p { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.2rem; line-height: 1.45; font-variation-settings: "SOFT" 60, "WONK" 1; }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-size: .95rem; color: var(--muted); font-weight: 600; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-media { min-height: 0; }
}

/* ---------- kitchen strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 24px; padding: 12px 6px; }
.strip .print { transition: transform .25s ease; }
.strip .print:hover { transform: rotate(0deg) translateY(-4px); }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }

/* ---------- safety ---------- */
.safety {
  background: var(--green-soft); border-radius: 32px; padding: clamp(28px, 5vw, 60px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: start;
}
.safety .lead { margin-top: 16px; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 1rem; }
.chips-label { display: block; margin-top: 28px; font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.stop { background: var(--paper); border-radius: 22px; padding: 26px 28px; border-top: 6px solid var(--danger); box-shadow: var(--shadow-print); }
.stop h3 { margin-bottom: 10px; }
.stop p { color: var(--muted); font-size: 1.1rem; }
.stop .list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.stop .list li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.stop .list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); flex: none; }
@media (max-width: 900px) { .safety { grid-template-columns: 1fr; } }

/* ---------- price ---------- */
.price-card {
  background: var(--paper); border-radius: 30px; padding: clamp(28px, 5vw, 56px);
  max-width: 760px; margin-inline: auto; text-align: center; box-shadow: var(--shadow-card);
}
.price-card .lead { margin-top: 16px; }
.price-card .hero-cta { justify-content: center; }

/* ---------- faq ---------- */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 1.15rem + .4vw, 1.45rem); line-height: 1.25;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--body); font-weight: 400; font-size: 2.1rem; line-height: 1;
  color: var(--green); flex: none; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 64ch; font-size: 1.15rem; }

/* ---------- cta ---------- */
.cta { background: var(--green-deep); color: var(--cream); padding-block: clamp(64px, 9vw, 120px); text-align: center; }
.cta .mark { width: 92px; height: 92px; margin: 0 auto 26px; display: block; }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta .lead { color: rgba(251, 247, 240, .8); margin: 18px auto 0; max-width: 40ch; }
.cta .hero-cta { justify-content: center; }
.cta .hero-note { color: rgba(251, 247, 240, .7); }

/* ---------- footer ---------- */
.footer { background: var(--cream-2); border-top: 1px solid var(--line); padding-block: 44px 36px; font-size: 1rem; color: var(--muted); }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.footer .brand { font-size: 1.25rem; }
.footer .brand svg { width: 34px; height: 34px; }
.footer-note { margin-top: 16px; max-width: 58ch; }
.footer-copy { margin-top: 14px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer a:hover { color: var(--green); }
.footer .contact { margin-top: 14px; }
@media (max-width: 720px) { .footer .wrap { grid-template-columns: 1fr; } }

/* ---------- document pages ---------- */
.doc-hero { padding-block: clamp(40px, 6vw, 80px) 0; }
.doc-hero h1 { font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem); }
.updated { color: var(--muted); font-size: 1.05rem; margin-top: 16px; }
.doc { max-width: 760px; padding-block: 28px clamp(56px, 8vw, 112px); }
.doc h2 { font-size: clamp(1.6rem, 1.4rem + .7vw, 1.9rem); margin: 52px 0 12px; }
.doc h3 { font-size: 1.3rem; margin: 28px 0 8px; }
.doc p, .doc li { font-size: 1.2rem; line-height: 1.6; }
.doc p + p { margin-top: 16px; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 12px 0; }
.doc li + li { margin-top: 8px; }
.doc a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.doc a.btn { color: #fff; text-decoration: none; }
.summary { background: var(--gold-soft); border-radius: 22px; padding: 26px 28px; margin-top: 32px; }
.summary h2 { margin: 0 0 10px; font-size: 1.4rem; }
.summary ul { margin-bottom: 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 1.1rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; color: var(--ink); }
.notice { background: var(--danger-soft); border-left: 5px solid var(--danger); border-radius: 0 18px 18px 0; padding: 20px 24px; margin: 28px 0; }
.notice p { font-size: 1.15rem; }

/* support */
.email-card {
  background: var(--paper); border-radius: 26px; padding: clamp(24px, 4vw, 40px); margin-top: 32px;
  box-shadow: var(--shadow-card); display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between;
}
.email-card .addr { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); letter-spacing: -.01em; word-break: break-all; }
.email-card .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.email-card .copied { font-size: 1rem; color: var(--green); font-weight: 700; min-width: 6ch; }
.help-list { display: grid; gap: 20px; margin-top: 8px; }
.help { background: var(--paper); border-radius: 22px; padding: 24px 28px; box-shadow: var(--shadow-card); }
.help h3 { margin: 0 0 8px; }
.help p, .help li { color: var(--muted); font-size: 1.15rem; }
.help ol { margin: 10px 0 0; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.rise.d1 { animation-delay: .08s; }
.rise.d2 { animation-delay: .16s; }
.rise.d3 { animation-delay: .24s; }
.rise.d4 { animation-delay: .32s; }

/* the hero: prints settle onto the table one by one, the phone rises and then breathes */
@keyframes settle { from { opacity: 0; transform: rotate(calc(var(--r, 0deg) * 3)) translateY(-18px) scale(1.06); } to { opacity: 1; transform: rotate(var(--r, 0deg)); } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(32px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes phoneFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes glowIn { from { opacity: 0; } to { opacity: 1; } }
.scene::before { animation: glowIn 1.4s ease-out both; }
.scene .slot .print { animation: settle .9s cubic-bezier(.2, .7, .2, 1) both; }
.scene .slot-a .print { animation-delay: .4s; }
.scene .slot-b .print { animation-delay: .55s; }
.scene .slot-c .print { animation-delay: .7s; }
.scene .slot-d .print { animation-delay: .85s; }
.scene .phone { animation: phoneIn 1s cubic-bezier(.2, .7, .2, 1) .2s both, phoneFloat 7s ease-in-out 1.5s infinite; }

/* reveal on scroll: only when the script is running and motion is allowed */
.js:not(.no-reveal) .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js:not(.no-reveal) .reveal.in { opacity: 1; transform: none; }
.js:not(.no-reveal) .stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.js:not(.no-reveal) .stagger.in > * { opacity: 1; transform: none; }

/* the kitchen prints land and settle into their tilt */
.js:not(.no-reveal) .strip.stagger > .print { transform: rotate(calc(var(--r, 0deg) * 3)) translateY(24px) scale(1.04); transition-delay: calc(var(--i, 0) * 90ms); }
.js:not(.no-reveal) .strip.stagger.in > .print { transform: rotate(var(--r, 0deg)); }
.js:not(.no-reveal) .strip.stagger.in > .print:hover { transform: rotate(0deg) translateY(-4px); transition-delay: 0s; transition-duration: .25s; }

/* the band, a word at a time */
.js:not(.no-reveal) .band .w { display: inline-block; opacity: .16; transform: translateY(5px); transition: opacity .55s ease, transform .55s ease; transition-delay: calc(var(--i, 0) * 45ms); }
.js:not(.no-reveal) .band.in .w { opacity: 1; transform: none; }

/* the chips tick themselves once the step is on screen */
.js:not(.no-reveal) .mini-chips li.on { background: var(--cream); border-color: var(--line); color: var(--ink); transition: background .35s ease, border-color .35s ease, color .35s ease; transition-delay: calc(.7s + var(--i, 0) * .32s); }
.js:not(.no-reveal) .mini-chips li.on::before { display: inline-block; width: 0; opacity: 0; overflow: hidden; vertical-align: bottom; transition: width .35s ease, opacity .35s ease; transition-delay: calc(.7s + var(--i, 0) * .32s); }
.js:not(.no-reveal) .steps.in .mini-chips li.on { background: var(--green); border-color: var(--green); color: #fff; }
.js:not(.no-reveal) .steps.in .mini-chips li.on::before { width: 1.15em; opacity: 1; }

/* a cropped screen scrolls a little, like someone reading it */
@keyframes pan { from { object-position: 50% 0%; } to { object-position: 50% 75%; } }
.js:not(.no-reveal) .steps.in .phone.crop img, .js:not(.no-reveal) .week.in .phone.crop img { animation: pan 12s ease-in-out 1.5s both; }

/* answers ease open */
@keyframes fadeUp { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq details[open] > p { animation: fadeUp .35s ease both; }

/* steam off the teacup */
.leaf { transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes steam { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-3px) rotate(-6deg); } }
.cta .mark .leaf { animation: steam 4.2s ease-in-out infinite; }
.cta .mark .leaf-2 { animation-duration: 5.1s; animation-delay: -2.2s; }
.brand:hover .leaf { animation: steam 1.4s ease-in-out infinite; }
.brand:hover .leaf-2 { animation-delay: -.5s; }

/* phones lift under the pointer */
.feature-media .phone { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.feature-media:hover .phone { transform: translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .scene::before, .scene .slot .print, .scene .phone, .cta .mark .leaf, .brand:hover .leaf, .faq details[open] > p,
  .steps.in .phone.crop img, .week.in .phone.crop img { animation: none; }
  .btn, .store, .strip .print, .scene .slot, .feature-media .phone { transition: none; }
}
