/* checkout.css — extracted from checkout.html inline <style> on 2026-06-10
 * (v4.16 cleanup pass). Tenant-verify-before-payment landing page.
 * (v2.74) Density pass per Design Principle #2 — wider pane (fewer text lines),
 *         tightened vertical rhythm so the pay button stays above the fold, and
 *         left-aligned headings to read cleanly across the wider column.
 */

:root {
  --bg: #0a1628; --bg-2: #0f1f3a; --panel: #122849; --panel-2: #142e54;
  --ink: #e7ecf3; --ink-2: #cfd8e6; --muted: #8aa0bf; --muted-2: #7a8eab;
  --accent: #4cc9f0; --accent-strong: #5BD17E; --amber: #E8C97A;
  --border: #1e3258; --border-soft: rgba(30,50,88,0.6);
  --err: #f87171; --ok: #34d399;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: radial-gradient(circle at 30% 0%, #143057 0%, var(--bg) 60%) fixed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
/* 'safe center' vertically centers on tall screens but falls back to top-aligned
   when the content is taller than the viewport — so the logo/heading are never
   clipped above the fold on short laptops. */
.wrap { min-height: 100vh; display: grid; place-items: safe center; padding: 1rem 1.25rem; }
.card {
  width: 100%; max-width: 920px;   /* wide column → sentences fit in far fewer lines (Design Principle #2) */
  background: linear-gradient(180deg, rgba(30,50,88,0.4), rgba(15,31,58,0.4));
  border: 1px solid var(--border); border-radius: 16px;
  padding: 1.25rem 1.75rem; backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.6rem; }
.brand img { height: 34px; width: auto; display: block; border-radius: 8px; }
.brand-text { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-text span { color: var(--accent); }
.step-pill {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--accent); padding: 4px 13px; border: 1px solid rgba(76,201,240,0.35);
  border-radius: 20px; text-transform: uppercase; margin-bottom: 8px;
}
h1 { font-size: 1.4rem; line-height: 1.2; margin: 0.05rem 0 0.35rem; letter-spacing: -0.015em; text-align: left; }
.lede { color: var(--ink-2); font-size: 0.95rem; margin: 0 0 0.85rem; line-height: 1.5; text-align: left; }
/* Base subscription — "Included in this purchase" card. A checked + disabled
   checkbox signals it's the required foundation of the purchase; the optional
   assessments sit beneath it. Green treatment = "already selected". */
.included-head {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-strong); margin: 3px 0 7px; display: flex; align-items: center; gap: 6px;
}
.plan-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(91,209,126,0.07); border: 1px solid rgba(91,209,126,0.30);
  border-radius: 12px; padding: 11px 16px; margin-bottom: 11px;
}
.plan-cb { width: 20px; height: 20px; accent-color: var(--accent-strong); flex: 0 0 auto; cursor: default; }
.plan-cb:disabled { opacity: 1; }   /* keep it crisp, not greyed — it's "locked on", not "off" */
.plan-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plan-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.plan-name .accent { color: var(--accent); }
.plan-tag { font-size: 12.5px; color: var(--muted); }
.plan-right { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.plan-price { font-size: 17px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.plan-price-suffix { font-size: 13px; font-weight: 500; color: var(--muted); }
.plan-switch { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); font-size: 12.5px; }
.plan-switch:hover { filter: brightness(1.1); }
/* (v4.18) Image-load-fallback pattern — replaces inline onerror handlers
   per Standards §1.5.2. checkout.js wires <img data-fallback="hide"> to
   add .fallback-hidden when the image fails to load. */
.fallback-hidden { display: none !important; }

.btn {
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
  padding: 12px 22px; border-radius: 11px; cursor: pointer; border: 0;
  transition: filter 0.15s ease, transform 0.05s ease;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #001525; width: 100%; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
/* The signin button has long descriptive text; ensure it wraps cleanly. */
#signinBtn { font-size: 14px; line-height: 1.35; padding: 12px 20px; text-align: center; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--ink); border-color: var(--accent); }
/* (v1.79) The .btn-snapshot, .or-divider, .snapshot-note, .post-signin-snapshot,
   and .btn-link rules previously here were removed when the Free Snapshot pill
   was moved off the checkout page. The CTA lives on index.html now; the deep-
   link ?snapshot=1 routes back to checkout.js which auto-fires the trial flow. */

.signin-block { margin-bottom: 0.8rem; }

.signed-block { display: none; }
.signed-block.shown { display: block; }
.signin-block.hidden { display: none; }

.tenant-card {
  background: rgba(91,209,126,0.07); border: 1px solid rgba(91,209,126,0.30);
  border-radius: 12px; padding: 10px 16px; margin-bottom: 10px;
}
.tenant-card .row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 13px; }
.tenant-card .row .k { color: var(--muted); }
.tenant-card .row .v { color: var(--ink); font-weight: 600; text-align: right; word-break: break-all; }
.tenant-card .row .v.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; font-weight: 500; }
.tenant-card .confirm-line { font-size: 13.5px; color: var(--accent-strong); margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(91,209,126,0.20); }
.tenant-card .confirm-line .check { font-weight: 700; margin-right: 5px; }

.what-this-does {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 13px; margin-top: 9px; font-size: 12.5px; color: var(--muted); line-height: 1.5;
}
.what-this-does b { color: var(--ink-2); }

.msg { margin-top: 10px; font-size: 13.5px; min-height: 1.1rem; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }

.swap-row { margin-top: 10px; text-align: center; }
.swap-row a { color: var(--muted); font-size: 12.5px; text-decoration: none; border-bottom: 1px dotted var(--muted); }
.swap-row a:hover { color: var(--accent); border-color: var(--accent); }

/* Already-licensed state — shown when /api/customer/check confirms this
   tenant is already an active SignalBoard customer. Hides the pay button
   so a second charge can't happen. Keeps sign-out so multi-tenant
   consultants can switch accounts. (Inline-extracted v4.16; task #193 closed.) */
.signed-block.al-mode #payBtn { display: none; }
.already-licensed { display: none; flex-direction: column; gap: 12px; margin-top: 1rem; }
.signed-block.al-mode .already-licensed { display: flex; }
.al-banner {
  background: rgba(91,209,126,0.08); border: 1px solid rgba(91,209,126,0.35);
  border-radius: 12px; padding: 12px 16px;
}
.al-title { color: var(--accent-strong); font-weight: 700; margin-bottom: 4px; font-size: 14px; }
.al-sub { color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.al-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.al-actions .btn { flex: 1; min-width: 160px; }
.license-checking { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }

/* Legal consent — must read clearly at a glance before payment. Sits in a
   faint bordered panel with a brighter body copy, accent links, and an
   accent-tinted checkbox so it's obviously interactive yet still premium. */
.consent-row {
  display: flex; gap: 11px; align-items: flex-start;
  margin: 12px 0 12px; padding: 11px 14px;
  background: rgba(76,201,240,0.05); border: 1px solid rgba(76,201,240,0.22);
  border-radius: 10px;
  font-size: 13.5px; line-height: 1.5; cursor: pointer;
  color: var(--ink-2);
}
.consent-cb {
  margin-top: 1px; flex: 0 0 auto; width: 18px; height: 18px; cursor: pointer;
  accent-color: var(--accent);
}
.consent-text { color: var(--ink-2); font-weight: 500; }
.consent-row a {
  color: var(--accent); font-weight: 700; text-decoration: none;
  border-bottom: 1px solid rgba(76,201,240,0.55);
}
.consent-row a:hover { color: #ffffff; border-bottom-color: #ffffff; }

.foot {
  margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted-2); flex-wrap: wrap; gap: 0.5rem;
}
.foot a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--muted); }

/* Point-of-sale add-on selection (checkout.js renders this in session mode).
   On the wide pane the three optional assessments sit in a responsive grid so
   they occupy far less vertical space than a stacked list. */
.addon-select { margin: 3px 0 11px; }
.addon-head { font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; margin: 2px 0 8px; }
.addon-head .addon-sub { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted-2); }
.addon-head .addon-learn { font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--accent, #2563eb); margin-left: 6px; white-space: nowrap; }
.addon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 8px; }
.addon-row { display: flex; align-items: flex-start; gap: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 11px; padding: 10px 14px; margin: 0; cursor: pointer; transition: border-color .15s; }
.addon-row:hover { border-color: rgba(76,201,240,0.5); }
.addon-cb { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; cursor: pointer; }
.addon-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.addon-name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.addon-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }
.addon-price { flex: 0 0 auto; font-size: 13.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.addon-total { text-align: right; font-size: 13.5px; font-weight: 600; color: var(--accent-strong); min-height: 16px; margin: 6px 2px 0; }

@media (max-width: 560px) { .card { padding: 1.25rem 1.25rem; } h1 { font-size: 1.3rem; } }

/* ---- Viewport-HEIGHT responsiveness ---------------------------------------
   The base spacing above is already tight. These steps shave a little more on
   short laptops so the "Continue to payment" button stays above the fold. */
@media (max-height: 900px) {
  .wrap { padding: 0.8rem 1.25rem; }
  .card { padding: 1.1rem 1.75rem; }
  .brand { margin-bottom: 0.5rem; }
  .step-pill { margin-bottom: 7px; }
  h1 { font-size: 1.32rem; margin: 0.05rem 0 0.3rem; }
  .lede { font-size: 0.92rem; margin: 0 0 0.7rem; }
  .plan-card { padding: 10px 15px; margin-bottom: 9px; }
  .signin-block { margin-bottom: 0.7rem; }
  .tenant-card { padding: 9px 15px; margin-bottom: 9px; }
  .addon-grid { gap: 7px; }
  .addon-row { padding: 9px 13px; }
  .what-this-does { padding: 9px 12px; margin-top: 8px; }
  .foot { margin-top: 0.8rem; padding-top: 0.7rem; }
}
@media (max-height: 760px) {
  .wrap { padding: 0.6rem 1.25rem; }
  .card { padding: 0.9rem 1.6rem; }
  .brand { margin-bottom: 0.4rem; }
  h1 { font-size: 1.24rem; line-height: 1.18; }
  .lede { margin: 0 0 0.6rem; }
  .plan-card { padding: 9px 14px; margin-bottom: 8px; }
  .tenant-card { margin-bottom: 8px; }
  .addon-row { padding: 8px 12px; }
  .what-this-does { margin-top: 7px; }
  .foot { margin-top: 0.7rem; padding-top: 0.6rem; }
}
