/* worldtradex.com: pre-launch sign-up page ("Negative" concept: black on white). */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-latin.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  --ink: #0A0D12;
  --body: #4B5563;
  --sub: #374151;
  --bg: #FFFFFF;
  --tile: #F3F4F8;
  --line: #D9DCE3;
  --rule: #E5E7EB;
  --off-bg: #EEF0F4;
  --error: #B42318;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); }
[hidden] { display: none !important; }
svg { display: block; }

.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.masthead { width: 100%; max-width: 1160px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 0; display: flex; justify-content: center; }
/* The logo file is the white brand logo; the filter renders it in X Black for this white page */
.logo { height: clamp(80px, 14vw, 160px); width: auto; max-width: 90vw; filter: brightness(0); }

.step { width: 100%; max-width: 1160px; margin: 0 auto; padding: clamp(24px, 6vw, 64px) var(--gutter) 48px; display: flex; flex-direction: column; flex-grow: 1; }
.step-choose { align-items: center; gap: 40px; }
.step-narrow { max-width: 480px; padding-left: 16px; padding-right: 16px; gap: 24px; }

.intro { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; max-width: 640px; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(36px, 6vw, 60px); }
.step-narrow h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; }
h1:focus { outline: none; }
.lead { margin: 0; font-size: 17px; line-height: 1.55; color: var(--body); }

/* Role cards */
.roles { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 16px; }
.role-card { all: unset; position: relative; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 18px; padding: 22px; min-height: 220px;
  border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); transition: border-color .15s, background-color .15s; }
.role-card:hover { border-color: #9AA1AE; }
.role-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.role-card[aria-pressed="true"] { border-color: var(--ink); background: var(--tile); }
.role-top { display: flex; align-items: center; justify-content: space-between; }
.role-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--tile); }
.role-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.role-card[aria-pressed="true"] .role-icon { background: var(--ink); }
.role-card[aria-pressed="true"] .role-icon svg { stroke: #FFFFFF; }
.role-check { display: none; position: absolute; top: 18px; right: 18px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); align-items: center; justify-content: center; }
.role-check svg { width: 14px; height: 14px; fill: none; stroke: #FFFFFF; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.role-card[aria-pressed="true"] .role-check { display: flex; }
.role-text { display: flex; flex-direction: column; gap: 8px; }
.role-heading { display: flex; flex-direction: column; gap: 2px; }
.role-name { font-family: var(--display); font-size: 22px; font-weight: 600; }
.role-sub { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--sub); }
.role-desc { font-size: 15px; line-height: 1.5; color: var(--body); }

/* Main buttons */
.cta { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 36px;
  width: 100%; max-width: 380px; border-radius: 999px; font-family: var(--display); font-size: 17px; font-weight: 600; background: var(--ink); color: #FFFFFF; }
.step-narrow .cta { max-width: none; }
.cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.cta:disabled { cursor: default; background: var(--off-bg); color: var(--body); }
.cta-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cta:disabled .cta-arrow { display: none; }
.cta[aria-busy="true"] { opacity: .7; cursor: progress; }

/* Form step */
.back { all: unset; cursor: pointer; align-self: flex-start; display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--body); }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.form-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.chip { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--ink); background: var(--tile); font-size: 14px; font-weight: 600; }
.chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
#signup { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.optional { font-weight: 400; color: var(--body); }
.field input { min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 400 16px var(--sans); }
.field input::placeholder { color: #6B7280; }
.field select { appearance: none; -webkit-appearance: none; min-height: 52px; padding: 0 44px 0 16px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); font: 400 16px var(--sans);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0D12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 18px 18px; }
.field select:invalid { color: #6B7280; }
.field input:focus, .field select:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FEF3F2; color: var(--error); font-size: 15px; line-height: 1.45; }
#signup .cta { margin-top: 8px; }

/* Done step */
.step-done { align-items: center; text-align: center; gap: 20px; padding-top: clamp(32px, 7vw, 72px); }
.done-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.done-mark svg { width: 34px; height: 34px; fill: none; stroke: #FFFFFF; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Footer */
.footer { border-top: 1px solid var(--rule); }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 28px var(--gutter) 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-copy { display: flex; flex-direction: column; gap: 4px; }
.footer-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--display); font-size: 17px; font-weight: 600; }
.pill { padding: 3px 10px; border-radius: 999px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: #FFFFFF; }
.footer-sub { font-size: 14px; color: var(--body); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px 0 14px; border-radius: 12px; background: #000000; color: #FFFFFF; }
.store svg { width: 24px; height: 24px; }
.store-apple { fill: #FFFFFF; width: 26px !important; height: 26px !important; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-small { font-size: 11px; color: #D1D5DB; }
.store-caps { text-transform: uppercase; letter-spacing: .04em; }
.store-big { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }

/* Phones: role cards center their icon and text, and drop the tall desktop height */
@media (max-width: 640px) {
  .role-card { align-items: center; text-align: center; min-height: 0; gap: 14px; }
  .role-top { justify-content: center; }
  .role-text { align-items: center; }
}

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