/* The home page: a promise, a preview that follows the chosen person, a small editor that works,
   the designs, three steps with a site being built, questions. story.css is loaded first for the themes. */

:root {
  --ink: #3c0a22; --ink-2: #5b2840; --soft: #7d5a6a; --line: #ecdcd0;
  --crimson: #b8104a; --crimson-2: #d6336c; --berry: #9a1b55; --berry-2: #7a1244;
  --cream: #fdf6ee; --cream-2: #f8eadf; --blush: #fbe4ea; --lilac: #f1e2f5; --lilac-2: #e2c8ee; --gold: #f2b632;
  --head: 'Rubik', 'Heebo', system-ui, sans-serif; --body: 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif; --hand: 'Gveret Levin', 'Rubik', cursive;
  --pad: clamp(16px, 5vw, 48px);
  --wave-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C150 2 300 2 450 18s300 20 450 2 250-20 300-6v26z'/%3E%3C/svg%3E");
  --wave-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0v18c150 20 300 20 450 4s300-20 450-2 250 20 300 6V0z'/%3E%3C/svg%3E");
}
html { scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: hidden; }
/* The soft circle behind the opening is wider than a phone: it is cut at the page's edge. */
.home main { overflow-x: clip; }
body.home {
  margin: 0; color: var(--ink); background: var(--cream); font-family: var(--body); line-height: 1.6; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.home h1, .home h2, .home h3, .home p, .home ul, .home ol, .home figure { margin: 0; padding: 0; }
:where(.home) a { color: inherit; }
:where(.home) button { font: inherit; color: inherit; cursor: pointer; }
:where(.home) svg { display: block; }
.home :focus-visible { outline: 2.5px solid var(--crimson); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accent { stroke: var(--crimson); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; isolation: isolate;
  border: 0; border-radius: 999px; text-decoration: none; white-space: nowrap; font-family: var(--head); font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-sm { height: 40px; padding: 0 18px; font-size: .92rem; font-weight: 700; color: #fff; background: var(--crimson); box-shadow: 0 10px 22px -12px rgba(150, 10, 60, .8); }
.btn-main {
  width: min(100%, 460px); height: 60px; gap: 12px; padding-inline: 8px 22px; font-size: clamp(1.15rem, 4.4vw, 1.32rem); color: #fff;
  background: var(--crimson); box-shadow: 0 18px 34px -16px rgba(150, 10, 60, .85), inset 0 -3px 0 rgba(0, 0, 0, .14);
}
.btn-main:hover { background: #a60d42; }
.btn-badge {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--crimson);
  box-shadow: 0 6px 14px -6px rgba(60, 0, 20, .55);
}
.btn .btn-badge svg { width: 24px; height: 24px; transform-origin: 50% 90%; animation: gift-wiggle 6s ease-in-out 3s infinite; }
.btn-label { flex: 1; text-align: center; }
.btn .btn-go { width: 22px; height: 22px; opacity: .92; }
.btn-light { height: 56px; padding: 0 28px; font-size: 1.1rem; color: var(--berry-2); background: #fff; box-shadow: 0 16px 30px -16px rgba(40, 0, 20, .7); }
.btn-white { height: 60px; padding: 0 36px; font-size: 1.2rem; color: var(--crimson); background: #fff; box-shadow: 0 18px 34px -16px rgba(40, 0, 20, .8); }
/* a streak of light across the button every few seconds */
.shine::after {
  content: ''; position: absolute; inset: 0 auto 0 -60%; z-index: -1; width: 45%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent); animation: shine 4.5s ease-in-out 1.6s infinite;
}
.btn-white.shine::after { background: linear-gradient(90deg, transparent, rgba(184, 16, 74, .14), transparent); }
@keyframes shine { 0% { left: -60%; } 28%, 100% { left: 130%; } }
.nudge { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(-5px); } }
.text-link {
  appearance: none; border: 0; background: none; padding: 4px 2px; font-family: var(--head); font-weight: 600; font-size: 1.02rem; color: var(--ink);
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); text-underline-offset: 6px; text-decoration-thickness: 1.5px;
}
.text-link:hover { text-decoration-color: var(--crimson); color: var(--crimson); }

/* ---------- the bar at the top ---------- */
.top {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--pad); background: color-mix(in srgb, var(--cream) 82%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); transition: box-shadow .25s ease;
}
.top.is-stuck { box-shadow: 0 8px 26px -18px rgba(60, 10, 34, .55); }
.brand { position: relative; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; direction: ltr; }
.brand-gift { width: 30px; height: 30px; color: var(--crimson); animation: gift-wiggle 6s ease-in-out 2.4s infinite; transform-origin: 50% 90%; }
@keyframes gift-wiggle { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-9deg); } 92% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 1.32rem; letter-spacing: -.01em; color: var(--ink); }
.brand-ribbon { position: absolute; left: 40px; bottom: -14px; width: 118px; height: 28px; fill: none; stroke: var(--crimson-2); stroke-width: 2.4; stroke-linecap: round; }
.brand-ribbon .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s ease-out .5s forwards; }
.brand-ribbon .bow { opacity: 0; transform-box: fill-box; transform-origin: 50% 0; animation: bow .5s cubic-bezier(.3, 1.6, .5, 1) 1.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bow { from { opacity: 0; transform: scale(.2) rotate(-20deg); } to { opacity: 1; transform: none; } }
.brand-small .brand-name { font-size: 1.1rem; }
.brand-small .brand-gift { width: 24px; height: 24px; animation: none; }

/* ---------- the opening ---------- */
/* On a phone the title, the choice of person, the preview and the main button fit the first screen. */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; max-width: 1180px; margin: 0 auto;
  padding: 4px var(--pad) clamp(50px, 8vw, 90px); text-align: center;
}
.hero-blob {
  position: absolute; z-index: -1; top: 26%; left: 50%; width: min(150vw, 1100px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, #fbe1e9 0 52%, color-mix(in srgb, #fbe1e9 40%, transparent) 62%, transparent 70%);
  animation: breathe 9s ease-in-out infinite alternate;
}
@keyframes breathe { to { transform: translateX(-50%) scale(1.05); } }
.hero-copy { position: relative; display: grid; gap: 10px; justify-items: center; padding-top: 14px; }
/* two short lines, each on one line from a 320px phone up */
.title { font-family: var(--head); font-weight: 900; font-size: clamp(2rem, 9.6vw, 3.6rem); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.title .line { display: block; opacity: 0; animation: rise .8s cubic-bezier(.2, .8, .2, 1) forwards; text-wrap: balance; }
.title .l1 { animation-delay: .1s; }
.title .l2 { color: var(--crimson); animation-delay: .35s; }
.mark { position: relative; display: inline-block; }
.swoosh { position: absolute; left: -2%; right: -6%; bottom: -.24em; width: 108%; height: .32em; fill: none; stroke: var(--crimson); stroke-width: 4.5; stroke-linecap: round; overflow: visible; }
.swoosh path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.6, 0, .3, 1) 1s forwards; }
.lead {
  max-width: 26em; font-family: var(--head); font-weight: 500; font-size: clamp(1rem, 4.2vw, 1.35rem); line-height: 1.35; letter-spacing: -.005em;
  color: var(--ink-2); opacity: 0; animation: rise .8s ease .6s forwards; text-wrap: balance;
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.doodle { position: absolute; color: var(--crimson); opacity: 0; animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) forwards, wiggle 5s ease-in-out infinite; }
.d-heart { top: 0; left: 0; width: 30px; height: 30px; animation-delay: 1.1s, 1.8s; }
.d-sparks { top: -8px; left: 30px; width: 18px; height: 18px; transform: scaleX(-1); animation-delay: 1.25s, 2s; }
.d-star { top: -10px; right: 0; width: 24px; height: 24px; color: var(--gold); animation-delay: 1.4s, 2.2s; }
@keyframes pop { from { opacity: 0; transform: scale(.2) rotate(-30deg); } to { opacity: 1; transform: none; } }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 50% { rotate: 8deg; } }
.d-sparks { animation-name: pop-flip, wiggle; }
@keyframes pop-flip { from { opacity: 0; transform: scaleX(-1) scale(.2); } to { opacity: 1; transform: scaleX(-1); } }

/* who the gift is for: nine portraits in a row that slides, an arrow at each side of its title; the last one seen is cut, so it is clear there are more */
.who { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 6px; width: 100%; opacity: 0; animation: rise .8s ease .75s forwards; }
.who-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; max-width: 460px; }
.who-title { font-family: var(--head); font-weight: 800; font-size: clamp(1.1rem, 4.8vw, 1.5rem); white-space: nowrap; }
.who-row { position: relative; width: min(100%, 620px); }
.who-list {
  display: flex; align-items: flex-start; gap: 4px; margin-inline: calc(var(--pad) * -1); padding: 8px 26px 6px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 22px calc(100% - 22px), transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 22px calc(100% - 22px), transparent 100%);
}
.who-list::-webkit-scrollbar { display: none; }
.who-arrow {
  appearance: none; flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: #fff; color: var(--crimson); box-shadow: 0 0 0 1px var(--line), 0 10px 20px -12px rgba(60, 10, 34, .7); transition: transform .15s ease;
}
.who-arrow svg { width: 20px; height: 20px; }
.who-arrow.is-prev svg { transform: scaleX(-1); }
.who-arrow:active { transform: scale(.92); }
.who-btn { appearance: none; position: relative; flex: none; display: grid; justify-items: center; gap: 7px; width: clamp(74px, 20.4vw, 100px); padding: 0; border: 0; background: none; }
.who-ring {
  position: relative; display: grid; place-items: center; width: clamp(58px, 16vw, 78px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: #fff; border: 2px solid var(--line); box-shadow: 0 10px 22px -16px rgba(60, 10, 34, .7);
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), border-color .2s ease, box-shadow .2s ease;
}
.who-ring img { width: 100%; height: 100%; object-fit: cover; }
.who-ring svg.ic { width: 46%; height: 46%; color: var(--ink); }
.who-label { font-family: var(--head); font-weight: 700; font-size: clamp(.82rem, 3.4vw, .95rem); line-height: 1.1; color: var(--ink-2); white-space: nowrap; transition: color .2s ease; }
.who-btn:hover .who-ring { transform: translateY(-3px); }
.who-btn[aria-pressed='true'] .who-ring {
  transform: scale(1.08); border: 3px solid var(--crimson);
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px color-mix(in srgb, var(--crimson) 28%, transparent), 0 16px 30px -16px rgba(184, 16, 74, .7);
}
.who-btn[aria-pressed='true'] .who-label { color: var(--crimson); font-weight: 800; }
.who-btn.is-bounce .who-ring { animation: bounce .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bounce { 0% { transform: scale(.86); } 100% { transform: scale(1.08); } }
.who-check {
  position: absolute; z-index: 1; top: -4px; right: 4px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--crimson); color: #fff; box-shadow: 0 0 0 3px var(--cream); transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.8, .5, 1) .05s;
}
.who-check svg { width: 14px; height: 14px; }
.who-btn[aria-pressed='true'] .who-check { transform: scale(1); }

/* the site itself, kept as a treasure: sheets of paper under it, a ribbon at its side, a print beside it */
.preview-wrap { position: relative; width: min(100%, 520px); padding: 10px 6px 8px; opacity: 0; animation: rise .9s ease .5s forwards; touch-action: pan-y; }
.album { position: relative; isolation: isolate; user-select: none; -webkit-user-select: none; }
.sheet { position: absolute; z-index: -1; inset: 4px 0 2px; border-radius: 14px; }
.sheet.s1 { background: #f6d3dc; rotate: 1.8deg; box-shadow: 0 18px 36px -24px rgba(60, 10, 34, .55); }
.sheet.s2 { background: #f3e3d3; rotate: -1.5deg; box-shadow: 0 10px 24px -18px rgba(60, 10, 34, .5); }
.paper { position: relative; padding: 10px 10px 0 38px; border-radius: 14px; background: #fffaf2; box-shadow: 0 24px 46px -30px rgba(60, 10, 34, .7), 0 0 0 1px rgba(60, 10, 34, .05); }
.site { overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(60, 10, 34, .08); }
.shot-open {
  appearance: none; display: flex; align-items: center; gap: 8px; min-height: 46px; margin-inline-start: auto; padding: 0 4px; border: 0; background: none; color: var(--crimson);
  font-family: var(--head); font-weight: 700; font-size: 1rem; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px;
}
.shot-open svg { width: 18px; height: 18px; }
.ribbon { position: absolute; z-index: 2; top: -14px; left: -20px; width: 78px; height: calc(100% + 18px); overflow: hidden; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(60, 10, 34, .28)); }
.ribbon path, .ribbon circle { fill: var(--crimson); }
.ribbon .rib { fill: #c93a66; }
.ribbon .tail { fill: #a60d42; }
.ribbon .loop { stroke: #8f0c3a; stroke-width: 1.5; }
.ribbon .knot { stroke: #8f0c3a; stroke-width: 1.5; }
.pola {
  position: absolute; z-index: 3; right: -8px; bottom: 12px; width: 26%; margin: 0; padding: 5px 5px 16px; border-radius: 3px; background: #fff; rotate: 5deg;
  box-shadow: 0 16px 28px -16px rgba(60, 10, 34, .75); pointer-events: none;
}
.home .pola { margin: 0; padding: 5px 5px 16px; }
.pola img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; }

.browser-bar { display: flex; align-items: center; justify-content: center; padding: 7px 12px; background: #fbf6f2; border-bottom: 1px solid #f1e6dd; }
.url {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 30px; padding: 0 13px; border-radius: 999px; background: #fff;
  border: 1px solid #efe2d8; font-family: var(--body); font-size: .82rem; color: #5d4b55; white-space: nowrap; overflow: hidden;
}
.url svg { width: 15px; height: 15px; flex: none; color: #8a7480; }
.url-text { overflow: hidden; text-overflow: ellipsis; }
.caret { display: inline-block; width: 1.5px; height: 1.05em; margin-inline-start: 1px; background: currentColor; opacity: 0; }
.is-typing .caret { opacity: 1; animation: caret .7s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.shot { position: relative; aspect-ratio: 16 / 9.2; overflow: hidden; background: var(--bg); }
.shot-media, .shot-dots, .door { position: absolute; inset: 0; }
.shot-media { background: var(--cream-2); }
.shot-media img, .shot-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: shot-in .4s ease both; filter: blur(9px) saturate(.9); scale: 1.06; transition: filter .7s ease, scale 1s cubic-bezier(.2, .8, .2, 1); }
.shot.is-open .shot-media img, .shot.is-open .shot-media video { filter: none; scale: 1; }
@keyframes shot-in { from { opacity: 0; } }
/* photos drift very slowly, like a camera breathing, until there are films */
.kb { animation: shot-in .4s ease both, kenburns 18s ease-in-out infinite alternate !important; transform-origin: 60% 45%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09) translate(-1.5%, 1%); } }
/* the closed door, over the picture not yet seen */
.door { z-index: 2; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 62%, transparent); transition: opacity .5s ease .25s; }
.door .gift.gift { width: auto; height: 74%; }
.door .gift svg { display: block; width: auto; height: 100%; overflow: visible; }
.door .gift-shadow { opacity: .25; }
.door .gift-glow { display: none; }
.shot.is-open .door { opacity: 0; pointer-events: none; }
.shot-words {
  position: absolute; z-index: 1; inset: auto 0 0; display: grid; gap: 1px; padding: 44px 14px 12px !important; text-align: center; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
  background: linear-gradient(180deg, transparent, rgba(30, 4, 16, .72)); opacity: 0; transition: opacity .4s ease .2s;
}
.shot.is-open .shot-words { opacity: 1; }
.shot-words > span { font-size: .9rem; font-weight: 500; line-height: 1.2; }
.shot-words b { display: flex; justify-content: center; font-family: var(--head); font-weight: 900; font-size: clamp(1.6rem, 7.4vw, 2.3rem); line-height: 1.1; }
.shot-words b span { opacity: 0; }
.shot.is-open .shot-words b span { animation: letter .5s cubic-bezier(.3, 1.6, .5, 1) calc(var(--i) * 55ms + 250ms) both; }
@keyframes letter { from { opacity: 0; transform: translateY(-26px) rotate(-12deg); } to { opacity: 1; transform: none; } }
.shot-dots { z-index: 1; overflow: hidden; pointer-events: none; }
.shot-dots i { position: absolute; top: -14px; width: 7px; height: 11px; border-radius: 2px; opacity: 0; }
.shot.is-open .shot-dots i { animation: shot-fall linear infinite; }
@keyframes shot-fall { 0% { opacity: 0; transform: translateY(0) rotate(var(--r)); } 8%, 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(330px) rotate(calc(var(--r) + 420deg)); } }

/* on a phone the button holds to the bottom of the screen until its own place comes */
@media (max-width: 979px) { .hero-actions { position: sticky; z-index: 30; bottom: max(10px, env(safe-area-inset-bottom)); } }
/* a short phone: the site, the row and the button still meet on the first screen */
@media (max-width: 979px) and (max-height: 720px) {
  .hero { gap: 5px; padding-top: 0; }
  .hero-copy { gap: 6px; padding-top: 4px; }
  .title { font-size: clamp(1.8rem, 8.4vw, 3rem); line-height: 1.08; }
  .lead { font-size: clamp(.95rem, 3.9vw, 1.2rem); line-height: 1.25; }
  .preview-wrap { padding: 6px 6px 2px; }
  .shot { aspect-ratio: 16 / 6.7; }
  .who { gap: 0; }
  .shot-open { min-height: 44px; }
  .who-list { padding-block: 5px 3px; }
  .hero-actions { bottom: 6px; }
  .hero-actions .btn-main { height: 50px; }
}

/* the menu */
.top-side { display: flex; align-items: center; gap: 8px; }
.menu-btn { appearance: none; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 14px; background: none; color: var(--ink); }
.menu-btn svg { width: 30px; height: 30px; }
.menu-btn[aria-expanded='true'] { background: var(--blush); color: var(--crimson); }
.menu {
  position: absolute; z-index: 60; top: calc(100% + 4px); left: var(--pad); display: grid; min-width: 210px; padding: 8px; border-radius: 20px; background: #fff;
  box-shadow: 0 30px 60px -24px rgba(60, 10, 34, .55), 0 0 0 1px rgba(60, 10, 34, .06); animation: menu-in .2s ease;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.menu[hidden] { display: none; }
.menu a, .menu button {
  appearance: none; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: none; color: var(--ink);
  font-family: var(--head); font-weight: 600; font-size: 1.02rem; text-align: start; text-decoration: none;
}
.menu a[hidden] { display: none; }
.menu svg { width: 21px; height: 21px; flex: none; color: var(--crimson); }
.menu a:hover, .menu button:hover { background: var(--blush); }
@media (max-width: 979px) { .top-cta { display: none; } }

.hero-actions { display: grid; justify-items: center; gap: 10px; width: 100%; opacity: 0; animation: rise .8s ease 1.15s forwards; }
.hero-actions .btn-main { height: 56px; }

/* ---------- handwriting ---------- */
.hand-note {
  display: flex; align-items: flex-end; gap: 4px; margin: 0; font-family: var(--hand); font-size: clamp(1.35rem, 5.6vw, 1.7rem); line-height: 1;
  color: var(--crimson); rotate: -4deg; pointer-events: none; white-space: nowrap;
}
.hand-arrow { width: 46px; height: 38px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hand-arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s ease-out .4s forwards; animation-play-state: paused; }
.in .hand-arrow path, .hand-note.in .hand-arrow path { animation-play-state: running; }
.note-mini { justify-self: start; margin: 0 6px -6px; color: #ffe3ec; }


@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr; grid-template-areas: '. preview' 'copy preview' 'who preview' 'actions preview' '. preview'; align-items: center; column-gap: 56px; row-gap: 26px; padding-top: 30px; text-align: start; }
  .hero-copy { grid-area: copy; justify-items: start; padding-top: 20px; }
  .title { font-size: min(3.5rem, calc((100vw - 152px) * .056)); }
  .who { grid-area: who; justify-items: start; }
  .who-list { margin-inline: 0; }
  .preview-wrap { grid-area: preview; width: 100%; max-width: 560px; justify-self: center; }
  .hero-actions { grid-area: actions; justify-items: start; }
  .hero-actions .btn-main { height: 60px; }
  .hero-copy, .who, .hero-actions { justify-self: stretch; text-align: start; }
  .hero-blob { top: 0; left: 30%; width: 900px; }
  .shot { aspect-ratio: 16 / 11; }
  .paper { padding: 14px 14px 0 52px; }
  .ribbon { left: -18px; width: 100px; }
}

/* ---------- sections ---------- */
.sec-head { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; }
.sec-head h2 { font-family: var(--head); font-weight: 900; font-size: clamp(1.85rem, 7.4vw, 3rem); line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
.sec-head p { font-size: clamp(1rem, 3.4vw, 1.2rem); color: var(--soft); text-wrap: balance; }
.sec-head .spark { top: 6px; width: 30px; height: 30px; }

/* bands of colour with wavy edges */
.band { position: relative; margin-block: 54px; }
.band::before, .band::after {
  content: ''; position: absolute; left: 0; right: 0; height: 40px; background: var(--edge); pointer-events: none;
  -webkit-mask: var(--wave-up) 0 0 / 100% 100% no-repeat; mask: var(--wave-up) 0 0 / 100% 100% no-repeat;
}
.band::before { top: -39px; }
.band::after { bottom: -39px; -webkit-mask-image: var(--wave-down); mask-image: var(--wave-down); }
.band-in { max-width: 1180px; margin: 0 auto; padding: clamp(36px, 6vw, 70px) var(--pad); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 26px; }
/* A band's colour is solid at its edges (--edge, which the wavy edges share), with soft light inside. */
.band-berry { --edge: var(--berry); background: radial-gradient(60% 50% at 80% 30%, rgba(255, 120, 170, .22), transparent 70%), radial-gradient(50% 50% at 15% 75%, rgba(90, 0, 40, .3), transparent 70%), var(--edge); color: #fff; }
.band-berry .sec-head h2 { color: #fff; }
.band-berry .sec-head p { color: rgba(255, 255, 255, .86); }
.band-lilac { --edge: var(--lilac); background: radial-gradient(50% 60% at 50% 40%, rgba(255, 255, 255, .55), transparent 70%), var(--edge); }
.band-crimson { --edge: #a3134c; background: radial-gradient(55% 55% at 50% 30%, rgba(255, 140, 180, .3), transparent 70%), var(--edge); color: #fff; }

/* ---------- the live studio: a small editor that works ---------- */
/* A dark room with a glowing floor; four controls on one side, a phone that builds the site on
   the other, a line of light between them when something changes. On a phone: the phone, four
   tabs, one control. */
.band-ink { --edge: #1a0610; background: var(--edge); color: #fff; }
.studio { --hot: #ff4d8a; --live: #3ee08f; --glass: rgba(255, 255, 255, .05); --glass-line: rgba(255, 255, 255, .12); --dim: rgba(255, 235, 243, .74); }
.studio-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.studio-bg .glow { position: absolute; border-radius: 50%; }
.studio-bg .g1 { top: -18%; right: -12%; width: 680px; height: 680px; background: radial-gradient(circle, rgba(214, 20, 90, .5), transparent 64%); animation: st-drift 16s ease-in-out infinite alternate; }
.studio-bg .g2 { bottom: -22%; left: -14%; width: 620px; height: 620px; background: radial-gradient(circle, rgba(110, 40, 200, .34), transparent 64%); animation: st-drift 20s ease-in-out infinite alternate-reverse; }
@keyframes st-drift { to { transform: translate(40px, 30px) scale(1.08); } }
.studio-bg .floor {
  position: absolute; left: -30%; right: -30%; bottom: 0; height: 44%; transform: perspective(420px) rotateX(64deg); transform-origin: 50% 100%;
  background-image: linear-gradient(rgba(255, 90, 150, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 90, 150, .2) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: linear-gradient(to top, #000 8%, transparent 88%); mask-image: linear-gradient(to top, #000 8%, transparent 88%);
  animation: st-floor 3.6s linear infinite;
}
@keyframes st-floor { to { background-position: 0 56px, 0 0; } }
.studio-in { position: relative; gap: 30px; }

.studio-head { display: grid; justify-items: center; gap: 12px; text-align: center; }
.studio-head h2 { font-family: var(--head); font-weight: 900; font-size: clamp(1.85rem, 7.4vw, 3.1rem); line-height: 1.08; letter-spacing: -.015em; color: #fff; text-wrap: balance; }
.studio-hl { color: var(--hot); text-shadow: 0 0 30px rgba(255, 77, 138, .55); }
.studio-head p { max-width: 34em; font-size: clamp(1rem, 3.4vw, 1.2rem); color: var(--dim); text-wrap: balance; }
.live-dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: st-live 1.8s ease-out infinite; }
@keyframes st-live { from { box-shadow: 0 0 0 0 rgba(62, 224, 143, .6); } to { box-shadow: 0 0 0 9px rgba(62, 224, 143, 0); } }

.studio-stage { display: grid; grid-template-areas: 'device' 'tabs' 'panel'; justify-items: center; gap: 18px; width: 100%; }
.studio-tabs {
  grid-area: tabs; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: min(100%, 470px); padding: 5px;
  border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line);
}
.studio-tabs button {
  appearance: none; display: grid; justify-items: center; gap: 3px; padding: 8px 0 7px; border: 0; border-radius: 15px; background: none;
  font-family: var(--head); font-weight: 700; font-size: .82rem; color: rgba(255, 255, 255, .72); transition: background .2s ease, color .2s ease;
}
.studio-tabs svg { width: 20px; height: 20px; }
.studio-tabs [aria-selected='true'] { background: #fff; color: #1a0610; }
.studio-tabs button.is-done:not([aria-selected='true']) { color: var(--live); }

.studio-panel { grid-area: panel; display: grid; gap: 14px; width: min(100%, 470px); }
.ctl {
  position: relative; display: none; gap: 12px; padding: 16px 18px 18px; border-radius: 20px; text-align: start;
  background: radial-gradient(280px circle at var(--mx, 80%) var(--my, 0%), rgba(255, 255, 255, .08), transparent 62%), var(--glass);
  border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); transition: border-color .25s ease, box-shadow .25s ease;
}
.ctl.is-open { display: grid; animation: rise .35s ease; }
.ctl.is-active { border-color: rgba(255, 77, 138, .6); box-shadow: 0 0 0 4px rgba(255, 77, 138, .12), inset 0 1px 0 rgba(255, 255, 255, .06); }
.ctl-head { display: flex; align-items: center; gap: 10px; }
.ctl-num {
  padding: 3px 8px; border-radius: 8px; background: rgba(255, 77, 138, .14); color: var(--hot);
  font-family: var(--head); font-weight: 800; font-size: .76rem; letter-spacing: .08em; font-variant-numeric: tabular-nums;
}
.ctl-head b { font-family: var(--head); font-weight: 700; font-size: 1.02rem; color: #fff; }
.ctl-done {
  margin-inline-start: auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: transparent; transition: background .3s ease, color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.ctl-done svg { width: 14px; height: 14px; }
.ctl.is-done .ctl-done { background: var(--live); color: #082816; box-shadow: 0 0 14px rgba(62, 224, 143, .6); transform: scale(1.06); }

.field input {
  width: 100%; height: 50px; padding: 0 15px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .28);
  color: #fff; font-family: var(--head); font-weight: 700; font-size: 1.08rem; caret-color: var(--hot); transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: rgba(255, 255, 255, .4); }
.field input:focus { outline: none; border-color: var(--hot); box-shadow: 0 0 0 4px rgba(255, 77, 138, .18); }
.ctl-row { display: flex; gap: 10px; }
.ctl-row .field { flex: 1; min-width: 0; }
.age { flex: none; display: flex; align-items: center; height: 50px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .28); }
.age button { appearance: none; width: 40px; height: 100%; border: 0; background: none; color: #fff; font-size: 1.35rem; line-height: 1; }
.age button:hover { color: var(--hot); }
.age output { min-width: 2.1em; text-align: center; font-family: var(--head); font-weight: 800; font-size: 1.15rem; color: #fff; font-variant-numeric: tabular-nums; }

.mini-thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; }
.mini-thumbs::-webkit-scrollbar { display: none; }
.thumb {
  appearance: none; flex: none; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 15px; overflow: hidden; background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .2s ease, box-shadow .2s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { transform: translateY(-2px); }
.thumb[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--edge, #1a0610), 0 0 0 4px var(--hot), 0 0 20px rgba(255, 77, 138, .5); }
.thumb-add {
  display: grid; place-items: center; align-content: center; gap: 2px; background: none; border: 1.5px dashed rgba(255, 255, 255, .32); box-shadow: none;
  color: rgba(255, 255, 255, .8); font-family: var(--head); font-weight: 700; font-size: .7rem; cursor: pointer;
}
.thumb-add svg { width: 20px; height: 20px; }

.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 8px; }
.sw {
  appearance: none; display: grid; justify-items: center; gap: 5px; padding: 0; border: 0; background: none;
  font-family: var(--head); font-weight: 600; font-size: .72rem; line-height: 1.1; color: rgba(255, 255, 255, .72); transition: color .2s ease;
}
.sw i {
  display: block; width: 100%; aspect-ratio: 1.65; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  background: linear-gradient(135deg, var(--accent) 0 34%, var(--accent-2) 34% 56%, var(--bg) 56%); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s ease;
}
.sw:hover i { transform: translateY(-2px); }
.sw[aria-pressed='true'] { color: #fff; }
.sw[aria-pressed='true'] i { box-shadow: 0 0 0 2px var(--edge, #1a0610), 0 0 0 4px #fff, 0 0 18px rgba(255, 255, 255, .35); }
.font-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.font-chips::-webkit-scrollbar { display: none; }
.fchip {
  appearance: none; flex: none; height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04);
  color: #fff; font-family: var(--font-head, var(--head)); font-weight: var(--head-weight, 700); font-size: .98rem; transition: background .2s ease, color .2s ease;
}
.fchip[aria-pressed='true'] { background: #fff; color: #1a0610; }

.mini-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-chips button {
  appearance: none; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .9); font-family: var(--head); font-weight: 600; font-size: .84rem; text-align: start; transition: border-color .15s ease, transform .15s ease;
}
.mini-chips button:hover { border-color: var(--hot); transform: translateY(-1px); }

/* the phone: it wears the chosen design (story.css), and a band of light passes over it on every change */
.studio-device { grid-area: device; display: grid; justify-items: center; gap: 14px; }
.phone {
  position: relative; width: min(60vw, 244px); aspect-ratio: 9 / 18.6; padding: 10px; border-radius: 48px; background: #0c0307;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .16), 0 0 0 7px #241019, 0 44px 80px -30px rgba(0, 0, 0, .95), 0 0 110px -24px rgba(255, 61, 127, .5);
  animation: st-hover 7s ease-in-out infinite alternate;
}
@keyframes st-hover { to { transform: translateY(-10px); } }
.phone-island { position: absolute; z-index: 6; top: 19px; left: 50%; width: 31%; height: 22px; border-radius: 999px; background: #000; transform: translateX(-50%); }
.phone-screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 38px; background: var(--sky, var(--bg)); background-color: var(--bg); color: var(--ink);
  transition: background-color .5s ease;
}
.ph-photo { position: relative; height: 50%; overflow: hidden; }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.ph-photo img.is-out { opacity: 0; }
.ph-photo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, var(--bg)); }
.ph-dots { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ph-dots i { position: absolute; top: -12px; width: 7px; height: 9px; border-radius: 2px; opacity: .9; animation: st-fall linear infinite; }
@keyframes st-fall { to { transform: translateY(640px) rotate(540deg); } }
.ph-body { position: relative; z-index: 2; display: grid; justify-items: center; gap: 7px; margin-top: -10px; padding: 0 18px; text-align: center; }
.ph-top { font-family: var(--font-body, var(--body)); font-weight: 500; font-size: .8rem; color: var(--soft); }
.ph-name { min-height: 1.06em; font-family: var(--font-head); font-weight: var(--head-weight); font-size: clamp(1.8rem, 9vw, 2.3rem); line-height: 1.06; color: var(--ink); }
.ph-name span { display: inline-block; white-space: pre; }
.ph-name span.is-new { animation: st-drop .5s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes st-drop { from { opacity: 0; transform: translateY(-26px) rotate(-12deg) scale(.6); } }
.ph-age {
  display: inline-grid; place-items: center; min-width: 48px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--accent); color: #fff;
  font-family: var(--head); font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; box-shadow: 0 8px 18px -10px var(--accent);
}
.ph-age.is-new { animation: st-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes st-pop { from { transform: scale(.5); } }
.ph-greet { max-width: 22ch; font-family: var(--font-body, var(--body)); font-size: .95rem; line-height: 1.35; color: var(--soft); text-wrap: balance; }
/* a peek at the next part of the site, at the bottom of the screen */
.ph-next {
  position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 16px; display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 18px;
  background: var(--card, #fff); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(0, 0, 0, .04); text-align: start;
}
.ph-next img { flex: none; width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
.ph-next span { display: grid; min-width: 0; }
.ph-next small { font-family: var(--font-body, var(--body)); font-size: .7rem; color: var(--soft); }
.ph-next b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1rem; color: var(--ink); }
.ph-scan {
  position: absolute; z-index: 3; left: 0; right: 0; top: -24%; height: 22%; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent) 30%, transparent) 72%, rgba(255, 255, 255, .9) 97%, transparent);
}
.phone.is-scan .ph-scan { animation: st-scan .8s cubic-bezier(.5, 0, .3, 1); }
@keyframes st-scan { from { top: -24%; opacity: 1; } to { top: 104%; opacity: 1; } }

/* smaller on a phone */
@media (max-width: 979px) {
  .ph-next { left: 10px; right: 10px; bottom: 11px; gap: 8px; padding: 6px; border-radius: 15px; }
  .ph-next img { width: 40px; height: 40px; border-radius: 10px; }
  .ph-next b { font-size: .84rem; }
  .ph-greet { font-size: .86rem; }
}

/* the opening, played inside the phone */
.ph-intro {
  position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 2px; overflow: hidden; text-align: center; color: #fff;
  background: radial-gradient(120% 80% at 50% 34%, color-mix(in srgb, var(--accent) 66%, #1c0712), #0b0207 92%); opacity: 0; pointer-events: none; transition: opacity .45s ease;
}
.ph-intro::before {
  content: ''; position: absolute; inset: -50%; background: repeating-conic-gradient(rgba(255, 255, 255, .07) 0 8deg, transparent 8deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000, transparent 62%); mask-image: radial-gradient(circle, #000, transparent 62%); animation: st-spin 40s linear infinite;
}
@keyframes st-spin { to { transform: rotate(1turn); } }
.ph-intro.is-on { opacity: 1; pointer-events: auto; }
.ph-intro > * { position: relative; }
.pi-top { font-family: var(--body); font-weight: 500; font-size: .86rem; opacity: .88; animation: rise .5s .1s both; }
.pi-name { display: flex; font-family: var(--head); font-weight: 900; font-size: 2.5rem; line-height: 1.05; text-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.pi-name span { display: inline-block; white-space: pre; animation: st-letter .6s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(.35s + var(--i) * .09s); }
@keyframes st-letter { from { opacity: 0; transform: translateY(-90px) rotate(-14deg) scale(.5); } }
.pi-age { font-family: var(--head); font-weight: 900; font-size: 6.6rem; line-height: .92; color: #ffd36b; text-shadow: 0 6px 0 rgba(0, 0, 0, .28); font-variant-numeric: tabular-nums; animation: st-pop .7s 1s cubic-bezier(.2, 1.6, .4, 1) both; }
.pi-sub { font-family: var(--head); font-weight: 800; font-size: 1.05rem; animation: rise .5s 1.9s both; }

.ph-play {
  appearance: none; display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px 0 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; font-family: var(--head); font-weight: 700; font-size: .98rem;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.ph-play svg { width: 18px; height: 18px; color: var(--hot); }
.ph-play:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .34); transform: translateY(-2px); }

.studio-foot { display: grid; justify-items: center; gap: 16px; }
.meter { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 700; font-size: .92rem; color: rgba(255, 255, 255, .82); }
.meter-bar { display: flex; gap: 5px; }
.meter-bar i { width: 34px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); transition: background .35s ease, box-shadow .35s ease; }
.meter-bar i.on { background: var(--hot); box-shadow: 0 0 12px rgba(255, 77, 138, .7); }
.studio-foot.is-ready .meter-bar i { background: var(--live); box-shadow: 0 0 12px rgba(62, 224, 143, .7); }
.studio-foot.is-ready #mini-go { animation: st-ready 1.6s ease-in-out infinite; }
@keyframes st-ready { 50% { box-shadow: 0 0 0 9px rgba(255, 255, 255, .14), 0 16px 30px -16px rgba(40, 0, 20, .7); } }

@media (min-width: 980px) {
  .studio-in { gap: 44px; }
  .studio-stage { grid-template-columns: minmax(0, 1fr) 316px; grid-template-areas: 'panel device'; align-items: center; column-gap: 72px; max-width: 1020px; }
  .studio-tabs { display: none; }
  .studio-panel { width: 100%; }
  .ctl { display: grid; }
  .ctl.is-open { animation: none; }
  .phone { width: 296px; }
  /* a line of light from the control that changed to the phone */
  .ctl::after {
    content: ''; position: absolute; top: 34px; inset-inline-end: -72px; width: 72px; height: 2px; pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--hot), transparent) no-repeat, rgba(255, 255, 255, .07);
    background-size: 45% 100%, 100% 100%; background-position: 160% 0, 0 0;
  }
  .ctl.is-pulse::after { animation: st-flow .7s ease-out; }
  @keyframes st-flow { from { background-position: 160% 0, 0 0; } to { background-position: -60% 0, 0 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .studio-bg .glow, .studio-bg .floor, .phone, .live-dot, .ph-dots i, .ph-intro::before { animation: none; }
}

/* ---------- the designs ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  appearance: none; height: 38px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--lilac-2); background: #fff; font-family: var(--head); font-weight: 700; font-size: .92rem;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip[aria-pressed='true'] { background: var(--berry); border-color: var(--berry); color: #fff; }
.carousel { position: relative; width: 100%; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 380px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 14px max(10%, calc(50% - 190px)) 26px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline-offset: -4px; }
.slide {
  appearance: none; position: relative; display: grid; padding: 0; border: 0; border-radius: 22px; background: #fff; text-align: center; scroll-snap-align: center;
  box-shadow: 0 22px 40px -26px rgba(70, 20, 90, .6); transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s ease; opacity: .72; transform: scale(.92);
}
.slide.is-on { opacity: 1; transform: none; }
.slide:hover { transform: translateY(-4px); }
.slide .browser-bar { justify-content: flex-start; gap: 6px; padding: 9px 12px; border-radius: 22px 22px 0 0; }
.slide .browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff6b6b; }
.slide .browser-bar i:nth-child(2) { background: #ffc233; }
.slide .browser-bar i:nth-child(3) { background: #3fcf6b; }
.slide-shot {
  position: relative; display: grid; justify-items: center; gap: 8px; padding: 22px 14px 18px; overflow: hidden; border-radius: 0 0 22px 22px;
  background: var(--sky); background-color: var(--bg); color: var(--ink);
}
.slide-shot .motif { position: absolute; inset: 0; background: var(--motif); opacity: .9; }
.slide-deco i {
  position: absolute; width: 20px; aspect-ratio: 1; background: var(--deco-color); opacity: var(--deco-op);
  -webkit-mask: var(--deco-shape) center / contain no-repeat; mask: var(--deco-shape) center / contain no-repeat; animation: bob 5s ease-in-out infinite alternate;
}
.slide-deco i:nth-child(1) { top: 12%; right: 10%; }
.slide-deco i:nth-child(2) { top: 40%; left: 8%; width: 14px; animation-delay: -1.6s; }
.slide-deco i:nth-child(3) { bottom: 22%; right: 14%; width: 16px; animation-delay: -2.8s; }
.slide-deco i:nth-child(4) { top: 8%; left: 24%; width: 12px; animation-delay: -3.6s; }
@keyframes bob { to { transform: translateY(-10px) rotate(14deg); } }
.slide-photo {
  position: relative; width: 112px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 4px solid var(--card, #fff);
  box-shadow: 0 0 0 3px var(--accent), 0 16px 30px -14px rgba(0, 0, 0, .5);
}
.slide-photo img { width: 100%; height: 100%; object-fit: cover; }
.slide-title { position: relative; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.4rem; line-height: 1.12; color: var(--ink); text-wrap: balance; }
.slide-sub { position: relative; font-family: var(--font-body); font-size: .92rem; color: var(--soft); }
.slide-btn { position: relative; margin-top: 4px; padding: 8px 18px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); font: 700 .86rem var(--ui-font); }
.slide-tag { display: block; padding: 10px 0 4px; font-family: var(--head); font-weight: 700; font-size: .95rem; color: var(--ink-2); }
.slide-tag b { color: var(--berry); }
.car-btn {
  position: absolute; z-index: 2; top: 50%; display: none; place-items: center; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 0;
  background: #fff; color: var(--ink); box-shadow: 0 10px 24px -12px rgba(60, 10, 34, .6); transition: transform .15s ease;
}
.car-btn:hover { transform: scale(1.08); }
.car-btn svg { width: 22px; height: 22px; }
.car-prev { right: 4px; }
.car-prev svg { transform: scaleX(-1); }
.car-next { left: 4px; }
@media (min-width: 640px) { .car-btn { display: grid; } }
.car-dots { display: flex; justify-content: center; gap: 7px; }
.car-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--lilac-2); transition: width .3s ease, background .3s ease; }
.car-dots i.is-on { width: 22px; background: var(--berry); }

/* ---------- three steps ---------- */
.steps { display: grid; justify-items: center; gap: 26px; max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--pad) 20px; }
.step-list { display: grid; gap: 12px; width: 100%; list-style: none; }
.step-list li {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'num title art' 'text text art'; align-items: center; column-gap: 12px; row-gap: 4px;
  padding: 14px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 30px -26px rgba(60, 10, 34, .6);
}
.step-list .num { grid-area: num; }
.step-list li > b { grid-area: title; font-family: var(--head); font-weight: 800; font-size: 1.1rem; line-height: 1.25; }
.step-list li > p { grid-area: text; font-size: .95rem; line-height: 1.5; color: var(--soft); }
.step-list .step-art { grid-area: art; }
.step-list .num { display: grid; place-items: center; width: 48px; height: 34px; border-radius: 999px; background: var(--crimson); color: #fff; font-family: var(--head); font-weight: 800; font-size: .95rem; }
.step-art { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 16px; background: var(--blush); color: var(--crimson); overflow: hidden; }
.step-art svg { width: 28px; height: 28px; }
.step-art img { width: 100%; height: 100%; object-fit: cover; }
.step-art.has-img { width: 84px; height: 84px; background: none; }

/* ---------- a site being built: a short drawn film, looped, beside the steps ----------
   One clock for everything (--loop): 0-28% the name, 28-72% the pictures and the colour,
   72-100% confetti and the link. The resting styles are the finished site, so with reduced
   motion it simply stands there finished. It plays only while it is on screen (home.js). */
.steps { --loop: 10s; max-width: 980px; }
.build-wrap { display: grid; justify-items: center; gap: 26px; width: 100%; }
.build { position: relative; display: grid; place-items: center; width: min(54vw, 236px); }
.build::before {
  content: ''; position: absolute; z-index: -1; inset: 8% -30%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--crimson) 16%, transparent), transparent);
}
.bd-phone {
  width: 100%; padding: 7px; border-radius: 34px; background: #23101a;
  box-shadow: 0 0 0 1.5px rgba(60, 10, 34, .25), 0 30px 54px -28px rgba(60, 10, 34, .75);
}
.bd-screen {
  position: relative; overflow: hidden; aspect-ratio: 9 / 18; border-radius: 28px; background: #f3ece6; color: var(--ink);
  container-type: size; isolation: isolate;
}
.bd-screen *, .bd-screen *::before { animation-duration: var(--loop); animation-iteration-count: infinite; animation-fill-mode: both; animation-play-state: paused; }
.steps.is-playing .bd-screen *, .steps.is-playing .step-list li { animation-play-state: running; }
.bd-paint { position: absolute; inset: 0; z-index: 0; background: var(--sky, var(--bg)); background-color: var(--bg); clip-path: circle(150% at 50% 94%); animation-name: bd-paint; }
@keyframes bd-paint { 0%, 56% { clip-path: circle(0% at 50% 94%); animation-timing-function: cubic-bezier(.6, 0, .3, 1); } 70%, 100% { clip-path: circle(150% at 50% 94%); } }

.bd-hero { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 40cqh; }
.bd-tiles { position: absolute; z-index: 1; left: 8cqw; right: 8cqw; top: 66cqh; display: grid; grid-template-columns: 1fr 1fr; gap: 5cqw; }
.bd-tile { position: relative; aspect-ratio: 1; border-radius: 4cqw; overflow: hidden; }
.bd-slot { position: absolute; inset: 0; display: grid; place-items: center; background: #e4dad3; color: #b9aaa2; }
.bd-hero .bd-slot { inset: 0 0 0 0; }
.bd-slot svg { width: 22%; height: 22%; }
.bd-fly { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation-name: var(--fly); animation-timing-function: linear; }
.bd-hero .bd-fly { border-radius: 0 0 6cqw 6cqw; }
.f1 { --fly: bd-fly-1; }
.f2 { --fly: bd-fly-2; }
.f3 { --fly: bd-fly-3; }
/* each picture leaves the photo button in the dock (on the right, in Hebrew) and lands in its place */
@keyframes bd-fly-1 { 0%, 31% { opacity: 0; transform: translate(25cqw, 72cqh) scale(.12) rotate(-14deg); } 32% { opacity: 1; animation-timing-function: cubic-bezier(.2, .9, .3, 1.15); } 40%, 96% { opacity: 1; transform: none; } 100% { opacity: 1; transform: none; } }
@keyframes bd-fly-2 { 0%, 36% { opacity: 0; transform: translate(3cqw, 17cqh) scale(.2) rotate(16deg); } 37% { opacity: 1; animation-timing-function: cubic-bezier(.2, .9, .3, 1.15); } 45%, 100% { opacity: 1; transform: none; } }
@keyframes bd-fly-3 { 0%, 41% { opacity: 0; transform: translate(47cqw, 17cqh) scale(.2) rotate(-12deg); } 42% { opacity: 1; animation-timing-function: cubic-bezier(.2, .9, .3, 1.15); } 50%, 100% { opacity: 1; transform: none; } }

.bd-words { position: absolute; z-index: 2; left: 6cqw; right: 6cqw; top: 43cqh; display: grid; justify-items: center; gap: 1.4cqh; text-align: center; }
.bd-line { position: absolute; top: 0.6cqh; width: 40cqw; height: 2.2cqh; border-radius: 99px; background: #e0d5ce; animation-name: bd-line; }
@keyframes bd-line { 0%, 6% { opacity: 1; } 9%, 100% { opacity: 0; } }
.bd-top { font-family: var(--font-body, var(--body)); font-size: 4.4cqw; color: var(--soft); animation-name: bd-top; }
@keyframes bd-top { 0%, 6% { opacity: 0; } 9%, 100% { opacity: 1; } }
.bd-name { display: flex; align-items: center; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 13cqw; line-height: 1.05; color: var(--ink); }
.bd-name span { display: inline-block; white-space: nowrap; animation-name: bd-type; }
@keyframes bd-type { 0%, 10% { clip-path: inset(0 0 0 100%); animation-timing-function: steps(6, end); } 24%, 100% { clip-path: inset(0 0 0 0); } }
.bd-caret { width: .6cqw; height: 10cqw; margin-inline-start: .8cqw; background: var(--crimson); opacity: 0; animation-name: bd-caret; }
@keyframes bd-caret { 0%, 9% { opacity: 0; } 10%, 13%, 16%, 19%, 22%, 25% { opacity: 1; } 11.5%, 14.5%, 17.5%, 20.5%, 23.5%, 27%, 100% { opacity: 0; } }
.bd-age {
  display: inline-grid; place-items: center; min-width: 14cqw; height: 7.4cqw; padding: 0 3cqw; border-radius: 99px; background: var(--accent); color: #fff;
  font-family: var(--head); font-weight: 800; font-size: 4.6cqw; animation-name: bd-age;
}
@keyframes bd-age { 0%, 24% { transform: scale(0); background: #c9bdb5; } 27% { transform: scale(1.15); } 29%, 60% { transform: none; background: #c9bdb5; } 66%, 100% { transform: none; background: var(--accent); } }

/* the tools at the bottom, which the finger touches in turn */
.bd-dock {
  position: absolute; z-index: 3; left: 12cqw; right: 12cqw; bottom: 3.4cqh; display: flex; justify-content: space-around; align-items: center; height: 7.6cqh;
  border-radius: 99px; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 16px -8px rgba(60, 10, 34, .5); animation-name: bd-dock;
}
@keyframes bd-dock { 0%, 78% { opacity: 1; transform: none; } 82%, 100% { opacity: 0; transform: translateY(6cqh); } }
.bd-tool { display: grid; place-items: center; width: 11cqw; height: 11cqw; border-radius: 50%; color: var(--ink-2); }
.bd-tool svg { width: 58%; height: 58%; }
.t-paint { display: flex; gap: 1cqw; }
.t-paint i { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: var(--accent); }
.t-paint i:nth-child(2) { background: var(--accent-2); }
.t-paint i:nth-child(3) { background: var(--ink); }
.t-photo { animation-name: bd-tap-photo; }
.t-paint { animation-name: bd-tap-paint; }
.t-send { animation-name: bd-tap-send; }
@keyframes bd-tap-photo { 0%, 28% { background: transparent; } 29%, 33% { background: #fbe1e9; transform: scale(.9); } 35%, 100% { background: transparent; transform: none; } }
@keyframes bd-tap-paint { 0%, 54% { background: transparent; } 55%, 59% { background: #fbe1e9; transform: scale(.9); } 61%, 100% { background: transparent; transform: none; } }
@keyframes bd-tap-send { 0%, 74% { background: transparent; } 75%, 79% { background: #fbe1e9; transform: scale(.9); } 81%, 100% { background: transparent; transform: none; } }

/* the link, at the end */
.bd-share {
  position: absolute; z-index: 4; left: 6cqw; right: 6cqw; bottom: 3.4cqh; display: grid; justify-items: center; gap: 1.4cqh; animation-name: bd-share;
}
@keyframes bd-share { 0%, 80% { opacity: 0; transform: translateY(10cqh); } 84%, 100% { opacity: 1; transform: none; } }
.bd-link {
  display: inline-flex; align-items: center; gap: 1.6cqw; max-width: 100%; height: 8cqh; padding: 0 4cqw; border-radius: 99px; background: #fff; color: var(--ink-2);
  font-family: var(--body); font-weight: 600; font-size: 3.7cqw; white-space: nowrap; overflow: hidden; box-shadow: 0 8px 18px -10px rgba(60, 10, 34, .55);
}
.bd-link svg { flex: none; width: 4.4cqw; height: 4.4cqw; color: var(--crimson); }
.bd-link bdi { overflow: hidden; text-overflow: ellipsis; }
.bd-sent {
  display: inline-flex; align-items: center; gap: 1.4cqw; height: 6.4cqh; padding: 0 4cqw; border-radius: 99px; background: #1f9d55; color: #fff;
  font-family: var(--head); font-weight: 800; font-size: 3.8cqw; animation-name: bd-sent;
}
.bd-sent svg { width: 4cqw; height: 4cqw; }
@keyframes bd-sent { 0%, 87% { opacity: 0; transform: scale(.4); } 90% { opacity: 1; transform: scale(1.12); } 92%, 100% { opacity: 1; transform: none; } }

/* confetti once the colour is in */
.bd-burst { position: absolute; z-index: 3; left: 50%; top: 52cqh; width: 0; height: 0; }
.bd-burst i { position: absolute; width: 2.4cqw; height: 3.4cqw; border-radius: .6cqw; background: var(--accent); opacity: 0; animation-name: bd-pop; animation-timing-function: cubic-bezier(.1, .7, .3, 1); }
.bd-burst i:nth-child(3n) { background: var(--accent-2); }
.bd-burst i:nth-child(4n) { background: #7a5cff; }
.bd-burst i:nth-child(5n) { background: #2ec4b6; }
@keyframes bd-pop {
  0%, 71% { opacity: 0; transform: rotate(var(--a)) translateY(0) rotate(0); }
  72% { opacity: 1; }
  82% { opacity: 1; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) rotate(260deg); }
  90%, 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1.15)) rotate(380deg); }
}

/* the finger: to the name, the photo button, the colours, the send button */
.bd-cursor {
  position: absolute; z-index: 6; left: 0; top: 0; width: 9cqw; height: 9cqw; fill: #fff; stroke: #23101a; stroke-width: 1.6; stroke-linejoin: round;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); opacity: 0; animation-name: bd-cursor; animation-timing-function: ease-in-out;
}
@keyframes bd-cursor {
  0%, 3% { opacity: 0; transform: translate(80cqw, 62cqh); }
  7% { opacity: 1; transform: translate(53cqw, 50cqh); }
  9% { transform: translate(53cqw, 50cqh) scale(.82); }
  11%, 24% { opacity: 1; transform: translate(53cqw, 50cqh); }
  29% { transform: translate(73cqw, 92cqh); }
  31% { transform: translate(73cqw, 92cqh) scale(.82); }
  33%, 50% { transform: translate(73cqw, 92cqh); }
  55% { transform: translate(48cqw, 92cqh); }
  57% { transform: translate(48cqw, 92cqh) scale(.82); }
  59%, 70% { transform: translate(48cqw, 92cqh); }
  75% { transform: translate(23cqw, 92cqh); }
  77% { transform: translate(23cqw, 92cqh) scale(.82); }
  79% { opacity: 1; transform: translate(23cqw, 92cqh); }
  84%, 100% { opacity: 0; transform: translate(14cqw, 100cqh); }
}
/* a soft white wipe between two rounds */
.bd-reset { position: absolute; inset: 0; z-index: 7; background: #f3ece6; opacity: 0; pointer-events: none; animation-name: bd-reset; }
@keyframes bd-reset { 0% { opacity: 1; } 3%, 96% { opacity: 0; } 100% { opacity: 1; } }

/* each step lights up while the film is at it */
.step-list li { animation: none var(--loop) linear infinite both paused; }
.step-list li:nth-child(1) { animation-name: bd-step-1; }
.step-list li:nth-child(2) { animation-name: bd-step-2; }
.step-list li:nth-child(3) { animation-name: bd-step-3; }
@keyframes bd-step-1 { 0%, 26% { border-color: var(--crimson); box-shadow: 0 0 0 3px color-mix(in srgb, var(--crimson) 14%, transparent), 0 16px 30px -24px rgba(60, 10, 34, .6); } 29%, 100% { border-color: var(--line); box-shadow: 0 16px 30px -26px rgba(60, 10, 34, .6); } }
@keyframes bd-step-2 { 0%, 27% { border-color: var(--line); box-shadow: 0 16px 30px -26px rgba(60, 10, 34, .6); } 30%, 70% { border-color: var(--crimson); box-shadow: 0 0 0 3px color-mix(in srgb, var(--crimson) 14%, transparent), 0 16px 30px -24px rgba(60, 10, 34, .6); } 73%, 100% { border-color: var(--line); box-shadow: 0 16px 30px -26px rgba(60, 10, 34, .6); } }
@keyframes bd-step-3 { 0%, 71% { border-color: var(--line); box-shadow: 0 16px 30px -26px rgba(60, 10, 34, .6); } 74%, 97% { border-color: var(--crimson); box-shadow: 0 0 0 3px color-mix(in srgb, var(--crimson) 14%, transparent), 0 16px 30px -24px rgba(60, 10, 34, .6); } 100% { border-color: var(--line); } }
@media (min-width: 860px) {
  .build-wrap { grid-template-columns: minmax(0, 1fr) 260px; align-items: center; column-gap: 56px; }
  .build { grid-column: 2; grid-row: 1; width: 236px; }
  .build-wrap .step-list { grid-column: 1; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .bd-screen *, .bd-screen *::before, .steps .step-list li { animation: none !important; }
  .bd-cursor, .bd-burst, .bd-reset, .bd-dock, .bd-caret, .bd-line { display: none; }
}

/* ---------- questions ---------- */
.faq { display: grid; justify-items: center; gap: 22px; max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 70px) var(--pad); }
.faq-list { display: grid; gap: 10px; width: 100%; }
.faq details { border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: 0 16px 30px -24px rgba(60, 10, 34, .6); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; list-style: none; cursor: pointer;
  font-family: var(--head); font-weight: 700; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blush); color: var(--crimson);
  font-size: 1.3rem; font-weight: 700; line-height: 1; transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 18px; color: var(--ink-2); animation: rise .35s ease; }

/* ---------- the end ---------- */
.closing .band-in { text-align: center; gap: 16px; padding-block: clamp(46px, 8vw, 80px); }
.closing h2 { font-family: var(--head); font-weight: 900; font-size: clamp(2rem, 7.6vw, 3.2rem); line-height: 1.1; }
.closing p { max-width: 28em; font-size: clamp(1.02rem, 3.4vw, 1.2rem); color: rgba(255, 255, 255, .9); }
.closing .btn { margin-top: 8px; }
.closing-art { position: relative; width: clamp(150px, 40vw, 230px); cursor: pointer; }
.closing-art svg { width: 100%; overflow: visible; }
.closing-art img, .closing-art video { display: block; width: 100%; animation: gift-float 3.4s ease-in-out infinite alternate; filter: drop-shadow(0 22px 22px rgba(60, 0, 24, .38)); }
@keyframes gift-float { to { transform: translateY(-12px) rotate(-2.5deg); } }
.twinkle { position: absolute; font-style: normal; line-height: 1; color: #ffd36b; font-size: 1.4rem; animation: twinkle 1.8s ease-in-out infinite; }
.t1 { top: 8%; right: -8%; }
.t2 { top: 38%; left: -12%; font-size: 1.05rem; animation-delay: -.6s; }
.t3 { bottom: 22%; right: -14%; font-size: .9rem; animation-delay: -1.1s; }
.t4 { top: -6%; left: 22%; font-size: .85rem; animation-delay: -.3s; }
.closing-art .gift-box { fill: #fff; }
.closing-art .gift-top { fill: #ffe3ec; }
.closing-art .gift-band { fill: var(--gold); }
.closing-art .gift-knot { fill: #ffd36b; }
.closing-art .gift-shadow { fill: rgba(0, 0, 0, .18); }
.closing-art .gift-glow circle { fill: #ffe9a8; opacity: .0; }
.closing-art .gift-lid { transform-box: fill-box; transform-origin: 50% 100%; animation: lid 2.8s ease-in-out infinite; }
.closing-art .gift-glow circle { animation: glow 2.8s ease-in-out infinite; }
@keyframes lid { 0%, 55%, 100% { transform: none; } 66% { transform: translateY(-16px) rotate(-6deg); } 78% { transform: translateY(-4px) rotate(2deg); } }
@keyframes glow { 0%, 55%, 100% { opacity: 0; } 68% { opacity: .55; } }

/* ---------- foot ---------- */
.foot { display: grid; justify-items: center; gap: 10px; padding: 26px var(--pad) 110px; text-align: center; color: var(--soft); font-size: .88rem; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--crimson); }
.foot-links a[hidden] { display: none; }
@media (min-width: 980px) { .foot { padding-bottom: 40px; } }

/* ---------- the floating button (phones) ---------- */
.float-cta {
  position: fixed; z-index: 40; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 26px;
  border-radius: 999px; background: var(--crimson); color: #fff !important; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 1.08rem;
  box-shadow: 0 18px 34px -12px rgba(120, 10, 50, .8); transform: translate(-50%, 140%); transition: transform .4s cubic-bezier(.2, .8, .2, 1);  white-space: nowrap;
}
.float-cta svg { width: 20px; height: 20px; flex: none; }
.float-cta.is-on { transform: translate(-50%, 0); }
@media (min-width: 980px) { .float-cta { display: none; } }

/* ---------- the live demo over the page ---------- */
.demo-dlg { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: transparent; }
.demo-dlg[open] { display: grid; place-items: center; animation: fade .3s ease; }
.demo-dlg::backdrop { background: rgba(40, 6, 24, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.demo-phone { width: 100%; height: 100%; background: #fff; overflow: hidden; animation: lift .45s cubic-bezier(.2, .8, .2, 1); }
.demo-phone iframe { display: block; width: 100%; height: 100%; border: 0; }
.demo-close {
  position: fixed; z-index: 2; top: max(12px, env(safe-area-inset-top)); left: 12px; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px;
  border: 0; border-radius: 999px; background: rgba(30, 10, 22, .78); color: #fff; font-family: var(--head); font-weight: 700; font-size: .9rem;
}
@media (min-width: 700px) {
  .demo-phone { width: 400px; height: min(820px, calc(100vh - 60px)); border-radius: 44px; border: 10px solid #1d1520; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); }
  .demo-close { top: 24px; left: 24px; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes lift { from { opacity: 0; transform: translateY(40px) scale(.96); } }

/* ---------- appearing while scrolling ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.step-list li.rv:nth-child(2) { transition-delay: .12s; }
.step-list li.rv:nth-child(3) { transition-delay: .24s; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- terms and privacy ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 50px) var(--pad) 60px; }
.doc h1 { font-family: var(--head); font-weight: 900; font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1.1; margin-bottom: 8px; }
.doc .updated { color: var(--soft); font-size: .9rem; margin-bottom: 22px; }
.doc h2 { font-family: var(--head); font-weight: 800; font-size: 1.25rem; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink-2); font-size: 1.02rem; }
.doc ul { padding-inline-start: 22px; display: grid; gap: 6px; }
.doc p + p { margin-top: 10px; }
.doc a { color: var(--crimson); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home *, .home *::before, .home *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}

