/* EZPZ Trading onboarding shell (signup, verify, agreement, login, reset, 2FA, setup).
   Built on the home / pricing design system: landing/landing.css is loaded first
   (base.html) and every colour, radius, font and easing here comes from its --lp-*
   tokens. The --ob-* names below are kept as aliases because page templates
   (personalize/setup.html) and older rules use them. The aside's Greeks Heatmap is
   the home hero's panel (landing/live.css + live.js), sized for the aside below.
   Dark only. Class names are a contract with the templates, onboarding.js and the
   tests: restyle, never rename. */

/* ---------- tokens ---------- */
:root {
  --ob-bg: var(--lp-bg);
  --ob-bg-2: var(--lp-bg-2);
  --ob-surface: var(--lp-surface);
  --ob-surface-2: var(--lp-surface-2);
  --ob-surface-3: var(--lp-surface-3);
  --ob-border: var(--lp-border);
  --ob-border-strong: var(--lp-border-strong);
  --ob-text: var(--lp-text);
  --ob-muted: var(--lp-muted);
  --ob-faint: var(--lp-faint);            /* decoration, icons and placeholders */
  --ob-primary: var(--lp-primary);
  --ob-primary-2: var(--lp-primary-2);
  --ob-primary-soft: color-mix(in srgb, var(--lp-primary) 14%, transparent);
  --ob-accent: var(--lp-accent);
  --ob-accent-2: color-mix(in srgb, var(--lp-primary) 45%, var(--lp-accent));
  --ob-title-grad: var(--lp-title-grad);
  --ob-green: var(--lp-green);
  --ob-green-soft: color-mix(in srgb, var(--lp-green) 12%, transparent);
  --ob-red: var(--lp-red);
  --ob-red-soft: color-mix(in srgb, var(--lp-red) 12%, transparent);
  --ob-amber: var(--lp-amber);
  --ob-radius-sm: var(--lp-r-sm);         /* 10 */
  --ob-radius: var(--lp-r);               /* 14 */
  --ob-radius-lg: var(--lp-r-lg);         /* 20 */
  --ob-radius-pill: var(--lp-r-pill);
  --ob-font: var(--lp-font);
  --ob-font-title: var(--lp-font-title);
  --ob-ease: var(--lp-ease);
  --ob-dur: var(--lp-dur);

  /* Text tints */
  --ob-text-soft: color-mix(in srgb, var(--lp-text) 50%, var(--lp-muted));   /* long-form text */
  --ob-error-text: color-mix(in srgb, var(--lp-red) 45%, var(--lp-text));
  /* Fields: an opaque fill (autofill paints the same colour) and a border at 3.3:1
     against it (WCAG 1.4.11). Focus adds the primary border and a soft ring; the
     transparent outline is what Windows High Contrast shows instead of the ring. */
  --ob-field: color-mix(in srgb, var(--lp-primary) 6%, var(--lp-bg));
  --ob-field-border: color-mix(in srgb, var(--lp-faint) 80%, var(--lp-bg));
  --ob-field-border-hover: color-mix(in srgb, var(--lp-accent) 70%, var(--lp-bg));
  --ob-ring: 0 0 0 4px color-mix(in srgb, var(--lp-primary) 30%, transparent);
  --ob-ring-red: 0 0 0 4px color-mix(in srgb, var(--lp-red) 22%, transparent);
  /* The signature pad is paper: dark ink on a light card. */
  --ob-paper: #f7f5ff;
  --ob-paper-line: #c4bcdf;
  --ob-paper-hint: #5f5785;               /* 6.1:1 on the paper */
  --ob-paper-ink: #3b3363;
}

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

html, body { margin: 0; min-height: 100%; }
body.ob-body {
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--lp-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Zero specificity, so every class (buttons included: a.ob-btn) sets its own colour. */
:where(.ob-body) a { color: var(--lp-accent); text-decoration: none; text-underline-offset: 3px; }
:where(.ob-body) a:where(:hover) { color: var(--lp-text); text-decoration: underline; }
:where(.ob-body) :focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 2px; }

/* ---------- layout ---------- */
.ob-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
}
@media (min-width: 1024px) {
  .ob-shell { grid-template-columns: minmax(440px, min(46%, 760px)) minmax(0, 1fr); }
}
/* No aside (a page emptied {% block aside_wrap %}): one full-width column, logo in the top bar.
   The :has() form covers a page that forgets the is-full class; it is a separate rule so
   a browser without :has() still applies the first one. */
.ob-shell.is-full { grid-template-columns: minmax(0, 1fr); }
.ob-shell.is-full .ob-top-logo { display: block; }
.ob-shell:not(:has(> .ob-aside)) { grid-template-columns: minmax(0, 1fr); }
.ob-shell:not(:has(> .ob-aside)) .ob-top-logo { display: block; }

/* ---------- aside (from 1024px) ---------- */
.ob-aside {
  display: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 40px 48px 32px;
  border-right: 1px solid var(--lp-border);
  /* As the home hero (.lp-hero-bg): two violet glows over a faint 56px chart grid. */
  background:
    radial-gradient(70% 45% at 8% 4%, color-mix(in srgb, var(--lp-primary) 24%, transparent), transparent 70%),
    radial-gradient(60% 45% at 96% 62%, color-mix(in srgb, var(--lp-primary-2) 20%, transparent), transparent 70%),
    var(--lp-bg-2);
}
.ob-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--lp-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--lp-border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .45;
  -webkit-mask-image: radial-gradient(70% 62% at 40% 28%, black, transparent 76%);
          mask-image: radial-gradient(70% 62% at 40% 28%, black, transparent 76%);
  pointer-events: none;
}
@media (min-width: 1024px) {
  /* Sticks while a long form scrolls; when the aside is the taller column it simply scrolls. */
  .ob-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 100vh;
    min-height: 100svh;
  }
}
.ob-aside-logo { align-self: flex-start; }
/* Same size as the site header's logo (theme3 .ez-logo img): the lockup's wordmark is only a quarter of its height. */
.ob-aside-logo img { height: clamp(3.25rem, 5vw, 5.5rem); width: auto; display: block; }
.ob-aside-body { width: 100%; max-width: 600px; }

.ob-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--lp-border-strong);
  border-radius: var(--lp-r-pill);
  background: var(--lp-surface-3);
  color: var(--lp-accent);
  font-size: 12px; font-weight: 600; line-height: 1.6;
  letter-spacing: .08em; text-transform: uppercase;
}
/* Static, as the home hero's dot: nothing on these pages pulses. */
.ob-live-dot { flex: none; width: 8px; height: 8px; border-radius: var(--lp-r-pill); background: var(--lp-primary); }

.ob-aside h2 {
  margin: 16px 0 12px;
  font-family: var(--lp-font-title);
  font-size: clamp(28px, 2.5vw, 38px); line-height: 1.12; letter-spacing: -.02em; font-weight: 700;
  text-wrap: balance;
  background: var(--lp-title-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ob-aside h2 .ob-grad {
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ob-aside-lead { max-width: 54ch; margin: 0 0 24px; color: var(--lp-muted); font-size: 16px; line-height: 1.55; text-wrap: pretty; }

.ob-bullets { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ob-bullets li { display: flex; gap: 12px; align-items: center; color: var(--lp-muted); font-size: 15px; line-height: 1.45; }
.ob-bullets strong { color: var(--lp-text); font-weight: 600; }
.ob-bullet-ico {
  flex: 0 0 32px; height: 32px; border-radius: var(--lp-r-sm);
  display: grid; place-items: center;
  background: var(--lp-surface-3); border: 1px solid var(--lp-border); color: var(--lp-accent);
}
.ob-bullet-ico svg { width: 16px; height: 16px; }
.ob-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--lp-muted); font-size: 13px; }
.ob-trust span { display: inline-flex; align-items: center; gap: 6px; }
.ob-trust svg { width: 14px; height: 14px; color: var(--lp-accent); }

/* Greeks Heatmap (onboarding/_heatmap.html: the home hero panel, alone). On the home page
   the panel's height comes from its row; here it stands alone, so the grid gets its own. */
.ob-aside .ob-hm { max-width: none; margin: 0; }
.ob-aside .ob-hm .lp-live-panel {
  padding: 16px;
  border-radius: var(--lp-r-lg);
  box-shadow: var(--lp-shadow), inset 0 1px 0 color-mix(in srgb, var(--lp-text) 4%, transparent);
}
.ob-aside .ob-hm .lp-live-hmbox { flex: none; height: clamp(200px, 28vh, 300px); }
.ob-aside .ob-hm .lp-live-hm-read { height: 1.5em; }   /* one line here (the home row keeps two) */
/* The tabs only work once live.js has drawn the grid (it marks the stage .is-live);
   until then, and without JS, the poster shows GEX and the tabs keep their space. */
.ob-hm .lp-live-panel--hm:not(:has(.lp-live-stage.is-live)) .lp-live-hm-tabs { visibility: hidden; }

/* Short screens: drop the bullets under the heatmap, then the lead, so the aside fits. */
@media (min-width: 1024px) and (max-height: 900px) {
  .ob-aside .ob-hm ~ .ob-bullets { display: none; }
}
@media (min-width: 1024px) and (max-height: 760px) {
  .ob-aside { padding-block: 28px 24px; gap: 20px; }
  .ob-aside:has(.ob-hm) .ob-aside-lead { display: none; }
  .ob-aside h2 { font-size: 28px; }
}

/* ---------- main column ---------- */
.ob-main { display: flex; flex-direction: column; min-width: 0; padding: 20px 16px 24px; }
@media (min-width: 640px) { .ob-main { padding: 28px 40px 32px; } }
.ob-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.ob-top-logo img { height: clamp(3.25rem, 5vw, 5.5rem); width: auto; display: block; }
@media (min-width: 1024px) { .ob-top-logo { display: none; } }
.ob-top-link { margin-left: auto; font-size: 14px; color: var(--lp-muted); text-align: right; }
.ob-top-link a { font-weight: 600; margin-left: 6px; }

.ob-center {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: 440px;
  margin: 0 auto;
  padding: 32px 0 40px;
}
.ob-center.is-wide { max-width: 720px; }
.ob-foot { text-align: center; color: var(--lp-muted); font-size: 13px; }
.ob-foot a { color: var(--lp-muted); }
.ob-foot a:hover { color: var(--lp-text); }

/* ---------- stepper (same look as the pricing page's sign-up bar, pricing.css) ---------- */
.ob-steps { list-style: none; display: flex; gap: 6px; margin: 0 0 32px; padding: 0; }
.ob-steps li { flex: 1 1 0; min-width: 0; margin: 0; padding: 0; color: var(--lp-faint); font-size: 12px; font-weight: 600; line-height: 1.4; }
.ob-steps li::before {
  content: ""; display: block; height: 4px; margin-bottom: 8px;
  border-radius: var(--lp-r-pill); background: var(--lp-surface-3);
  transition: background-color .4s var(--lp-ease);
}
.ob-steps li > span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ob-steps li.is-done { color: var(--lp-muted); }
.ob-steps li.is-done::before { background: linear-gradient(90deg, var(--lp-primary-2), var(--lp-primary)); }
.ob-steps li.is-active { color: var(--lp-text); }
.ob-steps li.is-active::before {
  background: linear-gradient(90deg, var(--lp-primary), var(--lp-accent));
  box-shadow: 0 0 12px color-mix(in srgb, var(--lp-primary) 50%, transparent);
}
.ob-steps .ob-step-n { color: var(--lp-faint); font-weight: 500; font-variant-numeric: tabular-nums; }
.ob-steps li.is-active .ob-step-n { color: var(--lp-accent); }
/* Phones: five labels don't fit. Numbers for every step, the label for the current one
   (its segment grows to hold it); the other labels stay for screen readers. */
@media (max-width: 479.98px) {
  .ob-steps li.is-active { flex-grow: 2.6; }
  .ob-steps li:not(.is-active) .ob-step-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}

/* ---------- card + headings ---------- */
.ob-card { animation: ob-rise .5s var(--lp-ease); }
.ob-card-head { margin-bottom: 28px; }
.ob-card-head h1 {
  margin: 0 0 8px;
  font-family: var(--lp-font-title);
  font-size: clamp(26px, 6vw, 30px); line-height: 1.2; letter-spacing: -.02em; font-weight: 700;
  text-wrap: balance;
  background: var(--lp-title-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ob-card-head p { margin: 0; color: var(--lp-muted); font-size: 16px; line-height: 1.55; }
.ob-card-head .ob-hero-ico {
  width: 48px; height: 48px; margin-bottom: 20px;
  display: grid; place-items: center;
  border-radius: var(--lp-r);
  color: var(--lp-accent);
  background: var(--lp-surface-3);
  border: 1px solid var(--lp-border-strong);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--lp-text) 6%, transparent);
}
.ob-card-head .ob-hero-ico svg { width: 22px; height: 22px; }
.ob-panel {
  padding: 16px 18px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-r);
}

/* ---------- alerts ---------- */
.ob-alerts { display: grid; gap: 10px; margin-bottom: 20px; }
.ob-alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid; border-radius: var(--lp-r);
  font-size: 14px; line-height: 1.5;
  animation: ob-rise .35s var(--lp-ease);
}
.ob-alert svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
/* 32px target, pulled into the alert's padding so the alert keeps its height. */
.ob-alert-x {
  flex: none; display: inline-grid; place-items: center;
  width: 32px; height: 32px; margin: -6px -8px -6px auto; padding: 0;
  border: 0; border-radius: var(--lp-r-sm);
  background: none; color: inherit; opacity: .8; cursor: pointer;
  font: inherit; font-size: 20px; line-height: 1;
}
.ob-alert-x:hover { opacity: 1; background: color-mix(in srgb, currentColor 14%, transparent); }
.ob-alert--error, .ob-alert--warning {
  color: color-mix(in srgb, var(--lp-red) 25%, var(--lp-text));
  background: var(--ob-red-soft); border-color: color-mix(in srgb, var(--lp-red) 32%, transparent);
}
.ob-alert--success {
  color: color-mix(in srgb, var(--lp-green) 30%, var(--lp-text));
  background: var(--ob-green-soft); border-color: color-mix(in srgb, var(--lp-green) 32%, transparent);
}
.ob-alert--info {
  color: color-mix(in srgb, var(--lp-accent) 40%, var(--lp-text));
  background: var(--ob-primary-soft); border-color: color-mix(in srgb, var(--lp-primary) 32%, transparent);
}

/* ---------- fields ---------- */
.ob-form { display: grid; gap: 18px; }
.ob-row { display: grid; gap: 18px; }
@media (min-width: 520px) { .ob-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.ob-field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ob-label, .ob-field legend {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 0;
  font-size: 14px; font-weight: 600; color: var(--lp-text);
}
.ob-field legend { margin-bottom: 8px; }   /* a legend sits outside the fieldset's grid gap */
.ob-label a { font-weight: 500; font-size: 13px; }
.ob-opt { font-weight: 500; color: var(--lp-muted); font-size: 13px; }
.ob-input-wrap { position: relative; }
.ob-input-wrap > .ob-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--lp-faint); pointer-events: none;
  transition: color var(--lp-dur) var(--lp-ease);
}
.ob-input, .ob-textarea {
  width: 100%; height: 48px; margin: 0; padding: 0 14px;
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--lp-text);   /* 16px: no iOS zoom on focus */
  background: var(--ob-field);
  border: 1px solid var(--ob-field-border); border-radius: var(--lp-r);
  transition: border-color var(--lp-dur) var(--lp-ease), box-shadow var(--lp-dur) var(--lp-ease), background-color var(--lp-dur) var(--lp-ease);
  -webkit-appearance: none; appearance: none;
}
.ob-textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.ob-input-wrap > .ob-ico ~ .ob-input { padding-left: 44px; }
.ob-input-wrap.has-action .ob-input { padding-right: 52px; }
.ob-input::placeholder, .ob-textarea::placeholder { color: var(--lp-faint); opacity: 1; }
.ob-input:hover, .ob-textarea:hover { border-color: var(--ob-field-border-hover); }
.ob-input:focus, .ob-textarea:focus {
  outline: 2px solid transparent; outline-offset: 2px;
  border-color: var(--lp-primary); box-shadow: var(--ob-ring);
}
.ob-input-wrap:focus-within > .ob-ico { color: var(--lp-accent); }
/* Autofill: the theme's field fill (an inset shadow covers the browser's), with the focus
   and error rings kept on top of it. */
.ob-input:-webkit-autofill,
.ob-input:-webkit-autofill:hover {
  -webkit-text-fill-color: var(--lp-text); caret-color: var(--lp-text);
  -webkit-box-shadow: inset 0 0 0 1000px var(--ob-field);
          box-shadow: inset 0 0 0 1000px var(--ob-field);
}
.ob-input:-webkit-autofill:focus {
  -webkit-box-shadow: inset 0 0 0 1000px var(--ob-field), var(--ob-ring);
          box-shadow: inset 0 0 0 1000px var(--ob-field), var(--ob-ring);
}
.ob-field.is-invalid .ob-input, .ob-field.is-invalid .ob-textarea { border-color: var(--lp-red); box-shadow: var(--ob-ring-red); }
.ob-field.is-invalid .ob-input:-webkit-autofill {
  -webkit-box-shadow: inset 0 0 0 1000px var(--ob-field), var(--ob-ring-red);
          box-shadow: inset 0 0 0 1000px var(--ob-field), var(--ob-ring-red);
}
.ob-field-error { color: var(--ob-error-text); font-size: 13px; line-height: 1.45; display: flex; gap: 6px; align-items: flex-start; }
.ob-field-error:empty { display: none; }
.ob-field-error ul { list-style: none; margin: 0; padding: 0; }
.ob-hint { color: var(--lp-muted); font-size: 13px; line-height: 1.5; margin: 0; }

.ob-icon-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: var(--lp-r-sm); background: transparent; color: var(--lp-muted); cursor: pointer;
  transition: color var(--lp-dur) var(--lp-ease), background-color var(--lp-dur) var(--lp-ease);
}
.ob-icon-btn:hover { color: var(--lp-text); background: var(--lp-surface-3); }
.ob-icon-btn svg { width: 18px; height: 18px; }

/* password strength */
.ob-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 2px; }
.ob-strength i { height: 4px; border-radius: var(--lp-r-pill); background: var(--lp-surface-3); transition: background-color .3s; }
.ob-strength[data-score="1"] i:nth-child(-n+1) { background: var(--lp-red); }
.ob-strength[data-score="2"] i:nth-child(-n+2) { background: var(--lp-amber); }
.ob-strength[data-score="3"] i:nth-child(-n+3) { background: color-mix(in srgb, var(--lp-green) 60%, var(--lp-amber)); }
.ob-strength[data-score="4"] i { background: var(--lp-green); }
.ob-strength-text { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.45; color: var(--lp-muted); }
.ob-strength-text b { font-weight: 600; color: var(--lp-text); white-space: nowrap; }

/* pills (radio chips, as .lp-chip) */
.ob-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-pill { position: relative; cursor: pointer; }
.ob-pill input { position: absolute; opacity: 0; pointer-events: none; }
.ob-pill span {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--ob-field-border); border-radius: var(--lp-r-pill);
  background: var(--ob-field);
  color: var(--lp-muted); font-size: 14px; font-weight: 500; line-height: 1.2;
  transition: color var(--lp-dur) var(--lp-ease), background-color var(--lp-dur) var(--lp-ease),
              border-color var(--lp-dur) var(--lp-ease), box-shadow var(--lp-dur) var(--lp-ease);
}
.ob-pill:hover span { color: var(--lp-text); border-color: var(--lp-accent); }
.ob-pill input:focus-visible + span { outline: 2px solid var(--lp-accent); outline-offset: 2px; }
.ob-pill input:checked + span {
  color: var(--lp-text);
  background: color-mix(in srgb, var(--lp-primary) 26%, transparent);
  border-color: var(--lp-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-primary) 16%, transparent);
}
.ob-pill input:checked + span::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  background: var(--lp-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* checkbox: 3.3:1 border against its fill */
.ob-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--lp-muted); line-height: 1.5; }
.ob-check input {
  flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  border: 1.5px solid var(--ob-field-border); border-radius: 6px;   /* control-sized corner */
  background: var(--ob-field);
  display: grid; place-items: center;
  transition: background-color .15s, border-color .15s;
}
.ob-check input::after {
  content: ""; width: 12px; height: 12px; transform: scale(0); transition: transform .15s var(--lp-ease);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3L12.5 5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ob-check input:checked { background: var(--lp-primary-2); border-color: var(--lp-primary); }
.ob-check input:checked::after { transform: scale(1); }
.ob-check input:hover { border-color: var(--lp-accent); }
.ob-check input:focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 2px; }
.ob-field.is-invalid .ob-check input { border-color: var(--lp-red); }

/* captcha */
/* Google renders the checkbox in a fixed 304x78 iframe with its own square,
   light-grey border that CSS can't reach. Clip 2px off every edge (padding
   only; the checkbox and logo sit well inside) and frame it like our inputs. */
.ob-captcha { min-height: 74px; }
.ob-captcha .g-recaptcha {
  width: 300px; height: 74px; overflow: hidden;
  border: 1px solid var(--ob-field-border); border-radius: var(--lp-r-sm);
  background: #222; /* the dark widget's own fill, so the clip edge is seamless */
  transition: border-color var(--lp-dur) var(--lp-ease), box-shadow var(--lp-dur) var(--lp-ease);
}
.ob-captcha .g-recaptcha:hover { border-color: var(--ob-field-border-hover); }
.ob-captcha .g-recaptcha:focus-within { border-color: var(--lp-primary); box-shadow: var(--ob-ring); }
.ob-captcha .g-recaptcha > div { margin: -2px 0 0 -2px; }
.ob-field.is-invalid .ob-captcha .g-recaptcha,
.ob-captcha.is-invalid .g-recaptcha { border-color: var(--lp-red); box-shadow: var(--ob-ring-red); }
@media (max-width: 360px) { .ob-captcha { transform: scale(.9); transform-origin: 0 0; } }

/* ---------- buttons (as .lp-btn--primary / --ghost) ---------- */
.ob-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 8px 24px; margin: 0;
  font-family: var(--lp-font); font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center;
  border: 1px solid transparent; border-radius: var(--lp-r);
  cursor: pointer;
  transition: transform var(--lp-dur) var(--lp-ease), box-shadow var(--lp-dur) var(--lp-ease),
              background-color var(--lp-dur) var(--lp-ease), border-color var(--lp-dur) var(--lp-ease), opacity .2s;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}
.ob-btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--lp-dur) var(--lp-ease); }
/* Label #f3eeff on the fill: 4.65:1 at the light end (primary-2), 6.5:1 at the dark end. */
.ob-btn--primary,
.ob-btn--primary:hover,
.ob-btn--primary:focus,
.ob-btn--primary:visited { color: var(--lp-text); }
.ob-btn--primary {
  background: var(--lp-primary-2);
  background: linear-gradient(135deg, var(--lp-primary-2), color-mix(in srgb, var(--lp-primary-2) 78%, var(--lp-bg)));
  border-color: color-mix(in srgb, var(--lp-primary) 70%, transparent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--lp-primary) 32%, transparent),
              inset 0 1px 0 color-mix(in srgb, var(--lp-text) 20%, transparent);
}
.ob-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--lp-primary) 42%, transparent),
              inset 0 1px 0 color-mix(in srgb, var(--lp-text) 20%, transparent);
}
.ob-btn--primary:hover svg { transform: translateX(3px); }
.ob-btn--primary:active { transform: none; }
.ob-btn--ghost,
.ob-btn--ghost:hover,
.ob-btn--ghost:focus,
.ob-btn--ghost:visited { color: var(--lp-text); }
.ob-btn--ghost { background: var(--lp-surface-2); border-color: var(--lp-border-strong); }
.ob-btn--ghost:hover { background: var(--lp-surface-3); border-color: var(--lp-accent); }
.ob-btn--link {
  width: auto; min-height: 24px; padding: 2px 4px;
  background: none; border: 0; box-shadow: none;
  color: var(--lp-accent); font-size: 14px; font-weight: 600;
}
.ob-btn--link:hover { color: var(--lp-text); text-decoration: underline !important; }
.ob-btn--link:disabled { color: var(--lp-muted); text-decoration: none !important; }
.ob-btn:disabled, .ob-btn.is-loading { cursor: default; opacity: .7; transform: none !important; }
.ob-btn.is-loading .ob-btn-label, .ob-btn.is-loading > svg { visibility: hidden; }
.ob-btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid color-mix(in srgb, var(--lp-text) 35%, transparent); border-top-color: var(--lp-text);
  animation: ob-spin .7s linear infinite;
}
.ob-btn-row { display: flex; gap: 12px; }
.ob-btn-row .ob-btn--ghost { flex: 0 0 auto; width: auto; }

.ob-alt { text-align: center; color: var(--lp-muted); font-size: 14px; margin: 24px 0 0; }
.ob-alt a { font-weight: 600; }
.ob-inline { display: flex; justify-content: space-between; align-items: center; gap: 4px 12px; flex-wrap: wrap; }

/* ---------- OTP boxes ---------- */
.ob-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (min-width: 420px) { .ob-otp { gap: 10px; } }
.ob-otp input {
  width: 100%; aspect-ratio: 1 / 1.15; max-height: 64px; min-width: 0; margin: 0; padding: 0; text-align: center;
  font: inherit; font-size: 24px; font-weight: 700; color: var(--lp-text); font-variant-numeric: tabular-nums;
  background: var(--ob-field); border: 1px solid var(--ob-field-border); border-radius: var(--lp-r-sm);
  caret-color: var(--lp-primary);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ob-otp input:hover { border-color: var(--ob-field-border-hover); }
.ob-otp input:focus {
  outline: 2px solid transparent; outline-offset: 2px;
  border-color: var(--lp-primary); box-shadow: var(--ob-ring); transform: translateY(-1px);
}
.ob-otp input.is-filled { border-color: color-mix(in srgb, var(--lp-primary) 70%, transparent); background: color-mix(in srgb, var(--lp-primary) 10%, var(--lp-bg)); }
.ob-otp.is-error input { border-color: var(--lp-red); animation: ob-shake .4s; }
.ob-otp.is-success input { border-color: var(--lp-green); background: var(--ob-green-soft); }
.ob-email-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 2px 10px; border-radius: var(--lp-r-pill);
  background: var(--lp-surface-3); border: 1px solid var(--lp-border-strong);
  color: var(--lp-text); font-weight: 600; font-size: 14px; word-break: break-all;
}

/* success burst */
.ob-success { text-align: center; padding: 24px 0; animation: ob-rise .45s var(--lp-ease); }
.ob-success-ring {
  width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; color: var(--lp-text);
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--lp-green) 75%, var(--lp-text)), color-mix(in srgb, var(--lp-green) 80%, var(--lp-bg)));
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--lp-green) 12%, transparent), 0 0 0 22px color-mix(in srgb, var(--lp-green) 5%, transparent);
  animation: ob-pop .5s var(--lp-ease);
}
.ob-success-ring svg { width: 34px; height: 34px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: ob-draw .45s ease .25s forwards; }
.ob-success h2 {
  margin: 0 0 8px;
  font-family: var(--lp-font-title); font-size: 24px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700;
  background: var(--lp-title-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ob-success p { color: var(--lp-muted); margin: 0; }

/* ---------- agreement wizard ---------- */
.ob-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 4px; margin-bottom: 20px;
  border-radius: var(--lp-r); background: var(--lp-surface-2); border: 1px solid var(--lp-border);
}
.ob-tab {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 6px;
  border: 0; border-radius: var(--lp-r-sm); background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--lp-faint);
}
.ob-tab i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--lp-surface-3); }
.ob-tab.is-active { color: var(--lp-text); background: var(--lp-surface-3); box-shadow: inset 0 0 0 1px var(--lp-border-strong); }
.ob-tab.is-active i { background: var(--lp-primary-2); color: var(--lp-text); }
.ob-tab.is-done { color: var(--lp-muted); }
.ob-tab.is-done i { background: var(--lp-green); color: var(--lp-bg); }
.ob-tab:disabled { cursor: not-allowed; }
.ob-pane { animation: ob-rise .35s var(--lp-ease); }

.ob-doc-wrap { position: relative; border-radius: var(--lp-r); border: 1px solid var(--lp-border); background: var(--lp-surface); overflow: hidden; }
.ob-doc-progress { position: absolute; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--lp-primary), var(--ob-accent-2)); transition: width .1s linear; z-index: 1; }
.ob-doc {
  max-height: min(52vh, 460px); overflow-y: auto; padding: 20px 22px;
  border-radius: inherit;
  font-size: 14px; line-height: 1.7; color: var(--ob-text-soft); overscroll-behavior: contain;
}
/* The wrapper clips overflow, so the scroll box's focus ring is drawn inside it. */
.ob-doc:focus-visible { outline: 2px solid var(--lp-accent); outline-offset: -2px; }
.ob-doc h3 { font-size: 15px; color: var(--lp-text); margin: 18px 0 8px; line-height: 1.5; }
.ob-doc p { margin: 0 0 12px; }
.ob-doc strong { color: var(--lp-text); }
.ob-doc::-webkit-scrollbar { width: 8px; }
.ob-doc::-webkit-scrollbar-thumb { background: var(--lp-border-strong); border-radius: var(--lp-r-pill); }
.ob-doc-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(transparent, var(--lp-surface)); pointer-events: none; transition: opacity .3s; }
.ob-doc-wrap.is-end .ob-doc-fade { opacity: 0; }

.ob-group-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 6px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--lp-muted); }
.ob-group-title small { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--lp-muted); }
.ob-group-note { color: var(--lp-muted); font-size: 13px; line-height: 1.55; margin: -4px 0 12px; }
.ob-stmts { display: grid; gap: 10px; margin-bottom: 20px; }
.ob-stmt {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; cursor: pointer;
  border-radius: var(--lp-r); background: var(--lp-surface-2); border: 1px solid var(--lp-border);
  font-size: 14px; line-height: 1.6; color: var(--ob-text-soft);
  transition: border-color var(--lp-dur) var(--lp-ease), background-color var(--lp-dur) var(--lp-ease);
}
.ob-stmt:hover { border-color: var(--lp-border-strong); }
.ob-stmt.is-checked { background: color-mix(in srgb, var(--lp-primary) 8%, transparent); border-color: color-mix(in srgb, var(--lp-primary) 45%, transparent); }
.ob-stmt.is-missing { border-color: var(--lp-red); animation: ob-shake .4s; }
.ob-stmt .ob-check { flex: 0 0 auto; margin-top: 2px; }
.ob-stmt b { color: var(--lp-text); font-weight: 600; margin-right: 4px; }
.ob-counter { font-variant-numeric: tabular-nums; color: var(--lp-muted); font-size: 13px; font-weight: 600; }
.ob-counter.is-complete { color: var(--lp-green); }

.ob-sig-tabs { display: inline-flex; gap: 4px; padding: 3px; border-radius: var(--lp-r-sm); background: var(--lp-surface-2); border: 1px solid var(--lp-border); }
.ob-sig-tabs button { min-height: 28px; border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--lp-muted); padding: 4px 12px; border-radius: 7px; }
.ob-sig-tabs button.is-active { background: var(--lp-surface-3); color: var(--lp-text); }
.ob-sig {
  position: relative; height: 170px; border-radius: var(--lp-r); overflow: hidden;
  background: var(--ob-paper); border: 1px solid var(--ob-field-border); touch-action: none;
}
.ob-sig canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.ob-sig-line { position: absolute; left: 24px; right: 24px; bottom: 40px; border-bottom: 1.5px dashed var(--ob-paper-line); pointer-events: none; }
.ob-sig-hint { position: absolute; left: 24px; bottom: 14px; font-size: 12px; color: var(--ob-paper-hint); pointer-events: none; }
.ob-sig-clear {
  position: absolute; right: 8px; top: 8px; z-index: 1;
  min-height: 32px; padding: 4px 12px;
  border: 0; border-radius: var(--lp-r-sm);
  background: color-mix(in srgb, var(--ob-paper-ink) 10%, transparent); color: var(--ob-paper-ink);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.ob-sig-clear:hover { background: color-mix(in srgb, var(--ob-paper-ink) 18%, transparent); }
.ob-sig-clear:focus-visible { outline-color: var(--lp-primary-2); }
.ob-field.is-invalid .ob-sig { border-color: var(--lp-red); box-shadow: var(--ob-ring-red); }

/* ---------- modal: scrolls on short screens; auto margins keep the card reachable ---------- */
.ob-modal {
  position: fixed; inset: 0; z-index: 50;
  display: flex; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px;
  background: color-mix(in srgb, var(--lp-bg) 80%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: ob-fade .2s ease;
}
.ob-modal-card {
  width: 100%; max-width: 420px; margin: auto;
  padding: 28px; text-align: center;
  border-radius: var(--lp-r-lg); background: var(--lp-surface); border: 1px solid var(--lp-border-strong);
  box-shadow: var(--lp-shadow);
  animation: ob-rise .35s var(--lp-ease);
}
.ob-modal-card h2 { margin: 0 0 8px; font-family: var(--lp-font-title); font-size: 22px; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
.ob-modal-card p { color: var(--lp-muted); margin: 0 0 20px; }

/* ---------- motion ---------- */
/* Page-level spacing that used to live in inline styles. */
.ob-pane > .ob-hint { margin: 10px 2px 18px; }
.ob-stmts + .ob-field-error { margin: -8px 0 14px; }
.ob-sig-typed { margin-bottom: 8px; }
.ob-modal-card .ob-card-head { margin-bottom: 0; }
.ob-modal-card .ob-hero-ico { margin: 0 auto 16px; }
.ob-inline.is-center { justify-content: center; }
.ob-inline.is-center .ob-hint { font-size: 14px; }
.ob-input--code { font-size: 20px; letter-spacing: .3em; text-align: center; font-weight: 600; }

@keyframes ob-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ob-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ob-spin { to { transform: rotate(360deg); } }
@keyframes ob-draw { to { stroke-dashoffset: 0; } }
@keyframes ob-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes ob-shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-5px); } 40%,80% { transform: translateX(5px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ob-btn--primary:hover { transform: none; }
  .ob-btn--primary:hover svg { transform: none; }
  .ob-otp input:focus { transform: none; }
}
