/* Startups page: a brighter, playful take on the brand. Rounded display type, drifting colour
   blobs, sticker cards with offset shadows, a scrolling ribbon and confetti on select.
   Overrides site.css tokens on body.fun so the shared cards, cart and form follow along. */
body.fun {
  --fun-coral: #ff4f6d; --fun-mango: #ffb020; --fun-mint: #12b89a; --fun-sky: #2f8cff; --fun-grape: #6a4cf0;
  --bg: #ffffff; --surface: #f4f2ff; --surface-inverse: #241c3d;
  --ink: #2a2342; --ink-heading: #1b1533; --ink-muted: #625a7d;
  --ink-inverse: #ffffff; --ink-inverse-muted: #cfc7ee;
  --line: #e4e0f5; --accent: #e8304f; --accent-hover: #c9213f; --on-accent: #ffffff;
  --accent-on-inverse: #ffb020; --accent-tint: #fff0f3; --focus-ring: #6a4cf0;
  --stroke: #1b1533; --pop-shadow: #1b1533;
  --display: "Fredoka", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Nunito", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius-md: 16px; --radius-lg: 24px;
  font-size: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.fun {
    --bg: #14102a; --surface: #1d1738; --surface-inverse: #0e0b1f;
    --ink: #ece8ff; --ink-heading: #ffffff; --ink-muted: #b4abd6;
    --line: #342b5c; --accent: #ff5f7c; --accent-hover: #ff8098; --on-accent: #14102a;
    --accent-tint: #2c1830; --stroke: #8f80d8; --pop-shadow: #000000;
  }
}
:root[data-theme="dark"] body.fun {
  --bg: #14102a; --surface: #1d1738; --surface-inverse: #0e0b1f;
  --ink: #ece8ff; --ink-heading: #ffffff; --ink-muted: #b4abd6;
  --line: #342b5c; --accent: #ff5f7c; --accent-hover: #ff8098; --on-accent: #14102a;
  --accent-tint: #2c1830; --stroke: #8f80d8; --pop-shadow: #000000;
}
body.fun h1, body.fun h2, body.fun h3, body.fun h4 { letter-spacing: 0; }
.fun .nav { background: var(--surface-inverse); }

/* Hero */
.fun-hero { position: relative; overflow: hidden; padding-block: 0; background: var(--bg); }
.blobs { position: absolute; inset: 0; pointer-events: none; filter: blur(48px); opacity: .55; }
.blobs i { position: absolute; width: 38vmax; height: 38vmax; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { background: var(--fun-coral); left: -12vmax; top: -14vmax; }
.blobs i:nth-child(2) { background: var(--fun-mango); right: -10vmax; top: -6vmax; animation-duration: 22s; animation-delay: -6s; }
.blobs i:nth-child(3) { background: var(--fun-mint); left: 20%; bottom: -24vmax; animation-duration: 26s; animation-delay: -3s; }
.blobs i:nth-child(4) { background: var(--fun-sky); right: 10%; bottom: -20vmax; width: 28vmax; height: 28vmax; animation-duration: 20s; animation-delay: -10s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vmax, 4vmax) scale(1.12); } 100% { transform: translate(-4vmax, 7vmax) scale(.92); } }
#sparkles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fun-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 36px; align-items: center; padding-block: 64px 72px; }
.fun-copy { display: grid; gap: 20px; }
.sticker { justify-self: start; font: 600 14px/20px var(--display); background: var(--fun-mango); color: #1b1533; padding: 6px 14px; border-radius: 999px; border: 2px solid #1b1533; box-shadow: 3px 3px 0 #1b1533; transform: rotate(-3deg); animation: wobble 3.2s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(2deg) translateY(-2px); } }
.fun-hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; font-weight: 700; color: var(--ink-heading); }
.fun-hero h1 .w { display: inline-block; animation: pop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.fun-hero h1 .w:nth-child(2) { animation-delay: .05s; } .fun-hero h1 .w:nth-child(3) { animation-delay: .1s; }
.fun-hero h1 .w:nth-child(4) { animation-delay: .15s; } .fun-hero h1 .w:nth-child(5) { animation-delay: .2s; }
.fun-hero h1 .w:nth-child(6) { animation-delay: .25s; } .fun-hero h1 .w:nth-child(7) { animation-delay: .3s; }
.fun-hero h1 .w:nth-child(8) { animation-delay: .35s; }
@keyframes pop { 0% { transform: translateY(18px) rotate(-4deg) scale(.85); } 100% { transform: none; } }
.fun-hero h1 .hl, .fun-hero h1 .hl2, .fun-hero h1 .hl3 { position: relative; z-index: 0; }
.fun-hero h1 .hl::after, .fun-hero h1 .hl2::after, .fun-hero h1 .hl3::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: 6%; height: 34%; border-radius: 10px; z-index: -1; transform: rotate(-1.5deg); }
.fun-hero h1 .hl::after { background: color-mix(in srgb, var(--fun-coral) 45%, transparent); }
.fun-hero h1 .hl2::after { background: color-mix(in srgb, var(--fun-mint) 45%, transparent); }
.fun-hero h1 .hl3::after { background: color-mix(in srgb, var(--fun-mango) 55%, transparent); }
.fun-lead { font-size: 18px; line-height: 29px; color: var(--ink-muted); max-width: 52ch; }
.fun-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-fun { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border-radius: 999px; font: 600 16px/20px var(--display); text-decoration: none; background: var(--accent); color: #fff; border: 2px solid var(--stroke); box-shadow: 4px 4px 0 var(--pop-shadow); transition: transform .15s, box-shadow .15s; }
.btn-fun:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--pop-shadow); }
.btn-fun:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--pop-shadow); }
.btn-fun.ghost { background: var(--bg); color: var(--ink-heading); }

/* Browser mock */
.browser { border: 2px solid var(--stroke); border-radius: 18px; background: var(--bg); box-shadow: 8px 8px 0 var(--pop-shadow); overflow: hidden; transform: rotate(2deg); animation: float 6s ease-in-out infinite; max-width: 440px; width: 100%; justify-self: center; }
@keyframes float { 0%, 100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(0deg) translateY(-12px); } }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 2px solid var(--stroke); background: var(--surface); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--fun-coral); }
.browser-bar i:nth-child(2) { background: var(--fun-mango); } .browser-bar i:nth-child(3) { background: var(--fun-mint); }
.browser-bar span { margin-left: 8px; font: 500 12px/1 var(--mono); color: var(--ink-muted); background: var(--bg); padding: 5px 10px; border-radius: 999px; flex: 1; }
.browser-body { position: relative; padding: 16px; display: grid; gap: 12px; }
.mock-hero { height: 110px; border-radius: 12px; background: linear-gradient(120deg, var(--fun-grape), var(--fun-sky) 55%, var(--fun-mint)); background-size: 200% 200%; animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-row div { height: 70px; border-radius: 10px; background: var(--surface); border: 2px dashed var(--line); }
.mock-row div:nth-child(2) { background: color-mix(in srgb, var(--fun-mango) 30%, var(--surface)); }
.mock-cart { position: absolute; right: 14px; bottom: 14px; display: grid; gap: 0; padding: 8px 12px; border-radius: 12px; background: var(--fun-mint); color: #08241e; border: 2px solid #1b1533; box-shadow: 3px 3px 0 #1b1533; font-size: 13px; line-height: 18px; animation: ping 4s ease-in-out infinite; }
.mock-cart b { font: 600 14px/18px var(--display); }
@keyframes ping { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(1.12) rotate(-3deg); } 80% { transform: scale(.98); } }
@media (max-width: 820px) { .fun-hero-grid { grid-template-columns: 1fr; padding-block: 40px 48px; } .browser { max-width: 360px; } }

/* Ribbon */
.ribbon { background: var(--fun-grape); color: #fff; border-block: 2px solid var(--stroke); transform: rotate(-1.2deg); margin: -10px -2vw 0; overflow: hidden; position: relative; z-index: 1; }
.ribbon-track { display: flex; gap: 36px; width: max-content; padding-block: 10px; animation: marquee 28s linear infinite; font: 600 16px/22px var(--display); }
.ribbon-track span::before { content: "✦"; margin-right: 36px; color: var(--fun-mango); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Switcher on this page */
.fun .switcher { margin-top: 18px; }

/* Build area */
.fun-build { padding-block: 40px 56px; }
.fun-head { display: grid; gap: 10px; margin-bottom: 18px; }
.fun-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; }
.fun-head p { color: var(--ink-muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip-fun { font: 600 15px/20px var(--display); padding: 9px 18px; border-radius: 999px; border: 2px solid var(--stroke); background: var(--bg); color: var(--ink-heading); cursor: pointer; box-shadow: 3px 3px 0 var(--pop-shadow); transition: transform .12s, box-shadow .12s, background-color .12s; }
.chip-fun:hover { transform: translate(-1px, -1px) rotate(-1deg); }
.chip-fun[aria-pressed="true"] { background: var(--fun-mango); color: #1b1533; }
.fun-group { margin-top: 30px; }
.fun-group[hidden] { display: none; }
.fun-label { display: flex; align-items: center; gap: 10px; font-size: 24px; line-height: 30px; margin-bottom: 14px; }
.fun-label span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--stroke); }
.dot-a { background: var(--fun-sky); } .dot-b { background: var(--fun-coral); } .dot-c { background: var(--fun-mango); } .dot-d { background: var(--fun-mint); }

/* Sticker cards */
.fun .card { border: 2px solid var(--stroke); border-radius: 20px; box-shadow: 5px 5px 0 var(--pop-shadow); transition: transform .18s cubic-bezier(.2, 1.4, .4, 1), box-shadow .18s, background-color .18s; }
.fun .card:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 8px 8px 0 var(--pop-shadow); }
.fun .cards > .card:nth-child(even):hover { transform: translate(-3px, -3px) rotate(.6deg); }
.fun .card.selected { background: color-mix(in srgb, var(--fun-mint) 18%, var(--bg)); border-color: var(--stroke); box-shadow: 6px 6px 0 var(--fun-coral); }
.fun .card h4 { font: 600 19px/26px var(--display); }
.fun .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--fun-sky) 22%, var(--bg)); color: var(--ink-heading); border: 2px solid var(--stroke); margin-top: -2px; }
.fun .cards > .card:nth-child(4n+2) .ico { background: color-mix(in srgb, var(--fun-coral) 22%, var(--bg)); }
.fun .cards > .card:nth-child(4n+3) .ico { background: color-mix(in srgb, var(--fun-mango) 30%, var(--bg)); }
.fun .cards > .card:nth-child(4n+4) .ico { background: color-mix(in srgb, var(--fun-mint) 26%, var(--bg)); }
.fun .ico svg { width: 22px; height: 22px; }
.fun .price { font: 700 26px/30px var(--display); color: var(--accent); }
.fun .card-foot { border-top: 2px dashed var(--line); }
.fun .select { border-radius: 999px; border: 2px solid var(--stroke); font: 600 15px/20px var(--display); color: var(--ink-heading); }
.fun .select:hover { background: var(--fun-mango); color: #1b1533; border-color: var(--stroke); }
.fun .card.selected .select { background: var(--fun-mint); color: #08241e; border-color: var(--stroke); }
.fun .includes { border: 2px dashed var(--stroke); border-radius: 20px; background: var(--surface); }

/* Steps */
.fun-steps { background: var(--surface); border-block: 2px solid var(--stroke); }
.fun-steps h2 { font-size: 32px; line-height: 38px; margin-bottom: 20px; }
.fun-steps ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: f; }
.fun-steps li { counter-increment: f; display: grid; gap: 6px; align-content: start; background: var(--bg); border: 2px solid var(--stroke); border-radius: 20px; padding: 18px; box-shadow: 4px 4px 0 var(--pop-shadow); min-width: 0; }
.fun-steps li::before { content: counter(f); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font: 700 18px/1 var(--display); color: #1b1533; background: var(--fun-mango); border: 2px solid #1b1533; }
.fun-steps li:nth-child(2)::before { background: var(--fun-sky); } .fun-steps li:nth-child(3)::before { background: var(--fun-mint); } .fun-steps li:nth-child(4)::before { background: var(--fun-coral); }
.fun-steps b { font: 600 20px/26px var(--display); color: var(--ink-heading); }
.fun-steps span { color: var(--ink-muted); }
@media (max-width: 820px) { .fun-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .fun-steps ol { grid-template-columns: 1fr; } }

.fun form { border: 2px solid var(--stroke); box-shadow: 6px 6px 0 var(--pop-shadow); }
.fun .channel { border: 2px solid var(--line); }
.fun .btn-primary { border-radius: 999px; }
.fun .cart { border-top: 3px solid var(--fun-mango); }

/* Confetti layer */
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }

@media (prefers-reduced-motion: reduce) {
  .blobs i, .sticker, .fun-hero h1 .w, .browser, .mock-hero, .mock-cart, .ribbon-track { animation: none; }
  .fun .card, .chip-fun, .btn-fun { transition: none; }
}
.fun main { overflow-x: clip; }
.fun-group[data-group="web store"] .cards { grid-template-columns: minmax(0, 620px); }
