/* Standalone styles for /preview-gate (served before the visitor unlocks the main app). */

/* The brand face, for the lockup's live-text wordmark only (the gate's own copy stays on system fonts).
   Self-hosted subset shared with the app; /fonts is gate-exempt so it loads before unlock. */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400 1000;
    font-display: swap;
    src: url('/fonts/nunito-latin.woff2') format('woff2');
}

:root {
    --navy: #0b1430;
    --pink: #e8186d;
    --cream: #f8f9f6;
    --card: #ffffff;
    --hairline: rgba(11, 20, 48, 0.07);
    --muted: rgba(11, 20, 48, 0.65);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--navy);
    background: var(--cream);
}

.gate-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.25rem;
}

.gate-card {
    width: 100%;
    max-width: 26rem;
    padding: 1.75rem;
    background: var(--card);
    border: 0.5px solid var(--hairline);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(11, 20, 48, 0.06);
}

/* Brand lockup: gift mark + two-tone wordmark, same ratios as the app's Logo component
   (wordmark 0.75 of the 30px mark, gap 0.2625, dropped 0.202 from the top of the mark). */
.gate-brand {
    display: inline-flex;
    align-items: flex-start;
    gap: 7.9px;
}

.gate-brand-mark {
    display: block;
    height: 30px;
    width: auto;
}

.gate-brand-word {
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 800;
    font-size: 22.5px;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-top: 6.1px;
}

.gate-brand-word span:first-child { color: #322028; }
.gate-brand-word span:last-child { color: #db338a; }

.gate-title {
    margin: 0.75rem 0 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.gate-lead {
    margin: 0.75rem 0 0;
    font-size: 13px;
    color: var(--muted);
}

.gate-error {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    font-size: 13px;
    color: var(--navy);
    background: rgba(232, 24, 109, 0.06);
    border-radius: 12px;
}

.gate-form {
    margin-top: 1.25rem;
    display: grid;
    gap: 1rem;
}

.gate-label {
    display: grid;
    gap: 0.35rem;
    font-size: 12px;
    font-weight: 600;
    color: rgba(11, 20, 48, 0.7);
}

.gate-input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 13px;
    color: var(--navy);
    background: var(--cream);
    border: 0.5px solid var(--hairline);
    border-radius: 8px;
}

.gate-input:focus {
    outline: 2px solid rgba(232, 24, 109, 0.25);
    outline-offset: 1px;
}

.gate-submit {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: var(--pink);
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.gate-submit:hover {
    filter: brightness(0.95);
}

.gate-alt {
    margin: 1.25rem 0 0;
    font-size: 13px;
    text-align: center;
    color: var(--muted);
}

.gate-alt a {
    color: var(--pink);
    font-weight: 500;
    text-decoration: none;
}

.gate-alt a:hover {
    text-decoration: underline;
}
