
/* ============================================================================
   SkyQon — create account ("Trust Slate v2")

   Self-contained (does NOT load the older skyqon-ui.css) so it tracks the
   sign-in page exactly. The one colour rule: BLUE = system / verified (links,
   input focus, feature checks, requirement met). GOLD = identity + THE action
   (the "Create account" button) and nothing else. Green = a satisfied /
   confirmed state (trust ticks, strong password).
   ============================================================================ */

/* ── Tokens: light "slate" is the base; dark is a full mirror (verbatim from
      the sign-in page so the two surfaces never drift) ─────────────────────── */
:root {
  --font:  Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --paper:      #F4F7FB;
  --ink:        #0E1B2E;
  --ink-soft:   #46566B;
  --muted:      #8695A8;
  --card:       #FFFFFF;
  --line:       #E3E9F1;
  --line-soft:  #EEF2F8;

  --blue:        #0E6FBF;
  --blue-strong: #0B588F;
  --blue-tint:   #E8F1FB;
  --blue-line:   #CFE2F5;

  --gold:        #B98A22;
  --gold-strong: #98700F;
  --cta:         linear-gradient(180deg, #D0A63E, #B98A22);
  --cta-on:      #241905;

  --ok-bg:#E7F4EC;  --ok-tx:#1B7A49;  --ok-ln:#CBE7D6;
  --warn-bg:#FBF0DC; --warn-tx:#8D5A11; --warn-ln:#EFD8AC;
  --crit-bg:#FCEAEA; --crit-tx:#B23636; --crit-ln:#F2CCCC;

  --shadow:    0 18px 44px -32px rgba(14,27,46,.34);
  --shadow-lg: 0 34px 72px -38px rgba(14,27,46,.36);

  --glow:      rgba(14,111,191,.09);
  --top-grad:  linear-gradient(180deg, #EDF3FA 0%, transparent 30%);
  --dot:       rgba(14,111,191,.14);
}

[data-theme="dark"] {
  --paper:      #0A1524;
  --ink:        #E9EFF7;
  --ink-soft:   #AEBCCF;
  --muted:      #7688A0;
  --card:       #10203A;
  --line:       rgba(255,255,255,.09);
  --line-soft:  rgba(255,255,255,.055);

  --blue:        #4C9BE8;
  --blue-strong: #7FB8F2;
  --blue-tint:   rgba(76,155,232,.13);
  --blue-line:   rgba(76,155,232,.32);

  --gold:        #D0A63E;
  --gold-strong: #E7C063;
  --cta:         linear-gradient(180deg, #D8B24E, #BE9530);
  --cta-on:      #241905;

  --ok-bg:rgba(52,180,120,.14);  --ok-tx:#63D6A0;  --ok-ln:rgba(52,180,120,.32);
  --warn-bg:rgba(214,158,60,.14); --warn-tx:#E9B85C; --warn-ln:rgba(214,158,60,.34);
  --crit-bg:rgba(224,90,90,.15);  --crit-tx:#F0888A; --crit-ln:rgba(224,90,90,.36);

  --shadow:    0 22px 50px -30px rgba(0,0,0,.62);
  --shadow-lg: 0 40px 80px -34px rgba(0,0,0,.66);

  --glow:      rgba(76,155,232,.14);
  --top-grad:  linear-gradient(180deg, rgba(76,155,232,.06) 0%, transparent 32%);
  --dot:       rgba(127,184,242,.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; }
.page::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 460px at 92% -6%, var(--glow), transparent 60%),
    var(--top-grad);
}
.page::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 520px;
  z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  background-size: 22px 22px; opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
          mask-image: linear-gradient(180deg, #000, transparent);
}
.page > * { position: relative; z-index: 1; }

/* ── Header (mirrors the sign-in page) ───────────────────────────────────── */
.hdr {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; max-width: 1260px; width: 100%;
  margin: 0 auto; padding: 20px 44px 0;
}
.hdr-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.hdr-logo { height: 30px; display: block; flex: none; filter: drop-shadow(0 2px 8px rgba(245,197,24,.16)); }
.brand-fallback { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15.5px; color: var(--ink); }
.brand-fallback .tri { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid var(--gold); }
.brand-fallback .q { color: var(--gold); }
.hdr-divider { width: 1px; height: 20px; background: var(--line); }
.hdr-label { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.hdr-pill {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-strong); background: var(--blue-tint); border: 1px solid var(--blue-line);
  padding: 4px 9px; border-radius: 100px;
}
.hdr-right { display: inline-flex; align-items: center; gap: 14px; }
.theme-toggle {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--line-soft); border: 1px solid var(--line); border-radius: 10px;
}
.theme-toggle button {
  width: 30px; height: 26px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  color: var(--muted); border-radius: 7px; transition: color .15s, background .15s;
}
.theme-toggle button:hover { color: var(--ink); }
.theme-toggle button.active { background: var(--blue-tint); color: var(--blue-strong); }
.theme-toggle button svg { width: 15px; height: 15px; display: block; }
.hdr-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-soft); text-decoration: none;
  padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.hdr-back:hover { color: var(--ink); background: var(--line-soft); }

/* ── Centred card shell ──────────────────────────────────────────────────── */
.shell {
  flex: 1; display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 24px 64px;
}
.card {
  width: 100%; max-width: 500px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 38px 36px;
}

/* Eyebrow → blue mono (§5) */
.card-eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-strong); margin-bottom: 12px;
}
.card-title { font-size: 25px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); margin-bottom: 8px; }
.card-lead { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 22px; }

/* Selected-plan banner — blue (system), not gold */
.plan-banner {
  display: none;
  background: var(--blue-tint); border: 1px solid var(--blue-line);
  border-left: 3px solid var(--blue);
  border-radius: 11px; padding: 12px 14px; margin-bottom: 20px;
}
.plan-banner .pb-tier {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--blue-strong); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px;
}
.plan-banner .pb-body { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }

/* ── SSO / passkey row (§3) ──────────────────────────────────────────────── */
#sso-row { display: none; margin-bottom: 4px; }
.btn-passkey {
  width: 100%; height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 11px;
  font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.btn-passkey svg { width: 16px; height: 16px; }
.btn-passkey:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-strong); }
.btn-passkey:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn-passkey:disabled { opacity: .6; cursor: default; }
.sso-note { margin-top: 9px; font-size: 12px; color: var(--muted); line-height: 1.5; text-align: center; }

/* "or sign up with email" divider */
.or-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 18px; color: var(--muted); font-size: 12px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── Fields ──────────────────────────────────────────────────────────────── */
.field { margin-bottom: 15px; }
.field > label {
  display: flex; align-items: baseline; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px;
}
.field .opt { font-weight: 400; font-size: 12px; color: var(--muted); }
.field input {
  width: 100%; height: 46px; padding: 0 14px;
  background: #F8FAFC; border: 1px solid var(--line); border-radius: 11px; color: var(--ink);
  font-size: 14px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
[data-theme="dark"] .field input { background: rgba(255,255,255,.03); }
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); background: var(--card); }
.field.is-error input { border-color: var(--crit-tx); box-shadow: 0 0 0 4px var(--crit-bg); }
.field-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.field-err { display: none; margin-top: 6px; font-size: 12px; color: var(--crit-tx); line-height: 1.5; }
.field.is-error .field-err { display: block; }

/* password input + show/hide */
.input-wrap { position: relative; }
.input-wrap input { padding-right: 68px; }
.pw-toggle {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  height: 32px; padding: 0 10px;
  background: transparent; border: none; border-radius: 7px;
  color: var(--blue-strong); font-size: 12.5px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.pw-toggle:hover { background: var(--blue-tint); }
.pw-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

/* live "at least 12 characters" requirement — outline circle → green check */
.pw-req { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 12.5px; color: var(--muted); }
.pw-req .rc { width: 16px; height: 16px; flex: none; color: var(--muted); }
.pw-req .rc .ring { opacity: 1; }
.pw-req .rc .tick { opacity: 0; }
.pw-req.met { color: var(--ok-tx); }
.pw-req.met .rc { color: var(--ok-tx); }
.pw-req.met .rc .ring { opacity: 0; }
.pw-req.met .rc .tick { opacity: 1; }

/* 4-segment strength meter */
.pw-meter { margin-top: 10px; }
.pw-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.pw-bar { height: 5px; border-radius: 3px; background: var(--line); transition: background .2s; }
[data-theme="dark"] .pw-bar { background: rgba(255,255,255,.09); }
.pw-meter[data-score="1"] .pw-bar:nth-child(-n+1),
.pw-meter[data-score="2"] .pw-bar:nth-child(-n+2),
.pw-meter[data-score="3"] .pw-bar:nth-child(-n+3),
.pw-meter[data-score="4"] .pw-bar:nth-child(-n+4) { background: var(--mtr); }
.pw-meter[data-score="1"] { --mtr: var(--crit-tx); }
.pw-meter[data-score="2"] { --mtr: var(--warn-tx); }
.pw-meter[data-score="3"] { --mtr: var(--blue); }
.pw-meter[data-score="4"] { --mtr: var(--ok-tx); }
.pw-meter-label { margin-top: 6px; font-size: 11.5px; color: var(--muted); min-height: 1em; }

/* guided-onboarding checkbox */
.checkbox-field {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 4px 0 4px; font-size: 13px; color: var(--ink-soft); line-height: 1.5; cursor: pointer;
}
.checkbox-field input { width: 16px; height: 16px; margin-top: 2px; flex: none; accent-color: var(--blue); }

/* consent + reassurance around the CTA (§4) */
.consent { margin: 16px 0 4px; font-size: 12px; color: var(--ink-soft); line-height: 1.55; }
.consent a { color: var(--blue-strong); text-decoration: none; font-weight: 500; }
.consent a:hover { text-decoration: underline; }

/* Primary CTA — gold gradient (identity + the action; the ONLY gold on the page) */
.btn-cta {
  width: 100%; height: 50px; margin-top: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--cta); color: var(--cta-on);
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; font-family: inherit; letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 12px 26px -14px rgba(185,138,34,.7);
  transition: transform .1s, box-shadow .15s, filter .15s;
}
.btn-cta svg { width: 17px; height: 17px; }
.btn-cta:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 16px 30px -14px rgba(185,138,34,.8); }
.btn-cta:active:not(:disabled) { transform: translateY(0); }
.btn-cta:focus-visible { outline: 2px solid var(--gold-strong); outline-offset: 2px; }
.btn-cta:disabled { opacity: .6; cursor: default; box-shadow: none; filter: saturate(.7); }

.reassure {
  margin-top: 12px; text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  color: var(--muted);
}
.reassure a { color: var(--blue-strong); text-decoration: none; }
.reassure a:hover { text-decoration: underline; }
.reassure .nowrap { white-space: nowrap; }

/* Trust chips — green ticks, not gold (§5) */
.trust-row {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 16px;
}
.trust-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); }
.trust-item svg { width: 14px; height: 14px; color: var(--ok-tx); flex: none; }

/* Value list — blue check tiles, not gold (§5) */
.value-list { margin-top: 18px; display: grid; gap: 11px; }
.value-list li { display: flex; gap: 11px; align-items: flex-start; list-style: none; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.value-list li .vi {
  flex: none; width: 18px; height: 18px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 5px;
  background: var(--blue-tint); border: 1px solid var(--blue-line); color: var(--blue-strong);
}
.value-list li .vi svg { width: 11px; height: 11px; }

.auth-foot { margin-top: 22px; text-align: center; font-size: 13px; color: var(--ink-soft); }
.auth-foot a { color: var(--gold-strong); text-decoration: none; font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

/* Alerts / success (ids preserved for the signup script) */
.auth-error-v2 {
  display: none;
  background: var(--crit-bg); border: 1px solid var(--crit-ln); border-left: 3px solid var(--crit-tx);
  color: var(--crit-tx); font-size: 13px; line-height: 1.5; padding: 11px 14px; border-radius: 10px; margin-bottom: 18px;
}
.success-v2 {
  display: none;
  background: var(--ok-bg); border: 1px solid var(--ok-ln); border-left: 3px solid var(--ok-tx);
  color: var(--ink); border-radius: 12px; padding: 18px 18px;
}
.success-v2 .welcome-tag {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ok-tx); margin-bottom: 8px;
}
.success-v2 strong { display: block; font-size: 16px; margin-bottom: 6px; }
.success-v2 p { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.success-v2 a { color: var(--blue-strong); text-decoration: none; font-weight: 600; }

.foot {
  border-top: 1px solid var(--line);
  max-width: 1260px; width: 100%; margin: 0 auto; padding: 20px 44px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em;
}
.foot-status { display: inline-flex; align-items: center; gap: 7px; }
.foot-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok-tx); }

@media (prefers-reduced-motion: no-preference) {
  .foot-status .dot { animation: dot-pulse 2s infinite; }
  @keyframes dot-pulse {
    0% { box-shadow: 0 0 0 0 rgba(27,122,73,.5); }
    70% { box-shadow: 0 0 0 7px rgba(27,122,73,0); }
    100% { box-shadow: 0 0 0 0 rgba(27,122,73,0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media (max-width: 560px) {
  .hdr { padding: 18px 22px 0; flex-wrap: wrap; }
  .hdr-divider, .hdr-label { display: none; }
  .card { padding: 30px 22px; }
  .foot { padding: 18px 22px; }
}

/* Inline-style migration (toward dropping style-src 'unsafe-inline'). Toggled
   elements (#success-billing, #resend-note, #f-phone) use the native `hidden`
   attribute; the rest use these classes. */
.lg-success-billing { font-size: 12.5px; margin-top: 10px; color: var(--ink-soft); }
.lg-resend-note { font-size: 12px; margin-top: 8px; color: var(--ink-soft); }
.lg-fs12-mt10 { font-size: 12px; margin-top: 10px; }
.lg-plainlink { color: inherit; text-decoration: none; }
