/* Launch special popup. Mobile first: bottom card on phones,
   centered dialog from 640px up. Built on the tokens in styles.css. */
.promo[hidden], .promo [hidden] { display: none !important; }
.promo { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: flex-end; justify-content: center; }
.promo__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity .25s ease; }
.promo__card {
    position: relative; width: 100%; max-height: 88vh; max-height: 88dvh; overflow-y: auto;
    background: var(--ink-2, #141414); color: var(--text-on-dark, #F5F5F5);
    border: 1px solid var(--border-dark-2, rgba(255,255,255,.18)); border-bottom: 0;
    border-radius: 20px 20px 0 0;
    padding: 18px max(18px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
    font-family: var(--font-sans, 'Manrope', system-ui, sans-serif);
    transform: translateY(24px); opacity: 0; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
    outline: none;
}
.promo.is-in .promo__backdrop { opacity: 1; }
.promo.is-in .promo__card { transform: none; opacity: 1; }
.promo__x {
    position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: transparent; color: var(--text-mute-on-dark, #A1A1AA); font-size: 28px; line-height: 1; cursor: pointer;
}
.promo__x:hover, .promo__x:focus-visible { color: #fff; background: rgba(255,255,255,.08); }
.promo__eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
    font-family: var(--font-mono, monospace); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent, #FF6A00);
    margin-bottom: 8px;
}
.promo__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent, #FF6A00); box-shadow: 0 0 0 4px var(--accent-soft, rgba(255,106,0,.12)); }
.promo__title { margin: 0 40px 8px 0; font-size: clamp(22px, 6.1vw, 34px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: #fff; }
.promo__title span { color: var(--accent, #FF6A00); }
.promo__body { margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: var(--text-mute-on-dark, #A1A1AA); }
.promo__spots { margin: 0 0 12px; }
.promo__meter { height: 5px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; margin-bottom: 6px; }
.promo__meter span { display: block; height: 100%; background: var(--accent, #FF6A00); border-radius: inherit; }
.promo__spots p { margin: 0; font-size: 14px; color: var(--text-mute-on-dark, #A1A1AA); }
.promo__spots strong { color: #fff; }
.promo__label { display: block; margin: 0 0 5px; font-size: 14px; font-weight: 600; color: #fff; }
.promo__row { display: flex; flex-direction: row; gap: 8px; }
.promo__input {
    flex: 1 1 auto; min-width: 0; width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 16px; /* 16px stops iOS zoom */
    color: #fff; background: var(--ink, #0A0A0A); border: 1px solid var(--border-dark-2, rgba(255,255,255,.18)); border-radius: var(--r-md, 10px);
}
.promo__input:focus { outline: 2px solid var(--accent, #FF6A00); outline-offset: 2px; border-color: transparent; }
.promo__submit { flex: 0 0 auto; min-height: 48px; padding-left: 16px; padding-right: 16px; justify-content: center; white-space: nowrap; }
.promo__fine { margin: 8px 0 0; font-size: 12.5px; color: var(--text-mute-on-dark, #A1A1AA); }
.promo__fine a, .promo__thanks a, .promo__error a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.promo__error { margin: 10px 0 0; font-size: 14px; color: #FCA5A5; }
.promo__thanks { padding: 6px 0 4px; font-size: 16px; line-height: 1.55; color: var(--text-mute-on-dark, #A1A1AA); outline: none; }
.promo__thanks-title { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: #fff; }
.promo__decline {
    display: block; margin: 4px auto 0; min-height: 44px; padding: 0 16px; border: 0; background: transparent;
    font: inherit; font-size: 14px; color: var(--text-mute-on-dark, #A1A1AA); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.promo__decline:hover, .promo__decline:focus-visible { color: #fff; }
.promo__hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; width: 1px; height: 1px; }
html.promo-open { overflow: hidden; }

@media (min-width: 640px) {
    .promo { align-items: center; padding: 24px; }
    .promo__backdrop { background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
    .promo__card { max-width: 480px; border-bottom: 1px solid var(--border-dark-2, rgba(255,255,255,.18)); border-radius: var(--r-xl, 20px); padding: 32px 32px 24px; transform: translateY(12px) scale(.98); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
    .promo__title { margin-bottom: 10px; }
    .promo__body { font-size: 16px; line-height: 1.55; margin-bottom: 16px; }
    .promo__spots { margin-bottom: 18px; }
    .promo__submit { padding-left: 22px; padding-right: 22px; }
    .promo__decline { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .promo__backdrop, .promo__card { transition: none; }
    .promo__card { transform: none; }
}

/* Meeting form send error (index.html #auditForm) */
.form__send-error { margin: 12px 0 0; font-size: 15px; color: var(--danger, #DC2626); }
.form__send-error a { color: inherit; text-decoration: underline; }

/* Privacy page (privacy.html) */
.legal { max-width: 760px; }
.legal h2 { margin: 2.2rem 0 .6rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; color: var(--text, #181818); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 1.05rem; line-height: 1.7; color: var(--text, #181818); }
.legal p { margin: 0 0 .9rem; }
.legal ul { margin: 0 0 .9rem 1.2rem; padding: 0; }
.legal li { margin: 0 0 .4rem; }
.legal a { color: #A34200; text-decoration: underline; text-underline-offset: 2px; }

/* Very small phones (older iPhone SE and similar): keep the card compact. */
@media (max-width: 359px) {
    .promo__body { font-size: 14px; line-height: 1.4; }
    .promo__meter { display: none; }
    .promo__fine { font-size: 12px; }
    .promo__title { font-size: 21px; }
}
