/* Tryb Wishes — brand system and site shell (landing, creator, legal pages).
   Warm paper, aubergine ink, sindoor and marigold. One display face (Rozha One, OFL, self-hosted,
   split by script so English readers never download Devanagari); text stays on the system face. */

@font-face {
  font-family: 'Rozha One';
  src: url(/assets/fonts/rozha-one-latin.woff2) format('woff2');
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DC, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20B9, U+2122, U+2192, U+2212;
}
@font-face {
  font-family: 'Rozha One';
  src: url(/assets/fonts/rozha-one-deva.woff2) format('woff2');
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200B-200D, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

/* ---------------------------------------------------------------- tokens */
:root {
  /* colour */
  --paper: #fbf6ec;
  --paper-deep: #f4ead8;
  --card: #fffdf8;
  --ink: #2b1838;
  --ink-2: #5d4866;
  --ink-3: #7a6680;
  --line: #e8dcc6;
  --line-strong: #d9c7a9;
  --sindoor: #d63a1c;
  --sindoor-deep: #b42c12;
  --sindoor-soft: #fbe3d9;
  --marigold: #f2a007;
  --marigold-soft: #fdefc9;
  --haldi: #f7c548;
  --gold: #b8892e;
  --gold-ink: #8c5a06;
  --leaf: #2e6b4e;
  --leaf-soft: #dcebdf;
  --night: #1b0f26;
  --wa: #10803f;
  --wa-deep: #0b6a33;
  --focus: #2b1838;
  --danger: #b3261e;

  /* type */
  --font-display: 'Rozha One', 'Noto Serif Devanagari', Georgia, 'Times New Roman', serif;
  --font-text: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Devanagari', 'Nirmala UI', sans-serif;
  --fs-xs: 13px;
  --fs-sm: 15px;
  --fs-md: 17px;
  --fs-lg: 19px;
  --fs-xl: 24px;
  --fs-2xl: clamp(30px, 8.4vw, 44px);
  --fs-3xl: clamp(44px, 12.6vw, 78px);

  /* space (4 px grid) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;
  --gutter: 20px;

  /* shape */
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;

  /* elevation: warm, aubergine-tinted shadows */
  --sh-1: 0 1px 2px rgb(43 24 56 / 0.06), 0 2px 8px -2px rgb(43 24 56 / 0.08);
  --sh-2: 0 2px 4px rgb(43 24 56 / 0.05), 0 12px 28px -8px rgb(43 24 56 / 0.18);
  --sh-3: 0 40px 80px -24px rgb(43 24 56 / 0.45), 0 18px 32px -16px rgb(43 24 56 / 0.3);
  --sh-cta: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 1px 2px rgb(43 24 56 / 0.25), 0 10px 22px -10px rgb(214 58 28 / 0.75);

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --d-press: 120ms;
  --d-fast: 180ms;
  --d-base: 240ms;
  --d-slow: 420ms;
  --d-reveal: 640ms;

  --kolam: radial-gradient(circle at 1.5px 1.5px, rgb(43 24 56 / 0.075) 1.2px, transparent 1.7px) 0 0 / 22px 22px;
  color-scheme: light;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* damping 0.72, response 0.42 s — a little overshoot, for things that pop into place */
    --ease-spring: linear(0, 0.081, 0.257, 0.458, 0.642, 0.791, 0.9, 0.971, 1.013, 1.033, 1.038, 1.033, 1.021, 1.011, 1.004, 1);
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding: 76px 0 140px;
  background: var(--paper);
}
html.has-sheet { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(hi) body, body:lang(hi) { line-height: 1.65; }
img, svg { display: block; max-width: 100%; }
a { color: var(--sindoor-deep); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }
button, a, [role='button'], summary, label { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--haldi); color: var(--ink); }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.i {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.i-fill { fill: currentColor; stroke: none; }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.005em; }
.muted { color: var(--ink-2); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 10px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--card);
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--r-pill);
  border: 1.5px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--fs-md); font-weight: 650; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: transform var(--d-press) var(--ease-out), background-color var(--d-fast) ease, box-shadow var(--d-fast) ease, border-color var(--d-fast) ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { cursor: progress; opacity: 0.72; }
.btn .i { width: 22px; height: 22px; }
.btn-primary { --btn-bg: var(--sindoor); --btn-fg: #fff; --btn-bd: var(--sindoor); box-shadow: var(--sh-cta); }
.btn-ink { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink); }
.btn-wa { --btn-bg: var(--wa); --btn-fg: #fff; --btn-bd: var(--wa); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2), 0 10px 22px -10px rgb(16 128 63 / 0.8); }
.btn-gold {
  --btn-bg: linear-gradient(180deg, #f9d064, var(--marigold)); --btn-fg: var(--ink); --btn-bd: #e39a0c;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 1px 2px rgb(43 24 56 / 0.2), 0 10px 22px -10px rgb(184 120 6 / 0.85);
}
.btn-gold .spinner { border-color: rgb(43 24 56 / 0.2); border-top-color: var(--ink); }
.btn-quiet { --btn-bg: var(--card); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); }
.btn-lg { min-height: 58px; font-size: var(--fs-lg); padding: 0 26px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: var(--fs-sm); gap: 6px; }
.btn-sm .i { width: 18px; height: 18px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 52px; padding: 0; flex: none; }
.btn .go { transition: transform var(--d-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --btn-bd: var(--ink-3); }
  .btn-primary:hover { --btn-bg: var(--sindoor-deep); --btn-bd: var(--sindoor-deep); }
  .btn-ink:hover { --btn-bg: #3c2449; --btn-bd: #3c2449; }
  .btn-wa:hover { --btn-bg: var(--wa-deep); --btn-bd: var(--wa-deep); }
  .btn-gold:hover { --btn-bg: linear-gradient(180deg, #f7c548, #e39a0c); --btn-bd: #c98a0a; }
  .btn:hover .go { transform: translateX(3px); }
}
.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px;
  color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-color: var(--line-strong);
  text-decoration-thickness: 2px; text-underline-offset: 5px; background: none; border: 0; cursor: pointer;
}
.text-link .i { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .text-link:hover { text-decoration-color: var(--sindoor); } }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 60px; padding: 0 max(var(--gutter), env(safe-area-inset-left)) 0 max(var(--gutter), env(safe-area-inset-right));
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  background: rgb(251 246 236 / 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgb(43 24 56 / 0);
  transition: box-shadow var(--d-base) ease;
}
.topbar.is-stuck { box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgb(43 24 56 / 0.4); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand img { width: 32px; height: 32px; }
.brand-word { font-family: var(--font-display); font-size: 23px; line-height: 1; letter-spacing: -0.01em; padding-top: 3px; }
.brand-word b { font-weight: 400; color: var(--sindoor); }
.lang {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px 0 12px;
  border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--card);
  font-weight: 650; font-size: var(--fs-sm); cursor: pointer; color: var(--ink);
  transition: transform var(--d-press) var(--ease-out), border-color var(--d-fast) ease;
}
.lang .i { width: 18px; height: 18px; color: var(--ink-2); }
.lang:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .lang:hover { border-color: var(--ink-3); } }
.topbar-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px 0 0; color: var(--ink); text-decoration: none; font-weight: 650; }
.topbar-back .i { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- landing: hero */
.hero { position: relative; overflow: clip; padding-bottom: var(--s-12); }
.toran {
  height: 44px; margin-top: -2px;
  background: url(/assets/toran.svg) center top / 96px 44px repeat-x;
  transform-origin: top center;
  animation: toran-in 900ms var(--ease-out) both;
}
@keyframes toran-in { from { transform: translateY(-14px); opacity: 0; } }
.hero-grid { display: grid; gap: var(--s-10); align-items: center; padding-top: var(--s-6); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy > * { animation: rise 700ms var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: 60ms; }
.hero-copy > :nth-child(3) { animation-delay: 120ms; }
.hero-copy > :nth-child(4) { animation-delay: 180ms; }
.hero-copy > :nth-child(5) { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.countdown {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 6px; margin-bottom: var(--s-5);
  border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1);
  font-size: var(--fs-sm); font-weight: 650; color: var(--ink);
}
.countdown-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--marigold-soft); color: var(--sindoor); }
.countdown-dot .i { width: 16px; height: 16px; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-3xl); line-height: 1.02; letter-spacing: -0.015em; }
.hero h1:lang(hi) { line-height: 1.22; letter-spacing: 0; font-size: clamp(40px, 11.4vw, 70px); }
.hero h1 em { position: relative; font-style: normal; color: var(--sindoor); white-space: nowrap; }
.swash { position: absolute; left: -2%; right: -4%; bottom: -0.16em; width: 106%; height: 0.32em; overflow: visible; color: var(--marigold); }
.swash path { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 900ms var(--ease-out) 520ms forwards; }
:lang(hi) .swash { bottom: -0.04em; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lead { margin-top: var(--s-6); font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); max-width: 34ch; }
.hero-actions { display: grid; gap: var(--s-2); margin-top: var(--s-8); max-width: 400px; }
.hero-actions .text-link { justify-self: start; }
.trust-mini { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: var(--s-4); padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; }
.trust-mini li { display: inline-flex; align-items: center; gap: 6px; }
.trust-mini .i { width: 18px; height: 18px; color: var(--leaf); stroke-width: 2.4; }

.stage { position: relative; display: grid; justify-items: center; padding: var(--s-4) 0 var(--s-2); }
.stage > .phone, .stage > .stage-caption { z-index: 1; }
.stage-art {
  /* Painted phool rangoli (docs/ART.md). Its background was levelled to pure white, so multiply leaves the paper untouched. */
  position: absolute; z-index: 0; top: 50%; left: 50%; width: 470px; height: 470px; margin: -250px 0 0 -235px;
  max-width: none; mix-blend-mode: multiply; pointer-events: none;
  animation: art-in 1400ms var(--ease-out) 250ms both;
}
@keyframes art-in { from { opacity: 0; transform: scale(0.92) rotate(-8deg); } }
.stage::before {
  content: ''; position: absolute; z-index: 0; inset: 8% -10% 14%;
  background: radial-gradient(closest-side, rgb(242 160 7 / 0.32), rgb(214 58 28 / 0.08) 60%, transparent);
}
/* Animate the phone, not the stage: a transformed stage would become its own stacking context and
   the rangoli's multiply blend would have nothing (white) to blend with. */
.stage-in > .phone, .stage-in > .stage-caption { animation: stage-in 900ms var(--ease-out) 200ms both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } }

/* A phone frame around a 360 px-wide card, scaled to fit. Set --sw (screen width, unitless px). */
.phone {
  --sw: 236;
  --sh: calc(var(--sw) * 740 / 360);
  position: relative; padding: 9px; border-radius: 44px;
  background: linear-gradient(150deg, #4a3356, #1b0f26 38%, #2b1838 70%, #4a3356);
  box-shadow: var(--sh-3), inset 0 0 0 1.5px rgb(255 255 255 / 0.12);
}
.phone::after { /* camera island */
  content: ''; position: absolute; top: 17px; left: 50%; width: 30%; height: 18px; margin-left: -15%;
  border-radius: 12px; background: #0d0713; z-index: 2; pointer-events: none;
}
.phone-screen {
  position: relative; overflow: hidden; border-radius: 35px; background: var(--night);
  width: calc(var(--sw) * 1px); height: calc(var(--sh) * 1px);
  transform: translateZ(0);
}
.phone-screen iframe {
  position: absolute; top: 0; left: 0; width: 360px; height: 740px; border: 0;
  transform-origin: 0 0; transform: scale(calc(var(--sw) / 360));
  background: transparent;
  transition: opacity var(--d-slow) ease;
}
.phone-screen iframe.is-loading { opacity: 0; }
.phone-hit {
  position: absolute; inset: 0; z-index: 3; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 44px;
}
.phone-hit:active + .phone, .phone-hit:active ~ * { transform: none; }
.stage-caption {
  position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s-5); min-height: 44px; padding: 0 16px 0 8px;
  border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink);
  font-weight: 650; font-size: var(--fs-sm); cursor: pointer; box-shadow: var(--sh-1);
  transition: transform var(--d-press) var(--ease-out);
}
.stage-caption:active { transform: scale(0.97); }
.stage-caption .play { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sindoor); color: #fff; }
.stage-caption .play .i { width: 14px; height: 14px; fill: currentColor; stroke: none; margin-left: 2px; }

/* ---------------------------------------------------------------- your cards (returning makers) */
.mine { padding: var(--s-6) 0 var(--s-2); }
.mine .kicker { margin-bottom: 4px; }
.mine-title { margin: 0 0 var(--s-4); font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.25; }
.mine-list { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .mine-list { grid-template-columns: repeat(3, 1fr); } }
.mine-card {
  display: grid; grid-template-columns: 54px 1fr; gap: var(--s-4); align-items: start;
  padding: var(--s-3); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  animation: pop-in 420ms var(--ease-out) both;
}
.mine-card.is-off { opacity: 0.7; box-shadow: none; }
.mine-poster { width: 54px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--paper-deep); }
.mine-body { display: grid; gap: 4px; min-width: 0; }
.mine-body p { margin: 0; }
.mine-to { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 750; font-size: var(--fs-md); overflow-wrap: anywhere; }
.mine-new { padding: 1px 8px; border-radius: var(--r-pill); background: var(--sindoor); color: #fff; font-size: var(--fs-xs); font-weight: 750; }
.mine-meta { font-size: var(--fs-xs); color: var(--ink-3); }
.mine-opened, .mine-made { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 650; }
.mine-opened { color: var(--leaf); }
.mine-made { color: var(--gold-ink); }
.mine-opened .i, .mine-made .i { width: 16px; height: 16px; }
.mine-reacts { display: flex; flex-wrap: wrap; gap: 6px; }
.mine-react { padding: 2px 10px 2px 8px; border-radius: var(--r-pill); background: var(--paper-deep); font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; }
.mine-notyet { font-size: var(--fs-sm); font-weight: 650; color: var(--ink-2); }
.mine-hint, .mine-state { font-size: var(--fs-xs); color: var(--ink-3); }
.mine-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); margin-top: 4px; }
.mine-open { font-size: var(--fs-sm); }
.mine-del { font-size: var(--fs-sm); color: var(--ink-3); text-decoration-color: transparent; }
.mine-ask { margin-top: 8px; padding: 12px; border-radius: var(--r-md); background: var(--sindoor-soft); font-size: var(--fs-sm); line-height: 1.45; }
.mine-ask .mine-actions { margin-top: 8px; }
.mine-ask-note:empty { display: none; }
.mine-ask-note { margin-top: 6px !important; color: var(--danger); font-weight: 650; }
.mine-card.is-gone { opacity: 0; transform: scale(0.96); transition: opacity 240ms ease, transform 240ms var(--ease-out); }
.mine-more { margin-top: var(--s-3); background: none; border: 0; cursor: pointer; font: inherit; }

/* ---------------------------------------------------------------- sections */
.section { padding: var(--s-16) 0; position: relative; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--s-3);
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sindoor-deep); /* 5.3–5.9:1 on paper; plain sindoor is 3.9–4.4 */
}
.kicker:lang(hi) { letter-spacing: 0.02em; font-size: var(--fs-sm); }
.kicker::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-2xl); line-height: 1.08; letter-spacing: -0.01em; }
.h2:lang(hi) { line-height: 1.3; letter-spacing: 0; }
.section-head { margin-bottom: var(--s-8); max-width: 640px; }

/* reveal on scroll (ui.js revealOnScroll) */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- how it works */
/* Three steps in one row: the whole "how" in a glance, no reading required. */
.steps-band { padding: var(--s-10) 0 0; }
.steps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.steps-row li { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: var(--fs-sm); font-weight: 700; line-height: 1.35; color: var(--ink); }
.steps-n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--marigold-soft); color: var(--sindoor-deep); font-family: var(--font-display); font-size: 21px; line-height: 1;
}

/* ---------------------------------------------------------------- gallery */
.gallery-band { background: var(--paper-deep); border-block: 1px solid var(--line); }
.gallery-band::before { content: ''; position: absolute; inset: 0; background: var(--kolam); pointer-events: none; opacity: 0.8; }
.gallery-band > * { position: relative; }
.filters {
  position: sticky; top: calc(60px + env(safe-area-inset-top)); z-index: 20;
  margin: 0 calc(var(--gutter) * -1) var(--s-6); padding: 10px var(--gutter);
  background: rgb(244 234 216 / 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.chips { display: flex; gap: var(--s-2); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; margin: -4px; padding: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink);
  font-weight: 650; font-size: var(--fs-sm); cursor: pointer; white-space: nowrap; user-select: none;
  transition: background-color var(--d-fast) ease, color var(--d-fast) ease, border-color var(--d-fast) ease, transform var(--d-press) var(--ease-out);
}
.chip:active { transform: scale(0.96); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .count { font-size: var(--fs-xs); opacity: 0.7; font-variant-numeric: tabular-nums; }
.shelf { margin-bottom: var(--s-10); }
.shelf:last-child { margin-bottom: 0; }
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: var(--s-4); }
.shelf-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.2; }
.shelf-note { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); padding: 3px 10px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); }
.shelf-note .i { width: 14px; height: 14px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-3); }
/* The whole tile is one button: poster, occasion, title. It opens the card to try; the sheet has Make. */
.tile {
  position: relative; display: grid; align-content: start; gap: 4px; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
  animation: tile-in 520ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms);
}
@keyframes tile-in { from { opacity: 0; transform: translateY(10px); } }
.tile-poster {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 14; margin-bottom: 6px; border-radius: var(--r-md); overflow: hidden;
  background: var(--tbg, var(--night)); box-shadow: var(--sh-2), inset 0 0 0 1px rgb(43 24 56 / 0.08);
  transition: transform var(--d-press) var(--ease-out);
}
.tile:active .tile-poster { transform: scale(0.97); }
.tile-poster img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 600ms var(--ease-out); }
.tile-poster .poster-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; }
.tile-poster::after {
  content: ''; position: absolute; inset: auto 8px 8px auto; width: 36px; height: 36px; border-radius: 50%;
  background: rgb(255 253 248 / 0.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.8v10.4a.7.7 0 0 0 1.1.6l8.2-5.2a.7.7 0 0 0 0-1.2L10.1 6.2A.7.7 0 0 0 9 6.8z' fill='%23d63a1c'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: var(--sh-1);
}
.tile-when {
  position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--sindoor); color: #fff; font-size: 12px; font-weight: 750; line-height: 1.4; box-shadow: var(--sh-1);
}
.tile-occ { font-size: 12px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sindoor-deep); }
.tile-occ:lang(hi) { letter-spacing: 0; font-size: var(--fs-xs); }
.tile-title { font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.tile-title:lang(hi) { line-height: 1.4; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile-poster img { transform: scale(1.035); }
}
.empty { padding: var(--s-6); border-radius: var(--r-lg); border: 1.5px dashed var(--line-strong); color: var(--ink-2); text-align: center; }

/* ---------------------------------------------------------------- faq */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 64px; padding: var(--s-3) 0; cursor: pointer; list-style: none; font-weight: 650; font-size: var(--fs-lg); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 22px; height: 22px; color: var(--ink-2); transition: transform var(--d-base) var(--ease-out); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq .ans { padding: 0 var(--s-8) var(--s-5) 0; color: var(--ink-2); }
.faq details[open] .ans { animation: fade-down 280ms var(--ease-out); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }

/* ---------------------------------------------------------------- footer */
.site-footer { position: relative; margin-top: var(--s-12); background: var(--night); color: #e9dfee; padding: var(--s-16) 0 calc(var(--s-12) + env(safe-area-inset-bottom)); }
.site-footer::before { /* scalloped edge, like the border of a rangoli */
  content: ''; position: absolute; left: 0; right: 0; top: -11px; height: 12px;
  background: radial-gradient(circle at 11px 12px, var(--night) 10.5px, transparent 11px) 0 0 / 22px 12px repeat-x;
}
.site-footer .brand { color: var(--paper); }
.site-footer .brand-word b { color: var(--haldi); }
.footer-line { margin-top: var(--s-3); color: #cbbcd3; max-width: 34ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: var(--s-6); padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); font-weight: 650; text-decoration-color: rgb(255 255 255 / 0.3); }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: var(--s-4); font-size: var(--fs-sm); color: #b6a6bf; }
.footer-meta .i { width: 18px; height: 18px; color: var(--haldi); }
.footer-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------- floating dock (phones) */
.dock {
  position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateY(calc(100% + 24px)); transition: transform var(--d-slow) var(--ease-drawer);
}
.dock.is-on { transform: none; }
.dock .btn { width: 100%; box-shadow: var(--sh-cta), 0 18px 40px -12px rgb(43 24 56 / 0.5); }

/* ---------------------------------------------------------------- sheets (<dialog>) */
.sheet {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--ink); overflow: visible;
}
.sheet::backdrop { background: rgb(27 15 38 / 0.62); animation: fade-in var(--d-slow) ease both; }
.sheet.is-closing::backdrop { animation: fade-out 220ms ease both; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column;
  max-height: calc(100% - 12px - env(safe-area-inset-top)); overflow: hidden;
  border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--paper);
  box-shadow: 0 -20px 60px -20px rgb(0 0 0 / 0.45);
  animation: sheet-up 460ms var(--ease-drawer) both;
}
.sheet.is-closing .sheet-panel { animation: sheet-down 220ms var(--ease-out) both; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.sheet-grab { flex: none; width: 44px; height: 5px; margin: 10px auto 0; border-radius: 3px; background: var(--line-strong); }
.sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 8px var(--gutter); }
.sheet-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.2; }
.sheet-x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper-deep); color: var(--ink); cursor: pointer; flex: none; transition: transform var(--d-press) var(--ease-out); }
.sheet-x:active { transform: scale(0.92); }
.sheet-x .i { width: 22px; height: 22px; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom)); }

/* try-it sheet: a full-height card with one action */
.try .sheet-panel { top: calc(8px + env(safe-area-inset-top)); max-height: none; background: var(--night); color: var(--paper); }
.try .sheet-head h2 { color: var(--paper); }
.try .sheet-x { background: rgb(255 255 255 / 0.12); color: var(--paper); }
.try-frame { flex: 1; min-height: 0; position: relative; margin: 0 8px; border-radius: 22px; overflow: hidden; background: #000; }
.try-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.try-foot { flex: none; display: grid; gap: 6px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
.try-foot p { font-size: var(--fs-xs); color: #cbbcd3; text-align: center; }

@media (min-width: 760px) {
  .sheet-panel {
    left: 50%; top: 50%; bottom: auto; right: auto; width: min(520px, calc(100% - 48px)); max-height: min(860px, calc(100% - 48px));
    border-radius: var(--r-xl); transform: translate(-50%, -50%);
    animation: modal-in 320ms var(--ease-out) both;
  }
  .sheet.is-closing .sheet-panel { animation: modal-out 180ms var(--ease-out) both; }
  @keyframes modal-in { from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); } }
  @keyframes modal-out { to { opacity: 0; transform: translate(-50%, -49%) scale(0.97); } }
  .sheet-grab { display: none; }
  .try .sheet-panel { top: 50%; width: 420px; height: min(860px, calc(100% - 48px)); }
}

/* ---------------------------------------------------------------- creator */
body.create { background: var(--paper); }
.create-layout { display: grid; gap: var(--s-8); padding-top: var(--s-4); padding-bottom: 120px; }
.tpl-head { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-4); align-items: center; margin-bottom: var(--s-5); }
.tpl-thumb { width: 64px; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--tbg, var(--night)); box-shadow: var(--sh-2); display: grid; place-items: center; font-size: 28px; }
.tpl-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tpl-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 8vw, 38px); line-height: 1.1; }
.tpl-head h1:lang(hi) { line-height: 1.3; }
.tpl-head p { margin-top: 4px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.panel { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: var(--s-5); }
.field { margin-bottom: var(--s-6); }
.field:last-child { margin-bottom: var(--s-2); }
.label { display: block; font-weight: 700; margin: 0 0 8px; font-size: var(--fs-md); line-height: 1.35; }
.label .opt, .opt-line { font-weight: 500; color: var(--ink-3); font-size: var(--fs-sm); }
.input {
  display: block; width: 100%; min-height: 56px; padding: 14px 16px; font: inherit; font-size: 18px; line-height: 1.4;
  border-radius: 14px; border: 1.5px solid var(--line-strong); background: #fffefb; color: var(--ink);
  transition: border-color var(--d-fast) ease, box-shadow var(--d-fast) ease;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #a593a8; }
textarea.input { resize: vertical; min-height: 128px; }
/* Focus is ink + a marigold glow, never red: red means "something is wrong" (.bad) to everyone. */
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(242 160 7 / 0.28); }
.input.bad:focus { border-color: var(--danger); box-shadow: 0 0 0 4px rgb(179 38 30 / 0.16); }
.input.bad { border-color: var(--danger); box-shadow: 0 0 0 4px rgb(179 38 30 / 0.12); }
.meta { display: flex; justify-content: space-between; gap: 10px; min-height: 22px; margin-top: 6px; }
.counter { margin-left: auto; font-size: var(--fs-xs); color: var(--ink-3); flex: none; font-variant-numeric: tabular-nums; }
.counter.near { color: var(--sindoor-deep); font-weight: 700; }
.error { margin: 0; color: var(--danger); font-size: var(--fs-sm); font-weight: 650; }
.error:empty { display: none; }
/* A suggested wish, ready to send: reads like the card, not like a form hint. */
.suggest {
  padding: 14px 16px 10px; border-radius: 16px; background: var(--paper);
  border: 1.5px solid var(--line); font-size: var(--fs-md); line-height: 1.55; color: var(--ink); white-space: pre-line;
}
.suggest-k { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 750; color: var(--leaf); margin-bottom: 4px; white-space: normal; }
.suggest-k .i { width: 16px; height: 16px; stroke-width: 2.4; }
.suggest-t { display: block; overflow-wrap: anywhere; }
.wish-editor[hidden] { display: none; }
.suggest-edit {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 4px 0 -8px -2px; padding: 0 6px;
  border: 0; background: none; color: var(--sindoor-deep); font: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  transition: transform var(--d-press) var(--ease-out);
}
.suggest-edit .i { width: 16px; height: 16px; }
.suggest-edit:active { transform: scale(0.97); }
.choices { display: grid; gap: var(--s-2); }
.choice {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 12px 16px;
  border-radius: 14px; border: 1.5px solid var(--line-strong); background: #fffefb; color: var(--ink);
  font-size: var(--fs-md); font-weight: 550; line-height: 1.35; text-align: left; cursor: pointer;
  transition: border-color var(--d-fast) ease, background-color var(--d-fast) ease, transform var(--d-press) var(--ease-out);
}
.choice:active { transform: scale(0.985); }
.choice::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; transition: border-color var(--d-fast) ease, box-shadow var(--d-fast) ease; }
.choice:has(input:checked) { border-color: var(--sindoor); background: var(--sindoor-soft); font-weight: 700; }
.choice:has(input:checked)::before { border-color: var(--sindoor); box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 11px var(--sindoor); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.photo-drop {
  display: grid; justify-items: center; gap: 6px; width: 100%; padding: var(--s-6) var(--s-4);
  border-radius: var(--r-lg); border: 2px dashed var(--line-strong); background: var(--paper);
  color: var(--ink); cursor: pointer; text-align: center;
  transition: transform var(--d-press) var(--ease-out), border-color var(--d-fast) ease, background-color var(--d-fast) ease;
}
.photo-drop:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .photo-drop:hover { border-color: var(--sindoor); background: #fff9f2; } }
.photo-drop .ring { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--sindoor); color: #fff; margin-bottom: 6px; box-shadow: var(--sh-cta); }
.photo-drop .ring .i { width: 28px; height: 28px; }
.photo-drop strong { font-size: var(--fs-lg); }
.photo-drop span { font-size: var(--fs-sm); color: var(--ink-2); }
.photo-has { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-4); align-items: center; padding: var(--s-3); border-radius: var(--r-lg); background: var(--paper); border: 1.5px solid var(--line); animation: pop-in 420ms var(--ease-spring) both; }
@keyframes pop-in { from { opacity: 0; transform: scale(0.94); } }
.thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 16px; box-shadow: var(--sh-1); }
.photo-has-title { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--leaf); }
.photo-has-title .i { width: 20px; height: 20px; stroke-width: 2.4; }
.photo-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.photo-busy { display: flex; align-items: center; gap: 10px; padding: var(--s-4); color: var(--ink-2); font-weight: 600; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--sindoor); animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: var(--s-3); padding: 12px 14px; border-radius: 14px; background: var(--marigold-soft); font-size: var(--fs-sm); line-height: 1.45; cursor: pointer; }
.consent input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--sindoor); }

.submit-bar {
  position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center;
  margin: var(--s-4) calc(var(--s-5) * -1) calc(var(--s-5) * -1); padding: 14px var(--s-5) max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgb(255 253 248 / 0), var(--card) 26%);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.submit-bar .btn-primary { flex: 1; min-width: 0; padding: 0 14px; gap: 8px; font-size: var(--fs-md); white-space: nowrap; }
.submit-bar .btn-primary span { overflow: hidden; text-overflow: ellipsis; }
.submit-bar .preview-btn { flex: none; min-height: 58px; padding: 0 12px; gap: 6px; font-size: var(--fs-sm); }
/* 360 px phones: the label matters more than the sparkle. */
@media (max-width: 380px) { #submit-icon { display: none; } .submit-bar .preview-btn { padding: 0 10px; } }
.submit-note { margin: 0 0 4px; text-align: center; font-size: var(--fs-xs); color: var(--ink-3); }
/* While someone types, the Create bar stops floating so it never covers the field (360 px + keyboard).
   A sticky box keeps its place in the flow, so nothing else moves. scroll-padding is the fallback
   for browsers without :has(). */
#form-card:has(.input:focus) .submit-bar { position: static; }
.status { flex-basis: 100%; margin: 2px 0 0; min-height: 1.4em; font-size: var(--fs-sm); text-align: center; color: var(--ink-2); }
.status:empty { display: none; }
.status.is-error { color: var(--danger); font-weight: 650; }
.btn .spinner { width: 20px; height: 20px; border-color: rgb(255 255 255 / 0.35); border-top-color: #fff; }

/* Until the template's form arrives: its rough shape (label, box) three times, so nothing jumps when it lands. */
#form-fields:empty {
  min-height: 560px;
  background:
    linear-gradient(var(--paper-deep) 0 0) 0 0 / 38% 16px,
    linear-gradient(var(--paper-deep) 0 0) 0 30px / 100% 54px,
    linear-gradient(var(--paper-deep) 0 0) 0 128px / 30% 16px,
    linear-gradient(var(--paper-deep) 0 0) 0 158px / 100% 54px,
    linear-gradient(var(--paper-deep) 0 0) 0 256px / 34% 16px,
    linear-gradient(var(--paper-deep) 0 0) 0 286px / 100% 132px;
  background-repeat: no-repeat;
  border-radius: 12px;
  animation: skel 1.4s ease-in-out infinite alternate;
}
@keyframes skel { from { opacity: 0.55; } to { opacity: 1; } }
#t-desc:empty { min-height: 3em; }
#form-fields:empty + .submit-bar { visibility: hidden; }

.create-preview { position: relative; display: grid; justify-items: center; }
.preview-label { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--s-4); font-weight: 700; }
.preview-label .hint { font-weight: 500; color: var(--ink-2); font-size: var(--fs-sm); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #2fb35c; box-shadow: 0 0 0 0 rgb(47 179 92 / 0.6); animation: live 2s ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgb(47 179 92 / 0); } 100% { box-shadow: 0 0 0 0 rgb(47 179 92 / 0); } }
.create-preview .phone { --sw: 288; }

/* ---------------------------------------------------------------- creator: premium extras */
.pill-premium, .pill-soon {
  display: inline-flex; align-items: center; gap: 4px; flex: none; height: 24px; padding: 0 9px 0 7px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 800; letter-spacing: 0.02em; line-height: 1; white-space: nowrap;
}
.pill-premium { background: linear-gradient(135deg, #fdecb8, var(--haldi)); color: var(--gold-ink); box-shadow: inset 0 0 0 1px rgb(184 137 46 / 0.35); }
.pill-premium .i { width: 14px; height: 14px; stroke-width: 2.2; }
.pill-soon { padding: 0 10px; background: var(--paper-deep); color: var(--ink-2); }
.preview-label .pill-premium { margin-left: 2px; }

.extras {
  margin: var(--s-2) -10px var(--s-2); border-radius: var(--r-lg); border: 1.5px solid #f0d58a;
  background: radial-gradient(120% 90% at 0% 0%, rgb(247 197 72 / 0.2), transparent 55%), linear-gradient(180deg, #fffaf0, var(--card));
  transition: border-color var(--d-fast) ease, box-shadow var(--d-fast) ease;
}
.extras.has-extras { border-color: var(--haldi); box-shadow: 0 10px 26px -18px rgb(184 120 6 / 0.7); }
.x-head {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 22px; align-items: center; gap: 12px; width: 100%;
  min-height: 76px; padding: 14px 12px 14px 14px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink);
  border-radius: var(--r-lg);
}
.x-head:active .x-head-ic { transform: scale(0.94); }
.x-head-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: linear-gradient(140deg, var(--marigold), var(--sindoor)); box-shadow: 0 8px 18px -10px rgb(214 58 28 / 0.9); transition: transform var(--d-press) var(--ease-out); }
.x-head-ic .i { width: 22px; height: 22px; }
.x-head-text { display: grid; gap: 2px; min-width: 0; }
.x-head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.x-head-title { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.2; }
.x-head-title:lang(hi), :lang(hi) .x-head-title { line-height: 1.35; }
.x-sum { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.35; }
.x-sum.is-set { color: var(--gold-ink); font-weight: 650; }
.x-chev { color: var(--ink-2); transition: transform var(--d-base) var(--ease-out); }
.x-chev .i { width: 22px; height: 22px; }
.extras.is-open .x-chev { transform: rotate(180deg); }
/* accordion: grid rows 0fr → 1fr (no measuring in JS) */
.x-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-slow) var(--ease-out); }
.extras.is-open .x-body { grid-template-rows: 1fr; }
.x-inner { min-height: 0; overflow: hidden; }
.x-inner > * { margin-left: 14px; margin-right: 14px; }
.x-inner > :last-child { margin-bottom: 18px; }
.x-inner > * { opacity: 0; transform: translateY(-6px); transition: opacity 200ms ease, transform 300ms var(--ease-out); }
.extras.is-open .x-inner > * { opacity: 1; transform: none; transition-delay: 80ms; }
.x-note { padding: 12px 14px; border-radius: 14px; background: rgb(255 255 255 / 0.7); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.x-soon { display: grid; gap: 8px; padding: 0; list-style: none; margin-top: 12px; }
.x-soon li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; font-size: var(--fs-sm); }
.x-soon .i { width: 20px; height: 20px; color: var(--gold); }
.x-block { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.x-block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.x-block-head h3 { font-size: var(--fs-md); line-height: 1.3; }
.x-hint { margin: 4px 0 12px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.45; }

.tracks { display: grid; gap: 8px; }
.track {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 9px 9px 9px 10px; border-radius: 16px;
  border: 1.5px solid var(--line-strong); background: #fffefb; cursor: pointer;
  transition: border-color var(--d-fast) ease, background-color var(--d-fast) ease, transform var(--d-press) var(--ease-out);
}
.track:active { transform: scale(0.985); }
.track:has(input:checked) { border-color: var(--sindoor); background: var(--sindoor-soft); }
.track-none:has(input:checked) { border-color: var(--ink-3); background: var(--paper); }
.track:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.track-none { min-height: 54px; }
.track-art { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; color: #fff; background: var(--paper-deep); overflow: hidden; }
.track-none .track-art { color: var(--ink-3); width: 36px; height: 36px; margin: 0 4px; background: none; }
.track-art .i { width: 22px; height: 22px; }
.track-diya-glow .track-art { background: linear-gradient(140deg, #f7c548, #d63a1c); }
.track-lofi-love .track-art { background: linear-gradient(140deg, #f28aa0, #6a3b8f); }
.track-kids-play .track-art { background: linear-gradient(140deg, #46c2e8, #2e9e5b); }
.track-art .eq { position: absolute; inset: 0; display: none; align-items: flex-end; justify-content: center; gap: 3px; padding: 12px 0; }
.track-art .eq i { width: 4px; height: 100%; border-radius: 2px; background: #fff; transform-origin: bottom; animation: eq 900ms ease-in-out infinite; }
.track-art .eq i:nth-child(2) { animation-delay: -300ms; animation-duration: 760ms; }
.track-art .eq i:nth-child(3) { animation-delay: -600ms; animation-duration: 1040ms; }
@keyframes eq { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.track.is-playing .eq { display: flex; }
.track.is-playing .note { display: none; }
.track-text { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.track-text strong { font-size: var(--fs-md); }
.track-text span { font-size: var(--fs-xs); color: var(--ink-2); }
.track-play {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); cursor: pointer;
  transition: transform var(--d-press) var(--ease-out);
}
.track-play:active { transform: scale(0.92); }
.track-play .i { width: 18px; height: 18px; }
.track-play .ic-play .i { margin-left: 2px; }
.track-play .ic-stop, .track.is-playing .track-play .ic-play { display: none; }
.track.is-playing .track-play .ic-stop { display: block; }
.track.is-playing .track-play { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.rec-main {
  display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 18px;
  background: rgb(255 255 255 / 0.75); border: 1.5px dashed var(--line-strong);
}
.rec-btn {
  position: relative; display: grid; place-items: center; flex: none; width: 72px; height: 72px; padding: 0; border: 0; border-radius: 50%;
  background: var(--sindoor); color: #fff; cursor: pointer; box-shadow: var(--sh-cta);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform var(--d-press) var(--ease-out), background-color var(--d-fast) ease;
}
.rec-btn:active { transform: scale(0.95); }
.rec-btn > span:not(.rec-ring) { position: relative; z-index: 1; display: grid; }
.rec-btn .i { width: 30px; height: 30px; }
.rec-ring { position: absolute; inset: -7px; border-radius: 50%; background: rgb(214 58 28 / 0.2); opacity: 0; transition: opacity var(--d-fast) ease, transform 90ms linear; }
.rec-stop { display: none !important; }
.rec.is-recording .rec-btn { background: #c4231a; }
.rec.is-recording .rec-ring { opacity: 1; }
.rec.is-recording .rec-ic { display: none !important; }
.rec.is-recording .rec-stop { display: grid !important; }
.rec.is-recording .rec-main { border-style: solid; border-color: rgb(214 58 28 / 0.45); background: #fff6f2; }
.rec.is-starting .rec-btn { animation: rec-wait 1s ease-in-out infinite; }
@keyframes rec-wait { 50% { transform: scale(0.94); } }
.rec-side { display: grid; gap: 6px; flex: 1; min-width: 0; }
.rec-label { font-weight: 700; font-size: var(--fs-md); line-height: 1.3; }
.rec-meter { display: flex; align-items: center; gap: 3px; height: 26px; }
.rec-meter i { flex: 1; height: 100%; border-radius: 2px; background: var(--line-strong); transform: scaleY(0.08); transition: transform 70ms linear; }
.rec.is-recording .rec-meter i { background: var(--sindoor); }
.rec-meta { display: flex; align-items: center; gap: 10px; }
.rec-progress { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.rec-progress span { display: block; height: 100%; background: var(--sindoor); transform-origin: left; transform: scaleX(0); }
.rec-time { flex: none; font-size: var(--fs-xs); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rec-msg { margin-top: 8px; }
.rec-ready { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--leaf); font-weight: 700; }
.rec-ready .i { width: 20px; height: 20px; stroke-width: 2.4; }
.rec-has { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: rgb(255 255 255 / 0.8); border: 1.5px solid var(--line); animation: pop-in 420ms var(--ease-spring) both; }
.rec-play { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); cursor: pointer; transition: transform var(--d-press) var(--ease-out); }
.rec-play:active { transform: scale(0.93); }
.rec-play .i { width: 22px; height: 22px; }
.rec-play .ic-play .i { margin-left: 2px; }
.rec-play .ic-stop, .rec-has.is-playing .rec-play .ic-play { display: none; }
.rec-has.is-playing .rec-play .ic-stop { display: block; }
.rec-wavebox { position: relative; height: 34px; }
.rec-wave { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.rec-wave i { flex: 1; height: 100%; border-radius: 2px; background: var(--line-strong); transition: transform 400ms var(--ease-out); }
.rec-wave.on { clip-path: inset(0 100% 0 0); }
.rec-wave.on i { background: var(--sindoor); }
.rec-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.rec-actions .btn-icon { width: 44px; min-height: 44px; padding: 0; }

.x-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.x-slot { position: relative; aspect-ratio: 4 / 5; margin: 0; border-radius: 16px; overflow: hidden; }
.x-slot.add {
  display: grid; place-content: center; justify-items: center; gap: 8px; width: 100%; padding: 0;
  border: 2px dashed var(--line-strong); background: rgb(255 255 255 / 0.7); color: var(--ink); font: inherit; font-weight: 650; font-size: var(--fs-sm); cursor: pointer;
  transition: transform var(--d-press) var(--ease-out), border-color var(--d-fast) ease;
}
.x-slot.add:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .x-slot.add:hover { border-color: var(--sindoor); } }
.x-slot-ring { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sindoor-soft); color: var(--sindoor); }
.x-slot-ring .i { width: 22px; height: 22px; stroke-width: 2.2; }
.x-slot.has { box-shadow: var(--sh-2); animation: pop-in 420ms var(--ease-spring) both; }
.x-slot.has img { width: 100%; height: 100%; object-fit: cover; }
.x-slot-x {
  position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: rgb(27 15 38 / 0.68); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.x-slot-x::before { content: ''; position: absolute; inset: -4px; }
.x-slot-x .i { width: 18px; height: 18px; stroke-width: 2.2; }
.x-slot.ghost { display: grid; place-items: center; border: 2px dashed var(--line); color: var(--line-strong); }
.x-slot.ghost .i { width: 28px; height: 28px; }
.x-slot.is-busy { display: grid; place-items: center; background: var(--paper-deep); }
.x-consent .consent { margin-top: var(--s-3); }
.submit-bar .submit-note { flex-basis: 100%; order: -1; margin: 0; font-weight: 650; color: var(--gold-ink); }
.submit-bar:has(.submit-note) { background: linear-gradient(180deg, rgb(255 253 248 / 0), var(--card) 14px); }

/* ---------------------------------------------------------------- share sheet */
.share .sheet-body { padding-top: var(--s-2); }
.share-hero { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 0 0 var(--s-2); }
.share-badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--leaf); color: #fff; box-shadow: 0 12px 28px -10px rgb(46 107 78 / 0.8); animation: badge-in 640ms var(--ease-spring) 120ms both; }
.share-badge .i { width: 34px; height: 34px; stroke-width: 2.6; }
.share-badge path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 420ms var(--ease-out) 420ms forwards; }
@keyframes badge-in { from { transform: scale(0.5); opacity: 0; } }
.share-hero h2 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.15; margin-top: 8px; }
.share-hero h2:lang(hi) { line-height: 1.35; }
.share-hero p { color: var(--ink-2); font-size: var(--fs-sm); }
.share-actions { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.share-preview { margin: var(--s-6) 0 0; }
.share-preview figcaption { margin-bottom: var(--s-2); text-align: center; font-size: var(--fs-sm); font-weight: 650; color: var(--ink-2); }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.share-row .btn:only-child { grid-column: 1 / -1; }
.share-url { margin-top: var(--s-3); padding: 10px 14px; border-radius: 12px; background: var(--paper-deep); font-size: var(--fs-sm); color: var(--ink-2); word-break: break-all; text-align: center; user-select: all; -webkit-user-select: all; }
.share-more { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 20px; margin-top: var(--s-4); }
.share-note { margin-top: var(--s-2); text-align: center; font-size: var(--fs-xs); color: var(--ink-3); }
.share > .sheet-panel > .sheet-body > * { animation: rise 520ms var(--ease-out) both; }
.share .sheet-body > :nth-child(2) { animation-delay: 80ms; }
.share .sheet-body > :nth-child(3) { animation-delay: 140ms; }
.share .sheet-body > :nth-child(4) { animation-delay: 200ms; }
.share .sheet-body > :nth-child(5) { animation-delay: 260ms; }

/* Premium upsell in the share sheet ("Make it Premium · ₹29"), filled by upsell.js. */
.premium-slot { margin-top: var(--s-6); padding: var(--s-5) var(--s-5) var(--s-4); border-radius: var(--r-lg); border: 1.5px solid var(--haldi); background: radial-gradient(120% 70% at 100% 0%, rgb(247 197 72 / 0.28), transparent 60%), linear-gradient(180deg, #fff8e6, var(--card)); }
.pu-head { display: flex; align-items: center; gap: 12px; }
.pu-crown { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #fde7a6, var(--haldi) 55%, var(--marigold)); color: var(--gold-ink); box-shadow: 0 8px 18px -10px rgb(140 90 6 / 0.9); }
.pu-crown .i { width: 22px; height: 22px; }
.pu-title { font-family: var(--font-display); font-weight: 400; font-size: 25px; line-height: 1.15; }
.pu-title:lang(hi) { line-height: 1.35; }
.pu-price { color: var(--sindoor); white-space: nowrap; }
.pu-lead { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--ink-2); }
.pu-list { display: grid; gap: 9px; margin: var(--s-4) 0 var(--s-5); padding: 0; list-style: none; }
.pu-list li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; }
.pu-li-ic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--leaf-soft); color: var(--leaf); }
.pu-li-ic .i { width: 16px; height: 16px; stroke-width: 2.2; }
.pu-status p { margin-top: var(--s-3); font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-2); }
.pu-status[data-kind='error'] p { padding: 12px 14px; border-radius: 14px; background: #fdecea; color: var(--danger); font-weight: 600; }
.pu-status[data-kind='warn'] p { padding: 12px 14px; border-radius: 14px; background: var(--marigold-soft); color: var(--ink); }
.pu-status .text-link { margin-top: 4px; }
.pu-fine { margin-top: var(--s-3); font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-3); }
.pu-fine a { color: var(--ink-2); font-weight: 650; }
.share-track { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-2); }
.share-track .i { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--leaf); }
.premium-slot.is-done { border-color: var(--marigold); background: radial-gradient(90% 80% at 50% 0%, rgb(247 197 72 / 0.45), transparent 70%), linear-gradient(180deg, #fff6dc, var(--card)); }
.pu-done { display: grid; justify-items: center; gap: 6px; text-align: center; padding: var(--s-2) 0 var(--s-2); }
.pu-done-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #fde7a6, var(--haldi) 55%, var(--marigold)); color: var(--gold-ink); box-shadow: 0 14px 30px -12px rgb(140 90 6 / 0.9); animation: badge-in 640ms var(--ease-spring) both; }
.pu-done-badge .i { width: 32px; height: 32px; }
.pu-done h3 { margin-top: 6px; font-family: var(--font-display); font-weight: 400; font-size: 27px; line-height: 1.2; outline: none; }
.pu-done h3:lang(hi) { line-height: 1.4; }
.pu-done p { font-size: var(--fs-sm); color: var(--ink-2); max-width: 32ch; }
.pu-done > * { animation: rise 520ms var(--ease-out) both; }
.pu-done > :nth-child(2) { animation-delay: 120ms; }
.pu-done > :nth-child(3) { animation-delay: 180ms; }

/* WhatsApp chat mock: how the link will look once sent */
.wa-mock {
  padding: 14px 12px 12px; border-radius: 22px; background-color: #efe7dd;
  background-image: radial-gradient(circle at 2px 2px, rgb(120 100 80 / 0.12) 1.2px, transparent 1.6px);
  background-size: 18px 18px; box-shadow: inset 0 0 0 1px rgb(43 24 56 / 0.06);
}
.wa-bubble {
  position: relative; margin-left: auto; width: min(100%, 320px); padding: 4px 4px 6px; border-radius: 12px 4px 12px 12px;
  background: #d9fdd3; box-shadow: 0 1px 1px rgb(0 0 0 / 0.12); color: #111b21; font-family: var(--font-text);
}
.wa-bubble::after { content: ''; position: absolute; top: 0; right: -8px; width: 9px; height: 12px; background: #d9fdd3; clip-path: polygon(0 0, 100% 0, 0 100%); }
.wa-card { overflow: hidden; border-radius: 9px; background: #cdf1c6; }
.wa-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--tbg, #1b0f26); }
.wa-card-text { padding: 7px 10px 8px; }
.wa-card-title { font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wa-card-desc { font-size: 13px; color: #3b4a54; line-height: 1.3; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.wa-card-host { font-size: 12px; color: #667781; margin-top: 2px; }
.wa-text { padding: 6px 8px 0; font-size: 14.5px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.wa-text a { color: #027eb5; text-decoration: none; }
.wa-meta { display: flex; justify-content: flex-end; align-items: center; gap: 3px; padding: 0 6px; font-size: 11px; color: #667781; }
.wa-meta svg { width: 16px; height: 11px; }

/* ---------------------------------------------------------------- legal + 404 */
.doc { max-width: 720px; margin: 0 auto; padding: var(--s-8) var(--gutter) var(--s-16); }
.doc h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 10vw, 52px); line-height: 1.1; margin-bottom: var(--s-3); }
.doc h1:lang(hi) { line-height: 1.3; }
.doc h2 { font-size: var(--fs-lg); margin: var(--s-8) 0 var(--s-2); }
.doc p { color: var(--ink-2); }
.doc .draft { display: inline-block; padding: 4px 12px; border-radius: var(--r-pill); background: var(--marigold-soft); color: var(--gold-ink); font-size: var(--fs-sm); font-weight: 650; }
.doc strong { color: var(--ink); }
.doc-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.doc-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); font-weight: 650; font-size: var(--fs-sm); }
.contact-list { display: grid; gap: var(--s-3); margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-3); align-items: start; padding: var(--s-4); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.contact-list .i { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--marigold-soft); color: var(--sindoor-deep); }
.contact-list strong { color: var(--ink); }
.contact-list a { overflow-wrap: anywhere; }
/* Placeholders the owner must fill before launch (web/contact.html). Loud on purpose. */
.owner-fill { padding: 1px 6px; border-radius: 6px; background: #fff3c4; outline: 2px dashed var(--marigold); outline-offset: 1px; color: var(--ink); font-weight: 650; }
.lost { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: var(--s-4); padding: var(--s-8) var(--gutter); text-align: center; }
.lost h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 9vw, 48px); line-height: 1.2; }
.lost p { color: var(--ink-2); max-width: 30ch; }
.lost-diya { width: 140px; height: 140px; }

/* ---------------------------------------------------------------- occasions: wishes pages, landing strip, footer links */
/* Bilingual static copy (scripts/build-pages.mjs): both languages are in the HTML, <html lang> shows one. */
html[lang='hi'] [data-l='en'], html[lang='en'] [data-l='hi'] { display: none !important; }
.occ-cards { display: grid; gap: var(--s-3); }
.occ-card {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: var(--s-4);
  padding: var(--s-3) var(--s-4) var(--s-3) var(--s-3); border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); color: var(--ink); text-decoration: none;
  transition: transform var(--d-press) var(--ease-out), border-color var(--d-fast) ease, box-shadow var(--d-fast) ease;
}
.occ-card:active { transform: scale(0.98); }
.occ-thumb { width: 54px; height: 96px; border-radius: 10px; object-fit: cover; object-position: top; background: var(--night); box-shadow: 0 6px 14px -8px rgb(43 24 56 / 0.6); }
.occ-body { display: grid; gap: 2px; min-width: 0; }
.occ-body strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.2; }
.occ-body strong :lang(hi) { line-height: 1.35; }
.occ-meta { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.4; }
.occ-left { font-weight: 750; color: var(--sindoor-deep); }
.occ-left::before { content: '·'; margin: 0 6px; font-weight: 400; color: var(--ink-3); }
.occ-count { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-3); }
.occ-go { width: 22px; height: 22px; color: var(--ink-3); transition: transform var(--d-fast) var(--ease-out), color var(--d-fast) ease; }
@media (hover: hover) and (pointer: fine) {
  .occ-card:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); }
  .occ-card:hover .occ-go { transform: translateX(3px); color: var(--sindoor); }
}
/* landing: one swipeable row on phones, a grid on wider screens */
.occ-strip { padding-top: var(--s-6); }
.occ-strip .occ-cards {
  display: flex; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scroll-padding: 0 var(--gutter);
}
.occ-strip .occ-cards::-webkit-scrollbar { display: none; }
.occ-strip .occ-card { flex: none; width: min(300px, 82vw); scroll-snap-align: start; }
.footer-h { margin-top: var(--s-6); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #b6a6bf; }
.footer-h:lang(hi) { letter-spacing: 0.02em; font-size: var(--fs-sm); }
.footer-occ { margin-top: var(--s-2); }
.footer-occ a { font-weight: 550; color: #e9dfee; }
@media (min-width: 760px) {
  .occ-strip .occ-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .occ-strip .occ-card { width: auto; }
  .occ-cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s-4); }
}

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--s-6) var(--s-4); }
  .steps-row li { font-size: var(--fs-md); }
}
@media (min-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s-8); padding-top: var(--s-12); }
  .stage .phone { --sw: 268; }
  .stage-art { width: 480px; height: 480px; margin: -250px 0 0 -240px; }
  .dock { display: none; }
  .create-layout { grid-template-columns: minmax(0, 620px) 360px; justify-content: center; align-items: start; gap: var(--s-12); padding-top: var(--s-8); }
  .create-preview { position: sticky; top: 84px; }
  .submit-bar { position: static; background: none; margin: var(--s-6) 0 0; padding: 0; }
  .submit-bar .btn-icon { display: none; }
  .submit-bar .preview-btn { flex: none; }
  .section { padding: var(--s-20) 0; }
  .faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-12); }
}
@media (min-width: 1024px) {
  .tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-8) var(--s-5); }
  .tile-title { font-size: 21px; }
  .hero-grid { gap: var(--s-16); padding-top: var(--s-6); }
  .stage .phone { --sw: 300; }
  .stage-art { width: 660px; height: 660px; margin: -340px 0 0 -330px; }
  .site-footer .wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--s-6); }
}
@media (max-width: 359px) {
  .phone { --sw: 210; }
}

/* ---------------------------------------------------------------- reduced motion: fades only */
@media (prefers-reduced-motion: reduce) {
  /* One iteration: an infinite loop at 1 ms (spinner, skeleton, pulses) flickers instead of stopping. */
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .swash path { stroke-dashoffset: 0; }
  .live-dot { animation: none; }
  .track-art .eq i { animation: none; transform: scaleY(0.6); }
  .x-inner > * { transform: none; }
}
