/* AI Visibility & Token Bloat Audit Widget (Scrunch-style browser card + live URL check) */
.axp-audit-wrap {
  margin: 1.75rem auto 2rem;
  max-width: 780px;
}
.axp-browser {
  background: #171411;
  color: #f5efe4;
  border-radius: 18px;
  border: 1px solid rgba(22, 19, 15, 0.18);
  box-shadow: 0 22px 48px -24px rgba(22, 19, 15, 0.45);
  overflow: hidden;
}
.axp-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: #221e19;
  border-bottom: 1px solid rgba(245, 239, 228, 0.1);
  font-size: 0.8125rem;
}
.axp-dots {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}
.axp-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(245, 239, 228, 0.25);
}
.axp-dots span:first-child { background: #e06c58; }
.axp-dots span:nth-child(2) { background: #e5b55c; }
.axp-dots span:nth-child(3) { background: #7ab864; }
.axp-bar-title {
  font-weight: 600;
  color: #f5efe4;
  letter-spacing: -0.01em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.axp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.axp-bar-domain {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: #c7bda9;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 440px) {
  .axp-browser-bar {
    padding: 0.6rem 0.75rem;
    font-size: 0.75rem;
  }
  .axp-dots span {
    width: 8px;
    height: 8px;
  }
}
.axp-panes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(245, 239, 228, 0.1);
}
@media (min-width: 680px) {
  .axp-panes {
    grid-template-columns: 1fr 1fr;
  }
}
.axp-pane {
  padding: 1rem 1.1rem;
  background: #171411;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}
.axp-pane-agent {
  background: #1c1914;
}
.axp-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.axp-pane-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e6decb;
  margin: 0;
}
.axp-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.axp-pill-human {
  background: rgba(245, 239, 228, 0.12);
  color: #f5efe4;
  border: 1px solid rgba(245, 239, 228, 0.2);
}
.axp-pill-agent {
  background: #d8fc3b;
  color: #14120e;
  box-shadow: 0 0 18px rgba(216, 252, 59, 0.28);
}
.axp-code {
  margin: 0;
  padding: 0.75rem;
  border-radius: 10px;
  background: #0f0d0a;
  border: 1px solid rgba(245, 239, 228, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #a99f8c;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 7.4rem;
  overflow: hidden;
}
.axp-pane-agent .axp-code {
  color: #e8f5b8;
  border-color: rgba(216, 252, 59, 0.22);
}
.axp-browser-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  background: #221e19;
  border-top: 1px solid rgba(245, 239, 228, 0.1);
}
.axp-diff-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.axp-diff-label {
  font-size: 0.8125rem;
  color: #c7bda9;
}
.axp-diff-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #d8fc3b;
}
.axp-diff-pct {
  font-size: 0.75rem;
  color: #d8fc3b;
  background: rgba(216, 252, 59, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.axp-deploy-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2f4fff;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
}
.axp-form-shell {
  margin-top: 1rem;
}
.axp-pill-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: transparent;
}
@media (min-width: 640px) {
  .axp-pill-form {
    flex-direction: row;
    align-items: center;
    background: #ffffff;
    padding: 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(22, 19, 15, 0.25);
    box-shadow: 0 8px 24px -12px rgba(22, 19, 15, 0.18);
  }
}
.axp-url-input {
  width: 100%;
  min-height: 54px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 19, 15, 0.25);
  background: #ffffff;
  color: #16130f;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}
@media (min-width: 640px) {
  .axp-url-input {
    border: 0;
    min-height: 48px;
    flex: 1;
  }
}
.axp-url-input:focus-visible {
  outline: 2px solid #2f4fff;
  outline-offset: 2px;
}
.axp-submit-btn {
  width: 100%;
  min-height: 54px;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 0;
  background: #2f4fff;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
@media (min-width: 640px) {
  .axp-submit-btn {
    width: auto;
    min-height: 48px;
  }
}
.axp-submit-btn:hover {
  background: #213be0;
}
.axp-submit-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}
.axp-checks-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 0.6rem;
  padding: 0 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted, #5a5248);
}
.axp-check-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.axp-check-item svg {
  flex-shrink: 0;
  color: #16130f;
}
.axp-error {
  margin: 0.45rem 0 0;
  padding: 0 0.5rem;
  font-size: 0.8125rem;
  color: #8f1d1d;
  min-height: 1.2em;
}
.axp-results {
  margin-top: 1rem;
  padding: 1.15rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(22, 19, 15, 0.16);
  box-shadow: 0 12px 30px -18px rgba(22, 19, 15, 0.22);
  color: #16130f;
}
.axp-results[hidden] {
  display: none !important;
}
.axp-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(22, 19, 15, 0.1);
}
.axp-results-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.axp-score-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #f3eee6;
  color: #16130f;
}
.axp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
@media (min-width: 640px) {
  .axp-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.axp-card {
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: #faf7f2;
  border: 1px solid rgba(22, 19, 15, 0.1);
}
.axp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.axp-card-name {
  font-size: 0.8125rem;
  font-weight: 700;
}
.axp-status {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.axp-status-pass { background: #d8fc3b; color: #14120e; }
.axp-status-warn { background: #f7e3a1; color: #4a3500; }
.axp-status-fail { background: #f5d0cc; color: #6e140e; }
.axp-card-desc {
  margin: 0;
  font-size: 0.8125rem;
  color: #4a433b;
  line-height: 1.4;
}
.axp-cta-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(22, 19, 15, 0.1);
}
@media (min-width: 640px) {
  .axp-cta-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.axp-cta-copy {
  margin: 0;
  font-size: 0.85rem;
  color: #36312b;
  line-height: 1.45;
}
.axp-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: #16130f;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Inline Single-Field Email Capture Gate (.axp-email-gate & .audit-scorecard) */
.axp-email-gate {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(22, 19, 15, 0.18);
  box-shadow: 0 12px 30px -18px rgba(22, 19, 15, 0.22);
  color: #16130f;
}
.axp-email-gate[hidden],
.audit-scorecard[hidden] {
  display: none !important;
}
.axp-gate-head {
  margin-bottom: 0.9rem;
}
.axp-gate-badge {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #d8fc3b;
  color: #14120e;
  margin-bottom: 0.5rem;
}
.axp-gate-title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 700;
  color: #16130f;
}
.axp-gate-sub {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4a433b;
}
.axp-gate-sub a {
  color: #16130f;
  font-weight: 600;
  text-decoration: underline;
}
.audit-scorecard {
  padding: 1.25rem;
  margin-top: 1rem;
}
.audit-scorecard-lede {
  margin-bottom: 0.75rem;
}
.audit-scorecard-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
