/* scoopii.app: Chill Pals marketing site. One stylesheet for every page, the share page included.
   Tokens from design/chill-pals/CHILL_STYLE.md. Mobile first: base styles are for 375 px, then 640 and 980. */

@font-face { font-family: "Fredoka"; src: url("/assets/fonts/Fredoka-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/Fredoka-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/Fredoka-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --ink: #2A2140;
  --ink-soft: #3A2F55;
  --body: #3E3558;
  --muted: #6E6585;
  --ground: #FFF7EE;
  --ground-2: #FFEFE2;
  --edge: #F0E4D6;
  --rule: #EFE4D6;
  --pop: #F0454B;
  --pop-edge: #C0373C;
  --pop-ink: #C2303A;
  --pop-tint: #FFE9E7;
  --orange: #FFA62B;
  --orange-dark: #D96A00;
  --mint: #8FD9B6;   --mint-edge: #69BE95;   --mint-ink: #1F4A36;
  --yellow: #FFC857; --yellow-edge: #E3A82F; --yellow-ink: #5B4520;
  --pink: #FF9AA8;   --pink-edge: #E57A8A;   --pink-ink: #6B2A36;
  --sky: #8EC5FF;    --sky-edge: #6AA6E8;    --sky-ink: #1E3F66;
  --mango: #FFB547;  --mango-edge: #E3921A;  --mango-ink: #5C3A08;
  --peach: #FFB4A2;  --peach-edge: #E8907B;  --peach-ink: #5A2E25;
  --ice: #2F66D6;    --ice-edge: #2452B0;
  --draft: #FFF0C4;
  --draft-ink: #5B4520;
  --glass: rgba(255,255,255,0.45);
  --glass-border: rgba(255,255,255,0.8);
  --font: "Fredoka", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1140px;
  --gutter: 16px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-weight: 500; font-size: 17px; line-height: 1.45; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink-soft); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 22px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }
[hidden] { display: none !important; }

.wrap { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; height: 44px; color: var(--ink); text-decoration: none; font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -0.8px; }
.wordmark:hover { color: var(--ink); }
.wordmark .o1 { color: var(--pop); }
.wordmark .o2 { color: var(--orange-dark); }

/* ---------- Buttons ---------- */
.btn-store { min-height: 60px; padding: 0 26px 0 22px; border-radius: 30px; background: #000; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; line-height: 1.1; white-space: nowrap; box-shadow: 0 5px 0 rgba(0,0,0,0.28); transition: transform .12s, box-shadow .12s; }
.btn-store svg { flex: none; }
.btn-store:hover { color: #fff; background: #17121F; }
.btn-store.light { background: #fff; color: var(--ink); box-shadow: 0 5px 0 rgba(0,0,0,0.35); }
.btn-store.light:hover { color: var(--ink); background: var(--ground); }
.btn-pop { min-height: 58px; padding: 0 24px; border-radius: 29px; background: var(--pop); color: #fff; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 19px; font-weight: 700; line-height: 1.15; text-align: center; box-shadow: 0 6px 0 var(--pop-edge); border: 0; width: 100%; transition: transform .12s, box-shadow .12s; }
.btn-pop:hover { color: #fff; background: #E63A40; }
.btn-store:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,0.28); }
.btn-pop:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--pop-edge); }
.btn-dark { min-height: 44px; padding: 0 18px; border-radius: 22px; background: var(--ink); color: #fff; text-decoration: none; display: inline-flex; align-items: center; font-size: 15px; font-weight: 700; white-space: nowrap; box-shadow: 0 3px 0 #120E1D; }
.btn-dark:hover { color: #fff; background: var(--ink-soft); }
.btn-glass { min-height: 52px; padding: 0 18px; border-radius: 26px; color: var(--ink); text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 17px; font-weight: 500; width: 100%; background: rgba(255,255,255,0.42); }
.btn-glass strong { font-weight: 700; }
.btn-glass:hover { background: rgba(255,255,255,0.62); color: var(--ink); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,247,238,0.84); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid rgba(42,33,64,0.06); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 64px; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.top-nav { display: flex; align-items: center; gap: 2px; }
.top-link { display: none; min-height: 44px; padding: 0 12px; align-items: center; text-decoration: none; font-size: 16px; font-weight: 600; border-radius: 22px; }
.top-link:hover { background: rgba(42,33,64,0.05); }
.top-link[aria-current="page"] { color: var(--pop-ink); font-weight: 700; }
.lang { min-height: 44px; min-width: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 15px; font-weight: 700; border-radius: 22px; }
.lang:hover { background: rgba(42,33,64,0.06); }
.top.on-stage { position: relative; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; }

/* ---------- Shared bits ---------- */
.kicker { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 17px; background: #fff; box-shadow: 0 3px 0 var(--edge); font-size: 15px; font-weight: 600; color: var(--ink); }
.kicker svg { flex: none; }
.sec { position: relative; padding: 72px 0; }
.sec-head { max-width: 720px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.h2 { margin-top: 14px; font-size: clamp(34px, 4.6vw + 17px, 54px); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.sec-sub { margin-top: 14px; font-size: 19px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ticks li { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 600; }
.ticks li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 11px; background: #DDF3E4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323744B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 17px; font-size: 15px; font-weight: 600; }

/* Pals floating on halos ("orbs") */
.orb { position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; border-radius: 50%; background: var(--c); }
.orb::before { content: ""; position: absolute; inset: 13%; border-radius: 50%; background: rgba(255,255,255,0.24); }
.orb img { position: absolute; left: 6%; top: 2%; width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(42,33,64,0.14)); animation: bob 5.5s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
.spark { position: absolute; color: #FFC857; animation: twinkle 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
.spark.w { color: #fff; }

/* Phone frame around App Store screenshots */
.phone { position: relative; width: min(270px, 70vw); aspect-ratio: 440 / 956; padding: 9px; border-radius: 46px; background: #1C1729; box-shadow: 0 0 0 4px rgba(255,255,255,0.65), 0 30px 60px -18px rgba(42,33,64,0.45); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: var(--ground); }

/* ---------- Home: hero ---------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 56px; }
.hero-bg i { position: absolute; border-radius: 50%; }
.hero-bg .b1 { right: -220px; top: -260px; width: 560px; height: 560px; background: var(--ground-2); }
.hero-bg .b2 { left: -140px; bottom: -120px; width: 320px; height: 320px; background: #FFF0DC; }
.hero-grid { display: grid; gap: 28px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-badge { display: flex; align-items: center; gap: 12px; }
.app-icon { width: 60px; height: 60px; border-radius: 15px; box-shadow: 0 4px 0 rgba(42,33,64,0.12), 0 10px 22px -8px rgba(47,102,214,0.45); }
.hero h1 { margin-top: 20px; font-size: clamp(44px, 7.4vw + 16px, 80px); font-weight: 700; line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; }
.hero .lead { margin-top: 18px; max-width: 30ch; font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--body); text-wrap: pretty; }
.hero .cta { margin-top: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero .works { margin-top: 16px; font-size: 15px; color: var(--muted); }
.parade { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1 / 0.86; margin: 0 auto; }
.parade .bubble { display: none; }

/* ---------- Home: ideas ---------- */
.ideas { list-style: none; margin-top: 32px; display: grid; gap: 16px; }
.idea { position: relative; display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 4px 14px; padding: 14px 16px 14px 12px; border-radius: 28px; background: var(--c); box-shadow: 0 6px 0 var(--e); color: var(--ink); }
.idea-art { grid-row: span 3; position: relative; width: 104px; aspect-ratio: 1; }
.idea-art::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.idea-art img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(42,33,64,0.14)); }
.idea h3 { align-self: end; font-size: 20px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.idea p { font-size: 15px; line-height: 1.35; color: var(--t); }
.idea .eg { justify-self: start; align-self: start; margin-top: 4px; min-height: 30px; padding: 4px 12px; border-radius: 15px; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; line-height: 1.15; color: var(--ink); }
.idea .eg span { color: var(--t); }

/* ---------- Home: split sections (copy beside a phone or mock) ---------- */
.split { display: grid; gap: 40px; align-items: center; }
.split-art { position: relative; display: flex; justify-content: center; padding: 12px 0 20px; }
.split-art .phone { transform: rotate(-3deg); }
.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 14px 6px 6px; border-radius: 24px; background: rgba(255,255,255,0.9); font-size: 14px; font-weight: 700; line-height: 1.15; box-shadow: 0 12px 30px -10px rgba(42,33,64,0.35); }
.float .av { width: 36px; height: 36px; flex: none; border-radius: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.float .av img { width: 30px; height: 30px; object-fit: contain; }
.float small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.float { display: none; }
.float.f1 { left: 0; top: 16%; }
.float.f2 { right: 0; bottom: 14%; }

.feat { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.feat li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 24px; background: #fff; box-shadow: 0 5px 0 var(--edge); }
.feat .ic { width: 44px; height: 44px; flex: none; border-radius: 22px; display: flex; align-items: center; justify-content: center; }
.feat h3 { font-size: 18px; font-weight: 700; line-height: 1.2; }
.feat p { margin-top: 2px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.ic-green { background: #DDF3E4; color: #23744B; } .ic-blue { background: #E3ECFF; color: #1F5FA8; } .ic-yellow { background: #FFF0C4; color: #8A6100; }
.ic-pink { background: #FFE1DC; color: var(--pop-ink); } .ic-ice { background: #E6F4FF; color: var(--ice); }
.tag-free { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 17px; background: #DDF3E4; color: #1C6B43; font-size: 15px; font-weight: 700; }

/* ---------- Home: colour bands ---------- */
.band { position: relative; overflow: hidden; margin: 0 8px; padding: 64px 0; border-radius: 36px; }
.band-deco i { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.16); }
.band-deco .d1 { width: 420px; height: 420px; right: -160px; top: -140px; }
.band-deco .d2 { width: 260px; height: 260px; right: -40px; top: -20px; background: rgba(255,255,255,0.14); }
.band-deco .d3 { width: 300px; height: 300px; left: -150px; bottom: -120px; background: rgba(255,255,255,0.12); }
.band .sec-sub { color: var(--band-ink); }
.band .kicker { background: rgba(255,255,255,0.55); box-shadow: inset 0 1px 0 rgba(255,255,255,0.9); }
.band-sky { background: var(--sky); --band-ink: var(--sky-ink); }
.band-mint { background: var(--mint); --band-ink: var(--mint-ink); }

/* AI chef */
.chat { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.say { align-self: flex-end; max-width: 88%; padding: 11px 16px; border-radius: 22px 22px 6px 22px; background: #fff; font-size: 16px; font-weight: 600; line-height: 1.3; box-shadow: 0 4px 0 rgba(30,63,102,0.18); }
.say + .say { margin-right: 18px; }
.reply { margin-top: 4px; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 24px; max-width: 92%; }
.reply .av { width: 64px; height: 64px; flex: none; border-radius: 32px; background: var(--yellow); display: flex; align-items: center; justify-content: center; }
.reply .av img { width: 56px; height: 56px; object-fit: contain; }
.reply b { display: block; font-size: 18px; font-weight: 700; line-height: 1.15; }
.reply .meta { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--sky-ink); }
.reply .new { display: inline-flex; margin-bottom: 4px; padding: 2px 10px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.change { margin-top: 28px; }
.change h3 { font-size: 22px; font-weight: 700; line-height: 1.15; }
.change p { margin-top: 6px; font-size: 16px; color: var(--sky-ink); }
.pills { list-style: none; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { min-height: 40px; padding: 0 16px; border-radius: 20px; display: inline-flex; align-items: center; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; }
.money { margin-top: 28px; padding: 18px 20px; border-radius: 28px; display: grid; gap: 6px; }
.money .big { font-size: 24px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.money p { font-size: 16px; line-height: 1.45; color: var(--sky-ink); }
.money .ticks { margin-top: 6px; }
.fine { margin-top: 14px; font-size: 14px; line-height: 1.4; color: var(--sky-ink); }

/* Pal album */
.album { list-style: none; margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 10px; }
.album li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.album .st { position: relative; width: 100%; max-width: 132px; aspect-ratio: 1; border-radius: 50%; background: var(--c); transform: rotate(var(--r, 0deg)); box-shadow: 0 5px 0 var(--e); }
.album .st img { position: absolute; left: 7%; top: 5%; width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 6px 6px rgba(42,33,64,0.18)); }
.album span { font-size: 14px; font-weight: 600; line-height: 1.2; }
.album-note { margin: 34px auto 0; max-width: 540px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 26px; background: #fff; box-shadow: 0 5px 0 var(--edge); font-size: 16px; font-weight: 600; line-height: 1.35; }
.album-note .spk { width: 44px; height: 44px; flex: none; border-radius: 22px; background: var(--pop); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 0 var(--pop-edge); }

/* Share mock (a small copy of the share page) */
.share-mock { position: relative; width: min(300px, 82vw); margin: 0 auto 24px; padding: 16px 16px 18px; border-radius: 34px; background: var(--peach); box-shadow: 0 0 0 4px rgba(255,255,255,0.6), 0 30px 60px -20px rgba(31,74,54,0.55); transform: rotate(2.5deg); }
.share-mock .sm-top { display: flex; align-items: center; justify-content: space-between; }
.share-mock .sm-word { font-size: 20px; font-weight: 700; letter-spacing: -0.6px; }
.share-mock .sm-word .o1 { color: var(--pop-ink); } .share-mock .sm-word .o2 { color: var(--orange-dark); }
.share-mock .sm-by { height: 30px; padding: 0 12px 0 4px; border-radius: 15px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.share-mock .sm-by i { width: 22px; height: 22px; border-radius: 11px; background: #FFB4D0; }
.share-mock .sm-stage { position: relative; height: 150px; }
.share-mock .sm-stage::before { content: ""; position: absolute; right: 0; top: 2px; width: 146px; height: 146px; border-radius: 50%; background: rgba(255,255,255,0.22); }
.share-mock .sm-stage img { position: absolute; right: 4px; top: 4px; width: 140px; height: 140px; object-fit: contain; }
.share-mock .sm-stage p { position: absolute; left: 0; top: 30px; width: 128px; padding: 9px 11px; border-radius: 18px; font-size: 13px; font-weight: 600; line-height: 1.22; }
.share-mock .sm-title { font-size: 24px; font-weight: 700; line-height: 1.02; letter-spacing: -0.6px; }
.share-mock .sm-facts { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 0; border-radius: 18px; text-align: center; font-size: 11px; color: var(--peach-ink); }
.share-mock .sm-facts b { display: block; font-size: 15px; color: var(--ink); }
.share-mock .sm-btn { margin-top: 12px; height: 46px; border-radius: 23px; background: var(--pop); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; box-shadow: 0 4px 0 var(--pop-edge); }
.share-mock .sm-link { position: absolute; left: -14px; bottom: -24px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 10px; border-radius: 22px; background: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 12px 26px -10px rgba(31,74,54,0.5); transform: rotate(-2.5deg); }
.share-mock .sm-link svg { color: var(--pop); }
.band-mint .ticks { margin-top: 24px; flex-direction: column; }
.band-mint .ticks li { color: var(--ink); align-items: flex-start; }
.band-mint .ticks li::before { background-color: rgba(255,255,255,0.75); }

/* Kids */
.kids { display: grid; gap: 18px; align-items: center; padding: 24px 20px 26px; border-radius: 34px; background: #fff; box-shadow: 0 6px 0 var(--edge); }
.kids-art { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.kids-art::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--yellow); }
.kids-art img { position: absolute; left: 50%; bottom: 4px; width: 116px; height: 160px; object-fit: contain; transform: translateX(-50%); }
.kids .h2 { margin-top: 0; font-size: clamp(30px, 3.4vw + 16px, 42px); }
.kids p { margin-top: 10px; font-size: 17px; line-height: 1.45; color: var(--muted); }
.jobs { list-style: none; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.jobs li { min-height: 34px; padding: 0 14px; border-radius: 17px; display: inline-flex; align-items: center; background: var(--pop-tint); color: var(--pop-ink); font-size: 15px; font-weight: 700; }
.faces { list-style: none; margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 360px; }
.faces li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 22px; font-size: 16px; font-weight: 700; }
.faces svg { width: 46px; height: 46px; }
.face-hmm { background: #FFF0C4; color: #5B4520; } .face-yum { background: #DDF3E4; color: #1C6B43; } .face-wow { background: #FFE1DC; color: var(--pop-ink); }

/* Steps */
.steps { list-style: none; margin-top: 32px; display: grid; gap: 18px; }
.step { position: relative; overflow: hidden; padding: 18px; border-radius: 30px; background: var(--c); box-shadow: 0 6px 0 var(--e); display: flex; flex-direction: column; justify-content: flex-end; }
.step::before { content: ""; position: absolute; right: -30px; top: -40px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.step .n { position: absolute; left: 16px; top: 16px; width: 44px; height: 44px; border-radius: 22px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: var(--pop-ink); box-shadow: 0 3px 0 var(--e); }
.step img { position: absolute; right: 22px; top: 10px; width: 92px; height: 108px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(42,33,64,0.16)); }
.step .plate { position: relative; margin-top: 98px; padding: 14px 16px; border-radius: 22px; }
.step h3 { font-size: 21px; font-weight: 700; line-height: 1.15; }
.step p { margin-top: 4px; font-size: 15px; line-height: 1.35; color: var(--t); }
.step.ice .plate { background: rgba(255,255,255,0.74); }
.step.ice .n { color: var(--ice); }

/* FAQ (home and support) */
.faq { margin-top: 28px; border-radius: 30px; background: #fff; box-shadow: 0 6px 0 var(--edge); padding: 4px 18px; }
.faq details + details { border-top: 1.5px solid #F3EBE1; }
.faq summary { list-style: none; min-height: 64px; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 18px; font-weight: 600; line-height: 1.25; cursor: pointer; border-radius: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { width: 34px; height: 34px; flex: none; border-radius: 17px; background: #F4EEE6; color: var(--ink); display: flex; align-items: center; justify-content: center; transition: transform .18s, background-color .18s; }
.faq details[open] .chev { transform: rotate(180deg); background: var(--pop-tint); color: var(--pop-ink); }
.faq details > p { padding: 0 0 18px; font-size: 16px; line-height: 1.55; color: var(--body); max-width: 66ch; }
.faq a { color: var(--pop-ink); font-weight: 600; }
.faq-wrap { max-width: 860px; margin: 0 auto; }

/* ---------- Footer ---------- */
.foot { padding: 24px 0 28px; }
.foot-cta { position: relative; overflow: hidden; display: grid; gap: 14px; justify-items: start; padding: 30px 22px 28px; border-radius: 36px; background: var(--ink); color: #fff; }
.foot-cta::before { content: ""; position: absolute; right: -90px; top: -110px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.foot-cta .h2 { position: relative; margin-top: 0; max-width: 14ch; color: #fff; font-size: clamp(32px, 3.6vw + 18px, 48px); }
.foot-cta p { position: relative; font-size: 17px; color: #D9D3E8; }
.foot-cta .btn-store { position: relative; margin-top: 6px; }
.foot-cta .mascots { display: none; }
.foot-cta :focus-visible { outline-color: #fff; }
.foot-row { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.foot-row nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.foot-row nav a { min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; font-size: 16px; font-weight: 600; text-decoration: none; border-radius: 22px; }
.foot-row nav a:hover { background: rgba(42,33,64,0.05); }
.foot-row nav a[aria-current="page"] { color: var(--pop-ink); font-weight: 700; }
.foot-row .wordmark { font-size: 24px; }
.langs { display: inline-flex; padding: 4px; border-radius: 24px; background: #fff; box-shadow: 0 3px 0 var(--edge); }
.langs a { min-width: 52px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 20px; font-size: 15px; font-weight: 700; text-decoration: none; }
.langs a[aria-current="true"] { background: var(--ink); color: #fff; }
.tm { margin-top: 16px; font-size: 13px; line-height: 1.4; color: var(--muted); text-align: center; }

/* ---------- Inner pages (support, privacy, terms) ---------- */
.page-hero { position: relative; overflow: hidden; margin: 8px 8px 0; padding-bottom: 34px; border-radius: 36px; background: var(--c); }
.page-hero .deco i { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.16); }
.page-hero .deco .d1 { right: -70px; top: -80px; width: 260px; height: 260px; }
.page-hero .deco .d2 { right: 8px; top: 70px; width: 150px; height: 150px; background: rgba(255,255,255,0.2); }
.page-hero .deco .d3 { left: -60px; bottom: -70px; width: 170px; height: 170px; background: rgba(255,255,255,0.12); }
.page-hero .mascot { position: absolute; right: 12px; bottom: 0; width: 92px; height: 140px; object-fit: contain; }
.page-hero .inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 18px var(--gutter) 0; }
.page-hero h1 { max-width: 11ch; font-size: clamp(36px, 4vw + 20px, 56px); font-weight: 700; line-height: 1.0; letter-spacing: -0.035em; }
.page-hero .sub { margin-top: 12px; max-width: min(24ch, calc(100% - 96px)); font-size: 18px; line-height: 1.35; color: var(--t); }
.page-hero .chip { margin-top: 14px; max-width: calc(100% - 96px); padding: 6px 14px; line-height: 1.25; }
.page-col { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

.draft-banner { margin-top: 24px; padding: 14px 16px; border-radius: 20px; background: var(--draft); color: var(--draft-ink); font-size: 15px; font-weight: 600; line-height: 1.4; }
.draft-banner b, .draft b { font-weight: 700; }
.draft { margin-top: 12px; padding: 10px 14px; border-radius: 16px; background: var(--draft); font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--draft-ink); }

.toc { margin-top: 20px; border-radius: 26px; background: #fff; box-shadow: 0 5px 0 var(--edge); padding: 16px 18px 12px; }
.toc h2 { margin-bottom: 6px; font-size: 18px; font-weight: 700; line-height: 1.2; }
.toc ol { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
.toc a { min-height: 44px; display: flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 12px; }
.toc a:hover span:last-child { text-decoration: underline; }
.toc a span:last-child { font-size: 15px; font-weight: 600; line-height: 1.2; }
.num { width: 24px; height: 24px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.t-yellow { background: #FFF0C4; color: #8A6100; } .t-blue { background: #E3ECFF; color: #1F5FA8; } .t-pink { background: #FFE1DC; color: #C2303A; }
.t-green { background: #DDF3E4; color: #23744B; } .t-neutral { background: #F4EEE6; color: #5E5470; } .t-rose { background: #FFE9F1; color: #B0306A; }
.t-pop { background: #FFE9E7; color: #C2303A; } .t-sky { background: #E6F4FF; color: #1F5FA8; }

.doc { margin-top: 18px; }
.doc section { padding: 26px 0 22px; border-top: 1.5px solid var(--rule); scroll-margin-top: 80px; }
.doc section:first-child { border-top: 0; }
.doc .sh { display: flex; align-items: center; gap: 12px; }
.doc .sh .num { width: 32px; height: 32px; border-radius: 16px; font-size: 15px; }
.doc h2 { font-size: 23px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.doc h3 { margin-top: 18px; font-size: 18px; font-weight: 700; }
.doc p, .doc li { max-width: 66ch; font-size: 17px; line-height: 1.6; color: var(--body); }
.doc p { margin-top: 10px; }
.doc ul.list, .doc ol.list { margin-top: 10px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc a { color: var(--pop-ink); font-weight: 600; }
.doc .chips { list-style: none; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 6px; }
.doc .chips li { min-height: 32px; padding: 0 12px; border-radius: 16px; background: #fff; box-shadow: 0 3px 0 var(--edge); display: flex; align-items: center; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.partner { margin-top: 12px; border-radius: 20px; background: #fff; box-shadow: 0 4px 0 var(--edge); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; max-width: 66ch; }
.partner b { font-size: 17px; font-weight: 700; line-height: 1.15; color: var(--ink); }
.partner .role { font-size: 14px; line-height: 1.25; color: var(--muted); }
.partner .what { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--body); }
.table-wrap { margin-top: 12px; overflow-x: auto; border-radius: 20px; background: #fff; box-shadow: 0 4px 0 var(--edge); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; color: var(--body); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid #F1EAE0; }
.doc th { border-top: 0; font-weight: 700; color: var(--ink); font-size: 14px; }

/* Support */
.support-body { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.support-body > h2 { margin-top: 22px; font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.support-body .faq { margin-top: 0; }
.mail-card { min-height: 84px; border-radius: 28px; background: var(--ink); box-shadow: 0 6px 0 #120E1D; padding: 14px 18px 14px 14px; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 14px; }
.mail-card:hover { color: #fff; background: var(--ink-soft); }
.mail-card .ic { width: 52px; height: 52px; flex: none; border-radius: 26px; background: var(--pop); color: #fff; display: flex; align-items: center; justify-content: center; }
.mail-card .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mail-card b { font-size: 18px; font-weight: 700; line-height: 1.15; }
.mail-card .addr { font-size: 16px; font-weight: 600; line-height: 1.25; color: #FFD1CE; overflow-wrap: anywhere; }
.mail-card .go { flex: none; color: #D9D3E8; }
.card { border-radius: 26px; background: #fff; box-shadow: 0 5px 0 var(--edge); padding: 18px 20px; }
.card p { font-size: 16px; line-height: 1.55; color: var(--body); max-width: 66ch; }
.card p + p { margin-top: 10px; }
.card a { color: var(--pop-ink); font-weight: 600; }
.card b { color: var(--ink); }
.howto { list-style: none; margin: 2px 0 14px; display: grid; gap: 10px; counter-reset: how; }
.howto li { counter-increment: how; display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.howto li::before { content: counter(how); width: 32px; height: 32px; flex: none; border-radius: 16px; background: var(--pop-tint); color: var(--pop-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.note-card { border-radius: 22px; background: #fff; box-shadow: 0 5px 0 var(--edge); padding: 14px 18px; font-size: 15px; line-height: 1.5; color: var(--body); }
.note-card b { color: var(--ink); }
.note-card a { color: var(--pop-ink); font-weight: 600; }

/* ---------- Share landing page (/r/<token>) and 404 ---------- */
.share { min-height: 100vh; min-height: 100dvh; background: var(--mint); position: relative; overflow-x: hidden; transition: background-color .25s; }
.share .deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.share .deco i { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.16); }
.share .deco .c1 { right: -60px; top: 40px; width: 300px; height: 300px; }
.share .deco .c2 { right: 6px; top: 96px; width: 190px; height: 190px; background: rgba(255,255,255,0.2); }
.share .deco .c3 { left: -90px; top: 380px; width: 240px; height: 240px; background: rgba(255,255,255,0.12); }
.share .deco .c4 { right: -120px; bottom: -120px; width: 320px; height: 320px; background: rgba(255,255,255,0.1); }
.share-col { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; padding: 0 var(--gutter); }
.share .site-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 44px; margin-top: 14px; }
.share-by { height: 40px; padding: 0 14px 0 5px; border-radius: 20px; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; white-space: nowrap; max-width: 62%; overflow: hidden; text-overflow: ellipsis; background: rgba(255,255,255,0.42); }
.share-by .av { width: 30px; height: 30px; flex: none; border-radius: 15px; background: #FFB4D0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.share-by .av img { width: 24px; height: 28px; object-fit: contain; margin-top: 4px; }
.share-by .nm { overflow: hidden; text-overflow: ellipsis; }
.share-stage { position: relative; height: 236px; margin-top: 6px; }
.share-stage .halo { position: absolute; right: 0; top: 4px; width: 214px; height: 214px; border-radius: 50%; background: rgba(255,255,255,0.22); }
.share-stage .pal { position: absolute; right: 6px; top: 0; width: 208px; height: 212px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(42,33,64,0.16)); }
.share-stage .shadow { position: absolute; right: 44px; top: 214px; width: 130px; height: 14px; border-radius: 50%; background: rgba(42,33,64,0.12); }
.share-stage .bubble { position: absolute; left: 0; top: 36px; width: 164px; padding: 11px 13px; border-radius: 20px; font-size: 15px; font-weight: 600; line-height: 1.22; }
.share-stage .bubble::after, .parade .bubble::after { content: ""; position: absolute; right: -7px; top: 28px; width: 14px; height: 14px; transform: rotate(45deg); border-radius: 3px; background: var(--glass); border-top: 1px solid var(--glass-border); border-right: 1px solid var(--glass-border); }
.share h1 { font-size: 34px; font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; overflow-wrap: anywhere; text-wrap: balance; }
.share .muted { color: rgba(42,33,64,0.8); }
.facts { margin-top: 14px; min-height: 66px; border-radius: 24px; background: rgba(255,255,255,0.5); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; padding: 10px 0; box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 8px 24px rgba(36,80,59,0.12); }
.facts > div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 4px; }
.facts > div + div { border-left: 1px solid rgba(42,33,64,0.1); }
.facts b { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; }
.facts b.kid { color: var(--pop-ink); }
.facts span { font-size: 13px; }
.ingredients { margin-top: 12px; border-radius: 26px; background: rgba(255,255,255,0.5); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ingredients .hd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ingredients h2 { font-size: 19px; font-weight: 700; line-height: 1.2; }
.ingredients .hd span { font-size: 14px; font-weight: 600; }
.ingredients ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.ingredients li { display: flex; flex-direction: column; min-width: 0; padding-left: 12px; border-left: 3px solid rgba(255,255,255,0.75); }
.ingredients li b { font-size: 15px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.ingredients li span { font-size: 13px; line-height: 1.25; }
.share-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.share .site-footer { margin-top: 32px; padding: 10px 0 28px; border-top: 1.5px solid rgba(42,33,64,0.12); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.share .site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.share .site-footer nav a { min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; }
.share .site-footer .tm { margin-top: 2px; font-size: 12px; color: rgba(42,33,64,0.8); max-width: 420px; }
.share-state { margin-top: 36px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.share-state img { width: 156px; height: 196px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(42,33,64,0.16)); }
.share-state h1 { font-size: 32px; }
.share-state p { font-size: 18px; line-height: 1.4; max-width: 330px; }
.share-state .btn-pop, .share-state .btn-glass { max-width: 380px; }
.spin-dots { display: flex; gap: 8px; justify-content: center; margin-top: 80px; }
.spin-dots i { width: 12px; height: 12px; border-radius: 6px; background: rgba(255,255,255,0.9); animation: dot 1s infinite ease-in-out; }
.spin-dots i:nth-child(2) { animation-delay: .15s; } .spin-dots i:nth-child(3) { animation-delay: .3s; }

/* ---------- Motion ---------- */
@keyframes bob { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-8px) rotate(1.5deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(-8px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 640 px and up ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .top-link { display: inline-flex; }
  .top-link.wide { display: none; }
  .sec { padding: 96px 0; }
  .band { margin: 0 16px; padding: 88px 0; border-radius: 44px; }
  .page-hero { margin: 12px 16px 0; padding-bottom: 46px; }
  .page-hero .inner { padding-top: 34px; }
  .page-hero .mascot { right: max(16px, calc(50% - 370px)); width: 120px; height: 180px; }
  .page-hero .sub { max-width: 34ch; }
  .page-hero .chip { max-width: none; }
  .hero { padding: 44px 0 72px; }
  .hero .cta { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px 22px; }
  .parade .bubble { display: block; position: absolute; left: 30%; top: 66%; z-index: 2; width: 36%; padding: 10px 12px; border-radius: 20px; font-size: 14px; font-weight: 600; line-height: 1.22; }
  .parade .bubble::after { right: auto; left: 50%; top: -7px; transform: rotate(-45deg); }
  .ideas { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .idea { grid-column: span 2; grid-template-columns: 1fr; align-content: start; gap: 6px; padding: 14px 16px 18px; }
  .idea:nth-child(n+4) { grid-column: span 3; }
  .idea-art { grid-row: auto; width: 120px; }
  .idea h3 { margin-top: 6px; }
  .feat { grid-template-columns: 1fr 1fr; }
  .float { display: flex; }
  .step img { width: 104px; height: 120px; }
  .step .plate { margin-top: 112px; }
  .feat li:last-child:nth-child(odd) { grid-column: span 2; }
  .album { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 16px; }
  .kids { grid-template-columns: 180px 1fr; gap: 28px; padding: 30px 34px 32px; }
  .kids-art { width: 180px; height: 180px; }
  .kids-art img { width: 140px; height: 190px; }
  .kids .faces { grid-column: 2; margin-top: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .faq { padding: 6px 26px; }
  .foot-cta { grid-template-columns: 1fr auto; align-items: center; padding: 40px; }
  .foot-cta .h2, .foot-cta p { grid-column: 1; }
  .foot-cta .btn-store { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share-col { max-width: 520px; }
}

/* ---------- 980 px and up ---------- */
@media (min-width: 980px) {
  .top-link.wide { display: inline-flex; }
  .wordmark.big { font-size: 34px; letter-spacing: -1px; }
  .sec { padding: 120px 0; }
  .band { padding: 112px 0; border-radius: 56px; }
  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px; }
  .hero .lead { font-size: 24px; }
  .app-icon { width: 68px; height: 68px; border-radius: 17px; }
  .parade { aspect-ratio: 1 / 0.98; }
  .ideas { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
  .idea, .idea:nth-child(n+4) { grid-column: auto; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .split.art-left .split-art { order: -1; }
  .phone { width: 300px; }
  .feat { grid-template-columns: 1fr; }
  .feat li:last-child:nth-child(odd) { grid-column: auto; }
  .album { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .share-mock { width: 330px; }
  .kids { grid-template-columns: 220px 1fr 330px; padding: 36px 44px; }
  .kids-art { width: 220px; height: 220px; }
  .kids-art img { width: 170px; height: 230px; }
  .kids .faces { grid-column: auto; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-cta { padding: 48px 56px; }
  .foot-cta .mascots { display: block; position: absolute; right: 330px; bottom: -8px; width: 170px; height: 150px; }
  .foot-cta .mascots img { position: absolute; bottom: 0; object-fit: contain; }
  .foot-row { flex-direction: row; justify-content: space-between; text-align: left; }
  .tm { text-align: left; }
  .share-col { max-width: 940px; }
  .share #recipe:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: start; margin-top: 24px; }
  .share #recipe > .share-stage { grid-column: 1; grid-row: 1 / span 4; height: 380px; margin-top: 0; }
  .share #recipe > :not(.share-stage) { grid-column: 2; }
  .share-stage .halo { right: 20px; top: 0; width: 340px; height: 340px; }
  .share-stage .pal { right: 40px; top: 10px; width: 300px; height: 304px; }
  .share-stage .shadow { right: 110px; top: 322px; width: 160px; }
  .share-stage .bubble { top: 230px; left: 0; width: 200px; }
  .share h1 { font-size: 46px; margin-top: 12px; }
  .share-state, .share .site-footer { max-width: 520px; margin-left: auto; margin-right: auto; }
}
