/* Fart With Friends homepage: the 1.1.0 App Store header brought to life.
   Self-contained (the legal/support pages keep clay-home.css). Motion is transform/opacity only. */
@font-face { font-family: Outfit; src: url('/assets/fonts/outfit-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('/assets/fonts/public-sans-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light dark;
  --display: Outfit, 'Avenir Next', 'Trebuchet MS', system-ui, sans-serif;
  --font: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --page: #fff4f7;
  --ink: #42202f;
  --berry: #8a3458;
  --muted: #6d4a59;
  --surface: #ffffff;
  --btn: #42202f;
  --btn-ink: #fff7fa;
  --focus: #42202f;
  --shadow: 0 18px 40px -18px #42202f66;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --r-s: 16px; --r-m: 24px; --r-l: 40px; --r-pill: 999px;
  --gutter: clamp(12px, 2.4vw, 28px);
}
/* Tones: one bold pastel per panel, like the App Store set. */
.tone-pink   { --bg: #f9c3d2; --glow: #fff1f4; --t-ink: #42202f; --t-pop: #8a3458; --t-soft: #42202f14; }
.tone-lime   { --bg: #cfe76a; --glow: #e6f59c; --t-ink: #2b3a10; --t-pop: #4f6d12; --t-soft: #2b3a1014; }
.tone-mint   { --bg: #a9decf; --glow: #d2f2e8; --t-ink: #163f38; --t-pop: #1c6a5a; --t-soft: #163f3814; }
.tone-lilac  { --bg: #cbbcf4; --glow: #e6dcff; --t-ink: #2c1e58; --t-pop: #5a3fb3; --t-soft: #2c1e5814; }
.tone-forest { --bg: #1f4a37; --glow: #2c6349; --t-ink: #f2fff0; --t-pop: #bfe96a; --t-soft: #ffffff14; }
.tone-sky    { --bg: #b6d4f5; --glow: #dcebfd; --t-ink: #1a2e56; --t-pop: #2d5ca6; --t-soft: #1a2e5614; }
.tone-butter { --bg: #f8dc80; --glow: #fff0b8; --t-ink: #49330e; --t-pop: #8a5a10; --t-soft: #49330e14; }
.tone-peach  { --bg: #ffc998; --glow: #ffe6cc; --t-ink: #4a2413; --t-pop: #a3441c; --t-soft: #4a241314; }
.tone-plum   { --bg: #5a1f42; --glow: #7c2e5c; --t-ink: #fff4f8; --t-pop: #ffa3c6; --t-soft: #ffffff14; }

@media (prefers-color-scheme: dark) {
  /* Night party: deep plum sky, the same pastels turned into glowing ink. */
  :root { --page: #1c0c18; --ink: #ffeaf1; --berry: #ff9ec2; --muted: #d9b3c4; --surface: #2e1626; --btn: #ffeaf1; --btn-ink: #2b1224; --focus: #ffeaf1; --shadow: 0 18px 40px -18px #000000b3; }
  .tone-pink   { --bg: #3a162c; --glow: #6a2a4c; --t-ink: #ffeaf1; --t-pop: #ff9ec2; --t-soft: #ffffff12; }
  .tone-lime   { --bg: #28340f; --glow: #40521a; --t-ink: #f4fbd4; --t-pop: #cfe76a; --t-soft: #ffffff12; }
  .tone-mint   { --bg: #10342e; --glow: #1b5046; --t-ink: #e2fbf3; --t-pop: #8fe0c9; --t-soft: #ffffff12; }
  .tone-lilac  { --bg: #2a1d52; --glow: #43307c; --t-ink: #f0eaff; --t-pop: #c5b3ff; --t-soft: #ffffff12; }
  .tone-forest { --bg: #12301f; --glow: #1d4a31; --t-ink: #f2fff0; --t-pop: #bfe96a; --t-soft: #ffffff12; }
  .tone-sky    { --bg: #14284a; --glow: #1f3d6e; --t-ink: #e6f1ff; --t-pop: #9ec8ff; --t-soft: #ffffff12; }
  .tone-butter { --bg: #3d2c0b; --glow: #5c4413; --t-ink: #fff5d1; --t-pop: #f8dc80; --t-soft: #ffffff12; }
  .tone-peach  { --bg: #45200f; --glow: #6b3418; --t-ink: #fff0e2; --t-pop: #ffc08a; --t-soft: #ffffff12; }
  .tone-plum   { --bg: #2b1024; --glow: #55203f; --t-ink: #fff4f8; --t-pop: #ffa3c6; --t-soft: #ffffff12; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 520 1.0625rem/1.45 var(--font); -webkit-font-smoothing: antialiased; }
main { overflow-x: hidden; }
@supports (overflow: clip) { main { overflow-x: clip; } }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: 12px; z-index: 50; padding: 12px 18px; border-radius: var(--r-pill); background: var(--btn); color: var(--btn-ink); font-weight: 700; text-decoration: none; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.tone-forest :focus-visible, .tone-plum :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header { position: absolute; inset-inline: 0; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(14px, 3vw, 36px); }
body:has(.invite-banner:not([hidden])) .site-header { position: static; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font: 800 1.0625rem/1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 36px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); color: var(--ink); font-weight: 650; font-size: 1rem; white-space: nowrap; text-decoration: none; transition: background-color .15s, transform .12s var(--out); }
.site-header nav a:hover { background: #ffffff66; }
.site-header nav a:active { transform: scale(.95); }
.site-header .nav-cta { background: var(--btn); color: var(--btn-ink); }
.site-header .nav-cta:hover { background: var(--btn); opacity: .9; }
@media (prefers-color-scheme: dark) { .site-header nav a:hover { background: #ffffff1f; } }
@media (max-width: 20em) { .site-header nav a:not(.nav-cta) { display: none; } }
@media (max-width: 26.25em) { .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

/* ---------- Buttons ---------- */
.download { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 10px 24px; border: 0; border-radius: var(--r-pill); font: 700 1.0625rem/1.15 var(--font); text-align: center; text-decoration: none; cursor: pointer; transition: transform .14s var(--out), box-shadow .2s, opacity .15s; }
.download svg { flex: none; width: 24px; height: 24px; fill: currentColor; }
.download-primary { background: var(--btn); color: var(--btn-ink); box-shadow: 0 10px 22px -10px #42202f99, inset 0 -3px 0 #00000026; }
.download-primary:hover { transform: translateY(-2px) scale(1.02); }
.download-primary:active { transform: scale(.96); box-shadow: 0 4px 10px -6px #42202f99; }
.download-secondary { background: transparent; color: var(--t-ink, var(--ink)); box-shadow: inset 0 0 0 2px currentColor; }
.download-secondary:disabled { opacity: .62; cursor: default; box-shadow: none; outline: 2px dashed currentColor; outline-offset: -2px; }
.icon-button { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: #ffffff8c; color: var(--t-ink, var(--ink)); cursor: pointer; transition: transform .14s var(--out), background-color .15s, opacity .15s; }
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-button:hover { background: #ffffffd9; }
.icon-button:active { transform: scale(.9); }
.icon-button[aria-pressed=true] { background: var(--btn); color: var(--btn-ink); }
.icon-button:disabled, .icon-button[aria-disabled=true] { opacity: .35; cursor: default; }
@media (prefers-color-scheme: dark) { .icon-button { background: #ffffff1f; } .icon-button:hover { background: #ffffff38; } }

/* ---------- Tappable Toots ---------- */
.c, .peek, .hero-toots, .big-toots, .crowd-t { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 42%; touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none; }
.c img, .peek img, .hero-toots img, .big-toots img, .crowd-t img { width: 100%; filter: drop-shadow(0 14px 16px #42202f40); transition: transform .25s var(--spring); will-change: transform; }
.bob { display: block; }
@media (hover: hover) {
  .c:hover img, .peek:hover img, .crowd-t:hover img, .big-toots:hover img, .hero-toots:hover img { transform: scale(1.07) rotate(-3deg); }
}
.c:active img, .peek:active img, .crowd-t:active img, .big-toots:active img { transform: scale(.9, .84); transition-duration: .09s; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--t-ink); background: radial-gradient(120% 90% at var(--cx, 50%) var(--cy, 46%), var(--glow) 0, color-mix(in srgb, var(--glow) 45%, var(--bg)) 38%, var(--bg) 100%); --px: 0; --py: 0; --sy: 0; }
.rings { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-radial-gradient(circle at var(--cx, 50%) var(--cy, 46%), transparent 0 108px, var(--t-soft) 108px 114px); opacity: .7; }
.rings i { position: absolute; left: var(--cx, 50%); top: var(--cy, 46%); width: 340px; height: 340px; margin: -170px 0 0 -170px; border: 5px solid var(--t-pop); border-radius: 50%; opacity: 0; }
.hero-inner { display: grid; gap: 4px 24px; width: min(1000px, 100% - 32px); margin-inline: auto; padding-block: max(84px, 5.25rem) 36px; text-align: center; justify-items: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; padding: 7px 14px; border-radius: var(--r-pill); background: var(--t-ink); color: var(--bg); font: 700 .8125rem/1.2 var(--font); letter-spacing: .02em; rotate: -2deg; }
h1 { font: 850 min(clamp(3.5rem, 9.4vw, 7.4rem), 17vw)/.93 var(--display); letter-spacing: -.045em; }
h1 span, h2 span, h3 span { display: block; }
.pop { color: var(--t-pop); }
.hero-sub { margin-top: 16px; font: 600 min(clamp(1.2rem, 2.4vw, 1.75rem), 6.4vw)/1.2 var(--font); letter-spacing: -.015em; }
.exchange-stage { position: relative; width: 100%; height: min(74vw, 330px); margin-block: 6px 2px; }
.hero-toots { position: absolute; inset-inline-start: 50%; top: 50%; width: min(56vw, 250px); margin: max(-30vw, -134px) 0 0 0; translate: -50% 0; z-index: 3; }
[dir=rtl] .hero-toots { translate: 50% 0; }
.hero-toots img { filter: drop-shadow(0 22px 24px #42202f4d); }
.hint { position: absolute; z-index: 4; inset-inline-end: 2%; top: 6%; padding: 7px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface); color: var(--ink); font: 800 .875rem/1 var(--display); box-shadow: var(--shadow); rotate: 8deg; pointer-events: none; transition: opacity .2s, scale .25s var(--spring); }
.hero.is-played .hint { opacity: 0; scale: .6; }
.c { position: absolute; z-index: 2; width: var(--w); transform: translate3d(calc(var(--px) * var(--d) * 1px), calc((var(--py) * var(--d) - var(--sy) * var(--d) * 5) * 1px), 0) rotate(var(--r)); }
.c-theo  { --w: 36vw; inset-inline-start: -15vw; top: 26%; }
.c-priya { --w: 28vw; inset-inline-end: -9vw; top: 4%; }
.c-kofi  { --w: 34vw; inset-inline-end: -13vw; bottom: -4%; }
.c-maya, .c-king, .c-laugh { display: none; }
.hero-cta { display: grid; gap: 14px; justify-items: center; width: 100%; }
.download-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.hero-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; }
.availability { font-weight: 650; font-size: 1rem; }
.tools { display: flex; align-items: center; gap: 8px; }
.counter { display: inline-flex; align-items: baseline; gap: 5px; min-height: 48px; padding: 12px 16px; border-radius: var(--r-pill); background: #ffffff8c; font-weight: 650; font-size: .9375rem; line-height: 1.5; }
.counter b { font: 850 1.25rem/1 var(--display); font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) { .counter { background: #ffffff1f; } }

@media (min-width: 900px) {
  .hero { --cx: 68%; --cy: 50%; }
  .hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: 'copy stage' 'cta stage'; align-content: center; align-items: center; justify-items: start; width: min(1020px, 76vw); min-height: clamp(620px, 100svh, 860px); padding-block: 110px 90px; text-align: start; }
  .hero-copy { grid-area: copy; align-self: end; }
  .hero-cta { grid-area: cta; align-self: start; justify-items: start; margin-top: 26px; }
  .download-actions, .hero-tools { justify-content: flex-start; }
  .exchange-stage { grid-area: stage; position: static; height: auto; align-self: center; justify-self: center; width: min(100%, 400px); }
  .hero-toots { position: relative; inset: auto; display: block; width: 100%; margin: 0; translate: none; rotate: 4deg; }
  [dir=rtl] .hero-toots { translate: none; }
  .hint { font-size: 1rem; }
  .c-maya, .c-king, .c-laugh { display: block; }
  .c-theo  { --w: min(21vw, 340px); inset-inline-start: -7.5vw; top: 16%; }
  .c-priya { --w: min(19vw, 300px); inset-inline-end: -5vw; top: 4.6vw; }
  .c-kofi  { --w: min(22vw, 350px); inset-inline-end: -6vw; bottom: -5vw; }
  .c-maya  { --w: min(14vw, 220px); inset-inline-start: 1.5vw; bottom: -4vw; z-index: 1; }
  .c-king  { --w: min(12vw, 190px); inset-inline-start: 36vw; top: -3.5vw; z-index: 1; }
  .c-laugh { --w: min(13vw, 200px); inset-inline-start: 55vw; bottom: -2.5vw; z-index: 1; }
}

/* ---------- Ticker ---------- */
.ticker { position: relative; z-index: 2; margin: -14px -2vw 0; padding-block: 12px; background: var(--btn); color: var(--btn-ink); rotate: -1.4deg; overflow: hidden; box-shadow: 0 10px 24px -14px #000000a6; }
.ticker-track { display: flex; width: max-content; }
.ticker-track > div { display: flex; align-items: center; flex: none; }
.ticker span { padding-inline: 18px; font: 850 clamp(1.25rem, 3vw, 1.9rem)/1 var(--display); letter-spacing: -.02em; }
.ticker span:nth-child(4n+1) { color: #f9a8c4; } .ticker span:nth-child(4n+3) { color: #cfe76a; }
.ticker i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: currentColor; opacity: .45; }
@media (prefers-color-scheme: dark) { .ticker { background: #ff9ec2; color: #2b1224; } .ticker span:nth-child(4n+1) { color: #5a1f42; } .ticker span:nth-child(4n+3) { color: #28340f; } }

/* ---------- Tour: the App Store panels, swipeable ---------- */
.tour { padding-block: clamp(40px, 6vw, 72px) 8px; }
.tour-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.tour-head h2 { font: 850 min(clamp(1.9rem, 4.4vw, 3rem), 9vw)/1 var(--display); letter-spacing: -.04em; color: var(--ink); }
.tour-nav { display: flex; gap: 8px; }
.tour-nav .icon-button { background: var(--surface); box-shadow: var(--shadow); }
[dir=rtl] .tour-nav svg { scale: -1 1; }
.tour-track { display: flex; gap: clamp(12px, 1.6vw, 20px); margin: 0; padding: 22px max(var(--gutter), (100% - 1240px) / 2) 30px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), (100% - 1240px) / 2); scrollbar-width: none; border-radius: var(--r-s); }
.tour-track::-webkit-scrollbar { display: none; }
.card { container-type: inline-size; position: relative; flex: none; display: flex; flex-direction: column; width: clamp(236px, 74vw, 300px); min-height: 520px; padding: 24px 22px 0; overflow: hidden; border-radius: var(--r-l); background: radial-gradient(120% 70% at 50% 100%, var(--glow), var(--bg) 70%); color: var(--t-ink); scroll-snap-align: start; box-shadow: var(--shadow); }
.card h3 { font: 850 min(1.95rem, 11.6cqi)/.98 var(--display); letter-spacing: -.04em; }
.card p { margin-top: 10px; font-weight: 560; font-size: min(.9375rem, 7cqi); line-height: 1.3; min-height: 2.6em; }
.card-stage { position: relative; flex: 1; min-height: 300px; margin-top: 18px; }
.phone { position: absolute; inset-inline: 9% 9%; top: 0; padding: 7px; border-radius: 38px 38px 0 0; background: #1d1218; box-shadow: 0 20px 40px -12px #00000080; transition: transform .5s var(--out); }
.phone img { width: 100%; border-radius: 31px 31px 0 0; background: #faf7f0; }
.peek { position: absolute; z-index: 2; inset-inline-end: -9%; top: -34px; width: 43%; rotate: 8deg; }
@media (hover: hover) { .card:hover .phone { transform: translateY(-10px); } }

/* ---------- Play panels ---------- */
.play { display: grid; gap: var(--gutter); width: min(1240px, 100% - 2 * var(--gutter)); margin: clamp(20px, 4vw, 44px) auto 0; }
.panel > * { min-width: 0; }
.panel { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 18px; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-l); background: radial-gradient(110% 80% at 70% 60%, var(--glow), var(--bg) 72%); color: var(--t-ink); }
.panel h2, .finale h2 { font: 850 min(clamp(2.4rem, 5.4vw, 4.2rem), 12.5vw)/.95 var(--display); letter-spacing: -.045em; }
.panel-copy > p { margin-top: 12px; font: 600 min(clamp(1.0625rem, 1.7vw, 1.3rem), 5.6vw)/1.25 var(--font); }
.halo { position: absolute; z-index: -1; inset: 50% auto auto 50%; width: 130%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 15%, var(--t-soft) 15% 16.5%); }
.big-toots { position: relative; display: block; width: min(100%, 330px); margin-inline: auto; }
.fx-stage, .wardrobe-stage { position: relative; display: grid; place-items: center; min-height: 220px; }

/* Soundboard */
.pads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.25rem), 1fr)); gap: 10px; margin-top: 22px; max-width: 33rem; }
.pad { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 16px 8px 8px; border: 0; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font: 750 1rem/1.1 var(--font); text-align: start; cursor: pointer; box-shadow: 0 5px 0 var(--t-pop), 0 14px 22px -14px #00000080; transition: transform .1s var(--out), box-shadow .1s; touch-action: manipulation; }
.pad span { min-width: 0; overflow-wrap: anywhere; }
.pad b { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); font-size: 1.35rem; font-weight: 400; }
.pad:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--t-pop), 0 16px 24px -14px #00000080; }
.pad:active, .pad.is-on { transform: translateY(5px); box-shadow: 0 0 0 var(--t-pop), 0 4px 8px -6px #00000080; }
.pad.is-on { background: var(--t-ink); color: var(--bg); }

/* Wardrobe */
.looks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.look { display: grid; place-items: center; aspect-ratio: 1; min-width: 44px; min-height: 44px; padding: 10%; border: 0; border-radius: var(--r-m); background: #ffffff73; cursor: pointer; transition: transform .14s var(--out), background-color .15s; touch-action: manipulation; }
.look img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s var(--spring); }
.look:hover img { transform: scale(1.12) rotate(-5deg); }
.look:active { transform: scale(.9); }
.look[aria-pressed=true] { background: var(--surface); box-shadow: inset 0 0 0 3px var(--t-pop), 0 10px 18px -12px #000000a6; }
@media (prefers-color-scheme: dark) { .look { background: #ffffff1a; } .look[aria-pressed=true] { background: #ffffff33; } }

/* Jar */
.jars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; position: relative; z-index: 1; }
.jar { display: grid; gap: 10px; justify-items: center; padding: 6px 2px; border: 0; border-radius: var(--r-m); background: none; color: inherit; cursor: pointer; touch-action: manipulation; }
.jar strong { font: 700 min(.9375rem, 3.6vw)/1.2 var(--font); text-wrap: balance; overflow-wrap: anywhere; }
.jar-art { position: relative; display: block; width: min(100%, 120px); aspect-ratio: 5 / 6; transition: transform .2s var(--spring); will-change: transform; }
.jar:hover .jar-art { transform: rotate(-4deg) scale(1.04); }
.jar .lid { position: absolute; z-index: 2; inset: 0 14% auto; height: 15%; border-radius: 10px; background: var(--jar-lid); box-shadow: inset 0 -4px 0 #00000022; }
.jar .glass { position: absolute; inset: 12% 4% 0; overflow: hidden; border: 4px solid #ffffffd9; border-radius: 22% 22% 26% 26% / 18% 18% 22% 22%; background: linear-gradient(120deg, #ffffffb3, #ffffff40 40%, #ffffff80); box-shadow: 0 14px 20px -12px #00000073; }
.jar .gas { position: absolute; inset: 18% -10% -10%; border-radius: 50% 50% 0 0; background: radial-gradient(60% 60% at 30% 40%, #ffffffcc, transparent 70%), radial-gradient(70% 70% at 70% 60%, var(--jar-gas), transparent 75%), var(--jar-gas); opacity: .85; }
.jar-pink { --jar-lid: #ef8fb0; --jar-gas: #f7a9c4; } .jar-blue { --jar-lid: #6fb1e6; --jar-gas: #9fd0f5; } .jar-lilac { --jar-lid: #9c84e6; --jar-gas: #c0aef7; }
.jar-peek { position: relative; inset: auto; display: block; width: min(46%, 200px); margin: 0 auto -20%; rotate: -6deg; top: 0; }

@media (min-width: 900px) {
  .play { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-fx { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; min-height: 460px; }
  .panel-fx .big-toots { width: min(100%, 380px); }
  .looks { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .panel-wardrobe, .panel-jar { align-content: space-between; }
  .jar-art { width: min(100%, 140px); }
}

/* ---------- Finale ---------- */
.finale { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; width: min(1240px, 100% - 2 * var(--gutter)); margin: var(--gutter) auto 0; padding: clamp(44px, 7vw, 84px) 16px 0; border-radius: var(--r-l); background: radial-gradient(90% 80% at 50% 100%, var(--glow), var(--bg) 75%); color: var(--t-ink); text-align: center; --cy: 100%; }
.finale-copy { display: grid; justify-items: center; gap: 20px; }
.finale .download-primary { background: #fff4f8; color: #42202f; }
.fine { font-weight: 600; font-size: .9375rem; opacity: .86; }
.crowd { display: flex; justify-content: center; align-items: flex-end; width: min(100%, 900px); margin-top: clamp(10px, 3vw, 28px); margin-bottom: clamp(-60px, -5vw, -6px); }
.crowd-t { flex: 1 1 0; min-width: 0; max-width: 210px; margin-inline: -2%; }
.crowd-t:nth-child(odd) { rotate: -6deg; } .crowd-t:nth-child(even) { rotate: 5deg; translate: 0 12%; }
.crowd-t:nth-child(3) { z-index: 1; scale: 1.15; rotate: 2deg; }

/* ---------- Invite banner, note, footer, sticky ---------- */
.invite-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; width: min(900px, 100% - 2 * var(--gutter)); margin: 8px auto 24px; padding: 24px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); }
.invite-banner > div:first-child { flex: 1 1 320px; }
.invite-banner h2 { margin-bottom: 8px; font: 850 1.75rem/1.1 var(--display); letter-spacing: -.03em; }
.invite-banner p { max-width: 65ch; color: var(--muted); }
.invite-banner #invite-status:empty { display: none; }
.invite-banner #invite-status { margin-top: 8px; color: var(--ink); font-weight: 650; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.invite-banner .download-secondary { color: var(--ink); }
.invite-banner .invite-fallback { flex-basis: 100%; font-size: .9375rem; }
@media (max-width: 600px) { .invite-actions, .invite-actions .download { width: 100%; } }
.faq { padding: 28px 16px 6px; text-align: center; color: var(--muted); font-size: .9375rem; }
.site-footer { padding: 6px 16px calc(96px + env(safe-area-inset-bottom)); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); color: var(--muted); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.sticky-cta { display: none; }
@media (max-width: 899px) {
  .sticky-cta { position: fixed; inset-inline: 16px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 15; display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: var(--r-pill); background: var(--btn); color: var(--btn-ink); box-shadow: 0 10px 28px #20242152; font: 700 1.0625rem/1 var(--font); text-decoration: none; }
}
@media (min-width: 900px) { .site-footer { padding-bottom: 40px; } }

/* ---------- Tap effects (fixed overlay; transform/opacity only) ---------- */
.fx-layer { position: fixed; inset: 0; z-index: 30; overflow: hidden; pointer-events: none; contain: strict; }
.fx-puff, .fx-ring, .fx-word { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform, opacity; }
.fx-puff { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ffffffe6, var(--puff, #cfe76a) 58%, color-mix(in srgb, var(--puff, #cfe76a) 78%, #42202f)); animation: fx-puff var(--t, 800ms) var(--out) both; }
.fx-ring { width: 120px; height: 120px; margin: -60px 0 0 -60px; border: 6px solid var(--puff, #cfe76a); border-radius: 50%; animation: fx-ring 620ms var(--out) both; }
.fx-word { padding: 6px 14px; border-radius: 16px; background: var(--btn); color: var(--btn-ink); font: 850 1.5rem/1 var(--display); letter-spacing: -.02em; white-space: nowrap; animation: fx-word 900ms var(--spring) both; }
@keyframes fx-puff { 0% { opacity: 0; transform: translate3d(var(--x), var(--y), 0) scale(.2); } 18% { opacity: .95; } 100% { opacity: 0; transform: translate3d(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy)), 0) scale(var(--s, 1.6)); } }
@keyframes fx-ring { 0% { opacity: .9; transform: translate3d(var(--x), var(--y), 0) scale(.3); } 100% { opacity: 0; transform: translate3d(var(--x), var(--y), 0) scale(2.6); } }
@keyframes fx-word { 0% { opacity: 0; transform: translate3d(var(--x), var(--y), 0) translate(-50%, -50%) rotate(var(--rot)) scale(.3); } 22% { opacity: 1; transform: translate3d(var(--x), calc(var(--y) - 46px), 0) translate(-50%, -50%) rotate(var(--rot)) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate3d(var(--x), calc(var(--y) - 96px), 0) translate(-50%, -50%) rotate(var(--rot)) scale(.9); } }
/* Still feedback when motion is off: a label that appears and disappears, no movement. */
.fx-word.is-still { animation: none; transform: translate3d(var(--x), calc(var(--y) - 46px), 0) translate(-50%, -50%); }
/* clay-home.js "tap anywhere" puff */
.tap-cloud { position: fixed; z-index: 20; width: 150px; height: 105px; margin: -52px 0 0 -75px; pointer-events: none; background: url('/assets/tap-cloud.webp') center / contain no-repeat; animation: tap-cloud-rise 850ms var(--out) both; }
@keyframes tap-cloud-rise { 0% { opacity: 0; transform: translateY(8px) scale(.45) rotate(-8deg); } 20% { opacity: .95; } 65% { opacity: .8; } 100% { opacity: 0; transform: translateY(-65px) scale(1.5) rotate(8deg); } }

/* ---------- Ambient motion: only with motion allowed, only while on screen ---------- */
@media (prefers-reduced-motion: no-preference) {
  .bob { animation: bob var(--bob, 4.6s) ease-in-out infinite alternate; }
  .c:nth-of-type(2n) .bob, .crowd-t:nth-child(2n) .bob { animation-duration: 5.4s; animation-delay: -1.7s; }
  .c:nth-of-type(3n) .bob, .crowd-t:nth-child(3n) .bob { animation-duration: 3.9s; animation-delay: -2.6s; }
  .hero-toots .bob { animation-name: bob-hero; animation-duration: 3.2s; }
  .rings i { animation: ripple 4.8s linear infinite; }
  .rings i:nth-child(2) { animation-delay: -1.6s; } .rings i:nth-child(3) { animation-delay: -3.2s; }
  .ticker-track { animation: ticker 26s linear infinite; }
  [dir=rtl] .ticker-track { animation-direction: reverse; }
  .halo { animation: halo 9s ease-in-out infinite alternate; }
  .hint { animation: hint 1.8s ease-in-out infinite alternate; }
  .js [data-ambient]:not(.is-live) * { animation-play-state: paused; }
  /* Entrances */
  .hero-copy > *, .hero-cta { animation: rise .7s var(--out) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; } .hero-copy > :nth-child(3) { animation-delay: .12s; } .hero-cta { animation-delay: .2s; }
  .hero-toots, .c { animation: pop-in .7s var(--spring) both; }
  .hero-toots { animation-delay: .1s; } .c-theo { animation-delay: .25s; } .c-priya { animation-delay: .32s; } .c-kofi { animation-delay: .39s; } .c-maya { animation-delay: .46s; } .c-king { animation-delay: .53s; } .c-laugh { animation-delay: .6s; }
  .js [data-reveal] { opacity: 0; transform: translateY(36px) scale(.95); }
  .js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .5s var(--out), transform .7s var(--spring); transition-delay: var(--stagger, 0ms); }
  .js [data-reveal] .peek { scale: 0; transition: scale .5s var(--spring) .35s; }
  .js [data-reveal].is-in .peek { scale: 1; }
  .sticky-cta { animation: rise .26s var(--out) both; }
}
@keyframes bob { from { transform: translateY(-5px) rotate(-1.5deg); } to { transform: translateY(7px) rotate(1.5deg); } }
@keyframes bob-hero { from { transform: translateY(-8px) scale(1.015, .985); } to { transform: translateY(6px) scale(.985, 1.015); } }
@keyframes ripple { 0% { opacity: 0; transform: scale(.6); } 12% { opacity: .5; } 100% { opacity: 0; transform: scale(4.2); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes halo { from { transform: scale(.94) rotate(0); } to { transform: scale(1.06) rotate(8deg); } }
@keyframes hint { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes pop-in { from { opacity: 0; scale: .3; } }

/* Motion off (system setting or the pause button): nothing moves; taps still answer. */
.motion-off *, .motion-off *::before, .motion-off *::after { animation: none !important; transition: none !important; }
.motion-off .c { transform: rotate(var(--r)); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .c { transform: rotate(var(--r)); }
  .tap-cloud { opacity: .6; }
}
@media (forced-colors: active) { .download, .pad, .look, .icon-button { border: 1px solid ButtonText; } }
