/* /waitlist/ and /login/ (boards 2-09, 2-10, 2-13, 2-22 to 2-34). Tokens and shared classes come from sk.css. */
:root, .light { --onblue: #FFFFFF; }
.dark { --onblue: #0E1319; }

h1 { line-height: 1.02; }
h1:focus { outline: none; }
[hidden] { display: none !important; }
.sub { margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: var(--slate); }
.lab { display: block; margin: 0 0 6px; padding: 0; font-size: 14px; font-weight: 600; }
.help { display: block; margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--slate); }
.small { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--slate); }
.small a { display: inline-block; padding: 14px 0; margin: -14px 0; }
.small a, .alt a { color: var(--ink); } .small a:hover, .alt a:hover { color: var(--ochre); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
fieldset { margin: 26px 0 0; padding: 0; border: 0; min-width: 0; }
.qin:focus-visible, .code:focus-visible { outline-offset: 1px; }

/* two columns on the waitlist (heading and steps | form), one narrow column on login */
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px var(--gutter-phone) 56px; animation: rise .42s var(--ease) both; }
.auth-grid h1 { font-size: 40px; }
.col { max-width: 460px; margin: 0 auto; padding: 20px var(--gutter-phone) 56px; animation: rise .42s var(--ease) both; }
.col h1 { font-size: 30px; line-height: 1.05; }
.col .sub { font-size: 15px; margin: 8px 0 24px; }
@media (min-width: 900px) {
  .auth-grid { grid-template-columns: minmax(0, 460px) minmax(0, 560px); gap: clamp(48px, 8.4vw, 120px); justify-content: center; padding: 72px var(--gutter-desk) 96px; }
  .auth-grid h1 { font-size: 60px; }
  .side { margin-top: 8px; }
  .col { padding-top: 40px; padding-bottom: 96px; }
  .col h1 { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) { .auth-grid, .col { animation: none; } }

/* the sign-up route: three stops on a vertical rail (hidden on a phone, where the form comes first) */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: none; }
@media (min-width: 900px) { .steps { display: block; } }
.steps li { position: relative; display: flex; gap: 16px; min-height: 64px; }
.steps .rail { left: 6px; top: 22px; bottom: -6px; }
.steps li:last-child .rail { display: none; }
.steps svg { position: relative; flex: 0 0 auto; }
.steps circle { fill: var(--paper); stroke: var(--ink); }
.steps li.done circle { fill: var(--ink); }
.steps li.cur circle { fill: var(--ochre); }
.steps .st { padding-top: 3px; }
.steps b { display: block; font-size: 16px; color: var(--slate); }
.steps .cur b, .steps .done b { color: var(--ink); }
.steps .st > span { display: block; font-size: 14px; color: var(--slate); }

/* chips (citizenship) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips .rchip { padding: 0 14px; font-size: 15px; }
[aria-disabled=true] { opacity: .45; cursor: default; }

/* option rows (countries to work in) */
.opts { margin-top: 8px; border-top: 1px solid var(--rule); }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 56px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--ink); font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.opt:hover { background: var(--soft); }
.opt .lab-in { display: flex; align-items: center; gap: 14px; }
.opt .st-word { flex: none; font-size: 13px; color: var(--slate); text-align: right; }
.box { flex: none; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; }
.box svg { opacity: 0; } .box.on { background: var(--ink); } .box.on svg { opacity: 1; } .box.dashed { border-style: dashed; }

/* search box with a list of suggestions */
.combo { margin-top: 10px; }
.combo ul { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.combo li { display: flex; align-items: center; min-height: var(--tap); padding: 0 14px; cursor: pointer; border-bottom: 1px solid var(--rule); }
.combo li:last-child { border-bottom: 0; }
.combo li[aria-selected=true] { background: var(--soft); box-shadow: inset 4px 0 0 var(--ochre); }
.combo li.nomatch { color: var(--slate); cursor: default; }

/* the consent boxes: real checkboxes, round, blue tick (the board's choice); the whole row is the label */
.consents { margin-top: 26px; }
.consent { display: flex; align-items: flex-start; gap: 12px; min-height: var(--tap); padding: 6px 0; }
/* the real checkbox is a 44px invisible hit area on top of the drawn 18px circle (label::before) */
.consent input { appearance: none; -webkit-appearance: none; flex: none; width: var(--tap); height: var(--tap); margin: -11px -13px -33px -13px; opacity: 0; cursor: pointer; }
.consent label { position: relative; flex: 1; font-size: 14px; line-height: 1.4; cursor: pointer; padding: 2px 0; }
.consent label::before { content: ""; position: absolute; left: -30px; top: 2px; width: 18px; height: 18px; box-sizing: border-box; border: 1.5px solid var(--ink); border-radius: 50%; transition: background-color .12s, border-color .12s; }
.consent label::after { content: ""; position: absolute; left: -25px; top: 4px; width: 4px; height: 8px; border: solid var(--onblue); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.consent input:checked + label::before { background: var(--blue); border-color: var(--blue); }
.consent input:checked + label::after { opacity: 1; }
.consent input:focus-visible + label::before { outline: 2px solid var(--ochre); outline-offset: 2px; }

/* buttons, status, links */
form .cta { margin-top: 22px; }
@media (max-width: 899px) { form .cta { width: 100%; } }
.lab + .help { margin-top: -2px; margin-bottom: 4px; }
.status { margin: 12px 0 0; padding: 8px 0 8px 12px; border-left: 3px solid var(--ochre); font-size: 15px; font-weight: 600; }
.status:empty { margin: 0; padding: 0; border: 0; }
.links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 8px; }
.lk { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lk:hover { color: var(--ochre); }
.alt { margin: 22px 0 0; font-size: 14px; color: var(--slate); } .alt a { font-weight: 600; display: inline-flex; align-items: center; min-height: var(--tap); }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.row .cta, .row .ghost { margin: 0; }

/* the 6 digit boxes */
.digits { display: flex; gap: 10px; }
.code { flex: 0 1 52px; min-width: 0; height: 60px; border: 1px solid var(--fade); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; font-size: 26px; font-weight: 700; text-align: center; padding: 0; }
@media (max-width: 420px) { .digits { gap: 6px; } }

/* "How the email address is used": the stored notes, closed until asked for */
.happens { margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--slate); }
.happens summary { display: flex; align-items: center; min-height: var(--tap); font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.happens p { margin: 0 0 8px; }

/* joined and logged-in states */
.facts { margin: 0; border-top: 1.5px solid var(--ink); }
.facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 15px; color: var(--slate); } .facts dd { margin: 0; font-size: 16px; font-weight: 600; text-align: right; }
.ok { margin: 18px 0 0; font-size: 17px; }
.col .ok { margin-top: 0; }

/* Log in with Google / Apple */
.social { display: grid; gap: 10px; margin: 0 0 4px; }
.social-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; }
.social-btn:hover { background: var(--soft); color: var(--ink); }
.social-btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; border-style: dashed; }
.social .help { margin: 0; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; font-size: 14px; color: var(--slate); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* waitlist top and form order (Edwin, 19 Oct 2026): two benefit lines, the country chips first, citizenship behind a fold, mail buttons on the code step */
.sub .bl { display: block; }
.sub .bl + .bl { margin-top: 6px; }
#wl-want { margin-top: 0; }
.emailrow { margin-top: 22px; }
.rchip.two { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; min-height: 52px; padding: 6px 14px; text-align: left; line-height: 1.25; }
.rchip.two .sw2 { font-size: 12px; font-weight: 400; color: var(--slate); }
.rchip.two[aria-pressed=true] .sw2 { color: inherit; opacity: .85; }
.addmore { margin-top: 8px; }
.addmore summary { display: flex; align-items: center; min-height: var(--tap); font-size: 14px; font-weight: 600; }
.addmore > fieldset { margin-top: 0; }
.mailrow .ghost { flex: 1 1 0; justify-content: center; text-align: center; }
