/* checkout.css — extracted from checkout.html inline <style> on 2026-06-10
 * (v4.16 cleanup pass). Tenant-verify-before-payment landing page.
 */

: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.55;
}
.wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1.25rem; }
.card {
  width: 100%; max-width: 580px;
  background: linear-gradient(180deg, rgba(30,50,88,0.4), rgba(15,31,58,0.4));
  border: 1px solid var(--border); border-radius: 18px;
  padding: 2.5rem 2.25rem; backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.brand { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.5rem; }
.brand img { height: 38px; width: auto; display: block; }
.brand-text { font-size: 1.25rem; 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: 5px 14px; border: 1px solid rgba(76,201,240,0.35);
  border-radius: 20px; text-transform: uppercase; margin-bottom: 18px;
}
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0.25rem 0 0.6rem; letter-spacing: -0.015em; text-align: center; }
.lede { color: var(--ink-2); font-size: 1rem; margin: 0 0 1.6rem; line-height: 1.6; text-align: center; }
.plan-summary {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 22px; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; flex-wrap: wrap;
}
.plan-summary .label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.plan-summary .value { font-size: 18px; font-weight: 700; color: var(--ink); }
.plan-summary .value .accent { color: var(--accent); }
/* (v4.18) Extracted from inline style on checkout.html — the "/ yr" or
   "/ mo" suffix after the price. Lives under .plan-summary .value so it
   inherits the right baseline alignment. */
.plan-price-suffix { font-size: 13px; font-weight: 500; color: var(--muted); }
.plan-summary .change a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); font-size: 13px; }
/* (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: 14px 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.4; padding: 14px 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: 1.4rem; }

.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: 16px 18px; margin-bottom: 18px;
}
.tenant-card .row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 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: 10px; padding-top: 10px; 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: 14px 16px; margin-top: 18px; font-size: 12.5px; color: var(--muted); line-height: 1.6;
}
.what-this-does b { color: var(--ink-2); }

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

.swap-row { margin-top: 14px; 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: 14px; margin-top: 1.2rem; }
.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: 14px 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; }

.foot {
  margin-top: 1.8rem; padding-top: 1.2rem; 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); }

@media (max-width: 520px) { .card { padding: 2rem 1.5rem; } h1 { font-size: 1.4rem; } }
