/* Shared by signup.html and login.html. Tokens match landing.html. */
:root {
    --ink: #0e1117;
    --vellum: #eef1f4;
    --steel: #5b6573;
    --hairline: #cdd3da;
    --cyan: #19c3e6;
    --violet: #8e5cf7;
    --ok: #0f8a5f;
    --err: #c0362c;
    --flow-x: linear-gradient(90deg, var(--cyan), var(--violet));
    --display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', sans-serif;
    --body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
    --gutter: clamp(18px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--vellum);
    color: var(--ink);
    font: 400 16px/1.55 var(--body);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.top { padding-inline: var(--gutter); }
.top .inner { max-width: 1080px; margin: 0 auto; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.45rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.brand svg { width: 34px; height: 22px; }
.top nav a { font-size: 0.95rem; color: #2b313a; text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.page { flex: 1; padding: clamp(24px, 5vw, 64px) var(--gutter) clamp(40px, 6vw, 80px); }
.layout { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.layout.single { max-width: 460px; grid-template-columns: 1fr; }
@media (max-width: 880px) { .layout { grid-template-columns: 1fr; } }

.eyebrow { font: 500 0.76rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); margin: 0 0 14px; }
h1 { font: 800 clamp(2.4rem, 5vw, 3.4rem)/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.005em; margin: 0; }
.sub { color: #2b313a; margin: 14px 0 0; max-width: 34em; }

.card {
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 16px;
    padding: clamp(22px, 3vw, 32px);
    margin-top: 26px;
    position: relative;
    overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--flow-x); }

.field { margin-bottom: 18px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 500 0.76rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); margin-bottom: 7px; }
.field input {
    width: 100%;
    font: 400 1rem/1.3 var(--body);
    color: var(--ink);
    background: var(--vellum);
    border: 1.5px solid var(--hairline);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.15s, background 0.15s;
}
.field input:hover { border-color: #b4bcc6; }
.field input:focus { outline: none; border-color: var(--violet); background: #fff; }
.field select, .field textarea {
    width: 100%;
    font: 400 1rem/1.4 var(--body);
    color: var(--ink);
    background: var(--vellum);
    border: 1.5px solid var(--hairline);
    border-radius: 10px;
    padding: 12px 14px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.optional { text-transform: none; letter-spacing: 0; color: #8a93a1; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
fieldset.field legend { font: 500 0.76rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; justify-content: flex-start; white-space: nowrap; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--hairline); border-radius: 999px; background: var(--vellum); font: 400 0.95rem/1.2 var(--body); color: var(--ink); text-transform: none; letter-spacing: 0; margin: 0; cursor: pointer; }
.chips input { accent-color: var(--violet); margin: 0; }
.chips label:has(input:checked) { border-color: var(--ink); background: #fff; }
.chips label:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done h2 { font: 700 1.8rem/1.05 var(--display); margin: 0 0 10px; }
.done p { margin: 0 0 10px; color: #2b313a; }
.hint { font-size: 0.85rem; color: var(--steel); margin-top: 6px; }
.address { font: 400 0.85rem/1.4 var(--mono); color: var(--ink); margin-top: 8px; padding: 8px 10px; background: var(--vellum); border-radius: 8px; overflow-wrap: anywhere; }
.address b { font-weight: 500; }
.linkish { background: none; border: 0; padding: 0; font: 500 0.76rem/1.3 var(--mono); letter-spacing: 0.04em; text-transform: none; color: var(--steel); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--ink); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%;
    font: 600 1rem/1 var(--body);
    padding: 15px 22px;
    border-radius: 999px;
    border: 0;
    background: var(--ink);
    color: #fff;
    box-shadow: inset 0 -2px 0 0 var(--violet);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 -3px 0 0 var(--cyan), 0 8px 24px -10px rgba(14,17,23,0.5); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; width: auto; padding: 12px 18px; }
.btn-ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }

.msg { min-height: 24px; margin-top: 14px; font: 400 0.88rem/1.4 var(--mono); color: var(--steel); }
.msg:empty { min-height: 0; margin-top: 0; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }

.after { margin-top: 18px; font-size: 0.95rem; color: var(--steel); }
.after a { color: var(--ink); }

/* side panel (signup) */
.next { border-top: 2px solid var(--ink); padding-top: 18px; margin-top: 8px; }
.next h2 { font: 700 1.6rem/1 var(--display); margin: 0 0 16px; }
.next ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.next li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--hairline); }
.next li::before { content: counter(step); font: 800 1.9rem/1 var(--display); background: var(--flow-x); -webkit-background-clip: text; background-clip: text; color: transparent; }
.next li b { display: block; font-weight: 600; margin-bottom: 2px; }
.next li span { color: #2b313a; font-size: 0.95rem; }
.next .fine { font: 400 0.8rem/1.4 var(--mono); color: var(--steel); margin-top: 14px; }

/* crew box (login) */
.crew { margin-top: 18px; border: 1px dashed #b4bcc6; border-radius: 14px; padding: 18px 20px; }
.crew h2 { font: 600 1rem/1.3 var(--body); margin: 0 0 4px; }
.crew p { margin: 0 0 12px; color: #2b313a; font-size: 0.95rem; }
.crew form { display: flex; gap: 8px; flex-wrap: wrap; }
.crew input { flex: 1 1 180px; min-width: 0; font: 400 0.95rem/1.3 var(--mono); color: var(--ink); background: var(--vellum); border: 1.5px solid var(--hairline); border-radius: 10px; padding: 10px 12px; }
.crew input:focus { outline: none; border-color: var(--violet); background: #fff; }

footer { padding: 22px var(--gutter); border-top: 1px solid var(--hairline); font-size: 0.88rem; color: var(--steel); }
footer .inner { max-width: 1080px; margin: 0 auto; display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .btn, .field input { transition: none; } }
