/* Bubblegum: the Side-eye logo's colourway. One typeface, the wordmark's Plus Jakarta Sans. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --pink: #ff8db3;
  --pink-soft: #ffe6ef;
  --page: #fff6f9;
  --ink: #211a1e;
  --ink-2: #5e4f56;
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --white: #fffdfe;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--ink); font: 500 16px/1.55 var(--sans); }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; }

header { display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(16px, 5vw, 56px); }
.logo img { display: block; height: 34px; width: auto; }
.tag { padding: 6px 12px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 700; }
.tag::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--pink); border: 1.5px solid var(--ink); vertical-align: 0; }

main {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 88px); align-items: center;
  max-width: 1180px; margin: 0 auto; padding: clamp(24px, 6vw, 72px) clamp(16px, 5vw, 56px) 72px;
}

h1 { margin: 0; font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; font-weight: 800; letter-spacing: -0.045em; }
h1 .rise { display: inline-block; }
/* The highlight: a pink marker that swipes in behind the words, never a second font. */
mark { color: inherit; background: linear-gradient(var(--pink), var(--pink)) 0 88% / 0% 46% no-repeat; padding: 0 0.06em; animation: swipe 0.9s var(--ease) 0.55s forwards; }
mark.on { background-size: 100% 46%; animation: none; }
@keyframes swipe { to { background-size: 100% 46%; } }

.lede { margin: 22px 0 32px; max-width: 30ch; color: var(--ink-2); font-size: clamp(17px, 1.6vw, 20px); }

.card { max-width: 430px; padding: 24px; border-radius: 24px; background: var(--white); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--pink); }
label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 700; }
label span { margin-left: 4px; font-weight: 500; color: var(--ink-2); }
input { width: 100%; margin: 0 0 16px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--page); font: inherit; color: var(--ink); transition: border-color 0.2s; }
input:focus { border-color: var(--ink); outline: none; }
button { width: 100%; padding: 14px 18px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--white); font: 800 16px var(--sans); letter-spacing: -0.01em; cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease); }
button:hover { background: var(--pink); color: var(--ink); }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.6; cursor: wait; }
.error { margin: 12px 0 0; color: #b3264f; font-size: 14px; font-weight: 700; }

.spot { margin: 0; font-size: clamp(44px, 6vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -0.045em; }
.of { margin: 6px 0 16px; font-weight: 700; }
.share { display: flex; gap: 8px; margin: 16px 0 4px; }
.share input { margin: 0; flex: 1; min-width: 0; font-size: 14px; }
.share button { width: auto; flex: none; padding: 12px 20px; }
.muted { margin: 14px 0 0; color: var(--ink-2); font-size: 14px; }
.count { min-height: 1.4em; font-weight: 700; }

.tile { position: relative; aspect-ratio: 1; border-radius: 22.37%; background: var(--pink); display: grid; place-items: center; }
.tile svg { width: 78%; height: auto; overflow: visible; }
.tile .pupil { transition: transform 0.25s var(--ease); }
.tile .ball { transform-box: fill-box; transform-origin: 50% 40%; }
.tile .ball.blink { animation: blink 0.18s ease-in-out; }
@keyframes blink { 50% { transform: scaleY(0.08); } }
.tile-note { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 700; white-space: nowrap; }

/* Page load: each block rises in turn. */
.rise { opacity: 0; transform: translateY(18px); animation: rise 0.8s var(--ease) forwards; }
h1 .rise:nth-child(2) { animation-delay: 0.08s; }
h1 .rise:nth-child(3) { animation-delay: 0.16s; }
.lede.rise { animation-delay: 0.24s; }
.card.rise { animation-delay: 0.32s; }
.tile { animation: pop 0.9s var(--ease) 0.1s both; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.92) rotate(-4deg); } to { opacity: 1; transform: none; } }

/* Why Bonbon: one panel per side of the marketplace. */
.why { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 56px) 96px; }
.why h2 { margin: 0 0 28px; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -0.045em; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.side { padding: clamp(22px, 3vw, 36px); border-radius: 28px; border: 1.5px solid var(--ink); background: var(--white); }
.side.creators { background: var(--pink-soft); }
.side h3 { margin: 0 0 18px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.side li { position: relative; padding-left: 28px; color: var(--ink-2); }
.side li b { color: var(--ink); font-weight: 800; }
.side li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 13px; height: 13px; border-radius: 50%; background: var(--pink); border: 1.5px solid var(--ink); }

@media (max-width: 820px) {
  main { grid-template-columns: 1fr; }
  .sides { grid-template-columns: 1fr; }
  .tile { order: -1; width: min(240px, 62vw); justify-self: center; }
  .tile-note { font-size: 12px; }
  .card { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .tile { animation: none; opacity: 1; transform: none; }
  mark { animation: none; background-size: 100% 46%; }
  .tile .pupil { transition: none; }
}
.error:empty { display: none; }
