/* ============================================================
   LyteIQ — Platform pre-launch pages (GO HARD MONEY, DealAlign)
   Light FinTech system (v2). Extends site.css. Load after it.
   Class names are relied on by platform-forms.js / preview-viz.js.
   ============================================================ */

body.theme-ghm       { --accent: var(--ghm); --accent-50: var(--ghm-50); --accent-100: var(--ghm-100); --accent-ink: #fff; --accent-hover: #9A4607; }
body.theme-dealalign { --accent: var(--da);  --accent-50: var(--da-50);  --accent-100: var(--da-100);  --accent-ink: #fff; --accent-hover: #0B5B63; }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--mute); margin-bottom: 28px; }
.crumbs a { color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.crumbs a:hover { color: var(--blue); }
.crumbs svg { width: 14px; height: 14px; }
.crumbs .sep { color: var(--faint); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Hero ---------- */
.pv-hero { padding: clamp(44px, 6vw, 72px) 0 64px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.pv-hero-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,0.7fr); gap: 56px; align-items: start; }
.pv-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); padding: 6px 10px; border-radius: 6px; background: var(--accent-50); border: 1px solid var(--accent-100);
}
.theme-dealalign .pv-brand { text-transform: none; letter-spacing: .02em; font-size: 13px; }
.pv-brand .dotmark { width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.pv-hero h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; color: var(--ink); margin: 20px 0 20px; text-wrap: balance; max-width: 760px; }
.pv-hero h1 .accent { color: var(--accent); }
.pv-body p { font-size: 17px; line-height: 1.65; color: var(--text); margin: 0 0 14px; max-width: 640px; text-wrap: pretty; }
.pv-hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn-accent { background: var(--accent); color: var(--accent-ink); font-weight: 600; box-shadow: var(--shadow-1); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline-accent { background: #fff; color: var(--accent); border-color: var(--accent-100); }
.btn-outline-accent:hover { background: var(--accent-50); border-color: var(--accent); }

/* Status panel */
.pv-status { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-2); }
.pv-status .s-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.pv-status .s-release { font-size: 22px; font-weight: 600; color: var(--ink); margin: 8px 0 18px; line-height: 1.25; letter-spacing: -0.01em; }
.pv-status .s-release span { display: block; font-size: 13px; color: var(--mute); font-weight: 400; letter-spacing: 0; margin-bottom: 2px; }
.pv-status dl { margin: 0; border-top: 1px solid var(--line); }
.pv-status .s-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pv-status dt { color: var(--mute); }
.pv-status dd { margin: 0; color: var(--ink); text-align: right; font-weight: 500; }
.pv-status .live-dot { display: inline-flex; align-items: center; gap: 8px; }
.pv-status .live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-50); }
.pv-status .s-note { font-size: 13.5px; color: var(--text); line-height: 1.6; margin: 16px 0 0; }

/* ---------- Preview ---------- */
.pv-preview { padding: clamp(64px, 8vw, 96px) 0; }
.pv-preview .section-head h2, .pv-register h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); margin: 12px 0 0; text-wrap: balance; }
.pv-preview .section-head p { font-size: 16.5px; color: var(--text); margin: 0; max-width: 540px; }
.pv-frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); overflow: hidden; }
.pv-frame-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #FBFCFE; font-size: 13px; font-weight: 500; color: var(--ink); }
.pv-frame-bar .dots { display: flex; gap: 6px; }
.pv-frame-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #DDE3EC; display: block; }
.pv-frame-bar .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 6px; font-weight: 400; }
.pv-frame-body { padding: clamp(18px, 3vw, 32px); background: var(--bg); }
.pv-caption { margin: 0; padding: 12px 18px !important; font-size: 12.5px; color: var(--mute); display: flex; gap: 8px; align-items: flex-start; border-top: 1px solid var(--line); background: #FBFCFE; }
.pv-caption svg { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--faint); }
.stage-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.stage-label b { font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }

/* Shared card chrome for both visuals */
.req-card, .crit-col, .opt-col, .opp-card, .cbox, .outcome { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.req-card { border-top: 3px solid var(--accent); }
.rc-title, .oc-title, .ch-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.req-card .rc-title { margin-bottom: 12px; }
.req-lines { display: grid; gap: 10px; }
.req-line { display: grid; gap: 5px; }
.req-line .k { font-size: 12px; color: var(--mute); }
.req-line .bar { height: 6px; border-radius: 3px; background: var(--bg-2); position: relative; overflow: hidden; }
.req-line .bar::after { content: ''; position: absolute; inset: 0; width: var(--w, 60%); background: var(--accent); opacity: .55; border-radius: 3px; }

.ghm-viz, .da-viz { display: grid; align-items: center; }
.ghm-viz { grid-template-columns: minmax(200px,.9fr) 36px minmax(280px,1.4fr) 36px minmax(200px,.9fr); }
.da-viz  { grid-template-columns: minmax(190px,.8fr) 36px minmax(320px,1.6fr) 36px minmax(190px,.8fr); }
.connector { height: 2px; background: var(--line-2); position: relative; }
.connector::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: var(--line-2); border-right: 0; }

.crit-col { border-top: 3px solid var(--blue); }
.crit-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.crit-head .ch-meta, .cbox-head .ch-meta { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--blue); }
.crit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.crit-list li { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 13.5px; color: var(--text); transition: border-color .3s, background .3s; }
.crit-list .ci { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all .3s; }
.crit-list .ci svg { width: 10px; height: 10px; opacity: 0; color: #fff; transition: opacity .2s; }
.crit-list .cs { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.crit-list li.is-active { border-color: var(--blue-100); background: var(--blue-50); color: var(--ink); }
.crit-list li.is-active .cs { color: var(--blue); }
.crit-list li.is-done { color: var(--ink); }
.crit-list li.is-done .ci { background: var(--teal); border-color: var(--teal); }
.crit-list li.is-done .ci svg { opacity: 1; }
.crit-list li.is-done .cs { color: var(--teal); }

.opt-col .oc-sub, .opp-card .oc-sub { font-size: 12px; color: var(--mute); margin: 2px 0 12px; }
.opt-list { display: grid; gap: 6px; }
.opt { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border: 1px dashed var(--line-2); border-radius: 8px; opacity: .5; transition: all .4s; }
.opt .ob { width: 24px; height: 24px; border-radius: 6px; background: var(--bg-2); }
.opt .ol { display: grid; gap: 5px; }
.opt .ol i { display: block; height: 5px; border-radius: 3px; background: var(--line); }
.opt .ol i:first-child { width: 70%; } .opt .ol i:last-child { width: 44%; }
.opt.is-on { opacity: 1; border-style: solid; border-color: var(--teal-100); background: var(--teal-50); }
.opt.is-on .ob { background: var(--teal); opacity: .8; }
.opt.is-on .ol i:first-child { background: #9DD6CB; }
.opt-foot { margin-top: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.opt-foot .n { color: var(--teal); font-weight: 500; }

.opp-card { border-top: 3px solid var(--accent); }
.opp-card .req-line .bar::after { background: var(--ink); opacity: .35; }
.cbox { border-top: 3px solid var(--blue); }
.cbox-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.cbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cb-cell { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; transition: border-color .3s, background .3s; }
.cb-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cb-name { font-size: 13px; color: var(--text); }
.cb-state { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cb-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.cb-track { height: 6px; border-radius: 3px; background: var(--bg-2); position: relative; }
.cb-range { position: absolute; top: 0; bottom: 0; left: var(--l,20%); width: var(--r,50%); border-radius: 3px; background: var(--blue-100); }
.cb-mark { position: absolute; top: 50%; left: var(--m,40%); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); opacity: 0; transform: scale(.5); transition: opacity .3s, transform .3s; box-shadow: 0 0 0 2px #fff; }
.cb-cell.is-active { border-color: var(--blue-100); background: var(--blue-50); }
.cb-cell.is-active .cb-name, .cb-cell.is-done .cb-name { color: var(--ink); font-weight: 500; }
.cb-cell.is-done .cb-mark { opacity: 1; transform: scale(1); }
.cb-cell.is-done.in .cb-state { color: var(--teal); }
.cb-cell.is-done.in .cb-state::before { background: var(--teal); }
.cb-cell.is-done.review .cb-state { color: var(--amber); }
.cb-cell.is-done.review .cb-state::before, .cb-cell.is-done.review .cb-mark { background: var(--amber); }

.outcome .oc-title { margin-bottom: 12px; }
.out-states { display: grid; gap: 6px; }
.out-state { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 13.5px; color: var(--mute); transition: all .4s; }
.out-state .os-i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.out-state .os-i svg { width: 10px; height: 10px; opacity: 0; color: #fff; }
.out-state.is-on { color: var(--ink); font-weight: 500; border-color: #F6E2BD; background: var(--amber-50); }
.out-state.is-on .os-i { background: var(--amber); border-color: var(--amber); }
.out-state.is-on .os-i svg { opacity: 1; }
.out-note { margin: 10px 0 0; font-size: 12px; color: var(--mute); line-height: 1.5; }

@media (max-width: 1080px) {
  .ghm-viz, .da-viz { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .connector { width: 2px; height: 28px; margin: 0 auto; }
  .connector::after { right: auto; top: auto; bottom: -1px; left: -4px; border: 5px solid transparent; border-top-color: var(--line-2); border-bottom: 0; }
}
@media (max-width: 520px) { .cbox-grid { grid-template-columns: 1fr; } .pv-frame-bar .dots { display: none; } }

/* ---------- Registration ---------- */
.pv-register { padding: clamp(64px, 8vw, 96px) 0; background: var(--surface); border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.reg-grid { display: grid; grid-template-columns: minmax(0,0.85fr) minmax(0,1.15fr); gap: 64px; align-items: start; }
.reg-intro p { color: var(--text); font-size: 16px; line-height: 1.65; margin: 14px 0 0; max-width: 460px; }
.reg-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.reg-points li { display: block; position: relative; padding-left: 22px; font-size: 15px; line-height: 1.55; color: var(--text); }
.reg-points li::before { content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 8px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.reg-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-2); }

.reg-form { display: grid; gap: 18px; }
.reg-form[hidden], .reg-success[hidden] { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; color: var(--ink); padding: 0; }
.field .req { color: var(--red); margin-left: 3px; font-weight: 400; }
.field .opt-tag { color: var(--mute); font-weight: 400; font-size: 13px; margin-left: 6px; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: 8px;
  padding: 11px 12px; min-height: 46px;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: var(--faint); }
.field input:hover, .field select:hover { border-color: #B7C3D3; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.field input:read-only { background: var(--bg); }
.select-wrap { position: relative; }
.select-wrap::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 1.5px solid var(--mute); border-bottom: 1.5px solid var(--mute); transform: rotate(45deg); pointer-events: none; }
.field select { padding-right: 36px; cursor: pointer; }
.field select:invalid { color: var(--faint); }
.field select option { color: var(--ink); }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip-opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 14px; color: var(--text); background: #fff; transition: all .15s; user-select: none; }
.chip-opt span::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #AAB6C6; flex: none; transition: all .15s; }
.chip-opt input:hover + span { border-color: #B7C3D3; color: var(--ink); }
.chip-opt input:checked + span { border-color: var(--accent); color: var(--ink); background: var(--accent-50); font-weight: 500; }
.chip-opt input:checked + span::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #fff; }
.chip-opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.interest-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.interest-opt { position: relative; }
.interest-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
.interest-opt .io-box { display: grid; gap: 3px; padding: 12px 14px 12px 40px; border: 1px solid var(--line-2); border-radius: 10px; position: relative; transition: all .15s; height: 100%; background: #fff; }
.interest-opt .io-box::before { content: ''; position: absolute; left: 14px; top: 14px; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #AAB6C6; transition: all .15s; }
.interest-opt .io-t { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.interest-opt .io-d { font-size: 13px; color: var(--mute); line-height: 1.45; }
.interest-opt input:hover + .io-box { border-color: #B7C3D3; }
.interest-opt input:checked + .io-box { border-color: var(--accent); background: var(--accent-50); }
.interest-opt input:checked + .io-box::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #fff; }
.interest-opt input:focus-visible + .io-box { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Errors — icon + text + border */
.field-error { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--red); line-height: 1.4; margin: 0; }
.field-error[hidden] { display: none; }
.err-icon { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; font-family: var(--font-sans); }
.field.has-error input, .field.has-error select { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.field.has-error .chip-opt span { border-color: #E5A29C; }
.form-summary { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #F1B8B2; background: #FEF3F2; border-radius: 8px; font-size: 14px; color: #7A271A; line-height: 1.5; }
.form-summary[hidden] { display: none; }
.form-summary .err-icon { margin-top: 2px; }
.form-summary a { color: #7A271A; text-decoration: underline; }
.form-summary:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: grid; gap: 12px; margin-top: 2px; }
.btn-submit { width: 100%; min-height: 50px; font-size: 15.5px; border: none; cursor: pointer; }
.btn-submit:disabled { cursor: progress; opacity: .85; }
.btn-submit .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; display: none; animation: spin .8s linear infinite; }
.btn-submit.is-loading .spinner { display: inline-block; }
.btn-submit.is-loading svg.arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-disclosure { font-size: 12.5px; color: var(--mute); line-height: 1.55; margin: 0; }

.reg-success { padding: 4px 0; }
.success-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal); margin-bottom: 18px; }
.success-icon svg { width: 22px; height: 22px; }
.reg-success h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); margin: 0 0 10px; }
.reg-success h3:focus { outline: none; }
.reg-success h3:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.reg-success p { color: var(--text); line-height: 1.65; margin: 0 0 10px; }
.reg-success .next { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (max-width: 960px) {
  .pv-hero-grid, .reg-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .form-row, .interest-group { grid-template-columns: 1fr; }
  .pv-hero .cta-row { flex-direction: column; align-items: stretch; }
  .pv-hero .cta-row .btn { white-space: normal; text-align: center; }
  .pv-status .s-row { flex-direction: column; gap: 2px; }
  .pv-status dd { text-align: left; }
}

.pv-role { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
