/* ============================================================
   surfaces/lead_magnet.css
   Lead magnet opt-in (templates/funnel/lead_magnet.html)
   + check inbox confirmation (templates/funnel/check_inbox.html)
   Phase 5 — extracted from inline <style> blocks (Session 10, 2026-05-05).

   Rules scoped under body.lead-magnet and/or body.check-inbox per G37.
   Local :root palette DELETED — same-name collisions made compat-shim
   infeasible per G36 (10 of 16 vars collided by name with canonical
   tokens). Search/replace + delete strategy, same as Session 8.

   Sweeps applied:
     G27 — gold TEXT → var(--accent-on-light)
     G28 — atmospheric/decorative gold rgba kept theme-blind (suppressed
           on light via [data-theme="light"] overrides per D23); heavy
           dark drop-shadows lightened on light
     G29 — color: white per context (CTA luxury black-on-gold via
           --text-on-accent; status colors via --danger; CTA white
           shimmer over always-gold button kept theme-blind G29 carve-out)
     G30 — clean (no inline style="..." in body markup)
     G31 — clean (no .style.cssText in JS)
     G38 — clean (no shared HTML/JS style strings)
     G39 — universal reset stays bare *

   D6   — Fraunces opt-in via fonts_extra_html (lead_magnet.html only)
   D23  — atmospheric layers (.grain, .vignette, .aurora) suppress on
          light via [data-theme="light"] body.X overrides; dark intensity
          preserved at original values for visual fidelity (lead magnet
          is paid-traffic landing — typography + cinematic mood matter)
   ============================================================ */


/* ---- Universal reset.
       Bare `*` per G39 — body-class scoping (`body.lead-magnet *`) bumps
       specificity to (0,1,1) and overrides single-class rules in included
       partials like footer.html. Per-surface CSS is loaded only when the
       template includes it; bare `*` keeps spec at floor (0,0,0) so all
       class-based rules in partials still win as designed. ---- */
* {
    box-sizing: border-box;
}

/* Restore :focus-visible halo from tokens.css §6.6 on keyboard nav while
   suppressing the bare focus ring on mouse interaction. */
*:focus:not(:focus-visible) {
    outline: none;
}


/* ============================================================
   Body shell — shared structure for both pages
   tokens.css §6.7 already sets body { background, color, font-family,
   transition }. We override color → text-body (page is body-text-heavy)
   and add layout/overflow/positioning.
   ============================================================ */

body.lead-magnet,
body.check-inbox {
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}


/* ============================================================
   Atmospheric layers — film grain, vignette, aurora, horizon
   D23 light suppression at end of section (preserves dark fidelity).
   ============================================================ */

body.lead-magnet .grain,
body.check-inbox .grain {
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: 0.08;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grainShift 0.6s steps(6) infinite;
}

body.lead-magnet .vignette,
body.check-inbox .vignette {
    position: fixed;
    inset: 0;
    z-index: 9989;
    pointer-events: none;
    background: radial-gradient(ellipse 100% 85% at 50% 50%, transparent 55%, rgba(0,0,0,0.65) 100%);
}

/* Lead magnet — two auroras (top-left gold, bottom-right cool-blue) */
body.lead-magnet .aurora {
    position: fixed;
    top: -30vh;
    left: -10vw;
    width: 80vw;
    height: 80vh;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 30% 30%, rgba(212,166,86,0.06), transparent 55%);
    filter: blur(80px);
    animation: auroraDrift 24s ease-in-out infinite alternate;
}
body.lead-magnet .aurora.two {
    top: auto;
    bottom: -40vh;
    left: auto;
    right: -20vw;
    background: radial-gradient(circle at 60% 60%, rgba(110, 182, 255, 0.05), transparent 60%);
    animation-duration: 32s;
    animation-delay: -8s;
}

/* Check inbox — single centered aurora with pulse */
body.check-inbox .aurora {
    position: fixed;
    top: -20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    height: 80vh;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 40%, rgba(212,166,86,0.08), transparent 55%);
    filter: blur(90px);
    animation: pulse 8s ease-in-out infinite alternate;
}

body.lead-magnet .horizon-top,
body.check-inbox .horizon-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 15%, var(--accent) 85%, transparent 100%);
    opacity: 0.5;
    z-index: 5;
}

/* Light — D23 suppression. Dark intensity above is preserved.
   .grain shifts to multiply 0.012 (G16); .vignette + .aurora fade out;
   .horizon-top stays as a delicate gold accent line. */
[data-theme="light"] body.lead-magnet .grain,
[data-theme="light"] body.check-inbox .grain {
    opacity: 0.012;
    mix-blend-mode: multiply;
}
[data-theme="light"] body.lead-magnet .vignette,
[data-theme="light"] body.check-inbox .vignette {
    opacity: 0;
}
[data-theme="light"] body.lead-magnet .aurora,
[data-theme="light"] body.check-inbox .aurora {
    opacity: 0;
}
[data-theme="light"] body.lead-magnet .horizon-top,
[data-theme="light"] body.check-inbox .horizon-top {
    opacity: 0.4;
}

@media (prefers-reduced-motion: reduce) {
    body.lead-magnet .grain,
    body.lead-magnet .aurora,
    body.check-inbox .grain,
    body.check-inbox .aurora { animation: none; }
}


/* ============================================================
   Theme toggle — fixed top-right corner.
   z-index above grain (9990) per G35 audit.
   ============================================================ */
body.lead-magnet .cc-toggle-fixed-corner,
body.check-inbox .cc-toggle-fixed-corner {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10000;
}


/* ============================================================
   Top bar — shared editorial header (logo mark + brand text)
   ============================================================ */

body.lead-magnet .mark,
body.check-inbox .mark {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(212, 166, 86, 0.35);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 16px;
    color: var(--accent-on-light);
    letter-spacing: -0.02em;
    background: rgba(212, 166, 86, 0.04);
}

body.lead-magnet .mark-text,
body.check-inbox .mark-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.28em;
    color: var(--text-primary);
    text-transform: uppercase;
    font-weight: 500;
}


/* ============================================================
   ====   LEAD MAGNET PAGE   ====
   ============================================================ */

body.lead-magnet .stage {
    position: relative;
    z-index: 2;
    flex: 1 0 auto;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px clamp(20px, 4vw, 56px) 80px;
    display: flex;
    flex-direction: column;
}

body.lead-magnet .top-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-faint);
    margin-bottom: clamp(48px, 7vw, 96px);
    opacity: 0;
    transform: translateY(-10px);
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s forwards;
}

body.lead-magnet .bar-meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--text-faint);
    text-transform: uppercase;
}

body.lead-magnet .bar-meta .sep {
    width: 20px;
    height: 1px;
    background: var(--text-faint);
}

body.lead-magnet .bar-meta .stamp {
    color: var(--accent-on-light);
    border: 1px solid rgba(212, 166, 86, 0.35);
    padding: 4px 10px;
    border-radius: 2px;
}

@media (max-width: 640px) {
    body.lead-magnet .bar-meta .sep,
    body.lead-magnet .bar-meta .date-line {
        display: none;
    }
}

/* ---- Two-column editorial layout ---- */
body.lead-magnet .layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
    position: relative;
}

@media (max-width: 920px) {
    body.lead-magnet .layout {
        grid-template-columns: 1fr;
        gap: 56px;
    }
}

/* ---- Artifact column (the product) ---- */
body.lead-magnet .artifact {
    position: relative;
    opacity: 0;
    transform: translate(-16px, 12px);
    animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s forwards;
}

body.lead-magnet .artifact::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    width: 40px;
    height: 40px;
    border-top: 1px solid var(--accent);
    border-left: 1px solid var(--accent);
    opacity: 0.8;
}
body.lead-magnet .artifact::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    border-bottom: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
    opacity: 0.8;
}

body.lead-magnet .artifact-frame {
    position: relative;
    padding: 18px;
    background: linear-gradient(165deg, var(--bg-card) 0%, var(--bg-panel) 100%);
    border: 1px solid var(--border-subtle);
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Subtle scan-line texture inside the artifact frame.
   Theme-blind white at 0.018 alpha vanishes on light; switch to
   theme-correct dark trace on light. */
body.lead-magnet .artifact-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        180deg,
        transparent 0,
        transparent 3px,
        rgba(255,255,255,0.018) 3px,
        rgba(255,255,255,0.018) 4px
    );
    pointer-events: none;
}
[data-theme="light"] body.lead-magnet .artifact-frame::after {
    background-image: repeating-linear-gradient(
        180deg,
        transparent 0,
        transparent 3px,
        rgba(0,0,0,0.02) 3px,
        rgba(0,0,0,0.02) 4px
    );
}

body.lead-magnet .artifact-image {
    max-width: 100%;
    max-height: 100%;
    filter:
        drop-shadow(0 18px 36px rgba(0, 0, 0, 0.6))
        drop-shadow(0 4px 12px rgba(212, 166, 86, 0.12));
    position: relative;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-theme="light"] body.lead-magnet .artifact-image {
    /* Heavier black drop-shadow grunges on light; use neutral shadow stack. */
    filter:
        drop-shadow(0 12px 28px rgba(15, 23, 42, 0.18))
        drop-shadow(0 4px 8px rgba(15, 23, 42, 0.08));
}
body.lead-magnet .artifact:hover .artifact-image {
    transform: scale(1.02);
}

body.lead-magnet .artifact-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--text-faint);
    z-index: 1;
    position: relative;
}

body.lead-magnet .artifact-caption {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-faint);
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
body.lead-magnet .artifact-caption .label {
    color: var(--accent-on-light);
    letter-spacing: 0.24em;
}
body.lead-magnet .artifact-caption .name {
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 13px;
    font-weight: 500;
    flex: 1 1 auto;
}

/* ---- Invitation column (headline + form) ---- */
body.lead-magnet .invitation {
    padding-top: 4px;
    opacity: 0;
    transform: translate(16px, 12px);
    animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s forwards;
}

body.lead-magnet .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent-on-light);
    margin-bottom: 32px;
}
body.lead-magnet .eyebrow .dash {
    width: 24px;
    height: 1px;
    background: var(--accent);
}

body.lead-magnet .headline {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin: 0 0 28px;
    font-variation-settings: 'opsz' 144, 'SOFT' 30;
}

body.lead-magnet .headline .accent {
    color: var(--accent-on-light);
    font-style: italic;
    font-weight: 300;
    display: inline-block;
}

body.lead-magnet .subheadline {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-body);
    max-width: 38ch;
    margin: 0 0 44px;
    font-weight: 400;
}

/* ---- Capture form ---- */
body.lead-magnet .capture-form {
    margin: 0;
}

body.lead-magnet .field {
    position: relative;
    margin-bottom: 18px;
}

body.lead-magnet .field input[type="email"] {
    width: 100%;
    background: transparent;
    color: var(--text-primary);
    border: 0;
    border-bottom: 1px solid var(--border-subtle);
    padding: 18px 0 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    transition: border-color 0.3s ease, padding 0.3s ease;
}

body.lead-magnet .field input[type="email"]::placeholder {
    color: var(--text-faint);
    font-weight: 400;
}

body.lead-magnet .field input[type="email"]:focus {
    border-bottom-color: var(--accent);
}

body.lead-magnet .field .field-glow {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
body.lead-magnet .field input[type="email"]:focus ~ .field-glow {
    transform: scaleX(1);
}
body.lead-magnet .field.has-error .field-glow {
    background: var(--danger);
    transform: scaleX(1);
}

body.lead-magnet .cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 22px 32px;
    margin-top: 24px;
    background: var(--accent);
    color: var(--text-on-accent);
    border: 0;
    border-radius: 2px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
    overflow: hidden;
}

/* CTA white shimmer over always-gold button — kept theme-blind per G29
   carve-out (saturated CTA stays vivid in both themes; white reads on
   gold in either theme). */
body.lead-magnet .cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
    transition: left 0.7s ease;
}
body.lead-magnet .cta:hover::before { left: 100%; }

body.lead-magnet .cta:hover {
    background: var(--accent-bright);
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px var(--accent-glow),
        0 0 0 1px var(--accent-bright);
}
body.lead-magnet .cta:active {
    transform: translateY(0);
}

body.lead-magnet .cta[disabled] {
    cursor: not-allowed;
    opacity: 0.7;
}
body.lead-magnet .cta[disabled]:hover {
    transform: none;
    box-shadow: none;
    background: var(--accent);
}

body.lead-magnet .cta .cta-text {
    position: relative;
    z-index: 1;
}
body.lead-magnet .cta .cta-arrow {
    position: relative;
    z-index: 1;
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
body.lead-magnet .cta:hover .cta-arrow {
    transform: translateX(6px);
}
body.lead-magnet .cta .cta-spinner {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-on-accent);
    font-size: 1.1rem;
    z-index: 2;
    background: var(--accent);
}
body.lead-magnet .cta.loading .cta-text,
body.lead-magnet .cta.loading .cta-arrow {
    opacity: 0;
}
body.lead-magnet .cta.loading .cta-spinner {
    display: flex;
}

body.lead-magnet .error-msg {
    min-height: 1em;
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--danger);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
body.lead-magnet .error-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

body.lead-magnet .consent {
    margin: 20px 0 0;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 46ch;
    font-weight: 400;
}

body.lead-magnet .consent strong {
    color: var(--text-body);
    font-weight: 500;
}

/* ---- Trust bar ---- */
body.lead-magnet .trust {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 36px);
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border-faint);
    flex-wrap: wrap;
}

body.lead-magnet .trust-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

body.lead-magnet .trust-item i {
    color: var(--accent-on-light);
    font-size: 12px;
}

/* ---- Lead magnet mobile polish ---- */
@media (max-width: 640px) {
    body.lead-magnet .stage {
        padding: 28px 20px 64px;
    }
    body.lead-magnet .top-bar {
        margin-bottom: 48px;
        padding-bottom: 20px;
        gap: 10px;
    }
    body.lead-magnet .mark {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    body.lead-magnet .mark-text {
        font-size: 10px;
        letter-spacing: 0.24em;
    }
    body.lead-magnet .bar-meta {
        font-size: 9px;
        gap: 10px;
    }
    body.lead-magnet .headline {
        font-size: clamp(2rem, 9vw, 2.8rem);
        margin-bottom: 22px;
    }
    body.lead-magnet .subheadline {
        margin-bottom: 36px;
        font-size: 1rem;
    }
    body.lead-magnet .field input[type="email"] {
        font-size: 1.05rem;
    }
    body.lead-magnet .cta {
        padding: 20px 24px;
        font-size: 0.85rem;
        letter-spacing: 0.15em;
    }
    body.lead-magnet .trust {
        gap: 14px;
        margin-top: 36px;
        padding-top: 22px;
    }
    body.lead-magnet .trust-item {
        font-size: 9px;
    }
}


/* ============================================================
   ====   CHECK INBOX PAGE   ====
   ============================================================ */

body.check-inbox .stage {
    position: relative;
    z-index: 2;
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 60px);
}

body.check-inbox .top-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: clamp(56px, 8vw, 96px);
    opacity: 0;
    transform: translateY(-10px);
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s forwards;
}

/* ---- Confirmation card — editorial brief sheet ---- */
body.check-inbox .brief {
    position: relative;
    max-width: 620px;
    width: 100%;
    padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px);
    text-align: center;
    opacity: 0;
    transform: translateY(16px);
    animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s forwards;
}

body.check-inbox .brief::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

body.check-inbox .brief::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.25;
}

body.check-inbox .corner {
    position: absolute;
    width: 22px;
    height: 22px;
    pointer-events: none;
}
body.check-inbox .corner.tl { top: 0; left: 0; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
body.check-inbox .corner.tr { top: 0; right: 0; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); }
body.check-inbox .corner.bl { bottom: 0; left: 0; border-bottom: 1px solid var(--accent); border-left: 1px solid var(--accent); }
body.check-inbox .corner.br { bottom: 0; right: 0; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }

/* ---- Envelope icon — gold ring with pulse ---- */
body.check-inbox .icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    margin-bottom: 36px;
}

body.check-inbox .icon-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(212, 166, 86, 0.35);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(212,166,86,0.08), transparent 65%);
}

body.check-inbox .icon-ring::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: ringPulse 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
body.check-inbox .icon-ring::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: ringPulse 2.4s cubic-bezier(0.4, 0, 0.2, 1) 1.2s infinite;
}

body.check-inbox .icon-wrap i {
    position: relative;
    z-index: 1;
    font-size: 34px;
    color: var(--accent-on-light);
}

/* ---- Typography (check_inbox) ---- */
body.check-inbox .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent-on-light);
    margin-bottom: 22px;
}
body.check-inbox .eyebrow::before,
body.check-inbox .eyebrow::after {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--accent);
}

body.check-inbox h1 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin: 0 0 24px;
    font-variation-settings: 'opsz' 144, 'SOFT' 30;
}

body.check-inbox h1 .italic {
    font-style: italic;
    font-weight: 300;
    color: var(--accent-on-light);
}

body.check-inbox .lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-body);
    max-width: 44ch;
    margin: 0 auto 36px;
}

body.check-inbox .lead strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* ---- Hints list — mono chips ---- */
body.check-inbox .hints {
    list-style: none;
    padding: 20px 0;
    margin: 0 0 36px;
    border-top: 1px dashed var(--border-faint);
    border-bottom: 1px dashed var(--border-faint);
    text-align: left;
    display: grid;
    gap: 14px;
}

body.check-inbox .hints li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-body);
}

body.check-inbox .hints li .idx {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--accent-on-light);
    font-weight: 500;
    padding-top: 3px;
    min-width: 22px;
}

body.check-inbox .hints li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ---- Back link ---- */
body.check-inbox .back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.check-inbox .back-link:hover {
    border-color: var(--accent);
    color: var(--accent-on-light);
    transform: translateX(-4px);
}

body.check-inbox .back-link .arrow {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    line-height: 1;
    font-weight: 300;
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
body.check-inbox .back-link:hover .arrow {
    transform: translateX(-3px);
}

/* ---- Signature line ---- */
body.check-inbox .signature {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px dashed var(--border-faint);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-faint);
    max-width: 540px;
    opacity: 0;
    animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.8s forwards;
}

/* ---- Check inbox mobile polish ---- */
@media (max-width: 640px) {
    body.check-inbox .stage {
        padding: 40px 20px 60px;
    }
    body.check-inbox .brief {
        padding: 44px 28px;
    }
    body.check-inbox .top-bar {
        margin-bottom: 48px;
    }
    body.check-inbox h1 {
        font-size: clamp(1.7rem, 8vw, 2.3rem);
    }
    body.check-inbox .lead {
        font-size: 0.98rem;
    }
    body.check-inbox .corner {
        width: 16px;
        height: 16px;
    }
    body.check-inbox .icon-wrap {
        width: 76px;
        height: 76px;
        margin-bottom: 28px;
    }
    body.check-inbox .icon-wrap i {
        font-size: 28px;
    }
}


/* ============================================================
   Animations — global @keyframes (animation-name lookup is global,
   no body-class scope per G37 implementation detail).
   ============================================================ */
@keyframes grainShift {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(1px, -2px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(2px, 2px); }
}

@keyframes auroraDrift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(40px, -30px) rotate(5deg); }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

@keyframes ringPulse {
    0% { opacity: 0.7; transform: scale(1); }
    80% { opacity: 0; transform: scale(1.35); }
    100% { opacity: 0; transform: scale(1.35); }
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}


/* ============================================================
   Utilities (shared)
   ============================================================ */

body.lead-magnet .visually-hidden,
body.check-inbox .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer shell — preserve relative positioning + z-index above background
   layers (atmospheric .grain at z-9990 is fixed-positioned over content;
   footer needs its own positioning context to stay below the grain
   visually but above the body gradient). */
body.lead-magnet .site-footer,
body.check-inbox .site-footer {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}


/* ====================================================================
   ========================================================================
   ====  COUPON LEAD MAGNET (Phase 4, Session 3)  ===========================
   ========================================================================

   Two new body-class scopes that share this same CSS file:
     body.lead-magnet-coupon   — landing page 1  (templates/funnel/lead_magnet_coupon.html)
     body.check-inbox-coupon   — confirmation 2  (templates/funnel/check_inbox_coupon.html)

   Visual direction: APPLE-clean. Single column. Generous whitespace.
   DM Sans only — NO Fraunces opt-in on these templates. JetBrains Mono
   for the coupon code + the HH:MM:SS clock numerals only.

   Atmospheric layers (.grain, .vignette, .aurora, .horizon-top) are
   SUPPRESSED on both these scopes in BOTH themes. The cinematic-mood
   atmospherics belong to the editorial product variant (body.lead-magnet);
   the coupon variant is the inverse aesthetic — transparent, honest,
   product-page-clean. The page is text on whitespace.

   G37 body-class scoping applied to every rule. G39 bare `*` reset
   inherited from the top of this file — DO NOT prefix.
   ==================================================================== */


/* ---- Body shell ---- */
body.lead-magnet-coupon,
body.check-inbox-coupon {
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg-base);
    font-family: var(--font-sans);
}

/* Suppress every atmospheric layer in both themes. Apple-clean = no grain,
   no vignette, no aurora, no horizon line. The clean surface IS the design. */
body.lead-magnet-coupon .grain,
body.lead-magnet-coupon .vignette,
body.lead-magnet-coupon .aurora,
body.lead-magnet-coupon .horizon-top,
body.check-inbox-coupon .grain,
body.check-inbox-coupon .vignette,
body.check-inbox-coupon .aurora,
body.check-inbox-coupon .horizon-top {
    display: none !important;
}


/* ---- Theme toggle (fixed top-right) — same z-axis discipline as product variant ---- */
body.lead-magnet-coupon .cc-toggle-fixed-corner,
body.check-inbox-coupon .cc-toggle-fixed-corner {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10000;
}


/* ============================================================
   Page shell
   ============================================================ */
body.lead-magnet-coupon .lmc-stage,
body.check-inbox-coupon .lmc-stage {
    flex: 1 0 auto;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: clamp(48px, 9vh, 96px) clamp(20px, 5vw, 32px) clamp(48px, 9vh, 96px);
    display: flex;
    flex-direction: column;
    gap: clamp(36px, 7vw, 64px);
    align-items: stretch;
    text-align: center;
}

/* Stagger reveal on initial load — gated on prefers-reduced-motion below */
body.lead-magnet-coupon .lmc-stage > *,
body.check-inbox-coupon .lmc-stage > * {
    opacity: 0;
    transform: translateY(8px);
    animation: lmc-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
body.lead-magnet-coupon .lmc-stage > *:nth-child(1),
body.check-inbox-coupon .lmc-stage > *:nth-child(1) { animation-delay: 0.05s; }
body.lead-magnet-coupon .lmc-stage > *:nth-child(2),
body.check-inbox-coupon .lmc-stage > *:nth-child(2) { animation-delay: 0.12s; }
body.lead-magnet-coupon .lmc-stage > *:nth-child(3),
body.check-inbox-coupon .lmc-stage > *:nth-child(3) { animation-delay: 0.19s; }
body.lead-magnet-coupon .lmc-stage > *:nth-child(4),
body.check-inbox-coupon .lmc-stage > *:nth-child(4) { animation-delay: 0.26s; }
body.lead-magnet-coupon .lmc-stage > *:nth-child(5),
body.check-inbox-coupon .lmc-stage > *:nth-child(5) { animation-delay: 0.33s; }
body.lead-magnet-coupon .lmc-stage > *:nth-child(6),
body.check-inbox-coupon .lmc-stage > *:nth-child(6) { animation-delay: 0.40s; }

@keyframes lmc-rise {
    to { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   Hero block — eyebrow + $X + subhead
   ============================================================ */

body.lead-magnet-coupon .lmc-eyebrow,
body.check-inbox-coupon .lmc-eyebrow {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-on-light);
    margin: 0;
}

body.lead-magnet-coupon .lmc-hero-amount {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(72px, 14vw, 128px);
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: var(--text-primary);
    margin: 0;
}

body.lead-magnet-coupon .lmc-hero-subhead {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: clamp(17px, 2.4vw, 20px);
    line-height: 1.45;
    color: var(--text-body);
    max-width: 28ch;
    margin: 12px auto 0;
}

/* Page 2 headline (smaller than Page 1 hero — different rhythm) */
body.check-inbox-coupon .lmc-page2-headline {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(32px, 6vw, 48px);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0;
}

body.check-inbox-coupon .lmc-page2-sub {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: clamp(17px, 2.4vw, 19px);
    line-height: 1.5;
    color: var(--text-body);
    max-width: 36ch;
    margin: 16px auto 0;
}


/* ============================================================
   Coupon pill — half-hidden code (the reveal mechanic)
   D12 — pure client-side theater. Real code minted server-side.
   ============================================================ */

body.lead-magnet-coupon .lmc-coupon,
body.check-inbox-coupon .lmc-coupon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 22px 28px;
    margin: 0 auto;
    max-width: 100%;
    overflow: visible;
}
[data-theme="light"] body.lead-magnet-coupon .lmc-coupon,
[data-theme="light"] body.check-inbox-coupon .lmc-coupon {
    background: var(--bg-panel);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.lead-magnet-coupon .lmc-coupon-code,
body.check-inbox-coupon .lmc-coupon-code {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: clamp(22px, 4.5vw, 30px);
    letter-spacing: 0.06em;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: baseline;
}

body.lead-magnet-coupon .lmc-coupon-prefix,
body.check-inbox-coupon .lmc-coupon-prefix {
    color: var(--text-primary);
    margin-right: 0.05em;
}

/* Page 1 — the suffix is the HIDDEN part of the code. Each of the 8
   characters gets PROGRESSIVELY MORE BLUR left-to-right, so the user can
   *almost* read the first character and the rightmost dissolves entirely.
   This is the "you almost have it" pull (RC1-A §2 multi-step partial
   reveal — strongest replicable popup pattern). Chars mutate under the
   gradient via D12 client-side theater; the blur is the constant signal
   that the code is concealed. */
body.lead-magnet-coupon .lmc-coupon-suffix {
    display: inline-flex;
    align-items: baseline;
    min-width: 7ch;
    text-align: left;
    user-select: none;
    -webkit-user-select: none;
    color: var(--text-body);
}
body.lead-magnet-coupon .lmc-coupon-suffix-char {
    display: inline-block;
    transition: filter 0.18s ease-out, opacity 0.18s ease-out;
}

/* Dark theme blur gradient — leftmost almost legible, rightmost a smudge. */
body.lead-magnet-coupon .lmc-coupon-suffix-char:nth-child(1) { filter: blur(1.5px); opacity: 0.78; }
body.lead-magnet-coupon .lmc-coupon-suffix-char:nth-child(2) { filter: blur(2.5px); opacity: 0.70; }
body.lead-magnet-coupon .lmc-coupon-suffix-char:nth-child(3) { filter: blur(4px);   opacity: 0.62; }
body.lead-magnet-coupon .lmc-coupon-suffix-char:nth-child(4) { filter: blur(6px);   opacity: 0.54; }
body.lead-magnet-coupon .lmc-coupon-suffix-char:nth-child(5) { filter: blur(8.5px); opacity: 0.46; }
body.lead-magnet-coupon .lmc-coupon-suffix-char:nth-child(6) { filter: blur(11px);  opacity: 0.38; }
body.lead-magnet-coupon .lmc-coupon-suffix-char:nth-child(7) { filter: blur(13.5px); opacity: 0.30; }
body.lead-magnet-coupon .lmc-coupon-suffix-char:nth-child(8) { filter: blur(16px);  opacity: 0.22; }

/* Light theme — slightly stronger blur, lower opacity (bright surfaces
   make blur visually weaker; we compensate). */
[data-theme="light"] body.lead-magnet-coupon .lmc-coupon-suffix-char:nth-child(1) { filter: blur(2px);   opacity: 0.65; }
[data-theme="light"] body.lead-magnet-coupon .lmc-coupon-suffix-char:nth-child(2) { filter: blur(3.5px); opacity: 0.58; }
[data-theme="light"] body.lead-magnet-coupon .lmc-coupon-suffix-char:nth-child(3) { filter: blur(5px);   opacity: 0.50; }
[data-theme="light"] body.lead-magnet-coupon .lmc-coupon-suffix-char:nth-child(4) { filter: blur(7px);   opacity: 0.42; }
[data-theme="light"] body.lead-magnet-coupon .lmc-coupon-suffix-char:nth-child(5) { filter: blur(10px);  opacity: 0.34; }
[data-theme="light"] body.lead-magnet-coupon .lmc-coupon-suffix-char:nth-child(6) { filter: blur(13px);  opacity: 0.26; }
[data-theme="light"] body.lead-magnet-coupon .lmc-coupon-suffix-char:nth-child(7) { filter: blur(16px);  opacity: 0.18; }
[data-theme="light"] body.lead-magnet-coupon .lmc-coupon-suffix-char:nth-child(8) { filter: blur(19px);  opacity: 0.12; }

/* Tiny pulse on every mutation — each char's blur briefly intensifies,
   then settles back. The gradient stays. */
body.lead-magnet-coupon .lmc-coupon-suffix.lmc-mutating .lmc-coupon-suffix-char {
    filter: blur(calc(var(--char-blur, 8px) + 2px));
}

body.check-inbox-coupon .lmc-coupon-suffix {
    color: var(--text-muted);
    letter-spacing: 0.2em;
    display: inline-block;
    min-width: 7ch;
    text-align: left;
}

/* "Use it ↗" pill — Page 2 only. Apple-fied helper label, NOT a sticker. */
body.check-inbox-coupon .lmc-use-it {
    position: absolute;
    top: -14px;
    right: 16px;
    transform: translateY(0);
    background: var(--accent);
    color: var(--text-on-accent);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.02em;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    animation: lmc-pulse 2.4s ease-in-out infinite;
    white-space: nowrap;
}
body.check-inbox-coupon .lmc-use-it svg {
    width: 11px;
    height: 11px;
    stroke-width: 2.2;
}

@keyframes lmc-pulse {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50%      { opacity: 0.82; transform: translateY(-1px); }
}


/* ============================================================
   Capture form (Page 1 only)
   ============================================================ */

body.lead-magnet-coupon .lmc-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto;
    width: 100%;
    max-width: 420px;
    text-align: left;
}

body.lead-magnet-coupon .lmc-input {
    width: 100%;
    height: 56px;
    padding: 0 18px;
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
}
body.lead-magnet-coupon .lmc-input::placeholder {
    color: var(--text-faint);
}
body.lead-magnet-coupon .lmc-input:focus,
body.lead-magnet-coupon .lmc-input:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
body.lead-magnet-coupon .lmc-input.lmc-has-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px var(--danger-bg);
}

body.lead-magnet-coupon .lmc-cta {
    width: 100%;
    height: 56px;
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    color: var(--text-on-accent);
    background: var(--accent);
    border: 0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.06s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    touch-action: manipulation;
}
body.lead-magnet-coupon .lmc-cta:hover {
    filter: brightness(1.04);
}
body.lead-magnet-coupon .lmc-cta:active {
    transform: scale(0.99);
}
body.lead-magnet-coupon .lmc-cta:disabled {
    opacity: 0.7;
    cursor: progress;
}
body.lead-magnet-coupon .lmc-cta .lmc-cta-spinner { display: none; }
body.lead-magnet-coupon .lmc-cta.lmc-loading .lmc-cta-text { opacity: 0; }
body.lead-magnet-coupon .lmc-cta.lmc-loading .lmc-cta-spinner {
    display: inline-block;
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: lmc-spin 0.7s linear infinite;
}
body.lead-magnet-coupon .lmc-cta {
    position: relative;
}

@keyframes lmc-spin { to { transform: rotate(360deg); } }

body.lead-magnet-coupon .lmc-error {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--danger);
    margin: 0;
    min-height: 1.2em;
    text-align: left;
    line-height: 1.4;
}


/* ============================================================
   Three-layer countdown (Page 2) + static policy line (Page 1)
   ============================================================ */

/* Page 1 — static policy line ("Good for X hours after you claim it"). */
body.lead-magnet-coupon .lmc-policy {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-body);
    margin: 0;
}

/* Page 1 — minutes countdown (page-expiry urgency).
   Apple-calm: single line, prose + mono digits. No red, no flashing.
   Honest because the timer is REAL — when it hits zero the form disables
   and the user must refresh (which resets the clock to a new 15-min window).
   Hardcoded duration in funnel_routes.video_page(); admin-configurable
   field deferred to Phase 4.5 / Phase 5 per OQ. */
body.lead-magnet-coupon .lmc-page-timer {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-body);
    margin: 0;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}
body.lead-magnet-coupon .lmc-page-timer-clock {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    min-width: 5ch;
    display: inline-block;
    text-align: left;
}
/* Expired state — form disabled, prose softens. */
body.lead-magnet-coupon .lmc-page-timer.lmc-expired {
    color: var(--text-muted);
}
body.lead-magnet-coupon .lmc-page-timer.lmc-expired .lmc-page-timer-clock {
    color: var(--text-muted);
}
body.lead-magnet-coupon .lmc-page-timer-refresh {
    background: none;
    border: 0;
    padding: 0;
    margin: 0 0 0 4px;
    color: var(--accent-on-light);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
body.lead-magnet-coupon .lmc-page-timer-refresh:hover {
    text-decoration-thickness: 2px;
}
/* When expired, soften the whole form. */
body.lead-magnet-coupon .lmc-form.lmc-page-expired .lmc-input,
body.lead-magnet-coupon .lmc-form.lmc-page-expired .lmc-cta {
    opacity: 0.5;
    pointer-events: none;
}
body.lead-magnet-coupon .lmc-form.lmc-page-expired .lmc-coupon {
    opacity: 0.5;
}

/* Page 2 — three-layer countdown driven by real CCC.expires_at. */
body.check-inbox-coupon .lmc-countdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    margin: 0;
}

body.check-inbox-coupon .lmc-deadline {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-body);
    margin: 0;
}

body.check-inbox-coupon .lmc-remainder {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

body.check-inbox-coupon .lmc-clock {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 13px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 8ch;
    display: inline-block;
    text-align: left;
}

body.check-inbox-coupon .lmc-countdown.lmc-expired .lmc-deadline,
body.check-inbox-coupon .lmc-countdown.lmc-expired .lmc-remainder {
    color: var(--text-muted);
}


/* ============================================================
   Disclosure + secondary microcopy
   ============================================================ */
body.lead-magnet-coupon .lmc-disclosure,
body.check-inbox-coupon .lmc-disclosure {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-faint);
    margin: 0;
    max-width: 40ch;
    margin-left: auto;
    margin-right: auto;
}
body.lead-magnet-coupon .lmc-disclosure a,
body.check-inbox-coupon .lmc-disclosure a {
    color: var(--accent-on-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0);
    transition: border-color 0.15s ease;
}
body.lead-magnet-coupon .lmc-disclosure a:hover,
body.check-inbox-coupon .lmc-disclosure a:hover {
    border-bottom-color: currentColor;
}


/* ============================================================
   Reduced-motion fallbacks — fully functional static state
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    body.lead-magnet-coupon .lmc-stage > *,
    body.check-inbox-coupon .lmc-stage > * {
        opacity: 1;
        transform: none;
        animation: none;
    }
    body.lead-magnet-coupon .lmc-coupon-suffix {
        transition: none;
    }
    body.check-inbox-coupon .lmc-use-it {
        animation: none;
    }
}


/* ============================================================
   Mobile refinements (≤640px)
   ============================================================ */
@media (max-width: 640px) {
    body.lead-magnet-coupon .lmc-stage,
    body.check-inbox-coupon .lmc-stage {
        padding-top: 64px;
        padding-bottom: 48px;
        gap: 40px;
    }
    body.lead-magnet-coupon .lmc-coupon,
    body.check-inbox-coupon .lmc-coupon {
        padding: 18px 20px;
    }
    body.check-inbox-coupon .lmc-use-it {
        right: 8px;
        top: -12px;
        font-size: 11px;
        padding: 5px 10px;
    }
}


/* ============================================================
   Page 2 — replay states (D10 honest already-claimed UX)
   Eyebrow tone + store-CTA button for replay_used / replay_expired.
   Reuses the same body.check-inbox-coupon scope + existing theme tokens.
   ============================================================ */
body.check-inbox-coupon .lmc-eyebrow-replay {
    /* Softer than the default "Sent" eyebrow — this is a calm acknowledgment,
       not a celebratory confirmation. Same family, just neutral weight. */
    color: var(--text-body);
    opacity: 0.85;
}

body.check-inbox-coupon .lmc-page2-sub-meta {
    /* Inline parenthetical for date / expiry phrase — quieter than the
       headline sentence it follows. */
    opacity: 0.7;
    white-space: nowrap;
}

body.check-inbox-coupon .lmc-store-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 56px;
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    color: var(--text-on-accent);
    background: var(--accent);
    border: 0;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.06s ease;
    touch-action: manipulation;
}
body.check-inbox-coupon .lmc-store-cta:hover {
    filter: brightness(1.04);
}
body.check-inbox-coupon .lmc-store-cta:active {
    transform: scale(0.99);
}
body.check-inbox-coupon .lmc-store-cta svg {
    width: 14px;
    height: 14px;
    stroke-width: 1.6;
}
