/**
 * ÆNERGY B2B Landing — frontend styles
 *
 * Scoped to the two widgets this plugin ships:
 *   • Navigation (bar + fullscreen overlay)
 *   • Interactive Waitlist (gate → unlock → access form → success)
 * Plus the shared design tokens, the custom cursor, and the styled
 * password-protected-page form.
 */

:root {
    --W: #FFFFFF;
    --WD: #E8EEFF;
    --BK: #000000;
    --BKT: rgba(0,0,0,0.82);
    --BKM: rgba(0,0,0,0.55);
    --BKD: rgba(0,0,0,0.35);
    --GR: #888888;
    --mono: 'Roboto Mono', monospace;
    --sans: 'Roboto', sans-serif;
}

/* ═══ CUSTOM CURSOR ═══════════════════════════════════════════════
   The interactive waitlist widget opts in by carrying the
   .aewl-iwl-has-cursor class on its root (see its enable_cursor
   control). The crosshair (#aewl-cur) and trailing ring
   (#aewl-curR) are created once on <body> by the frontend JS and
   follow the pointer; here we only style them and hide the native
   cursor over the opted-in widget. */
.aewl-iwl-has-cursor,
.aewl-iwl-has-cursor * {
    cursor: none;
}

#aewl-cur {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
}
#aewl-cur::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,0.85);
    transform: translateX(-50%);
}
#aewl-cur::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    height: 1px;
    width: 100%;
    background: rgba(255,255,255,0.85);
    transform: translateY(-50%);
}
#aewl-curR {
    position: fixed;
    width: 4px;
    height: 4px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
}
/* No custom cursor on touch devices or inside the Elementor editor. */
@media (max-width: 768px) {
    #aewl-cur,
    #aewl-curR { display: none; }
}
.elementor-editor-active #aewl-cur,
.elementor-editor-active #aewl-curR { display: none; }


/* ═══════════════════════════════════════════════════════════════
   NAVIGATION WIDGET WITH OVERLAY
   ═══════════════════════════════════════════════════════════════ */

.aewl-nav-wrap {
    position: relative;
}

.aewl-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    z-index: 1000;
    transition: opacity 0.3s;
}

.aewl-nav-logo {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 0.76rem;
    letter-spacing: 0.52em;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.aewl-nav-logo:hover {
    opacity: 0.7;
}

.aewl-nav-trigger {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: #fff;
    background: none;
    border: none;
    cursor: none;
    padding: 0;
    line-height: 1;
    transition: transform 0.3s, opacity 0.3s;
}

.aewl-nav-trigger:hover,
.aewl-nav-trigger:focus {
    transform: scale(1.1);
    background: transparent;
    outline: none;
}

/* Overlay */
.aewl-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.aewl-nav-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/bg.jpeg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.aewl-nav-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.aewl-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.aewl-nav-overlay-close {
    position: absolute;
    top: 20px;
    right: 48px;
    background: none;
    border: none;
    cursor: none;
    padding: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 10;
}

.aewl-nav-overlay-close:hover,
.aewl-nav-overlay-close:focus {
    transform: scale(1.1);
    background: transparent;
    outline: none;
}

.aewl-nav-overlay-close svg {
    width: 37px;
    height: 37px;
}

.aewl-nav-overlay-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.aewl-nav-overlay-link {
    font-family: 'Roboto Mono', monospace;
    font-weight: 300;
    font-size: 2rem;
    letter-spacing: 0.5em;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s, letter-spacing 0.3s;
}

.aewl-nav-overlay-link:hover {
    color: #fff;
    letter-spacing: 0.6em;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .aewl-nav-bar {
        padding: 0 24px;
    }
    .aewl-nav-trigger {
        font-size: 1.5rem;
    }
    .aewl-nav-overlay-close {
        right: 24px;
    }
    .aewl-nav-overlay-close svg {
        width: 28px;
        height: 28px;
    }
    .aewl-nav-overlay-link {
        font-size: 1.4rem;
        letter-spacing: 0.4em;
    }
    .aewl-nav-overlay-link:hover {
        letter-spacing: 0.5em;
    }
}

@media (max-width: 480px) {
    .aewl-nav-logo {
        font-size: 0.65rem;
        letter-spacing: 0.4em;
    }
    .aewl-nav-trigger {
        font-size: 1.3rem;
    }
    .aewl-nav-overlay-close {
        top: 16px;
        right: 20px;
    }
    .aewl-nav-overlay-close svg {
        width: 24px;
        height: 24px;
    }
    .aewl-nav-overlay-menu {
        gap: 24px;
    }
    .aewl-nav-overlay-link {
        font-size: 1.1rem;
    }
}

/* Elementor editor preview */
.elementor-editor-active .aewl-nav-overlay {
    position: relative;
    opacity: 1;
    pointer-events: all;
    min-height: 400px;
}

.elementor-editor-active .aewl-nav-bar {
    position: relative;
}

/* ═══ NAV CART ═══ */
.aewl-nav-right{
  display:flex;align-items:center;gap:24px;
}
.aewl-nav-cart{
  display:flex;align-items:center;gap:10px;
  font-family:var(--mono);font-size:.54rem;letter-spacing:.32em;
  color:#fff;text-transform:uppercase;text-decoration:none;
  transition:opacity .3s;
}
.aewl-nav-cart:hover{opacity:.7}
.aewl-nav-cart-dot{width:6px;height:6px;border-radius:50%;background:#fff;display:inline-block}
.aewl-nav-cart-count{font-family:var(--mono);color:rgba(255,255,255,0.6)}



/* ===== ÆNERGY Password-Protected Page (the_password_form filter) ===== */

/* Full page background for password-protected pages */
body.aewl-password-protected {
    background-image: url('../images/bg.jpeg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
}

body.aewl-password-protected .site-main,
body.aewl-password-protected .entry-content,
body.aewl-password-protected .content-area,
body.aewl-password-protected main,
body.aewl-password-protected article {
    background: transparent !important;
}
.aewl-password-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 48px;
    background-color: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.12);
    margin: 60px auto;
    max-width: 480px;
    min-height: 50vh;
}

.aewl-password-form__icon {
    font-family: var(--sans);
    font-weight: 900;
    font-size: 4.5rem;
    color: rgba(255,255,255,1);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    opacity: 0.9;
}

.aewl-password-form__heading {
    font-family: var(--sans);
    font-weight: 900;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.aewl-password-form__subtitle {
    font-family: var(--sans);
    font-weight: 300;
    font-size: clamp(0.88rem, 1.4vw, 1rem);
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 400px;
}

.aewl-password-form__error {
    width: 100%;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: rgba(220,50,50,0.15);
    border: 1px solid rgba(220,50,50,0.3);
}

.aewl-password-form__error p {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 0.88rem;
    color: rgba(255,120,120,0.9);
    line-height: 1.5;
}

.aewl-password-form__form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.aewl-password-form__input {
    width: 100%;
    padding: 18px 20px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.12);
    color: #FFFFFF;
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    outline: none;
    transition: border-color 0.3s;
}

.aewl-password-form__input::placeholder {
    color: rgba(255,255,255,0.3);
}

.aewl-password-form__input:focus {
    border-color: rgba(255,255,255,0.4);
}

.aewl-password-form__button {
    width: 100%;
    padding: 18px;
    background: transparent !important;
    border: 1px solid #FFFFFF !important;
    border-radius: 0 !important;
    font-family: var(--mono) !important;
    font-weight: 500 !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.4em !important;
    text-transform: uppercase !important;
    color: #FFFFFF !important;
    cursor: pointer !important;
    transition: all 0.4s !important;
    position: relative;
    overflow: hidden;
    white-space: normal !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
    display: block !important;
    text-align: center !important;
}

.aewl-password-form__button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.08);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.aewl-password-form__button:hover {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border-color: #FFFFFF !important;
}

.aewl-password-form__button:hover::before {
    transform: scaleX(1);
}


/* Mobile */
@media (max-width: 768px) {
    .aewl-password-form {
        padding: 48px 24px;
    }

    .aewl-password-form__icon {
        font-size: 3.5rem;
        margin-bottom: 24px;
    }

    .aewl-password-form__heading {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .aewl-password-form__input {
        font-size: 16px; /* Prevent iOS zoom */
    }
}

@media (max-width: 480px) {
    .aewl-password-form {
        padding: 40px 20px;
    }

    .aewl-password-form__icon {
        font-size: 3rem;
    }
}

/* Elementor editor */
.elementor-editor-active .aewl-password-form {
    min-height: auto;
}


/* ════════════════════════════════════════════════════════════════════
   ÆNERGY INTERACTIVE WAITLIST WIDGET
   Four-step experience: GATE → UNLOCK → FORM (Access Required box) → SUCCESS

   Theming contract: every value an Elementor style control can change is
   read from an --iwl-* custom property, with the design default as the
   var() fallback. The widget's controls write those variables onto the
   Elementor wrapper, so the rules below never compete with Elementor's
   generated CSS — variables pass through any specificity or !important.
   ════════════════════════════════════════════════════════════════════ */

.aewl-iwl-widget {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-color: var(--iwl-bg, #000);
    background-size: cover;
    background-position: center;
    font-family: var(--sans);
    color: var(--W);
}

/* ══ HARD RESET — neutralize theme/Elementor button & input defaults ══
   Margin and padding are deliberately NOT reset here: each component rule
   below owns them (at higher specificity, via --iwl-* variables) so the
   spacing controls always stay in charge. */
.aewl-iwl-widget button,
.aewl-iwl-widget input[type="email"],
.aewl-iwl-widget input[type="text"] {
    box-sizing: border-box;
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none !important;
    text-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

/* vignette overlay (enabled when an image bg is set) */
.aewl-iwl-widget::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, var(--iwl-vignette, 0.28)) 100%);
}

/* screens stack, one active at a time */
.aewl-iwl-screen {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}
.aewl-iwl-screen.aewl-iwl-active {
    opacity: 1;
    pointer-events: all;
}

/* ── shared top bar (ÆNERGY wordmark + return link) ────────────── */
.aewl-iwl-gate-topbar,
.aewl-iwl-unlock-topbar,
.aewl-iwl-form-topbar {
    height: 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 3;
}
.aewl-iwl-gate-brand {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 12.2px;
    letter-spacing: 0.52em;
    color: #FFFFFF;
}

/* ── shared button base ─────────────────────────────────────────
   Enter / Continue are "link" buttons, the form submit is the "boxed"
   variant. Component rules are prefixed with .aewl-iwl-widget so they
   always beat the hard reset above without needing !important. */
.aewl-iwl-widget .aewl-iwl-btn {
    cursor: pointer;
    margin: 0;
    border-style: solid;
    text-transform: uppercase;
}
.aewl-iwl-widget .aewl-iwl-btn--link {
    font-family: var(--mono);
    font-weight: 400;
    font-size: 9px;
    letter-spacing: 0.45em;
    color: rgba(255,255,255,0.35);
    background: transparent;
    padding: 0;
    border: 0 solid transparent;
    border-radius: 0;
    transition: color 0.4s, border-color 0.4s, background-color 0.4s;
}
/* Own hover AND focus explicitly — Hello Elementor's reset.css ships
   `[type=button]:hover { background-color: #c36 }` (and :focus), which
   outranks plain component rules and paints buttons purple otherwise. */
.aewl-iwl-widget .aewl-iwl-btn--link:hover,
.aewl-iwl-widget .aewl-iwl-btn--link:focus {
    color: rgba(255,255,255,0.85);
    background: transparent;
}

/* ── GATE STATE ────────────────────────────────────────────────── */
.aewl-iwl-gate-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px;
    /* no flex gap — the per-element spacing controls own the rhythm and
       must be able to reach 0. */
    gap: 0;
    position: relative;
    z-index: 3;
}
.aewl-iwl-gate-glyph {
    font-family: var(--sans);
    font-weight: 900;
    font-size: clamp(7rem, 28vw, 22rem);
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--iwl-gate-glyph-color, #FFFFFF);
}
.aewl-iwl-gate-headline {
    font-family: var(--sans);
    font-weight: 900;
    font-size: clamp(1.4rem, 3.5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--iwl-gate-headline-color, #FFFFFF);
    /* 28px = the pre-refactor 16px flex gap + 12px default margin */
    margin-top: var(--iwl-gate-headline-mt, 28px);
}
/* Enter & Continue share one look (the "Buttons: Enter & Continue"
   style section) — only their spacing is managed per screen. */
.aewl-iwl-widget .aewl-iwl-gate-cta {
    margin-top: var(--iwl-gate-cta-mt, 16px);
}
.aewl-iwl-gate-bottombar,
.aewl-iwl-unlock-bottombar {
    flex-shrink: 0;
    text-align: center;
    padding: 30px 24px;
    font-family: var(--mono);
    font-size: 7.8px;
    letter-spacing: 0.36em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
}

/* ── UNLOCK STATE (Step 2: one-liner headline + single button) ──── */
.aewl-iwl-unlock-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px;
    /* no flex gap — the button's "Spacing Above Button" control owns the
       gap so it can be tuned all the way down to 0. */
    gap: 0;
    position: relative;
    z-index: 3;
}
.aewl-iwl-unlock-headline {
    font-family: var(--sans);
    font-weight: 900;
    font-size: clamp(1.8rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--iwl-unlock-headline-color, #FFFFFF);
    margin-top: var(--iwl-unlock-headline-mt, 0);
}
.aewl-iwl-widget .aewl-iwl-unlock-cta {
    margin-top: var(--iwl-unlock-cta-mt, 36px);
}

/* ── FORM STATE ────────────────────────────────────────────────── */
.aewl-iwl-form-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    position: relative;
    z-index: 3;
}
.aewl-iwl-access-box {
    width: 100%;
    max-width: var(--iwl-box-max-w, 480px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--iwl-box-padding, 80px 48px);
    background-color: var(--iwl-box-bg, rgba(0,0,0,0.55));
    border: 1px solid var(--iwl-box-border-color, rgba(255,255,255,0.12));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.aewl-iwl-form-glyph {
    font-family: var(--sans);
    font-weight: 900;
    font-size: 4.5rem;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--iwl-form-glyph-color, rgba(255,255,255,0.9));
    margin-bottom: var(--iwl-form-glyph-mb, 32px);
}
.aewl-iwl-form-heading {
    font-family: var(--sans);
    font-weight: 900;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--iwl-form-heading-color, #FFFFFF);
    margin-bottom: var(--iwl-form-heading-mb, 16px);
}
.aewl-iwl-form-subtitle {
    font-family: var(--sans);
    font-weight: 300;
    font-size: clamp(0.88rem, 1.4vw, 1rem);
    line-height: 1.7;
    color: var(--iwl-form-subtitle-color, rgba(255,255,255,0.6));
    max-width: 400px;
    margin-bottom: var(--iwl-form-subtitle-mb, 36px);
}

/* form is the flush-stack container — field + button are direct,
   equal-width siblings separated by a 1px gap (mirrors the password form) */
.aewl-iwl-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.aewl-iwl-form-wrap {
    width: 100%;
}
.aewl-iwl-widget .aewl-iwl-field-wrap {
    width: 100%;
    background: var(--iwl-field-bg, rgba(0,0,0,0.5));
    border: 1px solid var(--iwl-field-border-color, rgba(255,255,255,0.12));
    transition: border-color 0.3s;
}
.aewl-iwl-widget .aewl-iwl-field-wrap input {
    width: 100%;
    margin: 0;
    padding: var(--iwl-input-padding, 18px 20px);
    background: transparent;
    color: var(--iwl-input-color, #FFFFFF);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}
.aewl-iwl-widget .aewl-iwl-field-wrap input::placeholder { color: rgba(255,255,255,0.3); }
.aewl-iwl-widget .aewl-iwl-field-wrap:focus-within {
    border-color: var(--iwl-field-focus-border, rgba(255,255,255,0.4));
}

/* submit button — full width, flush under the field (equal width) */
.aewl-iwl-widget .aewl-iwl-submit {
    width: 100%;
    padding: 18px;
    background: transparent;
    border-width: 1px;
    border-color: rgba(255,255,255,0.35);
    border-radius: 0;
    color: #FFFFFF;
    cursor: pointer;
    font-family: var(--mono);
    font-weight: 500;
    font-size: 0.62rem;
    letter-spacing: 0.4em;
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.aewl-iwl-widget .aewl-iwl-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.08);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}
/* hover AND focus owned explicitly — beats the theme reset's purple
   `[type=submit]:hover/:focus` background */
.aewl-iwl-widget .aewl-iwl-submit:hover,
.aewl-iwl-widget .aewl-iwl-submit:focus {
    background: transparent;
    border-color: rgba(255,255,255,0.85);
    color: #FFFFFF;
}
.aewl-iwl-widget .aewl-iwl-submit:hover::before { transform: scaleX(1); }
.aewl-iwl-widget .aewl-iwl-submit:disabled { opacity: 0.6; cursor: wait; }

.aewl-iwl-note {
    margin-top: var(--iwl-note-mt, 14px);
    font-family: var(--mono);
    font-weight: 300;
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--iwl-note-color, rgba(255,255,255,0.25));
    text-align: center;
}

/* auto-width button: aligns left, shrinks to content (vs full-width default) */
.aewl-iwl-widget .aewl-iwl-submit--auto {
    align-self: flex-start;
    width: auto;
    padding: 18px 36px;
}

/* success box replaces the form on success */
.aewl-iwl-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    background-color: var(--iwl-success-bg, rgba(0,0,0,0.55));
    border: 1px solid var(--iwl-success-border-color, rgba(255,255,255,0.12));
    padding: 64px 48px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.aewl-iwl-success-glyph {
    font-family: var(--sans);
    font-weight: 900;
    font-size: 4rem;
    line-height: 1;
    color: var(--iwl-success-glyph-color, #FFFFFF);
    margin-bottom: 24px;
}
.aewl-iwl-success-title {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--iwl-success-title-color, #FFFFFF);
    margin-bottom: 16px;
}
.aewl-iwl-success-text {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--iwl-success-text-color, rgba(255,255,255,0.55));
}

/* ── shake animation on invalid email ──────────────────────────── */
@keyframes aewl-shake {
    0%,100% { transform: translateX(0); }
    20%     { transform: translateX(-6px); }
    40%     { transform: translateX(6px); }
    60%     { transform: translateX(-4px); }
    80%     { transform: translateX(4px); }
}
.aewl-shake { animation: aewl-shake 0.4s ease; }

/* ── MOBILE ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .aewl-iwl-gate-topbar,
    .aewl-iwl-unlock-topbar,
    .aewl-iwl-form-topbar {
        padding: 0 24px;
    }
    .aewl-iwl-gate-center,
    .aewl-iwl-unlock-center {
        padding: 32px 24px;
    }
    .aewl-iwl-gate-glyph {
        font-size: clamp(5rem, 30vw, 12rem);
    }
    .aewl-iwl-access-box {
        padding: var(--iwl-box-padding, 48px 24px);
    }
    .aewl-iwl-form-glyph {
        font-size: 3.5rem;
        margin-bottom: var(--iwl-form-glyph-mb, 24px);
    }
    .aewl-iwl-widget .aewl-iwl-field-wrap input,
    .aewl-iwl-widget .aewl-iwl-submit {
        font-size: 16px; /* prevent iOS zoom */
    }
    .aewl-iwl-widget .aewl-iwl-submit {
        font-family: var(--mono);
        font-size: 0.62rem;
    }
}

@media (max-width: 480px) {
    .aewl-iwl-access-box {
        padding: var(--iwl-box-padding, 40px 20px);
    }
    .aewl-iwl-form-glyph {
        font-size: 3rem;
    }
}

/* ── ELEMENTOR EDITOR ──────────────────────────────────────────── */
.elementor-editor-active .aewl-iwl-widget {
    min-height: 600px;
}
.elementor-editor-active .aewl-iwl-widget::before,
.elementor-editor-active .aewl-iwl-widget::after {
    position: absolute;
}
.elementor-editor-active .aewl-iwl-screen {
    position: relative;
}
.elementor-editor-active .aewl-iwl-screen:not(.aewl-iwl-active) {
    display: none;
}
.elementor-editor-active .aewl-iwl-widget .aewl-wl-cur,
.elementor-editor-active .aewl-iwl-widget .aewl-wl-curR {
    display: none;
}
.elementor-editor-active .aewl-iwl-gate-cta,
.elementor-editor-active .aewl-iwl-unlock-cta,
.elementor-editor-active .aewl-iwl-submit {
    pointer-events: none;
}
