/* JAIPTEAM brand system (brand/guide/tokens.json), dark theme. Self-hosted fonts: the CSP allows 'self' only. */
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/InstrumentSans-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400 600; font-style: normal; font-display: swap; src: url("fonts/Inter-var.woff2") format("woff2"); }

:root {
  --bg: #0A0A1E;              /* bg */
  --surface: #14142E;         /* surface-raised */
  --input: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.32);  /* 3:1 control border, per the guide's note on border-strong */
  --text-1: #EFF4FB;
  --text-2: #BCC8DC;
  --text-3: #93A2BC;
  --cyan: #00C9FF;            /* brand-cyan: the family accent; link on dark */
  --on-cyan: #0A0A1E;         /* 10:1 on cyan */
  --focus: #33D6FF;           /* focus-ring */
  --danger: #F87171;          /* readable red on surface-raised (5.6:1) */
  --font-display: "Instrument Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100%;
}

.top {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 20px 24px;
}
.lockup { display: block; width: 190px; height: auto; }

main {
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;          /* radius-md */
  padding: 24px 20px;
}
.card[hidden] { display: none; }

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  text-wrap: balance;
}
.lede { color: var(--text-2); margin: 0 0 18px; font-size: 15px; line-height: 24px; }

label { display: block; font-weight: 500; font-size: 14px; color: var(--text-1); margin: 16px 0 6px; }
.req { color: var(--cyan); }
.opt { font-weight: 400; color: var(--text-3); }

input, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;               /* keeps iOS from zooming on focus */
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;           /* radius-sm */
  background: var(--input);
  color: var(--text-1);
  -webkit-appearance: none;
  appearance: none;
}
textarea { resize: vertical; min-height: 64px; }
input:focus-visible, textarea:focus-visible, .btn:focus-visible, .who-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
input[aria-invalid="true"] { border-color: var(--danger); }

.err { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 5px; }
.form-err { text-align: center; margin-top: 12px; font-size: 14px; }

.btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 15px 18px;
  border: 0;
  border-radius: 9999px;         /* radius-pill, as on jaipteam.com */
  background: var(--cyan);
  color: var(--on-cyan);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 160ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.6; cursor: progress; }

.fine { color: var(--text-3); font-size: 13px; line-height: 20px; margin: 16px 0 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--on-cyan);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.who { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.who-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.who-role { color: var(--text-2); font-size: 14px; margin: 2px 0 10px; }
.who-link {
  display: block;
  padding: 10px 0;
  color: var(--cyan);
  font-weight: 500;
  text-decoration: none;
  font-size: 16px;
  word-break: break-all;
}
.who-link[hidden] { display: none; }

.foot {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 8px 20px calc(28px + env(safe-area-inset-bottom));
  color: var(--text-3);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}
