/* ==========================================================================
   Sooz — Shared site styles
   Palette, typography, header, footer, buttons, modals, mobile menu, utilities
   ========================================================================== */

:root {
    /* Brand core (Sooz Brand Guidelines v1.0) */
    --sun-yellow: #FFD166;    /* Sun Yellow — secondary · callouts · warmth */
    --pop-orange: #FF6B35;    /* Pop Orange — primary accent · CTAs */
    --soft-red: #EF476F;      /* Soft Red — accent · pull quotes */
    --energy-blue: #118AB2;   /* Energy Blue — support · tags · cool moments */
    --deep-blue: #073B4C;     /* Deep Blue — primary ink · type · lines */
    --cream: #FFF9F0;         /* Cream — background · breathing room (55%) */
    --cream-soft: #F4EFE3;    /* derived — for reverse surfaces on logos */
    --ink: #073B4C;
    --muted: #4a5c66;         /* deep-blue tint for secondary body copy */
    --hairline: rgba(7, 59, 76, 0.12);
    --dashed: rgba(7, 59, 76, 0.25); /* "dashed rules" per §13 */
    --shadow-sm: 4px 4px 0px var(--deep-blue);
    --shadow-md: 6px 6px 0px var(--deep-blue);
    --radius-blob: 255px 15px 225px 15px / 15px 225px 15px 255px;
    --radius-blob-rev: 15px 225px 15px 255px / 225px 15px 255px 15px;
    --font-head: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --font-scribble: 'Patrick Hand', cursive;
    --container: 1200px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.55;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle paper grain — overlays everything */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.1;
    color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }

p { line-height: 1.55; }

/* Dashed rule — per §13 "dashed hairlines separate sections" */
.dashed-rule {
    border: 0;
    border-top: 2px dashed var(--dashed);
    max-width: 1100px;
    margin: 0 auto;
}

.scribble-text {
    font-family: var(--font-scribble);
    color: var(--pop-orange);
}

.highlight {
    color: var(--soft-red);
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -5%;
    width: 110%;
    height: 120%;
    border: 3px solid var(--energy-blue);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    z-index: -1;
    transform: rotate(-2deg);
    animation: blob-wobble 4s infinite ease-in-out;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--deep-blue);
    border-radius: var(--radius-blob);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease, color 0.2s ease;
    background: var(--pop-orange);
    color: #fff;
    box-shadow: var(--shadow-sm);
    text-align: center;
    line-height: 1.2;
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-md);
    background: var(--sun-yellow);
    color: var(--deep-blue);
}

.btn-secondary {
    background: var(--cream);
    color: var(--deep-blue);
}

.btn-secondary:hover {
    background: var(--energy-blue);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--deep-blue);
    box-shadow: none;
    border-color: var(--deep-blue);
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 1rem;
}

.btn-ghost:hover {
    background: var(--deep-blue);
    color: var(--cream);
    transform: none;
    box-shadow: none;
}

/* Used by old templates — preserved as alias */
.cta-button { /* same look as .btn */
    display: inline-block;
    padding: 15px 40px;
    background: var(--pop-orange);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-blob);
    border: 2px solid var(--deep-blue);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    font-family: var(--font-head);
}

.cta-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-md);
    background: var(--sun-yellow);
    color: var(--deep-blue);
}

/* ---------- Header ---------- */
header.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
    position: sticky;
    top: 0;
    background: rgba(255, 249, 240, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    border-bottom: 1px solid var(--hairline);
    transition: padding .35s cubic-bezier(.4, 0, .2, 1),
                box-shadow .35s ease,
                background-color .35s ease;
}

header.site-header.is-scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
    background: rgba(255, 249, 240, 0.96);
    box-shadow: 0 6px 20px rgba(7, 59, 76, 0.08);
}

.logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.logo-droplet,
.logo-letters {
    display: block;
    height: 36px;
    width: auto;
    will-change: transform, max-width, opacity;
}

.logo-droplet {
    flex-shrink: 0;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.logo-letters {
    max-width: 220px;
    opacity: 1;
    transform: translateX(0);
    transform-origin: left center;
    /* Easing: in-out for a calm condense, quicker fade than geometry */
    transition:
        max-width   .42s cubic-bezier(.4, 0, .2, 1),
        opacity     .22s ease,
        transform   .42s cubic-bezier(.4, 0, .2, 1),
        margin-left .42s cubic-bezier(.4, 0, .2, 1);
}

/* When page has scrolled, collapse the wordmark into the droplet. */
header.site-header.is-scrolled .logo-letters {
    max-width: 0;
    opacity: 0;
    transform: translateX(-8px);
    margin-left: -10px; /* absorbs the flex gap so the droplet sits flush */
}

header.site-header.is-scrolled .logo-droplet {
    transform: scale(1.05);
}

.logo:hover .logo-droplet {
    transform: scale(1.12) rotate(-8deg);
}

@media (max-width: 540px) {
    .logo-droplet,
    .logo-letters { height: 30px; }
    .logo-letters { max-width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
    .logo-droplet,
    .logo-letters { transition: none; }
}

nav.primary-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}

nav.primary-nav a {
    text-decoration: none;
    color: var(--deep-blue);
    font-weight: 700;
    font-size: 0.98rem;
    position: relative;
    transition: color 0.2s ease;
}

nav.primary-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 100%;
    height: 6px;
    background-color: var(--soft-red);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 7' preserveAspectRatio='none'%3E%3Cpath d='M0 3.5 Q5 1 10 3.5 Q15 6 20 3.5 Q25 1 30 3.5 Q35 6 40 3.5 Q45 1 50 3.5 Q55 6 60 3.5 Q65 1 70 3.5 Q75 6 80 3.5 Q85 1 90 3.5 Q95 6 100 3.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 7' preserveAspectRatio='none'%3E%3Cpath d='M0 3.5 Q5 1 10 3.5 Q15 6 20 3.5 Q25 1 30 3.5 Q35 6 40 3.5 Q45 1 50 3.5 Q55 6 60 3.5 Q65 1 70 3.5 Q75 6 80 3.5 Q85 1 90 3.5 Q95 6 100 3.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    clip-path: inset(0 0 0 100%);
    transition: clip-path 0.25s ease;
}

nav.primary-nav a:hover { color: var(--soft-red); }
nav.primary-nav a:hover::after,
nav.primary-nav a[aria-current="page"]::after {
    clip-path: inset(0 0 0 0);
}

nav.primary-nav a[aria-current="page"] { color: var(--soft-red); }

.cart-btn {
    background: var(--deep-blue);
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.cart-btn:hover {
    transform: scale(1.05) rotate(-2deg);
    background: var(--pop-orange);
}

/* ---------- Hamburger / Mobile menu ---------- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--deep-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 59, 76, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mobile-menu-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-card {
    background: var(--cream);
    border-radius: 24px;
    padding: 50px 40px 40px;
    max-width: 360px;
    width: 88%;
    position: relative;
    box-shadow: 0 30px 80px rgba(7, 59, 76, 0.3), 0 0 0 3px var(--pop-orange);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.mobile-menu-overlay.visible .mobile-menu-card {
    transform: translateY(0) scale(1);
}

.mobile-menu-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s, transform 0.2s;
}

.mobile-menu-close:hover {
    color: var(--soft-red);
    transform: scale(1.2) rotate(15deg);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav a {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--deep-blue);
    text-decoration: none;
    padding: 12px 8px;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.mobile-nav a:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--pop-orange);
    transform: translateX(4px);
}

.mobile-nav .mobile-cta {
    margin-top: 14px;
    background: var(--pop-orange);
    color: #fff;
    border-radius: 14px;
    padding: 14px 8px;
    font-weight: 700;
    transition: background 0.2s, transform 0.15s;
}

.mobile-nav .mobile-cta:hover {
    background: var(--soft-red);
    color: #fff;
    transform: scale(1.03);
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
    padding: 70px 5% 50px;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, rgba(255, 209, 102, 0.35), transparent 65%);
    position: relative;
}

.page-hero .eyebrow {
    font-family: var(--font-scribble);
    color: var(--pop-orange);
    font-size: 1.25rem;
    margin-bottom: 8px;
    display: inline-block;
}

.page-hero h1 {
    margin-bottom: 16px;
}

.page-hero h1 span { color: var(--pop-orange); }

.page-hero p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Footer ---------- */
footer.site-footer {
    background: var(--deep-blue);
    color: var(--cream);
    padding: 64px 5% 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer.site-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 24px;
    background: var(--cream);
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24' preserveAspectRatio='none'><path d='M0,0 Q60,24 120,12 T240,12 T360,12 T480,12 T600,12 T720,12 T840,12 T960,12 T1080,12 T1200,12 L1200,24 L0,24 Z' fill='black'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24' preserveAspectRatio='none'><path d='M0,0 Q60,24 120,12 T240,12 T360,12 T480,12 T600,12 T720,12 T840,12 T960,12 T1080,12 T1200,12 L1200,24 L0,24 Z' fill='black'/></svg>");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

footer.site-footer .footer-inner {
    max-width: var(--container);
    margin: 0 auto;
}

footer.site-footer .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--cream);
}

footer.site-footer .footer-brand img {
    height: 40px;
    width: auto;
    max-width: 220px;
    opacity: 1;
}

footer.site-footer .footer-tag {
    color: rgba(255, 249, 240, 0.85);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

footer.site-footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 28px;
    margin: 22px 0 26px;
}

footer.site-footer nav a {
    color: var(--cream);
    opacity: 0.85;
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 0.95rem;
    padding: 6px 4px;
    transition: opacity 0.2s ease, color 0.2s ease;
}

footer.site-footer nav a:hover {
    opacity: 1;
    color: var(--sun-yellow);
}

footer.site-footer .legal {
    font-size: 0.78rem;
    opacity: 0.65;
    margin-top: 16px;
}

footer.site-footer .socials {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 6px;
}

footer.site-footer .socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255, 249, 240, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

footer.site-footer .socials a:hover {
    background: var(--pop-orange);
    border-color: var(--pop-orange);
    transform: translateY(-3px) rotate(-6deg);
}

footer.site-footer .socials svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ---------- Hot Mess Club full-screen popup ---------- */
.hmc-overlay {
    position: fixed;
    inset: 0;
    background: var(--deep-blue);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,107,53,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,209,102,0.12) 0%, transparent 50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px 80px;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.hmc-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.hmc-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1;
}
.hmc-close:hover { color: #fff; }

.hmc-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 480px;
}

.hmc-eyebrow {
    font-family: var(--font-scribble);
    color: var(--sun-yellow);
    font-size: 1rem;
    margin-bottom: 6px;
}

.hmc-title {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 8px;
}
.hmc-title span { color: var(--pop-orange); }

.hmc-desc {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.hmc-card-wrap {
    position: relative;
    width: min(100%, 300px);
    aspect-ratio: 5 / 7;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 6px 6px 0 var(--pop-orange);
    margin-bottom: 20px;
    cursor: url("images/sooz-droplet-reverse.svg") 50 68, default;
    flex-shrink: 0;
}

.hmc-card-wrap.hmc-card-wrap--revealed {
    cursor: default;
}

.hmc-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hmc-number-overlay {
    position: absolute;
    bottom: 14px;
    left: 14px;
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    z-index: 2;
    pointer-events: none;
}
.hmc-number-overlay.revealed {
    animation: hmc-num-pop 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes hmc-num-pop {
    0%   { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}

.hmc-scratch-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    touch-action: none;
    cursor: inherit;
}

.hmc-claim-btn {
    display: none;
    background: var(--pop-orange);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: var(--font-head);
    font-size: 1.1rem;
    padding: 14px 32px;
    cursor: pointer;
    box-shadow: 4px 4px 0 rgba(255,255,255,0.2);
    transition: transform 0.2s, background 0.2s;
    margin-bottom: 16px;
}
.hmc-claim-btn.visible { display: block; }
.hmc-claim-btn:hover { background: var(--soft-red); transform: translateY(-2px); }

.hmc-claim-form {
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    margin-bottom: 16px;
}
.hmc-claim-form.visible { display: flex; }

.hmc-form-error {
    color: var(--sun-yellow);
    font-size: 0.88rem;
    min-height: 1.2em;
    margin: 0;
}

.hmc-email-label {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sun-yellow);
    text-align: center;
    width: 100%;
}

.hmc-claim-form input[type="email"] {
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
.hmc-claim-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.hmc-claim-form input[type="email"]:focus { border-color: var(--pop-orange); }

.hmc-claim-form button[type="submit"] {
    padding: 14px;
    background: var(--pop-orange);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: var(--font-head);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.hmc-claim-form button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }
.hmc-claim-form button[type="submit"]:not(:disabled):hover { background: var(--soft-red); }

.hmc-action-row {
    display: none;
    gap: 12px;
    margin-bottom: 16px;
}
.hmc-action-row.visible { display: flex; }

.hmc-action-btn {
    padding: 10px 22px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    font-family: var(--font-head);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.hmc-action-btn:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.45); }

.hmc-skip {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.28);
    font-family: var(--font-body);
    font-size: 0.76rem;
    cursor: pointer;
    text-decoration: underline dotted;
    transition: color 0.2s;
    white-space: nowrap;
}
.hmc-skip:hover { color: rgba(255,255,255,0.55); }

/* ---------- Newsletter strip (used on multiple pages) ---------- */
.newsletter {
    background: var(--soft-red);
    color: #fff;
    padding: 96px 5% 80px;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 100%);
    margin-top: -40px;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.newsletter h2 {
    color: #fff;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    margin-bottom: 10px;
}

.newsletter p { color: #fff; opacity: 0.95; }

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.newsletter input {
    padding: 15px 25px;
    border-radius: var(--radius-blob);
    border: 3px solid var(--deep-blue);
    flex: 1;
    min-width: 240px;
    max-width: 340px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    color: var(--deep-blue);
    background: #fff;
}

.newsletter input:focus { border-color: var(--sun-yellow); }

.newsletter button {
    padding: 15px 30px;
    background: var(--sun-yellow);
    color: var(--deep-blue);
    font-weight: 700;
    border: 3px solid var(--deep-blue);
    border-radius: var(--radius-blob-rev);
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.newsletter button:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-md);
    background: #fff;
}

/* ---------- Section wrappers ---------- */
.section {
    padding: 80px 5%;
}

.section-tight {
    padding: 56px 5%;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    margin-bottom: 14px;
    color: var(--deep-blue);
}

.section-sub {
    text-align: center;
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

/* ---------- Animations ---------- */
@keyframes float {
    0%   { transform: translateY(0px) rotate(0deg); }
    50%  { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes blob-wobble {
    0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes tilt-wobble {
    0%, 100% { transform: rotate(-5deg); }
    50%      { transform: rotate(5deg); }
}

@keyframes pop-in {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

@keyframes flame-flicker {
    0%, 100% { transform: scale(1)   rotate(-2deg); opacity: 0.9; }
    50%      { transform: scale(1.08) rotate(3deg);  opacity: 1;   }
}

@keyframes drift {
    0%   { transform: translate(0, 0) rotate(0deg);   opacity: 0; }
    20%  { opacity: 0.85; }
    100% { transform: translate(var(--dx, 30px), var(--dy, -120px)) rotate(var(--rot, 25deg)); opacity: 0; }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes shimmer {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Tags / badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sun-yellow);
    color: var(--deep-blue);
    font-family: var(--font-scribble);
    font-size: 0.95rem;
    padding: 4px 14px;
    border-radius: 20px;
    transform: rotate(-1.5deg);
}

.badge-blue { background: var(--energy-blue); color: #fff; }
.badge-red  { background: var(--soft-red);    color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    nav.primary-nav { display: none; }
    .hamburger { display: flex; }
    .cart-btn { display: none; }
}

@media (max-width: 768px) {
    .section { padding: 60px 5%; }
    .newsletter { clip-path: none; margin-top: 0; padding: 70px 5%; }
}

@media (max-width: 540px) {
    header.site-header { padding: 14px 5%; }
    .page-hero { padding: 50px 5% 40px; }
}

/* Hero entrance — staggered fade-up on page load */
@keyframes hero-rise {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-text .scribble-text { animation: hero-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: 0.08s; }
.hero-text h1             { animation: hero-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: 0.2s; }
.hero-text .lead          { animation: hero-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: 0.34s; }
.hero-text .hero-cta-row  { animation: hero-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: 0.46s; }
.hero-text .hero-meta     { animation: hero-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: 0.58s; }
.hero-image               { animation: hero-rise 0.9s  cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: 0.12s; }

/* Section title orange accent underline */
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--pop-orange);
    border-radius: 3px;
    margin: 10px auto 0;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   Referee banner
   ======================================== */
.ref-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: var(--pop-orange);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.ref-banner.visible {
    transform: translateY(0);
}
.ref-banner-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.75;
    line-height: 1;
    margin-left: 8px;
}
.ref-banner-close:hover {
    opacity: 1;
}

/* ========================================
   Referral popup
   ======================================== */
.ref-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 59, 76, 0.72);
    z-index: 10500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.ref-overlay.visible {
    opacity: 1;
    pointer-events: all;
}
.ref-content {
    background: var(--cream);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 2.5px solid var(--deep-blue);
    padding: 36px 32px 28px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
}
.ref-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ink);
    opacity: 0.55;
    line-height: 1;
    padding: 4px;
}
.ref-close:hover { opacity: 1; }
.ref-eyebrow {
    font-family: var(--font-scribble);
    font-size: 0.95rem;
    color: var(--pop-orange);
    margin: 0 0 6px;
}
.ref-title {
    font-family: var(--font-head);
    font-size: 1.8rem;
    color: var(--deep-blue);
    margin: 0 0 8px;
    line-height: 1.15;
}
.ref-title span {
    color: var(--pop-orange);
}
.ref-desc {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0 0 20px;
}
.ref-skip {
    margin-top: 16px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: rgba(255,249,240,0.55);
    cursor: pointer;
    text-decoration: underline;
}
.ref-skip:hover { color: var(--cream); }

/* State 1: has link */
.ref-state-link {
    display: none;
}
.ref-state-link.visible {
    display: block;
}
.ref-link-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
}
.ref-link-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid var(--deep-blue);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 12px;
}
.ref-link-text {
    flex: 1;
    font-size: 0.8rem;
    color: var(--deep-blue);
    word-break: break-all;
    text-align: left;
    font-family: var(--font-body);
}
.ref-copy-btn {
    background: var(--deep-blue);
    color: var(--cream);
    border: none;
    border-radius: 7px;
    padding: 6px 14px;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.ref-copy-btn:hover {
    background: var(--pop-orange);
}
.ref-count {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0 0 8px;
}
.ref-leaderboard-link {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.9rem;
    color: var(--pop-orange);
    margin: 0 0 16px;
}
.ref-name-form {
    border-top: 1px dashed var(--hairline);
    padding-top: 16px;
    margin-top: 8px;
}
.ref-name-label {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0 0 8px;
}
.ref-name-form input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 2px solid var(--hairline);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--ink);
    background: #fff;
}
.ref-name-form input[type="text"]:focus {
    outline: none;
    border-color: var(--pop-orange);
}
.ref-name-form button[type="submit"] {
    background: var(--pop-orange);
    color: #fff;
    border: 2px solid var(--deep-blue);
    border-radius: 10px;
    padding: 8px 20px;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

/* State 2: email form */
.ref-state-form {
    display: none;
}
.ref-state-form.visible {
    display: block;
}
.ref-form-desc {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0 0 14px;
}
.ref-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ref-form-error {
    font-size: 0.85rem;
    color: var(--soft-red);
    min-height: 1.2em;
    margin: 0;
}
.ref-form input {
    padding: 12px 14px;
    border: 2px solid var(--deep-blue);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    background: #fff;
    box-sizing: border-box;
}
.ref-form input:focus {
    outline: none;
    border-color: var(--pop-orange);
}
.ref-form button[type="submit"] {
    background: var(--pop-orange);
    color: #fff;
    border: 2.5px solid var(--deep-blue);
    border-radius: 10px;
    padding: 13px;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s;
}
.ref-form button[type="submit"]:hover:not(:disabled) {
    background: var(--deep-blue);
}
.ref-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .ref-content {
        padding: 28px 20px 22px;
    }
    .ref-title {
        font-size: 1.5rem;
    }
}
