/* Sign-up page (signup.html) and the mobile-number gate (verify-mobile.html), which shares its look. */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/spacegrotesk.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/jetbrainsmono.woff2') format('woff2'); }

:root {
    --bg: oklch(0.185 0.022 286); --surface: oklch(0.225 0.024 286); --surface2: oklch(0.27 0.026 286); --inset: oklch(0.165 0.02 286);
    --text: oklch(0.94 0.006 286); --muted: oklch(0.66 0.018 286); --border: oklch(0.33 0.022 286);
    --accent: oklch(0.72 0.15 292); --accent-ink: oklch(0.17 0.02 286); --link: oklch(0.74 0.13 245);
    --green: oklch(0.62 0.16 150); --profit: oklch(0.81 0.15 158); --loss: oklch(0.68 0.2 26);
    color-scheme: dark;
}
html[data-theme="light"] {
    --bg: oklch(0.965 0.005 286); --surface: oklch(0.995 0.003 286); --surface2: oklch(0.945 0.006 286); --inset: oklch(0.925 0.007 286);
    --text: oklch(0.27 0.022 286); --muted: oklch(0.52 0.02 286); --border: oklch(0.885 0.008 286);
    --accent: oklch(0.55 0.19 292); --accent-ink: oklch(0.99 0 0); --link: oklch(0.5 0.16 245);
    --green: oklch(0.55 0.16 150); --profit: oklch(0.58 0.15 158); --loss: oklch(0.56 0.21 26);
    color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Space Grotesk', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; letter-spacing: -0.01em; }
.mono { font-family: 'JetBrains Mono', monospace; }

.auth-split { display: flex; width: 100%; min-height: 100vh; }

.brand-panel {
    width: 45%; padding: 46px 44px; border-right: 1px solid var(--border);
    background: linear-gradient(160deg, var(--surface2), var(--surface) 55%, var(--inset));
    display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.wordmark { display: inline-flex; align-items: baseline; font-weight: 700; font-size: 28px; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.wordmark .zen { background: var(--accent); color: var(--accent-ink); padding: 0.04em 0.22em; border-radius: 0.2em; }
.wordmark .sibly { color: var(--text); }
.brand-bottom { margin-top: auto; }
.brand-headline { font-size: 33px; font-weight: 750; letter-spacing: -0.025em; margin: 0 0 16px; line-height: 1.1; }
.brand-sub { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 380px; }
.brand-proof { display: flex; gap: 26px; margin-top: 30px; }
.brand-proof .v { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.brand-proof .k { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.equity-card { margin-top: 26px; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in oklab, var(--inset) 60%, transparent); padding: 14px 16px 8px; }
.equity-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-family: 'JetBrains Mono', monospace; margin-bottom: 6px; }
.equity-curve { width: 100%; height: 104px; display: block; }

.form-col { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.form-inner { width: 100%; max-width: 372px; }
.form-head h1 { font-size: 27px; font-weight: 750; letter-spacing: -0.02em; margin: 0 0 7px; }
.form-head p { font-size: 15px; color: var(--muted); margin: 0; }
.buying-plan { margin: 8px 0 0; }

.fields { display: flex; flex-direction: column; gap: 15px; }
.auth-field { display: block; }
.lbl { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.auth-field input {
    width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--surface2); color: var(--text); font-size: 15px; outline: none; font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.auth-field input::placeholder { color: color-mix(in oklab, var(--muted) 70%, transparent); }
.auth-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }
.auth-field input.mono-input { font-family: 'JetBrains Mono', monospace; letter-spacing: 0.3em; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 60px; }
.pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 700; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; padding: 4px; }
.pw-hints { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.pw-hints span { font-size: 11.5px; color: var(--muted); background: var(--surface2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }

.primary-btn {
    width: 100%; padding: 14px 20px; border-radius: 11px; border: none; cursor: pointer;
    background: var(--accent); color: var(--accent-ink); font-family: inherit; font-size: 15.5px; font-weight: 750; letter-spacing: 0.01em;
    box-shadow: 0 6px 16px -10px color-mix(in oklab, var(--accent) 70%, transparent); transition: filter .15s, box-shadow .15s;
}
.primary-btn:hover:not(:disabled) { filter: brightness(1.06); box-shadow: 0 10px 26px -10px color-mix(in oklab, var(--accent) 80%, transparent); }
.primary-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.link-btn { background: none; border: none; padding: 0; cursor: pointer; color: var(--link); font-weight: 600; font-size: 14px; font-family: inherit; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }
.link-btn.strong { font-weight: 700; }
.alt-prompt { font-size: 14px; color: var(--muted); margin: 0; }

.sso-block { display: flex; flex-direction: column; gap: 15px; margin-bottom: 18px; }
.google-btn { width: 100%; padding: 12px 18px; border-radius: 11px; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: inherit; font-size: 14.5px; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 11px; text-decoration: none; transition: background .15s; }
.google-btn:hover { background: var(--surface2); }
.or-divider { display: flex; align-items: center; gap: 14px; }
.or-divider .ln { flex: 1; height: 1px; background: var(--border); }
.or-divider .lbl { font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.08em; }

.approval-card { margin-top: 18px; padding: 18px 20px; border-radius: 12px; border: 1px solid color-mix(in oklab, var(--profit) 40%, var(--border)); background: color-mix(in oklab, var(--profit) 10%, transparent); font-size: 14px; line-height: 1.6; }
.approval-card a { color: var(--link); }

.message { display: none; }
.message.show { display: block; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; margin-bottom: 16px; }
.message.error   { background: color-mix(in oklab, var(--loss) 14%, transparent);   border: 1px solid color-mix(in oklab, var(--loss) 42%, var(--border));   color: var(--loss); }
.message.info    { background: color-mix(in oklab, var(--accent) 13%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 38%, var(--border)); color: var(--accent); }
.message.success { background: color-mix(in oklab, var(--profit) 13%, transparent); border: 1px solid color-mix(in oklab, var(--profit) 42%, var(--border)); color: var(--profit); }

.step-hide { display: none !important; }   /* beats .field-hint and friends, which set display */

@media (max-width: 880px) {
    .brand-panel { display: none; }
    .form-col { padding: 28px 22px; }
}

/* Was inline in signup.html. */
.lead-note { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 12px; }
.legal-note { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 10px; }
.sso-block { display: none; margin-top: 18px; }
.sso-block.show { display: flex; }
.signup-form { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lbl .opt { font-weight: 400; opacity: 0.7; }
.field-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 7px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }

/* The mobile-number gate: one column, no brand panel. */
body > .form-col { min-height: 100vh; }
.gate-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.gate-top .wordmark { font-size: 22px; }


/* One-screen sign-up: each field is proved where it is typed. */
.inline-row { display: flex; gap: 8px; align-items: stretch; }
.inline-row input { flex: 1; min-width: 0; }
.inline-btn {
    flex: none; padding: 0 15px; border-radius: 10px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 700;
    border: 1px solid color-mix(in oklab, var(--accent) 55%, var(--border)); background: color-mix(in oklab, var(--accent) 14%, transparent); color: var(--accent);
}
.inline-btn:hover:not(:disabled) { background: color-mix(in oklab, var(--accent) 22%, transparent); }
.inline-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.verified { flex: none; align-self: center; font-size: 13.5px; font-weight: 700; color: var(--profit); white-space: nowrap; }
.code-box { margin-top: 10px; padding: 12px; border-radius: 11px; border: 1px solid var(--border); background: color-mix(in oklab, var(--inset) 55%, transparent); display: flex; flex-direction: column; gap: 8px; }
.code-box .field-hint { margin-top: 0; }
.field-err { font-size: 13px; color: var(--loss); margin-top: 6px; }
.field-err:empty { display: none; }
.auth-field input[aria-invalid="true"] { border-color: var(--loss); box-shadow: 0 0 0 3px color-mix(in oklab, var(--loss) 22%, transparent); }
.auth-field input:disabled { opacity: 0.75; }
.field-hint .link-btn { font-size: 12px; }
