/* ==========================================================================
   Paintball Hotline — mobile-first stylesheet
   Brand: black / red / yellow with paint-splatter accents
   ========================================================================== */

:root {
    --black: #0b0b0b;
    --ink: #161616;
    --ink-2: #222;
    --red: #e3120b;
    --red-dark: #b10d07;
    --yellow: #ffd60a;
    --yellow-dark: #e6bc00;
    --white: #ffffff;
    --paper: #f6f4ef;
    --muted: #6b6b6b;
    --line: #e4e1da;

    /* Card header colours: all pass ≥4.4:1 with white text (large text needs 3:1) */
    --green: #1b8a2e;
    --blue: #1667e0;
    --orange: #c25400;
    --purple: #7b3fe4;

    --font-head: 'Anton', 'Impact', 'Arial Narrow Bold', sans-serif;
    --font-fun: 'Bangers', 'Impact', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .18);
    --gutter: 16px;
}

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

/* scroll-padding keeps anchor targets and keyboard focus clear of the sticky header */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

a, button, summary, label, input, select, textarea { touch-action: manipulation; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 800px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--black); padding: 8px 14px; font-weight: 800; }
.skip-link:focus { left: 8px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 48px; padding: .7em 1.4em;
    font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
    border: 0; border-radius: 10px; cursor: pointer;
    transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
/* Default site button: the painted red plate (assets/img/ui/button.webp).
   border-image 9-slice keeps both splattered ends (and the chamfer + yellow strip) at
   their natural proportions and stretches only the plain middle, so it works at any
   width. Cap widths scale with --btn-h (left cap 1.16×h, right cap 1.27×h). */
.btn-red, .btn-yellow {
    --btn-h: 52px;
    min-height: var(--btn-h);
    padding-inline: calc(var(--btn-h) * .95);
    color: var(--white);
    background: none;
    border-radius: 0;
    border: 0 solid transparent;
    border-image: url("../img/ui/button.webp") 0 213 0 195 fill / 0 calc(var(--btn-h) * 1.27) 0 calc(var(--btn-h) * 1.16) stretch;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 12px rgba(0, 0, 0, .25);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .28));
}
.btn-red:hover, .btn-yellow:hover { color: var(--white); }
.btn-red::after, .btn-yellow::after { display: none; } /* rectangular light sweep would spill past the plate's cut corner */
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--yellow); }
.btn-outline:hover { background: var(--yellow); color: var(--black); }
.btn-lg { font-size: 1.3rem; padding: .8em 1.6em; }
.btn-red.btn-lg, .btn-yellow.btn-lg { --btn-h: 60px; padding-block: .6em; }
.btn-block { width: 100%; }

/* ---------- Logo (the brand wordmark artwork) ---------- */
.logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.logo img { display: block; height: 42px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.logo-sm img { height: 38px; }
.logo-footer img { height: 64px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); border-bottom: 3px solid var(--red); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-buy, .nav-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px;
    background: none; border: 0; color: var(--white); border-radius: 10px; cursor: pointer;
}
.header-buy:hover, .nav-toggle:hover { color: var(--yellow); background: rgba(255, 255, 255, .06); }
.header-buy .icon, .nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.main-nav {
    position: fixed; inset: 67px 0 auto 0; z-index: 49;
    background: var(--black); border-bottom: 3px solid var(--red);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-120%); visibility: hidden;
    transition: transform .22s ease, visibility .22s;
    max-height: calc(100vh - 67px); max-height: calc(100dvh - 67px); overflow-y: auto;
}
.nav-open .main-nav { transform: none; visibility: visible; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li a {
    display: block; padding: 14px 4px; color: var(--white); text-decoration: none;
    font-family: var(--font-head); font-size: 1.3rem; letter-spacing: .03em; text-transform: uppercase;
    border-bottom: 1px solid #262626;
}
.main-nav li a:hover, .main-nav li a.active { color: var(--yellow); }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--yellow); font-weight: 800; text-decoration: none; font-size: 1.1rem; }
.nav-phone:hover { color: var(--white); }
.nav-open { overflow: hidden; }
/* Book a Game: full-width painted button inside the phone menu, compact one in the desktop bar */
.nav-cta { width: 100%; margin-top: 18px; }
.header-cta { display: none; }

/* ---------- Splatter background ---------- */
.splat-bg { position: relative; isolation: isolate; overflow: hidden; background: var(--black); color: var(--white); }
/* Glowing paint bursts (supplied artwork): red top-left, yellow bottom-right */
.splat-bg::before, .splat-bg::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    background: url("../img/hero/glow-red-480.webp") no-repeat center / contain;
    opacity: .85;
}
.splat-bg::before { width: 260px; height: 192px; left: -110px; top: -70px; }
.splat-bg::after { width: 240px; height: 178px; right: -95px; bottom: -80px; background-image: url("../img/hero/glow-yellow-480.webp"); }

/* Faint black ink texture on light sections */
.ink-bg { position: relative; isolation: isolate; overflow: hidden; }
.ink-bg::before, .ink-bg::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    background: url("../img/hero/splat-black-600.webp") no-repeat center / contain;
    opacity: .07;
}
.ink-bg::before { width: 520px; height: 264px; left: -170px; top: 30px; transform: rotate(-14deg); }
.ink-bg::after { width: 460px; height: 233px; right: -150px; bottom: 40px; transform: rotate(168deg); }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-title {
    font-family: var(--font-head); text-transform: uppercase; text-align: center;
    font-size: clamp(1.7rem, 6.5vw, 2.6rem); color: var(--black); margin-bottom: 8px;
}
.section-title--light { color: var(--white); }
.section-sub { text-align: center; max-width: 40em; margin: 0 auto 28px; color: var(--muted); font-weight: 600; }

.notice { background: #fff8d6; border: 2px solid var(--yellow); border-radius: 10px; padding: 14px 16px; text-align: center; color: var(--ink); }

/* ---------- Reassurance strip (under the home hero) ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-list {
    list-style: none; margin: 0 auto; padding-top: 22px; padding-bottom: 22px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px;
}
.trust-item { display: flex; align-items: center; gap: 12px; font-size: .9rem; line-height: 1.3; color: var(--muted); }
.trust-item strong { display: block; color: var(--ink); font-size: .95rem; }
.trust-icon {
    display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%;
    background: var(--black); color: var(--yellow);
}
.trust-icon .icon { width: 20px; height: 20px; }
@media (min-width: 900px) {
    .trust-list { grid-template-columns: repeat(4, 1fr); gap: 0; }
    .trust-item { padding: 0 18px; }
    .trust-item + .trust-item { border-left: 1px solid var(--line); }
}

/* ---------- Package cards ---------- */
.packages-section { background: var(--white); }
.pkg-grid { display: grid; gap: 22px; grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

/* Admission-ticket card: painted dark canvas (supplied artwork) tinted with the package
   colour, a perforated tear line with real cut-out notches, and a stub holding the CTA.
   .pkg       = outer wrapper: carries the shadow (drop-shadow follows the notched outline)
   .pkg-ticket = the ticket itself: background, border and the notch mask
   --perf-y   = distance from the ticket top to the tear line (set by main.js) */
.pkg {
    --c: var(--red);
    position: relative; display: flex; flex-direction: column; text-align: left;
    color: var(--white);
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .32)) drop-shadow(0 2px 3px rgba(0, 0, 0, .2));
}
.pkg-ticket {
    position: relative; display: flex; flex-direction: column; flex: 1;
    background:
        radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--c) 34%, transparent), transparent 62%),
        linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .35) 100%),
        #0b0b0b url("../img/ui/card-480.webp") center / cover no-repeat;
    border: 1px solid color-mix(in srgb, var(--c) 55%, #2a2a2a);
    border-top: 4px solid var(--c);
    border-radius: 18px;
    /* two half-masks, each with a 14px hole on its outer edge at the tear line */
    -webkit-mask:
        radial-gradient(circle 14px at 0 var(--perf-y, -99px), #0000 96%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 14px at 100% var(--perf-y, -99px), #0000 96%, #000) right / 51% 100% no-repeat;
    mask:
        radial-gradient(circle 14px at 0 var(--perf-y, -99px), #0000 96%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 14px at 100% var(--perf-y, -99px), #0000 96%, #000) right / 51% 100% no-repeat;
}
@supports (background-image: image-set(url("x.webp") 1x)) {
    .pkg-ticket {
        background:
            radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--c) 34%, transparent), transparent 62%),
            linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .35) 100%),
            #0b0b0b image-set(url("../img/ui/card-480.webp") 1x, url("../img/ui/card-720.webp") 2x) center / cover no-repeat;
    }
}
.pkg--green { --c: var(--green); }
.pkg--blue { --c: var(--blue); }
.pkg--red { --c: var(--red); }
.pkg--yellow { --c: var(--yellow-dark); }
.pkg--orange { --c: var(--orange); }
.pkg--purple { --c: var(--purple); }

.pkg--featured { filter: drop-shadow(0 16px 22px rgba(230, 170, 0, .42)) drop-shadow(0 2px 3px rgba(0, 0, 0, .2)); }
/* same 1px border as the others (keeps every card's content aligned to the pixel);
   the extra yellow weight is drawn inside */
.pkg--featured .pkg-ticket { border-color: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); }
.pkg-ribbon {
    position: absolute; top: 18px; right: -1px; z-index: 2;
    padding: 6px 12px 6px 16px;
    background: var(--yellow); color: var(--black);
    font-family: var(--font-head); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
}

/* --- head --- */
.pkg-head { padding: 22px 22px 18px; }
.pkg-name {
    display: inline-block; margin: 0 0 14px; padding: 5px 11px 4px;
    background: var(--c); color: var(--white); border-radius: 6px;
    font-family: var(--font-head); font-size: 1rem; letter-spacing: .07em; text-transform: uppercase;
}
.pkg--yellow .pkg-name { color: var(--black); }
.pkg-price { display: flex; align-items: flex-start; margin: 0; line-height: .85; }
.pkg-cur { font-family: var(--font-head); font-size: 2rem; margin: 6px 4px 0 0; color: color-mix(in srgb, var(--c) 55%, #fff); }
.pkg-amount {
    font-family: var(--font-head); font-size: 5rem; letter-spacing: -.01em;
    text-shadow: 0 0 28px color-mix(in srgb, var(--c) 70%, transparent), 3px 3px 0 color-mix(in srgb, var(--c) 80%, #000);
}
.pkg-offer {
    margin: 12px 0 18px; font-family: var(--font-head); text-transform: uppercase;
    font-size: 1.2rem; line-height: 1.15; letter-spacing: .02em; color: var(--yellow);
}

/* the numbers: big value on top, small label under it */
.pkg-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin: 0;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;
}
.pkg-stats > div { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; text-align: center; }
.pkg-stats > div + div { border-left: 1px solid rgba(255, 255, 255, .1); }
.pkg-stats dd { order: -1; margin: 0; font-family: var(--font-head); font-size: 1.55rem; line-height: 1.1; }
.pkg-stats dt { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #a9a9a9; }
.pkg-stats .is-save dd { color: var(--yellow); }

/* --- tear line: dashed rule with half-circle notches cut into both edges --- */
.pkg-perf { position: relative; height: 0; margin: 0 22px; border-top: 2px dashed rgba(255, 255, 255, .22); }

/* --- stub --- */
.pkg-stub { display: flex; flex-direction: column; flex: 1; padding: 18px 22px 22px; }
.pkg-desc { font-size: .95rem; color: #d2d2d2; margin: 0 0 10px; }
.pkg-ship { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: .82rem; font-weight: 600; color: #a9a9a9; }
.pkg-ship .icon { color: color-mix(in srgb, var(--c) 60%, #fff); }
.pkg-buy { width: 100%; margin-top: auto; }

/* ---------- How it works ---------- */
.how { background: var(--black); color: var(--white); padding: 44px 0; border-top: 4px solid var(--yellow); border-bottom: 4px solid var(--yellow); }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.step { text-align: center; padding: 16px 10px; background: var(--ink); border-radius: 12px; border: 1px solid #2a2a2a; }
.step-icon {
    display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 10px;
    background: var(--yellow); color: var(--black); border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 214, 10, .2);
}
.step-icon .icon { width: 28px; height: 28px; }
.step h3 { font-family: var(--font-head); text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em; margin-bottom: 6px; }
.step h3 span { color: var(--yellow); }
.step p { font-size: .95rem; color: #cfcfcf; margin: 0; }

/* ---------- Perfect for ---------- */
.perfect { background: var(--paper); }
.perfect-inner { display: grid; gap: 24px; }
.perfect-art { display: grid; gap: 16px; justify-items: center; }
/* Transparent ticket cut-out: drop-shadow follows the notched ticket shape */
.perfect-art .ticket-art {
    width: 100%; max-width: 420px; height: auto;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .28));
    transform: rotate(-3deg);
    transition: transform var(--dur-slow, .8s) cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) { .perfect-art:hover .ticket-art { transform: rotate(-1deg) translateY(-4px) scale(1.02); } }
.perfect-box {
    background: var(--black); color: var(--white); border-radius: var(--radius); padding: 26px 22px;
    border: 3px solid var(--yellow); box-shadow: 6px 6px 0 var(--red);
}
.perfect-title { font-family: var(--font-fun); font-size: 2.6rem; color: var(--yellow); letter-spacing: .03em; text-transform: uppercase; margin-bottom: 12px; }
.check-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check-list .icon { color: var(--white); background: var(--red); border-radius: 4px; padding: 3px; width: 22px; height: 22px; }
.check-list--big li { font-family: var(--font-head); text-transform: uppercase; font-size: 1.35rem; font-weight: 400; letter-spacing: .02em; }
.check-list--big .icon { background: var(--yellow); color: var(--black); width: 26px; height: 26px; }

.includes-card { background: var(--white); border: 2px solid var(--black); border-radius: var(--radius); padding: 20px; width: 100%; max-width: 420px; }
.includes-card h2, .includes-card h3 { font-family: var(--font-head); text-transform: uppercase; font-size: 1.3rem; }
.fine-print { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: var(--white); padding: 26px 0; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.cta-inner p { font-family: var(--font-head); text-transform: uppercase; font-size: 1.4rem; margin: 0; }
.cta-band .btn-outline { border-color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--red); }

/* ---------- Inner page hero ---------- */
.page-hero { padding: 40px 0 36px; text-align: center; border-bottom: 4px solid var(--yellow); }
.page-title { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(2rem, 8vw, 3.2rem); margin-bottom: 8px; }
.page-lead { color: #e2e2e2; max-width: 36em; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Buy page ---------- */
.buy-info { display: grid; gap: 12px; margin-top: 36px; }
.buy-info-item { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border-radius: 12px; padding: 14px 16px; }
.buy-info-item .icon { width: 28px; height: 28px; color: var(--red); margin-top: 2px; }
.buy-info-item p { margin: 0; font-size: .95rem; }

/* Checkout panel: bottom sheet on phones, centered dialog on desktop */
.checkout { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.checkout[hidden] { display: none; }
.checkout-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); }
.checkout-panel {
    position: relative; width: 100%; max-width: 480px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
    background: var(--white); border-radius: 18px 18px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    border-top: 5px solid var(--red);
    animation: sheet-up .22s ease-out;
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.checkout-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--paper); border: 0; border-radius: 50%; cursor: pointer; color: var(--ink); }
.checkout-close .icon { width: 22px; height: 22px; }
.checkout-kicker { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--red); }
.checkout-title { font-family: var(--font-head); text-transform: uppercase; font-size: 1.8rem; margin: 2px 50px 14px 0; }
.checkout-summary { border: 2px solid var(--black); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.checkout-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 600; text-align: right; }
.checkout-summary > div:last-child { border-bottom: 0; }
.checkout-label { color: var(--muted); font-weight: 600; text-align: left; }
.checkout-total { background: var(--black); color: var(--white); }
.checkout-total .checkout-label { color: #bbb; }
.checkout-total span:last-child { font-family: var(--font-head); font-size: 1.5rem; color: var(--yellow); letter-spacing: .02em; }
.checkout-note { display: flex; gap: 8px; font-size: .88rem; color: var(--muted); }
.checkout-note .icon { color: var(--red); margin-top: 2px; }
.paypal-buttons { min-height: 170px; } /* reserves space for the 3 PayPal buttons (no layout jump) */
.checkout-loading { text-align: center; color: var(--muted); padding: 30px 0; margin: 0; }
.checkout-error { background: #fdecea; color: #8a1c13; border-radius: 8px; padding: 10px 12px; font-size: .92rem; margin-top: 10px; }
.no-scroll { overflow: hidden; }

/* ---------- Thanks ---------- */
.thanks-card { background: var(--white); border: 3px solid var(--black); border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: 6px 6px 0 var(--yellow); }
.thanks-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: var(--white); margin-bottom: 12px; }
.thanks-icon .icon { width: 34px; height: 34px; }
.thanks-card h2 { font-family: var(--font-head); text-transform: uppercase; font-size: 1.6rem; }
.thanks-order { color: var(--muted); overflow-wrap: anywhere; }
.thanks-steps { text-align: left; max-width: 34em; margin: 0 auto 18px; padding-left: 1.3em; }
.thanks-steps li { margin-bottom: 8px; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 28px; }
.prose p { max-width: 68ch; }
.prose h2 { font-family: var(--font-head); text-transform: uppercase; font-size: 1.6rem; margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.about-side { display: grid; gap: 14px; align-content: start; }
.stat-card { background: var(--black); color: var(--white); border-radius: var(--radius); padding: 18px 20px; border-left: 6px solid var(--yellow); }
.stat-card--red { border-left-color: var(--red); }
.stat-num { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--yellow); line-height: 1.1; }
.stat-label { color: #cfcfcf; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq { background: var(--white); border: 2px solid var(--black); border-radius: 12px; overflow: hidden; }
.faq summary {
    list-style: none; cursor: pointer; padding: 16px 52px 16px 16px; position: relative;
    font-weight: 800; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
    background: var(--red); color: var(--white); font-size: 1.3rem; line-height: 1;
}
.faq[open] summary::after { content: "–"; background: var(--black); color: var(--yellow); }
.faq[open] summary { border-bottom: 1px solid var(--line); }
.faq-body { padding: 14px 16px 4px; }
.faq-body ul { padding-left: 1.2em; margin: 0 0 1em; }
.faq-cta { text-align: center; margin-top: 30px; }
.faq-cta p { font-family: var(--font-head); text-transform: uppercase; font-size: 1.4rem; margin-bottom: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 22px; }
.contact-cards { display: grid; gap: 12px; align-content: start; }
.contact-card {
    display: flex; align-items: center; gap: 14px; padding: 16px; text-decoration: none; color: var(--ink);
    background: var(--white); border: 2px solid var(--black); border-radius: 12px;
}
.contact-card > span:last-child { min-width: 0; overflow-wrap: anywhere; }
a.contact-card:hover { border-color: var(--red); color: var(--ink); }
.contact-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; background: var(--red); color: var(--white); border-radius: 50%; }
.contact-label { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.form-card { background: var(--white); border: 2px solid var(--black); border-radius: var(--radius); padding: 22px 18px; box-shadow: 6px 6px 0 var(--red); }
.form-title { font-family: var(--font-head); text-transform: uppercase; font-size: 1.6rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; min-width: 0; }
.field label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
    width: 100%; font: inherit; font-size: 16px; /* prevents iOS zoom */
    padding: 12px 14px; border: 2px solid #cfcac0; border-radius: 10px; background: var(--white); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--black); outline: 3px solid var(--yellow); outline-offset: 0; }
.field textarea { resize: vertical; min-height: 80px; }
.has-error input, .has-error textarea { border-color: var(--red); }
.field-error { color: var(--red); font-size: .88rem; font-weight: 600; margin: 6px 0 0; }
.field-hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.field-row { display: grid; gap: 0 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.alert-success { background: #e5f6e8; color: #145c20; border: 2px solid var(--green); }
.alert-error { background: #fdecea; color: #8a1c13; border: 2px solid var(--red); }
.alert-warn { background: #fff8d6; color: #5c4a00; border: 2px solid var(--yellow-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #cfcfcf; padding: 40px 0 0; border-top: 4px solid var(--red); }
.footer-grid { display: grid; gap: 26px; }
.footer-tag { margin-top: 14px; max-width: 26em; font-size: .95rem; }
.footer-title { font-family: var(--font-head); text-transform: uppercase; color: var(--white); font-size: 1.2rem; letter-spacing: .03em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.footer-links a { color: #cfcfcf; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--yellow); }
.footer-secure { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .9rem; color: var(--yellow); }
.footer-bottom { border-top: 1px solid #262626; margin-top: 30px; padding-top: 16px; padding-bottom: 20px; font-size: .85rem; color: #8a8a8a; }
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Admin
   ========================================================================== */
.admin-body { background: #efede8; }
.admin-header { background: var(--black); border-bottom: 3px solid var(--red); }
.admin-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.admin-header-actions { display: flex; align-items: center; gap: 6px; }
.admin-header-actions form { margin: 0; }
.admin-link { background: none; border: 0; color: var(--white); text-decoration: none; font-weight: 600; padding: 10px; cursor: pointer; font-size: .95rem; }
.admin-link:hover { color: var(--yellow); }
.admin-main { padding: 26px 0 60px; }
.admin-container { max-width: 860px; }
.admin-title { font-family: var(--font-head); text-transform: uppercase; font-size: 2rem; }
.admin-subtitle { font-family: var(--font-head); text-transform: uppercase; font-size: 1.5rem; }
.admin-help { color: var(--muted); }
.admin-card { background: var(--white); border-radius: var(--radius); padding: 20px 16px; margin-bottom: 18px; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0, 0, 0, .04); scroll-margin-top: 16px; }
.login-card { max-width: 400px; margin: 40px auto; }
.admin-pkg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.admin-pkg-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.25rem; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--red); flex: none; }
.dot--green { background: var(--green); } .dot--blue { background: var(--blue); } .dot--yellow { background: var(--yellow); }
.dot--orange { background: var(--orange); } .dot--purple { background: var(--purple); }
.pill { font-size: .75rem; font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; letter-spacing: .05em; }
.pill--on { background: #e5f6e8; color: #145c20; }
.pill--off { background: #eee; color: #666; }
.admin-options { align-items: end; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; min-height: 48px; margin-bottom: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }
.admin-meta { font-size: .88rem; color: var(--muted); }
.admin-meta code { background: var(--paper); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 76px; }
.password-toggle {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-width: 64px; min-height: 40px;
    background: none; border: 0; border-radius: 8px; font-weight: 800; font-size: .85rem; color: var(--ink); cursor: pointer;
}
.password-toggle:hover { background: var(--paper); }

/* Submit feedback */
.is-loading { opacity: .75; cursor: progress; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-actions .btn { font-size: 1rem; min-height: 44px; padding: .5em 1.1em; }
.admin-actions .btn-red { --btn-h: 46px; padding-inline: calc(var(--btn-h) * .95); }
.btn-ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover:not([disabled]) { background: #e8e5de; }
.btn-danger { background: transparent; color: var(--red); border: 2px solid var(--red); margin-left: auto; }
.btn-danger:hover { background: var(--red); color: var(--white); }

/* ==========================================================================
   Larger screens
   ========================================================================== */
@media (min-width: 600px) {
    .field-row { grid-template-columns: 1fr 1fr; }
    .field-row--3 { grid-template-columns: 2fr 1fr 1fr; }
    .buy-info { grid-template-columns: repeat(3, 1fr); }
    .cta-inner { flex-direction: row; justify-content: center; gap: 22px; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
    .admin-card { padding: 24px; }
}

@media (min-width: 760px) {
    .pkg-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: none; gap: 26px; }
    .steps { grid-template-columns: repeat(4, 1fr); }
    .contact-grid { grid-template-columns: 1fr 1.4fr; }
    .about-grid { grid-template-columns: 1.6fr 1fr; }
    .perfect-inner { grid-template-columns: 1fr 1fr; align-items: center; }
    .checkout { align-items: center; }
    .checkout-panel { border-radius: 18px; padding: 26px 26px; }
    .section { padding: 64px 0; }
    .splat-bg::before { width: 560px; height: 414px; left: -190px; top: -150px; background-image: url("../img/hero/glow-red-900.webp"); }
    .splat-bg::after { width: 500px; height: 372px; right: -170px; bottom: -190px; background-image: url("../img/hero/glow-yellow-900.webp"); }
    .ink-bg::before { width: 900px; height: 457px; left: -260px; top: 40px; background-image: url("../img/hero/splat-black-1200.webp"); }
    .ink-bg::after { width: 760px; height: 386px; right: -220px; bottom: 60px; background-image: url("../img/hero/splat-black-1200.webp"); }
}

@media (min-width: 980px) {
    .nav-toggle { display: none; }
    .main-nav {
        position: static; transform: none; visibility: visible; background: none; border: 0; padding: 0;
        display: flex; align-items: center; gap: 18px; max-height: none; overflow: visible;
    }
    .main-nav ul { display: flex; gap: 2px; }
    .main-nav li a { border: 0; font-size: 1rem; padding: 8px 10px; border-radius: 6px; }
    .main-nav li a.active { background: var(--red); color: var(--white); }
    .nav-phone { margin: 0; font-size: .95rem; }
    .nav-open { overflow: auto; }
    .logo img { height: 48px; }
    .nav-cta, .header-buy { display: none; }
    .header-cta {
        display: inline-flex; --btn-h: 44px; min-height: 44px;
        font-size: 1rem; padding-block: 0; padding-inline: calc(var(--btn-h) * .9);
    }
}
/* Not enough room for the phone number between 980 and 1200px; it stays in the footer and CTA band */
@media (min-width: 980px) and (max-width: 1199.98px) {
    .nav-phone { display: none; }
    .main-nav li a { padding: 8px 8px; }
}

/* ==========================================================================
   Premium layer: motion tokens, smooth scroll, reveals, refined interactions.
   Every animation is opt-out via prefers-reduced-motion.
   ========================================================================== */
:root {
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --dur-fast: .2s;
    --dur-med: .4s;
    --dur-slow: .8s;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    interpolate-size: allow-keywords;
}

/* Lenis smooth scroll (own rules: Lenis' default CSS disables iframes, which would block PayPal) */
html.lenis, html.lenis body { height: auto; }
html.has-smooth-scroll { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

::selection { background: var(--yellow); color: var(--black); }
html { scrollbar-color: var(--red) var(--black); }
@media (hover: hover) and (pointer: fine) {
    ::-webkit-scrollbar { width: 11px; }
    ::-webkit-scrollbar-track { background: var(--black); }
    ::-webkit-scrollbar-thumb { background: var(--red); border-radius: 10px; border: 3px solid var(--black); }
    ::-webkit-scrollbar-thumb:hover { background: var(--yellow); }
}

/* Cross-page fade (progressive: Chromium/Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; animation-timing-function: var(--ease-out); }
.site-header { view-transition-name: site-header; }

/* ---------- Header: glass on scroll + progress bar ---------- */
.site-header {
    background: rgba(11, 11, 11, .98);
    transition: background-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled {
    background: rgba(11, 11, 11, .8);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.nav-open .site-header { background: var(--black); -webkit-backdrop-filter: none; backdrop-filter: none; }
.scroll-progress {
    position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; z-index: 2;
    background: linear-gradient(90deg, var(--red), var(--yellow));
    transform: scaleX(0); transform-origin: 0 50%; will-change: transform; pointer-events: none;
}
.logo { transition: transform var(--dur-med) var(--ease-out); }
.logo:hover { transform: rotate(-2deg) scale(1.05); }

/* ---------- Home: header floats over the hero art, then turns to glass ----------
   A soft dark gradient (on ::before) keeps the nav legible over the sky; it fades out
   as the glass background fades in once the page scrolls. */
.has-hero .site-header {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(11, 11, 11, 0);
    border-bottom-color: transparent;
    transition: background-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out),
                border-color var(--dur-med) var(--ease-out);
}
.has-hero .site-header::before {
    content: ""; position: absolute; inset: 0 0 -48px 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(6, 8, 14, .78) 0%, rgba(6, 8, 14, .42) 55%, rgba(6, 8, 14, 0) 100%);
    transition: opacity var(--dur-med) var(--ease-out);
}
.has-hero .site-header.is-scrolled { background: rgba(11, 11, 11, .82); border-bottom-color: var(--red); }
.has-hero .site-header.is-scrolled::before { opacity: 0; }
.has-hero.nav-open .site-header { background: var(--black); border-bottom-color: var(--red); }
.has-hero.nav-open .site-header::before { opacity: 0; }
@media (min-width: 980px) {
    .has-hero .site-header:not(.is-scrolled) .main-nav li a:not(.active),
    .has-hero .site-header:not(.is-scrolled) .nav-phone { text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
}

/* ---------- Atmosphere: glow + grain on dark sections ---------- */
.page-hero {
    background:
        var(--grain),
        radial-gradient(ellipse 70% 80% at 50% 0%, rgba(227, 18, 11, .26), transparent 70%),
        var(--black);
}
.how { background: var(--grain), radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 214, 10, .08), transparent 70%), var(--black); }
.site-footer { background: var(--grain), var(--black); }

/* ---------- Section eyebrows + title accent ---------- */
.eyebrow {
    display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 10px;
    font-weight: 800; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; opacity: .7; }
.eyebrow--light { color: var(--yellow); }
.section-title { letter-spacing: .01em; }
.section-title::after {
    content: ""; display: block; width: 64px; height: 5px; margin: 14px auto 0;
    background: var(--red); border-radius: 3px; transform: skewX(-18deg);
}
.section-title--light::after { background: var(--yellow); }

/* ---------- Buttons: lift + light sweep ---------- */
.btn {
    position: relative; overflow: hidden; isolation: isolate;
    transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out),
                filter var(--dur-med) var(--ease-out),
                background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.btn::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%);
    transform: translateX(-120%);
}
.btn .icon { transition: transform var(--dur-med) var(--ease-out); }
@media (hover: hover) {
    .btn:hover { transform: translateY(-2px); }
    .btn:hover::after { transform: translateX(120%); transition: transform .8s var(--ease-out); }
    .btn:hover .icon { transform: translateX(3px); }
    .btn-red:hover, .btn-yellow:hover {
        filter: brightness(1.1) saturate(1.1) drop-shadow(0 10px 16px rgba(227, 18, 11, .4));
    }
    .btn[disabled]:hover { transform: none; }
}
.btn:active { transform: translateY(1px) scale(.985); transition-duration: .08s; }

/* ---------- Cards ---------- */
.pkg-amount { display: inline-block; transition: transform var(--dur-med) var(--ease-out); transform-origin: 0 80%; }
@media (hover: hover) {
    .pkg:hover {
        transform: translateY(-6px);
        filter: drop-shadow(0 22px 24px color-mix(in srgb, var(--c) 45%, rgba(0, 0, 0, .45))) drop-shadow(0 2px 3px rgba(0, 0, 0, .2));
    }
    .pkg--featured:hover { filter: drop-shadow(0 24px 28px rgba(230, 170, 0, .55)) drop-shadow(0 2px 3px rgba(0, 0, 0, .2)); }
    .pkg:hover .pkg-amount { transform: scale(1.05); }
    .step:hover { transform: translateY(-4px); border-color: rgba(255, 214, 10, .55); background: #1b1b1b; }
    .step:hover .step-icon { transform: rotate(-8deg) scale(1.06); }
    a.contact-card:hover { transform: translateY(-3px); box-shadow: 4px 6px 0 var(--red); }
    .faq summary:hover { background: #faf8f3; }
    .footer-links a:hover { transform: translateX(3px); }
}
.step-icon { transition: transform var(--dur-med) var(--ease-out); }
.footer-links a { transition: color var(--dur-fast), transform var(--dur-med) var(--ease-out); }
.faq summary { transition: background-color var(--dur-fast); }
.faq summary::after { transition: transform var(--dur-med) var(--ease-out), background-color var(--dur-fast); }
.faq[open] summary::after { transform: translateY(-50%) rotate(180deg); }

/* Smooth FAQ open/close (progressive: Chromium 131+) */
.faq::details-content {
    block-size: 0; overflow: hidden;
    transition: block-size var(--dur-med) var(--ease-out), content-visibility var(--dur-med) allow-discrete;
}
.faq[open]::details-content { block-size: auto; }

/* ---------- Scroll reveal + entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-ready [data-reveal] {
        opacity: 0; translate: 0 28px;
        transition:
            opacity var(--dur-slow) var(--ease-out) var(--reveal-delay, 0ms),
            translate var(--dur-slow) var(--ease-out) var(--reveal-delay, 0ms),
            transform var(--dur-med) var(--ease-out),
            box-shadow var(--dur-med) var(--ease-out),
            filter var(--dur-med) var(--ease-out),
            border-color var(--dur-fast) ease,
            background-color var(--dur-fast) ease;
    }
    .reveal-ready [data-reveal].is-in { opacity: 1; translate: none; }

    .js .hero-anim { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
    @keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: none; } }
}
/* Non-revealed elements still animate hover smoothly */
.pkg, .step, .contact-card {
    transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out),
                filter var(--dur-med) var(--ease-out), border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

/* Mobile menu: links cascade in */
@media (max-width: 979.98px) {
    .main-nav li, .main-nav .nav-phone, .main-nav .nav-cta { opacity: 0; translate: 0 -8px; transition: opacity .3s var(--ease-out), translate .3s var(--ease-out), filter var(--dur-med) var(--ease-out); }
    .nav-open .main-nav li, .nav-open .main-nav .nav-phone, .nav-open .main-nav .nav-cta { opacity: 1; translate: none; }
    .nav-open .main-nav .nav-cta { transition-delay: .32s; }
    .nav-open .main-nav li:nth-child(1) { transition-delay: .04s; }
    .nav-open .main-nav li:nth-child(2) { transition-delay: .08s; }
    .nav-open .main-nav li:nth-child(3) { transition-delay: .12s; }
    .nav-open .main-nav li:nth-child(4) { transition-delay: .16s; }
    .nav-open .main-nav li:nth-child(5) { transition-delay: .20s; }
    .nav-open .main-nav li:nth-child(6) { transition-delay: .24s; }
    .nav-open .main-nav .nav-phone { transition-delay: .28s; }
}

/* Desktop nav: underline slides in */
@media (min-width: 980px) {
    .main-nav li a { position: relative; transition: color var(--dur-fast), background-color var(--dur-fast); }
    .main-nav li a:not(.active)::after {
        content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px;
        background: var(--yellow); transform: scaleX(0); transform-origin: 0 50%;
        transition: transform var(--dur-med) var(--ease-out);
    }
    .main-nav li a:not(.active):hover::after { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
}
