/* aisdr.exitsaas.com — DLR demo gate. Slim overlay, preserved by .crm-keep. */

:root {
    --ink: #0b1120;
    --ink-2: #111a2e;
    --paper: #f7f4ee;
    --line: rgba(255, 255, 255, 0.10);
    --accent: #ff6b4a;      /* warm signal-orange — "revival" */
    --accent-2: #36e0b0;    /* teal accent */
    --muted: #93a1bb;
}

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

body {
    font-family: 'Spline Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #e8edf6;
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
}

.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
}
@media (max-width: 900px) {
    .shell { grid-template-columns: 1fr; }
    /* Lead with the access-code card on mobile (matches the other demos) */
    .gate {
        order: -1;
        border-left: none;
        border-bottom: 1px solid var(--line);
        padding: 34px clamp(20px, 6vw, 40px) 30px;
    }
    .gate-card { max-width: 480px; }
    .hero { padding: 40px clamp(20px, 6vw, 40px); }
    .hero h1 { font-size: clamp(1.8rem, 7.5vw, 2.5rem); }
    .lede { font-size: 1rem; }
}
@media (max-width: 380px) {
    .code-boxes input { height: 46px; font-size: 1rem; }
    .code-boxes { gap: 5px; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 10% 0%, rgba(255,107,74,0.16) 0%, transparent 55%),
        radial-gradient(100% 80% at 90% 100%, rgba(54,224,176,0.12) 0%, transparent 50%),
        linear-gradient(160deg, #0b1120 0%, #0e1830 100%);
    display: flex;
    align-items: center;
    padding: 64px clamp(32px, 6vw, 96px);
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(80% 80% at 30% 20%, #000 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}
.hero-inner { position: relative; max-width: 560px; }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 22px;
}
.hero h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 22px;
}
.hero h1 em { color: var(--accent); font-style: italic; }
.lede {
    font-size: 1.06rem;
    line-height: 1.6;
    color: #cdd6e6;
    max-width: 30em;
    margin-bottom: 30px;
}
.proof { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.proof li {
    font-size: 0.97rem; color: #d7deea;
    padding-left: 26px; position: relative;
}
.proof li::before {
    content: ''; position: absolute; left: 0; top: 0.55em;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-2); box-shadow: 0 0 0 4px rgba(54,224,176,0.18);
}
.proof strong { color: #fff; font-weight: 600; }
.foot { font-size: 0.82rem; color: var(--muted); }

/* ── Gate ───────────────────────────────────────────────── */
.gate {
    background: var(--ink-2);
    display: flex; align-items: center; justify-content: center;
    padding: 48px clamp(24px, 4vw, 56px);
    border-left: 1px solid var(--line);
}
.gate-card { width: 100%; max-width: 380px; }

.brand {
    display: flex; align-items: center; gap: 9px;
    font-weight: 600; letter-spacing: 0.02em; margin-bottom: 28px;
}
.brand .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(255,107,74,0.2);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255,107,74,0); } }

.gate h2 {
    font-family: 'Fraunces', serif; font-weight: 600;
    font-size: 1.6rem; margin-bottom: 8px;
}
.sub { color: var(--muted); font-size: 0.94rem; margin-bottom: 24px; line-height: 1.5; }

.alert {
    background: rgba(255,107,74,0.12);
    border: 1px solid rgba(255,107,74,0.4);
    color: #ffb6a3;
    padding: 11px 14px; border-radius: 10px;
    font-size: 0.88rem; margin-bottom: 18px;
}

label { display: block; font-size: 0.82rem; color: var(--muted); margin: 0 0 7px; }
input[type=text], input[type=email], input[type=tel] {
    width: 100%; height: 46px;
    background: #0b1120; border: 1px solid var(--line);
    border-radius: 11px; padding: 0 14px;
    color: #fff; font: inherit; font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus {
    outline: none; border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(54,224,176,0.18);
}
#access_code { letter-spacing: 0.22em; font-weight: 600; text-transform: uppercase; }

.tos { display: flex; gap: 9px; align-items: flex-start; margin: 16px 0 20px; color: #c4cde0; font-size: 0.85rem; }
.tos input { margin-top: 2px; accent-color: var(--accent); }
.tos a { color: var(--accent-2); }

.btn-primary, .btn-ghost {
    width: 100%; height: 48px; border-radius: 11px;
    font: inherit; font-weight: 600; font-size: 0.96rem;
    cursor: pointer; transition: transform 0.12s, filter 0.15s, background 0.15s;
}
.btn-primary {
    border: none; color: #20100b;
    background: linear-gradient(135deg, #ff8a5c, var(--accent));
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost {
    background: transparent; color: #dce4f1;
    border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent-2); color: #fff; }
.btn-ghost:disabled { opacity: 0.6; cursor: default; }

.divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 20px; color: var(--muted); font-size: 0.78rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.lead-form .row { display: flex; gap: 10px; margin-bottom: 10px; }
.lead-form .row input { margin: 0; }
.lead-msg { margin-top: 12px; font-size: 0.86rem; }
.lead-msg.ok { color: var(--accent-2); }
.lead-msg.err { color: #ffb6a3; }

dialog {
    max-width: 460px; border: 1px solid var(--line); border-radius: 16px;
    background: var(--ink-2); color: #e8edf6; padding: 28px;
}
dialog::backdrop { background: rgba(5,8,16,0.7); backdrop-filter: blur(3px); }
dialog h3 { font-family: 'Fraunces', serif; margin-bottom: 12px; }
dialog p { color: #c4cde0; line-height: 1.6; font-size: 0.92rem; margin-bottom: 20px; }
dialog button { width: auto; padding: 0 22px; height: 42px; }

/* ── Access-code OTP boxes + TOS gate (matches the existing demo model) ───── */
.lbl-hint { color: var(--muted); font-weight: 400; }
.code-boxes { display: flex; flex-wrap: nowrap; gap: 6px; width: 100%; margin: 4px 0 2px; }
.code-boxes input {
    flex: 1 1 0; width: 0; min-width: 0; height: 52px; padding: 0;
    text-align: center; font-size: 1.15rem; font-weight: 700; text-transform: uppercase;
    background: #0b1120; border: 1px solid var(--line); border-radius: 10px; color: #fff;
    font-family: 'Spline Sans', sans-serif;
}
.code-boxes input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(54,224,176,0.18); }
.tos-gate {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 16px 0 18px; padding: 12px 14px;
    background: rgba(255,107,74,0.06); border: 1px solid rgba(255,107,74,0.22);
    border-radius: 10px; font-size: .84rem; line-height: 1.5; color: #c4cde0; cursor: pointer;
}
.tos-gate input[type="checkbox"] { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.tos-gate a { color: var(--accent-2); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(35%); transform: none; }
