/* Sign-in, sign-up and the public partner pages.
   The site's type (Inter, with IBM Plex Mono for references) and its buttons (site.css .btn),
   cool white, navy ink, brand blue for actions, green only for a closed state.
   Scoped under .gx so the shared header and footer keep site.css.
   Motion is transform and opacity only. No pinned or sticky panels.
   A bar fill uses a 2px in-flow track; the painted part is a scaleX on that track. */

body[data-page="login"],
body[data-page="signup"],
body[data-page="partners"],
body[data-page="partner-signup"] { background: #F6F8FB; }

.gx {
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --ink: #0B1F3A;
  --ink-2: #1F2E48;
  --muted: #51607A;
  --faint: #5C6B84;
  --rule: #DCE3EE;
  --rule-2: #E9EEF5;
  --cta: #1D4ED8;
  --cta-hover: #1A43BC;
  --link: #1D4ED8;
  --ok: #0E9C76;
  --ok-ink: #065F46;
  --ok-bg: #E6F6F1;
  --due: #B45309;
  --due-bg: #FEF3E2;
  --late: #B42318;
  --flow: #1EA8C9;
  --flow-2: #5EE0CF;
  --navy: #0B1F3A;
  --navy-rule: #22385C;
  --navy-muted: #9DB0CC;
  --sans: var(--font-sans, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 6px;
  --fast: 120ms;
  --mid: 200ms;
  --slow: 320ms;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --max: 1280px;
  --gut: clamp(16px, 4vw, 40px);
  font: 400 16px/1.55 var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.gx * { box-sizing: border-box; }
.gx img, .gx svg { max-width: 100%; }
.gx h1, .gx h2, .gx h3, .gx h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; color: var(--ink); }
.gx p { margin: 0; text-wrap: pretty; }
.gx a { color: var(--link); }
.gx :focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }
.gx .mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.gx-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); min-width: 0; }
.gx-kicker { font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gx-kicker::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--ink); margin-right: 10px; vertical-align: middle; }
.gx-lede { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.gx-note { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* buttons — brand blue is the action, nothing else */
/* Buttons are the site's (site.css .btn: Inter 600, 12px corners, brand blue); only the large size is smaller here,
   and a link button keeps its white words over the page's link colour. */
.gx .btn-lg { height: 46px; padding: 0 18px; font-size: 15px; }
.gx a.btn-brand, .gx a.btn-brand:hover { color: #fff; }
.gx .btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--rule); }
.gx .btn-ghost:hover { border-color: #B9C5D8; color: var(--ink); }
.gx .btn .arr { display: inline-block; transition: transform var(--mid) var(--ease); }
.gx .btn:hover .arr { transform: translateX(3px); }
.gx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.gx-actions .btn { white-space: normal; text-align: center; justify-content: center; }

/* auth split: form is first in the DOM (tab order). Visual order puts the stage on the left. */
.gx-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) var(--gut) 72px;
  min-width: 0;
}
.gx-sheet { order: 2; min-width: 0; }
.gx-stage { order: 1; min-width: 0; display: grid; gap: 18px; align-content: start; }
.gx-intro { margin-bottom: 18px; }
.gx-intro h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.03em; margin-top: 12px; }
.gx-intro .gx-lede, .gx .auth-head p { margin-top: 10px; color: var(--ink-2); }
.gx .auth-head { margin-bottom: 18px; }
.gx .auth-head h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.08; letter-spacing: -.03em; margin-top: 10px; }
.gx .auth-head .badge { margin-bottom: 4px; }

.gx .form-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: none;
  padding: clamp(18px, 3vw, 32px);
}
.gx .form-section + .form-section { border-top-color: var(--rule-2); }
.gx .form-section-title { font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; }
.gx .form-section-title .num {
  width: auto; height: auto; padding: 0; border-radius: 0; background: none; color: var(--muted);
  font-family: var(--mono); font-weight: 500; font-size: 12px;
}
.gx .form-section-desc, .gx .field-hint, .gx .aside-sub { color: var(--muted); }
.gx .field > label { font-family: var(--sans); font-weight: 500; }
.gx .field input, .gx .field select, .gx .field textarea {
  font-family: var(--sans);
  border-color: var(--rule);
  border-radius: var(--r);
  background: #fff;
}
.gx .field input.mono, .gx input.mono { font-family: var(--mono); }
.gx .field input:focus, .gx .field select:focus, .gx .field textarea:focus {
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .18);
}
.gx .step-panel { display: none; }
.gx .step-panel.active { display: block; }
.gx .step-block { display: none; }
.gx .step-block.is-active { display: block; }
.gx .stepper li { font-family: var(--sans); font-weight: 500; }
.gx .stepper li .n { border-radius: 50%; font-family: var(--mono); }
.gx .stepper li.is-active .n { background: var(--navy); }
.gx .login-card h2, .gx .step-title { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; }
.gx .login-card .sub, .gx .step-sub { color: var(--muted); }
.gx .realm-note { color: var(--muted); border-top-color: var(--rule); }
.gx .link-btn { color: var(--cta); font-family: var(--sans); }
.gx .back-link { color: var(--muted); font-family: var(--sans); background: none; border: 0; cursor: pointer; }
.gx .back-link:hover { color: var(--ink); }
.gx .terms-gate { border-color: var(--rule); border-radius: var(--r); background: var(--bg); }
.gx .who-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gx .who-pick {
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: #fff;
  transition: border-color var(--fast);
}
.gx .who-pick:hover { border-color: #B9C5D8; }
.gx .who-pick:has(input:checked) { border-color: var(--cta); box-shadow: none; background: #F4F7FF; }
.gx .who-pick strong { color: var(--ink); font-weight: 600; }
.gx .who-pick em { color: var(--muted); }
.gx .aside-card, .gx .card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: none;
}
.gx .card:hover, .gx .aside-card:hover { transform: none; box-shadow: none; }
.gx .help-list li strong { color: var(--ink); }
.gx .help-list li span, .gx .req-list span { color: var(--muted); }
.gx .req-list .req-icon { border-radius: var(--r); background: var(--bg); color: var(--ink); }
.gx .success-mark { background: var(--ok-bg); color: var(--ok-ink); }
.gx .alert-banner { border-radius: var(--r); }
.gx .gx-auth:has(#stepPw:not(.active)) .gx-intro { display: none; }

/* compliance flow — in normal flow, bars are 2px tracks */
.gx-flow {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--rule); border-radius: 10px; background: #fff;
}
.gx-step {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 8px;
  padding: 14px 16px 12px;
  border-top: 1px solid var(--rule-2);
  min-width: 0;
}
.gx-step:first-child { border-top: 0; }
.gx-mark {
  width: 10px; height: 10px; margin-top: 5px; border-radius: 50%;
  background: var(--rule); position: relative;
}
.gx-mark i {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok);
  opacity: 1; transform: none;
}
html.js .gx-flow:not(.is-static) .gx-mark i { opacity: 0; transform: scale(.4); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
html.js .gx-flow:not(.is-static) .gx-step.is-on .gx-mark i { opacity: 1; transform: scale(1); }
.gx-step-k { display: block; font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gx-step strong { display: block; margin-top: 3px; font-weight: 600; font-size: 15px; color: var(--ink); }
.gx-step-d { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.gx-step.is-closed strong { color: var(--ok-ink); }
.gx-bar { grid-column: 2; height: 2px; background: var(--rule-2); position: relative; }
.gx-bar::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--flow); transform: scaleX(1); transform-origin: left;
}
html.js .gx-flow:not(.is-static) .gx-bar::after { transform: scaleX(0); transition: transform var(--slow) var(--ease); }
html.js .gx-flow:not(.is-static) .gx-step.is-on .gx-bar::after { transform: scaleX(1); }

.gx-record {
  border: 1px solid var(--rule); border-radius: 10px; background: #fff; overflow: visible;
}
.gx-record-h, .gx-record-f {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; flex-wrap: wrap;
}
.gx-record-h { border-bottom: 1px solid var(--rule-2); }
.gx-record-f { border-top: 1px solid var(--rule-2); font-size: 12.5px; color: var(--muted); }
.gx-record .ref { font: 500 15px/1.2 var(--mono); }
.gx-record .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.gx-kv { margin: 0; }
.gx-kv div { display: grid; grid-template-columns: minmax(88px, 34%) minmax(0, 1fr); gap: 10px; padding: 8px 16px; font-size: 13.5px; min-width: 0; }
.gx-kv dt { color: var(--muted); }
.gx-kv dd { margin: 0; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.gx-pill, .gx .pill {
  display: inline-flex; align-items: center; font: 500 11.5px/1 var(--mono);
  padding: 5px 8px; border-radius: 999px; background: #EAF1FF; color: #1D4ED8; white-space: nowrap;
}
.gx-pill.ok, .gx .pill.ok { background: var(--ok-bg); color: var(--ok-ink); }
.gx-pill.due, .gx .pill.due { background: var(--due-bg); color: var(--due); }
.gx-pill.late, .gx .pill.late { background: #FDECEA; color: var(--late); }
.gx-pill.neutral, .gx .pill.neutral { background: var(--bg); color: var(--muted); }

.gx-photo { margin: 0; min-width: 0; }
.gx-photo img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); border-radius: 2px; }
.gx-photo figcaption { margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

/* partner page */
.gx-hero { position: relative; padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.gx-gridbg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--rule-2) 1px, transparent 1px), linear-gradient(90deg, var(--rule-2) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.gx-hero .gx-wrap { position: relative; z-index: 1; }
.gx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}
.gx-hero h1 { margin-top: 14px; }
.gx-hero h1 .display { display: block; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.035em; }
.gx-crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.gx-crumbs a { color: var(--muted); }
.gx-meta { display: grid; gap: 8px; margin-top: 16px; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-2); }
.gx-meta li { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.gx-meta li::before { content: ""; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.gx-contact { margin-top: 18px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.gx-contact strong { color: var(--ink); font-weight: 600; }

.gx-map {
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #fff;
}
.gx-map .gx-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-top: 0; padding-bottom: 0; }
.gx-map span { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.gx-map a { display: inline-flex; padding: 12px 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.gx-map a:hover { color: var(--cta); }

.gx-sec { padding: clamp(56px, 8vw, 96px) 0; }
.gx-sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 48px; align-items: end; margin-bottom: 36px; }
.gx-sec-head h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -.03em; }
.gx-sec-head .gx-kicker { display: block; margin-bottom: 12px; }
.gx-sec-head p { color: var(--muted); font-size: 16.5px; }

.gx-rows { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.gx-rows .card {
  border-radius: 0; border: 0; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule);
  box-shadow: none; padding: 22px 22px 24px; background: transparent;
}
.gx-rows .card:nth-child(2n) { border-right: 0; }
.gx-rows.gx-stack { grid-template-columns: minmax(0, 1fr); }
.gx-rows.gx-stack .card { border-right: 0; }
.gx-rows .card h3 { font-size: 18px; }
.gx-rows .card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.gx-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; font-size: 13.5px; font-weight: 600; }

.gx-index { border-top: 1px solid var(--rule); }
.gx-index a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none;
}
.gx-index a:hover { color: var(--cta); }
.gx-index a strong { display: block; font-weight: 600; }
.gx-index a span { display: block; color: var(--muted); font-size: 14.5px; font-weight: 400; margin-top: 3px; }
.gx-index a .go { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.gx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.gx-checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.gx-checks li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; font-size: 15px; color: var(--ink-2); }
.gx-checks li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--ok); }

.gx-close { background: var(--navy); color: #E6EDF7; padding: clamp(48px, 7vw, 80px) 0; }
.gx-close h2 { color: #fff; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.03em; }
.gx-close p { margin-top: 12px; color: #B9C7DB; max-width: 58ch; }
.gx-close .gx-kicker { color: var(--navy-muted); }
.gx-close .gx-kicker::before { background: var(--flow-2); }
.gx-close .btn-ghost { background: transparent; color: #fff; border-color: var(--navy-rule); }
.gx-close .btn-ghost:hover { border-color: #fff; color: #fff; }

.gx #faq .accordion-item {
  margin: 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  box-shadow: none; background: transparent; overflow: hidden;
}
.gx #faq .accordion-trigger {
  font-family: var(--sans); font-weight: 600; font-size: 17px; padding: 18px 0; letter-spacing: -.01em;
}
.gx #faq .accordion-panel-inner { padding: 0 0 18px; color: var(--muted); }

.gx .reveal { opacity: 1; transform: none; }
html.js .gx .reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
html.js .gx .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .gx-auth { grid-template-columns: minmax(0, 1fr); }
  .gx-sheet { order: 1; }
  .gx-stage { order: 2; }
  .gx-hero-grid, .gx-sec-head, .gx-split, .gx-rows { grid-template-columns: minmax(0, 1fr); }
  .gx-rows .card { border-right: 0; }
}
@media (max-width: 768px) {
  .gx-index a { grid-template-columns: minmax(0, 1fr); }
  .gx-index a .go { margin-top: 4px; }
  .gx .stepper li .t { white-space: normal; }
  .gx .who-picks { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 390px) {
  .gx { font-size: 15.5px; }
  .gx-hero h1 .display { font-size: 32px; }
  .gx-actions .btn { width: 100%; }
  .gx .terms-gate { grid-template-columns: 32px minmax(0, 1fr); }
  .gx .terms-gate .btn { grid-column: 1 / -1; justify-self: start; }
  .gx-kv div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .gx *, .gx *::before, .gx *::after {
    animation: none !important;
    transition: none !important;
  }
  html.js .gx .reveal,
  html.js .gx-flow .gx-mark i { opacity: 1 !important; transform: none !important; }
  html.js .gx-flow .gx-bar::after { transform: scaleX(1) !important; }
}
