.sga-page {
  --sga-bg-dark: #001327;
  --sga-bg-dark-2: #002149;
  --sga-bg-light: #f1f5f9;
  --sga-panel: #ffffff;
  --sga-panel-alt: #eef2f7;
  --sga-text: #0f172a;
  --sga-muted: #64748b;
  --sga-line: rgba(15, 23, 42, 0.14);
  --sga-accent: #70ff4e;
  --sga-accent-2: #39ff12;
  --sga-max: 1120px;
  --sga-danger: #ef4444;
  color: var(--sga-text);
  background: var(--sga-bg-light);
}

.sga-page,
.sga-page * {
  box-sizing: border-box;
}

.sga-container {
  width: min(var(--sga-max), calc(100% - 32px));
  margin: 0 auto;
}

.sga-hero {
  padding: 92px 0 42px;
  background: linear-gradient(160deg, var(--sga-bg-dark) 0%, var(--sga-bg-dark-2) 100%);
  color: #ffffff;
}

.sga-nav-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}

.sga-brand-mini {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sga-logo-dot {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--sga-accent-2);
  color: #042015;
  font-size: 0.62rem;
  font-weight: 800;
}

.sga-brand-mini strong {
  display: block;
  font-size: 0.84rem;
  line-height: 1.1;
}

.sga-brand-mini small {
  color: #8aa0bf;
  font-size: 0.68rem;
}

.sga-sign-btn {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #d8e7ff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.sga-hero-copy {
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.sga-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(57, 255, 18, 0.14);
  border: 1px solid rgba(112, 255, 78, 0.6);
  color: #83ff5f;
  font-size: 0.72rem;
  font-weight: 700;
}

.sga-page h1 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.sga-page h1 span {
  color: var(--sga-accent-2);
}

.sga-lead {
  margin: 0 auto 24px;
  color: #ccd9ec;
  max-width: 64ch;
}

.sga-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.sga-form input,
.sga-form button {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.sga-form input {
  padding: 0 16px;
  color: #11263f;
  background: #ffffff;
}

.sga-form button {
  padding: 0 22px;
  font-weight: 700;
  background: var(--sga-accent-2);
  color: #072116;
  cursor: pointer;
}

.sga-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sga-trust {
  margin: 10px 0 0;
  color: #9fb0c7;
  font-size: 0.8rem;
}

.sga-error {
  min-height: 1.2rem;
  margin: 8px 0 0;
  color: #fecaca;
  font-size: 0.85rem;
}

.sga-feature-row {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sga-feature-item {
  text-align: center;
}

.sga-feature-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #65ff48;
  border: 1px solid rgba(101, 255, 72, 0.55);
  background: rgba(101, 255, 72, 0.12);
  box-shadow: 0 4px 12px rgba(57, 255, 18, 0.22);
}

.sga-feature-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sga-feature-item h3 {
  margin: 0 0 4px;
  font-size: 0.94rem;
}

.sga-feature-item p {
  margin: 0;
  color: #9fb0c7;
  font-size: 0.78rem;
}

.sga-loading-screen {
  padding: 70px 0 42px;
  background: linear-gradient(160deg, var(--sga-bg-dark) 0%, var(--sga-bg-dark-2) 100%);
  color: #ffffff;
}

.sga-state-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.75rem;
}

.sga-state-bar a {
  color: #bfd1ea;
  text-decoration: none;
  font-weight: 600;
}

.sga-state-bar span {
  color: #8ca4c6;
  font-weight: 600;
}

.sga-state-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sga-run-new-scan {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e3a5f;
  border-radius: 999px;
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.sga-run-new-scan:hover {
  border-color: #94a3b8;
}

.sga-state-bar-light {
  margin-bottom: 10px;
}

.sga-state-bar-light a {
  color: #1e3a5f;
}

.sga-state-bar-light span {
  color: #4a6687;
}

.sga-loading-head {
  text-align: center;
}

.sga-loading-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 16px;
  background: var(--sga-accent-2);
  color: #042015;
  box-shadow: 0 12px 24px rgba(57, 255, 18, 0.24);
}

.sga-loading-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: sga-spin 1.1s linear infinite;
}

@keyframes sga-spin {
  to {
    transform: rotate(360deg);
  }
}

.sga-loading-head h2 {
  margin: 0 0 6px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.sga-loading-head p {
  margin: 0;
  color: #c1cfe4;
}

.sga-loading-card {
  margin: 32px auto 18px;
  max-width: 760px;
  border-radius: 28px;
  padding: 30px 34px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 32, 64, 0.72);
  backdrop-filter: blur(4px);
}

.sga-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sga-step-item {
  display: grid;
  grid-template-columns: 54px 1fr 20px;
  gap: 14px;
  align-items: center;
  min-height: 62px;
  opacity: 0.48;
}

.sga-step-dot {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.16);
  display: grid;
  place-items: center;
}

.sga-step-glyph {
  width: 21px;
  height: 21px;
  stroke: #c9d6e7;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
}

.sga-step-label {
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 700;
}

.sga-step-status {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.5);
  display: grid;
  place-items: center;
  color: #0a271a;
  font-size: 0.65rem;
  font-weight: 800;
}

.sga-step-item.is-active,
.sga-step-item.is-done {
  opacity: 1;
}

.sga-step-item.is-active .sga-step-dot,
.sga-step-item.is-done .sga-step-dot {
  border-color: rgba(112, 255, 78, 0.5);
  background: var(--sga-accent);
  box-shadow: 0 10px 26px rgba(57, 255, 18, 0.25);
}

.sga-step-item.is-active .sga-step-dot::before,
.sga-step-item.is-done .sga-step-dot::before {
  content: none;
}

.sga-step-item.is-active .sga-step-glyph,
.sga-step-item.is-done .sga-step-glyph {
  stroke: #0b281a;
}

.sga-step-item.is-active .sga-step-label,
.sga-step-item.is-done .sga-step-label {
  color: var(--sga-accent);
}

.sga-step-item.is-done .sga-step-status {
  border-color: var(--sga-accent);
  background: var(--sga-accent);
}

.sga-loading-progress-track {
  margin-top: 20px;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.sga-loading-progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sga-accent), var(--sga-accent-2));
  transition: width 340ms ease;
}

.sga-loading-foot {
  text-align: center;
  color: #a6b8d0;
  margin: 0;
}

.sga-results,
.sga-lock,
.sga-content {
  padding: 22px 0 36px;
}

.sga-results {
  padding-top: 48px;
}

.sga-panel {
  background: var(--sga-panel);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 14px;
}

.sga-summary-panel small {
  color: #64748b;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.sga-summary-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.sga-summary-panel h2 {
  margin: 4px 0 6px;
  font-size: 3rem;
  line-height: 1;
}

.sga-summary-panel h2 em {
  font-style: normal;
  font-size: 2.2rem;
  color: #64748b;
  font-weight: 600;
}

.sga-summary-panel p {
  margin: 0;
  color: #334155;
}

.sga-domain-row {
  margin-top: 8px !important;
  font-size: 0.8rem;
  color: #64748b !important;
}

.sga-domain-row strong {
  color: #1e3a5f;
}

.sga-summary-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.sga-summary-stat-grid div {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.sga-summary-stat-grid strong {
  display: block;
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 4px;
  color: #0b2f58;
}

.sga-summary-stat-grid span {
  color: #64748b;
  font-size: 1rem;
}

.sga-metric-label {
  display: block;
  color: #667487 !important;
  font-size: 0.95rem !important;
  margin-bottom: 6px;
}

.sga-score-block #schemaScoreValue {
  color: #ef3340;
}

.sga-score-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.88rem;
}

.sga-score-pill.poor {
  color: #c81e2b;
  background: #ffe6e8;
  border: 1px solid #ffd0d5;
}

.sga-score-pill.moderate {
  color: #a16207;
  background: #fff3da;
  border: 1px solid #fde7b0;
}

.sga-score-pill.strong {
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

#schemaCoverageEstimate,
#schemaOpportunityCount {
  color: #0b2f58;
}

.sga-summary-panel #schemaScoreSummary {
  margin-top: 10px;
  color: #6a7789;
  font-size: 0.95rem;
}

.sga-panel h3 {
  margin: 0 0 2px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f2848;
}

.sga-panel-subtitle {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 0.85rem;
}

.sga-table-wrap {
  overflow-x: auto;
}

.sga-panel table {
  width: 100%;
  border-collapse: collapse;
}

.sga-panel th {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.sga-panel td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.84rem;
  color: #1e293b;
  vertical-align: middle;
  white-space: nowrap;
}

.sga-panel td.sga-wrap {
  white-space: normal;
}

.sga-samples-panel {
  padding: 0;
  overflow: hidden;
}

.sga-samples-panel h3,
.sga-samples-panel .sga-panel-subtitle {
  padding-left: 20px;
  padding-right: 20px;
}

.sga-samples-panel h3 {
  padding-top: 20px;
}

.sga-samples-panel .sga-panel-subtitle {
  margin-bottom: 0;
  padding-bottom: 16px;
}

.sga-samples-panel .sga-table-wrap {
  border-top: 1px solid #e7ecf3;
}

.sga-samples-table th,
.sga-samples-table td {
  padding-left: 20px;
  padding-right: 20px;
}

.sga-samples-table tbody tr:last-child td {
  border-bottom: 0;
}

.sga-samples-table th {
  font-size: 0.77rem;
  color: #475569;
}

.sga-samples-table td {
  font-size: 0.95rem;
}

.sga-status {
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 700;
}

.sga-status.detected {
  color: #15803d;
  background: rgba(34, 197, 94, 0.16);
}

.sga-status.missing {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.15);
}

.sga-opportunity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.sga-opps-panel {
  padding: 0;
  overflow: hidden;
}

.sga-opps-head {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 22px 24px;
}

.sga-opps-head h3 {
  margin: 0 0 4px;
  font-size: 2.5rem;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  line-height: 1.15;
}

.sga-opps-head .sga-panel-subtitle {
  margin: 0;
  font-size: 1.02rem;
}

.sga-opp-head-meta {
  font-size: 0.82rem;
  color: #64748b;
  white-space: nowrap;
  padding-top: 4px;
}

.sga-opportunity-cards {
  display: grid;
  gap: 16px;
  padding: 18px 24px 20px;
  background: #f8fafc;
}

.sga-opportunity-card {
  border: 1px solid #d7dee8;
  border-radius: 18px;
  background: #ffffff;
  padding: 26px 26px 22px;
}

.sga-opportunity-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.sga-opp-title-block {
  min-width: 0;
}

.sga-opp-title {
  margin: 0 0 3px;
  font-size: 2rem;
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  font-weight: 700;
  color: #0f345f;
}

.sga-opp-subtitle {
  margin: 0;
  font-size: 1.18rem;
  color: #64748b;
}

.sga-opp-desc {
  margin: 0 0 14px;
  font-size: 1.12rem;
  color: #4b556e;
  line-height: 1.5;
}

.sga-opp-est {
  margin: 0;
  font-size: 1.12rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 7px;
}

.sga-opp-est strong {
  color: #0f345f;
  font-weight: 800;
}

.sga-trend-icon {
  width: 18px;
  height: 18px;
  stroke: #59d82f;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.sga-impact {
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 16px;
  line-height: 1;
}

.sga-impact.high {
  color: #c92923;
  background: #fdeceb;
  border: 1px solid #f5c8c6;
  white-space: nowrap;
}

.sga-impact.medium {
  color: #e09b2d;
  background: #fff7e8;
  border: 1px solid #f2d4a2;
  white-space: nowrap;
}

.sga-impact.low {
  color: #2563eb;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.3);
  white-space: nowrap;
}

.sga-opportunity-card p {
  margin: 0;
  font-size: 0.8rem;
  color: #475569;
}

.sga-viz-group {
  display: grid;
  gap: 9px;
}

.sga-viz-title {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
}

.sga-viz-row {
  display: grid;
  grid-template-columns: 1fr minmax(170px, 2fr) 70px;
  gap: 10px;
  align-items: center;
}

.sga-viz-row label {
  font-size: 0.84rem;
  color: #334155;
}

.sga-viz-bar {
  height: 8px;
  border-radius: 999px;
  background: #dbe3ee;
  overflow: hidden;
}

.sga-viz-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #5df03d, #22c55e);
}

.sga-viz-row strong {
  font-size: 0.8rem;
  color: #3b536e;
}

.sga-coverage-bars {
  display: grid;
  gap: 20px;
  margin-bottom: 18px;
}

.sga-cov-row {
  display: grid;
  gap: 8px;
}

.sga-cov-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sga-cov-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f2848;
}

.sga-cov-value {
  font-size: 0.85rem;
  font-weight: 600;
}

.sga-cov-value.green {
  color: #16a34a;
}

.sga-cov-value.teal {
  color: #0891b2;
}

.sga-cov-bar-track {
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.sga-cov-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 600ms ease;
}

.sga-fill-green {
  background: linear-gradient(90deg, #4ade80, #22c55e);
}

.sga-fill-gradient {
  background: linear-gradient(90deg, #38bdf8, #4ade80, #22c55e);
}

.sga-url-link {
  color: #45b9c9;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.sga-url-link:hover {
  text-decoration: underline;
}

.sga-ext-icon {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.sga-page-type-label {
  font-weight: 700;
  color: #3f3f5d;
  font-size: 1rem;
}

.sga-schema-tags-cell {
  white-space: normal !important;
  min-width: 140px;
}

.sga-schema-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  color: #49b54a;
  background: #f3faf3;
  border: 1px solid #bfe5bf;
  margin: 2px 3px 2px 0;
}

.sga-none-detected {
  color: #9ca3af;
  font-size: 1rem;
}

.sga-row-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.sga-status-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sga-row-status.complete {
  color: #16a34a;
}

.sga-row-status.missing {
  color: #dc2626;
}

.sga-row-status.partial {
  color: #d97706;
}

.sga-viz-note {
  margin: 0;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  line-height: 1.55;
}

.sga-lock-panel {
  background: linear-gradient(130deg, #022641 0%, #01345d 100%);
  border-color: #064e85;
  color: #f2f7ff;
}

.sga-lock-panel small {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #86efac;
  margin-bottom: 8px;
}

.sga-lock-panel h2 {
  margin: 0 0 8px;
}

.sga-lock-panel p {
  margin: 0;
  color: #bed1eb;
  max-width: 60ch;
}

.sga-lock-progress-track {
  margin-top: 12px;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.26);
}

.sga-lock-progress-fill {
  width: 34%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #86efac, #39ff12);
}

.sga-lock-meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #b7cbe5;
  font-size: 0.75rem;
}

.sga-cta-btn {
  margin-top: 14px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--sga-accent-2);
  color: #0a2d1d;
  font-weight: 700;
  cursor: pointer;
}

.sga-lock-bullets {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sga-lock-bullets li {
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 999px;
  padding: 4px 9px;
  color: #c9dbf3;
  font-size: 0.72rem;
}

.sga-light-content {
  padding-top: 56px;
}

.sga-content h2 {
  margin: 0 0 14px;
  text-align: center;
  color: #0f2f52;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.sga-section-lead {
  text-align: center;
  margin: 0 0 22px;
  color: #64748b;
  font-size: 1.02rem;
}

.sga-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sga-benefit-card {
  background: #f2f4f7;
  border: 1px solid #d5dce6;
  border-radius: 22px;
  padding: 22px 24px 20px;
  min-height: 232px;
}

.sga-benefit-icon {
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 16px;
  background: rgba(57, 255, 18, 0.08);
  border: 1px solid rgba(57, 255, 18, 0.35);
  color: #5be238;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1;
}

.sga-icon-gold {
  color: #c6811a;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
}

.sga-icon-blue {
  color: #2563eb;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.38);
}

.sga-icon-purple {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.35);
}

.sga-icon-amber {
  color: #d97706;
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(245, 158, 11, 0.42);
}

.sga-icon-teal {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.38);
}

.sga-icon-indigo {
  color: #4338ca;
  background: rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.36);
}

.sga-benefit-card h4 {
  margin: 0 0 10px;
  color: #17345b;
  letter-spacing: -0.01em;
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  line-height: 1.16;
}

.sga-benefit-card p {
  margin: 0;
  color: #4b556b;
  font-size: 1.05rem;
  line-height: 1.45;
}

.sga-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sga-mini-grid article {
  background: #f8fafc;
  border: 1px solid #d9e3f0;
  border-radius: 10px;
  padding: 12px;
}

.sga-mini-grid h4 {
  margin: 0 0 5px;
  color: #0f2f52;
  font-size: 0.92rem;
}

.sga-mini-grid p {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
}

.sga-schema-panel {
  background: #e7ebf1;
  border: 1px solid #d5dde8;
  border-radius: 22px;
  padding: 18px;
}

.sga-schema-panel h2 {
  text-align: left;
  margin: 4px 0 14px;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
}

.sga-schema-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.sga-schema-card {
  background: #f7f9fb;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px 14px 18px;
  border-left-width: 5px;
  border-left-style: solid;
}

.sga-schema-card h4 {
  margin: 0 0 4px;
  color: #17345b;
  font-size: 1.95rem;
  font-size: clamp(1.2rem, 1.8vw, 1.9rem);
  line-height: 1.15;
}

.sga-schema-card p {
  margin: 0;
  color: #4b556b;
  font-size: 1rem;
  line-height: 1.4;
}

.sga-schema-green {
  border-left-color: #39ff12;
}

.sga-schema-teal {
  border-left-color: #39c1c6;
}

.sga-schema-amber {
  border-left-color: #f4b844;
}

.sga-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.sga-process-grid article {
  text-align: center;
  border: 1px solid #d8dee8;
  border-radius: 16px;
  background: #f7f9fc;
  padding: 22px 20px 20px;
  min-height: 228px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.sga-process-grid span {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  background: var(--sga-accent-2);
  color: #0a2518;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(57, 255, 18, 0.35);
}

.sga-process-grid h4 {
  margin: 0 0 10px;
  color: #17345b;
  font-size: clamp(1.15rem, 1.6vw, 1.8rem);
  line-height: 1.1;
}

.sga-process-grid p {
  margin: 0;
  color: #4b556b;
  font-size: 1.02rem;
  line-height: 1.35;
  max-width: 20ch;
}

.sga-footnote {
  text-align: center;
  margin: 18px 0 0;
  color: #64748b;
  font-size: 1rem;
}

.sga-modal[hidden] {
  display: none;
}

.sga-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
}

.sga-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
}

.sga-modal-card {
  position: relative;
  max-width: 560px;
  margin: 8vh auto 0;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--sga-line);
  z-index: 1;
}

.sga-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: #334155;
}

.sga-modal-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sga-modal-primary,
.sga-modal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.sga-modal-primary {
  background: #0f172a;
  color: #ffffff;
}

.sga-modal-secondary {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid var(--sga-line);
}

.sga-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .sga-summary-top {
    grid-template-columns: 1fr;
  }

  .sga-summary-panel h2 {
    font-size: 2.5rem;
  }

  .sga-summary-panel h2 em {
    font-size: 1.8rem;
  }

  .sga-summary-stat-grid strong {
    font-size: 2.2rem;
  }

  .sga-cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sga-mini-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sga-schema-grid {
    grid-template-columns: 1fr;
  }

  .sga-process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sga-process-grid article {
    min-height: 210px;
  }
}

@media (max-width: 720px) {
  .sga-hero {
    padding-top: 78px;
  }

  .sga-nav-mini {
    margin-bottom: 34px;
  }

  .sga-form {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .sga-form input,
  .sga-form button {
    border-radius: 10px;
  }

  .sga-feature-row {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .sga-state-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .sga-state-actions {
    width: 100%;
    justify-content: space-between;
  }

  .sga-loading-card {
    padding: 20px;
    border-radius: 18px;
  }

  .sga-lock-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .sga-opps-head {
    padding: 18px 16px;
  }

  .sga-opportunity-cards {
    padding: 14px 12px 14px;
    gap: 12px;
  }

  .sga-opportunity-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .sga-opp-title {
    font-size: 1.15rem;
  }

  .sga-opp-subtitle,
  .sga-opp-desc,
  .sga-opp-est {
    font-size: 0.92rem;
  }

  .sga-impact {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .sga-step-item {
    grid-template-columns: 42px 1fr 18px;
    min-height: 54px;
  }

  .sga-step-dot {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .sga-step-label {
    font-size: 0.9rem;
  }

  .sga-panel th,
  .sga-panel td {
    font-size: 0.78rem;
  }

  .sga-results {
    padding-top: 36px;
  }

  .sga-viz-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .sga-cards-grid {
    grid-template-columns: 1fr;
  }

  .sga-benefit-card {
    min-height: auto;
  }

  .sga-mini-grid,
  .sga-process-grid {
    grid-template-columns: 1fr;
  }

  .sga-process-grid article {
    min-height: auto;
    padding: 18px 16px 16px;
  }

  .sga-process-grid span {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    font-size: 0.92rem;
  }

  .sga-process-grid p {
    font-size: 0.94rem;
  }

  .sga-footnote {
    font-size: 0.9rem;
  }

  .sga-light-content {
    padding-top: 36px;
  }

  .sga-content h2 {
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sga-loading-progress-fill {
    transition: none;
  }

  .sga-loading-icon svg {
    animation: none;
  }
}
