/* /subscribe — Buildaur beta-waitlist landing.
   Two-column shell: left = signup form, right = dark "what's coming"
   preview cards. Adapted from the user-supplied mockup; brand color
   tokens match the brand-palette card on the manager dashboard. */

:root {
    --ns-primary:   #7c5cfd;
    --ns-secondary: #5b9eef;
    --ns-success:   #008143;
    --ns-lime:      #a6ff00;
    --ns-surface:   #f0f2f8;
    --ns-dark:      #09031a;
    --ns-text:      #090f1a;
    --ns-muted:     #42445a;
    --ns-muted-2:   #6a6c80;
}

/* Kill the grey strip from the global layout. */
html, body {
    background: var(--ns-surface) !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    min-height: 100dvh;
}
.all-content {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 100vh;
    min-height: 100dvh;
}
#status-banner { display: none !important; }

.ns-shell-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    position: relative;
    overflow-x: hidden;
    background: var(--ns-surface);
}
/* Ambient blobs behind the shell */
.ns-shell-wrap::before,
.ns-shell-wrap::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}
.ns-shell-wrap::before {
    top: -200px; left: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124,92,253,.35), transparent 70%);
}
.ns-shell-wrap::after {
    bottom: -200px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(166,255,0,.25), transparent 70%);
}

.ns-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    max-width: 1100px;
    width: 100%;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 30px 80px -20px rgba(9, 3, 26, .25),
        0 0 0 1px rgba(9, 3, 26, .04);
}

/* ── LEFT COLUMN ─────────────────────────────────────────────── */
.ns-left {
    padding: 56px 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}

.ns-brand img {
    height: 38px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.ns-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 129, 67, .10);
    color: var(--ns-success);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .3px;
    width: fit-content;
    margin-top: 32px;
}
.ns-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--ns-success);
    box-shadow: 0 0 0 4px rgba(0, 129, 67, .18);
    animation: nsPulse 1.8s ease-out infinite;
}
@keyframes nsPulse {
    0%   { box-shadow: 0 0 0 0   rgba(0, 129, 67, .35); }
    70%  { box-shadow: 0 0 0 10px rgba(0, 129, 67, 0); }
    100% { box-shadow: 0 0 0 0   rgba(0, 129, 67, 0); }
}

.ns-h1 {
    font-size: 54px;
    line-height: 1.05;
    letter-spacing: -1.5px;
    font-weight: 800;
    color: var(--ns-text);
    margin-top: 24px;
}
.ns-grad {
    background: linear-gradient(90deg, var(--ns-primary), var(--ns-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ns-lead {
    margin-top: 18px;
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--ns-muted);
    max-width: 480px;
}

.ns-form {
    margin-top: 34px;
    display: flex;
    gap: 10px;
    background: var(--ns-surface);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(9, 15, 26, .05);
}
.ns-input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--ns-text);
    outline: none;
    font-family: inherit;
    min-width: 0;
}
.ns-input::placeholder { color: var(--ns-muted-2); }
.ns-btn {
    border: 0;
    cursor: pointer;
    background: linear-gradient(135deg, var(--ns-primary), var(--ns-secondary));
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 0 24px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .15s, box-shadow .15s, filter .15s;
    box-shadow: 0 10px 24px -8px rgba(124, 92, 253, .55);
}
.ns-btn svg { transition: transform .15s ease; }
.ns-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 14px 30px -8px rgba(124, 92, 253, .6);
}
.ns-btn:hover svg { transform: translateX(3px); }
.ns-btn:active { transform: translateY(0); }

.ns-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    margin-top: 28px;
}
.ns-perk {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ns-muted);
    font-weight: 500;
}
.ns-perk-ico {
    width: 22px; height: 22px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: #fff;
    font-weight: 700;
}
.ns-perk:nth-child(1) .ns-perk-ico { background: var(--ns-primary); }
.ns-perk:nth-child(2) .ns-perk-ico { background: var(--ns-secondary); }
.ns-perk:nth-child(3) .ns-perk-ico { background: var(--ns-success); }

.ns-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--ns-muted-2);
}
.ns-avatars { display: flex; }
.ns-avatars span {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -8px;
    background: linear-gradient(135deg, var(--ns-primary), var(--ns-secondary));
}
.ns-avatars span:nth-child(2) { background: linear-gradient(135deg, var(--ns-secondary), var(--ns-lime)); }
.ns-avatars span:nth-child(3) { background: linear-gradient(135deg, var(--ns-success),   var(--ns-lime)); }
.ns-avatars span:nth-child(4) { background: linear-gradient(135deg, var(--ns-lime),      var(--ns-primary)); }

/* ── RIGHT COLUMN ────────────────────────────────────────────── */
.ns-right {
    background: var(--ns-dark);
    color: #fff;
    padding: 56px 48px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
}
.ns-right::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(166, 255, 0, .25), transparent 70%);
}
.ns-right::after {
    content: '';
    position: absolute;
    bottom: -120px; left: -120px;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 253, .4), transparent 70%);
}

.ns-tag {
    position: relative; z-index: 1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--ns-lime);
    text-transform: uppercase;
}
.ns-h2 {
    position: relative; z-index: 1;
    margin-top: 14px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.5px;
}

.ns-cards {
    position: relative; z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
}
.ns-card {
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.ns-k {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
    color: var(--ns-dark);
    flex-shrink: 0;
}
.ns-card:nth-child(1) .ns-k { background: var(--ns-lime); }
.ns-card:nth-child(2) .ns-k { background: var(--ns-secondary); color: #fff; }
.ns-card:nth-child(3) .ns-k { background: var(--ns-primary);   color: #fff; }
.ns-card-t { font-weight: 700; font-size: 15px; }
.ns-card-s {
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
    margin-top: 2px;
}

.ns-stats {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, .10);
    padding-top: 24px;
}
.ns-stat b {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--ns-lime);
}
.ns-stat i {
    font-style: normal;
    font-size: 11px;
    color: rgba(255, 255, 255, .6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 880px) {
    /* Strip the flex / min-height / overflow combo on mobile. The
       previous version kept .ns-shell-wrap as a flex container with
       min-height: 100dvh + overflow-x: hidden — on iOS Safari that
       combination steals touch-move events without itself being
       scrollable, producing the "stuck, let go, scroll, top sticks"
       glitch the user reported. As a plain block element the wrap
       just takes its content's height and the body handles scroll
       natively. */
    .ns-shell-wrap {
        display: block;
        padding: 16px;
        min-height: 0;
        height: auto;
        overflow: visible;
    }
    /* Hide the decorative blurry blobs on mobile — they're 700px
       wide absolutely-positioned circles that push horizontal
       overflow and don't add anything at phone sizes. */
    .ns-shell-wrap::before,
    .ns-shell-wrap::after { display: none !important; }

    .ns-shell { grid-template-columns: 1fr; }
    .ns-left  { padding: 40px; gap: 32px; }
    .ns-right { padding: 40px; }
    .ns-h1    { font-size: 38px; }
    .ns-form  { flex-direction: column; }
    .ns-btn   { padding: 14px; justify-content: center; }

    /* Move overflow clipping + momentum scroll to the body level so
       iOS handles scroll natively. */
    html, body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100% !important;
        -webkit-overflow-scrolling: touch;
    }
}
