/*
 * ConfiVend — Brand Stylesheet
 * Pixel-perfect reflection of the Figma design.
 * Loaded alongside Tailwind so utility classes compose naturally.
 */

[x-cloak] {
    display: none !important;
}

:root {
    /* ===== CORE PALETTE ===== */
    --cv-navy:        #0d2340;   /* primary deep navy */
    --cv-navy-soft:   #14305a;
    --cv-navy-deep:   #081a31;
    --cv-hero-bg:       #0b1d33;   /* hero card navy (Figma) */
    --cv-hero-navy:     #0b1d33;
    --cv-hero-navy-soft: #142a42;
    --cv-hero-glow:     #3a5a78;   /* muted disc behind machine */
    --cv-hero-accent:   #7dd3fc;   /* headline: Automat. / betriebsbereit. / rentabel. */
    --cv-hero-wave-band: #BDE3FF;  /* wave band below navy (Figma) */
    --cv-hero-wave-gray: #3d4d5c;  /* charcoal band between navy field and sky wave */
    --cv-hero-moon: #BDE3FF;       /* solid top-right disc */
    --cv-hero-cta-bg:   #52b4e8;   /* Figma: vibrant medium-blue hero CTA */
    --cv-hero-cta-bg-hover: #3ea0d9;
    --cv-hero-wave-line: #89cff0; /* rim along white wave */
    --cv-cyan:        #82b9d6;
    --cv-cyan-strong: #2d97c7;
    --cv-cyan-bright: #00b4d8;
    --cv-orange:      #ff7a2e;
    --cv-orange-deep: #e85f12;

    --cv-paper:       #ffffff;
    --cv-paper-soft:  #f7f9fb;
    --cv-card-blue:   #d8e6ee;   /* light blue card backgrounds */
    --cv-card-blue-2: #c9dce8;   /* slightly stronger card stroke */
    --cv-text:        #0a1f3a;
    --cv-text-muted:  #5d6b7c;

    --cv-line:        #e3e8ee;
    --cv-line-strong: #c9d3dd;

    /* ===== RADII ===== */
    --cv-radius-md:  12px;
    --cv-radius-lg:  18px;
    --cv-radius-xl:  24px;
    --cv-radius-2xl: 32px;
    --cv-radius-3xl: 40px;

    /* ===== SHADOWS ===== */
    --cv-shadow-sm: 0 1px 2px rgba(13,35,64,.06), 0 1px 3px rgba(13,35,64,.04);
    --cv-shadow-md: 0 8px 24px -10px rgba(13,35,64,.18);
    --cv-shadow-lg: 0 28px 60px -28px rgba(13,35,64,.3);
}

/* Base reset / typography */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    background-color: var(--cv-paper);
    color: var(--cv-text);
    font-feature-settings: 'cv11', 'ss01';
}

::selection {
    background: var(--cv-cyan);
    color: var(--cv-navy);
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ============================================================
 * LOGO
 * ============================================================ */
/* Legacy helper — icon-only square used where the full logo is too wide. */
.cv-logo-mark {
    display: inline-block;
    width: 44px;
    height: 44px;
    border-radius: 9px;
    flex-shrink: 0;
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 48' fill='none'><rect width='54' height='48' rx='9' fill='%230d2340'/><line x1='9' y1='11' x2='38' y2='11' stroke='white' stroke-width='3.5' stroke-linecap='round'/><line x1='9' y1='19' x2='38' y2='19' stroke='white' stroke-width='3.5' stroke-linecap='round'/><line x1='9' y1='27' x2='28' y2='27' stroke='white' stroke-width='3.5' stroke-linecap='round'/><circle cx='42' cy='19' r='3' fill='white'/><path d='M16 36 L27 47 L58 7' stroke='white' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / cover;
}

/* ============================================================
 * BUTTONS
 * ============================================================ */
.cv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .625rem;
    padding: .8rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1;
    transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    cursor: pointer;
}
.cv-btn-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--cv-cyan-bright);
    color: var(--cv-navy);
    display: inline-grid;
    place-items: center;
    flex: none;
}

/* Light pill on dark */
.cv-btn-light {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-color: rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
}
.cv-btn-light:hover {
    background: rgba(255,255,255,.16);
    transform: translateY(-1px);
}

/* Home hero — white CTA (Figma): navy label, navy disc, white arrow */
.cv-btn-hero-solid {
    background-color: #fff;
    color: #0b1d33; /* hero navy — not pure black (Figma) */
    border: 1px solid rgba(11, 29, 51, .1);
    border-radius: 12px;
    padding: .92rem 1.35rem .92rem 1.45rem;
    font-weight: 700;
    font-size: .95rem;
    box-shadow: 0 1px 4px rgba(11, 29, 51, .07);
}
.cv-btn-hero-solid:hover {
    background-color: #f7fafc;
    border-color: rgba(11, 29, 51, .14);
    color: #0b1d33;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(11, 29, 51, .1);
}
.cv-btn-icon-hero {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background-color: #0b1d33;
    color: #fff;
    display: inline-grid;
    place-items: center;
    flex: none;
}

/* Dark navy on light */
.cv-btn-dark {
    background: var(--cv-navy);
    color: #fff;
    border-color: var(--cv-navy);
}
.cv-btn-dark:hover {
    background: var(--cv-navy-soft);
    transform: translateY(-1px);
    box-shadow: var(--cv-shadow-md);
}

/* Orange CTA */
.cv-btn-orange {
    background: var(--cv-orange);
    color: #fff;
    border-color: var(--cv-orange);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
    padding: 1rem 1.6rem;
}
.cv-btn-orange:hover {
    background: var(--cv-orange-deep);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -10px rgba(255,122,46,.5);
}

/* Cyan CTA */
.cv-btn-cyan {
    background: var(--cv-cyan-bright);
    color: var(--cv-navy);
    border-color: var(--cv-cyan-bright);
    font-weight: 600;
}
.cv-btn-cyan:hover {
    background: #14c5e5;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -10px rgba(0,180,216,.5);
}

/* Ghost/outline */
.cv-btn-ghost {
    background: transparent;
    color: var(--cv-navy);
    border-color: var(--cv-line-strong);
}
.cv-btn-ghost:hover { background: var(--cv-paper-soft); border-color: var(--cv-navy); }

/* ============================================================
 * PILL / EYEBROW
 * ============================================================ */
.cv-pill {
    display: inline-flex;
    align-items: center;
    padding: .42rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--cv-line-strong);
    background: #fff;
    color: var(--cv-navy);
    font-size: .82rem;
    font-weight: 500;
}
.cv-pill-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.3);
}

/* Hero eyebrow — small caps white pill (Figma) */
.cv-pill-hero {
    font-size: .68rem !important;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    padding: .38rem .95rem !important;
    border-color: rgba(255, 255, 255, .55) !important;
}

/* ============================================================
 * HEADINGS
 * ============================================================ */
.cv-h-cyan {
    color: var(--cv-cyan);
}
.cv-h-orange {
    color: var(--cv-orange);
}

/* ============================================================
 * CARDS
 * ============================================================ */
.cv-card {
    background: var(--cv-card-blue);
    border-radius: var(--cv-radius-2xl);
    padding: 1.75rem;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.cv-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--cv-shadow-md);
}

.cv-card-product {
    background: var(--cv-card-blue);
    border-radius: var(--cv-radius-2xl);
    padding: 1.5rem;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.cv-card-product:hover {
    transform: translateY(-4px);
    box-shadow: var(--cv-shadow-md);
}

.cv-card-feature {
    background: var(--cv-card-blue);
    border-radius: var(--cv-radius-2xl);
    padding: 1.5rem 1.5rem 1.75rem;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.cv-card-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--cv-shadow-md);
}

/* Shop — horizontal product list cards */
.cv-shop-product-card {
    background: var(--cv-paper);
    border: 1px solid var(--cv-line-strong);
    border-radius: var(--cv-radius-2xl);
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease;
    will-change: transform;
}
.cv-shop-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(13, 35, 64, 0.12);
    box-shadow: var(--cv-shadow-md);
}

/* Image gallery — inline preview + lightbox */
.cv-gallery-main {
    transition:
        opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.cv-gallery-main.is-fading {
    opacity: 0;
    transform: scale(0.98);
}
.cv-gallery-thumb {
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}
.cv-gallery-thumb:hover {
    transform: scale(1.05);
}
.cv-gallery-thumb.is-active {
    transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
    .cv-shop-product-card,
    .cv-shop-product-card:hover,
    .cv-gallery-main,
    .cv-gallery-thumb {
        transition: none;
        transform: none;
    }
}

/* Product photo — machine sits on card surface (no nested white “screenshot” frame) */
.cv-product-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    border: none;
    border-radius: var(--cv-radius-xl);
    background: transparent;
    background-image: none;
    box-shadow: none;
}
.cv-product-photo__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    padding: 2% 4% 0;
    /* Blend white studio JPG backgrounds into the card — machine stays sharp */
    mix-blend-mode: multiply;
    filter: drop-shadow(0 10px 22px rgba(13, 35, 64, 0.14));
}
.cv-block-dark .cv-product-photo__img,
.cv-hero-machine-photo .cv-product-photo__img {
    /* On navy, multiply would crush the machine — keep normal blend */
    mix-blend-mode: normal;
}
.cv-product-photo__fallback {
    width: 72%;
    max-width: 200px;
    padding: 10% 0;
}
.cv-product-photo--sm {
    aspect-ratio: 1;
    max-width: 140px;
    margin-inline: auto;
    border-radius: var(--cv-radius-lg);
}
.cv-product-photo--sm .cv-product-photo__img {
    padding: 8% 10% 0;
}
.cv-product-photo--card {
    aspect-ratio: 1;
    margin-bottom: 1rem;
    border-radius: var(--cv-radius-xl);
    background: transparent;
}
.cv-product-photo--card .cv-product-photo__img {
    padding: 0 2% 0;
    object-fit: contain;
    object-position: center bottom;
}
/* Keep photo wells transparent so machines sit with card content (no nested frame) */
.cv-shop-product-card .cv-product-photo,
.cv-card:not(.cv-card-product) .cv-product-photo,
.cv-card-product .cv-product-photo,
.cv-card-product .cv-product-photo--card {
    background: transparent !important;
}
.cv-product-photo--md {
    min-height: 200px;
    aspect-ratio: 4 / 5;
}
.cv-product-photo--md .cv-product-photo__img {
    padding: 2% 3% 0;
}
.cv-product-photo--lg {
    min-height: 260px;
    aspect-ratio: 4 / 5;
}
.cv-product-photo--hero {
    aspect-ratio: 3 / 4;
    border-radius: var(--cv-radius-2xl);
    background: transparent !important;
}
.cv-product-photo--hero .cv-product-photo__img {
    padding: 4% 6% 0;
}

/* ============================================================
 * DARK SECTIONS — large rounded blocks
 * ============================================================ */
.cv-block-dark {
    background: linear-gradient(135deg, var(--cv-navy) 0%, var(--cv-navy-deep) 100%);
    border-radius: var(--cv-radius-3xl);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cv-block-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(45,151,199,.18) 0%, transparent 60%),
        radial-gradient(40% 60% at 0% 100%, rgba(255,122,46,.06) 0%, transparent 60%);
    pointer-events: none;
}

/* Light CTA card — sky band + white (matches hero wave palette) */
.cv-block-cta {
    background: linear-gradient(145deg, #e8f4fc 0%, #f7fbff 42%, #ffffff 100%);
    border: 1px solid rgba(189, 227, 255, 0.85);
    border-radius: var(--cv-radius-3xl);
    color: var(--cv-text);
    position: relative;
    overflow: hidden;
    box-shadow: var(--cv-shadow-md);
}
.cv-block-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(55% 70% at 100% 0%, rgba(189, 227, 255, 0.55) 0%, transparent 62%),
        radial-gradient(40% 55% at 0% 100%, rgba(45, 151, 199, 0.08) 0%, transparent 58%);
    pointer-events: none;
}
.cv-block-cta .cv-h-cyan {
    color: var(--cv-cyan-strong);
}
.cv-cta-machine-frame {
    position: relative;
}
.cv-cta-machine-frame .cv-product-photo--hero {
    width: 100%;
    min-height: clamp(300px, 58vw, 460px);
    aspect-ratio: 3 / 4.2;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: var(--cv-radius-2xl);
}
.cv-cta-machine-frame .cv-product-photo--hero .cv-product-photo__img {
    width: auto;
    height: 94%;
    max-width: 96%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 12px 28px rgba(13, 35, 64, 0.14));
}

/* ── Home hero — full-width stripe or contained card ── */
.cv-hero-block.cv-block-dark.cv-hero-block--fullwidth {
    border-radius: 0 !important;
}
.cv-hero-block {
    background: linear-gradient(175deg, var(--cv-hero-bg) 0%, #071422 100%) !important;
    isolation: isolate;
}
/* Home hero — Figma: top-right solid moon (clipped), no centre glow */
.cv-hero-block.cv-block-dark::before {
    background:
        radial-gradient(ellipse 38% 44% at 12% 96%, rgba(7, 18, 35, .38) 0%, transparent 56%);
    z-index: 0;
}

/* Moon sits above vignette (::before); behind waves (z-2) & content (z-5) */
.cv-hero-moon-mask {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.cv-hero-moon {
    position: absolute;
    top: -16%;
    right: -28%;
    width: min(92vw, 520px);
    height: min(92vw, 520px);
    border-radius: 50%;
    background: var(--cv-hero-moon, #BDE3FF);
}

@media (min-width: 1024px) {
    .cv-hero-moon {
        top: -20%;
        right: -24%;
        width: min(36vw, 580px);
        height: min(36vw, 580px);
    }
}

@media (max-width: 1023px) {
    .cv-hero-moon {
        top: -8%;
        right: -20%;
        width: min(90vw, 300px);
        height: min(90vw, 300px);
    }
}

.cv-hero-block .cv-hero-title,
.cv-hero-block .hero-sublead,
.cv-hero-block .cv-pill-hero {
    font-family: 'Inter', 'DM Sans', ui-sans-serif, system-ui, sans-serif;
}

.cv-hero-title {
    letter-spacing: -0.035em;
    font-weight: 800;
}

/* Figma headline accent — Automat. / betriebsbereit. / rentabel. */
.cv-hero-accent {
    color: var(--cv-hero-accent);
}

/* Hero paragraph — white supporting text */
.hero-sublead {
    color: rgba(255, 255, 255, .92);
    font-weight: 400;
}

/* Integrated machine photo — no global drop shadow; subtle feet contact shadow only */
.cv-hero-machine-frame {
    position: relative;
}
.cv-hero-machine-frame img,
.cv-hero-machine-photo,
.cv-cta-machine-photo {
    position: relative;
    z-index: 2;
}
.cv-hero-machine-photo.cv-product-photo--hero,
.cv-cta-machine-photo.cv-product-photo--hero {
    box-shadow:
        0 28px 56px rgba(8, 22, 40, 0.35),
        0 8px 24px rgba(8, 22, 40, 0.2);
}
.cv-hero-machine-photo.cv-product-photo--hero {
    width: 100%;
    min-height: clamp(300px, 72vw, 420px);
    /* Taller frame so the full machine (incl. base) fits without clipping */
    aspect-ratio: 3 / 4.35;
    align-items: center;
    justify-content: center;
    padding-bottom: 6px;
}
@media (min-width: 640px) {
    .cv-hero-machine-photo.cv-product-photo--hero {
        min-height: clamp(340px, 58vw, 480px);
        aspect-ratio: 3 / 4.5;
    }
}
@media (min-width: 1024px) {
    .cv-hero-machine-photo.cv-product-photo--hero {
        min-height: clamp(460px, 54vh, 640px);
        aspect-ratio: 3 / 4.55;
        padding-bottom: 8px;
    }
}
/* Fill card height — no transform scale (scale + overflow:hidden was cropping the feet) */
.cv-hero-machine-photo .cv-product-photo__img {
    width: auto;
    height: 96%;
    max-width: 98%;
    max-height: 96%;
    margin: 0 auto;
    padding: 0;
    object-fit: contain;
    object-position: center center;
    transform: none;
    filter: drop-shadow(0 14px 32px rgba(13, 35, 64, 0.22));
}
@media (min-width: 1024px) {
    .cv-hero-machine-photo .cv-product-photo__img {
        height: 97%;
        max-width: 99%;
    }
}
.cv-cta-machine-wrap {
    position: relative;
}
/* CTA configurator — machine on navy (no marble product-card frame) */
.cv-banner-dark-wrap--cta {
    overflow: visible;
    width: 100%;
}
.cv-banner-dark-wrap--cta .cv-cta-dark-photo {
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    min-height: clamp(340px, 58vw, 480px);
    aspect-ratio: 2 / 3.15;
    align-items: flex-end;
    justify-content: center;
}
@media (min-width: 640px) {
    .cv-banner-dark-wrap--cta .cv-cta-dark-photo {
        min-height: clamp(380px, 54vw, 540px);
    }
}
@media (min-width: 1024px) {
    .cv-banner-dark-wrap--cta .cv-cta-dark-photo {
        min-height: clamp(460px, 56vh, 640px);
        aspect-ratio: 2 / 3.05;
    }
}
.cv-banner-dark-wrap--cta .cv-cta-dark-photo .cv-banner-dark-photo__img {
    width: auto;
    height: 100%;
    min-width: 100%;
    max-width: 125%;
    object-fit: contain;
    object-position: center bottom;
    transform: scale(1.15);
    transform-origin: center bottom;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}
@media (min-width: 1024px) {
    .cv-banner-dark-wrap--cta .cv-cta-dark-photo .cv-banner-dark-photo__img {
        transform: scale(1.32);
        max-width: 135%;
    }
}
.cv-hero-machine-feet-shadow {
    position: absolute;
    left: 18%;
    right: 14%;
    bottom: 5%;
    height: clamp(14px, 3.5vw, 22px);
    border-radius: 50%;
    background: radial-gradient(
        ellipse at 50% 50%,
        rgba(11, 29, 51, .22) 0%,
        rgba(11, 29, 51, .08) 45%,
        transparent 72%
    );
    pointer-events: none;
    z-index: 1;
    transform: translateY(4px);
}
@media (max-width: 1023px) {
    .cv-hero-machine-feet-shadow {
        left: 14%;
        right: 10%;
        height: clamp(12px, 4vw, 18px);
    }
}

/* Bottom wave SVG: painters stack (three fills) — tweak radii via .hero-wave-wrap only */
.hero-wave-wrap {
    border-radius: 0 0 var(--cv-radius-xl) var(--cv-radius-xl);
    overflow: hidden;
}
@media (min-width: 1024px) {
    .hero-wave-wrap {
        border-radius: 0 0 42px 42px;
    }
}
.cv-hero-block--fullwidth .hero-wave-wrap {
    border-radius: 0;
}

/* Solid hero CTA: allow graceful wrap on narrow phones */
.cv-btn.cv-btn-hero-solid {
    white-space: normal;
    line-height: 1.35;
}

/*
 * Hero CTA — override `a { color: inherit }` etc.: white pill, navy label,
 * navy disc + white arrow (same in DE + EN).
 */
.cv-hero-block a.cv-btn.cv-btn-hero-solid {
    background-color: #fff !important;
    color: #0b1d33 !important;
    border-color: rgba(11, 29, 51, .1) !important;
    text-decoration: none;
}
.cv-hero-block a.cv-btn.cv-btn-hero-solid:hover {
    background-color: #f7fafc !important;
    color: #0b1d33 !important;
    border-color: rgba(11, 29, 51, .14) !important;
}
.cv-hero-block .cv-btn-icon-hero {
    background-color: #0b1d33 !important;
    color: #fff !important;
}
.cv-hero-block a.cv-btn.cv-btn-hero-solid span:not(.cv-btn-icon-hero) {
    color: inherit !important;
}

/* Diagonal stripes overlay (used on hero, ctas) */
.cv-stripes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: inherit;
}
.cv-stripes::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -15%;
    width: 70%;
    height: 130%;
    background: repeating-linear-gradient(
        -65deg,
        rgba(255,255,255,.05) 0 1px,
        transparent 1px 38px,
        rgba(45,151,199,.07) 38px 39px,
        transparent 39px 76px
    );
    transform: skewX(-15deg);
}
.cv-stripes::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, transparent 60%, rgba(45,151,199,.08) 80%, transparent 95%);
}
.cv-stripes--light::before {
    background: repeating-linear-gradient(
        -65deg,
        rgba(13, 35, 64, .04) 0 1px,
        transparent 1px 38px,
        rgba(45, 151, 199, .06) 38px 39px,
        transparent 39px 76px
    );
}
.cv-stripes--light::after {
    background:
        linear-gradient(105deg, transparent 55%, rgba(189, 227, 255, 0.45) 78%, transparent 95%);
}

/* Dotted pattern (shop hero) */
.cv-dots {
    --cv-dot: rgba(255,255,255,.18);
    background-image: radial-gradient(var(--cv-dot) 1.5px, transparent 1.6px);
    background-size: 22px 22px;
}

/* ============================================================
 * INPUTS
 * ============================================================ */
.cv-input {
    width: 100%;
    padding: .9rem 1rem;
    background: #fff;
    border: 1px solid var(--cv-line);
    border-radius: 12px;
    color: var(--cv-text);
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.cv-input:focus {
    outline: none;
    border-color: var(--cv-cyan-strong);
    box-shadow: 0 0 0 4px rgba(45,151,199,.12);
}
.cv-input-dark {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.16);
    color: #fff;
}
.cv-input-dark::placeholder { color: rgba(255,255,255,.5); }
.cv-input-dark:focus {
    border-color: var(--cv-cyan);
    box-shadow: 0 0 0 4px rgba(130,185,214,.18);
}

/* ============================================================
 * FAQ
 * ============================================================ */
.cv-faq {
    background: var(--cv-card-blue);
    border-radius: var(--cv-radius-xl);
    padding: 1.5rem 1.75rem;
    transition: background .25s ease;
    color: var(--cv-navy);
}
.cv-faq[open] {
    background: var(--cv-navy);
    color: #fff;
}
/* Force all child text to inherit the open/closed color — prevents Tailwind overrides */
.cv-faq[open] summary *,
.cv-faq[open] > div {
    color: inherit !important;
}
.cv-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.cv-faq summary::-webkit-details-marker { display: none; }
.cv-faq-icon {
    flex: none;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1.5px solid currentColor;
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.cv-faq[open] .cv-faq-icon { transform: rotate(45deg); }

/* ============================================================
 * MARQUEE
 * ============================================================ */
@keyframes cv-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.cv-marquee {
    animation: cv-marquee 38s linear infinite;
}
.cv-marquee:hover { animation-play-state: paused; }

/* ============================================================
 * REVEAL
 * ============================================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--cv-reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================================
 * STARS
 * ============================================================ */
.cv-stars { display: inline-flex; gap: 4px; color: var(--cv-navy); }
.cv-stars svg { width: 16px; height: 16px; fill: currentColor; }

/* Handwritten accent for "Start here!" */
.cv-handwritten {
    font-family: 'Caveat', cursive;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--cv-orange);
    line-height: 1;
}

/* Live underline accent (for cyan highlight phrases) */
.cv-underline-accent {
    height: 4px;
    width: 96px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--cv-cyan-strong), var(--cv-cyan), transparent);
    margin-top: 12px;
}

/* ============================================================
 * NAV LINKS
 * ============================================================ */
.cv-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: .5rem .25rem;
    color: var(--cv-text);
    font-weight: 500;
    font-size: .95rem;
    transition: color .2s ease;
}
.cv-nav-link:hover { color: var(--cv-cyan-strong); }
.cv-nav-link.is-active { color: var(--cv-navy); }
.cv-nav-link.is-active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--cv-cyan-strong);
    transform: translateX(-50%);
}

/* ============================================================
 * SECTION SPACING
 * ============================================================ */
.cv-section { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 1024px) { .cv-section { padding-top: 6rem; padding-bottom: 6rem; } }

/* ============================================================
 * UTILITY
 * ============================================================ */
.cv-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--cv-line-strong), transparent);
}

@media (max-width: 768px) {
    .cv-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

/* ============================================================
 * MOBILE RESPONSIVENESS FIXES
 * ============================================================ */

/* Allow button text to wrap on very small screens */
@media (max-width: 480px) {
    .cv-btn {
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }
    /* Slightly smaller padding on mobile */
    .cv-btn {
        padding: .7rem 1.15rem;
        font-size: .875rem;
    }
}

/* Prevent any element from overflowing its container horizontally */
.container {
    overflow-x: clip;
}

/* Cards should never overflow their grid cell */
.cv-card, .cv-card-product, .cv-card-feature {
    min-width: 0;
}

/* Input + button row in footer & contact: stack on mobile */
.cv-subscribe-row {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.cv-subscribe-row .cv-input {
    flex: 1 1 140px;
    min-width: 0;
}

/* ── Footer ── */
.cv-footer-section-title {
    font-family: 'DM Sans', Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(125, 211, 252, 0.95);
}

.cv-footer-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: var(--cv-radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.cv-footer-contact-card:hover {
    border-color: rgba(125, 211, 252, 0.22);
    background: rgba(255, 255, 255, 0.06);
}

.cv-footer-contact-icon {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 0.65rem;
    background: rgba(125, 211, 252, 0.12);
    color: var(--cv-hero-accent, #7dd3fc);
}

.cv-footer-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.35rem;
}

.cv-footer-value {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #fff;
    font-weight: 500;
}

.cv-footer-link:hover {
    color: var(--cv-hero-accent, #7dd3fc);
}

.cv-footer-nav-link .cv-footer-nav-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
}
.cv-footer-nav-link:hover .cv-footer-nav-dot {
    background: var(--cv-hero-accent, #7dd3fc);
    transform: scale(1.15);
}

.cv-footer-social-link {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    cursor: pointer;
}
a.cv-footer-social-link:hover {
    color: var(--cv-hero-accent, #7dd3fc);
    border-color: rgba(125, 211, 252, 0.45);
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}
.cv-footer-nav-link {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* Home banners — same main listing shot as product cards */
.cv-banner-product-wrap {
    position: relative;
}
/* Navy homepage banners — full-bleed dark scene shots (no marble product-card frame) */
.cv-banner-dark-wrap {
    position: relative;
}
.cv-banner-dark-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: clamp(280px, 40vw, 400px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.cv-banner-dark-wrap--product {
    overflow: visible;
}
.cv-banner-dark-wrap--product .cv-banner-dark-photo {
    overflow: visible;
    min-height: clamp(360px, 58vw, 520px);
    aspect-ratio: 2 / 3.4;
    align-items: center;
}
@media (min-width: 640px) {
    .cv-banner-dark-wrap--product .cv-banner-dark-photo {
        min-height: clamp(400px, 52vw, 560px);
        aspect-ratio: 2 / 3.25;
    }
}
@media (min-width: 1024px) {
    .cv-banner-dark-wrap--product .cv-banner-dark-photo {
        min-height: clamp(440px, 52vh, 620px);
        aspect-ratio: 2 / 3.15;
    }
}
.cv-banner-dark-photo__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.45));
}
.cv-banner-dark-wrap--product .cv-banner-dark-photo__img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
    transform: none;
}
.cv-banner-dark-wrap--xl .cv-banner-dark-photo {
    min-height: clamp(380px, 62vw, 540px);
    width: 100%;
    height: 100%;
}
@media (min-width: 1024px) {
    .cv-banner-dark-wrap--xl .cv-banner-dark-photo {
        min-height: min(68vh, 640px);
        max-height: 640px;
    }
    .cv-banner-dark-wrap--xl .cv-banner-dark-photo__img:not(.cv-banner-dark-photo__img--blend) {
        height: 108%;
        width: auto;
        min-width: 100%;
        max-width: 125%;
        margin: 0 auto;
        object-position: center bottom;
        transform: scale(1.22);
        transform-origin: center bottom;
    }
}
/* Locker banner — XY dark-scene render (same treatment as XL banner) */
.cv-banner-dark-wrap--locker {
    overflow: visible;
}
.cv-banner-dark-wrap--locker .cv-locker-dark-photo {
    min-height: clamp(380px, 62vw, 540px);
    width: 100%;
    height: 100%;
    overflow: visible;
}
@media (min-width: 1024px) {
    .cv-banner-dark-wrap--locker .cv-locker-dark-photo {
        min-height: min(68vh, 640px);
        max-height: 640px;
    }
    .cv-banner-dark-wrap--locker .cv-locker-dark-photo .cv-banner-dark-photo__img {
        height: 112%;
        width: auto;
        min-width: 100%;
        max-width: 132%;
        margin: 0 auto;
        object-position: center bottom;
        transform: scale(1.24);
        transform-origin: center bottom;
        filter: drop-shadow(0 32px 56px rgba(0, 0, 0, 0.55));
    }
}
@media (max-width: 1023px) {
    .cv-banner-dark-wrap--locker .cv-locker-dark-photo .cv-banner-dark-photo__img {
        height: 105%;
        width: auto;
        min-width: 102%;
        max-width: 128%;
        object-position: center bottom;
        transform: scale(1.12);
        transform-origin: center bottom;
    }
}
/* Genuine product photo — soft showcase panel on navy (no multiply silhouette) */
.cv-banner-dark-photo--showcase {
    background: linear-gradient(165deg, #f4f6f8 0%, #e9edf2 55%, #dfe5ec 100%);
    border-radius: var(--cv-radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    overflow: hidden;
    padding: clamp(10px, 2vw, 16px);
}
.cv-banner-dark-wrap--locker .cv-banner-dark-photo--showcase {
    min-height: clamp(400px, 64vw, 560px);
}
@media (min-width: 1024px) {
    .cv-banner-dark-wrap--locker .cv-banner-dark-photo--showcase {
        min-height: min(62vh, 580px);
    }
}
.cv-banner-dark-photo__img--showcase {
    object-fit: contain !important;
    object-position: center center !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    filter: drop-shadow(0 12px 28px rgba(13, 35, 64, 0.18));
}
/* Crop certification strip at bottom of supplier product shots */
.cv-banner-dark-wrap--locker .cv-banner-dark-photo--showcase {
    mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
}
.cv-banner-dark-shadow {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    height: clamp(14px, 3vw, 22px);
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
    pointer-events: none;
}

@media (max-width: 767px) {
    .cv-footer-bar {
        text-align: left;
    }
    .cv-footer-bar .lg\:text-right {
        text-align: left;
    }
    .cv-subscribe-row .cv-btn-cyan {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile filter sidebar drawer */
.cv-filter-drawer {
    display: none;
}
@media (max-width: 1023px) {
    .cv-filter-drawer {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 60;
        background: rgba(10,31,58,.55);
        backdrop-filter: blur(4px);
    }
    .cv-filter-drawer-panel {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(80vw, 320px);
        background: #fff;
        overflow-y: auto;
        padding: 1.5rem 1.25rem;
        box-shadow: 4px 0 32px rgba(10,31,58,.18);
    }
}

/* Testimonials: enable native touch scroll on mobile */
@media (max-width: 768px) {
    .cv-testimonials-track-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .cv-testimonials-track-wrap::-webkit-scrollbar { display: none; }
    .cv-testimonials-track-wrap .cv-testimonials-card {
        scroll-snap-align: start;
    }
}

/* Flex-banner machine row: constrain on small screens */
@media (max-width: 640px) {
    .cv-machine-row {
        overflow: hidden;
    }
}

@media print {
    .no-print { display: none !important; }
}
