/* auth.css - Phase 6 auth UI. Reuses tokens from theme-override.css where
 * possible. Kept small (targets under 5 KB).
 */

.auth-body {
  background: var(--surface-warm, #fdfbf4);
  color: var(--gray-900, #0f172a);
  font-family: var(--font-body, "DM Sans", system-ui, sans-serif);
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-shell {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-brand {
  font-family: var(--font-display, "DM Sans", system-ui, sans-serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--color-accent-strong, #0f766e);
  text-decoration: none;
  text-align: center;
}

.auth-card {
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--gray-200, #e2e8f0);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.auth-card-wide { max-width: 540px; }

.auth-title {
  font-family: var(--font-display, "DM Sans", system-ui, sans-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--gray-900, #0f172a);
}

.auth-subtitle {
  font-family: var(--font-display, "DM Sans", system-ui, sans-serif);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--gray-900, #0f172a);
}

.auth-sub {
  color: var(--gray-600, #475569);
  margin: 0 0 20px;
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--gray-700, #334155);
  font-weight: 500;
}

.auth-form small {
  color: var(--gray-500, #64748b);
  font-size: 0.75rem;
  font-weight: 400;
}

.auth-form input {
  border: 1px solid var(--gray-300, #cbd5e1);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: var(--surface-card, #ffffff);
  color: var(--gray-900, #0f172a);
}

.auth-form input:focus {
  outline: 2px solid var(--color-accent-strong, #0f766e);
  outline-offset: 1px;
  border-color: var(--color-accent-strong, #0f766e);
}

.auth-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background-color 120ms, box-shadow 120ms;
  text-decoration: none;
  display: inline-block;
}

.auth-btn:disabled { opacity: 0.6; cursor: wait; }

.auth-btn-primary {
  background: var(--color-accent-strong, #0f766e);
  color: #ffffff;
}
.auth-btn-primary:hover:not(:disabled) { background: var(--color-accent, #14b8a6); }

.auth-btn-secondary {
  background: var(--surface-card, #ffffff);
  color: var(--gray-900, #0f172a);
  border-color: var(--gray-300, #cbd5e1);
}
.auth-btn-secondary:hover:not(:disabled) { background: var(--gray-100, #f1f5f9); }

.auth-status { font-size: 0.875rem; margin: 4px 0 0; min-height: 1em; color: var(--gray-500, #64748b); }
.auth-status-ok    { color: var(--color-success-strong, #047857); }
.auth-status-warn  { color: var(--color-warning-strong, #b45309); }
.auth-status-error { color: var(--color-danger-strong, #b91c1c); }
.auth-status-info  { color: var(--gray-600, #475569); }

.auth-banner {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  margin: 0 0 16px;
  border: 1px solid transparent;
}
.auth-banner-ok   { background: var(--surface-success, #ecfdf5); color: var(--color-success-strong, #047857); border-color: var(--color-success-border, #a7f3d0); }
.auth-banner-warn { background: var(--surface-warning, #fffbeb); color: var(--color-warning-strong, #b45309); border-color: var(--color-warning-border, #fde68a); }

.auth-meta {
  font-size: 0.875rem;
  color: var(--gray-600, #475569);
  margin: 16px 0 0;
  text-align: center;
}

.auth-meta a { color: var(--color-accent-strong, #0f766e); }

.auth-kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 0.9rem;
  margin: 0 0 20px;
}
.auth-kv dt { color: var(--gray-600, #475569); font-weight: 500; }
.auth-kv dd { margin: 0; color: var(--gray-900, #0f172a); }

.auth-list { padding-left: 20px; margin: 0 0 16px; }
.auth-list li {
  margin: 4px 0;
  color: var(--gray-700, #334155);
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-btn-inline {
  font: inherit;
  background: transparent;
  border: 1px solid var(--gray-300, #cbd5e1);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 0.75rem;
  color: var(--color-danger-strong, #b91c1c);
  cursor: pointer;
}
.auth-btn-inline:hover:not(:disabled) { background: var(--surface-subtle, #f1f5f9); }

.auth-form-inline {
  flex-direction: row;
  align-items: end;
  gap: 12px;
}
.auth-form-inline label { flex: 1; }

/* SG_AUTH_LIGHT_ONLY_V1 (2026-04-22) — removed auto @media (prefers-color-scheme: dark)
 * block that previously turned signup/login/forgot pages dark for OS-dark users.
 * Dark block only styled inputs; auth-title, auth-sub, labels, and small hint text
 * kept their default near-black color → unreadable on dark bg. Autofill bgs also
 * clashed. No in-app theme toggle exists on auth surfaces (toggle lives in authed
 * sidebar), so there was no way for users to reverse it. Auth pages are now
 * always light. `<meta name="color-scheme" content="light">` in _layout.phtml
 * also pins browser-chrome (autofill, scrollbars) to light.
 * Authed pages keep their html[data-theme="dark"] overrides (below). */


/* Billing section (2026-04-22) — account.phtml Billing block */
.sg-billing { margin: 16px 0 28px; }
.sg-billing-current { background: var(--gray-50, #f8fafc); border: 1px solid var(--gray-200, #e2e8f0); border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; }
.sg-billing-current p { margin: 0 0 8px; color: var(--gray-800, #1e293b); font-size: 14px; }
.sg-billing-current p:last-child { margin-bottom: 0; }
.sg-billing-credits { font-size: 13px !important; color: var(--gray-600, #475569) !important; }
.sg-billing-h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500, #64748b); margin: 16px 0 10px; }
.sg-billing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.sg-billing-card { border: 1px solid var(--gray-200, #e2e8f0); border-radius: 12px; padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.sg-billing-card.is-current { border-color: var(--accent-600, #2563eb); background: rgba(37, 99, 235, 0.04); }
.sg-billing-card-enterprise { background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(99, 102, 241, 0.04)); }
.sg-billing-card h4 { font-size: 14px; font-weight: 700; margin: 0; color: var(--gray-900, #0f172a); text-transform: uppercase; letter-spacing: 0.04em; }
.sg-billing-price { font-size: 26px; font-weight: 800; margin: 0; color: var(--gray-900, #0f172a); line-height: 1; }
.sg-billing-price span { font-size: 13px; font-weight: 500; color: var(--gray-500, #64748b); margin-left: 3px; }
.sg-billing-price-yr { font-size: 11px; color: var(--gray-500, #64748b); margin: 0; }
.sg-billing-feats { list-style: none; padding: 0; margin: 0; font-size: 12.5px; color: var(--gray-700, #334155); display: flex; flex-direction: column; gap: 4px; }
.sg-billing-feats li { padding-left: 14px; position: relative; line-height: 1.4; }
.sg-billing-feats li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-600, #2563eb); font-weight: 700; }
.sg-billing-card .auth-btn { margin-top: 6px; width: 100%; }
.sg-billing-card .auth-form-inline { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.sg-billing-card .auth-form-inline .auth-btn { width: 100%; }
.sg-billing-packs { margin-top: 20px; }
.sg-billing-packgrid { display: flex; gap: 10px; flex-wrap: wrap; }
.sg-billing-packgrid form { flex: 0 0 auto; }
.sg-billing-packgrid .auth-btn { font-size: 13px; }

.sg-billing-headline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 10px; }
.sg-billing-headline .sg-billing-h3 { margin: 0; }
.sg-billing-toggle { display: inline-flex; padding: 3px; background: var(--gray-100, #f1f5f9); border: 1px solid var(--gray-200, #e2e8f0); border-radius: 999px; gap: 2px; }
.sg-billing-toggle-btn { appearance: none; border: 0; background: transparent; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 600; color: var(--gray-600, #475569); border-radius: 999px; cursor: pointer; line-height: 1.2; transition: background 120ms ease, color 120ms ease; }
.sg-billing-toggle-btn:hover { color: var(--gray-900, #0f172a); }
.sg-billing-toggle-btn.is-active { background: #fff; color: var(--gray-900, #0f172a); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
.sg-billing-toggle-save { font-size: 11px; font-weight: 700; color: var(--accent-600, #2563eb); margin-left: 4px; }

.sg-cancel-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.sg-cancel-banner p { margin: 0; flex: 1 1 auto; }
.sg-cancel-banner-action { margin: 0; flex: 0 0 auto; }
.sg-cancel-banner-action .auth-btn { width: auto; }

html[data-theme="dark"] .sg-billing-toggle { background: var(--gray-800, #1e293b); border-color: var(--gray-700, #334155); }
html[data-theme="dark"] .sg-billing-toggle-btn { color: var(--gray-300, #cbd5e1); }
html[data-theme="dark"] .sg-billing-toggle-btn:hover { color: var(--gray-100, #f1f5f9); }
html[data-theme="dark"] .sg-billing-toggle-btn.is-active { background: var(--gray-700, #334155); color: var(--gray-100, #f1f5f9); }
html[data-theme="dark"] .sg-billing-toggle-save { color: #60a5fa; }

html[data-theme="dark"] .sg-billing-current { background: var(--gray-800, #1e293b); border-color: var(--gray-700, #334155); }
html[data-theme="dark"] .sg-billing-current p { color: var(--gray-200, #e2e8f0); }
html[data-theme="dark"] .sg-billing-credits { color: var(--gray-400, #94a3b8) !important; }
html[data-theme="dark"] .sg-billing-card { background: var(--gray-800, #1e293b); border-color: var(--gray-700, #334155); }
html[data-theme="dark"] .sg-billing-card h4 { color: var(--gray-100, #f1f5f9); }
html[data-theme="dark"] .sg-billing-card.is-current { border-color: #60a5fa; background: rgba(59, 130, 246, 0.12); }
html[data-theme="dark"] .sg-billing-price { color: var(--gray-100, #f1f5f9); }
html[data-theme="dark"] .sg-billing-feats { color: var(--gray-300, #cbd5e1); }
html[data-theme="dark"] .sg-billing-feats li::before { color: #60a5fa; }
/* -- SG_SIGNUP_V2 (2026-07-22): signup redesign ---------------------------- */

.auth-cols {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 860px;
}
.auth-cols .auth-card { flex: 0 1 420px; }

.auth-proof {
  flex: 0 1 320px;
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--gray-50, #f8fafc);
  border: 1px solid var(--gray-200, #e2e8f0);
}
.auth-proof-head {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-900, #0f172a);
  margin: 0 0 6px;
}
.auth-proof-sub {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--gray-600, #475569);
  margin: 0 0 16px;
}
.auth-proof-engines {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 18px;
}
.auth-proof-engines li {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--gray-200, #e2e8f0);
  color: var(--gray-700, #334155);
}
.auth-proof-points {
  list-style: none;
  padding: 0;
  margin: 0;
}
.auth-proof-points li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.8438rem;
  line-height: 1.45;
  color: var(--gray-600, #475569);
}
.auth-proof-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-accent-strong, #0f766e);
  font-weight: 700;
}
@media (max-width: 860px) {
  .auth-cols { flex-direction: column; align-items: stretch; }
  .auth-cols .auth-card, .auth-proof { flex: 1 1 auto; }
  .auth-proof { order: 2; }
}

.auth-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--surface-card, #ffffff);
  color: var(--gray-900, #0f172a);
  border: 1px solid var(--gray-300, #cbd5e1);
  text-decoration: none;
  margin-bottom: 4px;
}
.auth-btn-google:hover { background: var(--gray-100, #f1f5f9); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--gray-500, #64748b);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-200, #e2e8f0);
}

.auth-pw-wrap {
  position: relative;
  display: block;
}
.auth-pw-wrap input { width: 100%; padding-right: 62px; }
.auth-pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--color-accent-strong, #0f766e);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
}

.auth-plan-chip {
  font-size: 0.8438rem;
  line-height: 1.45;
  background: var(--surface-success, #ecfdf5);
  border: 1px solid var(--color-success-border, #a7f3d0);
  color: var(--color-success-strong, #047857);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 16px;
}

.auth-wall-icon {
  font-size: 40px;
  line-height: 1;
  color: var(--color-accent-strong, #0f766e);
  margin-bottom: 12px;
}

/* SG_SIGNUP_V2: the shell is 420px for single-card auth pages; widen it when it
   carries the signup two-column layout. Browsers without :has() simply keep the
   420px shell and the proof panel stacks below the card — acceptable fallback. */
.auth-shell:has(.auth-cols) { max-width: 860px; }

/* SG_SIGNUP_V2: live password strength meter + hint (2026-07-22) */
.auth-pw-meter { display: flex; gap: 4px; margin: 7px 0 3px; }
.auth-pw-meter i {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--gray-200, #e2e8f0);
  transition: background .15s ease;
}
.auth-pw-meter i.is-on.tone-warn { background: var(--color-warning-strong, #d97706); }
.auth-pw-meter i.is-on.tone-mid  { background: #ca8a04; }
.auth-pw-meter i.is-on.tone-ok   { background: var(--color-accent-strong, #0f766e); }
.auth-pw-hint.is-warn { color: var(--color-warning-strong, #b45309); }
.auth-pw-hint.is-mid  { color: var(--gray-600, #475569); }
.auth-pw-hint.is-ok   { color: var(--color-success-strong, #047857); }

/* ── SG_SIGNUP_TRIAL_V1 (2026-07-28): trial framing + proof screenshot ── */
.auth-plan-chip-trial p { margin: 0; }
.auth-trial-timeline {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--gray-600, #475569);
}
.auth-trial-timeline li { position: relative; padding: 2px 0 2px 20px; }
.auth-trial-timeline li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent-600, #0d9488);
  font-weight: 700;
}
.auth-trust {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--gray-500, #64748b);
  text-align: center;
}
.auth-proof-shot {
  display: block;
  width: 100%;
  height: auto;
  margin: 14px 0 6px;
  border-radius: 10px;
  border: 1px solid var(--gray-200, #e2e8f0);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
}
/* SG_SIGNUP_PLAN_PICKER_V1 (2026-07-30) — tier picker on the signup page */
.auth-plans { margin: 0 0 14px; }
.auth-plans-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.auth-plans-legend {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700, #334155);
}
.auth-plans-interval {
  display: inline-flex;
  border: 1px solid var(--gray-200, #e2e8f0);
  border-radius: 999px;
  padding: 2px;
  background: var(--gray-50, #f8fafc);
}
.auth-plans-interval label { cursor: pointer; }
.auth-plans-interval input { position: absolute; opacity: 0; pointer-events: none; }
.auth-plans-interval span {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--gray-600, #475569);
  white-space: nowrap;
}
.auth-plans-interval input:checked + span {
  background: #fff;
  color: var(--gray-900, #0f172a);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}
.auth-plans-interval input:focus-visible + span {
  outline: 2px solid var(--color-accent-strong, #0f766e);
  outline-offset: 1px;
}
.auth-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}
.auth-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--gray-200, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.auth-plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.auth-plan-card.is-selected {
  border-color: var(--color-accent-strong, #0f766e);
  box-shadow: 0 0 0 1px var(--color-accent-strong, #0f766e);
  background: var(--surface-success, #ecfdf5);
}
.auth-plan-card input:focus-visible ~ .auth-plan-card-name {
  outline: 2px solid var(--color-accent-strong, #0f766e);
  outline-offset: 2px;
}
.auth-plan-card-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gray-900, #0f172a);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.auth-plan-card-flag {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent-strong, #0f766e);
  background: var(--surface-success, #ecfdf5);
  border: 1px solid var(--color-success-border, #a7f3d0);
  border-radius: 999px;
  padding: 1px 6px;
}
.auth-plan-card.is-selected .auth-plan-card-flag { background: #fff; }
.auth-plan-card-price {
  font-size: 0.8125rem;
  color: var(--gray-600, #475569);
}
.auth-plan-card-price b {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gray-900, #0f172a);
}
.auth-plan-card-trial {
  font-size: 0.68rem;
  color: var(--color-success-strong, #047857);
  font-weight: 600;
}
.auth-plans-compare {
  margin: 8px 0 0;
  font-size: 0.75rem;
  text-align: right;
}
.auth-plans-compare a { color: var(--color-accent-strong, #0f766e); }

/* SG_LOGIN_SIGNUP_CTA_V1 (2026-07-30) — prominent signup path on the login page */
.auth-alt-cta {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px dashed var(--gray-300, #cbd5e1);
  border-radius: 12px;
  background: var(--gray-50, #f8fafc);
  text-align: center;
}
.auth-alt-cta p {
  margin: 0 0 10px;
  font-size: 0.8438rem;
  color: var(--gray-700, #334155);
}
.auth-alt-cta .auth-btn { width: 100%; }
.auth-alt-cta-sub {
  margin: 8px 0 0 !important;
  font-size: 0.72rem !important;
  color: var(--gray-500, #64748b) !important;
}

/* SG_SIGNUP_PROOF_V2 (2026-07-30) — breadth-positioning proof panel */
.auth-proof-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0;
  margin: 0 0 14px;
}
.auth-proof-stats li {
  background: #fff;
  border: 1px solid var(--gray-200, #e2e8f0);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.auth-proof-stats b {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900, #0f172a);
  line-height: 1.1;
}
.auth-proof-stats span {
  font-size: 0.68rem;
  color: var(--gray-600, #475569);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.auth-proof-pillars {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-proof-pillars li {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--gray-700, #334155);
  padding-left: 16px;
  position: relative;
}
.auth-proof-pillars li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent-strong, #0f766e);
  font-weight: 700;
}
.auth-proof-pillars strong { color: var(--gray-900, #0f172a); }
.auth-proof-foot {
  margin: 12px 0 0;
  font-size: 0.72rem;
  color: var(--gray-500, #64748b);
  line-height: 1.5;
}

/* SG_SIGNUP_V3 (2026-07-30) — wider two-column shell, brand/agency segments,
   step indicator, framed proof shot. Research-driven (plan choice grouped by
   customer type; expectation-setting steps; honest product proof). */
.auth-shell:has(.auth-cols-v3) { max-width: 1180px; }
.auth-cols-v3 { max-width: 1180px; gap: 44px; }
.auth-cols-v3 .auth-card  { flex: 0 1 500px; }
.auth-cols-v3 .auth-proof { flex: 1 1 560px; padding: 34px 36px; }

.auth-steps {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0 0 10px;
  counter-reset: sg-step;
  flex-wrap: wrap;
}
.auth-steps li {
  counter-increment: sg-step;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--gray-500, #64748b);
  white-space: nowrap;
}
.auth-steps li::before {
  content: counter(sg-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--gray-100, #f1f5f9);
  color: var(--gray-600, #475569);
  border: 1px solid var(--gray-200, #e2e8f0);
}
.auth-steps li.is-current { color: var(--gray-900, #0f172a); font-weight: 600; }
.auth-steps li.is-current::before {
  background: var(--color-accent-strong, #0f766e);
  border-color: var(--color-accent-strong, #0f766e);
  color: #fff;
}
.auth-steps li:not(:last-child)::after {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--gray-300, #cbd5e1);
  margin-left: 6px;
}

.auth-plans-segments { display: inline-flex; gap: 2px; }
.auth-plans-segments label { cursor: pointer; }
.auth-plans-segments input { position: absolute; opacity: 0; pointer-events: none; }
.auth-plans-segments span {
  display: inline-block;
  padding: 4px 10px 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-500, #64748b);
  border-bottom: 2px solid transparent;
}
.auth-plans-segments input:checked + span {
  color: var(--gray-900, #0f172a);
  border-bottom-color: var(--color-accent-strong, #0f766e);
}
.auth-plans-segments input:focus-visible + span {
  outline: 2px solid var(--color-accent-strong, #0f766e);
  outline-offset: 2px;
  border-radius: 4px;
}
.auth-btn:active:not(:disabled) { transform: scale(0.98); }
.auth-plan-card { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.auth-plan-card:hover:not(.is-selected) { border-color: var(--gray-300, #cbd5e1); }

.auth-trust-lock { vertical-align: -1px; margin-right: 2px; color: var(--gray-500, #64748b); }
/* SG_TRIAL_COMPLIANCE_V1 (2026-08-15): consent checkbox + OAuth notice + cancel hint */
.auth-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--gray-700, #334155); margin: 10px 0 4px; cursor: pointer; }
.auth-consent input[type=checkbox] { margin-top: 3px; width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--accent-600, #4f46e5); }
.auth-consent a { text-decoration: underline; }
.auth-consent-note { font-size: 12px; line-height: 1.45; color: var(--gray-500, #64748b); margin: 8px 0 0; }
.auth-consent-note a { text-decoration: underline; }
.sg-billing-cancel-hint { font-size: 13px; color: var(--gray-600, #475569); margin-top: 8px; }
.sg-billing-cancel-hint a { text-decoration: underline; }

.auth-proof-frame {
  margin: 0 0 14px;
  background: #fff;
  border: 1px solid var(--gray-200, #e2e8f0);
  border-radius: 14px;
  padding: 10px 10px 8px;
  box-shadow: 0 18px 36px -18px rgba(15, 118, 110, 0.18);
}
.auth-proof-frame .auth-proof-shot { display: block; width: 100%; height: auto; border-radius: 8px; margin: 0; }
.auth-proof-frame figcaption {
  font-size: 0.7rem;
  color: var(--gray-500, #64748b);
  padding: 7px 4px 2px;
  text-align: center;
}
.auth-cols-v3 .auth-proof-stats b { font-size: 1.45rem; }
.auth-cols-v3 .auth-proof-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
@media (max-width: 900px) {
  .auth-cols-v3 .auth-proof-pillars { grid-template-columns: 1fr; }
  .auth-plans-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Codex QA 2026-07-30: [hidden] must beat the author display:flex on cards */
.auth-plan-card[hidden] { display: none !important; }

/* Fable review 2026-07-30 (P1-2/P2-2/P2-4/P3-3/P3-4/P3-5) */
.auth-plans-note {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: var(--gray-500, #64748b);
}
.auth-plan-card-lims {
  font-size: 0.68rem;
  color: var(--gray-500, #64748b);
  line-height: 1.35;
}
.auth-plan-card:has(input[name="sg_plan_choice"]:focus-visible) {
  outline: 2px solid var(--color-accent-strong, #0f766e);
  outline-offset: 2px;
}
.auth-plans-interval span { padding: 5px 12px; }
.auth-cols-v3 .auth-title { font-size: 1.7rem; margin-bottom: 6px; }
.auth-cols-v3 .auth-sub { margin-bottom: 12px; }
@media (max-width: 480px) {
  .auth-plans-grid { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); }
  .auth-plan-card { padding: 9px 10px; }
}

/* ── SG_FIRSTRUN_SCAN_V1 (2026-09-01), WS-3 — ?page=first-scan ─────────────────────────
   Additive only. Every new selector is either `.fs-*` (scoped to this page) or `.auth-hint`,
   a small explanatory-text class the auth surface did not have. `.auth-status-warn` already
   exists at line 134 and is reused, not redefined. */

.auth-hint {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--gray-600, #475569);
  margin: 4px 0 12px;
}
.auth-hint em { font-style: normal; font-weight: 600; color: var(--gray-800, #1e293b); }

.fs-prompts {
  list-style: decimal;
  padding-left: 20px;
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fs-prompts li { color: var(--gray-500, #64748b); }
.fs-prompt-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gray-300, #cbd5e1);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--gray-900, #0f172a);
  background: #fff;
}
.fs-prompt-input:focus {
  outline: none;
  border-color: var(--color-accent, #0d9488);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.fs-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--gray-200, #e2e8f0);
  overflow: hidden;
  margin: 18px 0 8px;
}
.fs-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--color-accent, #0d9488);
  transition: width 400ms ease;
}

.fs-partial, .fs-scores {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fs-partial-item, .fs-score-item {
  font-size: 0.875rem;
  color: var(--gray-800, #1e293b);
  padding: 9px 12px;
  border: 1px solid var(--gray-200, #e2e8f0);
  border-radius: 8px;
  background: #fff;
}
/* An unmeasured slot is stated, never blank and never a zero: the ChatGPT scraper times out on
   roughly 2 calls in 5 and this is the first result a new account ever sees. */
.fs-partial-item.is-pending, .fs-score-item.is-pending {
  color: var(--gray-500, #64748b);
  background: var(--gray-50, #f8fafc);
  border-style: dashed;
}

.fs-next {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200, #e2e8f0);
}


/* ── SG_FIRSTRUN_RESULT_V3 (2026-09-21) — the first-run RESULT view ────────────────────────
   The confirm and progress panels are a form and stay at the 540px .auth-card-wide cap. The
   result is a report: js/first-scan.js puts .fs-wide on the card for that view only, so the
   engine grid has room and the trial CTA sits in the header rather than below the fold.
   Tokens only (--gray-*, --color-accent, --font-display) so it matches the rest of auth. */
/* The SHELL is the binding cap, not the card: .auth-shell is max-width:420px, so widening
   only the card leaves the report in a 420px column (caught live on the deployed 3.5.120 —
   the browser harness had missed it by not reproducing the real wrapper). Same :has() idiom
   the layout already uses for the two-column auth pages at lines ~405 and ~649. */
.auth-shell:has(#first-scan.fs-wide) { max-width: 1000px; }
#first-scan.fs-wide { max-width: 960px; }

.fs-result-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.fs-result-intro { flex: 1 1 340px; min-width: 260px; }
.fs-result-intro .auth-sub { margin-bottom: 0; }
.fs-result-cta { flex: 0 0 auto; min-width: 210px; display: flex; flex-direction: column; gap: 6px; }
.fs-result-cta .auth-btn { white-space: nowrap; }
.fs-result-cta .auth-meta, .fs-foot-cta .auth-meta { margin: 0; text-align: center; }

.fs-hero {
  margin: 22px 0 28px;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--gray-50, #f8fafc);
  border: 1px solid var(--gray-200, #e2e8f0);
}
.fs-hero-score { display: flex; align-items: baseline; gap: 8px; }
.fs-hero-num {
  font-family: var(--font-display, "DM Sans", system-ui, sans-serif);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gray-900, #0f172a);
}
.fs-hero-den { font-weight: 600; color: var(--gray-500, #64748b); }
.fs-hero-label {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500, #64748b);
}
.fs-hero-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--gray-200, #e2e8f0);
  overflow: hidden;
  margin: 16px 0 10px;
}
.fs-hero-fill {
  display: block; height: 100%; width: 0;
  border-radius: 999px;
  background: var(--color-accent, #0d9488);
  transition: width 500ms ease;
}
.fs-hero-note { margin: 0; font-size: 0.9rem; color: var(--gray-600, #475569); }

.fs-group-title {
  font-family: var(--font-display, "DM Sans", system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500, #64748b);
  margin: 0 0 10px;
}

.fs-engines, .fs-cats, .fs-notes { list-style: none; padding: 0; margin: 0 0 26px; display: grid; }
.fs-engines { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.fs-cats    { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.fs-notes   { grid-template-columns: 1fr; gap: 8px; }
.fs-cats:empty, .fs-notes:empty { margin: 0; }

.fs-engine, .fs-cat {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 14px 16px;
  border: 1px solid var(--gray-200, #e2e8f0);
  border-radius: 12px;
  background: #fff;
}
.fs-engine-name, .fs-cat-name {
  font-size: 0.875rem; font-weight: 600; color: var(--gray-900, #0f172a);
}
.fs-engine-val, .fs-cat-val {
  font-family: var(--font-display, "DM Sans", system-ui, sans-serif);
  font-size: 1.5rem; font-weight: 700; line-height: 1;
  color: var(--gray-900, #0f172a);
}
.fs-cat-val { font-size: 1.15rem; }
.fs-engine-bar, .fs-cat-bar {
  height: 6px; border-radius: 999px; background: var(--gray-200, #e2e8f0); overflow: hidden;
}
.fs-engine-fill, .fs-cat-fill {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--color-accent, #0d9488);
  transition: width 500ms ease;
}
.fs-engine-sub, .fs-cat-sub { font-size: 0.78rem; color: var(--gray-500, #64748b); }

/* An unmeasured engine is STATED — never blank, never a zero, and never styled like a real
   measurement. Dashed + muted is the same vocabulary .fs-score-item.is-pending used. */
.fs-engine.is-pending { background: var(--gray-50, #f8fafc); border-style: dashed; }
.fs-engine.is-pending .fs-engine-val {
  font-family: inherit; font-size: 0.95rem; font-weight: 600; color: var(--gray-500, #64748b);
}

.fs-note {
  font-size: 0.8rem; color: var(--gray-500, #64748b);
  padding: 9px 12px; border: 1px dashed var(--gray-200, #e2e8f0);
  border-radius: 8px; background: var(--gray-50, #f8fafc);
}

.fs-result-foot {
  border-top: 1px solid var(--gray-200, #e2e8f0);
  padding-top: 20px;
  display: flex; gap: 24px; flex-wrap: wrap;
  align-items: flex-start; justify-content: space-between;
}
.fs-foot-copy { flex: 1 1 380px; min-width: 260px; }
.fs-foot-copy .auth-subtitle { margin-top: 0; }
.fs-foot-cta { flex: 0 0 auto; min-width: 210px; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 720px) {
  #first-scan.fs-wide { max-width: 540px; }
  .fs-result-cta, .fs-foot-cta { width: 100%; }
  .fs-hero-label { margin-left: 0; width: 100%; }
  .fs-hero-score { flex-wrap: wrap; }
}

/* SG_FIRSTRUN_HIDDEN_FIX (2026-09-21): the UA rule for the `hidden` attribute is
   [hidden]{display:none} at USER-AGENT origin, so ANY author `display` declaration beats it.
   .fs-result-cta / .fs-result-foot are display:flex and .fs-engines/.fs-cats/.fs-notes are
   display:grid, so el.hidden = true was a silent no-op on exactly the elements renderFailed()
   hides — a failed scan still showed both "Continue to checkout" CTAs. Caught by the failure
   fixture in the browser harness, not by reading the code. */
#first-scan [hidden] { display: none !important; }

/* ── SG_FIRSTRUN_GATE_V1 (2026-09-22): the gated first-run result ──────────────────────────
   Locked = the number exists but is not in the response. It must not look like "couldn't
   measure" (.is-pending, dashed + muted) and must not look like a real zero, so it gets its own
   vocabulary: solid border, a padlock, an accent-tinted surface, no bar. Placeholder rival chips
   carry bullet glyphs only (the names are never sent), so the blur hides nothing real. */
.fs-banner {
  margin: 16px 0 0;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  border: 1px solid var(--gray-200, #e2e8f0);
  background: var(--gray-50, #f8fafc);
  color: var(--gray-700, #334155);
}
.fs-banner.is-wait { border-color: #99f6e4; background: #f0fdfa; color: #115e59; }
.fs-banner.is-wait::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 9px;
  vertical-align: -1px; border-radius: 50%;
  border: 2px solid #5eead4; border-top-color: #0d9488;
  animation: fs-spin 0.9s linear infinite;
}
.fs-banner.is-ok   { border-color: #86efac; background: #f0fdf4; color: #166534; }
.fs-banner.is-warn { border-color: #fcd34d; background: #fffbeb; color: #92400e; }
.fs-banner.is-info { border-color: var(--gray-200, #e2e8f0); background: var(--gray-50, #f8fafc); }
@keyframes fs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fs-banner.is-wait::before { animation: none; } }

.fs-lock {
  display: inline-block; width: 13px; height: 15px; margin-right: 7px; vertical-align: -2px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}
.fs-engine.is-locked { background: #f7fdfc; border-color: #ccfbf1; }
.fs-engine.is-locked .fs-engine-val {
  font-family: inherit; font-size: 0.92rem; font-weight: 600; line-height: 1.3;
  color: #0f766e;
}

.fs-rivals { margin: 0 0 26px; }
.fs-rivals-lede { margin: 0 0 12px; font-size: 0.9rem; color: var(--gray-600, #475569); }
.fs-rival-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fs-rival {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--gray-200, #e2e8f0); background: #fff;
}
.fs-rival-name { font-size: 0.875rem; font-weight: 600; color: var(--gray-900, #0f172a); }
.fs-rival-by { font-size: 0.72rem; color: var(--gray-500, #64748b); }
.fs-rival.is-locked { background: var(--gray-50, #f8fafc); }
.fs-rival.is-locked .fs-rival-name {
  color: var(--gray-400, #94a3b8); letter-spacing: 0.12em; filter: blur(2.5px);
  user-select: none;
}
.fs-rival-more {
  display: inline-flex; align-items: center; padding: 7px 4px;
  font-size: 0.8rem; font-weight: 600; color: var(--gray-500, #64748b);
}

.fs-unlock {
  display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  margin: 6px 0 0;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}
.fs-unlock-copy { flex: 1 1 380px; min-width: 260px; }
.fs-unlock-copy .auth-subtitle { margin-top: 0; }
.fs-unlock-copy .auth-hint { margin-bottom: 12px; }
.fs-unlock-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fs-unlock-list li {
  position: relative; padding-left: 26px;
  font-size: 0.92rem; line-height: 1.4; color: var(--gray-800, #1e293b);
}
.fs-unlock-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #ccfbf1 no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}
.fs-unlock .auth-meta { margin: 0; text-align: center; }

@media (max-width: 720px) {
  .fs-unlock { padding: 18px 16px; }
  .fs-unlock-copy, .fs-unlock .fs-foot-cta { min-width: 0; flex-basis: 100%; }
  .fs-unlock .fs-foot-cta { width: 100%; }
  .fs-result-cta .auth-btn, .fs-foot-cta .auth-btn { width: 100%; text-align: center; }
}
/* The full-report link is the headline of the unlocked footer, not fine print. */
.fs-result-foot .fs-foot-copy .auth-meta { text-align: left; margin-top: 10px; }
.fs-result-foot [data-fs-el="snapshot"] { font-weight: 600; font-size: 0.95rem; }

/* ── SG_FREE_SCAN_V1 (2026-09-22): ?page=free-scan, the domain-first free-score door ───────── */
#free-scan [hidden] { display: none !important; }
.fsv-eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-accent-strong, #0f766e);
}
.fsv-facts {
  list-style: none; padding: 0; margin: 20px 0 12px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.fsv-facts li {
  padding: 10px 12px; border-radius: 10px;
  background: var(--gray-50, #f8fafc); border: 1px solid var(--gray-200, #e2e8f0);
  font-size: 0.8rem; line-height: 1.35; color: var(--gray-600, #475569);
}
.fsv-facts strong { display: block; font-size: 0.9rem; color: var(--gray-900, #0f172a); margin-bottom: 2px; }
.fsv-target {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
  margin: 0 0 14px; padding: 9px 12px; border-radius: 10px;
  background: #f0fdfa; border: 1px solid #ccfbf1;
  font-size: 0.875rem; color: #134e4a;
}
.fsv-target-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #0f766e; }
.fsv-target strong { color: var(--gray-900, #0f172a); overflow-wrap: anywhere; }
.fsv-target-sep { color: #5eead4; }
.fsv-edit {
  margin-left: auto; border: 0; background: none; padding: 0;
  font: inherit; font-size: 0.8rem; font-weight: 600; color: #0f766e; text-decoration: underline; cursor: pointer;
}
@media (max-width: 480px) {
  .fsv-facts { grid-template-columns: 1fr; }
}
/* `.auth-form label` (column) outranks `.auth-consent` (row), so the checkbox sat on its own line
   above its sentence. Scoped to this page; the signup page has the same quirk and is left alone. */
#free-scan .auth-form label.auth-consent { flex-direction: row; align-items: flex-start; }
/* SG_FREE_SCAN_V1: on first-scan, a visitor who already answered step 1 on ?page=free-scan sees a
   summary line instead of the seed form, sub-copy and skip link — straight to their questions. */
#first-scan.fs-prefilled [data-fs-form="seed"],
#first-scan.fs-prefilled [data-fs-view="confirm"] > .auth-sub { display: none; }
/* SG_SIGNUP_STREAMLINE_WS5 (2026-09-29): the skip link stays visible on the prefilled path too —
   hiding it made the "skippable" free-scan door the one path with no way out (Codex review C1). */


/* SG_SIGNUP_STREAMLINE_WS5 (2026-09-29): ?page=plans + the shared ladder. The 420px .auth-shell forced
   the 6-card ladder into ONE column on every screen (auth.css:17-23 beat .auth-card-wide). Widen the
   shell for the plans page only, same :has() pattern as .auth-cols (860px) / .auth-cols-v3 (1180px). */
.auth-shell:has(#plans) { max-width: 1080px; }
#plans.auth-card { max-width: none; }
#plans .sg-billing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }   /* 5 tiers + Enterprise = 2 even rows */
#plans .sg-billing-h3 { display: none; }   /* the page title already says it */
/* The price wrapper spans (data-period) were caught by `.sg-billing-price span` (13px, grey) — the
   whole price rendered as small print, on the account page too. Only the "/mo" suffix is small. */
.sg-billing-price > span[data-period] { font-size: inherit; font-weight: inherit; color: inherit; margin-left: 0; }
.sg-billing-card { position: relative; }
.sg-billing-card.is-recommended { border-color: var(--accent-600, #0f766e); box-shadow: 0 0 0 1px var(--accent-600, #0f766e); }
.sg-billing-badge { position: absolute; top: -10px; left: 14px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-600, #0f766e); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.sg-billing-note { margin: 4px 0 12px; font-size: 13px; color: var(--gray-600, #475569); }
.sg-billing-trial-note { margin: -4px 0 0; font-size: 12px; color: var(--gray-500, #64748b); text-align: center; }
.sg-billing-portal-cta { margin-top: 14px; }
@media (max-width: 860px) { #plans .sg-billing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  #plans .sg-billing-grid { grid-template-columns: 1fr 1fr; }
  #plans .sg-billing-feats li:nth-child(n+5) { display: none; } /* keep phone cards short: brands, engines, prompts, credits */
  #plans .sg-billing-card { padding: 14px; }
  #plans .sg-billing-card .auth-btn { padding: 10px 8px; font-size: 14px; }
}
@media (max-width: 380px) { #plans .sg-billing-grid { grid-template-columns: 1fr; } }
/* SG_SIGNUP_STREAMLINE_WS5: the account page carries the same ladder — give it room for 3 columns. */
.auth-shell:has([data-ladder-mount="account"]) { max-width: 820px; }
.auth-shell:has([data-ladder-mount="account"]) .auth-card-wide { max-width: none; }

/* SG_SIGNUP_STREAMLINE WS4 (2026-09-29): door-1 signup screen — website field, one-line plan summary,
   collapsed picker. The 3-card picker is still here, behind "Change". */
#signup-trial .auth-site-wrap { margin: 4px 0 14px; }
#signup-trial .auth-site-field { font-weight: 600; }
#signup-trial .auth-site-field small { font-weight: 400; }
.auth-field-error { color: var(--color-danger, #b91c1c); font-size: 12px; font-weight: 500; }
.auth-plan-summary { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--gray-200, #e2e8f0); border-radius: 10px;
  background: var(--gray-50, #f8fafc); font-size: 14px; line-height: 1.5; }
.auth-plan-summary p { margin: 0; }
.auth-plan-summary-note { margin-top: 4px !important; font-size: 12.5px; color: var(--gray-500, #64748b); }
.auth-plan-change { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--accent-600, #0f766e);
  font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
#signup-trial .auth-plans[hidden] { display: none; }
#signup-trial .auth-plans { margin-bottom: 14px; }


/* ── SG_FREESCAN_REDESIGN_V1 (2026-10-01): free-score door, design by GPT-6 Astra to match the homepage. Page-scoped to #free-scan. ── */
/* Free-score door — all overrides are page-scoped. */

.auth-body:has(#free-scan) {
  box-sizing: border-box;
  display: block;
  min-height: 100vh;
  margin: 0;
  padding: 28px 32px 64px;
  background: #0b0f14;
  color: #f5f7fa;
  font-family: "DM Sans", system-ui, sans-serif;
}

.auth-body:has(#free-scan) > .auth-shell {
  width: 100%;
  max-width: 1160px;
  min-width: 0;
  margin: 0 auto;
  gap: 48px;
}

.auth-body:has(#free-scan) > .auth-shell > .auth-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin: 0;
  color: #f5f7fa;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-align: left;
  text-decoration: none;
}

.auth-body:has(#free-scan) > .auth-shell > .auth-brand::before {
  content: "G";
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-body:has(#free-scan) > .auth-shell > .auth-brand:focus-visible {
  outline: 3px solid #5eead4;
  outline-offset: 5px;
  border-radius: 4px;
}

#free-scan {
  --fsv-bg: #0b0f14;
  --fsv-text: #f5f7fa;
  --fsv-muted: #aebbc9;
  --fsv-mint: #5eead4;
  --fsv-teal: #0f766e;
  --fsv-ink: #14202e;
  --fsv-light-muted: #475569;
  --fsv-border: #d8e0e7;
  --fsv-ring: #5eead4;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 510px);
  grid-template-areas:
    "intro panel"
    "example panel";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 32px 64px;

  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--fsv-text);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

#free-scan,
#free-scan *,
#free-scan *::before,
#free-scan *::after {
  box-sizing: border-box;
}

#free-scan [hidden] {
  display: none !important;
}

#free-scan :is(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--fsv-ring);
  outline-offset: 3px;
}

#free-scan a {
  text-underline-offset: 3px;
}

#free-scan button,
#free-scan input {
  font-family: inherit;
}

#free-scan .fsv-intro {
  grid-area: intro;
  min-width: 0;
  padding-top: 14px;
}

#free-scan .fsv-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--fsv-mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#free-scan .fsv-eyebrow::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

#free-scan #fsv-title {
  margin: 0;
  color: var(--fsv-text);
  font-family: inherit;
  font-size: clamp(2.5rem, 4.8vw, 4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.055em;
  overflow-wrap: normal;
}

#free-scan #fsv-title span {
  color: var(--fsv-mint);
}

#free-scan .fsv-lede {
  max-width: 48ch;
  margin: 24px 0 0;
  color: var(--fsv-muted);
  font-size: 17px;
  line-height: 1.65;
}

#free-scan .fsv-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

#free-scan .fsv-facts li {
  flex: 1 1 120px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fsv-muted);
  font-size: 12px;
  line-height: 1.5;
}

#free-scan .fsv-facts strong {
  display: block;
  margin-bottom: 4px;
  color: var(--fsv-text);
  font-size: 14px;
  font-weight: 600;
}

#free-scan .fsv-facts span {
  display: block;
}

#free-scan .fsv-included {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid #29333f;
  color: var(--fsv-muted);
  font-size: 13px;
  line-height: 1.65;
}

/* White form surface. Native fields and Turnstile remain light. */

#free-scan .fsv-panel {
  --fsv-ring: #0f766e;
  grid-area: panel;
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--fsv-border);
  border-radius: 20px;
  background: #fff;
  color: var(--fsv-ink);
  color-scheme: light;
  box-shadow: 0 18px 60px rgb(0 0 0 / 18%);
}

#free-scan .fsv-panel > div {
  min-width: 0;
}

#free-scan .fsv-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--fsv-border);
  list-style: none;
}

#free-scan .fsv-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--fsv-light-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

#free-scan .fsv-step-number {
  display: inline-flex;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid #94a3b8;
  border-radius: 50%;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

#free-scan .fsv-steps li[aria-current="step"] {
  color: var(--fsv-ink);
  font-weight: 600;
}

#free-scan .fsv-steps li[aria-current="step"] .fsv-step-number {
  border-color: var(--fsv-teal);
  background: var(--fsv-teal);
  color: #fff;
}

#free-scan .fsv-step-complete .fsv-step-number {
  border-color: var(--fsv-teal);
  background: #f0fdfa;
  color: var(--fsv-teal);
}

#free-scan .auth-title {
  margin: 0 0 12px;
  color: var(--fsv-ink);
  font-family: inherit;
  font-size: clamp(1.625rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

#free-scan .auth-sub {
  margin: 0 0 24px;
  color: var(--fsv-light-muted);
  font-size: 15px;
  line-height: 1.65;
}

#free-scan .auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  margin: 0;
}

#free-scan .fsv-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

#free-scan .auth-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

#free-scan .auth-form input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #8292a3;
  border-radius: 10px;
  background: #fff;
  color: var(--fsv-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: none;
}

#free-scan .auth-form input::placeholder {
  color: #64748b;
  opacity: 1;
}

#free-scan .auth-form input:focus {
  border-color: var(--fsv-teal);
  outline: 3px solid var(--fsv-teal);
  outline-offset: 2px;
}

#free-scan .auth-hint {
  margin: 0;
  color: var(--fsv-light-muted);
  font-size: 13px;
  line-height: 1.6;
}

#free-scan .auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

#free-scan .auth-btn-primary {
  background: var(--fsv-teal);
  color: #fff;
}

#free-scan .auth-btn-primary:hover:not(:disabled) {
  background: #115e59;
  color: #fff;
}

#free-scan .auth-btn:disabled {
  opacity: 1;
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #475569 !important; /* theme-override.css forces [class*="btn-primary"] white !important */
  cursor: wait;
}

#free-scan .auth-btn-google {
  border-color: #8292a3;
  background: #fff;
  color: var(--fsv-ink);
}

#free-scan .auth-btn-google:hover {
  background: #f1f5f9;
  color: var(--fsv-ink);
}

#free-scan .auth-btn-google svg {
  flex: 0 0 18px;
}

#free-scan .fsv-next-note {
  margin: -7px 0 0;
  color: var(--fsv-light-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

#free-scan .auth-status {
  min-height: 0;
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* Fable P3: no display:none on the empty live region — a region that enters the a11y tree with its
   text is skipped by screen readers. Keep it present, just zero-height while empty. */
#free-scan .auth-status:empty {
  min-height: 0;
  margin: 0;
}

#free-scan .auth-status-error {
  color: #b91c1c;
}

#free-scan .auth-status-warn {
  color: #92400e;
}

#free-scan .auth-status-ok {
  color: #047857;
}

#free-scan .auth-meta {
  margin: 24px 0 0;
  color: var(--fsv-light-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

#free-scan .fsv-panel a:not(.auth-btn) {
  color: var(--fsv-teal);
  text-decoration: underline;
}

#free-scan .fsv-target {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
  margin: 0 0 22px;
  padding: 10px 12px;
  border: 1px solid #b7ded7;
  border-radius: 12px;
  background: #f0fdfa;
  color: #134e4a;
  font-size: 13px;
  line-height: 1.5;
}

#free-scan .fsv-target-label {
  color: var(--fsv-teal);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#free-scan .fsv-target strong {
  min-width: 0;
  color: var(--fsv-ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

#free-scan [data-fsv-el="industry"] {
  min-width: 0;
  overflow-wrap: anywhere;
}

#free-scan .fsv-target-sep {
  color: #0f766e;
}

#free-scan .fsv-edit {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  margin: 0 0 0 auto;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fsv-teal);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

#free-scan .fsv-edit:hover {
  background: #ccfbf1;
}

#free-scan .fsv-account-note,
#free-scan .fsv-noscript {
  margin: 0 0 22px;
  padding: 12px 14px;
  border-left: 3px solid var(--fsv-teal);
  background: #f0fdfa;
  color: #134e4a;
  font-size: 13px;
  line-height: 1.6;
}

#free-scan .auth-consent-note {
  margin: 12px 0 0;
  padding: 0;
  color: var(--fsv-light-muted);
  font-size: 13px;
  line-height: 1.65;
}

#free-scan .auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: #475569;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#free-scan .auth-divider::before,
#free-scan .auth-divider::after {
  height: 1px;
  background: var(--fsv-border);
}

#free-scan .auth-pw-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

#free-scan .auth-form .auth-pw-wrap input {
  padding-right: 76px;
}

#free-scan .auth-pw-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fsv-teal);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  transform: translateY(-50%);
  cursor: pointer;
}

#free-scan .auth-pw-toggle:hover {
  background: #f0fdfa;
}

#free-scan .auth-pw-meter {
  display: flex;
  gap: 4px;
  margin: 2px 0 0;
}

#free-scan .auth-pw-meter i {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
}

#free-scan .auth-pw-meter i.is-on.tone-warn {
  background: #b45309;
}

#free-scan .auth-pw-meter i.is-on.tone-mid {
  background: #a16207;
}

#free-scan .auth-pw-meter i.is-on.tone-ok {
  background: #0f766e;
}

#free-scan .auth-form .auth-pw-hint {
  color: #475569;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

#free-scan .auth-form .auth-pw-hint.is-warn {
  color: #92400e;
}

#free-scan .auth-form .auth-pw-hint.is-ok {
  color: #047857;
}

#free-scan .cf-turnstile {
  width: 100%;
  min-width: 0;
  margin: 0;
}

#free-scan .auth-form label.auth-consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: #475569;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  cursor: pointer;
}

#free-scan .auth-consent input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--fsv-teal);
  cursor: pointer;
}

#free-scan .auth-consent > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

#free-scan .auth-consent strong {
  color: #334155;
  font-weight: 600;
}

/* Static, explicitly illustrative report. */

#free-scan .fsv-example {
  --fsv-ring: #0f766e;
  grid-area: example;
  min-width: 0;
  margin: 0;
  border: 1px solid #d8e0e7;
  border-radius: 16px;
  background: #fff;
  color: var(--fsv-ink);
  box-shadow: 0 0 0 6px rgb(255 255 255 / 3%);
}

#free-scan .fsv-example figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid #d8e0e7;
  border-radius: 15px 15px 0 0;
  background: #f7f9fb;
}

#free-scan .fsv-example-product {
  color: #14202e;
  font-size: 12px;
  font-weight: 600;
}

#free-scan .fsv-example-badge {
  padding: 4px 6px;
  border: 1px solid #d8e0e7;
  border-radius: 4px;
  color: #475569;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#free-scan .fsv-example-body {
  padding: 20px;
}

#free-scan .fsv-example-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

#free-scan .fsv-example-label {
  margin: 0;
  color: #475569;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#free-scan .fsv-example-domain {
  margin: 4px 0 0;
  color: #14202e;
  font-size: 14px;
  font-weight: 600;
}

#free-scan .fsv-example-score {
  margin: 0;
  color: #0f766e;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

#free-scan .fsv-example-score span {
  color: #475569;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

#free-scan .fsv-example-engines {
  display: grid;
  gap: 14px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

#free-scan .fsv-example-engines li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  color: #334155;
  font-size: 12px;
  line-height: 1.5;
}

#free-scan .fsv-example-engines strong {
  color: #14202e;
  font-size: 12px;
  font-weight: 600;
}

#free-scan .fsv-example-track {
  grid-column: 1 / -1;
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
}

#free-scan .fsv-example-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0f766e;
}

#free-scan .fsv-example-half {
  width: 50%;
}

#free-scan .fsv-example-quarter {
  width: 25%;
}

#free-scan .fsv-example-three-quarters {
  width: 75%;
}

#free-scan .fsv-example-foot {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid #d8e0e7;
  color: #475569;
  font-size: 12px;
  line-height: 1.6;
}

#free-scan .fsv-example-disclaimer {
  margin: 8px 0 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.5;
}

/* Single column: keep the form ahead of the example in reading order. */

@media (max-width: 959px) {
  .auth-body:has(#free-scan) {
    padding: 24px 20px 48px;
  }

  .auth-body:has(#free-scan) > .auth-shell {
    max-width: 600px;
    gap: 32px;
  }

  #free-scan {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "panel"
      "example";
    grid-template-rows: auto;
    gap: 28px;
  }

  #free-scan .fsv-intro {
    padding-top: 0;
  }

  #free-scan #fsv-title {
    font-size: clamp(2.5rem, 7.5vw, 3.5rem);
  }
}

@media (max-width: 599px) {
  .auth-body:has(#free-scan) {
    padding: 22px 16px 40px;
  }

  .auth-body:has(#free-scan) > .auth-shell {
    gap: 28px;
  }

  #free-scan .fsv-eyebrow {
    margin-bottom: 16px;
    font-size: 10px;
  }

  #free-scan .fsv-lede {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.65;
  }

  #free-scan .fsv-facts {
    gap: 16px;
    margin-top: 20px;
  }

  #free-scan .fsv-facts li {
    flex-basis: 125px;
  }

  #free-scan .fsv-included {
    margin-top: 20px;
    padding-top: 16px;
    font-size: 12px;
  }

  #free-scan .fsv-panel {
    padding: 24px 16px;
    border-radius: 16px;
  }

  #free-scan .fsv-steps {
    gap: 8px;
    margin-bottom: 24px;
  }

  #free-scan .fsv-example-body {
    padding: 18px;
  }
}

/* 320px viewport: 320 - 16px padding = 304px for flexible Turnstile. */

@media (max-width: 379px) {
  .auth-body:has(#free-scan) {
    padding: 20px 0 40px;
  }

  .auth-body:has(#free-scan) > .auth-shell > .auth-brand {
    margin-inline: 16px;
  }

  #free-scan .fsv-intro {
    margin-inline: 16px;
  }

  #free-scan .fsv-panel {
    padding: 24px 8px;
    border-inline: 0;
    border-radius: 0;
  }

  #free-scan .fsv-example {
    margin-inline: 12px;
  }

  #free-scan .fsv-example figcaption {
    padding-inline: 14px;
  }

  #free-scan .fsv-example-body {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #free-scan *,
  #free-scan *::before,
  #free-scan *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* ── SG_FREESCAN_OPEN_RESULT_V1 (2026-10-01): first-scan trial pitch for free-score-door accounts. Scoped to #first-scan [data-fs-gate="pitch"]. ── */
/* Only the new first-scan pitch regions receive these styles. */

#first-scan [data-fs-gate="pitch"] {
  --fs-pitch-focus: #0f766e;
  box-sizing: border-box;
  min-width: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.55;
}

#first-scan [data-fs-gate="pitch"] *,
#first-scan [data-fs-gate="pitch"] *::before,
#first-scan [data-fs-gate="pitch"] *::after {
  box-sizing: border-box;
}

#first-scan [data-fs-gate="pitch"][hidden] {
  display: none !important;
}

#first-scan [data-fs-gate="pitch"] form {
  width: 100%;
  min-width: 0;
  margin: 0;
}

#first-scan [data-fs-gate="pitch"] .auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: background-color 120ms ease;
}

#first-scan [data-fs-gate="pitch"] .auth-btn-primary {
  background: #0f766e;
  color: #fff;
}

#first-scan [data-fs-gate="pitch"] .auth-btn-primary:hover:not(:disabled) {
  background: #115e59;
  color: #fff;
}

#first-scan [data-fs-gate="pitch"] .auth-btn:disabled {
  opacity: 1;
  background: #e2e8f0;
  color: #475569 !important;
  cursor: wait;
}

#first-scan [data-fs-gate="pitch"] :is(a, button):focus-visible {
  outline: 3px solid var(--fs-pitch-focus);
  outline-offset: 4px;
}

#first-scan [data-fs-gate="pitch"] .auth-meta {
  margin: 10px 0 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

/* Header CTA: compact, on the existing light report surface. */

#first-scan [data-fs-gate="pitch"].fs-pitch-head {
  display: flex;
  flex: 0 1 290px;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#first-scan [data-fs-gate="pitch"] .fs-pitch-kicker {
  margin: 0 0 8px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

/* Footer pitch: homepage colors, after the complete report. */

#first-scan [data-fs-gate="pitch"].fs-pitch-footer {
  --fs-pitch-focus: #5eead4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
  align-items: center;
  gap: 28px;
  width: 100%;
  margin: 28px 0 0;
  padding: 30px;
  border: 1px solid #29333f;
  border-radius: 18px;
  background: #0b0f14;
  color: #f5f7fa;
}

#first-scan [data-fs-gate="pitch"] .fs-pitch-copy,
#first-scan [data-fs-gate="pitch"] .fs-pitch-checkout {
  min-width: 0;
}

#first-scan [data-fs-gate="pitch"] .fs-pitch-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #5eead4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#first-scan [data-fs-gate="pitch"] .fs-pitch-eyebrow::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

#first-scan [data-fs-gate="pitch"] h2 {
  margin: 0 0 12px;
  color: #f5f7fa;
  font-family: inherit;
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

#first-scan [data-fs-gate="pitch"] .fs-pitch-lede {
  max-width: 48ch;
  margin: 0;
  color: #aebbc9;
  font-size: 14px;
  line-height: 1.7;
}

#first-scan [data-fs-gate="pitch"] .fs-pitch-benefits {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

#first-scan [data-fs-gate="pitch"] .fs-pitch-benefits li {
  position: relative;
  margin: 0;
  padding-left: 23px;
  color: #f5f7fa;
  font-size: 13px;
  line-height: 1.6;
}

#first-scan [data-fs-gate="pitch"] .fs-pitch-benefits li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 2px;
  width: 10px;
  height: 6px;
  border-bottom: 2px solid #5eead4;
  border-left: 2px solid #5eead4;
  transform: rotate(-45deg);
}

#first-scan [data-fs-gate="pitch"] .fs-pitch-checkout {
  padding-left: 24px;
  border-left: 1px solid #29333f;
}

#first-scan [data-fs-gate="pitch"] .fs-pitch-offer {
  display: grid;
  gap: 5px;
  margin: 0 0 18px;
  text-align: center;
}

#first-scan [data-fs-gate="pitch"] .fs-pitch-offer strong {
  color: #f5f7fa;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

#first-scan [data-fs-gate="pitch"] .fs-pitch-offer span {
  color: #aebbc9;
  font-size: 12px;
  line-height: 1.6;
}

#first-scan [data-fs-gate="pitch"].fs-pitch-footer .auth-btn-primary {
  background: #5eead4;
  color: #0b0f14;
}

#first-scan [data-fs-gate="pitch"].fs-pitch-footer .auth-btn-primary:hover:not(:disabled) {
  background: #99f6e4;
  color: #0b0f14;
}

#first-scan [data-fs-gate="pitch"].fs-pitch-footer .auth-btn:disabled {
  background: #cbd5e1;
  color: #334155 !important;
}

#first-scan [data-fs-gate="pitch"].fs-pitch-footer .auth-meta {
  color: #aebbc9;
}

@media (max-width: 720px) {
  #first-scan [data-fs-gate="pitch"].fs-pitch-head {
    flex-basis: 100%;
    width: 100%;
  }

  #first-scan [data-fs-gate="pitch"].fs-pitch-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px 18px;
  }

  #first-scan [data-fs-gate="pitch"] .fs-pitch-checkout {
    padding: 22px 0 0;
    border-top: 1px solid #29333f;
    border-left: 0;
  }
}

@media (max-width: 379px) {
  #first-scan [data-fs-gate="pitch"].fs-pitch-footer {
    padding: 22px 12px;
  }

  #first-scan [data-fs-gate="pitch"] .auth-btn {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #first-scan [data-fs-gate="pitch"] .auth-btn {
    transition: none;
  }
}

/* SG_FREESCAN_OPEN_RESULT_V1 render fixes (2026-10-01 harness): an older first-scan rule kept the mint
   button's text white (1.6:1), and teal links on the dark panel read at ~3:1. */
#first-scan section.fs-pitch-footer[data-fs-gate="pitch"] form .auth-btn-primary,
#first-scan section.fs-pitch-footer[data-fs-gate="pitch"] form .auth-btn-primary:hover:not(:disabled) { color: #0b0f14 !important; } /* theme-override.css forces [class*="btn-primary"] { color:#fff !important } */
#first-scan section.fs-pitch-footer[data-fs-gate="pitch"] .auth-meta a { color: #5eead4; }
#first-scan section.fs-pitch-footer[data-fs-gate="pitch"] .fs-pitch-copy [data-fs-el="snapshot-wrap"] {
  text-align: left; margin: 20px 0 0; font-size: 14px;
}
