/**
 * Marbl Subscribe Template - subscribe.css
 *
 * Universal subscribe + coming-soon layout. Consumes the canonical
 * marbl.css design system and uses the Marbl spacing tokens
 * (--gap-xs: 10, --gap-sm: 20, --gap-md: 40, --gap-lg: 60, --gap-xl: 80).
 *
 * Prefix: .subscribe-* for template-owned classes.
 * Loaded AFTER marbl.css.
 *
 * (c) 2026 Marbl Codes
 */

/* ============================================================================
   Colour overrides - darker charcoal palette for subscribe pages
   ============================================================================ */
:root {
    --marbl-charcoal-deep:    #161415;
    --marbl-charcoal:         #161415;
    --marbl-charcoal-light:   #161415;
    --marbl-charcoal-lighter: #1e1c1d;
}
body {
    background: var(--marbl-charcoal);
}
/* Stop the mobile-browser rubber-band / overscroll bounce that reveals
   the viewport background behind the page when you scroll past edges.
   overscroll-behavior also blocks scroll chaining from nested scrollers
   (e.g. panel bodies) back into the document. */
html, body {
    overscroll-behavior: none;
}
/* Panel bodies scroll internally; contain stops their scroll chaining
   up to the document and prevents the page behind jumping/peeking. */
.subscribe-form-panel__body,
.subscribe-manage-panel__body,
.subscribe-about__body {
    overscroll-behavior: contain;
}

/* ============================================================================
   Global scrollbar - track matches body colour
   ============================================================================ */
* {
    scrollbar-color: var(--marbl-ember) var(--marbl-charcoal);
}
::-webkit-scrollbar-track {
    background: var(--marbl-charcoal) !important;
}
::-webkit-scrollbar-thumb {
    border-color: var(--marbl-charcoal) !important;
}
::-webkit-scrollbar-corner {
    background: var(--marbl-charcoal) !important;
}
/* Mobile: hide the scrollbar entirely. Mobile browsers normally auto-hide;
   our ember override was forcing it permanently visible as a vertical
   orange line down the right edge. */
@media (max-width: 900px) {
    * { scrollbar-color: auto; scrollbar-width: none; }
    ::-webkit-scrollbar { display: none !important; width: 0 !important; }
}

/* ============================================================================
   Menu overlay - match darker background
   ============================================================================ */
.menu-overlay {
    overflow: hidden !important;
}
.menu-overlay__panel--back {
    background: var(--marbl-charcoal) !important;
}
.menu-overlay__panel--front {
    background: var(--marbl-charcoal) !important;
    overflow: hidden !important;
}
.menu-overlay__panel--front::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 70%;
    height: 80%;
    background: url('./marbl-line-element.svg') no-repeat center;
    background-size: contain;
    opacity: 0.03;
    pointer-events: none;
}

/* ============================================================================
   Header - clean, no border, no bg, no blur. Overrides menu.css
   .menu-is-open state which adds blur on mobile.
   ============================================================================ */
.site-header {
    border-bottom: none;
    background: transparent;
}
.site-header.menu-is-open {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
/* Override canonical mobile compression - keep 20px top/bottom on phones too.
   marbl.css drops to var(--space-4) (~16px) at <=768px which makes the
   header feel cramped against the logo. Hold the line at 20px. */
@media (max-width: 768px) {
    .site-header {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* ============================================================================
   Fluid viewport - desktop locks to 100vh, no scrollbar
   ============================================================================ */
@media (min-width: 901px) {
    html {
        overflow: hidden;
    }
    .page-wrapper {
        display: flex;
        flex-direction: column;
        height: 100vh;
    }
}

/* ============================================================================
   Stage
   ============================================================================ */
/* Footer "About" button - match canonical .footer-links a exactly */
.footer-links button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--marbl-white-50, rgba(255, 255, 255, 0.5));
    cursor: pointer;
    transition: color 0.15s ease;
}
.footer-links button:hover {
    color: var(--marbl-white, #ffffff);
}

.subscribe-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    /* Top padding includes header height so flex-centred content sits OPTICALLY
       centred between the visible bottom of the fixed header and the top of the
       footer, not mathematically centred against the viewport top. */
    padding: calc(var(--gap-xl, 80px) + var(--header-h, 84px)) var(--gap-md, 40px) var(--gap-xl, 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* ============================================================================
   Hero particle canvas - LCP fallback gradient (Truth #75), canvas fades in
   ============================================================================ */
.subscribe-stage__hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: auto;
    background: radial-gradient(
        ellipse 45% 70% at 62% 55%,
        rgba(255, 255, 255, 0.015) 0%,
        transparent 100%
    );
}
.subscribe-stage__hero-bg canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer;
    animation: subscribe-hero-fadein 0.8s ease-out 0.2s both;
}
@keyframes subscribe-hero-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================================================
   Content grid
   ============================================================================ */
.subscribe-grid {
    position: relative;
    z-index: 1;
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    pointer-events: none;
}

.subscribe-content {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm, 20px);
    max-width: clamp(640px, 40vw, 820px);
    pointer-events: auto;
}

/* ============================================================================
   Badge
   ============================================================================ */
.subscribe-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px var(--gap-xs, 10px);
    background: rgba(243, 82, 39, 0.06);
    border: 1px solid rgba(243, 82, 39, 0.18);
    border-radius: var(--radius-lg, 12px);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 9px;
    font-weight: var(--font-medium, 500);
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.subscribe-badge__dot {
    width: 4px;
    height: 4px;
    margin-right: 4px;
    background: var(--marbl-ember, #f35227);
    border-radius: 50%;
    animation: subscribe-pulse-dot 2s ease-in-out infinite;
}
.subscribe-badge__count {
    font-weight: var(--font-bold, 700);
    color: var(--marbl-white, #ffffff);
}
@keyframes subscribe-pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 4px rgba(243, 82, 39, 0.2); }
    50%      { opacity: 0.6; box-shadow: 0 0 0 8px rgba(243, 82, 39, 0.05); }
}

/* ============================================================================
   Title
   ============================================================================ */
.subscribe-title {
    font-family: var(--font-heading, 'Urbanist', sans-serif);
    font-size: clamp(48px, 2.5rem + 5vw, 128px);
    font-weight: var(--font-extrabold, 800);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--marbl-white, #ffffff);
    margin: 0;
}
.subscribe-title .highlight {
    display: block;
    font-family: 'Petrona', serif;
    font-style: italic;
    font-weight: 800;
    color: var(--marbl-ember, #f35227);
    letter-spacing: -0.02em;
}

.subscribe-subtitle {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: clamp(14px, 0.9rem + 0.3vw, 20px);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
    max-width: clamp(480px, 32vw, 640px);
    margin: 0;
}

/* ============================================================================
   Form
   ============================================================================ */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xs, 10px);
    max-width: 560px;
}
.subscribe-form__message {
    grid-column: 1 / -1;
    padding: var(--gap-xs, 10px) 14px;
    border-radius: 12px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13px;
    line-height: 1.5;
    display: none;
}
.subscribe-form__message.show { display: block; }
.subscribe-form__message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}
.subscribe-form__message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}
.subscribe-form__message.info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}
.subscribe-form__row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.subscribe-form__input {
    flex: 1 1 140px;
    min-width: 0;
    padding: 12px 18px;
    background: #050405;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg, 12px);
    color: var(--marbl-white, #ffffff);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.subscribe-form__input::placeholder { color: rgba(255, 255, 255, 0.3); }
.subscribe-form__input:focus {
    border-color: var(--marbl-ember, #f35227);
    background: #0d0b0c;
}
.subscribe-form__submit {
    flex: 0 0 auto;
    padding: 12px 24px;
    background: var(--marbl-ember, #f35227);
    color: #131112;
    border: 0;
    border-radius: var(--radius-lg, 12px);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: var(--font-bold, 700);
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
    white-space: nowrap;
}
.subscribe-form__submit:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.08);
}
.subscribe-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.subscribe-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================================================================
   Menu nav labels (Petrona italic, capitalised)
   ============================================================================ */
.menu-overlay__nav-label {
    list-style: none;
    font-family: 'Petrona', serif;
    font-style: italic;
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: capitalize;
    color: var(--marbl-ember, #f35227);
    padding: 6px 0 2px;
}
.menu-overlay__nav-divider {
    display: none;
}

/* ============================================================================
   Footer - three columns: [avatar + legal] [copyright] [social]
   Tighter padding (20px), profile bigger (36px).
   ============================================================================ */
.site-footer {
    background: var(--marbl-charcoal);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: var(--gap-sm, 20px) var(--gap-md, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-sm, 20px);
    flex-wrap: wrap;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: var(--gap-xs, 10px);
}
.footer-centre {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}
.footer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.footer-avatar:hover {
    border-color: var(--marbl-ember, #f35227);
}
.footer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================================
   About panel
   ============================================================================ */
.subscribe-about {
    position: fixed;
    inset: 0;
    z-index: 290;
    pointer-events: none;
    visibility: hidden;
    overflow: hidden;
}
.subscribe-about.is-open {
    pointer-events: auto;
    visibility: visible;
}
.subscribe-about__bg {
    position: absolute;
    inset: 0;
    background: var(--marbl-charcoal, #161415);
    clip-path: inset(0 0 100% 0);
}
.subscribe-about__bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 70%;
    height: 80%;
    background: url('./marbl-line-element.svg') no-repeat center;
    background-size: contain;
    opacity: 0.03;
    pointer-events: none;
}
.subscribe-about__body {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: safe center;
    justify-content: center;
    overflow-y: auto;
    padding: var(--gap-xl, 80px) clamp(20px, 1.5625vw + 15px, 40px);
    opacity: 0;
    transform: translateY(24px);
    scrollbar-width: none;
}
.subscribe-about__body::-webkit-scrollbar { display: none; }
.menu-overlay__content { scrollbar-width: none; }
.menu-overlay__content::-webkit-scrollbar { display: none; }

.subscribe-about__inner {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--gap-md, 40px);
}
.subscribe-about__section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4, 16px);
}
.subscribe-about__section + .subscribe-about__section {
    padding-top: var(--gap-md, 40px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.subscribe-about__avatar {
    width: var(--gap-xl, 80px);
    height: var(--gap-xl, 80px);
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.subscribe-about__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.subscribe-about__heading {
    font-family: var(--font-heading, 'Urbanist', sans-serif);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: var(--font-bold, 700);
    color: var(--marbl-white, #ffffff);
    line-height: 1.15;
    margin: 0;
}
.subscribe-about__text {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}
.subscribe-about__text + .subscribe-about__text { margin-top: var(--space-3, 12px); }
.subscribe-about__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-xs, 10px);
    margin-top: 8px;
}
.subscribe-about__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px var(--space-4, 16px);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg, 12px);
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: var(--font-medium, 500);
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.subscribe-about__link:hover {
    border-color: var(--marbl-ember, #f35227);
    color: var(--marbl-ember, #f35227);
}
.subscribe-about__link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

/* About close button - animated × matching burger toggle */
.subscribe-panel-close {
    position: fixed;
    top: var(--gap-sm, 20px);
    right: clamp(20px, 1.5625vw + 15px, 40px);
    z-index: calc(var(--z-modal, 300) + 15);
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.subscribe-panel-close.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.subscribe-panel-close .menu-toggle__line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
    width: 18px;
}
.subscribe-panel-close .menu-toggle__line:nth-child(2) {
    opacity: 0;
    width: 0;
}
.subscribe-panel-close .menu-toggle__line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
    width: 18px;
}
.menu-toggle {
    transition: opacity 0.2s ease;
}
.menu-toggle.is-about-hidden {
    opacity: 0;
    pointer-events: none;
}
@media (max-width: 768px) {
    .subscribe-panel-close {
        top: var(--gap-xs, 10px);
        right: var(--gap-sm, 20px);
    }
}

/* ============================================================================
   CTA button - replaces the inline form on the main page. Opens form panel.
   ============================================================================ */
.subscribe-cta {
    align-self: flex-start;
    padding: 14px 32px;
    background: var(--marbl-ember, #f35227);
    color: #131112;
    border: 0;
    border-radius: var(--radius-lg, 12px);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: var(--font-bold, 700);
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
    pointer-events: auto;
}
.subscribe-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}
.subscribe-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.subscribe-cta--secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.subscribe-cta--secondary:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    filter: none;
}

/* ============================================================================
   Form panel - full-screen overlay for the detailed subscribe form
   ============================================================================ */
.subscribe-form-panel {
    position: fixed;
    inset: 0;
    z-index: 290;
    pointer-events: none;
    visibility: hidden;
    overflow: hidden;
}
.subscribe-form-panel.is-open {
    pointer-events: auto;
    visibility: visible;
}
.subscribe-form-panel__bg {
    position: absolute;
    inset: 0;
    background: var(--marbl-charcoal, #161415);
    clip-path: inset(0 0 100% 0);
}
.subscribe-form-panel__bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 70%;
    height: 80%;
    background: url('./marbl-line-element.svg') no-repeat center;
    background-size: contain;
    opacity: 0.03;
    pointer-events: none;
}
.subscribe-form-panel__body {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: safe center;
    justify-content: center;
    padding: var(--gap-xl, 80px) var(--gap-md, 40px);
    opacity: 0;
    transform: translateY(24px);
    overflow-y: auto;
    scrollbar-width: none;
}
.subscribe-form-panel__body::-webkit-scrollbar { display: none; }

.subscribe-form-panel__inner {
    max-width: 500px;
    width: 100%;
}
.subscribe-form-panel__heading {
    grid-column: 1 / -1;
    font-family: var(--font-heading, 'Urbanist', sans-serif);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: var(--font-bold, 700);
    color: var(--marbl-white, #ffffff);
    line-height: 1.15;
    margin: 0;
}
.subscribe-form-panel__intro {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}
/* ============================================================================
   Step form - wf-* prefixed classes for the 4-step subscription flow
   ============================================================================ */
.subscribe-form-panel__form {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--text-base, 15px);
}

.wf-title {
    font-family: var(--font-heading, 'Urbanist', sans-serif);
    font-size: clamp(28px, 4vw, 64px);
    font-weight: var(--font-bold, 700);
    color: var(--marbl-white, #ffffff);
    text-align: center;
    margin: 0 0 var(--gap-sm, 20px);
}
.wf-dots {
    display: flex;
    gap: var(--gap-sm, 20px);
    justify-content: center;
    margin-bottom: var(--gap-md, 40px);
}
.wf-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.wf-dot svg {
    width: 14px;
    height: 14px;
    fill: rgba(255, 255, 255, 0.25);
    transition: fill 0.25s ease;
}
.wf-dot.is-active {
    border-color: var(--marbl-ember, #f35227);
    background: rgba(243, 82, 39, 0.1);
}
.wf-dot.is-active svg {
    fill: var(--marbl-ember, #f35227);
}

.wf-step { display: none; animation: wf-fade-in 0.3s ease both; }
.wf-step.is-active { display: block; }
@keyframes wf-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wf-step__heading {
    font-family: var(--font-heading, 'Urbanist', sans-serif);
    font-size: 22px;
    font-weight: var(--font-bold, 700);
    margin: 0 0 var(--gap-sm, 20px);
    color: var(--marbl-white, #ffffff);
    text-align: center;
}
.wf-step__sub, .wf-step__body {
    font-size: var(--text-sm, 13px);
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 var(--gap-sm, 20px);
    line-height: 1.6;
    text-align: center;
}

.wf-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-xs, 10px); }
.wf-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--gap-sm, 20px); }
.wf-label { font-size: var(--text-sm, 13px); color: rgba(255, 255, 255, 0.45); font-weight: var(--font-medium, 500); }

.wf-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    color: var(--marbl-white, #ffffff);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--text-base, 15px);
    padding: var(--space-3, 12px) 0;
    outline: none;
    transition: border-color 0.2s ease;
    width: 100%;
}
.wf-input:focus { border-bottom-color: var(--marbl-ember, #f35227); }
.wf-input::placeholder { color: rgba(255, 255, 255, 0.15); transition: opacity 0.2s ease; }
.wf-input:focus::placeholder { opacity: 0; }

.wf-error { font-size: var(--text-xs, 11px); color: #c0392b; margin: 0; display: none; }
.wf-error:not(:empty) { display: block; margin-bottom: var(--gap-xs, 10px); }

/* Global form banner - shown at bottom of form, won't overlap dots */
.wf-form-banner {
    margin-top: var(--gap-sm, 20px);
    padding: 12px 16px;
    border-radius: var(--radius-lg, 12px);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13px;
    line-height: 1.5;
    display: none;
}
.wf-form-banner.show { display: block; }
.wf-form-banner.error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
}
.wf-form-banner.success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #22c55e;
}
.wf-form-banner .wf-error-code {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    font-family: ui-monospace, monospace;
    font-size: 11px;
    opacity: 0.7;
}

.wf-success {
    background: rgba(243, 82, 39, 0.08);
    border: 1px solid rgba(243, 82, 39, 0.3);
    border-radius: var(--radius-lg, 12px);
    padding: var(--gap-sm, 20px);
    font-size: var(--text-sm, 13px);
    color: var(--marbl-ember, #f35227);
    margin-bottom: var(--gap-sm, 20px);
}
.wf-success--hidden { display: none; }

.wf-options { display: flex; flex-direction: column; gap: var(--gap-xs, 10px); margin-bottom: var(--gap-sm, 20px); }
.wf-option-btn {
    width: 100%;
    padding: 14px var(--gap-sm, 20px);
    border-radius: var(--radius-lg, 12px);
    border: none;
    font-family: var(--font-heading, 'Urbanist', sans-serif);
    font-size: var(--text-base, 15px);
    font-weight: var(--font-semibold, 600);
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
    text-align: center;
}
.wf-option-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.wf-option-btn--ember { background: var(--marbl-ember, #f35227); color: #131112; }
.wf-option-btn--danger { background: transparent; border: 1px solid #c0392b; color: #c0392b; }
.wf-option-btn--danger:hover { background: rgba(192, 57, 43, 0.08); }

.wf-fieldset { border: none; padding: 0; margin: 0; }
.wf-fieldset + .wf-fieldset {
    margin-top: var(--gap-sm, 20px);
}
.wf-check-grid {
    margin-bottom: var(--gap-sm, 20px);
}
.wf-legend {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--text-xs, 11px);
    font-weight: var(--font-semibold, 600);
    color: var(--marbl-ember, #f35227);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--gap-sm, 20px);
    display: flex;
    align-items: center;
    gap: var(--gap-xs, 10px);
    width: 100%;
}
.wf-legend::before,
.wf-legend::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}
.wf-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--gap-xs, 10px); }

.wf-check {
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
    font-size: var(--text-sm, 13px);
    cursor: pointer;
    user-select: none;
}
.wf-check input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm, 4px);
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.wf-check input[type="checkbox"]:checked {
    background: var(--marbl-ember, #f35227);
    border-color: var(--marbl-ember, #f35227);
}
.wf-check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid #131112;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
.wf-check--gdpr {
    padding: var(--gap-sm, 20px);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg, 12px);
    margin-bottom: 0;
    font-size: var(--text-base, 15px);
}

.wf-btn {
    padding: 13px 24px;
    border-radius: var(--radius-lg, 12px);
    font-family: var(--font-heading, 'Urbanist', sans-serif);
    font-size: var(--text-base, 15px);
    font-weight: var(--font-semibold, 600);
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.wf-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.wf-btn--primary { background: var(--marbl-ember, #f35227); color: #131112; }
.wf-btn--secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.wf-btn--secondary:hover { color: rgba(255, 255, 255, 0.88); border-color: rgba(255, 255, 255, 0.3); }

.wf-nav {
    display: flex;
    padding-top: var(--gap-sm, 20px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.wf-nav--end { justify-content: flex-end; border-top: none; padding-top: var(--gap-md, 40px); }
.wf-nav--start { justify-content: flex-start; }
.wf-nav--no-line { border-top: none; padding-top: var(--gap-md, 40px); }
.wf-nav--between { justify-content: space-between; }

.wf-link { color: var(--marbl-ember, #f35227); text-decoration: underline dashed; text-underline-offset: 3px; }
.wf-link:hover { text-decoration-style: solid; }
.wf-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.wf-btn--danger {
    background: transparent;
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}
.wf-btn--danger:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
    filter: none;
}

/* ============================================================================
   Manage panel - same structure as form panel
   ============================================================================ */
.subscribe-manage-panel {
    position: fixed;
    inset: 0;
    z-index: 290;
    pointer-events: none;
    visibility: hidden;
    overflow: hidden;
}
.subscribe-manage-panel.is-open {
    pointer-events: auto;
    visibility: visible;
}
.subscribe-manage-panel__bg {
    position: absolute;
    inset: 0;
    background: var(--marbl-charcoal, #161415);
    clip-path: inset(0 0 100% 0);
}
.subscribe-manage-panel__bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 70%;
    height: 80%;
    background: url('./marbl-line-element.svg') no-repeat center;
    background-size: contain;
    opacity: 0.03;
    pointer-events: none;
}
.subscribe-manage-panel__body {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: safe center;
    justify-content: center;
    padding: var(--gap-xl, 80px) var(--gap-md, 40px);
    opacity: 0;
    transform: translateY(24px);
    overflow-y: auto;
    scrollbar-width: none;
}
.subscribe-manage-panel__body::-webkit-scrollbar { display: none; }
.subscribe-manage-panel__inner {
    max-width: 500px;
    width: 100%;
}

@media (max-width: 600px) {
    .wf-row { grid-template-columns: 1fr; }
}

/* Name row - first + last side by side */
.subscribe-form-panel__name-row {
    display: flex;
    gap: var(--gap-xs, 10px);
}
.subscribe-form-panel__name-row .subscribe-form-panel__field {
    flex: 1;
}

/* Field labels + inputs */
.subscribe-form-panel__field label {
    display: block;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--text-xs, 11px);
    color: var(--marbl-ember, #f35227);
    margin-bottom: clamp(10px, 0.78vw + 7.5px, 20px);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.subscribe-form-panel__field input {
    width: 100%;
    padding: var(--space-3, 12px) 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    color: var(--marbl-white, #ffffff);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--text-base, 15px);
    outline: none;
    transition: border-color 0.15s ease;
}
.subscribe-form-panel__field input::placeholder {
    color: rgba(255, 255, 255, 0.15);
    transition: opacity 0.2s ease;
}
.subscribe-form-panel__field input:focus::placeholder {
    opacity: 0;
}
.subscribe-form-panel__field input:focus { border-bottom-color: var(--marbl-ember, #f35227); }
.subscribe-form-panel__field input.is-invalid,
.subscribe-form-panel__gdpr input.is-invalid {
    border-bottom-color: #ef4444;
}

/* Platform select dropdown - dark, minimal, underline style */
.subscribe-form-panel__select {
    width: 100%;
    padding: var(--space-3, 12px) 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    color: var(--marbl-white, #ffffff);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--text-base, 15px);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 12px;
    transition: border-color 0.15s ease;
}
.subscribe-form-panel__select:focus {
    border-bottom-color: var(--marbl-ember, #f35227);
}
.subscribe-form-panel__select option {
    background: var(--marbl-charcoal, #161415);
    color: var(--marbl-white, #ffffff);
}

/* Interest checkboxes - two-column grid */
.subscribe-form-panel__interests {
    border: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.subscribe-form-panel__interests legend,
.subscribe-form-panel__platforms legend {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--text-xs, 11px);
    color: var(--marbl-ember, #f35227);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0;
    grid-column: 1 / -1;
    margin-bottom: clamp(10px, 0.78vw + 7.5px, 20px);
}
.subscribe-form-panel__check {
    display: flex;
    align-items: center;
    gap: var(--gap-xs, 10px);
    padding: var(--space-2, 8px) 0;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--text-base, 15px);
    color: var(--marbl-white, #ffffff);
    cursor: pointer;
    transition: background 0.15s ease;
}
.subscribe-form-panel__check strong {
    font-weight: var(--font-semibold, 600);
}
.subscribe-form-panel__check span {
    display: block;
    font-size: var(--text-sm, 13px);
    color: rgba(255, 255, 255, 0.35);
    margin-top: 1px;
}

/* Custom dark-mode checkbox - replaces native checkbox */
.subscribe-form-panel__check input[type="checkbox"],
.subscribe-form-panel__gdpr input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    background: #050405;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.subscribe-form-panel__check input[type="checkbox"]:checked,
.subscribe-form-panel__gdpr input[type="checkbox"]:checked {
    background: var(--marbl-ember, #f35227);
    border-color: var(--marbl-ember, #f35227);
}
.subscribe-form-panel__check input[type="checkbox"]:checked::after,
.subscribe-form-panel__gdpr input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid #131112;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.subscribe-form-panel__check input[type="checkbox"]:focus-visible,
.subscribe-form-panel__gdpr input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--marbl-ember, #f35227);
    outline-offset: 2px;
}

/* Promise + GDPR */
.subscribe-form-panel__promise {
    display: flex;
    flex-direction: column;
    gap: var(--space-2, 8px);
}
.subscribe-form-panel__promise .subscribe-form-panel__gdpr {
    margin-top: var(--space-3, 12px);
}
.subscribe-form-panel__promise-title {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--text-xs, 11px);
    font-weight: var(--font-semibold, 600);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--marbl-ember, #f35227);
    margin: 0 0 clamp(10px, 0.78vw + 7.5px, 20px) 0;
}
.subscribe-form-panel__promise-text {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--text-base, 15px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}
.subscribe-form-panel__promise-text a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}
.subscribe-form-panel__promise-text a:hover {
    color: var(--marbl-ember, #f35227);
}
.subscribe-form-panel__gdpr {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--text-base, 15px);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}
.subscribe-form-panel__legal-links {
    display: flex;
    gap: var(--gap-xs, 10px);
}
.subscribe-form-panel__legal-links a {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 11px;
    color: var(--marbl-ember, #f35227);
    text-decoration: none;
}
.subscribe-form-panel__legal-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    /* Keep safe centre to match manage panel (no flex-start override).
       safe centre still falls back to flex-start when content overflows,
       so the form remains scrollable when it's taller than the viewport. */
    .subscribe-form-panel__body {
        padding: var(--gap-xl, 80px) var(--gap-sm, 20px) var(--gap-md, 40px);
    }
    .subscribe-form-panel__form {
        grid-template-columns: 1fr;
        gap: var(--gap-sm, 20px);
    }
    /* Single column on mobile - natural DOM order: fields → platforms → actions */
    .subscribe-form-panel__platforms { grid-template-columns: 1fr; }
    .subscribe-form-panel__name-row { flex-direction: column; }
    .subscribe-form-panel__submit { width: 100%; text-align: center; }
}

/* Submit */
.subscribe-form-panel__submit {
    padding: 14px var(--gap-md, 40px);
    background: var(--marbl-ember, #f35227);
    color: #131112;
    border: 0;
    border-radius: var(--radius-lg, 12px);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: var(--font-bold, 700);
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
    align-self: flex-start;
}
.subscribe-form-panel__submit:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.08);
}
.subscribe-form-panel__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.subscribe-form-panel__unsub {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--text-xs, 11px);
    color: rgba(255, 255, 255, 0.3);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
    align-self: flex-start;
}
.subscribe-form-panel__unsub:hover {
    color: #ef4444;
}

/* ============================================================================
   Footer right - copyright text then social icons
   ============================================================================ */
.footer-right {
    display: flex;
    align-items: center;
    gap: var(--gap-xs, 10px);
}
/* Impressum - company info icon with hover tooltip */
.footer-impressum {
    position: relative;
}
.footer-impressum__trigger {
    cursor: pointer;
}
.footer-impressum__tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    min-width: 280px;
    padding: 14px 18px;
    background: var(--marbl-charcoal-deep, #0d0b0c);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--gap-xs, 10px);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 11px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
    white-space: nowrap;
}
.footer-impressum:hover .footer-impressum__tooltip,
.footer-impressum__trigger[aria-expanded="true"] + .footer-impressum__tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ============================================================================
   Cookie consent - override marbl-core.js inline styles to match
   the darker subscribe aesthetic. Bottom-right rectangle.
   ============================================================================ */
.cookie-consent {
    position: fixed !important;
    bottom: var(--gap-sm, 20px) !important;
    right: var(--gap-sm, 20px) !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    max-width: 380px !important;
    padding: var(--gap-sm, 20px) !important;
    background: var(--marbl-charcoal-deep, #0d0b0c) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: var(--gap-xs, 10px) !important;
    z-index: 200 !important;
    text-align: left !important;
}
.cookie-consent-text {
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-size: var(--text-sm, 14px) !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 0 var(--gap-xs, 10px) !important;
}
.cookie-consent-text a {
    color: var(--marbl-ember, #f35227) !important;
}
.cookie-consent-actions {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}
.cookie-consent .btn,
.cookie-consent button {
    font-size: 12px !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-lg, 12px) !important;
}
/* Mobile: stretch full-width with side gutters, anchor to bottom centre */
@media (max-width: 600px) {
    .cookie-consent {
        right: var(--gap-sm, 20px) !important;
        left: var(--gap-sm, 20px) !important;
        max-width: none !important;
    }
}

/* ============================================================================
   Impressum - © icon tooltip with company details
   ============================================================================ */
.footer-impressum {
    position: relative;
}
.footer-impressum__trigger {
    background: transparent;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    color: inherit;
}
.footer-impressum__tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    min-width: 280px;
    padding: 14px 18px;
    background: var(--marbl-charcoal, #161415);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--gap-xs, 10px);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 11px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
    white-space: nowrap;
}
.footer-impressum:hover .footer-impressum__tooltip,
.footer-impressum__trigger:focus + .footer-impressum__tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ============================================================================
   Accessibility
   ============================================================================ */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    .subscribe-stage__hero-bg canvas { display: none !important; }
    .subscribe-badge__dot { animation: none; }
}

/* ============================================================================
   Responsive - mobile
   ============================================================================ */
@media (max-width: 900px) {
    .subscribe-stage {
        min-height: auto;
        padding: 144px 0 0 0;  /* 64px header + 80px gap (--gap-xl) */
        gap: var(--gap-md, 40px);
        justify-content: flex-start;
    }
    .subscribe-grid {
        order: 1;
        padding: 0 var(--gap-sm, 20px);
    }
    .subscribe-stage__hero-bg {
        position: relative;
        inset: auto;
        order: 2;
        width: 100%;
        height: 68vh;
        min-height: 440px;
        margin-bottom: 0;
        display: flex;
        align-items: flex-start;  /* pull statue up toward buttons rather than floating centre */
        justify-content: center;
    }
    .subscribe-title {
        font-size: clamp(40px, 8.5vw, 64px);
    }
    .site-footer {
        padding: var(--gap-sm, 20px);
        flex-direction: column;
        text-align: center;
    }
    .footer-left {
        justify-content: center;
    }
    .footer-centre {
        order: 1;
    }
}

@media (max-width: 600px) {
    .subscribe-stage {
        padding-top: 144px;  /* same as 900px: 64px header + 80px gap */
        gap: 40px;  /* explicit - tightens space between buttons and statue head */
    }
    .subscribe-form__row {
        flex-direction: column;
        align-items: stretch;
    }
    .subscribe-form__input { flex: 1 1 100%; }
    .subscribe-form__submit { width: 100%; text-align: center; }
    .subscribe-title {
        font-size: clamp(36px, 11vw, 52px);
    }
    .subscribe-subtitle { font-size: 13px; }
    .subscribe-stage__hero-bg {
        height: 62vh;
        min-height: 400px;
    }
}
