/* Colours, type and motion follow the 10X Trader brand book (Oct 2026). */
:root {
  --navy: #154359;
  --accent: #0068a2;
  --deep: #014d7e;
  --sky: #4bbdf0;
  --frost: #f0f5f7;
  --white: #ffffff;
  --line: #d7e2e7;
  --navy-2: #3f6274;
  --navy-3: #557080;
  --risk: #b42318;

  --field: linear-gradient(150deg, #0a74ae, #154359);

  --display: "TT Firs Neue", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius: 10px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 400 1rem/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}

.shell {
  display: grid;
  grid-template-columns: minmax(340px, 5fr) 7fr;
  min-height: 100dvh;
}

/* Brand side */
.brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--field);
  color: var(--white);
}
.wordmark {
  width: 104px;
  height: auto;
  filter: brightness(0) invert(1);
}
.brand h1 {
  margin: 0 0 1rem;
  max-width: 11ch;
  font: 500 clamp(2.5rem, 4.6vw, 4rem)/1.02 var(--display);
  letter-spacing: -0.03em;
}
.brand-copy p {
  margin: 0;
  max-width: 32ch;
  font-size: 1.0625rem;
  font-weight: 300;
  color: #e3f0f6;
}
.motto {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #dff1fa;
}

/* Form side */
.panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
}
form { display: flex; flex-direction: column; }

form { animation: arrive 500ms var(--ease-out); }
@keyframes arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.panel h2 {
  margin: 0;
  font: 500 clamp(1.625rem, 3vw, 2.125rem)/1.1 var(--display);
  letter-spacing: -0.03em;
}
.hint {
  margin: 0.625rem 0 0;
  color: var(--navy-2);
}

.captcha {
  display: flex;
  align-items: center;
  min-height: 65px;
  margin-top: 1.5rem;
}
.captcha-preview {
  padding: 0.75rem 1rem;
  border: 1px dashed var(--navy-3);
  border-radius: var(--radius);
  background: var(--frost);
  color: var(--navy-2);
  font-size: 0.875rem;
}
.facts {
  display: grid;
  gap: 0.625rem;
  margin: 1.5rem 0 0;
  padding: 1rem 1.125rem;
  list-style: none;
  background: var(--frost);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--navy-2);
}
.facts strong { color: var(--navy); font-weight: 600; }

.alert {
  margin: 0 0 2rem;
  padding: 0.875rem 1rem;
  background: var(--frost);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9375rem;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--white);
  font: 600 0.8125rem/1.2 var(--body);
  letter-spacing: 0.14em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.button:hover { background: var(--deep); border-color: var(--deep); }
.button:active { transform: scale(0.98); }
.button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.button:disabled {
  background: var(--line);
  border-color: var(--line);
  color: var(--navy-3);
  cursor: not-allowed;
  transform: none;
}

.legal {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--navy-3);
}

/* Welcome page */
.next-steps {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: next;
}
.next-steps li {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  counter-increment: next;
}
.next-steps li::before {
  content: counter(next);
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--frost);
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.75rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.next-steps strong { font-weight: 600; }
.panel-welcome .button { align-self: flex-start; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 100dvh; }
  .brand { gap: 1.5rem; padding: 1.5rem; }
  .brand h1 { max-width: none; margin-bottom: 0.5rem; font-size: clamp(1.875rem, 8vw, 2.5rem); }
  .brand-copy p { max-width: none; font-size: 0.9375rem; }
  .motto { display: none; }
  .panel { justify-content: flex-start; margin-inline: auto; padding: 1.75rem 1.5rem 2rem; }
  .actions .button { flex: 1; }
  .panel-welcome .button { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  form { animation: none; }
  .button { transition: none; }
}
