/* leru landing — "One shared day". Loaded after miaro.css and styles.css on / and /uk/ only.
   Motion: CSS scroll-driven reveals where supported, plus site.js for the hero, the day story and the ask demo.
   Everything is readable without JavaScript and without motion. Sans-serif only (Onest). */

.landing {
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1360px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --display: 220;
  --shadow-soft: 0 40px 80px -36px color-mix(in srgb, var(--miaro-shadow) 45%, transparent);
  --bezel: #17120F;
  background: var(--bg);
  overflow-x: clip;
}
[data-theme="dark"] .landing { --bezel: #050605; --bezel-ring: rgba(255, 255, 255, .16); }
@media (prefers-color-scheme: dark) { [data-theme="system"] .landing { --bezel: #050605; --bezel-ring: rgba(255, 255, 255, .16); } }

.landing main { padding: 0; overflow-wrap: normal; }
.landing h1, .landing h2, .landing h3 { letter-spacing: -0.02em; }
.landing p { text-wrap: pretty; }
.landing h1, .landing h2 { text-wrap: balance; }
.frame { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 500; font-size: 16.5px; text-decoration: none; line-height: 1.2;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px color-mix(in srgb, var(--miaro-shadow) 70%, transparent); text-decoration: none; }
.btn .arrow { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--miaro-line-strong); }
.btn.light { background: var(--miaro-on-block); color: var(--miaro-block-ink); }
.btn:focus-visible { outline: 2px solid var(--miaro-focus); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin: 0; font-weight: 500; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--miaro-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--miaro-accent) 20%, transparent); }

/* ---------- Device ---------- */
.device { container-type: inline-size; position: relative; width: 100%; }
.bezel {
  position: relative; padding: 2.6cqw; border-radius: 15.5cqw; background: var(--bezel);
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 1px var(--bezel-ring, transparent);
}
.bezel::after { /* the island */
  content: ""; position: absolute; top: 4.7cqw; left: 50%; width: 27cqw; height: 7.4cqw; transform: translateX(-50%);
  background: #000; border-radius: 99px; z-index: 3;
}
.screen { position: relative; border-radius: 13cqw; overflow: hidden; aspect-ratio: 600 / 1304; background: var(--miaro-surface); }
.screen picture, .screen img, .screen video { display: block; width: 100%; height: 100%; }
.screen img, .screen video { object-fit: cover; object-position: top; background: var(--miaro-bg); }

/* ---------- Hero ---------- */
.opening { --p: 0; position: relative; min-height: 100svh; padding: 112px 0 56px; display: grid; align-items: center; isolation: isolate; overflow-x: clip; }
.opening::before, .opening::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(10px); }
.opening::before { width: 70vmax; height: 70vmax; right: -22vmax; top: -24vmax; background: radial-gradient(closest-side, var(--miaro-glow-peach), transparent 70%); }
.opening::after { width: 46vmax; height: 46vmax; left: -18vmax; bottom: -18vmax; background: radial-gradient(closest-side, var(--miaro-glow-sage), transparent 70%); }
.opening .frame { width: 100%; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .opening .frame { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 24px; } }

.hero-title {
  font-size: clamp(76px, 17.5vw, 212px); font-weight: var(--display); line-height: .86; letter-spacing: -.062em;
  margin: 26px 0 30px; color: var(--fg);
}
.hero-title .ln { display: block; overflow: hidden; white-space: nowrap; padding: 0 .08em .2em 0; margin-bottom: -.2em; }
.hero-title .ln > span { display: inline-block; }
.hero-title .ln:nth-child(2) { padding-left: .5em; }
.hero-title em { font-style: normal; color: var(--miaro-accent); }
.hero-lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; max-width: 34ch; color: var(--mute); margin: 0 0 30px; }
.hero-meta { margin: 22px 0 0; font-size: 14px; color: var(--mute); }
.hero-title.is-uk { font-size: clamp(60px, 16.4vw, 180px); }
@media (min-width: 960px) { .hero-title { font-size: clamp(92px, 10.2vw, 196px); } .hero-title.is-uk { font-size: clamp(80px, 8.6vw, 164px); } .hero-title .ln:nth-child(2) { padding-left: .62em; } }
/* The title is sized by the window, but it lives in a column: cap it by the column so the longest line (with its
   indent and the .ln padding) always fits and is never clipped by .ln's overflow. «together.» needs ~4.75em, «Усе ваше.» ~4.6em. */
.opening .frame > div:first-child { container-type: inline-size; min-width: 0; }
.hero-title { font-size: min(clamp(76px, 17.5vw, 212px), 20cqi); }
.hero-title.is-uk { font-size: min(clamp(60px, 16.4vw, 180px), 21cqi); }
@media (min-width: 960px) { .hero-title { font-size: min(clamp(92px, 10.2vw, 196px), 20cqi); } .hero-title.is-uk { font-size: min(clamp(80px, 8.6vw, 164px), 21cqi); } }

.hero-device { position: relative; justify-self: center; width: min(330px, 66vw); container-type: inline-size; }
@media (min-width: 960px) { .hero-device { width: min(360px, 25vw, calc((100svh - 190px) / 2.2)); } }
.hero-device .device {
  transform: translateY(calc(var(--p) * -6%)) scale(calc(1 - var(--p) * .06)) rotate(calc(2deg - var(--p) * 2deg));
  transform-origin: 50% 40%;
}

.frag {
  --k: calc(1 - var(--p));
  position: absolute; left: 50%; top: 50%; z-index: 2; width: max-content; max-width: 62cqw;
  transform: translate(-50%, -50%) translate(calc(var(--dx) * var(--k)), calc(var(--dy) * var(--k))) scale(calc(.55 + var(--k) * .45)) rotate(calc(var(--r) * var(--k)));
  opacity: clamp(0, calc(1 - var(--p) * 1.5), 1);
  pointer-events: none;
}
.frag-card {
  border-radius: 7.5cqw; padding: 4.6cqw 5.4cqw; font-size: max(12px, 4.1cqw); line-height: 1.3;
  box-shadow: 0 24px 50px -22px color-mix(in srgb, var(--miaro-shadow) 55%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--fg) 6%, transparent);
  color: var(--miaro-ink);
}
.frag-card b { display: block; font-weight: 500; font-size: 1.04em; }
.frag-card small { display: block; color: color-mix(in srgb, currentColor 72%, transparent); font-size: .86em; margin-top: 2px; }
.frag-card .cap { display: block; font-size: .7em; letter-spacing: .14em; text-transform: uppercase; opacity: .78; margin-bottom: 4px; }
.frag-card .big { display: block; font-size: 2.6em; line-height: 1; font-weight: 300; letter-spacing: -.03em; }
.f-butter .frag-card { background: var(--miaro-block-butter); }
.f-blush .frag-card { background: var(--miaro-block-blush); }
.f-mint .frag-card { background: var(--miaro-block-mint); }
.f-ink .frag-card { background: var(--miaro-block-ink); color: var(--miaro-on-block); }
.f-card .frag-card { background: var(--miaro-surface-raised); }
.f-pill .frag-card { background: var(--miaro-surface-raised); border-radius: 99px; padding: 3.2cqw 5.4cqw; }
.f-pill .frag-card span { color: var(--miaro-accent); margin-right: .4em; }

.f1 { --dx: -92cqw; --dy: -60cqw; --r: -7deg; }
.f2 { --dx: 62cqw;  --dy: -86cqw; --r: 6deg; }
.f3 { --dx: -96cqw; --dy: 14cqw;  --r: 4deg; }
.f4 { --dx: 68cqw;  --dy: 16cqw;  --r: -5deg; }
.f5 { --dx: -70cqw; --dy: 86cqw;  --r: -3deg; }
.f6 { --dx: 60cqw;  --dy: 92cqw;  --r: 5deg; }
/* Ukrainian: «Усе ваше.» is a long first line, so the shopping card sits over the phone's top-left corner instead of
   reaching into the title column. Desktop only; the phone layout below has its own positions. */
@media (min-width: 960px) { :lang(uk) .f1 { --dx: -50cqw; --dy: -88cqw; } }
@media (max-width: 959px) {
  .f1 { --dx: -44cqw; --dy: -78cqw; } .f2 { --dx: 41cqw; --dy: -62cqw; }
  .f3, .f4 { display: none; }
  .f5 { --dx: -42cqw; --dy: 74cqw; } .f6 { --dx: 44cqw; --dy: 90cqw; }
  .frag { max-width: 50cqw; }
  .frag-card { font-size: max(11px, 3.8cqw); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-title .ln > span { animation: rise 1.1s var(--ease) both; }
  .hero-title .ln:nth-child(2) > span { animation-delay: .09s; }
  .opening .reveal-in { animation: fade-up 1s var(--ease) .25s both; }
  .hero-device { animation: device-in 1.3s var(--ease) .1s both; }
  .frag-card { animation: bob 7s ease-in-out infinite alternate; }
  .f2 .frag-card { animation-duration: 8.5s; animation-delay: -2s; }
  .f3 .frag-card { animation-duration: 6.4s; animation-delay: -4s; }
  .f4 .frag-card { animation-duration: 9s; animation-delay: -1s; }
  .f5 .frag-card { animation-duration: 7.6s; animation-delay: -3s; }
  .f6 .frag-card { animation-duration: 8s; animation-delay: -5s; }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes device-in { from { opacity: 0; transform: translateY(60px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bob { from { transform: translateY(-6px); } to { transform: translateY(8px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: none; }
@media (min-width: 960px) and (min-height: 760px) { .scroll-cue { display: block; } }
.scroll-cue span { display: block; width: 1px; height: 46px; background: linear-gradient(var(--line), var(--mute)); transform-origin: top; }
@media (prefers-reduced-motion: no-preference) { .scroll-cue span { animation: cue 2.4s var(--ease) infinite; } }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg); }
.marquee-track { display: flex; width: max-content; }
.marquee ul { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; flex: none; }
.marquee li { margin: 0; font-size: clamp(26px, 3.6vw, 48px); font-weight: 250; letter-spacing: -.03em; white-space: nowrap; display: flex; align-items: center; }
.marquee li::after { content: ""; width: .32em; height: .32em; border-radius: 50%; background: var(--miaro-accent); margin: 0 .7em; opacity: .8; }
.marquee li:nth-child(3n+2)::after { background: var(--miaro-sage); }
.marquee li:nth-child(3n)::after { background: var(--miaro-tint-ochre); }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: marquee 60s linear infinite; } .marquee:hover .marquee-track { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .marquee ul[aria-hidden] { display: none; } .marquee-track { flex-wrap: wrap; width: auto; padding: 0 var(--gutter); } .marquee ul { flex-wrap: wrap; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.sec { padding: clamp(96px, 12vw, 168px) 0 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.sec-head h2, .h-xl {
  font-size: clamp(44px, 7.2vw, 112px); font-weight: var(--display); line-height: .94; letter-spacing: -.05em; margin: 0;
}
.sec-head p { font-size: clamp(17px, 1.5vw, 20px); color: var(--mute); max-width: 44ch; margin: 0; }
.sec-head .kicker { grid-column: 1 / -1; }

/* ---------- Who ---------- */
.who-grid { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .who-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .who-grid { grid-template-columns: repeat(4, 1fr); } }
.who-grid li {
  margin: 0; border-radius: 32px; padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; min-height: 300px;
  transition: transform .5s var(--ease);
}
.who-grid li:hover { transform: translateY(-6px) rotate(-.6deg); }
.who-grid li:nth-child(1) { background: var(--miaro-block-butter); }
.who-grid li:nth-child(2) { background: var(--miaro-block-blush); }
.who-grid li:nth-child(3) { background: var(--miaro-block-mint); }
.who-grid li:nth-child(4) { background: var(--miaro-surface-sunken); }
.who-grid .n { font-size: clamp(56px, 6vw, 84px); line-height: .9; font-weight: 200; letter-spacing: -.05em; margin: 0 0 auto; }
.who-grid h3 { font-size: 24px; font-weight: 450; margin: 18px 0 0; letter-spacing: -.02em; }
.who-grid p { margin: 0; color: var(--mute); font-size: 16px; line-height: 1.5; }
.faces { display: flex; padding-left: 10px; }
.faces i {
  width: 44px; height: 44px; border-radius: 50%; margin-left: -10px; display: grid; place-items: center; font-style: normal;
  font-size: 15px; font-weight: 500; color: var(--miaro-on-block); box-shadow: 0 0 0 3px var(--miaro-surface);
}
.faces i:nth-child(5n+1) { background: var(--miaro-tint-sage); }
.faces i:nth-child(5n+2) { background: var(--miaro-tint-ochre); }
.faces i:nth-child(5n+3) { background: var(--miaro-tint-terracotta); }
.faces i:nth-child(5n+4) { background: var(--miaro-tint-slate); }
.faces i:nth-child(5n+5) { background: var(--miaro-block-sage); }

/* ---------- The day (story) ---------- */
.story {
  --s-bg: var(--miaro-bg); --s-fg: var(--miaro-ink); --s-mute: var(--miaro-ink-secondary); --s-line: var(--line);
  margin-top: clamp(72px, 9vw, 128px); background: var(--s-bg); color: var(--s-fg);
  transition: background-color .9s var(--ease), color .9s var(--ease);
}
.story[data-mood="morning"] { --s-bg: var(--miaro-block-butter); }
.story[data-mood="midday"] { --s-bg: var(--miaro-block-mint); }
.story[data-mood="afternoon"] { --s-bg: var(--miaro-block-blush); }
.story[data-mood="evening"] { --s-bg: var(--miaro-glow-peach); }
.story[data-mood="night"] { --s-bg: var(--miaro-block-ink); --s-fg: var(--miaro-on-block); --s-mute: color-mix(in srgb, var(--miaro-on-block) 80%, transparent); --s-line: color-mix(in srgb, var(--miaro-on-block) 18%, transparent); }
.story[data-mood="years"] { --s-bg: var(--miaro-surface-sunken); }
.story-intro { padding: clamp(72px, 8vw, 112px) 0 24px; }
.story-intro h2 { font-size: clamp(48px, 8.4vw, 132px); font-weight: var(--display); line-height: .92; letter-spacing: -.055em; margin: 18px 0 0; max-width: 12ch; }
.story-intro p { color: var(--s-mute); font-size: clamp(17px, 1.5vw, 20px); max-width: 46ch; margin: 22px 0 0; }
.story .kicker { color: var(--s-mute); }

.story-body { display: grid; }
@media (min-width: 960px) { .story-body { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 40px; } }

.chapter { padding: 64px 0; display: grid; align-content: center; gap: 0; }
@media (min-width: 960px) { .chapter { min-height: 100svh; padding: 0; } }
.chapter .time {
  font-size: clamp(76px, 12vw, 176px); line-height: .85; font-weight: 150; letter-spacing: -.06em; margin: 0;
  font-variant-numeric: tabular-nums; color: var(--s-fg); opacity: .9;
}
.chapter .when { display: block; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--s-mute); margin: 16px 0 0; font-weight: 500; }
.chapter h3 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 300; line-height: 1.02; letter-spacing: -.04em; margin: 22px 0 14px; max-width: 16ch; }
.chapter .intro { font-size: clamp(17px, 1.4vw, 19px); color: var(--s-mute); max-width: 44ch; margin: 0 0 26px; }
.chapter ul.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: 520px; }
.chapter ul.points li { margin: 0; padding: 14px 0; border-top: 1px solid var(--s-line); display: grid; grid-template-columns: 11rem 1fr; gap: 6px 18px; font-size: 15.5px; line-height: 1.5; }
.chapter ul.points li strong { font-weight: 500; }
.chapter ul.points li span { color: var(--s-mute); }
@media (max-width: 559px) { .chapter ul.points li { grid-template-columns: 1fr; } }
.chapter .inline-device { width: min(300px, 72vw); margin: 34px auto 34px; }
@media (min-width: 960px) {
  .chapter .inline-device { display: none; }
  .js .chapter .time { opacity: .28; transition: opacity .6s var(--ease); }
  .js .chapter.is-active .time { opacity: .95; }
}

.stage { display: none; }
@media (min-width: 960px) {
  .stage { display: block; position: relative; }
  .stage-sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
  .stage-sticky::before { content: ""; position: absolute; width: min(620px, 46vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--miaro-surface-raised) 55%, transparent), transparent 72%); pointer-events: none; }
  .story[data-mood="night"] .stage-sticky::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--miaro-tint-terracotta) 30%, transparent), transparent 72%); }
  .stage .device { width: min(340px, 27vw, calc((100svh - 150px) / 2.24)); }
  .stage .screen > :is(picture, video) { position: absolute; inset: 0; transition: opacity .7s var(--ease), transform .9s var(--ease); }
  .js .stage .screen > :is(picture, video) { opacity: 0; transform: translateY(6%) scale(1.04); }
  .js .stage .screen > :is(picture, video).is-active { opacity: 1; transform: none; }
  .js .stage .screen > :is(picture, video).is-past { transform: translateY(-4%) scale(.98); }
  html:not(.js) .stage .screen > :is(picture, video):not(:first-child) { display: none; }
  .stage-count { position: absolute; right: 0; bottom: 40px; font-size: 13px; letter-spacing: .18em; color: var(--s-mute); font-variant-numeric: tabular-nums; }
}

/* Drawn app fragments inside chapters */
.mini {
  background: var(--miaro-surface-raised); color: var(--miaro-ink); border-radius: 26px; padding: 18px; max-width: 360px; margin: 26px 0 0;
  box-shadow: 0 30px 60px -32px color-mix(in srgb, var(--miaro-shadow) 50%, transparent);
}
.mini h4 { font-size: 22px; font-weight: 300; letter-spacing: -.02em; margin: 0 0 4px; }
.mini > p { font-size: 13.5px; color: var(--miaro-ink-secondary); margin: 0 0 12px; line-height: 1.45; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; padding: 0; list-style: none; }
.chips li { margin: 0; font-size: 12.5px; padding: 5px 11px; border-radius: 99px; background: var(--miaro-surface-sunken); }
.chips li:first-child { background: var(--miaro-ink); color: var(--miaro-ink-inverse); }
.dishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dishes li { margin: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--miaro-surface); box-shadow: inset 0 0 0 1px var(--miaro-line); font-size: 14.5px; }
.dishes li i { width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--miaro-block-butter); }
.dishes li:nth-child(2) i { background: var(--miaro-block-blush); }
.dishes li:nth-child(3) i { background: var(--miaro-block-mint); }
.dishes li small { display: block; color: var(--miaro-ink-tertiary); font-size: 12px; }
.mini .added { margin: 12px 0 0; font-size: 13px; padding: 8px 12px; border-radius: 12px; background: var(--miaro-sage-soft); color: var(--miaro-ink); }

/* ---------- Ask the family ---------- */
.ask { background: var(--miaro-block-ink); color: var(--miaro-on-block); padding: clamp(96px, 12vw, 168px) 0; position: relative; overflow: hidden; }
.ask::before { content: ""; position: absolute; width: 60vmax; height: 60vmax; right: -20vmax; bottom: -30vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--miaro-tint-terracotta) 35%, transparent), transparent 70%); pointer-events: none; }
.ask .frame { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .ask .frame { grid-template-columns: 1.1fr .9fr; } }
.ask .kicker { color: color-mix(in srgb, var(--miaro-on-block) 78%, transparent); }
.ask h2 { font-size: clamp(54px, 9vw, 150px); font-weight: var(--display); line-height: .9; letter-spacing: -.055em; margin: 20px 0 26px; }
.ask .lead { font-size: clamp(17px, 1.6vw, 21px); color: color-mix(in srgb, var(--miaro-on-block) 82%, transparent); max-width: 40ch; margin: 0 0 34px; }
.ask ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: 560px; counter-reset: ask; }
.ask ol li { counter-increment: ask; margin: 0; padding: 16px 0 16px 52px; border-top: 1px solid color-mix(in srgb, var(--miaro-on-block) 16%, transparent); position: relative; color: color-mix(in srgb, var(--miaro-on-block) 82%, transparent); font-size: 16px; }
.ask ol li::before { content: counter(ask, decimal-leading-zero); position: absolute; left: 0; top: 17px; font-size: 13px; letter-spacing: .12em; color: var(--miaro-ember); }
.ask ol li strong { color: var(--miaro-on-block); font-weight: 500; display: block; }
.ask-visual { position: relative; justify-self: center; width: min(330px, 72vw); }
.ask-bubble {
  position: absolute; left: -22%; bottom: 14%; z-index: 4; width: 88%;
  background: var(--miaro-surface-raised); color: var(--miaro-ink); border-radius: 24px; padding: 16px 18px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); font-size: 15px;
}
.ask-bubble .from { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--miaro-ink-tertiary); margin: 0 0 4px; }
.ask-bubble .typed { margin: 0; min-height: 1.5em; font-size: 17px; }
.ask-bubble .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--miaro-accent); vertical-align: -0.18em; margin-left: 2px; }
@media (prefers-reduced-motion: no-preference) { .ask-bubble .caret { animation: blink 1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 959px) { .ask-bubble { left: -8%; } }

/* ---------- Bento: the quiet details ---------- */
.bento { display: grid; gap: 14px; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(6, 1fr); } .b-a { grid-column: span 3; } .b-b { grid-column: span 3; } .b-c { grid-column: span 4; } .b-d { grid-column: span 2; } }
.tile { border-radius: 32px; padding: clamp(22px, 2.6vw, 34px); background: var(--miaro-surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 12px; min-height: 340px; overflow: hidden; }
.tile h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 300; letter-spacing: -.03em; line-height: 1.08; margin: 0; }
.tile > p { color: var(--mute); margin: 0; font-size: 15.5px; line-height: 1.55; max-width: 46ch; }
.tile .demo { margin-top: auto; }
.b-a { background: var(--miaro-block-blush); box-shadow: none; }
.b-a > p { color: var(--miaro-ink-secondary); }
.b-c { background: var(--miaro-block-mint); box-shadow: none; }
.b-c > p { color: var(--miaro-ink-secondary); }
.b-a, .b-c { color: var(--fg); }
.sheet { background: var(--miaro-surface-raised); border-radius: 22px; padding: 16px 18px; box-shadow: 0 20px 44px -28px color-mix(in srgb, var(--miaro-shadow) 50%, transparent); font-size: 14.5px; color: var(--miaro-ink); }
.sheet .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.sheet .head b { font-weight: 500; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--miaro-accent-soft); color: var(--miaro-ink); white-space: nowrap; }
.rows, .tree { margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--miaro-line); margin: 0; }
.rows li span:first-child { color: var(--miaro-ink-secondary); }
.tree li { margin: 0; padding: 6px 0; border-top: 1px solid var(--miaro-line); font-variant-numeric: tabular-nums; }
.tree li.in { padding-left: 18px; }
.tree li.in2 { padding-left: 36px; color: var(--miaro-ink-secondary); }
.ai-q { display: flex; gap: 10px; align-items: center; background: var(--miaro-surface); border-radius: 999px; padding: 7px 7px 7px 16px; margin-bottom: 10px; box-shadow: inset 0 0 0 1px var(--miaro-line); }
.ai-q span { flex: 1; }
.ai-q b { width: 32px; height: 32px; border-radius: 50%; background: var(--miaro-ink); color: var(--miaro-ink-inverse); display: grid; place-items: center; font-weight: 500; flex: none; }
.ai-a { margin: 0 0 8px; line-height: 1.5; }
.ai-note { font-size: 12.5px; color: var(--miaro-ink-tertiary); margin: 0; }
.only-me { display: grid; gap: 8px; }
.only-me span { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--miaro-surface-raised); color: var(--miaro-ink); font-size: 14px; box-shadow: inset 0 0 0 1px var(--miaro-line); }
.only-me span em { font-style: normal; font-size: 12px; color: var(--miaro-ink-secondary); }

/* ---------- Gallery ---------- */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(66vw, 280px); gap: 18px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; margin: 0; overscroll-behavior-x: contain;
  padding: 8px var(--gutter) 28px; scroll-padding-inline: var(--gutter); scrollbar-width: thin;
}
@media (min-width: 1440px) { .shots { padding-inline: calc((100vw - var(--maxw)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--maxw)) / 2 + var(--gutter)); } }
.shots li { margin: 0; scroll-snap-align: start; }
.shots figure { margin: 0; }
.shots figcaption { font-size: 14px; color: var(--mute); margin-top: 14px; display: flex; gap: 10px; }
.shots figcaption span { color: var(--fg); font-variant-numeric: tabular-nums; }
.shots:focus-visible { outline: 2px solid var(--miaro-focus); outline-offset: -2px; }

/* ---------- Private ---------- */
.private { margin-top: clamp(96px, 12vw, 168px); background: var(--miaro-block-sage); color: var(--miaro-on-block); padding: clamp(88px, 11vw, 150px) 0; }
.private .kicker { color: color-mix(in srgb, var(--miaro-on-block) 80%, transparent); }
.private h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 400; margin: 22px 0 40px; max-width: 34ch; line-height: 1.35; letter-spacing: -.01em; color: color-mix(in srgb, var(--miaro-on-block) 90%, transparent); }
.big-list { list-style: none; padding: 0; margin: 0; }
.big-list li { margin: 0; display: grid; gap: 6px 40px; padding: 22px 0; border-top: 1px solid color-mix(in srgb, var(--miaro-on-block) 20%, transparent); align-items: baseline; }
@media (min-width: 900px) { .big-list li { grid-template-columns: 1.4fr 1fr; } }
.big-list strong { font-size: clamp(40px, 6.6vw, 104px); font-weight: var(--display); letter-spacing: -.05em; line-height: .95; }
.big-list span { color: color-mix(in srgb, var(--miaro-on-block) 84%, transparent); font-size: 16.5px; max-width: 40ch; }
.private .more { margin: 36px 0 0; }
.private a { color: var(--miaro-on-block); }

/* ---------- How, pricing, FAQ ---------- */
.how { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; counter-reset: how; }
@media (min-width: 860px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how li { counter-increment: how; margin: 0; border-top: 1px solid var(--miaro-line-strong); padding: 22px 0 0; }
.how li::before { content: "0" counter(how); display: block; font-size: 64px; font-weight: 200; letter-spacing: -.04em; line-height: 1; margin-bottom: 26px; color: var(--miaro-accent); }
.how strong { display: block; font-size: 22px; font-weight: 450; letter-spacing: -.02em; margin-bottom: 6px; }
.how span { color: var(--mute); font-size: 16px; }

.plans { display: grid; gap: 14px; margin: 0 0 20px; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { border-radius: 36px; padding: clamp(26px, 3vw, 44px); background: var(--miaro-surface); box-shadow: inset 0 0 0 1px var(--line); }
.plan h3 { margin: 0 0 18px; font-size: 18px; font-weight: 500; letter-spacing: 0; }
.plan .price { font-size: clamp(56px, 6vw, 88px); font-weight: 200; letter-spacing: -.05em; line-height: 1; margin: 0 0 6px; }
.plan .per { color: var(--mute); margin: 0 0 26px; font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 11px 0 11px 30px; border-top: 1px solid var(--line); margin: 0; position: relative; font-size: 15.5px; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 18px; width: 12px; height: 7px; border-left: 2px solid var(--miaro-sage); border-bottom: 2px solid var(--miaro-sage); transform: rotate(-45deg); }
.plan.plus { background: var(--miaro-block-ink); color: var(--miaro-on-block); box-shadow: none; }
.plan.plus .per, .plan.plus li { color: color-mix(in srgb, var(--miaro-on-block) 86%, transparent); }
.plan.plus li { border-color: color-mix(in srgb, var(--miaro-on-block) 16%, transparent); }
.plan.plus li::before { border-color: var(--miaro-ember); }
.fine { color: var(--mute); font-size: 14px; max-width: 90ch; }

.faq { max-width: 920px; }
.faq details { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 0; margin: 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: clamp(19px, 1.8vw, 24px); font-weight: 400; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--miaro-line-strong);
  background: linear-gradient(var(--fg), var(--fg)) center / 12px 1.5px no-repeat, linear-gradient(var(--fg), var(--fg)) center / 1.5px 12px no-repeat; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--mute); margin: 0 0 26px; max-width: 70ch; }

/* ---------- Final ---------- */
.final { padding: clamp(110px, 14vw, 200px) 0 0; text-align: center; position: relative; }
.final .mark-xl { width: clamp(84px, 9vw, 128px); height: auto; margin: 0 auto 34px; display: block; }
.final .mark-xl .arms { fill: var(--miaro-mark-arms); }
.final .mark-xl .dot { fill: var(--miaro-mark-dot); }
@media (prefers-reduced-motion: no-preference) { .final .mark-xl .dot { animation: beat 3.2s var(--ease) infinite; transform-origin: 32px 19px; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.18); } 24% { transform: scale(1); } }
.final h2 { font-size: clamp(66px, 14vw, 230px); font-weight: var(--display); line-height: .86; letter-spacing: -.062em; margin: 0 0 30px; }
.final p { color: var(--mute); margin: 0 auto 34px; max-width: 40ch; font-size: clamp(17px, 1.5vw, 20px); }
.final .actions { justify-content: center; }

/* ---------- Scroll-driven reveals (no JavaScript needed; static where unsupported) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% cover 24%; }
    .rv-x { animation: rv-x linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .big-list li strong { animation: rv-x linear both; animation-timeline: view(); animation-range: entry 0% cover 34%; }
  }
}
@keyframes rv { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
@keyframes rv-x { from { opacity: 0; transform: translateX(-6%); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .landing *, .landing *::before, .landing *::after { transition-duration: .01ms !important; }
  .opening { --p: 0 !important; }
}

.story[data-mood="night"] .bezel, .ask .bezel { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .14); }

@media (max-width: 639px) { .who-grid li { min-height: 0; } .who-grid .faces { margin-top: 8px; } }

/* ---------- Floating cards around any phone (like the hero): what the screen is doing, at a glance ---------- */
.phone-x { position: relative; container-type: inline-size; width: 100%; }
.fx {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: max-content; max-width: 64cqw; pointer-events: none;
  transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) rotate(var(--r));
}
.fx .frag-card { font-size: max(13px, 4.9cqw); }
.fx-1 { --dx: -70cqw; --dy: -66cqw; --r: -6deg; }
.fx-2 { --dx: 72cqw;  --dy: -24cqw; --r: 5deg; }
.fx-3 { --dx: -66cqw; --dy: 62cqw;  --r: 4deg; }
@media (max-width: 759px) {
  .fx { max-width: 54cqw; }
  .fx .frag-card { font-size: max(11px, 3.9cqw); }
  .fx-1 { --dx: -40cqw; --dy: -84cqw; } .fx-2 { --dx: 42cqw; --dy: -10cqw; } .fx-3 { --dx: -38cqw; --dy: 84cqw; }
}
/* Cards fly in once the phone is on screen (site.js / theme.js add .is-in); without JS they simply sit there. */
.js .fx { opacity: 0; transform: translate(-50%, -50%) translate(calc(var(--dx) * .55), calc(var(--dy) * .55)) rotate(0deg) scale(.7); transition: opacity .7s var(--ease), transform 1s var(--ease); }
.js .fx-2 { transition-delay: .12s; } .js .fx-3 { transition-delay: .24s; }
.js .is-in > .fx, .js .fx-set.is-active > .fx { opacity: 1; transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) rotate(var(--r)); }
@media (prefers-reduced-motion: no-preference) {
  .fx .frag-card { animation: bob 7.4s ease-in-out infinite alternate; }
  .fx-2 .frag-card { animation-duration: 8.6s; animation-delay: -3s; }
  .fx-3 .frag-card { animation-duration: 6.8s; animation-delay: -5s; }
}
@media (prefers-reduced-motion: reduce) { .js .fx { opacity: 1; transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) rotate(var(--r)); transition: none; } }
/* The day story's sticky phone: one set of cards per chapter. */
.fx-set { position: absolute; inset: 0; pointer-events: none; }
.js .fx-set:not(.is-active) > .fx { transition-delay: 0s; }
.stage .phone-x { width: min(340px, 27vw, calc((100svh - 150px) / 2.24)); }
.stage .phone-x .device { width: 100%; }
.stage-phone .fx-1 { --dx: -80cqw; --dy: -58cqw; }
.stage-phone .fx-2 { --dx: 70cqw;  --dy: -18cqw; }
.stage-phone .fx-3 { --dx: -74cqw; --dy: 62cqw; }
.chapter .inline-device.phone-x { margin: 64px auto; }
