/* GERBALGO landing v2: waitlist form + checkout modal.
   Markup + ids are the original page's (js/ga-v2-core.js drives them unchanged);
   only the look is re-tokened to the v2 system. */

.wl { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.wl input { flex: 1; min-width: 200px; background: var(--ink-0); border: 1px solid var(--line-2); color: var(--bone);
  padding: 0 1rem; min-height: 48px; border-radius: 999px; font: 400 1rem var(--f-text); outline: none; }
.wl input:focus { border-color: var(--gold); }
.wl button:disabled { opacity: .6; cursor: default; }
.msg { font-size: .875rem; margin-top: .75rem; display: none; }
.msg.ok { color: var(--ok); display: block; }
.msg.err { color: var(--bad); display: block; }
.wl-fine { font-size: .8125rem; color: var(--bone-3); margin-top: .75rem; }
.wl-fine a { color: var(--bone-2); }

/* round two block (shown only when /api/gerbalgo-slots says open:true) */
.intake { border: 1px solid var(--em-border); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2rem); background: var(--em-soft); margin-bottom: 1rem; }
.found-tag { display: inline-block; font: 600 .6875rem/1 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: .8rem; }
.found-tag.shut { color: var(--bone-3); }
.intake h2 { font: 560 1.5rem/1.2 var(--f-text); letter-spacing: -.02em; margin-bottom: .6rem; }
.intake .g { color: var(--gold-hi); }
.sec-lede { color: var(--bone-2); font-size: .9375rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 1.3rem; border-radius: 999px; border: 0;
  font: 600 .9375rem var(--f-text); cursor: pointer; }
.btn-primary { background: var(--burn); color: #0A0605; }
.btn-primary:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-block { width: 100%; }
.sold-out { opacity: .6; pointer-events: none; }

/* checkout modal */
.modal { position: fixed; inset: 0; z-index: 500; background: rgba(4,4,4,.88); display: none; align-items: center; justify-content: center; padding: 18px; }
.modal.on { display: flex; }
.modal-box { background: var(--ink-1); border: 1px solid var(--line-2); border-radius: 18px; max-width: 1000px; width: 100%; max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden; color: var(--bone); }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; }
.modal-head h3 { font: 600 1.2rem var(--f-text); letter-spacing: -.01em; }
.modal-head .sub { font-size: .8125rem; color: var(--bone-3); margin-top: 2px; }
.modal-x { background: none; border: none; color: var(--bone-3); font-size: 26px; cursor: pointer; line-height: 1; padding: 0 4px; }
.modal-x:hover { color: var(--gold-hi); }
.panes { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 0; flex: 1; }
.pane { display: flex; flex-direction: column; min-height: 0; }
.pane-l { border-right: 1px solid var(--line); }
.pane-hd { padding: 13px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-shrink: 0; }
.pane-hd .t { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi); font-weight: 600; }
.pane-hd .v { font-size: .7rem; color: var(--bone-3); font-family: ui-monospace, Menlo, Consolas, monospace; }
.terms-frame { width: 100%; flex: 1; min-height: 340px; border: none; background: #0d0d0d; }
.readbar { height: 3px; background: var(--ink-2); flex-shrink: 0; }
.readbar i { display: block; height: 100%; width: 0; background: var(--burn); transition: width .15s; }
.readnote { padding: 10px 20px; font-size: .8125rem; color: var(--bone-3); border-top: 1px solid var(--line); flex-shrink: 0; }
.readnote a { color: var(--gold-hi); }
.readnote.done { color: var(--ok); }
.pane-r { position: relative; }
.pane-body { padding: 20px; overflow-y: auto; flex: 1; min-height: 0; }
.lockveil { position: absolute; inset: 0; z-index: 3; background: color-mix(in srgb, var(--ink-1) 94%, transparent); backdrop-filter: blur(3px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; transition: opacity .25s; }
.lockveil.off { opacity: 0; pointer-events: none; }
.lockveil .ico { font-size: 32px; margin-bottom: 12px; }
.lockveil .h { font-size: .95rem; font-weight: 600; margin-bottom: 7px; }
.lockveil .s { font-size: .8125rem; color: var(--bone-3); max-width: 280px; line-height: 1.6; }
.sum { background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 15px; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; align-items: center; font-size: .875rem; padding: 5px 0; gap: 10px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 7px; padding-top: 11px; font-weight: 700; }
.sum-row .g { color: var(--gold-hi); }
.accept-row { display: flex; gap: 11px; align-items: flex-start; margin: 16px 0; padding: 14px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; }
.accept-row.armed { border-color: var(--gold); }
.accept-row input[type=checkbox] { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--gold); cursor: pointer; flex-shrink: 0; }
.accept-row label { font-size: .8125rem; color: var(--bone-2); line-height: 1.6; cursor: pointer; }
.payterms { background: var(--em-soft); border: 1px solid var(--em-border); border-radius: 12px; padding: 14px 15px; margin: 16px 0; }
.payterms-hd { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-hi); font-weight: 700; margin-bottom: 9px; }
.payterms ul { margin: 0; padding-left: 18px; }
.payterms li { font-size: .8125rem; color: var(--bone-2); line-height: 1.6; margin-bottom: 5px; }
.payterms li b { color: var(--bone); }
.ck-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.ck-field label { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bone-3); }
.ck-field input { background: var(--ink-2); border: 1px solid var(--line-2); color: var(--bone); padding: 12px 13px; border-radius: 10px; font: 400 .9375rem var(--f-text); outline: none; width: 100%; }
.ck-field input:focus { border-color: var(--gold); }
.scroll-note { font-size: .75rem; color: var(--bone-3); line-height: 1.6; }
.scroll-note a { color: var(--gold-hi); }
@media (max-width: 820px) {
  .panes { grid-template-columns: 1fr; grid-template-rows: minmax(240px, 1fr) auto; overflow-y: auto; }
  .pane-l { border-right: none; border-bottom: 1px solid var(--line); }
  .terms-frame { min-height: 240px; }
}
