:root {
  color-scheme: dark;
  --bg: #0f1a30;
  --panel: #1b2a47;
  --panel-2: #16223c;
  --line: #213246;
  --text: #eef6ff;
  --muted: #9fb1c5;
  --blue: #56d7ff;
  --green: #8de0b3;
  --warn: #ffc857;
  --red: #ff8a8a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(15, 26, 48, 0.94);
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 62px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand {
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand span { color: var(--blue); }

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 14px;
}

.nav::-webkit-scrollbar { display: none; }

.nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover { color: var(--blue); }

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: end;
  flex-shrink: 0;
  width: 92px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0f1a30;
}

.language-switch button {
  width: 40px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.language-switch button.active {
  background: var(--blue);
  color: #031018;
}

.spanish-summary {
  border: 1px solid rgba(86, 215, 255, .34);
  border-radius: 8px;
  background: rgba(86, 215, 255, .07);
  padding: 16px;
  margin-top: 18px;
}

.spanish-summary :last-child {
  margin-bottom: 0;
}

.headline {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 22px;
  align-items: start;
  margin: 28px 0 22px;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 10px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

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

.section-block { margin-top: 18px; }

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

.steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1a30;
  padding: 14px;
}

.steps strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.price-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-card.featured {
  border-color: rgba(141, 224, 179, .8);
  box-shadow: 0 18px 46px rgba(9, 44, 35, .38);
}

.price {
  font-size: 38px;
  font-weight: 850;
  color: var(--text);
  line-height: 1;
}

.price span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}

.price-card ul {
  color: var(--muted);
  line-height: 1.55;
  padding-left: 18px;
  margin: 0;
  flex: 1;
}

.price-card li { margin: 6px 0; }

.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.two label {
  display: grid;
  gap: 6px;
}

.two input,
.two select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  background: #0f1a30;
  color: var(--text);
  border-radius: 6px;
  padding: 9px 10px;
}

.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  color: var(--text);
  background: #0f1a30;
}

.notice.warn {
  border-color: rgba(255, 200, 87, .55);
  background: rgba(255, 200, 87, .08);
}

.evidence-checklist {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(5, minmax(130px, 1fr));
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-top: 14px;
  background: #0f1a30;
}

.evidence-checklist label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.evidence-checklist input {
  margin-top: 2px;
  accent-color: var(--blue);
}

.card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.pill.blue { color: #031018; background: var(--blue); border-color: var(--blue); }
.pill.green { color: #04140b; background: var(--green); border-color: var(--green); }
.pill.warn { color: #1b1200; background: var(--warn); border-color: var(--warn); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.button.primary {
  background: var(--blue);
  color: #031018;
  border-color: var(--blue);
}

.metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.metric:last-child { border-bottom: 0; }

.small { font-size: 13px; color: var(--muted); }

.review-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 8px;
}

.review-table th,
.review-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

.review-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.review-table select,
.review-table input,
.review-table textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  background: #0f1a30;
  color: var(--text);
  border-radius: 6px;
  padding: 8px;
}

.review-table textarea {
  min-height: 70px;
  resize: vertical;
}

.result-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.audit-progress {
  height: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #0f1a30;
  margin: 14px 0;
}

.audit-progress div {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width .22s ease;
}

.audit-steps {
  display: grid;
  gap: 8px;
}

.audit-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.audit-step span {
  color: var(--green);
  font-weight: 800;
}

.audit-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.review-report-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.report-table {
  min-width: 1120px;
}

.report-table td,
.report-table th {
  vertical-align: top;
}

.status-critical { color: var(--red); }
.status-urgent { color: var(--warn); }
.status-watch { color: var(--blue); }
.status-healthy { color: var(--green); }

.trust-line {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.scan-form {
  display: grid;
  gap: 14px;
}

.full-field {
  display: grid;
  gap: 6px;
}

.full-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  background: #0f1a30;
  color: var(--text);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
}

.scan-result-region:empty {
  display: none;
}

.scan-results {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.scan-summary {
  border-color: rgba(86, 215, 255, .45);
  box-shadow: 0 18px 48px rgba(4, 28, 44, .32);
}

.business-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.business-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.scan-score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.scan-score-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.score-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.score-card-top strong {
  text-align: right;
}

.score-value {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
}

.score-value span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.score-track {
  height: 8px;
  border-radius: 999px;
  background: #0f1a30;
  border: 1px solid var(--line);
  overflow: hidden;
}

.score-track div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.scan-score-card.score-critical {
  border-color: rgba(255, 138, 138, .56);
}

.scan-score-card.score-needs-attention {
  border-color: rgba(255, 200, 87, .56);
}

.scan-score-card.score-watch {
  border-color: rgba(86, 215, 255, .52);
}

.scan-score-card.score-strong {
  border-color: rgba(141, 224, 179, .62);
}

.score-critical { color: var(--red); }
.score-needs-attention { color: var(--warn); }
.score-watch { color: var(--blue); }
.score-strong { color: var(--green); }

.warning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.scan-warning-card {
  border: 1px solid rgba(255, 200, 87, .45);
  border-radius: 8px;
  background: rgba(255, 200, 87, .08);
  padding: 16px;
}

.comparison-panel {
  border-color: rgba(86, 215, 255, .38);
}

.comparison-score-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.comparison-score {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1a30;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.comparison-score span,
.first-priority span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.comparison-score strong {
  color: var(--text);
  font-size: 18px;
}

.comparison-score em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.human-summary-panel {
  border-color: rgba(141, 224, 179, .45);
  background: linear-gradient(180deg, rgba(141, 224, 179, .08), rgba(12, 22, 34, 1));
}

.first-priority {
  border: 1px solid rgba(141, 224, 179, .3);
  border-radius: 8px;
  background: rgba(141, 224, 179, .08);
  padding: 14px;
  margin-top: 14px;
  display: grid;
  gap: 6px;
}

.first-priority strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
}

.diagnostic-grid,
.pressure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.diagnostic-card,
.pressure-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1a30;
  padding: 16px;
}

.diagnostic-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.diagnostic-head strong {
  font-size: 20px;
  white-space: nowrap;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.signal-row {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1a30;
  padding: 11px 12px;
}

.signal-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-row strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.raw-signals {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1a30;
  padding: 12px;
}

.raw-signals summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 800;
}

.raw-signals pre,
.admin-evidence-panel pre {
  max-height: 340px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--muted);
  background: #050d14;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.path-panel {
  border-color: rgba(86, 215, 255, .45);
}

.after-agenarys {
  border-color: rgba(141, 224, 179, .38);
}

.cta-panel {
  border-color: rgba(255, 200, 87, .45);
  background: linear-gradient(180deg, rgba(255, 200, 87, .08), rgba(12, 22, 34, 1));
}

.scan-empty {
  margin-top: 18px;
  border-color: rgba(255, 200, 87, .55);
}

@media (max-width: 980px) {
  .topbar-inner { grid-template-columns: minmax(0, 1fr) auto auto; padding: 14px 20px; }
  .topbar-inner .nav { display: none !important; }
  .brand { white-space: normal; }
  .gridwatch-mobile-toggle,
  .gw-ham-btn { display: inline-flex !important; }
}

@media (max-width: 860px) {
  .headline, .grid, .two, .steps, .pricing-grid, .evidence-checklist, .audit-summary-grid, .scan-score-grid, .diagnostic-grid, .pressure-grid, .signal-grid, .warning-grid, .comparison-score-grid { grid-template-columns: 1fr; }
  .review-table { display: block; overflow-x: auto; }
  .signal-row { grid-template-columns: 1fr; }
  .score-value { font-size: 36px; }
}


/* AGENARYS GRID WATCH MOBILE NAV PATCH 2026-06-02 */
.gridwatch-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 8px;
  background: rgba(15, 23, 42, .72);
  color: #f8fafc;
  font-size: 1.35rem;
  font-weight: 900;
  cursor: pointer;
}
.gridwatch-mobile-menu {
  display: none;
}
@media (max-width: 980px) {
  .topbar-inner .nav {
    display: none !important;
  }
  .gridwatch-mobile-toggle {
    display: inline-flex;
  }
  .gridwatch-mobile-menu.open {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, .18);
    background: rgba(2, 6, 23, .97);
  }
  .gridwatch-mobile-menu a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    padding: .75rem .85rem;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 8px;
  }
  .gridwatch-mobile-menu a:hover,
  .gridwatch-mobile-menu a:focus {
    color: #ffffff;
    border-color: rgba(56, 189, 248, .65);
  }
}
/* /AGENARYS GRID WATCH MOBILE NAV PATCH 2026-06-02 */
