/* AIM team onboarding (/onboarding). Matches the original aimonboarding.com form pixel for pixel:
   same Inter cut, card, spacing and breakpoints. Standalone: nothing here touches the main site. */

/* Inter (SIL Open Font License), one variable file per subset, weights 400 to 800. */
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/inter-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/inter-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/inter-greek-ext.woff2) format("woff2"); unicode-range: U+1F00-1FFF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/inter-greek.woff2) format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/inter-vietnamese.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Metric-matched Arial while Inter loads, so nothing jumps when it swaps in. */
@font-face { font-family: "Inter Fallback"; src: local(Arial); ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%; size-adjust: 107.12%; }

:root {
  --text: #25272d;
  --muted: #6e7076;
  --border: #dedee2;
  --danger: #ad2431;
  --ok: #236b46;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  font-family: Inter, "Inter Fallback", system-ui, sans-serif;
  font-style: normal;
  color: var(--text);
  background: #111215;
}
button, input, select { font: inherit; }

.onboarding-layout {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 40px 24px;
  background: linear-gradient(110deg, #090b0fc7, #090b0f7a), url(img/aim-architecture.webp) 50% / cover fixed;
}
.form-panel { width: 100%; max-width: 760px; }

.card {
  background: #f9f9f8;
  border: 1px solid #ffffff1c;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 32px 100px #0005;
}

.form-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 21px 36px;
  background: linear-gradient(115deg, #1c1e24, #111216);
  border-bottom: 2px solid #b9313b;
}
.brand-logo {
  width: 170px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
}
.form-brand span {
  color: #a8a9af;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .2em;
}

.card-body { padding: 32px 36px 36px; }
.form-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.04em;
}
.required-note { flex-shrink: 0; color: #85858b; font-size: 10px; }
.lead {
  max-width: 64ch;
  margin: 13px 0 27px;
  color: #73757b;
  font-size: 13px;
  line-height: 1.75;
}

.onboarding-form { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  color: #4c4e55;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .015em;
}
.field input, .field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: #292b31;
  background: #fff;
  border: 1px solid #dedee2;
  border-radius: 7px;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:hover, .field select:hover { border-color: #a8a9b0; }
.field input:focus, .field select:focus {
  border-color: #ba3a43;
  outline: none;
  box-shadow: 0 0 0 3px #ba3a4312;
}

.actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.submit-btn {
  min-height: 48px;
  color: #fff;
  background: #ba303b;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .025em;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.submit-btn::after { content: " →"; margin-left: 15px; }
.submit-btn:hover { background: #a12430; transform: translateY(-1px); }
.submit-btn:disabled { opacity: .55; cursor: wait; transform: none; }
button:focus-visible { outline: 2px solid #b9313b; outline-offset: 4px; }

.status { color: var(--muted); font-size: 12px; line-height: 1.6; }
.status:empty { display: none; }
.status.error { color: var(--danger); }
.status.success { color: var(--ok); }

[hidden] { display: none !important; }

/* The next steps, after a submission and on /book: the Tuesday call and the Discord. */
.done-panel { display: grid; gap: 14px; margin-top: 13px; }
.lead + .done-panel { margin-top: 0; }
.done-when {
  margin: 0;
  padding: 14px 16px;
  color: #236b46;
  background: #f1f8f4;
  border: 1px solid #cfe6d8;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 600;
}
.done-when p { margin: 0; }
.done-when p + p { margin-top: 8px; }
.done-text { margin: 0; color: #4c4e55; font-size: 14px; line-height: 1.7; }
.done-text a, .hint a { color: #ba303b; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.as-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.hint { margin: 0; color: #73757b; font-size: 12px; line-height: 1.6; }

/* Texting consent: optional and unchecked, so declining still submits (carrier rule). */
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; color: #73757b; font-size: 11px; line-height: 1.6; cursor: pointer; }
.consent input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #ba303b; cursor: pointer; }
.consent a { color: #4c4e55; text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: #ba303b; }

/* Turnstile slot: takes no space (so the layout matches the original) until Cloudflare asks for a
   click, then it opens above the button. */
.ts { position: absolute; width: 0; height: 0; overflow: hidden; }
.ts.open { position: static; width: auto; height: auto; overflow: visible; }

/* Spam trap: off screen, never seen or tabbed to by people. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
  .onboarding-layout { padding: 20px 14px; background-attachment: scroll; }
  .form-brand { gap: 12px; padding: 16px 22px; }
  .brand-logo { width: 140px; height: 56px; }
  .form-brand span { font-size: 8px; letter-spacing: .12em; }
  .card-body { padding: 26px 22px; }
  .form-topline { flex-direction: column; align-items: flex-start; gap: 10px; }
  h1 { font-size: 26px; }
  .lead { margin-bottom: 25px; font-size: 13px; }
  .onboarding-form { gap: 17px; }
  .row { grid-template-columns: 1fr; gap: 17px; }
  .field input, .field select { min-height: 48px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition: none !important; animation: none !important; }
}
