/* Colourfunn — colourful & fun theme */
:root {
  --ink: #2a1846;
  --ink-soft: #4b3a66;
  --pink: #ff5fa2;
  --pink-deep: #c2185b;
  --yellow: #ffd23f;
  --sun: #fff3b8;
  --sky: #4cc9f0;
  --sky-pale: #dff6ff;
  --mint: #3ddc97;
  --mint-pale: #dcfbea;
  --orange: #ff8c42;
  --purple: #8b5cf6;
  --lilac: #f1e8ff;
  --cream: #fffaf0;
  --r: 22px;
  --display: "Baloo 2", "Fredoka", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--cream); overflow-x: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .4em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; position: relative; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px dashed var(--purple); outline-offset: 3px; }

/* Rainbow word */
.rainbow span:nth-child(5n+1) { color: var(--pink-deep); }
.rainbow span:nth-child(5n+2) { color: #e86a00; }
.rainbow span:nth-child(5n+3) { color: #0a8fbf; }
.rainbow span:nth-child(5n+4) { color: #0f9d63; }
.rainbow span:nth-child(5n+5) { color: #7a3fe0; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,250,240,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 3px dotted #ffc2dc; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.7rem; text-decoration: none; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 8px; }
.logo svg { width: 30px; height: 30px; }
.nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav ul a { display: inline-block; padding: 8px 14px; border-radius: 999px; font-weight: 800; text-decoration: none; transition: background .2s, transform .2s; }
.nav ul a:hover { background: var(--sun); transform: rotate(-3deg); }
@media (min-width: 760px) { .nav ul { display: flex; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border: 3px solid var(--ink); border-radius: 999px; background: var(--pink-deep); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1; text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 var(--ink); transition: transform .18s cubic-bezier(.34,1.8,.64,1), box-shadow .18s; }
.btn:hover { transform: translateY(-3px) rotate(-2deg) scale(1.04); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn--sun { background: var(--yellow); color: var(--ink); }
.btn--sky { background: #0a6fa3; }
.btn--mint { background: var(--mint); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 1rem; }

/* Hero */
.hero { position: relative; background: var(--yellow); padding: 40px 0 70px; overflow: hidden; }
.hero .wrap { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 64px 0 96px; } .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 48px; } }
.badge { display: inline-block; background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: .92rem; transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--pink); margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.5rem, 7.5vw, 4.4rem); }
.hero h1 .hl { background: linear-gradient(transparent 58%, #fff 58%, #fff 90%, transparent 90%); padding: 0 .1em; }
.hero__sub { font-size: 1.18rem; font-weight: 600; max-width: 34ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { background: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .92rem; border: 2px solid var(--ink); }
.hero__art { position: relative; justify-self: center; width: min(100%, 520px); }
.hero__frame { border: 5px solid var(--ink); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; overflow: hidden; box-shadow: 12px 12px 0 var(--pink); transform: rotate(2deg); aspect-ratio: 16 / 11; background: #fff; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.sticker { position: absolute; font-family: var(--display); font-weight: 800; text-align: center; line-height: 1; border: 3px solid var(--ink); border-radius: 50%; display: grid; place-items: center; }
.sticker--price { right: -6px; bottom: -14px; width: 104px; height: 104px; background: var(--sky); color: var(--ink); font-size: 1.05rem; transform: rotate(10deg); animation: wobble 4s ease-in-out infinite; }
.sticker--price b { display: block; font-size: 1.9rem; }
@keyframes wobble { 0%,100% { transform: rotate(10deg); } 50% { transform: rotate(-4deg) scale(1.05); } }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(var(--r0, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--r0, 0deg)); } }
.doodle { position: absolute; pointer-events: none; animation: floaty 6s ease-in-out infinite; }

/* Waves */
.wave { display: block; width: 100%; height: 48px; position: absolute; left: 0; bottom: -1px; }
@media (min-width: 900px) { .wave { height: 72px; } }

/* Sections */
.sec { position: relative; padding: 56px 0 96px; }
@media (min-width: 900px) { .sec { padding: 80px 0 120px; } }
.sec--pink { background: #ffe3ef; }
.sec--sky { background: var(--sky-pale); }
.sec--mint { background: var(--mint-pale); }
.sec--lilac { background: var(--lilac); }
.head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.eyebrow { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1rem; padding: 2px 14px; border-radius: 999px; background: var(--ink); color: #fff; transform: rotate(-2deg); margin-bottom: 12px; }
.head h2 { font-size: clamp(2rem, 5.5vw, 3rem); }
.head p { font-size: 1.1rem; color: var(--ink-soft); font-weight: 600; }

/* Product cards */
.shop { display: grid; gap: 30px; }
@media (min-width: 720px) { .shop { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .shop { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; background: #fff; border: 4px solid var(--ink); border-radius: var(--r); padding: 18px 18px 22px; display: flex; flex-direction: column; transition: transform .25s cubic-bezier(.34,1.6,.64,1), box-shadow .25s; }
.card:nth-child(1) { transform: rotate(-1.6deg); box-shadow: 10px 10px 0 var(--pink); }
.card:nth-child(2) { transform: rotate(1.4deg); box-shadow: 10px 10px 0 var(--sky); }
.card:nth-child(3) { transform: rotate(-.8deg); box-shadow: 10px 10px 0 var(--orange); background: #fffbe6; }
.card:hover { transform: rotate(0) translateY(-6px); }
.card__media { margin: 0 0 16px; border-radius: 14px; overflow: hidden; background: var(--sun); aspect-ratio: 4 / 3.4; display: grid; place-items: center; padding: 12px; }
.card__media img { height: 100%; width: auto; border-radius: 8px; box-shadow: 0 6px 16px rgba(42,24,70,.25); }
.card__duo { position: relative; display: flex; justify-content: center; height: 100%; }
.card__duo img:first-child { transform: rotate(-7deg); z-index: 1; }
.card__duo img:last-child { transform: rotate(7deg); margin-left: -38px; }
.card h3 { font-size: 1.75rem; margin-bottom: .25em; }
.card p { color: var(--ink-soft); }
.price { font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--pink-deep); margin: 6px 0 12px; }
.price small { font-family: var(--body); font-size: .95rem; font-weight: 800; color: var(--ink); background: var(--mint); border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: middle; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.tags li { font-size: .85rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.tags li:nth-child(1) { background: #ffd6e7; }
.tags li:nth-child(2) { background: #d4f3ff; }
.tags li:nth-child(3) { background: #fff0b3; }
.card .btn { margin-top: auto; align-self: flex-start; }
.ribbon { position: absolute; top: -16px; right: 14px; background: var(--mint); color: var(--ink); border: 3px solid var(--ink); font-family: var(--display); font-weight: 800; padding: 2px 14px; border-radius: 999px; transform: rotate(6deg); }

/* Pay */
.pick { text-align: center; font-weight: 700; font-size: 1.1rem; background: #fff; border: 3px dashed var(--sky); border-radius: var(--r); padding: 22px; max-width: 640px; margin: 0 auto; }
.pick[hidden] { display: none; }
.x-pay { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 22px; border: 4px solid var(--ink); border-radius: 28px; background: #fff; box-shadow: 10px 10px 0 var(--purple); max-width: 900px; margin: 0 auto; scroll-margin-top: 84px; }
.x-pay[hidden] { display: none; }
@media (min-width: 720px) { .x-pay { grid-template-columns: minmax(0, 1fr) auto; gap: 24px 36px; padding: 30px; } }
.x-pay__info { display: grid; gap: 10px; justify-items: start; }
.x-pay__eyebrow { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--ink-soft); }
.x-pay__name { margin: 0; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.1; }
.x-pay__amount { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--pink-deep); }
.x-pay__go { width: 100%; }
@media (min-width: 720px) { .x-pay__go { width: auto; } }
.x-pay__switch { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink); font: 700 .98rem var(--body); text-decoration: underline wavy var(--orange); text-underline-offset: 5px; cursor: pointer; }
.x-pay__switch:hover { color: var(--pink-deep); }
.x-pay__note { margin: 0; font-weight: 700; color: #0b6b44; min-height: 1em; }
.x-pay__qr { margin: 0; display: grid; gap: 10px; justify-items: center; justify-self: center; max-width: 250px; }
.x-pay__qr img { width: 200px; height: 200px; object-fit: contain; padding: 10px; border-radius: 18px; background: #fff; border: 4px solid var(--sky); }
@media (min-width: 720px) { .x-pay__qr img { width: 220px; height: 220px; } }
.x-pay__qr img[hidden] { display: none; }
.x-pay__qr figcaption { font-size: .88rem; font-weight: 700; color: var(--ink-soft); text-align: center; }
.x-pay__after { grid-column: 1 / -1; display: grid; gap: 12px; justify-items: start; padding: 18px; border-radius: 18px; background: var(--sun); border: 3px dashed var(--orange); }
.x-pay__after p { margin: 0; max-width: 68ch; }

/* Steps */
.steps { display: grid; gap: 22px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: #fff; border: 3px solid var(--ink); border-radius: var(--r); padding: 22px 20px 20px; position: relative; }
.step__num { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.6rem; margin-bottom: 12px; }
.step:nth-child(1) .step__num { background: var(--pink); }
.step:nth-child(2) .step__num { background: var(--yellow); }
.step:nth-child(3) .step__num { background: var(--sky); }
.step:nth-child(4) .step__num { background: var(--mint); }
.step h3 { font-size: 1.35rem; }
.step__label { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin: 0 0 4px; }
.step p { margin: 0; color: var(--ink-soft); }
.step .amts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.step .amts li { background: var(--sun); border-radius: 999px; padding: 3px 12px; font-weight: 700; }
.link { color: #0a5f8c; font-weight: 800; text-decoration: underline wavy #4cc9f0; text-underline-offset: 4px; word-break: break-word; }

/* FAQ */
.faq { display: grid; gap: 18px; }
@media (min-width: 720px) { .faq { grid-template-columns: repeat(2, 1fr); } }
.faq > div { background: #fff; border-radius: var(--r); padding: 22px; border: 3px solid var(--ink); }
.faq > div:nth-child(1) { box-shadow: 6px 6px 0 var(--pink); }
.faq > div:nth-child(2) { box-shadow: 6px 6px 0 var(--yellow); }
.faq > div:nth-child(3) { box-shadow: 6px 6px 0 var(--sky); }
.faq > div:nth-child(4) { box-shadow: 6px 6px 0 var(--mint); }
.faq h3 { font-size: 1.4rem; }
.faq p { margin: 0; color: var(--ink-soft); }

/* Footer */
.foot { background: var(--ink); color: #fff; padding: 40px 0 48px; text-align: center; position: relative; }
.foot .logo { font-size: 2rem; margin-bottom: 8px; }
.foot .rainbow span:nth-child(5n+1) { color: #ff8fc0; }
.foot .rainbow span:nth-child(5n+2) { color: var(--yellow); }
.foot .rainbow span:nth-child(5n+3) { color: var(--sky); }
.foot .rainbow span:nth-child(5n+4) { color: var(--mint); }
.foot .rainbow span:nth-child(5n+5) { color: #c4a8ff; }
.foot p { margin: 6px 0; }
.foot a.link { color: var(--yellow); text-decoration-color: var(--pink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.foot nav a { color: #fff; font-weight: 800; padding: 6px 14px; border-radius: 999px; border: 2px solid rgba(255,255,255,.4); text-decoration: none; }
.foot nav a:hover { background: var(--pink-deep); border-color: var(--pink-deep); }

/* fixes */
.head .eyebrow { color: #fff; }
.btn { line-height: 1.15; padding: 10px 26px; text-align: center; }
.btn--sm { padding: 6px 18px; }
.card__duo { align-items: center; width: 100%; }
.card__duo img { height: 92%; width: auto; max-width: 52%; object-fit: cover; }
.card__duo img:last-child { margin-left: -14%; }
.doodle--circle { bottom: auto !important; top: 52%; left: 47% !important; }
@media (max-width: 899px) { .doodle--circle, .doodle--spark { display: none; } .badge { font-size: .85rem; } }
.card .price { color: var(--pink-deep); }
.card__media { display: flex; justify-content: center; align-items: center; aspect-ratio: auto; height: 300px; }
.card__media > img { height: 100%; width: auto; object-fit: contain; }
