/* Draft B: sticker party.
   References: refs/duolingo-screens (3D edge buttons, rounded tiles, bold
   rounded type), refs/topinspo-icons (sticker look: white border + soft
   shadow), refs/think-play-quiz (sky band behind the play area). */

:root {
  --bg: #ffffff;
  --sky: #eaf5ff;
  --text: #2e2e35;
  --text-2: #696974;
  --text-3: #9a9aa6;
  --line: #e6e6ec;
  --pink: #f43f7f;
  --pink-edge: #c42a62;
  --pink-soft: #ffe8f0;
  --ok: #1f9d47;
  --r-tile: 18px;
  --r-card: 28px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --display: 'Baloo 2', ui-rounded, system-ui, sans-serif;
  --font: 'Nunito', ui-rounded, system-ui, sans-serif;
  --sticker-shadow: 0 2px 4px rgba(46, 46, 53, 0.08), 0 14px 28px -10px rgba(46, 46, 53, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 600 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; touch-action: manipulation; }
a { color: inherit; }
:focus-visible { outline: 3px solid #4cc3ff; outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; padding: 8px 12px; background: var(--text); color: #fff; border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }

/* ---------- layout ---------- */
.shell { max-width: 1760px; margin: 0 auto; }
.page { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.rail { display: none; }
@media (min-width: 1600px) {
  .shell { display: grid; grid-template-columns: 250px minmax(0, 1200px) 250px; gap: 48px; justify-content: center; padding: 0 32px; }
  .page { padding: 0; }
  .rail { display: block; }
  .note { position: sticky; top: 120px; margin-top: 160px; }
}
.note { padding: 20px; border-radius: 22px; background: var(--pink-soft); transform: rotate(-1.5deg); box-shadow: var(--sticker-shadow); }
.note-blue { background: var(--sky); transform: rotate(1.5deg); }
.note-title { margin: 0 0 10px; font: 800 20px/1.2 var(--display); }
.note ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.note li { display: flex; gap: 8px; align-items: center; }
.note i { font-size: 18px; color: var(--pink); }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 800 22px/1 var(--display); letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--pink); color: #fff; font-size: 20px; box-shadow: 0 3px 0 var(--pink-edge); }
.top-links { display: flex; align-items: center; gap: 6px; }
.top-links > a:not(.btn3d) { text-decoration: none; padding: 8px 12px; border-radius: 12px; color: var(--text-2); font-weight: 800; }
.top-links > a:not(.btn3d):hover { background: var(--sky); color: var(--text); }
@media (max-width: 560px) { .top-links > a:not(.btn3d) { display: none; } }

/* ---------- 3D buttons (the signature) ---------- */
.btn3d {
  --face: #fff; --edge: var(--line); --ink: var(--text);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 24px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--face); color: var(--ink); text-decoration: none;
  font: 800 19px/1 var(--display); letter-spacing: 0.03em; text-transform: uppercase;
  box-shadow: 0 5px 0 var(--edge);
  transition: transform 90ms var(--ease), box-shadow 90ms var(--ease), background-color 160ms var(--ease);
}
.btn3d:active { transform: translateY(5px); box-shadow: 0 0 0 var(--edge); }
.btn3d i { font-size: 20px; }
.btn3d-white { box-shadow: 0 0 0 2px var(--line), 0 5px 0 2px var(--line); }
.btn3d-white:active { box-shadow: 0 0 0 2px var(--line), 0 0 0 2px var(--line); }
.btn3d-pink { --face: var(--pink); --edge: var(--pink-edge); --ink: #fff; }
.btn3d-pink:disabled { --face: #e8e8ee; --edge: #d2d2db; --ink: #9a9aa6; cursor: not-allowed; transform: none; }
.btn3d-sm { min-height: 42px; padding: 0 16px; font-size: 16px; border-radius: 13px; }
.btn3d-block { width: 100%; margin-top: 20px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 24px 0 72px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0 -100vw; background: var(--sky); z-index: -1; border-radius: 0 0 48px 48px; }
.hero h1 { margin: 8px auto 10px; max-width: 17ch; font: 800 clamp(32px, 8vw, 66px)/1.02 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.lead { margin: 0 auto; max-width: 44ch; font-size: 18px; font-weight: 600; color: var(--text-2); }
.lead.small { margin: 8px 0 28px; max-width: 52ch; }

.hero-grid { display: grid; gap: 24px; justify-items: center; margin-top: 28px; text-align: left; }
.tool { width: 100%; max-width: 540px; order: 1; }
.sticker { margin: 0; width: 150px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--sticker-shadow); background: #222; }
.sticker video { width: 100%; height: 100%; object-fit: cover; }
.sticker-left { order: 2; transform: rotate(-5deg); }
.sticker-right { order: 3; transform: rotate(4deg); margin-top: -120px; margin-left: 140px; }
@media (max-width: 1023px) {
  .hero-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; margin-top: 22px; }
  .sticker { order: 0; width: 92px; border-width: 4px; border-radius: 16px; margin: 0; }
  .sticker-left { transform: rotate(-6deg); }
  .sticker-right { transform: rotate(5deg); margin: 12px 0 0; }
  .tool { order: 1; flex-basis: 100%; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 540px 1fr; align-items: center; gap: 40px; }
  .sticker { order: 0; width: 220px; margin: 0; }
  .sticker-left { justify-self: end; transform: rotate(-6deg); }
  .sticker-right { justify-self: start; transform: rotate(5deg); margin-top: 120px; }
  .tool { order: 0; }
}

/* ---------- tool card ---------- */
.card { background: #fff; border-radius: var(--r-card); padding: 20px; box-shadow: 0 0 0 2px var(--line), 0 6px 0 2px var(--line); }
@media (min-width: 640px) { .card { padding: 28px; } }
.step-title { margin: 0 0 10px; font: 800 21px/1.2 var(--display); }
.photo-block, .consent { margin-top: 22px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile {
  display: grid; justify-items: center; gap: 6px; padding: 14px 6px 12px; border: 0; border-radius: var(--r-tile); cursor: pointer;
  background: #fff; box-shadow: 0 0 0 2px var(--line), 0 4px 0 2px var(--line);
  font: 800 14px/1.15 var(--font); color: var(--text-2);
  transition: transform 90ms var(--ease), box-shadow 90ms var(--ease), background-color 160ms var(--ease);
}
.tile i { font-size: 30px; color: #b8b8c4; transition: color 160ms var(--ease); }
.tile:active { transform: translateY(4px); box-shadow: 0 0 0 2px var(--line); }
.tile[aria-pressed="true"] { background: var(--pink-soft); color: var(--text); box-shadow: 0 0 0 2px var(--pink), 0 4px 0 2px var(--pink-edge); }
.tile[aria-pressed="true"] i { color: var(--pink); }

.drop {
  display: grid; justify-items: center; gap: 4px; padding: 22px 16px; cursor: pointer; text-align: center;
  border: 2.5px dashed #f6a9c6; border-radius: 22px; background: #fff;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.drop:hover, .drop[data-over="yes"], .drop:focus-within { background: var(--pink-soft); border-color: var(--pink); }
.drop-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--pink); color: #fff; font-size: 26px; box-shadow: 0 4px 0 var(--pink-edge); margin-bottom: 6px; }
.drop-text { font: 800 20px/1.2 var(--display); }
.drop-sub { font-size: 14px; color: var(--text-2); }

.samples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; font-size: 14.5px; color: var(--text-2); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 14px 4px 5px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; font-weight: 800; font-size: 14.5px; box-shadow: 0 0 0 2px var(--line), 0 3px 0 2px var(--line);
  transition: transform 90ms var(--ease), box-shadow 90ms var(--ease);
}
.pill img { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; }
.pill:active { transform: translateY(3px); box-shadow: 0 0 0 2px var(--line); }

.file-row { display: none; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 20px; box-shadow: 0 0 0 2px var(--line); }
.file-row img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.file-meta { display: grid; min-width: 0; }
.file-name { font-weight: 800; overflow-wrap: anywhere; }
.file-sub { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text-2); }
.status { padding: 1px 10px; border-radius: 999px; background: #f1f1f5; font-size: 13px; font-weight: 800; }
.status[data-ok="yes"] { background: #ddf6e5; color: var(--ok); }
.round-btn { width: 44px; height: 44px; border: 0; border-radius: 999px; display: grid; place-items: center; cursor: pointer; background: #f1f1f5; font-size: 18px; }
[data-photo="yes"] .drop, [data-photo="yes"] .samples { display: none; }
[data-photo="yes"] .file-row { display: grid; }
[data-style="classic"] .photo-block { display: none; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); cursor: pointer; }
.consent input { width: 24px; height: 24px; margin: 0; accent-color: var(--pink); flex: none; }
.fine { margin: 14px 0 0; font-size: 13.5px; color: var(--text-3); text-align: center; }
.fine.center { margin-top: 18px; }

/* states */
.tool-generating, .tool-result, .done-copy { display: none; }
[data-state="generating"] .tool-idle, [data-state="preview"] .tool-idle, [data-state="unlocked"] .tool-idle { display: none; }
[data-state="generating"] .tool-generating { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 12px 0; }
[data-state="preview"] .tool-result, [data-state="unlocked"] .tool-result { display: block; }
[data-state="unlocked"] .paywall-copy { display: none; }
[data-state="unlocked"] .done-copy { display: block; text-align: center; }

.gen-photo { width: 140px; height: 140px; border-radius: 28px; object-fit: cover; border: 6px solid #fff; box-shadow: var(--sticker-shadow); transform: rotate(-3deg); }
[data-style="classic"] .gen-photo { display: none; }
.bar { width: 100%; height: 22px; border-radius: 999px; background: #f1f1f5; overflow: hidden; }
.bar-fill {
  height: 100%; border-radius: inherit; transform-origin: left; transform: scaleX(0);
  background: repeating-linear-gradient(-45deg, var(--pink) 0 14px, #ff6b9b 14px 28px);
}
.gen-pct { margin: 0; font-size: 14.5px; color: var(--text-2); }

.result-frame { position: relative; width: min(100%, 240px); margin: 0 auto 20px; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--sticker-shadow); background: #222; }
.result-frame video { width: 100%; height: 100%; object-fit: cover; }
.wm { position: absolute; inset: 0; display: none; place-items: center; pointer-events: none; font: 800 44px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); transform: rotate(-22deg); text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
[data-state="preview"] .wm { display: grid; }
.locked { position: absolute; inset: 0; display: none; align-content: center; justify-items: center; gap: 14px; background: rgba(46, 46, 53, 0.6); color: #fff; text-align: center; }
.locked p { margin: 0; font: 800 20px/1.2 var(--display); }
[data-locked="yes"] .locked { display: grid; }
.sound { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border: 0; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); font-size: 20px; cursor: pointer; transition: transform 90ms var(--ease); }
.sound:active { transform: scale(0.92); }
.sound .i-on, .sound[aria-pressed="true"] .i-off { display: none; }
.sound[aria-pressed="true"] .i-on { display: block; }

.packs { display: grid; gap: 10px; }
.pack {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; min-height: 60px; padding: 8px 16px; border-radius: 18px; cursor: pointer;
  box-shadow: 0 0 0 2px var(--line), 0 4px 0 2px var(--line); transition: box-shadow 120ms var(--ease), background-color 160ms var(--ease);
}
.pack input { width: 20px; height: 20px; margin: 0; accent-color: var(--pink); }
.pack-name { display: grid; font-weight: 800; }
.pack-name small { font-size: 13px; font-weight: 700; color: var(--text-3); }
.pack-price { font: 800 22px/1 var(--display); font-variant-numeric: tabular-nums; }
.pack:has(input:checked) { background: var(--pink-soft); box-shadow: 0 0 0 2px var(--pink), 0 4px 0 2px var(--pink-edge); }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.text-btn { margin-top: 18px; border: 0; background: none; color: var(--pink-edge); font-weight: 800; cursor: pointer; padding: 8px; }

/* ---------- sections ---------- */
.section { padding: 72px 0; text-align: center; }
@media (min-width: 1024px) { .section { padding: 104px 0; } }
.section h2 { margin: 0; font: 800 clamp(32px, 5vw, 48px)/1.08 var(--display); letter-spacing: -0.015em; }

.steps { list-style: none; margin: 36px auto 0; padding: 0; display: grid; gap: 28px; max-width: 980px; }
.steps li { display: grid; justify-items: center; gap: 6px; }
.steps b { font: 800 21px/1.2 var(--display); }
.steps span:last-child { color: var(--text-2); max-width: 28ch; }
.step-icon { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; font-size: 36px; color: var(--pink); background: #fff; border: 5px solid #fff; box-shadow: var(--sticker-shadow); margin-bottom: 6px; }
.steps li:nth-child(2) .step-icon { transform: rotate(4deg); }
.steps li:nth-child(1) .step-icon, .steps li:nth-child(3) .step-icon { transform: rotate(-4deg); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: min(68%, 260px); gap: 22px; overflow-x: auto; padding: 28px 8px 20px; margin-top: 8px; scroll-snap-type: x mandatory; }
.board-item { margin: 0; scroll-snap-align: center; text-align: left; }
.board-item video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; border: 6px solid #fff; box-shadow: var(--sticker-shadow); background: #222; }
.board-item figcaption { margin-top: 14px; font-size: 15px; color: var(--text-2); }
.board-item figcaption b { display: block; font: 800 20px/1.2 var(--display); color: var(--text); }
.tilt-l { transform: rotate(-2.5deg); }
.tilt-r { transform: rotate(2deg) translateY(18px); }
.tilt-l2 { transform: rotate(-1.5deg); }
@media (min-width: 900px) { .board { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); max-width: 940px; margin: 8px auto 0; overflow: visible; } }
.note-line { margin: 28px auto 0; max-width: 56ch; color: var(--text-2); }

.price-tiles { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.price-tile { display: grid; gap: 2px; padding: 22px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 2px var(--line), 0 6px 0 2px var(--line); }
.price-tile b { font: 800 20px/1.2 var(--display); }
.price { font: 800 40px/1.1 var(--display); color: var(--pink-edge); font-variant-numeric: tabular-nums; }
.per { color: var(--text-2); font-size: 14.5px; }
@media (min-width: 760px) { .price-tiles { grid-template-columns: repeat(3, 1fr); } }

.faq { text-align: left; max-width: 760px; margin: 0 auto; }
.faq h2 { text-align: center; margin-bottom: 24px; }
.faq details { border-radius: 20px; box-shadow: 0 0 0 2px var(--line); margin-bottom: 12px; padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font: 800 19px/1.3 var(--display); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pink); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--text-2); }

.foot { display: grid; justify-items: center; gap: 12px; padding: 48px 0 40px; margin-top: 24px; text-align: center; border-top: 2px solid var(--line); }
.foot p { margin: 0; max-width: 52ch; color: var(--text-2); font-size: 14.5px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.foot nav a { text-decoration: none; font-weight: 800; color: var(--text-2); padding: 6px 2px; }
.foot nav a:hover { color: var(--pink-edge); }
.foot .copy { font-size: 13.5px; color: var(--text-3); }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 20; }
.confetti i { position: absolute; top: 40vh; width: 10px; height: 14px; border-radius: 3px; animation: pop 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes pop {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), 70vh) rotate(var(--rot)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bar-fill { background: var(--pink); }
}
