/*
 * Bali Cocktail Party — 2026 visual system.
 *
 * Berghain × Canggu beach club × neon-printed cocktail menu.
 *
 * Trends used:
 *   - vibrant neon + heavy glow
 *   - oversized, mixed-weight display type
 *   - retrofuturist scanlines + grain
 *   - collage / sticker layout (rotated cards, torn edges)
 *   - bento grid for the menu
 *   - marquee ticker
 *   - micro-animations + scroll reveal (animation-timeline: view() w/ JS fallback)
 *   - brutalist outline tags, monospace anti-design marks
 *   - one frosted nav (sparingly — main UI is solid for contrast)
 *
 * The :root block is locked — do not edit it without product approval.
 */

/* ────────────────────────────────────────────────────────────────────
   Locked theme — "Neon Party"
   ──────────────────────────────────────────────────────────────────── */
:root {
    --bcp-bg: #0A0F2C;
    --bcp-bg-elevated: #131A45;
    --bcp-bg-deep: #06091F;
    --bcp-ink: #FFFFFF;
    --bcp-ink-muted: #B8C0E8;
    --bcp-ink-dim: #6B72A0;
    --bcp-primary: #FF2D87;
    --bcp-primary-ink: #FFFFFF;
    --bcp-accent: #C6FF3D;
    --bcp-support: #00E0FF;
    --bcp-radius-sm: 0.375rem;
    --bcp-radius: 0.875rem;
    --bcp-radius-lg: 1.5rem;
    --bcp-shadow: 0 0 30px rgb(255 45 135 / 30%);
    --bcp-shadow-lg: 0 20px 60px rgb(255 45 135 / 35%);
    --bcp-font-display: "Space Grotesk", "Inter", sans-serif;
    --bcp-font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --bcp-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --bcp-hero-gradient: radial-gradient(ellipse at top, #FF2D87 0%, #1A1147 50%, #0A0F2C 100%);
    --bcp-glow-primary: 0 0 40px rgb(255 45 135 / 50%);
    --bcp-glow-accent: 0 0 40px rgb(198 255 61 / 40%);
}

/* ────────────────────────────────────────────────────────────────────
   Reset-ish + base
   ──────────────────────────────────────────────────────────────────── */
html {
    background: var(--bcp-bg);
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background: var(--bcp-bg);
    color: var(--bcp-ink);
    font-family: var(--bcp-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--bcp-accent);
    color: var(--bcp-bg-deep);
}

h1, h2, h3, h4,
.bcp-display {
    font-family: var(--bcp-font-display);
    letter-spacing: -0.02em;
    line-height: 1;
}

a { color: inherit; }

/* ────────────────────────────────────────────────────────────────────
   Grain overlay — applies to <body> via ::after.
   SVG noise tile is tiny (data URI < 2 KB) and uses background-repeat.
   ──────────────────────────────────────────────────────────────────── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.08;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 160px 160px;
}

/* ────────────────────────────────────────────────────────────────────
   Scanline overlay — applied where retrofuturism is wanted (.bcp-scanlines)
   ──────────────────────────────────────────────────────────────────── */
.bcp-scanlines {
    position: relative;
}

.bcp-scanlines::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 3px,
        rgb(255 255 255 / 3%) 3px,
        rgb(255 255 255 / 3%) 4px
    );
    z-index: 1;
}

/* ────────────────────────────────────────────────────────────────────
   Display type
   ──────────────────────────────────────────────────────────────────── */
.bcp-display-xl {
    font-family: var(--bcp-font-display);
    font-size: clamp(3rem, 9vw, 9rem);
    line-height: 0.88;
    letter-spacing: -0.045em;
    font-weight: 700;
}

.bcp-display-lg {
    font-family: var(--bcp-font-display);
    font-size: clamp(2rem, 5.5vw, 4.5rem);
    line-height: 0.92;
    letter-spacing: -0.035em;
    font-weight: 700;
}

.bcp-display-xl em,
.bcp-display-lg em {
    font-style: italic;
    color: var(--bcp-accent);
    font-weight: 500;
    text-shadow: 0 0 30px rgb(198 255 61 / 35%);
}

/* Outlined text — useful for layered overlap with solid copy. */
.bcp-outline-text {
    -webkit-text-stroke: 2px var(--bcp-ink);
    color: transparent;
}

.bcp-outline-text.bcp-outline-primary { -webkit-text-stroke-color: var(--bcp-primary); }
.bcp-outline-text.bcp-outline-accent  { -webkit-text-stroke-color: var(--bcp-accent); }

/* Glow on the brand display headlines. Heavy but legible thanks to deep navy bg. */
.bcp-glow-pink {
    text-shadow:
        0 0 18px rgb(255 45 135 / 65%),
        0 0 60px rgb(255 45 135 / 35%);
}

.bcp-glow-lime {
    text-shadow:
        0 0 18px rgb(198 255 61 / 70%),
        0 0 60px rgb(198 255 61 / 30%);
}

.bcp-glow-cyan {
    text-shadow:
        0 0 18px rgb(0 224 255 / 70%),
        0 0 60px rgb(0 224 255 / 30%);
}

/* ────────────────────────────────────────────────────────────────────
   Pills + brutalist tags
   ──────────────────────────────────────────────────────────────────── */
.bcp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bcp-accent);
    color: var(--bcp-bg-deep);
    border-radius: 9999px;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgb(198 255 61 / 45%);
}

.bcp-pill::before {
    content: '';
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    background: var(--bcp-bg-deep);
    border-radius: 9999px;
    animation: bcp-pulse 1.4s ease-in-out infinite;
}

@keyframes bcp-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.4; }
}

.bcp-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1.5px solid var(--bcp-ink);
    color: var(--bcp-ink);
    padding: 0.3rem 0.8rem;
    font-family: var(--bcp-font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0;
    background: transparent;
}

.bcp-tag-primary { border-color: var(--bcp-primary); color: var(--bcp-primary); }
.bcp-tag-accent  { border-color: var(--bcp-accent);  color: var(--bcp-accent); }
.bcp-tag-support { border-color: var(--bcp-support); color: var(--bcp-support); }

/* Monospace stamp — "// LOADED 02:14" inline labels */
.bcp-stamp {
    font-family: var(--bcp-font-mono);
    font-size: 0.72rem;
    color: var(--bcp-ink-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bcp-stamp::before {
    content: '// ';
    color: var(--bcp-primary);
}

/* ────────────────────────────────────────────────────────────────────
   Buttons
   ──────────────────────────────────────────────────────────────────── */
.bcp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--bcp-primary);
    color: var(--bcp-primary-ink);
    border-radius: 9999px;
    padding: 0.9rem 1.85rem;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--bcp-font-display);
    letter-spacing: 0.01em;
    box-shadow:
        0 0 0 1px rgb(255 45 135 / 30%),
        0 8px 28px rgb(255 45 135 / 45%);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    cursor: pointer;
    border: 0;
    line-height: 1;
}

.bcp-btn-primary::after {
    content: '→';
    transition: transform 0.22s ease;
    font-weight: 400;
}

.bcp-btn-primary:hover,
.bcp-btn-primary:focus-visible {
    transform: translateY(-2px) rotate(-0.6deg);
    box-shadow:
        0 0 0 1px rgb(255 45 135 / 40%),
        0 14px 40px rgb(255 45 135 / 65%);
    outline: 0;
}

.bcp-btn-primary:hover::after,
.bcp-btn-primary:focus-visible::after {
    transform: translateX(5px);
}

.bcp-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: transparent;
    color: var(--bcp-ink);
    border: 1.5px solid var(--bcp-ink);
    border-radius: 9999px;
    padding: 0.85rem 1.6rem;
    font-weight: 600;
    text-decoration: none;
    font-family: var(--bcp-font-display);
    transition: background 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
    cursor: pointer;
    line-height: 1;
}

.bcp-btn-ghost:hover,
.bcp-btn-ghost:focus-visible {
    background: var(--bcp-accent);
    color: var(--bcp-bg-deep);
    border-color: var(--bcp-accent);
    transform: translateY(-2px);
    outline: 0;
}

/* ────────────────────────────────────────────────────────────────────
   Cards
   ──────────────────────────────────────────────────────────────────── */
.bcp-card {
    background: var(--bcp-bg-elevated);
    border-radius: var(--bcp-radius);
    border: 1px solid rgb(255 255 255 / 6%);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(.2,.7,.3,1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.bcp-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 0.375rem;
    background: var(--bcp-card-accent, var(--bcp-primary));
    z-index: 2;
}

.bcp-card:hover {
    transform: translateY(-6px) rotate(-0.4deg);
    border-color: var(--bcp-card-accent, var(--bcp-primary));
    box-shadow:
        0 24px 60px rgb(0 0 0 / 45%),
        0 0 40px color-mix(in srgb, var(--bcp-card-accent, var(--bcp-primary)) 30%, transparent);
}

.bcp-card-accent-primary { --bcp-card-accent: var(--bcp-primary); }
.bcp-card-accent-accent  { --bcp-card-accent: var(--bcp-accent); }
.bcp-card-accent-support { --bcp-card-accent: var(--bcp-support); }

/* Sticker card — slightly rotated by default, becomes straight on hover.
   Use class .bcp-sticker on a wrapper; pair with .bcp-sticker-left / -right for tilt. */
.bcp-sticker {
    transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
}

.bcp-sticker.bcp-sticker-left  { transform: rotate(-2.5deg); }
.bcp-sticker.bcp-sticker-right { transform: rotate( 2.5deg); }
.bcp-sticker.bcp-sticker-flat  { transform: rotate( 0deg); }

.bcp-sticker:hover { transform: rotate(0deg) scale(1.03); }

/* Torn-edge cocktail card — used in the menu bento.
   clip-path simulates a torn paper edge. */
.bcp-torn {
    --tear: 1.4rem;

    clip-path: polygon(
        0% var(--tear), 4% 0%, 12% 0.6rem, 22% 0%, 32% 0.4rem, 44% 0%, 56% 0.5rem, 68% 0%, 80% 0.6rem, 92% 0%, 100% var(--tear),
        100% calc(100% - var(--tear)), 96% 100%, 88% calc(100% - 0.6rem), 76% 100%, 64% calc(100% - 0.4rem), 52% 100%, 40% calc(100% - 0.5rem), 28% 100%, 16% calc(100% - 0.6rem), 4% 100%, 0% calc(100% - var(--tear))
    );
}

/* ────────────────────────────────────────────────────────────────────
   Bento grid (menu page)
   ──────────────────────────────────────────────────────────────────── */
.bcp-bento {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(6, 1fr);
}

.bcp-bento > * { min-width: 0; }

.bcp-bento-wide    { grid-column: span 6; }
.bcp-bento-half    { grid-column: span 6; }
.bcp-bento-third   { grid-column: span 6; }
.bcp-bento-twothird { grid-column: span 6; }

@media (min-width: 768px) {
    .bcp-bento-wide    { grid-column: span 6; }
    .bcp-bento-half    { grid-column: span 3; }
    .bcp-bento-third   { grid-column: span 2; }
    .bcp-bento-twothird { grid-column: span 4; }
}

/* ────────────────────────────────────────────────────────────────────
   Hero
   ──────────────────────────────────────────────────────────────────── */
.bcp-hero {
    background: var(--bcp-hero-gradient);
    color: var(--bcp-primary-ink);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.bcp-hero::before,
.bcp-hero::after {
    content: '';
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.bcp-hero::before {
    background: var(--bcp-accent);
    width: 28rem;
    height: 28rem;
    top: -8rem;
    left: -8rem;
    animation: bcp-float-a 14s ease-in-out infinite;
}

.bcp-hero::after {
    background: var(--bcp-support);
    width: 22rem;
    height: 22rem;
    bottom: -6rem;
    right: -6rem;
    animation: bcp-float-b 18s ease-in-out infinite;
}

@keyframes bcp-float-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(2.5rem, 2rem) scale(1.08); }
}

@keyframes bcp-float-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-3rem, -1.5rem) scale(1.05); }
}

.bcp-hero > * { position: relative; z-index: 1; }

/* ────────────────────────────────────────────────────────────────────
   Section bands / decoration
   ──────────────────────────────────────────────────────────────────── */
.bcp-confetti-bg {
    background-image:
        radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--bcp-primary) 22%, transparent) 0, transparent 22%),
        radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--bcp-accent) 16%, transparent) 0, transparent 20%),
        radial-gradient(circle at 88% 82%, color-mix(in srgb, var(--bcp-support) 18%, transparent) 0, transparent 24%),
        radial-gradient(circle at 16% 88%, color-mix(in srgb, var(--bcp-accent) 14%, transparent) 0, transparent 22%);
    background-color: var(--bcp-bg);
}

.bcp-section-band {
    background:
        radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--bcp-primary) 25%, transparent), transparent 60%),
        var(--bcp-bg);
}

.bcp-section-deep {
    background: var(--bcp-bg-deep);
}

/* ────────────────────────────────────────────────────────────────────
   Marquee ticker
   ──────────────────────────────────────────────────────────────────── */
.bcp-marquee {
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgb(255 255 255 / 8%);
    border-bottom: 1px solid rgb(255 255 255 / 8%);
    background: var(--bcp-bg-deep);
    padding: 1.25rem 0;
}

.bcp-marquee-track {
    display: flex;
    width: max-content;
    gap: 3rem;
    animation: bcp-marquee 32s linear infinite;
    will-change: transform;
}

.bcp-marquee-track > span {
    font-family: var(--bcp-font-display);
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--bcp-ink);
    display: inline-flex;
    align-items: center;
    gap: 3rem;
    white-space: nowrap;
}

.bcp-marquee-track > span em {
    color: var(--bcp-accent);
    font-style: italic;
    font-weight: 500;
}

.bcp-marquee-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    background: var(--bcp-primary);
    border-radius: 9999px;
    box-shadow: 0 0 12px var(--bcp-primary);
}

@keyframes bcp-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.bcp-marquee:hover .bcp-marquee-track {
    animation-play-state: paused;
}

/* ────────────────────────────────────────────────────────────────────
   Nav
   ──────────────────────────────────────────────────────────────────── */
.bcp-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: color-mix(in srgb, var(--bcp-bg-deep) 80%, transparent);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid rgb(255 255 255 / 6%);
}

.bcp-nav-link {
    position: relative;
    font-family: var(--bcp-font-display);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--bcp-ink);
    text-decoration: none;
    padding: 0.25rem 0;
}

.bcp-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--bcp-accent);
    border-radius: 9999px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s cubic-bezier(.2,.7,.3,1);
}

.bcp-nav-link:hover::after,
.bcp-nav-link:focus-visible::after { transform: scaleX(1); }

/* ────────────────────────────────────────────────────────────────────
   Step numbers (how-it-works)
   ──────────────────────────────────────────────────────────────────── */
.bcp-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 0;
    border: 2px solid var(--bcp-accent);
    color: var(--bcp-accent);
    font-family: var(--bcp-font-display);
    font-size: 2.1rem;
    font-weight: 700;
    background: transparent;
    box-shadow: 0 0 30px rgb(198 255 61 / 30%), inset 0 0 0 4px var(--bcp-bg);
    position: relative;
    transform: rotate(-3deg);
}

.bcp-step-number::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid var(--bcp-primary);
    opacity: 0.4;
    transform: rotate(6deg);
    pointer-events: none;
}

/* ────────────────────────────────────────────────────────────────────
   Marker highlight + squiggle
   ──────────────────────────────────────────────────────────────────── */
.bcp-marker {
    background: linear-gradient(
        180deg,
        transparent 58%,
        color-mix(in srgb, var(--bcp-primary) 60%, transparent) 58%,
        color-mix(in srgb, var(--bcp-primary) 60%, transparent) 92%,
        transparent 92%
    );
    padding: 0 0.18em;
    color: var(--bcp-ink);
    font-weight: 600;
}

.bcp-marker-accent {
    background: linear-gradient(
        180deg,
        transparent 58%,
        color-mix(in srgb, var(--bcp-accent) 65%, transparent) 58%,
        color-mix(in srgb, var(--bcp-accent) 65%, transparent) 92%,
        transparent 92%
    );
}

.bcp-squiggle {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 8' preserveAspectRatio='none'><path d='M0 4 Q 10 0, 20 4 T 40 4 T 60 4 T 80 4' stroke='%23C6FF3D' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: repeat-x;
    background-size: 80px 8px;
    background-position: bottom;
    padding-bottom: 0.55rem;
}

/* ────────────────────────────────────────────────────────────────────
   Forms (Symfony form rows — preserved field names; styles only)
   ──────────────────────────────────────────────────────────────────── */
.bcp-form { display: grid; gap: 1.25rem; }

.bcp-form label,
.bcp-form-label {
    display: block;
    font-family: var(--bcp-font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--bcp-accent);
    margin-bottom: 0.35rem;
}

.bcp-form input[type="text"],
.bcp-form input[type="email"],
.bcp-form input[type="tel"],
.bcp-form input[type="number"],
.bcp-form input[type="date"],
.bcp-form input[type="time"],
.bcp-form input[type="url"],
.bcp-form textarea,
.bcp-form select {
    width: 100%;
    background: var(--bcp-bg-deep);
    border: 1.5px solid rgb(255 255 255 / 14%);
    border-radius: var(--bcp-radius-sm);
    color: var(--bcp-ink);
    font-family: var(--bcp-font-body);
    font-size: 1rem;
    padding: 0.85rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bcp-form input::placeholder,
.bcp-form textarea::placeholder { color: var(--bcp-ink-dim); }

.bcp-form input:focus,
.bcp-form textarea:focus,
.bcp-form select:focus {
    outline: 0;
    border-color: var(--bcp-accent);
    box-shadow: 0 0 0 4px rgb(198 255 61 / 18%);
    background: var(--bcp-bg);
}

.bcp-form textarea { min-height: 7rem; resize: vertical; }

.bcp-form .form-help { color: var(--bcp-ink-dim); font-size: 0.85rem; margin-top: 0.25rem; }
.bcp-form .form-errors { color: var(--bcp-primary); font-size: 0.85rem; list-style: none; padding: 0; margin: 0.35rem 0 0; }

/* Symfony's wrapped row pattern */
.bcp-form > div { display: contents; }

/* Recolour the inherited Tailwind admin form theme so widgets read dark.
   The form theme uses .form-field (white-bg fieldset wrapper) and lays
   inputs out with text-slate-900 etc. We override those for .bcp-form only. */
.bcp-form .form-field,
.bcp-form fieldset.form-field {
    background: var(--bcp-bg-deep);
    border: 1.5px solid rgb(255 255 255 / 14%);
    border-radius: var(--bcp-radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bcp-form .form-field:focus-within,
.bcp-form fieldset.form-field:focus-within {
    border-color: var(--bcp-accent);
    box-shadow: 0 0 0 4px rgb(198 255 61 / 18%);
}

.bcp-form .form-field legend,
.bcp-form fieldset.form-field legend {
    background: transparent;
    color: var(--bcp-accent);
    font-family: var(--bcp-font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    padding: 0 0.3rem;
}

/* Inputs & textareas inside the inherited theme.
   The fieldset IS the visual container — the input is just the text caret.
   Strip the bg/border/radius/box-shadow that the bare-input rule above
   gave naked inputs, so we don't get a nested rounded box drawn on top of
   the fieldset's own focus ring. */
.bcp-form .form-field input,
.bcp-form .form-field select,
.bcp-form .form-field textarea,
.bcp-form fieldset.form-field input,
.bcp-form fieldset.form-field select,
.bcp-form fieldset.form-field textarea {
    width: 100%;
    background: transparent;
    color: var(--bcp-ink);
    border: 0;
    border-radius: 0;
    outline: 0;
    padding: 0.4rem 0 0.6rem;
    box-shadow: none;
    font-family: var(--bcp-font-body);
    font-size: 1rem;
    transition: none;
}

.bcp-form .form-field input:focus,
.bcp-form .form-field select:focus,
.bcp-form .form-field textarea:focus,
.bcp-form fieldset.form-field input:focus,
.bcp-form fieldset.form-field select:focus,
.bcp-form fieldset.form-field textarea:focus {
    background: transparent;
    box-shadow: none;
    border: 0;
}

.bcp-form .form-field input::placeholder,
.bcp-form .form-field textarea::placeholder,
.bcp-form fieldset.form-field input::placeholder,
.bcp-form fieldset.form-field textarea::placeholder {
    color: var(--bcp-ink-dim);
}

/* Phone-number compound field's mini select. macOS Chrome ignores option
   colour rules and falls back to the OS-light dropdown unless the select
   advertises a dark colour-scheme, so do that to keep text legible. */
.bcp-form select { color-scheme: dark; }
.bcp-form select option { background: var(--bcp-bg-deep); color: var(--bcp-ink); }

/* Typeahead controller dropdown when triggered from a dark BCP form.
   The dropdown is appended to <body> outside .bcp-form, so we tag it
   with this class in the controller and re-skin the admin-theme Tailwind
   classes the controller bakes in. */
.typeahead-dropdown-dark {
    background: var(--bcp-bg-elevated) !important;
    border-color: rgb(255 255 255 / 14%) !important;
    color: var(--bcp-ink);
}
.typeahead-dropdown-dark > div { color: var(--bcp-ink); }
.typeahead-dropdown-dark > div.text-slate-500 { color: var(--bcp-ink-dim) !important; }
.typeahead-dropdown-dark > div:hover,
.typeahead-dropdown-dark > div.bg-indigo-50 {
    background: rgb(198 255 61 / 12%) !important;
    color: var(--bcp-ink);
}
.typeahead-dropdown-dark > div.bg-indigo-100 {
    background: rgb(198 255 61 / 22%) !important;
    color: var(--bcp-accent);
}

/* Checkbox + radio recolour. The form theme adds these via Tailwind. */
.bcp-form input[type="checkbox"],
.bcp-form input[type="radio"] {
    accent-color: var(--bcp-accent);
    background: var(--bcp-bg-deep);
    border-color: rgb(255 255 255 / 30%);
}

/* ────────────────────────────────────────────────────────────────────
   FAQ — native <details> styled as collapsible cards
   ──────────────────────────────────────────────────────────────────── */
.bcp-faq {
    padding: 0;
    overflow: hidden;
}

.bcp-faq-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    transition: background 0.2s ease;
}

.bcp-faq-summary::-webkit-details-marker,
.bcp-faq-summary::marker { display: none; }

.bcp-faq-summary:hover {
    background: rgb(255 255 255 / 3%);
}

.bcp-faq-number {
    font-family: var(--bcp-font-mono);
    font-size: 0.85rem;
    color: var(--bcp-accent);
    flex-shrink: 0;
    width: 2.5rem;
}

.bcp-faq-question {
    flex: 1;
    font-family: var(--bcp-font-display);
    font-size: clamp(1.05rem, 1.4vw + 0.6rem, 1.35rem);
    font-weight: 500;
    color: var(--bcp-ink);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.bcp-faq-toggle {
    color: var(--bcp-ink-muted);
    transition: transform 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.bcp-faq[open] .bcp-faq-toggle {
    transform: rotate(180deg);
    color: var(--bcp-accent);
}

.bcp-faq[open] .bcp-faq-summary {
    background: rgb(198 255 61 / 4%);
}

.bcp-faq-answer {
    padding: 0.25rem 1.75rem 1.75rem calc(2.5rem + 1.25rem + 1.75rem);
    color: var(--bcp-ink-muted);
    line-height: 1.7;
    font-size: 1rem;
    max-width: 60ch;
}

@media (max-width: 640px) {
    .bcp-faq-summary { padding: 1.1rem 1.25rem; gap: 0.75rem; }
    .bcp-faq-number { width: 2rem; font-size: 0.75rem; }
    .bcp-faq-answer { padding: 0.25rem 1.25rem 1.25rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .bcp-faq-summary, .bcp-faq-toggle { transition: none; }
}

/* Generic text colour fixes — anything inside .bcp-form with admin-theme
   text classes should read on dark. */
.bcp-form [class*="text-slate-9"],
.bcp-form [class*="text-slate-8"],
.bcp-form [class*="text-slate-7"] {
    color: var(--bcp-ink) !important;
}

.bcp-form [class*="text-slate-5"],
.bcp-form [class*="text-slate-6"] {
    color: var(--bcp-ink-muted) !important;
}

.bcp-form [class*="text-slate-4"],
.bcp-form [class*="text-slate-3"] {
    color: var(--bcp-ink-dim) !important;
}

/* "bg-white" inherited from admin theme on legend backings. */
.bcp-form [class*="bg-white"] {
    background: transparent !important;
}

/* ────────────────────────────────────────────────────────────────────
   Scroll reveal — JS adds .is-visible. Falls back to CSS-only timeline
   where supported.
   ──────────────────────────────────────────────────────────────────── */
.bcp-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
    will-change: opacity, transform;
}

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

@supports (animation-timeline: view()) {
    .bcp-reveal {
        animation: bcp-reveal-in linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 60%;
    }
}

@keyframes bcp-reveal-in {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ────────────────────────────────────────────────────────────────────
   Utility helpers
   ──────────────────────────────────────────────────────────────────── */
.bcp-muted    { color: var(--bcp-ink-muted); }
.bcp-dim      { color: var(--bcp-ink-dim); }
.bcp-text-primary { color: var(--bcp-primary); }
.bcp-text-accent  { color: var(--bcp-accent); }
.bcp-text-support { color: var(--bcp-support); }

.bcp-rotate-l-1 { transform: rotate(-1deg); }
.bcp-rotate-l-2 { transform: rotate(-2deg); }
.bcp-rotate-r-1 { transform: rotate( 1deg); }
.bcp-rotate-r-2 { transform: rotate( 2deg); }

.bcp-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 18%), transparent);
}

/* ────────────────────────────────────────────────────────────────────
   Accessibility — honour reduced-motion
   ──────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .bcp-hero::before,
    .bcp-hero::after { animation: none !important; }
    .bcp-marquee-track { animation: none !important; transform: none; }
    .bcp-pill::before { animation: none !important; }

    .bcp-reveal {
        opacity: 1;
        transform: none;
    }
}
