/* Shape Friends homepage (2.0). Built from the A2 · Editorial design on the
   "Shape Friends Website Ideas" canvas. Plain CSS, no build step.

   Art is vector wherever the app's art is: the logo (Fredoka Bold outlines laid
   out as StickerLogo.swift does), the friends (characters.js, a port of the
   Characters package), the garden (the dollhouse boards in design/dollhouse),
   and the price pictures in /home/tiles (each drawn to its game's own numbers:
   PianoScene, EggCrackScene, PeekToyBox, the house's phone and paint room, the
   Mirror's props). Only real screens of the app (screenshots, room videos) and
   the App Store icon are pictures.

   Build notes still open:
   - The hero iPad is a stand-in for a real screen recording of the app opening
     (splash, then the house). Swap .hero-ipad's layers for a muted, looping,
     playsinline <video> with the house as its poster. */

@font-face {
  font-family: "Fredoka";
  src: url(/fonts/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWu89XgHPyh.woff2) format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face { font-family: "Figtree"; src: url(/fonts/Figtree-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/Figtree-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/Figtree-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/Figtree-ExtraBold.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --ink: #2B2F3A;
  --body: #4B5060;
  --muted: #6B7080;
  --sky: #DCEFF5;
  --cream: #FDFCF6;
  --lawn-top: #AFE38D;
  --lawn: #A1DB80;
  --hedge: #3B7A2E;
  --line: rgba(43, 47, 58, 0.1);
  --title: "Fredoka", ui-rounded, system-ui, sans-serif;
  --text: "Figtree", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; overflow-x: clip; }
body { margin: 0; background: var(--cream); color: var(--body); font: 400 18px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--title); font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid #2F78B7; outline-offset: 4px; border-radius: 10px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 16px; }

/* ---------- Room wallpapers (the house's own, softened) ---------- */
.wp-sky { background: var(--sky); }
.wp-0 { background: repeating-linear-gradient(90deg, #E9EBFB 0 22px, #E3E6FA 22px 44px); }
.wp-1 { background-color: #FDF6DC; background-image: radial-gradient(#FFFFFF 3px, transparent 3.6px); background-size: 30px 30px; }
.wp-2 { background-color: #E6F7EE; background-image: radial-gradient(#D9F1E4 4px, transparent 4.6px); background-size: 34px 34px; }
.wp-3 { background-color: #E5F2FB; background-image: radial-gradient(circle at 50% 100%, transparent 12px, #D9EBF8 13px, #D9EBF8 15px, transparent 16px); background-size: 36px 20px; }
.wp-4 { background-color: #F1ECFB; background-image: radial-gradient(circle at 50% 0, #EAE2F9 13px, transparent 14px); background-size: 32px 24px; }
.wp-5 { background-color: #E9F6F7; background-image: radial-gradient(#DAEDEF 2.6px, transparent 3.2px); background-size: 40px 40px; }

/* ---------- Top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 30; height: 68px; padding: 0 max(24px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.topbar.scrolled { background: rgba(253, 252, 246, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.topbar-logo { width: 96px; opacity: 0; transform: translateY(-6px) scale(.92); transition: opacity .4s var(--ease-out), transform .5s var(--spring); pointer-events: none; }
.topbar.show-logo .topbar-logo { opacity: 1; transform: none; pointer-events: auto; }
.topbar-nav { display: flex; align-items: center; gap: 6px 26px; font-weight: 600; font-size: 15px; color: var(--ink); }
.topbar-nav a { text-decoration: none; }
.topbar-nav a:not(.topbar-get):hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.topbar-get { background: var(--ink); color: #fff; border-radius: 999px; padding: 9px 18px; transition: transform .3s var(--spring); }
.topbar-get:hover { transform: translateY(-2px); }
@media (max-width: 640px) { .topbar-nav a:not(.topbar-get) { display: none; } }

/* ---------- Shared bits ---------- */
.badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border-radius: 12px; padding: 9px 20px 9px 15px; text-decoration: none; font: 600 21px/1.05 -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: -0.01em; transition: transform .35s var(--spring), box-shadow .35s var(--ease-out); }
.badge svg { width: 26px; height: 26px; fill: #fff; }
.badge span { display: flex; flex-direction: column; text-align: left; }
.badge small { font-size: 11px; font-weight: 400; letter-spacing: 0; }
.badge:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -12px rgba(0, 0, 0, .55); }
.lede { margin: 16px auto 0; max-width: 34em; text-align: center; font-size: 18px; line-height: 1.65; }
.ipad { background: #1F1E1D; border-radius: 30px; padding: 11px; box-shadow: 0 34px 60px -30px rgba(30, 40, 60, .55); }
.ipad-screen { position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 1032 / 1376; background: var(--sky); }
.ipad-screen img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tape { display: inline-block; align-self: flex-start; background: var(--tape); color: #6B4A2E; padding: 7px 24px; font: 600 19px/1.3 var(--title); transform: rotate(-1.5deg); clip-path: polygon(0 0, 100% 0, 97% 25%, 100% 50%, 97% 75%, 100% 100%, 0 100%, 3% 75%, 0 50%, 3% 25%); }

/* ---------- Clouds ---------- */
.cloud { position: absolute; width: 112px; height: 30px; background: #fff; border-radius: 40px; box-shadow: 28px -14px 0 -2px #fff, 58px 0 0 -6px #fff; animation: drift var(--dur, 26s) ease-in-out infinite alternate; }
.cloud-a { left: 8%; top: 330px; --dur: 28s; }
.cloud-b { right: 9%; top: 560px; transform: scale(.8); --dur: 22s; animation-delay: -8s; }
.cloud-c { left: 14%; top: 820px; transform: scale(.6); --dur: 32s; animation-delay: -16s; }
.cloud-d { right: 12%; top: 110px; --dur: 26s; }
.cloud-e { left: 20%; top: 330px; transform: scale(.7); --dur: 30s; animation-delay: -12s; }
@keyframes drift { from { translate: -26px 0; } to { translate: 26px 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--sky); padding: 104px 24px 0; text-align: center; }
.hero-lawn { position: absolute; left: 0; right: 0; bottom: 0; height: 128px; background: linear-gradient(var(--lawn-top) 0 34%, var(--lawn) 34% 100%); }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding-bottom: 72px; }
/* The hero's garden, either side of the devices (placed from the middle so it
   stays beside them on any width): the sun up on the right, a flower bed and
   two friends on the lawn each side. The flower beds sit on the far band of
   the lawn so their flowers stand up against the sky. The friends need a wide screen. */
.hero .hero-sun { z-index: 2; left: calc(50% + 420px); top: auto; bottom: 430px; width: 140px; }
.hero .hero-bed { z-index: 2; width: 120px; }
.hero-bed-l { right: calc(50% + 470px); bottom: 86px; }
.hero-bed-r { left: min(calc(50% + 545px), calc(100% - 150px)); bottom: 82px; scale: -1 1; }
.hero-bed-r .fl { animation-duration: 4.4s; }
.hero-pals { position: absolute; z-index: 2; bottom: 66px; display: flex; align-items: flex-end; gap: 14px; }
.hero-pals-l { right: calc(50% + 236px); }
.hero-pals-r { left: calc(50% + 300px); bottom: 58px; }
.hero-pal { display: block; width: 92px; animation: palIn .8s var(--spring) both; animation-delay: calc(1.5s + var(--i) * .12s); }
.hero-pal .character { animation: bob 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.9s); transition: translate .35s var(--spring); }
.hero-pal:hover .character { translate: 0 -6px; }
@keyframes palIn { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@media (max-width: 1239px) {
  .hero-pals { display: none; }
  /* The sun in the middle of the sky right of the iPad. */
  .hero .hero-sun { left: calc(75% + 44px); bottom: 440px; width: 112px; }
  .hero-bed-l { right: calc(50% + 236px); }
  .hero-bed-r { left: min(calc(50% + 290px), calc(100% - 118px)); }
}
/* Below this the iPhone fills the lawn on the right. */
@media (max-width: 779px) { .hero-bed-r { display: none; } }
/* Phones: the sun peeks in at the top left, one flower bed by the iPad. */
@media (max-width: 640px) {
  .hero .hero-sun { left: -26px; top: 66px; bottom: auto; width: 74px; }
  .hero .hero-bed { width: 64px; }
  .hero-bed-l { left: -12px; right: auto; bottom: 100px; }
}
.hero-logo { width: min(400px, 74vw); }
.hero-logo button { display: block; width: 100%; }
.hero-logo svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 4px 0 rgba(107, 74, 46, .10)) drop-shadow(0 12px 13px rgba(107, 74, 46, .24)); animation: logoIn 1s var(--spring) both .1s; }
@keyframes logoIn { from { opacity: 0; transform: translateY(18px) scale(.86) rotate(-5deg); } to { opacity: 1; transform: none; } }
/* The roof logo's wave (StickerLogo.swift): each letter hops 14 units in turn, 45 ms apart,
   taking its own white edge along while the sticker's backing stays put. */
.hop .logo-art .l { animation: letterHop .34s linear both; animation-delay: calc(var(--k) * 45ms); }
@keyframes letterHop { 0%, 100% { transform: none; } 17% { transform: translateY(-7px); } 33% { transform: translateY(-12.1px); } 50% { transform: translateY(-14px); } 67% { transform: translateY(-12.1px); } 83% { transform: translateY(-7px); } }
.hero-title { margin-top: 34px; font: 600 clamp(30px, 3.6vw, 48px)/1.08 var(--title); color: var(--ink); animation: riseIn .9s var(--ease-out) both .35s; }
.hero-line { margin-top: 16px; max-width: 32em; font-size: 19px; animation: riseIn .9s var(--ease-out) both .45s; }
.hero-free { margin-top: 24px; font-size: 15px; font-weight: 600; color: var(--ink); animation: riseIn .9s var(--ease-out) both .55s; }
.hero .badge { margin-top: 12px; animation: riseIn .9s var(--ease-out) both .6s; }
.devices { list-style: none; margin: 18px 0 0; padding: 0; display: flex; gap: 10px; animation: riseIn .9s var(--ease-out) both .7s; }
.devices li { display: inline-flex; align-items: center; gap: 9px; background: rgba(255, 255, 255, .85); border-radius: 14px; padding: 8px 16px 8px 12px; font-size: 15px; font-weight: 600; color: var(--ink); }
.devices svg { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-devices { position: relative; width: min(400px, 72vw); margin-top: 56px; }
.hero-ipad { position: relative; width: 100%; animation: ipadIn 1.2s var(--ease-out) both .55s; }
/* The iPhone, offset over the iPad's lower right corner and leaning a little. */
.hero-phone { position: absolute; z-index: 1; right: -14%; bottom: -40px; width: 34%; background: #1F1E1D; border-radius: 24px; padding: 6px; rotate: 4deg; box-shadow: 0 26px 44px -18px rgba(40, 40, 60, .5); animation: phoneIn 1.1s var(--spring) both 1.15s; }
.hero-phone-screen { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 540 / 1170; background: var(--sky); }
.hero-phone-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes phoneIn { from { opacity: 0; transform: translate(26px, 60px) rotate(8deg); } to { opacity: 1; transform: none; } }
.hero-ipad::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -16px; height: 26px; border-radius: 50%; background: rgba(40, 90, 30, .28); filter: blur(10px); z-index: -1; }
@keyframes ipadIn { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
/* The app opening, on a 14 second loop: splash, the house, a tap on Melody Music, its piano. */
.hero-house { transform-origin: 50% 50%; animation: heroHouse 14s ease-in-out infinite; }
.hero-tap { position: absolute; left: 38.6%; top: 42.2%; width: 64px; height: 64px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .95); box-shadow: 0 0 0 3px rgba(43, 47, 58, .15); opacity: 0; animation: heroTap 14s ease-out infinite; }
.hero-game { opacity: 0; animation: heroGame 14s linear infinite; }
/* Tapping a room in the app (RoomWipe.swift): a circle in the room's wallpaper colour closes in on the
   room, a beat, then opens on the room's page from the middle; going home runs it backwards. */
@property --hp { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
.hero-iris { position: absolute; inset: 0; pointer-events: none; background: #CCD0F6; --hp: 100%;
  -webkit-mask-image: radial-gradient(circle farthest-corner at var(--hx) var(--hy), transparent var(--hp), #000 calc(var(--hp) + .5px));
  mask-image: radial-gradient(circle farthest-corner at var(--hx) var(--hy), transparent var(--hp), #000 calc(var(--hp) + .5px)); }
.hero-iris-room { --hx: 38.6%; --hy: 42.2%; animation: heroIrisRoom 14s linear infinite; }
.hero-iris-mid { --hx: 50%; --hy: 50%; animation: heroIrisMid 14s linear infinite; }
.hero-splash { position: absolute; inset: 0; background: var(--sky); display: grid; place-items: center; animation: heroSplash 14s ease-in-out infinite; }
.hero-splash img { position: static; width: 62%; height: auto; animation: heroLogo 14s ease-in-out infinite; }
@keyframes heroSplash { 0%, 17% { opacity: 1; } 23%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes heroLogo { 0% { transform: scale(.82); opacity: 0; } 5% { transform: scale(1.04); opacity: 1; } 8%, 17% { transform: scale(1); opacity: 1; } 23%, 100% { transform: scale(1.15); opacity: 0; } }
@keyframes heroHouse { 0%, 17% { transform: scale(1.06); } 27%, 100% { transform: none; } }
@keyframes heroTap { 0%, 44.857% { transform: translate(-50%, -50%) scale(.4); opacity: 0; } 45% { transform: translate(-50%, -50%) scale(.7); opacity: .95; } 50.357%, 100% { transform: translate(-50%, -50%) scale(1.7); opacity: 0; } }
@keyframes heroGame { 0%, 49% { opacity: 0; } 49.021%, 90.857% { opacity: 1; } 90.879%, 100% { opacity: 0; } }
@keyframes heroIrisRoom { 0% { --hp: 100%; } 46% { --hp: 100%; animation-timing-function: cubic-bezier(.42, 0, 1, 1); } 49%, 49.857% { --hp: 0%; } 49.879%, 91.214% { --hp: 100%; } 91.236% { --hp: 0%; } 91.714% { --hp: 0%; animation-timing-function: cubic-bezier(0, 0, .58, 1); } 94.714%, 100% { --hp: 100%; } }
@keyframes heroIrisMid { 0%, 49.357% { --hp: 100%; } 49.379% { --hp: 0%; } 49.857% { --hp: 0%; animation-timing-function: cubic-bezier(0, 0, .58, 1); } 52.857% { --hp: 100%; } 87.857% { --hp: 100%; animation-timing-function: cubic-bezier(.42, 0, 1, 1); } 90.857%, 91.714% { --hp: 0%; } 91.736%, 100% { --hp: 100%; } }

/* ---------- Statement ---------- */
.statement { padding: 150px 24px 40px; text-align: center; }
.statement-big { margin: 0 auto; max-width: 880px; font: 500 clamp(27px, 3.1vw, 42px)/1.3 var(--title); color: var(--ink); }
.statement-big .w { display: inline-block; opacity: .14; transform: translateY(.28em); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d); }
.statement-big.in .w { opacity: 1; transform: none; }
.statement-small { margin: 28px auto 0; max-width: 34em; font-size: 19px; line-height: 1.65; }

/* ---------- Meet the friends ---------- */
.cast { padding: 140px 24px 20px; text-align: center; }
.cast-grid { list-style: none; margin: 56px auto 0; padding: 0; max-width: 1100px; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.cast-card { flex: 0 0 196px; background: var(--tint); border-radius: 30px; padding: 30px 16px 26px; transition: translate .45s var(--spring); }
.cast-card .character { width: 104px; height: 104px; margin: 0 auto; transition: rotate .45s var(--spring), scale .45s var(--spring); }
.cast-card:hover { translate: 0 -6px; }
.cast-card:hover .character { rotate: -6deg; scale: 1.06; }
.cast-card p { margin-top: 20px; font: 600 19px/1.25 var(--title); color: var(--ink); }
@media (max-width: 640px) { .cast { padding-top: 110px; } .cast-grid { gap: 14px; } .cast-card { flex-basis: calc(50% - 7px); padding: 24px 12px 20px; } .cast-card .character { width: 84px; height: 84px; } .cast-card p { font-size: 17px; } }

/* ---------- Rooms: the pinned phone stage ---------- */
.rooms { padding: 90px 24px 40px; }
.rooms-wrap { max-width: 1200px; margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 48px 80px; }
.stage-col { flex: 1 1 520px; max-width: 600px; position: sticky; top: max(84px, calc(50vh - 290px)); }
.stage { position: relative; height: 580px; border-radius: 36px; overflow: hidden; }
/* Each room's own picture, for the stacked layout below (hidden beside the pinned phone). */
.step-stage { display: none; }
.wp { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease-out); }
.wp.on { opacity: 1; }
.stage-phone { position: absolute; left: 50%; top: 50%; height: calc(100% - 74px); translate: -50% -53%; background: #1F1E1D; border-radius: 46px; padding: 9px; box-shadow: 0 34px 60px -30px rgba(30, 40, 60, .55); }
.phone-screen { position: relative; height: 100%; aspect-ratio: 540 / 1170; overflow: hidden; border-radius: 37px; background: var(--sky); isolation: isolate; }
.phone-screen > img, .stage-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-clip { visibility: hidden; background: var(--sky); }
.stage-clip.on { visibility: visible; }
/* The app's room wipe: a flat cover in the room's wallpaper colour with a round hole in it. */
@property --ir { syntax: "<length>"; inherits: false; initial-value: 0px; }
.stage-iris { position: absolute; inset: 0; z-index: 1; pointer-events: none; background-color: var(--iris-c, var(--sky)); --ir: 4000px;
  -webkit-mask-image: radial-gradient(circle at var(--ix, 50%) var(--iy, 50%), transparent var(--ir), #000 calc(var(--ir) + .5px));
  mask-image: radial-gradient(circle at var(--ix, 50%) var(--iy, 50%), transparent var(--ir), #000 calc(var(--ir) + .5px)); }
/* Magic Mirror is the camera, so its page here is its room from the house (MirrorRoomFriend.swift): the square
   admires itself while its reflection, turned round and stretched tall, sways the other way and blinks with it.
   The reflection is a little shorter than the app's so the party hat fits in the glass. */
.stage-scene { position: absolute; inset: 0; visibility: hidden; }
.stage-scene.on { visibility: visible; }
.stage-mirror { position: absolute; inset: 0; width: 100%; height: 100%; }
.mr-friend { position: absolute; }
.mr-friend .character { width: 100%; aspect-ratio: 1; }
/* Everything starts together when the room opens, so each look lands as the two lean in. */
.stage-scene.on .mr-friend { animation: mrSway 3.2s ease-in-out infinite; }
@keyframes mrSway { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(-3deg); } }
.stage-scene.on .mr-reflection { animation: mrSwayBack 3.2s ease-in-out infinite; }
@keyframes mrSwayBack { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(-3deg); } }
/* The reflection tries on the Mirror's looks, one at a time: the party hat, the shades, the big nose. */
.mr-look { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.mr-look-hat { transform-origin: 50% 100%; }
.stage-scene.on .mr-look { animation: mrLook 9.6s linear .8s infinite both; }
.stage-scene.on .mr-look-shades { animation-delay: 4s; }
.stage-scene.on .mr-look-nose { animation-delay: 7.2s; }
@keyframes mrLook {
  0% { transform: scale(0); animation-timing-function: cubic-bezier(.3, 1.6, .6, 1); }
  5% { transform: scale(1); }
  26% { transform: scale(1); animation-timing-function: ease-out; }
  27.5% { transform: scale(1.08); animation-timing-function: cubic-bezier(.5, 0, .9, .4); }
  30%, 100% { transform: scale(0); }
}
.mr-twinkle { transform-box: fill-box; transform-origin: center; animation: mrTwinkle 2.6s ease-in-out infinite; animation-delay: calc(var(--t) * -.55s); }
@keyframes mrTwinkle { 0%, 100% { opacity: 0; transform: scale(.3); } 45% { opacity: 1; transform: scale(1); } 70% { opacity: .25; transform: scale(.6) rotate(25deg); } }
/* Sound, as in the app: off until a grown-up turns it on. */
.stage-sound { position: absolute; right: 18px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); font: 600 14px/1 var(--text); box-shadow: 0 8px 18px -10px rgba(30, 40, 60, .45); opacity: 0; visibility: hidden; translate: 0 10px; transition: opacity .3s var(--ease-out), translate .45s var(--spring), visibility 0s .3s; }
.stage-sound.show { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.stage-sound:hover { background: #fff; }
.stage-sound:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.stage-sound-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.stage-sound-icon svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stage-sound-icon svg path:first-child { fill: #fff; }
.sound-on, .stage-sound[aria-pressed="true"] .sound-off { display: none; }
.stage-sound[aria-pressed="true"] .sound-on { display: block; }
/* Which room you're in, and a way to jump to any of them: on a white strip of its own so it never mixes
   with a wallpaper's pattern. */
.stage-dots { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; z-index: 2; display: flex; align-items: center; padding: 4px 6px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 16px -8px rgba(30, 40, 60, .35); }
.stage-dots button { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; transition: width .45s var(--spring); }
.stage-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(43, 47, 58, .24); transition: width .45s var(--spring), background-color .3s var(--ease-out); }
.stage-dots button:hover::before { background: rgba(43, 47, 58, .5); }
.stage-dots button[aria-current="true"] { width: 38px; }
.stage-dots button[aria-current="true"]::before { width: 24px; background: var(--ink); }
.stage-dots button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.steps { flex: 1 1 380px; max-width: 460px; padding: 6vh 0; }
.step { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; opacity: .22; transform: translateY(10px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.step.is-active { opacity: 1; transform: none; }
.step .tape { clip-path: polygon(0 0, 0 0, 0 25%, 0 50%, 0 75%, 0 100%, 0 100%, 0 75%, 0 50%, 0 25%); transition: clip-path .7s var(--ease-out) .1s; }
.step.seen .tape { clip-path: polygon(0 0, 100% 0, 97% 25%, 100% 50%, 97% 75%, 100% 100%, 0 100%, 3% 75%, 0 50%, 3% 25%); }
.step h2 { margin-top: 18px; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.06; }
.step > p:not(.tape):not(.tags):not(.shots-label):not(.mirror-try-note) { margin-top: 16px; font-size: 18px; line-height: 1.65; }
.tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.tags > span { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 5px 16px 5px 5px; font: 600 16px/1 var(--title); opacity: 0; transform: translateY(8px) scale(.94); transition: opacity .5s var(--ease-out), transform .6s var(--spring); }
.step.seen .tags > span { opacity: 1; transform: none; transition-delay: .35s; }
.step.seen .tags > span + span { transition-delay: .5s; }
.tag-count { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.tag-count b { width: 34px; height: 34px; border-radius: 50%; background: var(--tape); display: inline-grid; place-items: center; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tag-free { background: #DDF3E5; color: #1F5C3B; }
.tag-free b { width: 34px; height: 34px; border-radius: 50%; background: #2E8A57; color: #fff; display: inline-grid; place-items: center; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Each room's screens: a strip of the app's own screens (shots.js opens them big). */
/* A size container: the strip never widens its column (on a phone it scrolls
   sideways instead), and its screens are sized so eight fit in one row. */
.shots { margin: 18px -4px 0; padding: 6px 4px 12px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; container-type: inline-size; align-items: flex-start; }
.shots::-webkit-scrollbar { display: none; }
/* Every room's screens are the same size: eight to a row, 50px at most. */
.shot { flex: none; width: clamp(38px, (100cqw - 56px) / 8, 50px); aspect-ratio: 540 / 1170; padding: 0; border: 0; border-radius: 9px; overflow: hidden; background: #fff; cursor: zoom-in; scroll-snap-align: start;
  box-shadow: 0 0 0 2px #fff, 0 6px 14px -6px rgba(43, 47, 58, .4); transition: transform .35s var(--spring); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot:hover { transform: translateY(-4px) rotate(-2deg); }
.shot:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.shots-label { margin-top: 20px; font: 600 15px/1.3 var(--title); color: var(--muted); }
.shots-label + .shots { margin-top: 6px; }

/* The screens, big. */
html.sb-open { overflow: hidden; }
/* manipulation: quick taps on the arrows each move on at once, and a double
   tap never zooms the page. */
.shots-box { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: transparent; color: #fff;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.shots-box:focus { outline: none; }
.shots-box::backdrop { background: rgba(30, 33, 42, .82); }
/* The caption hangs under the screen, out of the row, so a long name never
   pushes the arrows apart and the screen itself never moves. */
.sb { height: 100%; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 24px 24px 108px; }
.sb-figure { position: relative; margin: 0; touch-action: pan-y; user-select: none; }
.sb-img { display: block; height: min(74dvh, 760px, calc(100dvh - 132px)); width: auto; aspect-ratio: 540 / 1170; border-radius: 30px; background: #fff;
  box-shadow: 0 0 0 7px #1F1E1D, 0 34px 70px -20px rgba(0, 0, 0, .7); }
.sb-img.in { animation: sbIn .35s var(--ease-out); }
@keyframes sbIn { from { opacity: .3; transform: scale(.97); } }
.sb-cap { position: absolute; top: calc(100% + 20px); left: 50%; transform: translateX(-50%); width: max-content; max-width: min(92vw, 640px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; text-align: center; }
.sb-name { font: 600 22px/1.2 var(--title); color: #fff; }
.sb-chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font: 600 14px/1 var(--title); }
.sb-chip.is-free { background: #DDF3E5; color: #1F5C3B; }
.sb-chip.is-locked { background: rgba(255, 255, 255, .16); color: #fff; }
.sb-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sb-count { width: 100%; font: 500 15px/1 var(--text); color: rgba(255, 255, 255, .7); }
.sb-nav, .sb-close { flex: none; width: 54px; height: 54px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); transition: transform .3s var(--spring); touch-action: manipulation; }
/* Hover only where there's a mouse: on a phone it sticks after a tap. */
@media (hover: hover) { .sb-nav:hover, .sb-close:hover { transform: scale(1.08); } }
.sb-nav:focus-visible, .sb-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.sb-nav svg, .sb-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sb-close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; }
@media (max-width: 640px) {
  .shot { width: 46px; }
  /* On a phone the arrows sit beside the screen too, and only the caption
     hangs under it, so the screen gets nearly all the height: as tall as the
     height allows, or as the width leaves room for beside the arrows
     (8 + 44 + 14 on each side), whichever is smaller. */
  .sb { gap: 14px; padding: 16px 8px 92px; }
  .sb-img { height: min(calc(100dvh - 108px), calc((100vw - 132px) * 1170 / 540), 640px); border-radius: 26px; box-shadow: 0 0 0 6px #1F1E1D, 0 30px 60px -20px rgba(0, 0, 0, .7); }
  .sb-nav { position: relative; width: 44px; height: 44px; }
  /* A finger that lands just off an arrow still counts, instead of closing. */
  .sb-nav::before { content: ""; position: absolute; inset: -12px -8px; }
  /* Name on the first line, free or not and the count on the second. */
  .sb-cap { top: calc(100% + 16px); width: calc(100vw - 32px); max-width: none; }
  .sb-name { width: 100%; }
  .sb-count { width: auto; }
  .sb-close { top: 12px; right: 10px; width: 44px; height: 44px; }
}

/* Try the Magic Mirror (mirror-try.js): the visitor's own camera, live, with
   three of the Mirror's free effects. Nothing is recorded or saved. */
.mirror-try { margin-top: 24px; align-self: flex-start; justify-self: start; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 14px 24px 14px 19px;
  background: var(--ink); color: #fff; font: 600 17px/1 var(--title); cursor: pointer; box-shadow: 0 12px 24px -14px rgba(43, 47, 58, .8); transition: transform .35s var(--spring); }
.mirror-try:hover { transform: translateY(-2px); }
.mirror-try:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.mirror-try svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.mirror-try-note { margin-top: 12px; max-width: 26em; font-size: 15px; line-height: 1.5; color: var(--muted); }
/* The Magic Mirror page (mirror-try.js): the app's own Mirror page round the
   visitor's camera. Its wallpaper, gold mirror, corner sticker, camera note,
   Surprise me! button and drawer of tabs, at the app's sizes (MirrorLayout);
   the script works out where they go for the screen. */
@font-face { font-family: "Podkova"; src: url(/fonts/Podkova-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
.mm { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; overflow: clip; --mm-ink: rgba(82, 46, 15, .85); }
.mm::backdrop { background: #D4EEF0; }
.mm-page { position: absolute; inset: 0; overflow: clip; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  background: #D4EEF0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cpath fill='%23B6DEE3' d='M10 5L11.2 8.8L15 10L11.2 11.2L10 15L8.8 11.2L5 10L8.8 8.8Z M26 22L26.96 25.04L30 26L26.96 26.96L26 30L25.04 26.96L22 26L25.04 25.04Z'/%3E%3C/svg%3E") 0 0 / 34px 34px; animation: mmIn .3s var(--ease-out); }
@keyframes mmIn { from { opacity: 0; } }
.mm-frame { position: absolute; left: calc(50% - var(--mm-w) / 2); top: var(--mm-y); width: var(--mm-w); height: var(--mm-h);
  border-radius: calc(34px * var(--mm-s)); background: #E9BE62; box-shadow: 0 7px 22px rgba(40, 70, 80, .45); }
.mm-band { position: absolute; inset: calc(10px * var(--mm-s)); border-radius: calc(25px * var(--mm-s)); background: #D9A445; }
.mm-glass { position: absolute; inset: calc(19px * var(--mm-s)); border-radius: calc(17px * var(--mm-s)); overflow: hidden; background: #DDF1F8; }
.mm-video { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.mm-canvas, .mm-magic { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s; }
.mm-glass.live .mm-canvas, .mm-glass.live .mm-magic { opacity: 1; }
.mm-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font: 700 18px/1.35 var(--title); color: var(--mm-ink); }
.mm-msg:empty { display: none; }
.mm-puff { position: absolute; inset: 0; background: rgba(255, 255, 255, .4); opacity: 0; pointer-events: none; }
.mm-puff svg { position: absolute; left: calc(50% - 13px); top: calc(50% - 13px); width: 26px; height: 26px; transform: translate(var(--x), var(--y)); }
.mm-puff.go { animation: mmPuff .5s ease-out; }
@keyframes mmPuff { 0%, 20% { opacity: 1; } 100% { opacity: 0; } }
.mm-tray { position: absolute; left: 0; right: 0; bottom: 0; height: var(--mm-tray); }
.mm-surprise-bar { position: absolute; left: 0; right: 0; top: 0; height: var(--mm-shut); display: grid; place-items: center; transition: opacity .2s; }
.mm-tray.open .mm-surprise-bar { opacity: 0; pointer-events: none; }
.mm-surprise { border: 0; background: none; padding: 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer;
  font: inherit; transition: transform .2s var(--spring); }
.mm-surprise:active { transform: scale(.94); }
.mm-surprise:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 24px; }
.mm-sticker { position: relative; width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; transform: rotate(-4deg);
  box-shadow: 0 9.8px 16.8px -8.4px rgba(107, 74, 46, .4), 0 1.4px 2.8px rgba(107, 74, 46, .12); }
.mm-sticker::before { content: ""; position: absolute; inset: 9.45px; border-radius: 50%; background: #F6DB4D; }
.mm-sticker svg { position: relative; width: 72.8px; height: 72.8px; overflow: visible; }
.mm-sticker.wiggle { animation: mmWiggle .45s ease-in-out; }
@keyframes mmWiggle { 20% { transform: rotate(-18deg); } 47% { transform: rotate(8deg); } 69% { transform: rotate(-10deg); } }
.mm-surprise-word { font: 700 17px/22px var(--title); color: var(--mm-ink); white-space: nowrap; }
.mm-drawer { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--mm-open-h) + 200px); transform: translateY(var(--mm-shut));
  transition: transform .42s cubic-bezier(.25, .9, .3, 1.03); }
.mm-tray.open .mm-drawer { transform: translateY(var(--mm-open)); }
.mm-tab-faces, .mm-tab-pics, .mm-tab-hits { position: absolute; inset: 0; pointer-events: none; }
.mm-tab-faces { z-index: 1; }
.mm-sheet { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; filter: drop-shadow(0 -3px 10px rgba(0, 0, 0, .1));
  transition: transform .3s ease; }
.mm-tray:not(.open) .mm-sheet { transform: translateY(24px); }
.mm-tab-pics { z-index: 3; }
.mm-contents { position: absolute; left: 0; right: 0; top: 68px; z-index: 4; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s; }
.mm-tray.open .mm-contents { opacity: 1; pointer-events: auto; }
.mm-tab-hits { z-index: 5; }
.mm-tab-face { position: absolute; left: var(--x); top: 0; width: 64px; height: calc(var(--mm-open-h) + 40px); border-radius: 15px 15px 0 0; background: #fff;
  box-shadow: 0 1.5px 5px rgba(107, 74, 46, .22); transition: transform .3s ease; }
.mm-tab-face::after { content: ""; position: absolute; inset: 3px 3px 0; border-radius: 12px 12px 0 0; background: var(--tab); }
.mm-tray.open .mm-tab-face:not(.joined) { transform: translateY(8px); }
.mm-tab-face.joined { visibility: hidden; }
.mm-tab-pic { position: absolute; left: var(--x); top: 3px; width: 64px; height: 53px; display: grid; place-items: center; transform: translateY(6px); transition: transform .3s ease; }
.mm-tray.open .mm-tab-pic { transform: translateY(8px); }
.mm-tray.open .mm-tab-pic.joined { transform: translateY(2px); }
.mm-tab-pic svg { width: 51px; height: 47px; }
.mm-tab-pic.hop svg { animation: mmHop .28s ease-out; }
@keyframes mmHop { 35% { translate: 0 -5px; } }
.mm-tray.wave .mm-tab-face, .mm-tray.wave .mm-tab-pic svg { animation: mmWave .5s ease-in-out calc(var(--i) * 80ms); }
@keyframes mmWave { 40% { translate: 0 -6px; } }
.mm-dot { position: absolute; right: -3px; top: -7px; width: 16px; height: 16px; border-radius: 50%; background: #4BB479; border: 2.5px solid #fff;
  transform: scale(0); transition: transform .25s var(--spring); }
.mm-dot.on { transform: scale(1); }
.mm-tab-hit { position: absolute; left: var(--x); top: 0; width: 64px; height: 76px; padding: 0; border: 0; border-radius: 15px 15px 0 0; background: transparent;
  cursor: pointer; pointer-events: auto; }
.mm-tray.open .mm-tab-hit { height: 64px; }
.mm-tab-hit:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.mm-kind { height: 32px; font: 700 20px/32px var(--title); color: var(--mm-ink); }
.mm-looks { margin-top: 2px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mm-looks.in { animation: mmIn .25s ease-out; }
.mm-row { display: flex; gap: var(--mm-gap); height: var(--mm-row); align-items: flex-end; }
.mm-look { width: var(--mm-side); padding: 0; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; font: inherit; }
.mm-disc { width: var(--mm-side); height: var(--mm-side); flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center;
  transition: transform .22s var(--spring), box-shadow .15s; }
.mm-look[aria-pressed="true"] .mm-disc { transform: translateY(-4px); box-shadow: inset 0 0 0 4px #4BB479; }
.mm-look:active .mm-disc { transform: scale(.94); }
.mm-look:focus-visible .mm-disc { outline: 3px solid var(--ink); outline-offset: 3px; }
.mm-shot { width: calc(var(--mm-side) - 14px); height: calc(var(--mm-side) - 14px); border-radius: 50%; background: #F4F1EC; }
.mm-word { width: calc(var(--mm-side) + var(--mm-gap) - 2px); height: 14px; font: 700 12px/14px var(--title); color: var(--mm-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.mm-home { position: absolute; left: 16px; top: 16px; z-index: 10; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: none;
  cursor: pointer; transform: rotate(-4deg); box-shadow: 0 7px 12px -6px rgba(107, 74, 46, .4), 0 1px 2px rgba(107, 74, 46, .12); transition: transform .2s var(--spring); }
.mm-home svg { display: block; width: 52px; height: 52px; }
.mm-home:active { transform: rotate(-4deg) scale(.92); }
.mm-home:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.mm-scrim { position: absolute; inset: 0; z-index: 8; background: rgba(0, 0, 0, .25); }
.mm-note { position: absolute; left: 50%; top: 50%; z-index: 9; transform: translate(-50%, -50%); width: min(420px, calc(100% - 56px)); padding: 28px;
  border-radius: 28px; background: #FAF2E3; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
  box-shadow: 0 24px 60px -20px rgba(43, 47, 58, .45); }
.mm-scrim[hidden], .mm-note[hidden] { display: none; }
.mm-note .mm-note-friend { width: 96px; height: 96px; }
.mm-note h3 { font: 700 24px/1.15 var(--title); color: var(--mm-ink); }
.mm-note p { font: 400 16px/1.45 "Podkova", Georgia, serif; color: rgba(82, 46, 15, .62); }
.mm-on { margin-top: 4px; border: 0; border-radius: 999px; padding: 14px 26px; background: #4BB479; color: #fff; font: 700 19px/1 var(--title); cursor: pointer; }
.mm-notnow { border: 0; border-radius: 999px; padding: 12px 22px; background: #E8D9BD; color: var(--mm-ink); font: 700 16px/1 var(--title); cursor: pointer; }
.mm-on:focus-visible, .mm-notnow:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

@media (max-width: 860px) {
  .rooms { padding-top: 40px; }
  .rooms-wrap { flex-direction: column; gap: 0; }
  /* No pinned phone here: each room's picture sits above its words and scrolls
     along with them (owner: the stuck room picture was bad on phones). home.js
     moves the one film into whichever picture is nearest the middle. */
  .stage-col { display: none; }
  .step-stage { display: block; flex: none; margin-bottom: 26px; }
  .stage { height: min(46vh, 420px); border-radius: 28px; }
  .stage-phone { height: calc(100% - 28px); translate: -50% -50%; border-radius: 34px; padding: 7px; }
  .phone-screen { border-radius: 27px; }
  .stage-sound { right: 12px; bottom: 12px; padding: 5px; }
  .stage-sound-icon { width: 34px; height: 34px; }
  .stage-sound-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .stage-dots { display: none; }
  .steps { max-width: none; padding: 0 4px; }
  .step { min-height: 0; opacity: 1; transform: none; }
  .step + .step { margin-top: 72px; }
}

/* ---------- Prices ---------- */
.prices { padding: 150px 24px 150px; text-align: center; }
.prices h2, .care h2, .cast h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.06; }
.price-grid { list-style: none; margin: 56px auto 0; padding: 0; max-width: 1200px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 20px; }
.price-card { display: flex; flex-direction: column; align-items: center; }
.price-tile { width: 100%; aspect-ratio: 600 / 560; border-radius: 20px; padding: 10px; display: grid; place-items: center; overflow: hidden; }
.price-tile img { width: 100%; transform: translateY(16px) scale(.9); opacity: 0; transition: transform .7s var(--spring), opacity .5s var(--ease-out); transition-delay: calc(var(--d, 0s) + .2s); }
.price-card.in .price-tile img { transform: none; opacity: 1; }
.price-card:hover .price-tile img { transform: translateY(-5px) scale(1.03); transition-delay: 0s; }
.price-card h3 { margin-top: 18px; font-size: 20px; line-height: 1.2; }
.price-card p { margin: 6px auto 0; max-width: 15em; min-height: 3em; font-size: 15px; line-height: 1.5; }
.unlock { margin-top: 14px; display: inline-flex; align-items: center; gap: 7px; background: var(--ink); color: #fff; border-radius: 999px; padding: 7px 14px 7px 11px; font: 600 14px/1 var(--title); white-space: nowrap; }
.unlock svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transform-origin: 50% 70%; }
.unlock-line { margin-top: 24px; }
.unlock-line .unlock { margin-top: 0; }
.note { margin-top: 40px; font-size: 16px; }
@media (max-width: 1100px) { .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 820px; } }
@media (max-width: 620px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; } .price-card p { font-size: 14px; } .unlock { font-size: 13px; } }

/* ---------- Care ---------- */
.care { padding: 150px 24px 40px; text-align: center; }
.no-grid, .promise-grid { list-style: none; padding: 0; max-width: 1200px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.no-grid { margin: 64px auto 0; }
.promise-grid { margin: 20px auto 0; }
.no-tile { position: relative; background: var(--tint); border-radius: 28px; padding: 30px 28px 32px; min-height: 250px; text-align: left; }
.no-tile b { display: inline-block; font: 700 72px/.9 var(--title); color: var(--stamp); transform-origin: 30% 60%; opacity: 0; transform: scale(1.8) rotate(-14deg); transition: transform .55s cubic-bezier(.2, 1.5, .4, 1), opacity .25s linear; transition-delay: calc(var(--d, 0s) + .2s); }
.no-tile.in b { opacity: 1; transform: none; }
.no-tile .peek { position: absolute; right: 20px; top: -30px; width: 76px; rotate: var(--r); opacity: 0; transform: translateY(30px) scale(.6); transition: transform .6s var(--spring), opacity .3s var(--ease-out); transition-delay: calc(var(--d, 0s) + .55s); }
.no-tile.in .peek { opacity: 1; transform: none; }
.no-tile:hover .peek { animation: peekHop .6s var(--spring); }
@keyframes peekHop { 0%, 100% { translate: 0 0; } 40% { translate: 0 -12px; } }
.no-tile h3 { margin-top: 14px; font-size: 25px; }
.no-tile p { margin-top: 6px; font-size: 15px; line-height: 1.55; }
.promise-grid li { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; text-align: left; }
.chip { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; }
.chip svg { width: 22px; height: 22px; fill: none; stroke: var(--chip-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.promise-grid h3 { font-size: 17px; }
.promise-grid p { margin-top: 2px; font-size: 14px; line-height: 1.45; }
@media (max-width: 1000px) { .no-grid, .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; } .no-grid { gap: 40px 20px; } }
@media (max-width: 560px) { .no-grid, .promise-grid { grid-template-columns: 1fr; } }

/* ---------- Garden (the closing) ---------- */
.garden { position: relative; overflow: hidden; background: var(--sky); padding: 120px 24px 0; text-align: center; }
.sun { position: absolute; left: max(5%, 20px); top: 48px; width: clamp(104px, 12vw, 156px); aspect-ratio: 1; animation: sunBob 5.5s ease-in-out infinite; }
.sun-rays { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sun-turn { transition: transform .9s cubic-bezier(.33, 1, .68, 1); }
.sun-spin { animation: sunSpin 45s linear infinite; }
.sun.poked .sun-flare { animation: sunFlare .7s ease-in-out; }
.sun-body { position: absolute; left: 21.4%; top: 21.4%; width: 57.2%; }
.sun.poked .sun-body { animation: sunBoing 1.2s linear; }
@keyframes sunBob { 0%, 100% { translate: 0 -2.1%; } 50% { translate: 0 2.1%; } }
@keyframes sunSpin { to { transform: rotate(360deg); } }
@keyframes sunFlare { 0%, 100% { transform: none; } 50% { transform: scale(1.25); } }
@keyframes sunBoing { 0% { scale: 1; } 11.6% { scale: 1.107; } 23.2% { scale: 1; } 34.7% { scale: .969; } 46.3% { scale: 1; } 57.9% { scale: 1.009; } 100% { scale: 1; } }
.garden-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.garden-icon { width: 112px; border-radius: 25px; box-shadow: 0 16px 30px -16px rgba(60, 40, 90, .6); }
.garden h2 { margin-top: 24px; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; }
.garden .badge { margin-top: 28px; }
.garden-free { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--ink); }
.lawn { position: relative; height: 250px; margin: 40px -24px 0; background: linear-gradient(transparent 0 112px, var(--lawn-top) 112px 150px, var(--lawn) 150px 100%); }
.bush { position: absolute; bottom: 128px; width: clamp(104px, 11vw, 160px); height: auto; overflow: visible; transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite; }
.bush-l { left: 4%; }
.bush-r { right: 5%; animation-delay: -3s; }
.flowers { position: absolute; width: clamp(84px, 8vw, 120px); height: auto; overflow: visible; }
.flowers .fl { animation: flSway 3.8s ease-in-out infinite; animation-delay: calc(var(--n) * -1.3s); }
.fl-1 { left: 15%; bottom: 30px; }
.fl-2 { right: 19%; bottom: 18px; }
.fl-2 .fl { animation-duration: 4.4s; }
@keyframes flSway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes sway { 0%, 100% { rotate: calc(var(--sway, 1.5deg) * -1); } 50% { rotate: var(--sway, 1.5deg); } }
.friends { position: absolute; left: 50%; bottom: 96px; translate: -50% 0; display: flex; align-items: flex-end; gap: clamp(6px, 1.4vw, 16px); }
.friend { display: block; width: clamp(62px, 7.6vw, 108px); opacity: 0; transform: translateY(70px); transition: transform .7s var(--spring), opacity .3s var(--ease-out); transition-delay: calc(var(--i) * 90ms + .15s); }
.garden.in .friend { opacity: 1; transform: none; }
.friend .character { animation: bob 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.7s); transition: translate .35s var(--spring); }
.friend:hover .character { translate: 0 -6px; }
@keyframes bob { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }

/* ---------- Live friends (characters.js, the app's Characters ported) ---------- */
.character { display: block; transition: opacity .4s ease; }
.character svg { display: block; width: 100%; height: 100%; overflow: visible; }
.js .character:not(.sf-mounted) { opacity: 0; }

/* ---------- Footer: the hedge at the bottom of the garden ---------- */
.site-footer { position: relative; background: var(--hedge); color: #F2FAEC; padding: 64px 24px 40px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 23px; background: radial-gradient(circle at 50% 100%, var(--hedge) 17px, transparent 17.5px) 0 0 / 34px 23px repeat-x; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand img { width: 150px; height: auto; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .18)); transition: transform .5s var(--spring); }
.footer-brand img:hover { transform: rotate(-4deg) scale(1.04); }
.footer-brand p { margin-top: 18px; max-width: 22em; font-size: 15px; line-height: 1.6; color: #DDEFD4; }
.footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.footer-col h2 { font: 700 13px/1.4 var(--text); letter-spacing: .1em; text-transform: uppercase; color: #BFE3B0; margin-bottom: 6px; }
.footer-col a { text-decoration: none; color: #F2FAEC; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease-out); padding-bottom: 2px; }
.footer-col a:hover { background-size: 100% 2px; }
/* Also from us: the app's real icon beside its name and one line, like a row in the App Store. */
.footer-col .footer-also { display: flex; align-items: center; gap: 12px; padding-bottom: 0; background: none; }
.footer-also img { flex: none; width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35); transition: transform .5s var(--spring); }
.footer-also:hover img { transform: rotate(-4deg) scale(1.04); }
.footer-also b { display: block; width: fit-content; font-weight: 700; line-height: 1.3; white-space: nowrap; padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease-out); }
.footer-also:hover b { background-size: 100% 2px; }
.footer-also b + span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; text-wrap: balance; }
/* Narrow laptop windows: the column is too slim for a row, so the icon sits above the name. */
@media (min-width: 861px) and (max-width: 1100px) { .footer-col .footer-also { flex-direction: column; align-items: flex-start; gap: 10px; } }
.footer-small { max-width: 1200px; margin: 44px auto 0; padding-top: 20px; border-top: 1px solid rgba(242, 250, 236, .2); font-size: 14px; color: #CFE6C4; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand, .footer-also-col { grid-column: 1 / -1; } }

/* ---------- Scroll reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="pop"] { transform: scale(.6) rotate(-6deg); transition: opacity .4s var(--ease-out), transform .8s var(--spring); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .cloud-a, .cloud-b { display: none; }
  .cloud-c { left: auto; right: -20px; top: auto; bottom: 330px; }
  .hero { padding-top: 92px; }
  .hero-line { font-size: 17px; }
  .statement { padding-top: 110px; }
  .prices, .care { padding-top: 110px; }
  .prices { padding-bottom: 110px; }
  .garden { padding-top: 150px; }
  .cloud-e { display: none; }
  .friends { gap: 2px; bottom: 100px; }
  .friend { width: 54px; }
  .bush { width: 92px; bottom: 132px; }
  .bush-l { left: -22px; }
  .bush-r { right: -22px; }
  .flowers { width: 76px; }
  .fl-1 { left: 6%; bottom: 22px; }
  .fl-2 { right: 8%; bottom: 12px; }
}

/* Movement off: everything sits still, the hero shows the house. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-splash, .hero-game, .hero-tap, .hero-iris { display: none; }
  .js [data-reveal], .statement-big .w, .price-tile img, .no-tile b, .no-tile .peek, .friend, .tags > span { opacity: 1 !important; transform: none !important; }
  .sun, .friend .character { translate: none !important; }
  .mr-look-hat { transform: none; }
  .step { opacity: 1; transform: none; }
  .step .tape { clip-path: polygon(0 0, 100% 0, 97% 25%, 100% 50%, 97% 75%, 100% 100%, 0 100%, 3% 75%, 0 50%, 3% 25%); }
}
