/* Early access — waitlist form (homepage + gated /register) and the
   invite-only state of the signup card. Loaded via direct <link> on the
   pages that use it (public pages don't use the dist bundles). */

/* Honeypot — visually gone, present for bots */
.ea-hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ea-waitlist {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

/* One compact row: email · firm · button, all sharing the .btn scale */
.ea-waitlist-fields {
    display: flex;
    gap: 8px;
}

.ea-waitlist-fields input {
    flex: 1 1 0;
    min-width: 0;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-paper);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: 14px;
}

.ea-waitlist-fields input::placeholder {
    color: var(--color-ink-faint);
}

.ea-waitlist-fields input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.ea-waitlist-fields button {
    flex: 0 0 auto;
}

/* Setup-help mini note under the fields — the concierge offer lives here,
   deliberately out of the intro paragraphs (they stay short). */
.ea-waitlist-note {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding-top: 16px; /* clear air below the Request button */
    font-size: 12px;
    color: var(--color-ink-muted);
    text-align: center;
}

.ea-waitlist-note i {
    font-size: 11px;
}

/* The base note is a flex row, built for "icon + one short line". A note whose
   text contains an inline link needs ordinary text flow instead: as a flex
   container the <a> becomes a flex item and the sentence around it breaks into
   columns. Used by the collection notice under the waitlist form. */
.ea-waitlist-note--text {
    display: block;
    line-height: 1.5;
}

@media (max-width: 560px) {
    .ea-waitlist-fields {
        flex-direction: column;
    }

    .ea-waitlist-fields input,
    .ea-waitlist-fields button {
        width: 100%;
        flex: 0 0 auto; /* row layout's flex-basis 0 would zero the height */
    }
}

/* Inside the narrow signup card the inline row truncates placeholders —
   stack the fields like the rest of the auth forms. */
.ea-locked .ea-waitlist-fields {
    flex-direction: column;
}

.ea-locked .ea-waitlist-fields input,
.ea-locked .ea-waitlist-fields button {
    width: 100%;
    flex: 0 0 auto; /* row layout's flex-basis 0 would zero the height here */
}

/* The homepage closing band is a fixed-dark stage in BOTH themes
   (--flock-*, colours.css) — theme tokens would paint light boxes on it.
   Mix against the flock palette instead, like .hp-close .btn-secondary. */
.hp-close .ea-waitlist {
    margin-top: 38px; /* same rhythm as the .hp-hero-ctas row it replaces */
}

.hp-close .ea-waitlist-fields input {
    background: color-mix(in srgb, var(--flock-ink) 6%, transparent);
    border-color: color-mix(in srgb, var(--flock-ink) 18%, transparent);
    color: var(--flock-ink);
}

.hp-close .ea-waitlist-fields input::placeholder {
    color: var(--flock-muted);
}

.hp-close .ea-waitlist-fields input:focus {
    border-color: color-mix(in srgb, var(--flock-ink) 45%, transparent);
}

.hp-close .ea-waitlist-success {
    background: color-mix(in srgb, var(--flock-ink) 5%, transparent);
    border-color: color-mix(in srgb, var(--flock-ink) 15%, transparent);
    color: var(--flock-ink);
}

.hp-close .ea-waitlist-success p {
    color: var(--flock-ink); /* beat .hp-close p's muted grey */
}

.hp-close .ea-waitlist-note {
    color: var(--flock-muted);
}

.ea-waitlist-error {
    margin: var(--space-sm) 0 0;
    color: var(--color-danger);
    font-size: 14px;
    text-align: center;
}

/* display:flex below would beat the UA's [hidden] rule — restore it explicitly */
.ea-waitlist-success[hidden],
.ea-waitlist-form[hidden] {
    display: none;
}

.ea-waitlist-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-paper);
    color: var(--color-ink);
}

/* The animated checkmark (global/animated-check.css) is sized for a full-page
   wizard step — inside this panel it sits smaller, and the flex gap above
   handles the spacing its own margin would otherwise double. */
.ea-waitlist-success .ob-welcome-check {
    width: 52px;
    height: 52px;
    margin: 0;
}

.ea-waitlist-success p {
    margin: 0;
    font-size: 15px;
}

/* Invite-only state of the signup card */
.ea-locked {
    text-align: center;
}

.ea-locked-icon {
    font-size: 28px;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.ea-locked h2 {
    font-size: 20px;
    color: var(--color-ink);
    margin: 0 0 var(--space-sm);
}

.ea-locked p {
    /* 14px matches everything else in the card (inputs, sign-in line,
       invalid note) — the intro shouldn't be the loudest text on it. */
    color: var(--color-ink-muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 var(--space-md);
}

.ea-locked .ea-invalid-note {
    color: var(--color-ink);
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    font-size: 14px;
}

.ea-locked p.ea-locked-signin {
    /* beats .ea-locked p's margin shorthand */
    margin: var(--space-xl) 0 0;
    font-size: 14px;
    color: var(--color-ink-muted);
}

.ea-locked-signin a {
    color: var(--color-primary);
    font-weight: var(--fw-medium);
}
