/* ─────────────────────────────────────────────────────────────────────────── */
/* 0. CSS RESET & ROOT TOKENS                                                  */
/* ─────────────────────────────────────────────────────────────────────────── */

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

:root {
    /* Palette */
    --bg-charcoal:       #1A1C23;
    --bg-charcoal-mid:   #20222B;
    --bg-consult:        #0F1018;   /* deeper dark for consultation */
    --gold-bright:       #E7C67D;
    --gold-deep:         #D4AF37;
    --gold-glow:         rgba(231, 198, 125, 0.22);
    --gold-glow-strong:  rgba(231, 198, 125, 0.42);
    --text-body:         #E0E0E0;
    --text-muted:        #888899;
    --text-white:        #FAFAFA;
    --border-subtle:     rgba(231, 198, 125, 0.18);

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', 'Helvetica Neue', Arial, sans-serif;

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2.5rem;
    --space-xl:  4rem;

    /* Transition */
    --fade-speed: 0.55s;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* Prevent iOS bounce causing colour-flashes outside content */
    background-color: var(--bg-charcoal);
}

body {
    background-color: var(--bg-charcoal);
    color: var(--text-body);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;   /* safe on mobile browsers with dynamic address bar */
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/*
 * Global utility: anything with class "hidden" is removed from layout.
 * Used by JS to show/hide result-loading, result-footer, cards phases, etc.
 */
.hidden { display: none !important; }

/* ─────────────────────────────────────────────────────────────────────────── */
/* 1. SPA TOP-LEVEL VIEWS                                                      */
/* ─────────────────────────────────────────────────────────────────────────── */

#spa-root {
    /* Shell only — views are fixed and handle their own sizing */
    min-height: 100vh;
    min-height: 100dvh;
}

/*
 * All views are ALWAYS position:fixed covering the full viewport.
 * Visibility is controlled ONLY by opacity + pointer-events + z-index.
 * This is the cleanest SPA pattern: no document-flow conflicts,
 * no blank-space artifacts, no height inheritance bugs.
 */
.view-section {
    position: fixed;
    inset: 0;                    /* top:0 right:0 bottom:0 left:0 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;            /* each view scrolls itself */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity var(--fade-speed) ease;
}

.view-section.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;                  /* active view always on top */
}

/*
 * .view-inactive = invisible but present (opacity transition).
 * Do NOT use .hidden on view sections — that would display:none them
 * and break the opacity fade transition.
 */
.view-section.view-inactive {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 2. CELESTIAL DOME (Landing ::before)                                        */
/* ─────────────────────────────────────────────────────────────────────────── */

/*
 * Landing: overflow:hidden + absolute ::before creates the starfield dome
 * that fades into the dark background. The ::before is absolute so it stays
 * within the fixed viewport panel.
 */
#view-landing { overflow-x: hidden; overflow-y: auto; }

#view-landing::before {
    content: '';
    position: absolute;          /* stays inside the landing panel */
    top: 0; left: 0; right: 0;
    height: 100%;                /* cover the whole panel */
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 50% -10%, rgba(112,86,180,0.30) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 50% 0%,   rgba(212,175,55,0.12) 0%, transparent 60%),
        radial-gradient(circle 1px at 10% 20%, rgba(231,198,125,0.90) 0%, transparent 100%),
        radial-gradient(circle 1px at 22%  8%, rgba(255,255,255,0.75) 0%, transparent 100%),
        radial-gradient(circle 1px at 35% 35%, rgba(231,198,125,0.80) 0%, transparent 100%),
        radial-gradient(circle 1px at 48% 12%, rgba(255,255,255,0.85) 0%, transparent 100%),
        radial-gradient(circle 1px at 55% 28%, rgba(255,255,255,0.60) 0%, transparent 100%),
        radial-gradient(circle 1px at 66%  7%, rgba(231,198,125,0.70) 0%, transparent 100%),
        radial-gradient(circle 1px at 74% 22%, rgba(255,255,255,0.80) 0%, transparent 100%),
        radial-gradient(circle 1px at 82% 15%, rgba(231,198,125,0.65) 0%, transparent 100%),
        radial-gradient(circle 1px at 90% 38%, rgba(255,255,255,0.70) 0%, transparent 100%),
        radial-gradient(circle 1px at  5% 42%, rgba(255,255,255,0.55) 0%, transparent 100%),
        radial-gradient(circle 1px at 15% 55%, rgba(231,198,125,0.45) 0%, transparent 100%),
        radial-gradient(circle 1px at 28% 48%, rgba(255,255,255,0.50) 0%, transparent 100%),
        radial-gradient(circle 1px at 42% 60%, rgba(231,198,125,0.40) 0%, transparent 100%),
        radial-gradient(circle 1px at 60% 50%, rgba(255,255,255,0.45) 0%, transparent 100%),
        radial-gradient(circle 1px at 78% 55%, rgba(231,198,125,0.50) 0%, transparent 100%),
        radial-gradient(circle 1px at 93% 62%, rgba(255,255,255,0.40) 0%, transparent 100%),
        radial-gradient(circle 2px at 18% 18%, rgba(231,198,125,0.55) 0%, transparent 150%),
        radial-gradient(circle 2px at 53%  5%, rgba(255,255,255,0.55) 0%, transparent 150%),
        radial-gradient(circle 2px at 88% 30%, rgba(231,198,125,0.50) 0%, transparent 150%),
        var(--bg-charcoal);
    /* Fade the starfield naturally into the charcoal below */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 80%);
            mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 80%);
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 3. LANDING CONTENT                                                          */
/* ─────────────────────────────────────────────────────────────────────────── */

.landing-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    max-width: 780px;
    width: 100%;
    gap: var(--space-md);
}

.top-ornament {
    font-size: 0.75rem;
    letter-spacing: 0.6em;
    color: var(--gold-bright);
    opacity: 0.55;
    user-select: none;
}

.brand-title {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-white);
    line-height: 1.1;
    text-shadow: 0 0 60px rgba(231,198,125,0.20), 0 2px 4px rgba(0,0,0,0.6);
}

.brand-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.05rem, 3vw, 1.45rem);
    font-weight: 400;
    color: var(--gold-bright);
    letter-spacing: 0.04em;
    margin-top: calc(-1 * var(--space-sm));
}

.title-rule {
    width: 60px; height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-deep), transparent);
    margin: 0 auto;
    opacity: 0.7;
}

.expert-copy {
    font-size: clamp(0.95rem, 2.2vw, 1.10rem);
    font-weight: 300;
    color: var(--text-body);
    max-width: 600px;
    line-height: 1.9;
}

.discretion-note {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: calc(-1 * var(--space-xs));
}

/* Landing content is fully visible on load — no entrance delay */
.landing-content > * {
    opacity: 1;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 4. GOLD CTA BUTTON                                                          */
/* ─────────────────────────────────────────────────────────────────────────── */

.gold-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1.5px solid var(--gold-deep);
    color: var(--gold-bright);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 1rem 2.8rem;
    border-radius: 2px;
    min-width: 240px;
    position: relative;
    overflow: hidden;
    transition: color 0.35s, border-color 0.35s, box-shadow 0.35s, transform 0.2s;
}

.gold-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(231,198,125,0.08), rgba(212,175,55,0.15));
    opacity: 0;
    transition: opacity 0.35s;
}

.gold-btn:hover {
    border-color: var(--gold-bright);
    color: var(--text-white);
    box-shadow: 0 0 18px var(--gold-glow), 0 0 42px var(--gold-glow), inset 0 0 12px var(--gold-glow);
    transform: translateY(-1px);
}
.gold-btn:hover::before { opacity: 1; }
.gold-btn:active { transform: translateY(0) scale(0.98); }
.gold-btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }

.gold-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.gold-btn--full {
    width: 100%;
    min-width: unset;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 5. CONSULTATION VIEW SHELL                                                  */
/* ─────────────────────────────────────────────────────────────────────────── */

#view-consultation {
    background-color: var(--bg-consult);
    background-image:
        radial-gradient(circle 1px at 15% 25%, rgba(231,198,125,0.25) 0%, transparent 100%),
        radial-gradient(circle 1px at 72% 12%, rgba(255,255,255,0.20) 0%, transparent 100%),
        radial-gradient(circle 1px at 40% 80%, rgba(231,198,125,0.20) 0%, transparent 100%),
        radial-gradient(circle 1px at 88%  5%, rgba(255,255,255,0.22) 0%, transparent 100%),
        radial-gradient(circle 1px at 55% 70%, rgba(231,198,125,0.18) 0%, transparent 100%),
        radial-gradient(circle 1px at  5% 60%, rgba(255,255,255,0.15) 0%, transparent 100%),
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(80,60,140,0.18) 0%, transparent 70%);
    /* top padding makes room for the back button + progress dots */
    padding-top: 3.5rem;
    justify-content: center;
}

/* ── Back button ── */
.back-btn {
    position: absolute;
    top: 1.2rem;
    left: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.25s;
    padding: 0.5rem 0.2rem;
    opacity: 0;                    /* hidden until Step 2+ */
    pointer-events: none;
    transition: opacity 0.3s, color 0.25s;
}
.back-btn.visible {
    opacity: 1;
    pointer-events: auto;
}
.back-btn:hover { color: var(--gold-bright); }
.back-arrow { font-size: 1rem; }

/* ── Progress dots ── */
.progress-dots {
    position: absolute;
    top: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}
.progress-dots .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
    transition: background-color 0.4s, transform 0.4s;
}
.progress-dots .dot.active {
    background-color: var(--gold-bright);
    transform: scale(1.4);
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 6. CONSULTATION STEPS                                                       */
/* ─────────────────────────────────────────────────────────────────────────── */

/*
 * Consultation steps: simple show/hide via display.
 * The parent #view-consultation (position:fixed, flex column, justify-content:center)
 * handles all the centering — steps just need to appear as a centered flex child.
 */
.consult-step {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 1rem var(--space-md);
    opacity: 0;
    transition: opacity var(--fade-speed) ease;
}

/* Active step: visible and fades in (JS sets opacity:1 after display:flex) */
.consult-step.active {
    display: flex;
    flex-direction: column;
    opacity: 1;           /* show immediately; JS overrides inline for transitions */
}

/* .hidden on a step overrides display:flex back to none */
.consult-step.hidden {
    display: none;
    opacity: 0;
}

.step-content {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
}

.step-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
    opacity: 0.8;
}

.step-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 600;
    color: var(--text-white);
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.step-heading--sm {
    font-size: clamp(1.3rem, 4.5vw, 1.9rem);
}

.step-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 380px;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 7. CHOICE BUTTONS (Domain & Specifics)                                      */
/* ─────────────────────────────────────────────────────────────────────────── */

.choice-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    margin-top: 0.5rem;
}

.choice-btn {
    display: grid;
    grid-template-columns: 2.4rem 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.8rem;
    row-gap: 0.1rem;
    align-items: center;
    text-align: left;
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-body);
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.15s;
    /* Minimum tap target height for mobile */
    min-height: 64px;
}

.choice-btn:hover,
.choice-btn:focus-visible {
    background: rgba(231,198,125,0.07);
    border-color: rgba(231,198,125,0.55);
    box-shadow: 0 0 16px rgba(231,198,125,0.12);
    transform: translateY(-1px);
}

.choice-btn:active {
    transform: scale(0.98);
}

.choice-btn:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 3px;
}

.choice-icon {
    grid-row: 1 / 3;
    font-size: 1.4rem;
    color: var(--gold-bright);
    justify-self: center;
    line-height: 1;
    opacity: 0.85;
}

.choice-label {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 0.02em;
    align-self: end;
}

.choice-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    align-self: start;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 8. STEP 3 — THE WHISPER (Textarea)                                          */
/* ─────────────────────────────────────────────────────────────────────────── */

/*  Mobile keyboard safe layout:
    The consultation view is position:relative when active so the browser
    can push it up when the software keyboard opens. Using dvh keeps it
    from overflowing on iOS/Android.                                          */

.step-content--whisper {
    max-width: 560px;
    gap: 1rem;
}

.whisper-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.whisper-textarea {
    width: 100%;
    min-height: 130px;
    max-height: 240px;
    padding: 1.1rem 1.2rem;
    background: rgba(255, 248, 228, 0.04);
    border: 1px solid rgba(231, 198, 125, 0.25);
    border-radius: 6px;
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 0.98rem;
    font-weight: 300;
    line-height: 1.75;
    resize: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    /* Parchment-like inner warmth */
    box-shadow: inset 0 0 24px rgba(231, 198, 125, 0.04);
}

.whisper-textarea::placeholder {
    color: rgba(136, 136, 153, 0.65);
    font-style: italic;
}

.whisper-textarea:focus {
    outline: none;
    border-color: rgba(231, 198, 125, 0.55);
    box-shadow:
        inset 0 0 24px rgba(231, 198, 125, 0.06),
        0 0 18px rgba(231, 198, 125, 0.10);
}

.char-counter {
    text-align: right;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-top: -0.3rem;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 9. RESPONSIVE — COMPREHENSIVE MOBILE FIRST                                  */
/* ─────────────────────────────────────────────────────────────────────────── */

/* ── Safe-area insets (notch / home-indicator phones) ── */
@supports (padding: env(safe-area-inset-bottom)) {
    .view-section {
        padding-left:  env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    #view-landing    { padding-bottom: env(safe-area-inset-bottom); }
    #view-cards      { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
    .back-btn {
        top: calc(1.2rem + env(safe-area-inset-top));
        left: calc(1.4rem + env(safe-area-inset-left));
    }
}

/* ── Base mobile (≤ 480px) ── */
@media (max-width: 480px) {

    /* Landing ─────────────────────────────────────────────────── */
    .landing-content {
        padding: 2.5rem 1.2rem 1.8rem;
        gap: 0.9rem;
    }

    .brand-title {
        font-size: clamp(2rem, 10vw, 2.8rem);
        letter-spacing: 0.06em;
    }

    .brand-subtitle {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
    }

    .expert-copy {
        font-size: 0.88rem;
        line-height: 1.65;
    }

    .gold-btn {
        width: 100%;
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
        letter-spacing: 0.14em;
    }

    .title-rule {
        margin: 0.2rem 0;
    }

    /* Consultation ─────────────────────────────────────────────── */
    /* Scrollable so keyboard never cuts off the submit button */
    #view-consultation {
        justify-content: flex-start;
        padding-top: 3.8rem;  /* clear the back-btn */
        padding-bottom: 1.5rem;
    }

    .consult-step.active {
        padding: 0.5rem 1rem 1.2rem;
    }

    .step-content {
        gap: 0.85rem;
    }

    .step-heading {
        font-size: clamp(1.2rem, 6vw, 1.65rem);
    }

    .step-heading--sm {
        font-size: clamp(1.1rem, 5.5vw, 1.45rem);
    }

    .step-sub {
        font-size: 0.82rem;
    }

    .choice-grid {
        gap: 0.6rem;
    }

    .choice-btn {
        padding: 0.75rem 0.9rem;
        min-height: 56px;     /* 56px still meets iOS tap target */
        gap: 0;
    }

    .choice-label {
        font-size: 0.95rem;
    }

    .choice-desc {
        font-size: 0.72rem;
    }

    .choice-icon {
        font-size: 1.2rem;
    }

    /* Textarea step ─────────────────────────────────────────────── */
    .whisper-textarea {
        min-height: 100px;   /* shorter on small screens */
        max-height: 160px;
        font-size: 0.92rem;
        padding: 0.9rem 1rem;
    }

    /* Progress dots & back btn ─────────────────────────────────── */
    .progress-dots {
        bottom: auto;
        top: 1.1rem;
    }

}

/* ── Tablet (481 – 768px) ── */
@media (min-width: 481px) and (max-width: 768px) {
    .landing-content {
        padding: 3rem var(--space-md) 2rem;
    }
    .step-content {
        max-width: 480px;
    }
    .choice-btn {
        padding: 0.9rem 1.1rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 10. VIEW-CARDS SHELL                                                        */
/* ─────────────────────────────────────────────────────────────────────────── */

#view-cards {
    background-color: var(--bg-consult);
    background-image:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(80,60,140,0.18) 0%, transparent 70%),
        radial-gradient(circle 1px at 15% 25%, rgba(231,198,125,0.20) 0%, transparent 100%),
        radial-gradient(circle 1px at 82% 10%, rgba(255,255,255,0.18) 0%, transparent 100%),
        radial-gradient(circle 1px at 38% 85%, rgba(231,198,125,0.16) 0%, transparent 100%);
    /* flex-start: content stacks from top so the scrollable result shows correctly */
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
    padding: 2rem 1rem 4rem;
}

/* Two sub-phases inside #view-cards, not full-screen positioned */
.cards-phase {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cards-phase.hidden { display: none; }

/* ─────────────────────────────────────────────────────────────────────────── */
/* 11. SPREAD PHASE                                                            */
/* ─────────────────────────────────────────────────────────────────────────── */

.spread-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.5rem;
}

/* Three cards row */
.three-spread {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    width: 100%;
    margin-top: 0.5rem;
}

.card-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.card-slot-label {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-deep);
    opacity: 0.8;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 12. 3D CARD FLIP                                                            */
/* ─────────────────────────────────────────────────────────────────────────── */

.card-container {
    /* Fixed proportions via aspect-ratio — no vw hacks */
    width: min(160px, 28vw);
    aspect-ratio: 200 / 380;
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.18s;
}

.card-container:hover { transform: scale(1.03); }
.card-container.flipped:hover { transform: none; }

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.card-container.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.45);
    overflow: hidden;
}

/* Card back — decorative pattern */
.card-face--front {
    background-color: #1a1730;
}

.card-back-art {
    width: 100%;
    height: 100%;
    background-image: url('images/tarot_back_cover.png');
    background-size: cover;
    background-position: center;
    /* Fallback if image not found: elegant dark pattern */
    background-color: #1a1730;
}

/* Card face (rotated 180 so it starts hidden) */
.card-face--back {
    transform: rotateY(180deg);
    background: linear-gradient(160deg, #fdfbf5 0%, #f0e9d5 100%);
}

.card-art {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* "Not yet flippable" dimming for cards 1 and 2 */
.card-container.locked {
    opacity: 0.45;
    cursor: not-allowed;
}
.card-container.locked:hover { transform: none; }

.spread-instruction {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-align: center;
    min-height: 1.4em;
    transition: opacity 0.4s;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 13. RESULT PHASE                                                            */
/* ─────────────────────────────────────────────────────────────────────────── */

.result-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.result-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;           /* no gap — blocks are self-contained with border */
}

/* Each card's result block — magazine-style with thin gold divider */
.result-block {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;    /* vertically centre image with text for shorter passages */
    padding: 2rem 0;
    border-bottom: 1px solid rgba(231,198,125,0.13);
}

.result-block:first-child { padding-top: 0.5rem; }
.result-block:last-child  { border-bottom: none; padding-bottom: 0.5rem; }

/* Alternating: even blocks flip image to right for visual rhythm */
.result-block:nth-child(even) {
    flex-direction: row-reverse;
}

/* Larger image column */
.result-img-col {
    flex: 0 0 auto;
    width: min(220px, 42vw);
}

.result-card-img {
    width: 100%;
    aspect-ratio: 200 / 380;
    border-radius: 12px;
    box-shadow:
        0 12px 36px rgba(0,0,0,0.6),
        0 0 0 1px rgba(231,198,125,0.12);
    background-size: cover;
    background-position: center;
    background-color: #1a1730;
}

.result-text-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.result-card-position {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
    opacity: 0.9;
}

.result-card-name {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 3vw, 1.45rem);
    color: var(--text-white);
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.result-text-body {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 300;
    color: var(--text-body);
    line-height: 1.9;
    /* Fade-in animation applied by JS */
}

/* ── Text reveal animation ── */
@keyframes revealText {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.text-revealed {
    animation: revealText 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Loading dots ── */
.result-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
    font-family: var(--font-serif);
    font-style: italic;
}

.loader-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background-color: var(--gold-deep);
    animation: dotPulse 1.4s ease-in-out infinite both;
}
.loader-dot:nth-child(1) { animation-delay: -0.32s; }
.loader-dot:nth-child(2) { animation-delay: -0.16s; }
.loader-dot:nth-child(3) { animation-delay: 0s; }

@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(0.4); opacity: 0.3; }
    40%           { transform: scale(1);   opacity: 1; }
}

.loader-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-left: 0.3rem;
}

/* ── Result footer ── */
.result-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0 1rem;
    text-align: center;
}

.result-closing {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--gold-bright);
    opacity: 0.85;
    letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 14. MOBILE OVERRIDES FOR CARD VIEW                                          */
/* ─────────────────────────────────────────────────────────────────────────── */

/* ── Mobile card spread: all 3 cards visible without scrolling ── */
@media (max-width: 560px) {

    #view-cards {
        padding: 1.2rem 0.75rem 3rem;
    }

    /* Spread header tighter */
    .spread-header {
        gap: 0.3rem;
        padding-top: 0;
    }

    .spread-header .step-eyebrow { font-size: 0.66rem; }

    .spread-header .step-heading {
        font-size: clamp(1rem, 5vw, 1.3rem);
    }

    .spread-header .step-sub {
        font-size: 0.78rem;
        display: none;  /* hide subtitle to save vertical space */
    }

    /* 3 cards side by side, each ~28vw wide, gap between them */
    .three-spread {
        gap: 0.7rem;
        flex-wrap: nowrap;  /* force single row */
        justify-content: center;
        width: 100%;
    }

    .card-slot {
        gap: 0.4rem;
    }

    .card-slot-label {
        font-size: 0.65rem;
        letter-spacing: 0.12em;
    }

    .card-container {
        width: min(100px, 27vw);
    }

    .spread-instruction {
        font-size: 0.78rem;
        margin-top: 0.2rem;
    }

    /* Results phase — vertical stack, centred image ── */
    .result-header {
        gap: 0.5rem;
        padding-top: 0.2rem;
        margin-bottom: 0.2rem;
    }

    .result-header .step-heading {
        font-size: clamp(1.05rem, 5vw, 1.4rem);
    }

    .result-content {
        gap: 0;
    }

    /* Override alternating direction — all blocks stack vertically */
    .result-block,
    .result-block:nth-child(even) {
        flex-direction: column;
        align-items: center;
        gap: 0.9rem;
        padding: 1.4rem 0;
    }

    .result-img-col {
        width: min(130px, 38vw);
    }

    .result-card-img {
        border-radius: 8px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.55);
    }

    .result-text-col {
        width: 100%;
        text-align: center;
        gap: 0.4rem;
    }

    .result-card-name {
        font-size: clamp(1rem, 4.5vw, 1.25rem);
    }

    .result-text-body {
        font-size: 0.88rem;
        line-height: 1.75;
    }

    .result-footer {
        padding: 1.2rem 0 0.5rem;
        gap: 1rem;
    }

    .result-closing {
        font-size: 0.9rem;
    }

    /* Loader text smaller on mobile */
    .loader-text {
        font-size: 0.78rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 15. EASTERN ALIGNMENT UPSELL VIEW                                          */
/* ─────────────────────────────────────────────────────────────────────────── */

#view-upsell {
    background-color: var(--bg-consult);
    background-image:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(80,60,140,0.18) 0%, transparent 70%),
        radial-gradient(circle 1px at 18% 18%, rgba(231,198,125,0.30) 0%, transparent 100%),
        radial-gradient(circle 1px at 82% 14%, rgba(255,255,255,0.22) 0%, transparent 100%),
        radial-gradient(circle 1px at 45% 80%, rgba(231,198,125,0.18) 0%, transparent 100%);
    justify-content: flex-start;
    align-items: center;
    padding: 2.4rem 1.4rem 3.4rem;
}

.upsell-shell {
    width: 100%;
    max-width: 880px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.upsell-block {
    background: rgba(10, 8, 20, 0.72);
    border-radius: 12px;
    border: 1px solid rgba(231,198,125,0.18);
    padding: 1.6rem 1.6rem 1.8rem;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(0, 0, 0, 0.65);
}

.upsell-block--hero {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.upsell-cards-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.upsell-card-thumb {
    width: min(120px, 24vw);
    aspect-ratio: 200 / 380;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: #1a1730;
    box-shadow:
        0 10px 28px rgba(0,0,0,0.6),
        0 0 0 1px rgba(231,198,125,0.16);
}

.upsell-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3.2vw, 2.25rem);
    font-weight: 600;
    color: var(--text-white);
    line-height: 1.35;
    letter-spacing: 0.02em;
}

.upsell-body {
    font-size: 0.96rem;
    color: var(--text-body);
    line-height: 1.9;
}

.upsell-block--offer {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 1.6rem;
    align-items: center;
}

.upsell-subheading {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--gold-bright);
    margin-bottom: 0.8rem;
}

.upsell-benefits {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: var(--text-body);
}

.upsell-mock-cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(231,198,125,0.12), rgba(212,175,55,0.28)),
        radial-gradient(circle at 20% 0%, rgba(255,255,255,0.40) 0%, transparent 56%),
        linear-gradient(160deg, #181320, #06040c);
    box-shadow:
        0 22px 46px rgba(0,0,0,0.72),
        0 0 0 1px rgba(231,198,125,0.24);
    position: relative;
}

.upsell-mock-cover::before,
.upsell-mock-cover::after {
    content: '';
    position: absolute;
    inset: 10% 16%;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow:
        0 12px 30px rgba(0,0,0,0.6),
        0 0 0 1px rgba(0,0,0,0.55);
}

.upsell-mock-cover::after {
    inset: 16% 22%;
    opacity: 0.75;
    border-color: rgba(231,198,125,0.85);
}

.upsell-block--intention {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.upsell-intent-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-white);
}

.upsell-intent-copy {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.upsell-textarea-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.upsell-textarea {
    width: 100%;
    min-height: 130px;
    max-height: 240px;
    padding: 1rem 1.1rem;
    background: rgba(255, 248, 228, 0.04);
    border: 1px solid rgba(231, 198, 125, 0.25);
    border-radius: 6px;
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 0.96rem;
    font-weight: 300;
    line-height: 1.7;
    resize: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: inset 0 0 22px rgba(231, 198, 125, 0.05);
}

.upsell-textarea::placeholder {
    color: rgba(136, 136, 153, 0.65);
    font-style: italic;
}

.upsell-textarea:focus {
    outline: none;
    border-color: rgba(231, 198, 125, 0.55);
    box-shadow:
        inset 0 0 24px rgba(231, 198, 125, 0.06),
        0 0 18px rgba(231, 198, 125, 0.10);
}

.upsell-char-remaining {
    align-self: flex-end;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.upsell-block--cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-align: center;
}

.upsell-microcopy {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    #view-upsell {
        padding: 1.8rem 1rem 2.6rem;
    }

    .upsell-block {
        padding: 1.3rem 1.2rem 1.4rem;
    }

    .upsell-block--offer {
        grid-template-columns: minmax(0, 1fr);
    }

    .upsell-cards-row {
        gap: 0.6rem;
    }

    .upsell-card-thumb {
        width: min(90px, 26vw);
    }

    .upsell-heading {
        font-size: clamp(1.25rem, 5vw, 1.65rem);
    }

    .upsell-body {
        font-size: 0.9rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 16. KARMA LOG BUTTON & DRAWER                                              */
/* ─────────────────────────────────────────────────────────────────────────── */

.karma-log-btn {
    position: fixed;
    top: 1.1rem;
    right: 1.2rem;
    z-index: 24;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(231,198,125,0.4);
    background: radial-gradient(circle at 0 0, rgba(231,198,125,0.18), transparent 55%),
                rgba(6,6,12,0.88);
    color: var(--gold-bright);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow:
        0 0 16px rgba(0,0,0,0.8),
        0 0 0 1px rgba(0,0,0,0.9);
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.18s, box-shadow 0.22s, border-color 0.22s, background 0.22s;
}

.karma-log-btn::before {
    content: '✶';
    font-size: 0.9rem;
}

.karma-log-btn:hover {
    border-color: var(--gold-bright);
    box-shadow:
        0 0 20px rgba(231,198,125,0.35),
        0 0 0 1px rgba(0,0,0,0.9);
    transform: translateY(-1px);
}

.karma-log-btn:active {
    transform: translateY(0) scale(0.98);
}

.karma-log-btn:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 3px;
}

@media (max-width: 560px) {
    .karma-log-btn {
        font-size: 0.72rem;
        padding: 0.5rem 1rem;
        right: 0.9rem;
    }
}

.karma-drawer {
    position: fixed;
    inset: 0;
    z-index: 30;
    pointer-events: none;
}

.karma-drawer-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100%;
    background: radial-gradient(circle at top left, rgba(231,198,125,0.32), transparent 55%),
                rgba(5,5,10,0.98);
    border-left: 1px solid rgba(231,198,125,0.28);
    box-shadow:
        -18px 0 40px rgba(0,0,0,0.85),
        0 0 0 1px rgba(0,0,0,0.9);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.6rem;
}

.karma-drawer.is-open {
    pointer-events: auto;
}

.karma-drawer.is-open .karma-drawer-inner {
    transform: translateX(0);
}

@media (max-width: 640px) {
    .karma-drawer-inner {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(231,198,125,0.25);
        padding: 1.1rem 1.1rem 1.5rem;
    }
}

.karma-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.karma-drawer-title-group {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.karma-drawer-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(231,198,125,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--gold-bright);
    box-shadow: 0 0 18px rgba(231,198,125,0.2);
}

.karma-drawer-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text-white);
}

.karma-drawer-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.karma-drawer-close {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.1rem 0.2rem;
    transition: color 0.2s, transform 0.15s;
}

.karma-drawer-close:hover {
    color: var(--gold-bright);
    transform: scale(1.05);
}

.karma-drawer-close:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
}

.karma-empty {
    font-size: 0.86rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 0.6rem 0.1rem 1.4rem;
}

.karma-list {
    flex: 1;
    overflow-y: auto;
    margin: 0.2rem -0.2rem 0;
    padding-right: 0.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.karma-newsletter-banner {
    margin-top: 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(231,198,125,0.24);
    background:
        radial-gradient(circle at 0 0, rgba(231,198,125,0.22), transparent 55%),
        rgba(10, 8, 20, 0.72);
    padding: 0.85rem 0.9rem 0.95rem;
    box-shadow:
        0 14px 32px rgba(0,0,0,0.65),
        0 0 0 1px rgba(0,0,0,0.7);
}

.karma-banner-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-white);
    line-height: 1.35;
    margin-bottom: 0.2rem;
}

.karma-banner-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

.karma-banner-btn {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(231,198,125,0.45);
    background: rgba(6,6,12,0.75);
    color: var(--gold-bright);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.6rem 0.9rem;
    transition: transform 0.18s, border-color 0.2s, box-shadow 0.22s;
}

.karma-banner-btn:hover {
    border-color: var(--gold-bright);
    box-shadow: 0 0 18px rgba(231,198,125,0.22);
    transform: translateY(-1px);
}

.karma-banner-btn:active {
    transform: translateY(0) scale(0.99);
}

.karma-banner-btn:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
}

.karma-item {
    border-radius: 8px;
    border: 1px solid rgba(231,198,125,0.18);
    background: rgba(8,8,16,0.92);
    padding: 0.75rem 0.8rem 0.8rem;
    cursor: pointer;
    transition: border-color 0.22s, background 0.22s, transform 0.12s;
}

.karma-item:hover {
    border-color: rgba(231,198,125,0.55);
    background: rgba(18,12,32,0.95);
    transform: translateY(-1px);
}

.karma-item:active {
    transform: translateY(0) scale(0.99);
}

.karma-item-date {
    font-size: 0.75rem;
    color: var(--gold-bright);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.karma-item-question {
    font-size: 0.86rem;
    color: var(--text-body);
    margin-bottom: 0.3rem;
}

.karma-item-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.karma-card-tag {
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(231,198,125,0.35);
    color: var(--gold-bright);
    background: rgba(8,6,18,0.9);
}

.karma-clear-btn {
    margin-top: 0.8rem;
    align-self: flex-start;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: none;
    background: transparent;
    color: rgba(231,198,125,0.7);
    cursor: pointer;
    padding: 0.2rem 0.1rem;
    transition: color 0.2s;
}

.karma-clear-btn:hover {
    color: var(--gold-bright);
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 17. NEWSLETTER SECTION (Landing)                                            */
/* ─────────────────────────────────────────────────────────────────────────── */

.newsletter {
    width: 100%;
    margin-top: 2.2rem;
    padding-top: 1.8rem;
}

.newsletter-inner {
    max-width: 720px;
    margin: 0 auto;
    border-radius: 14px;
    border: 1px solid rgba(231,198,125,0.18);
    background:
        radial-gradient(ellipse 60% 45% at 50% 0%, rgba(112,86,180,0.16) 0%, transparent 68%),
        radial-gradient(circle at 0 0, rgba(231,198,125,0.20), transparent 55%),
        rgba(8, 8, 16, 0.58);
    box-shadow:
        0 22px 55px rgba(0,0,0,0.55),
        0 0 0 1px rgba(0,0,0,0.65);
    padding: 1.6rem 1.6rem 1.7rem;
    text-align: left;
}

.newsletter-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--text-white);
    line-height: 1.25;
    margin-bottom: 0.65rem;
}

.newsletter-body {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 0.7rem;
}

.newsletter-gift {
    font-size: 0.9rem;
    color: var(--gold-bright);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.7rem;
    align-items: center;
}

.newsletter-input {
    width: 100%;
    height: 46px;
    padding: 0 1rem;
    border-radius: 10px;
    border: 1px solid rgba(231, 198, 125, 0.28);
    background: rgba(255, 248, 228, 0.04);
    color: var(--text-white);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.newsletter-input::placeholder {
    color: rgba(136, 136, 153, 0.70);
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(231, 198, 125, 0.55);
    box-shadow: 0 0 18px rgba(231,198,125,0.10);
}

.newsletter-submit {
    min-width: unset;
    padding: 0.95rem 1.2rem;
    border-radius: 10px;
    letter-spacing: 0.12em;
}

.newsletter-error {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: rgba(255, 162, 162, 0.95);
    letter-spacing: 0.04em;
}

.newsletter-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.newsletter-actions .gold-btn {
    min-width: unset;
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    letter-spacing: 0.12em;
}

.newsletter-state {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.45s ease, transform 0.45s ease, max-height 0.45s ease;
}

.newsletter-state.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    max-height: 900px;
}

@media (max-width: 560px) {
    .newsletter-inner {
        padding: 1.25rem 1.15rem 1.25rem;
        text-align: center;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
    }

    .newsletter-submit {
        width: 100%;
    }

    .newsletter-actions {
        justify-content: center;
    }
}