/* Layout concept: one day in a meadow, top to bottom.
   Dawn hero (painted canvas meadow + live wheel) → morning sky (three keys) →
   night garden (a glowing vine grows through the features) → firefly privacy →
   golden-hour pricing → quiet footer. One deliberate look, not light/dark themed. */
:root {
  /* Sky and meadow */
  --lavender: #b9a8e0;
  --peach: #f6b89c;
  --sun: #f6c453;
  --sun-deep: #e3a126;
  --meadow: #5e8f4e;
  --sage: #8db98a;
  --poppy: #e0568f;
  --forget: #7fb0ec;

  /* Grounds and ink */
  --morning: #eef0fb;
  --morning-2: #fbf1ea;
  --ink: #23213a;
  --ink-soft: #5b5875;
  --night: #12131d;
  --night-2: #1a1c2b;
  --night-ink: #efebf8;
  --night-soft: #a9a6c2;
  --line: rgba(35, 33, 58, 0.12);
  --night-line: rgba(239, 235, 248, 0.12);

  /* Type: Apple's New York for display, SF Rounded for text (same as the app), no font downloads */
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Bradley Hand", "Segoe Print", "Comic Neue", cursive;

  --step-hero: clamp(2.4rem, 5.4vw, 4.6rem);
  --step-h2: clamp(2rem, 4.2vw, 3.4rem);
  --step-h3: clamp(1.35rem, 2vw, 1.6rem);
  --step-body: 1.0625rem;
  --step-small: 0.9rem;
  --step-label: 0.74rem;

  --radius: 18px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--morning);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 em, h2 em { font-style: italic; font-weight: 500; }
p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.label {
  font-size: var(--step-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font: 700 1rem/1 var(--sans);
  padding: 0.95em 1.4em;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(227, 161, 38, 0.8), inset 0 -2px 0 rgba(0, 0, 0, 0.08); }
.btn-sun:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(227, 161, 38, 0.9); }
.btn-ghost { background: rgba(255, 255, 255, 0.78); color: var(--ink); }
.btn-ghost:hover { background: #fff; }
.btn .price { font-weight: 600; opacity: 0.75; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled { background: rgba(251, 247, 252, 0.9); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 0.95rem; font-weight: 600; }
.nav-links a { text-decoration: none; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-links a:hover { text-decoration: underline; text-decoration-color: var(--sun); }
.nav .btn { padding: 0.7em 1.1em; font-size: 0.92rem; }
.lang {
  display: inline-flex; padding: 3px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(35, 33, 58, 0.08); color: inherit; font: 700 0.75rem/1 var(--sans); letter-spacing: 0.06em;
}
/* Both halves are equal pills with the label centred in them, independent of font metrics. */
.lang span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 26px; padding: 0 8px;
  border-radius: 999px; opacity: 0.6; transition: background 0.2s ease, opacity 0.2s ease;
}
.lang[data-active="en"] [data-lang="en"], .lang[data-active="de"] [data-lang="de"] { background: rgba(255, 255, 255, 0.85); color: var(--ink); opacity: 1; }
.nav.dark.scrolled .lang { background: rgba(239, 235, 248, 0.12); }
.nav-links + .lang { margin-left: 4px; }

/* ---------- Hero: painted meadow ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(110px + env(safe-area-inset-top, 0px));
  background: linear-gradient(#8fa9e0, #cdb6e4 38%, #f4b9a0 60%, #8db07a 75%, #4f7d42);
  isolation: isolate;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  /* melt into the morning section */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 110px; z-index: -1;
  background: linear-gradient(transparent, var(--morning));
}
.hero-copy { text-align: center; display: grid; justify-items: center; gap: 22px; }
.hero h1 { font-size: var(--step-hero); color: var(--ink); max-width: 20ch; }
.hero h1 em { color: #2f5d2c; }
.hero .lede { color: #3c3858; text-align: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-meta { font-size: var(--step-small); color: #3c3858; opacity: 0.85; }

/* ---------- Live wheel demo ---------- */
/* The demo runs inside a classic Mac OS X window. It has a fixed design size (--w × 470)
   and is scaled as one piece to fit, so the wheel, file and key never shift into each other. */
.stage-fit { --s: 1; --w: 680px; position: relative; width: 100%; height: calc(470px * var(--s)); margin: 46px auto 0; }
.stage {
  position: absolute; left: 50%; top: 0;
  width: var(--w); height: 470px;
  transform: translateX(-50%) scale(var(--s)); transform-origin: top center;
  border-radius: 9px; overflow: hidden;
  border: 1px solid rgba(38, 30, 58, 0.38);
  box-shadow: 0 32px 64px -24px rgba(40, 25, 70, 0.6), 0 12px 24px -12px rgba(40, 25, 70, 0.35);
  /* Desktop picture: a soft sky over two green hills */
  background:
    radial-gradient(130% 62% at 26% 112%, #5d9a4e 0 49%, transparent 49.6%),
    radial-gradient(95% 58% at 88% 118%, #7db265 0 50%, transparent 50.6%),
    radial-gradient(22% 9% at 24% 30%, rgba(255, 255, 255, 0.75), transparent 72%),
    radial-gradient(30% 10% at 70% 22%, rgba(255, 255, 255, 0.7), transparent 72%),
    radial-gradient(18% 7% at 82% 44%, rgba(255, 255, 255, 0.55), transparent 72%),
    linear-gradient(#7fa6e8, #b9b5ec 52%, #f2c8b0 80%, #f6dca8);
}
.stage-bar {
  position: absolute; inset: 0 0 auto; height: 30px; z-index: 5;
  display: flex; align-items: center; gap: 8px; padding: 0 11px;
  background: linear-gradient(#f7f7f7, #dedede);
  border-bottom: 1px solid #a7a7a7;
  box-shadow: inset 0 1px 0 #fff;
}
.stage-bar i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.stage-bar i:nth-child(1) { background: radial-gradient(circle at 50% 35%, #ff9b94, #fe5f57 55%, #e2463f); box-shadow: inset 0 0 0 0.5px #c93a33; }
.stage-bar i:nth-child(2) { background: radial-gradient(circle at 50% 35%, #ffdd8a, #febc2e 55%, #dfa023); box-shadow: inset 0 0 0 0.5px #c48a1b; }
.stage-bar i:nth-child(3) { background: radial-gradient(circle at 50% 35%, #8fe39a, #28c840 55%, #1ba82f); box-shadow: inset 0 0 0 0.5px #178a27; }
.stage-bar span {
  position: absolute; left: 0; right: 0; text-align: center; pointer-events: none;
  font: 600 13px/1 var(--sans); color: #4b4b4b; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.demo-wheel { position: absolute; left: 50%; top: 68px; width: 300px; height: 300px; margin-left: -150px; filter: drop-shadow(0 18px 30px rgba(40, 30, 70, 0.28)); }
.demo-wheel .petal { transform-box: view-box; transform-origin: 150px 150px; transition: transform 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.25), opacity 0.3s ease; }
.demo-wheel .petal path { fill: #fff; stroke: #fff; transition: fill 0.2s ease, stroke 0.2s ease; }
.demo-wheel .petal.hot path { fill: var(--sun); stroke: var(--sun); }
.demo-wheel .petal text { font: 700 12px var(--sans); letter-spacing: 0.06em; fill: var(--ink); }
.demo-wheel .base { fill: rgba(237, 240, 227, 0.9); stroke: #fff; transform-box: view-box; transform-origin: 150px 150px; transition: transform 0.4s ease, opacity 0.3s ease; }
.demo-wheel .heart { transform-box: view-box; transform-origin: 150px 150px; transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3), opacity 0.25s ease; }
.demo-wheel .heart circle { fill: #ffebb0; }
.demo-wheel .heart text { font: 600 11px var(--sans); fill: var(--ink); text-anchor: middle; }
.demo-wheel .heart .small { font-size: 8.5px; font-weight: 700; letter-spacing: 0.12em; opacity: 0.6; }
.demo-wheel.closed .petal { transform: scale(0.2) rotate(-40deg); opacity: 0; }
.demo-wheel.closed .base { transform: scale(0.3); opacity: 0; }
.demo-wheel.closed .heart { transform: scale(0.3); opacity: 0; }

.file {
  position: absolute; left: 0; top: 0; z-index: 3;
  display: grid; justify-items: center; gap: 6px;
  width: 104px;
  transition: transform 0.85s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.35s ease;
  pointer-events: none;
}
.file .thumb { width: 64px; height: 64px; border-radius: 10px; box-shadow: 0 10px 22px -8px rgba(40, 30, 70, 0.5); border: 3px solid #fff; background-size: cover; background-position: center; }
.file .thumb.doc { background: #fff; position: relative; }
.file .thumb.doc::before { content: ""; position: absolute; inset: 12px 12px auto; height: 3px; border-radius: 3px; background: #c9c3dc; box-shadow: 0 8px 0 #c9c3dc, 0 16px 0 #c9c3dc, 0 24px 0 #e1ddeb; }
.file .thumb.doc span { position: absolute; left: 6px; bottom: 6px; font: 800 9px var(--sans); color: #fff; background: var(--poppy); padding: 1px 4px; border-radius: 3px; }
.file .name { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: #1f5fd6; color: #fff; white-space: nowrap; }
.file .cursor { position: absolute; left: 58px; top: 44px; width: 20px; }
.file.new .name { background: rgba(255, 255, 255, 0.85); color: var(--ink); }

.keycap {
  position: absolute; left: 50%; bottom: 22px; margin-left: -48px; width: 96px; height: 54px; z-index: 2;
  border-radius: 11px;
  background: linear-gradient(#f0ece5, #d7d1c7);
  box-shadow: 0 6px 0 #aaa496, 0 14px 20px -6px rgba(40, 30, 70, 0.45), inset 0 1px 0 #fff;
  display: grid; place-content: center; text-align: center;
  font: 600 12px/1.2 var(--sans); color: #5c5850;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.keycap b { font-size: 14px; display: block; }
.keycap.down { transform: translateY(5px); box-shadow: 0 1px 0 #aaa496, 0 6px 12px -6px rgba(40, 30, 70, 0.45), inset 0 1px 0 #fff; }

.toast {
  position: absolute; left: 50%; top: 196px; z-index: 4;
  transform: translate(-50%, 10px) scale(0.95); opacity: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); box-shadow: 0 14px 30px -12px rgba(40, 30, 70, 0.45);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 11.5px; }
.toast svg { width: 22px; height: 22px; flex: none; }

.steps {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  /* The bottom padding leaves room for the hero's fade, so the pills sit on clear meadow above it. */
  margin: 0 auto; padding: 22px 0 130px;
  position: relative; z-index: 2;
}
.steps li {
  list-style: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.82); color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease;
}
.steps li b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(35, 33, 58, 0.1); font-size: 0.78rem; }
.steps li.on { background: #fff; color: var(--ink); }
.steps li.on b { background: var(--sun); }

/* ---------- Morning: three keys ---------- */
.morning { background: linear-gradient(var(--morning), var(--morning-2)); padding-block: 90px 110px; }
.section-head { display: grid; gap: 16px; justify-items: center; text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: var(--step-h2); }
.section-head .label { color: var(--sun-deep); }
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.key-card { display: grid; gap: 14px; justify-items: center; text-align: center; }
/* ---------- Key motion graphics: each shows what its key does ---------- */
/* They play only while visible (main.js adds .play) and rest on their first frame otherwise. */
.motion { position: relative; width: 260px; max-width: 100%; height: 200px; }
.motion, .motion * { animation-play-state: paused; }
.motion.play, .motion.play * { animation-play-state: running; }
/* Little painted photos, one motif per graphic, drawn in CSS so they stay sharp at any size. */
.m-photo { position: relative; overflow: hidden; background: linear-gradient(#9fb6e6, #d9b8de 45%, #f6bfa0 62%, #8db07a 63%, #5e8f4e); }
.m-photo::before, .m-photo::after { content: ""; position: absolute; }
/* Lavender rows under a sunset */
.p-lavender { background: radial-gradient(circle at 74% 44%, #fff1c4 0 7%, transparent 7.5%), linear-gradient(#f4a98f, #f8cf98 50%, #8a72c4 50%); }
.p-lavender::after { inset: 50% 0 0; background: repeating-linear-gradient(105deg, #7a62bd 0 5px, #a28ad8 5px 8px, #5f8f4f 8px 11px); }
/* Snowy mountains in morning light */
.p-mountain { background: linear-gradient(#8fb4ea, #d5e3f6 62%, #6f9a62 62%, #4f7d46); }
.p-mountain::before { inset: 22% -10% 34% -10%; background: linear-gradient(#ffffff 0 22%, #8b93b6 22%); clip-path: polygon(0 100%, 22% 28%, 34% 52%, 52% 0, 70% 46%, 82% 30%, 100% 100%); }
.p-mountain::after { left: 62%; top: 12%; width: 12%; aspect-ratio: 1; border-radius: 50%; background: #fff3c6; }
/* A field of poppies */
.p-poppy { background: linear-gradient(#a8cdf2, #e8f1f8 52%, #86b067 52%, #5b8c48); }
.p-poppy::after { inset: 52% 0 0; background: radial-gradient(circle, #e8503f 0 2.6px, transparent 3.2px) 0 0 / 11px 9px, radial-gradient(circle, #f07a52 0 2px, transparent 2.6px) 5px 4px / 11px 9px; }
/* A lake at dusk */
.p-lake { background: radial-gradient(ellipse 18% 12% at 30% 47%, #fff0c8 0 40%, transparent 42%), linear-gradient(#f3a6b6, #f8c9a6 46%, #5f7a63 46% 53%, #8cb2d8 53% 70%, #6b93c4); }
/* Night sky with the moon */
.p-night { background: radial-gradient(circle at 70% 30%, #fff6d4 0 9%, transparent 9.6%), radial-gradient(circle at 22% 22%, #fff 0 1.2px, transparent 1.6px), radial-gradient(circle at 42% 40%, #fff 0 1px, transparent 1.4px), radial-gradient(circle at 86% 58%, #fff 0 1px, transparent 1.4px), linear-gradient(#1d2350, #3d3b7c 64%, #2b4a39 64%, #1d3428); }
.m-file {
  position: absolute; width: 92px; height: 116px; border-radius: 10px; background: #fff;
  box-shadow: 0 14px 30px -14px rgba(40, 30, 70, 0.45), 0 0 0 1px rgba(35, 33, 58, 0.06);
  padding: 8px; display: grid; gap: 8px; align-content: start;
}
.m-file .m-photo { height: 58px; border-radius: 6px; }
.m-lines { height: 22px; background: linear-gradient(#e3dfee 0 4px, transparent 4px 9px, #e3dfee 9px 13px, transparent 13px 18px, #ece9f3 18px 22px); background-size: 100% 22px; margin-right: 18px; }

/* ⇧ Formats: the format label flips through HEIC, JPG, PNG and PDF */
.m-formats .m-file { left: calc(50% - 46px); top: 32px; transform: rotate(-4deg); }
.m-ext { position: absolute; left: -12px; bottom: 12px; height: 24px; overflow: hidden; border-radius: 6px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.35); }
.m-ext-track { display: grid; animation: ext 8s cubic-bezier(0.7, 0, 0.2, 1) infinite; }
.m-ext span { display: block; height: 24px; padding: 0 9px; font: 800 12px/24px var(--sans); letter-spacing: 0.06em; color: #fff; }
@keyframes ext {
  0%, 18% { transform: translateY(0); }
  25%, 43% { transform: translateY(-24px); }
  50%, 68% { transform: translateY(-48px); }
  75%, 93% { transform: translateY(-72px); }
  100% { transform: translateY(-96px); }
}
.m-spark { position: absolute; width: 10px; height: 16px; border-radius: 50%; background: var(--sun); opacity: 0; animation: spark 2s ease-out infinite; }
.m-spark.s1 { left: calc(50% + 52px); top: 40px; }
.m-spark.s2 { left: calc(50% + 62px); top: 70px; transform: rotate(60deg); animation-delay: 0.08s; }
.m-spark.s3 { left: calc(50% - 74px); top: 128px; transform: rotate(-50deg); animation-delay: 0.16s; background: var(--sage); }
@keyframes spark { 0%, 20% { opacity: 0; scale: 0.4; } 32% { opacity: 1; scale: 1; } 55%, 100% { opacity: 0; scale: 0.6; } }

/* ⌘ Tools: crop in, then a gradient backdrop, round corners and a shadow */
.m-tools .m-backdrop {
  position: absolute; left: calc(50% - 98px); top: 14px; width: 196px; height: 172px; border-radius: 18px;
  background: linear-gradient(135deg, #ffd36e, #f78ca0); opacity: 0; transform: scale(0.9);
  animation: backdrop 7s ease-in-out infinite;
}
.m-tools .m-shot {
  position: absolute; left: calc(50% - 78px); top: 34px; width: 156px; height: 132px; overflow: hidden;
  animation: shot 7s ease-in-out infinite;
}
.m-tools .m-shot .m-photo { width: 100%; height: 100%; }
.m-crop { position: absolute; left: calc(50% - 78px); top: 34px; width: 156px; height: 132px; border: 2px solid #fff; box-shadow: 0 0 0 999px rgba(20, 18, 40, 0.0); animation: crop 7s ease-in-out infinite; }
.m-crop i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--sun); }
.m-crop i:nth-child(1) { left: -7px; top: -7px; } .m-crop i:nth-child(2) { right: -7px; top: -7px; }
.m-crop i:nth-child(3) { left: -7px; bottom: -7px; } .m-crop i:nth-child(4) { right: -7px; bottom: -7px; }
@keyframes crop {
  0%, 8% { inset: auto; left: calc(50% - 78px); top: 34px; width: 156px; height: 132px; opacity: 1; }
  30%, 40% { left: calc(50% - 56px); top: 50px; width: 112px; height: 100px; opacity: 1; }
  48%, 100% { left: calc(50% - 56px); top: 50px; width: 112px; height: 100px; opacity: 0; }
}
@keyframes shot {
  0%, 8% { clip-path: inset(0 round 0); box-shadow: none; }
  30%, 44% { clip-path: inset(16px 22px 16px 22px round 0); }
  60%, 92% { clip-path: inset(16px 22px 16px 22px round 12px); filter: drop-shadow(0 12px 14px rgba(60, 20, 40, 0.35)); }
  100% { clip-path: inset(0 round 0); }
}
@keyframes backdrop { 0%, 46% { opacity: 0; transform: scale(0.9); } 60%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.9); } }

/* ⌘ Remove background & recognize text (feature art) */
.vision-window { max-width: 460px; margin-inline: auto; }
.m-vision { width: 100%; height: auto; aspect-ratio: 4 / 3; overflow: hidden; }
.m-check { position: absolute; inset: 0; background: repeating-conic-gradient(#ecebe6 0 25%, #fbfaf6 0 50%) 0 0 / 22px 22px; }
/* One 10 s story in two acts, laid out on one centre line: the tool on top, the daisy in the
   middle, results below. Act 1: a scan line wipes the meadow away and leaves the daisy on a
   transparent checkerboard. Act 2: the meadow returns, the sign's text is selected and copied. */
.m-scene {
  position: absolute; inset: 0;
  background: radial-gradient(120% 60% at 30% 118%, #5d9a4e 0 50%, transparent 50.6%), linear-gradient(#9fb6e6, #d9b8de 55%, #f6bfa0);
  animation: v-wipe 10s ease-in-out infinite;
}
/* The line and the wipe share their keyframes and easing, so the line is always exactly on the edge. */
.m-sweep {
  position: absolute; top: 0; bottom: 0; left: 0; width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 14px 4px rgba(246, 196, 83, 0.85);
  opacity: 0; animation: v-sweep 10s ease-in-out infinite, v-sweep-fade 10s linear infinite;
}
.m-subject { position: absolute; left: 50%; top: 42%; width: 34%; transform: translate(-50%, -50%); filter: drop-shadow(0 10px 14px rgba(40, 30, 70, 0.25)); animation: v-lift 10s ease-in-out infinite; }
/* Chips and toasts share one shape: 32 px high, corners concentric with what sits inside
   (chip radius 10 = key radius 6 + 4 px inset), content on the exact centre line. */
.m-badge, .m-copied, .m-step {
  position: absolute; left: 50%; box-sizing: border-box; height: 32px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  border-radius: 10px; font: 600 13px/1 var(--sans); letter-spacing: 0;
}
.m-step { top: 5%; transform: translateX(-50%); padding: 0 13px 0 4px; background: rgba(255, 255, 255, 0.96); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 16px -4px rgba(40, 30, 70, 0.22), 0 0 0 0.5px rgba(40, 30, 70, 0.08); }
/* A small keycap: the glyph sits on the key face, above the darker lip at the bottom. */
.m-step kbd {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 24px; height: 24px; padding-bottom: 2px; border-radius: 6px;
  background: linear-gradient(#fbf8f1, #ece6d9); box-shadow: inset 0 -2px 0 rgba(60, 40, 20, 0.13), 0 0 0 0.5px rgba(60, 40, 20, 0.2);
  font: 500 13px/1 var(--sans); color: var(--ink);
}
.m-badge, .m-copied { padding: 0 14px 0 8px; background: #23213a; color: #fff; font-weight: 500; box-shadow: 0 10px 24px -8px rgba(20, 15, 40, 0.55); }
.m-badge b, .m-copied b { color: #f6c453; font-weight: 700; margin-right: 3px; }
.m-tick { width: 16px; height: 16px; flex: none; }
.m-tick circle { fill: #f6c453; }
.m-tick path { fill: none; stroke: #23213a; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.m-badge { bottom: 10%; opacity: 0; transform: translate(-50%, 6px) scale(0.92); animation: v-badge 10s cubic-bezier(0.2, 0.9, 0.3, 1.25) infinite; }
.m-step.s1 { animation: v-step1 10s ease-in-out infinite; }
.m-step.s2 { opacity: 0; animation: v-step2 10s ease-in-out infinite; }
.m-sign {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.94);
  font: 700 0.95rem/1.2 var(--serif); color: var(--ink); white-space: nowrap;
  opacity: 0; animation: v-sign 10s ease-in-out infinite;
}
.m-sign span { position: relative; z-index: 1; }
.m-sign i { position: absolute; inset: 3px 6px; border-radius: 4px; background: rgba(110, 160, 240, 0.35); transform: scaleX(0); transform-origin: left; animation: v-select 10s ease-in-out infinite; }
.m-copied { bottom: calc(9% + 2.7rem); opacity: 0; transform: translate(-50%, 6px) scale(0.92); animation: v-copied 10s cubic-bezier(0.2, 0.9, 0.3, 1.25) infinite; }
@keyframes v-wipe { 0%, 8% { clip-path: inset(0 0 0 0); } 30%, 48% { clip-path: inset(0 0 0 100%); } 50%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes v-sweep { 0%, 8% { left: 0; } 30%, 100% { left: 100%; } }
@keyframes v-sweep-fade { 0%, 6% { opacity: 0; } 8%, 30% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes v-lift { 0%, 30% { transform: translate(-50%, -50%) scale(1); } 34%, 46% { transform: translate(-50%, -50%) scale(1.05); } 50%, 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes v-badge { 0%, 31% { opacity: 0; transform: translate(-50%, 6px) scale(0.92); } 35%, 46% { opacity: 1; transform: translate(-50%, 0) scale(1); } 49%, 100% { opacity: 0; transform: translate(-50%, 0) scale(1); } }
@keyframes v-step1 { 0%, 46% { opacity: 1; } 49%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes v-step2 { 0%, 48% { opacity: 0; } 51%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes v-sign { 0%, 50% { opacity: 0; } 54%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes v-select { 0%, 58% { transform: scaleX(0); } 68%, 94% { transform: scaleX(1); } 97%, 100% { transform: scaleX(0); } }
@keyframes v-copied { 0%, 70% { opacity: 0; transform: translate(-50%, 6px) scale(0.92); } 74%, 92% { opacity: 1; transform: translate(-50%, 0) scale(1); } 96%, 100% { opacity: 0; transform: translate(-50%, 0) scale(1); } }

/* ⌃ Actions: a file lifts off and lands on the floating shelf */
.m-shelf {
  position: absolute; left: calc(50% - 112px); bottom: 10px; width: 224px; height: 92px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.9); box-shadow: 0 14px 30px -16px rgba(40, 30, 70, 0.5), 0 0 0 1px rgba(35, 33, 58, 0.06);
  padding: 10px 12px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto 1fr; gap: 6px 10px;
}
.m-shelf-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; }
.m-shelf-bar b { width: 46px; height: 7px; border-radius: 4px; background: #e3dfee; }
.m-count { position: relative; height: 16px; width: 22px; overflow: hidden; border-radius: 8px; background: #efedf5; font: 800 10px/16px var(--sans); color: var(--ink-soft); text-align: center; }
.m-count em { position: absolute; inset: 0; font-style: normal; animation: count 6s ease infinite; }
.m-count em + em { transform: translateY(100%); animation-name: count-in; }
@keyframes count { 0%, 58% { transform: translateY(0); } 64%, 94% { transform: translateY(-100%); } 100% { transform: translateY(0); } }
@keyframes count-in { 0%, 58% { transform: translateY(100%); } 64%, 94% { transform: translateY(0); } 100% { transform: translateY(100%); } }
.m-slot { border-radius: 7px; } /* its picture comes from the .p-* motif */
.m-slot-new { background: rgba(35, 33, 58, 0.06); outline: 1.5px dashed rgba(35, 33, 58, 0.18); outline-offset: -2px; animation: slot 6s ease infinite; }
@keyframes slot { 0%, 56% { background: rgba(35, 33, 58, 0.06); } 62%, 94% { background: rgba(246, 196, 83, 0.35); } 100% { background: rgba(35, 33, 58, 0.06); } }
.m-actions .m-fly { width: 64px; height: 80px; padding: 6px; gap: 5px; left: calc(50% - 32px); top: 0; animation: fly 6s cubic-bezier(0.5, 0, 0.25, 1) infinite; }
.m-actions .m-fly .m-photo { height: 40px; }
.m-actions .m-fly .m-lines { height: 14px; background-size: 100% 14px; }
@keyframes fly {
  0%, 12% { transform: translate(-40px, 6px) rotate(-6deg); opacity: 1; }
  24% { transform: translate(-46px, -6px) rotate(-10deg) scale(1.04); }
  56% { transform: translate(54px, 96px) rotate(4deg) scale(0.62); opacity: 1; }
  62%, 94% { transform: translate(54px, 96px) rotate(0) scale(0.6); opacity: 0; }
  100% { transform: translate(-40px, 6px) rotate(-6deg); opacity: 0; }
}
.key-card .cap {
  display: inline-grid; place-items: center; min-width: 46px; height: 34px; padding: 0 10px;
  border-radius: 9px; background: linear-gradient(#f0ece5, #d7d1c7); box-shadow: 0 4px 0 #aaa496; color: #5c5850; font-weight: 700;
}
.key-card h3 { font-size: var(--step-h3); }
.key-card p { color: var(--ink-soft); max-width: 32ch; }

/* ---------- Night garden ---------- */
.garden {
  position: relative;
  background: radial-gradient(1200px 600px at 50% 0%, #22213a 0%, var(--night) 60%);
  color: var(--night-ink);
  padding-block: 110px 80px;
  overflow: hidden;
  isolation: isolate;
}
.garden canvas.fireflies { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.garden .section-head h2 { color: var(--night-ink); }
.garden .section-head .lede { color: var(--night-soft); }
.vine { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.vine .stem { fill: none; stroke: #7fbf6a; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(140, 220, 110, 0.65)); }
.vine .stem-shadow { fill: none; stroke: rgba(127, 191, 106, 0.12); stroke-width: 3; }

.feature {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: center;
  padding-block: 70px;
}
.feature:nth-of-type(even) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.feature:nth-of-type(even) .feature-text { order: 2; }
.feature-text { display: grid; gap: 16px; align-content: center; }
.feature-text h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.feature-text p { color: var(--night-soft); max-width: 46ch; }
.feature-text ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--night-ink); font-size: 0.97rem; }
.feature-text li { display: flex; gap: 10px; align-items: baseline; }
.feature-text li::before { content: ""; width: 6px; height: 11px; flex: none; border-radius: 50%; background: var(--sage); transform: rotate(35deg) translateY(1px); }
.feature-art { position: relative; min-width: 0; }
.window {
  position: relative; z-index: 2;
  border-radius: 14px; overflow: hidden;
  padding-top: 30px; /* title bar with traffic lights */
  background: linear-gradient(#f6f1e7, #efe9dd) top / 100% 30px no-repeat, #fffbf2;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.window::before { /* traffic lights */
  content: ""; position: absolute; top: 9px; left: 14px; width: 12px; height: 12px; border-radius: 50%;
  background: #ff5f57; box-shadow: 20px 0 0 #febc2e, 40px 0 0 #28c840; z-index: 2;
}
.window img { width: 100%; height: auto; }
.window.floating { background: transparent; box-shadow: none; overflow: visible; padding-top: 0; }
.window.floating::before { display: none; }
/* The shelf screenshot carries its own soft shadow, so no extra filter here. */
.window.floating img { max-width: 520px; margin-inline: auto; }
/* Shoots on the vine: the twigs draw themselves, then leaves and flowers open one after another. */
.vine .sprig { filter: drop-shadow(0 0 5px rgba(140, 220, 110, 0.28)); }
.vine .twig { fill: none; stroke: #6fae5c; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(0.3, 0.6, 0.3, 1); }
.vine .bloom, .vine .leafy { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.3) var(--d, 0s); }
.vine .sprig.open .twig { stroke-dashoffset: 0; }
.vine .sprig.open .bloom, .vine .sprig.open .leafy { transform: scale(1); }
.node { position: absolute; z-index: 1; width: 34px; height: 34px; margin: -17px 0 0 -17px; transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
.node:not(.open) { transform: scale(0.5) rotate(-60deg); }

/* ---------- Formats ---------- */
.formats { padding-block: 40px 110px; position: relative; z-index: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 999px; background: rgba(239, 235, 248, 0.08); color: var(--night-ink); }

/* ---------- Privacy (fireflies) ---------- */
.privacy { position: relative; background: linear-gradient(var(--night), #0d0e16); color: var(--night-ink); padding-block: 100px 120px; overflow: hidden; isolation: isolate; }
.privacy canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.privacy .section-head .lede { color: var(--night-soft); }

/* ---------- Pricing: golden hour ---------- */
.pricing {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: 110px 130px;
  background: linear-gradient(#0d0e16, #2f2548 22%, #5c4472 40%, #b77a9c 58%, #f4b49a 76%, #f9d98c);
}
.pricing .wrap { position: relative; z-index: 1; } /* text and card above the scattered blossoms */
.pricing .section-head h2 { color: #fff7ec; }
.pricing .section-head .lede { color: #fbe7dc; }
.pricing .section-head .label { color: #ffe3a3; }
.price-card {
  position: relative; z-index: 2;
  max-width: 460px; margin: 0 auto; padding: 34px;
  border-radius: 26px;
  background: rgba(255, 252, 246, 0.94);
  box-shadow: 0 40px 80px -30px rgba(60, 30, 60, 0.6);
  display: grid; gap: 20px;
}
.price-card .top { display: flex; align-items: center; gap: 12px; }
.price-card .top svg { width: 44px; height: 44px; }
.price-card .top h3 { font-size: 1.6rem; }
.price-card .top p { font-size: 0.9rem; color: var(--ink-soft); }
.amount { display: flex; align-items: baseline; gap: 10px; }
.amount b { font-family: var(--serif); font-size: 4.2rem; line-height: 1; font-weight: 600; }
.amount span { color: var(--ink-soft); font-weight: 600; }
.price-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--meadow); }
.price-card .btn { justify-content: center; width: 100%; font-size: 1.05rem; }
.price-card small { text-align: center; color: var(--ink-soft); font-size: 0.82rem; }
.price-note { text-align: center; font-size: 0.85rem; color: var(--ink-soft); min-height: 1.3em; }
.trial-link { justify-self: center; font-weight: 600; color: var(--ink); text-underline-offset: 3px; }

/* Scattered blossoms: far ones small and soft, near ones larger, crisp and moving a little more. */
.scatter { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blossom {
  position: absolute;
  /* --mx/--my/--mr: the soft push away from the cursor, eased in main.js */
  transform: translate(-50%, -50%) translate(var(--mx, 0px), calc(var(--my, 0px) + var(--py, 0px) * var(--depth))) rotate(calc(var(--spin) + var(--mr, 0deg)));
  opacity: calc(0.55 + var(--depth) * 0.45);
  filter: blur(calc((1 - var(--depth)) * 0.7px)) drop-shadow(0 6px 8px rgba(60, 30, 50, calc(var(--depth) * 0.25)));
}
.blossom svg { display: block; width: 100%; height: auto; overflow: visible; animation: hover-float var(--dur, 7s) ease-in-out var(--delay, 0s) infinite alternate; }
/* Each blossom floats on its own slow rhythm: a gentle rise with a slight sway. */
@keyframes hover-float {
  from { transform: translate(-3px, 5px) rotate(-5deg); }
  to { transform: translate(3px, -7px) rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) { .blossom svg { animation: none; } }

/* ---------- FAQ ---------- */
.faq { background: var(--morning-2); padding-block: 100px; }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 16px; padding: 4px 22px; box-shadow: 0 1px 0 var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--sun-deep); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Footer ---------- */
.footer { background: var(--morning-2); border-top: 1px solid var(--line); padding-block: 40px; font-size: 0.9rem; color: var(--ink-soft); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-left: auto; }
.footer nav > span { white-space: nowrap; }
.footer .hand { font-family: var(--hand); font-size: 1.1rem; color: #3f6b38; }

/* ---------- Sticky buy pill ---------- */
.pill {
  position: fixed; z-index: 40; left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: #1c1d2c; color: #fff;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  font-weight: 700; font-size: 0.95rem; white-space: nowrap;
}
.pill.show { transform: translate(-50%, 0); }
.pill .btn { padding: 0.65em 1.1em; font-size: 0.92rem; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes unfold { from { transform: scale(0.1) translateY(6px); opacity: 0; } }
@keyframes pop { from { transform: scale(0); } }
@keyframes float { 50% { transform: translateY(-8px) rotate(1.5deg); } }
@keyframes halo { to { --halo: 1turn; } }

.hero-copy > *, .stage-fit { animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; animation-delay: calc(var(--d, 0) * 110ms + 150ms); }
.logo .lp { transform-box: view-box; transform-origin: 20px 20px; animation: unfold 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards; animation-delay: calc(var(--i) * 55ms + 100ms); }
/* each petal sits in a rotated group, so animating the petal itself keeps its place */
.logo .lh { transform-box: view-box; transform-origin: 20px 20px; animation: pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) 0.6s backwards; }
.brand:hover .logo { transform: rotate(45deg); }
.logo { transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.2); }

/* Content is always visible; it only drifts into place as it enters. */
.js [data-reveal] { transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js [data-reveal]:not(.in) { transform: translateY(28px); }


/* A thin band of light travels around the price card's edge. */
@property --halo { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.price-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--halo), transparent 0 62%, rgba(246, 196, 83, 0.95) 76%, rgba(239, 143, 179, 0.9) 86%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
}
.price-card { isolation: isolate; }

/* Navigation over the night sections */
.nav.dark.scrolled { background: rgba(18, 19, 29, 0.88); box-shadow: 0 1px 0 var(--night-line); color: var(--night-ink); }

/* ---------- Audit 001 additions ---------- */
/* Skip link: first stop for keyboard users, hidden until focused. */
.skip {
  position: fixed; z-index: 100; left: 16px; top: calc(12px + env(safe-area-inset-top, 0px));
  padding: 10px 16px; border-radius: 10px; background: var(--sun); color: var(--ink); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.2s ease;
}
.skip:focus { transform: none; }
main:focus { outline: none; } /* focus target of the skip link only, never a control */


/* Tool label: the key you tap plus the tool's name, exactly how it is reached in the app. */
.tool { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.95rem; color: var(--night-ink); }
.tool kbd {
  display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 7px; border-radius: 7px;
  font: 700 0.85rem/1 var(--sans); color: #5c5850; background: linear-gradient(#f0ece5, #d7d1c7); box-shadow: 0 3px 0 #aaa496;
}

/* Formats: one row per kind of file, read like a reference list. */
.formats .section-head { justify-items: start; text-align: left; margin-bottom: 28px; }
.format-list { margin: 0; border-top: 1px solid var(--night-line); }
.format-row { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 8px 32px; padding-block: 18px; border-bottom: 1px solid var(--night-line); }
.format-row dt { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.format-row dd { margin: 0; display: grid; gap: 8px; min-width: 0; }
.format-row p { font-size: 0.9rem; color: var(--night-soft); }

/* Privacy and FAQ: heading on the left, content on the right. */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.split .section-head { justify-items: start; text-align: left; margin-bottom: 0; position: sticky; top: 100px; }
.statement { display: grid; gap: 0; }
.statement p { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.4; padding-block: 22px; border-top: 1px solid var(--night-line); }
.statement p:last-child { border-bottom: 1px solid var(--night-line); }
.faq .split .faq-list { margin: 0; max-width: none; }

/* Price card: the light travels around the edge once, when the price comes into view. */
.price-card.lit::before { opacity: 1; animation: halo 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards, halo-fade 2.4s ease-in forwards; }
@keyframes halo-fade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.btn.soon { background: #ece7dc; color: var(--ink-soft); box-shadow: none; cursor: default; }
.btn.soon:hover { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split .section-head { position: static; }
  .format-row { grid-template-columns: minmax(0, 1fr); }
  .lang { padding: 4px; }
  .lang span { min-width: 40px; height: 36px; padding: 0 10px; } /* 44 px tap target with the padding */
  .nav-links { display: none; }
  .nav .wrap { justify-content: space-between; }
  .keys { grid-template-columns: minmax(0, 1fr); }
  .feature, .feature:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 50px; padding-left: 34px; }
  .feature:nth-of-type(even) .feature-text { order: 0; }
  .blossom:nth-child(n+11) { display: none; } /* fewer blossoms on narrow screens */
}
@media (max-width: 420px) {
  /* Small phones: brand, language and buy must share one row without clipping. */
  .nav .wrap { gap: 10px; }
  .nav .btn .price { display: none; }
  .brand { font-size: 1.15rem; }
}
@media (max-width: 560px) {
  .hero { padding-top: calc(92px + env(safe-area-inset-top, 0px)); }
  .price-card { padding: 26px; }
  .amount b { font-size: 3.4rem; }
  /* Phones: the pill spans the width, with the text on the left and the button on the right. */
  .pill { left: 16px; right: 16px; transform: translateY(140%); justify-content: space-between; gap: 10px; font-size: 0.9rem; }
  .pill.show { transform: translateY(0); }
  .pill .pill-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .footer nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
