/* speero-testing-tools embed v1.0.0
 * Hosted at https://cdn.jsdelivr.net/gh/speerotools/testing-tools-embed@v1.0.0/dist/embed.css
 * Loaded by the Webflow Code Embed on /ab-testing-tools.
 *
 * This is the mockup stylesheet, scoped under #speero-testing-tools so it does
 * not collide with the host Webflow page. No design changes from the mockup.
 */

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,700;0,900;1,900&display=swap");

#speero-testing-tools {
  --speero-blue: #001641;
  --speero-red: #FF0049;
  --speero-yellow: #FFB800;
  --speero-bg: #F3F3EF;
  --speero-eggplant: #480F43;
  --ink: #001641;
  --ink-60: rgba(0,22,65,0.60);
  --ink-40: rgba(0,22,65,0.40);
  --ink-20: rgba(0,22,65,0.20);
  --ink-10: rgba(0,22,65,0.10);
  --ink-06: rgba(0,22,65,0.06);
  --ink-04: rgba(0,22,65,0.04);
  --paper: #FFFFFF;
  --bg: #F3F3EF;
  --radius: 4px;
  --radius-lg: 8px;

  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#speero-testing-tools *,
#speero-testing-tools *::before,
#speero-testing-tools *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ============ LOADING & ERROR ============ */
#speero-testing-tools .loading,
#speero-testing-tools .error-state {
  padding: 96px 0;
  text-align: center;
  color: var(--ink-60);
}
#speero-testing-tools .spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--ink-10);
  border-top-color: var(--speero-red);
  border-radius: 50%;
  animation: stt-spin 0.9s linear infinite;
  margin-bottom: 16px;
}
@keyframes stt-spin { to { transform: rotate(360deg); } }
#speero-testing-tools .error-state h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 8px;
}

/* ============ LAYOUT ============ */
#speero-testing-tools .container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  #speero-testing-tools .container { padding: 0 20px; }
}

/* ============ HERO ============ */
#speero-testing-tools .hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--ink-10);
}
#speero-testing-tools .hero-eyebrow {
  font-size: 12px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--speero-red);
  margin-bottom: 16px;
}
#speero-testing-tools .hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 24px;
}
#speero-testing-tools .hero p {
  font-size: 18px;
  line-height: 1.55;
  max-width: 64ch;
  color: var(--ink-60);
  margin-bottom: 32px;
}
#speero-testing-tools .hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--ink-10);
}
#speero-testing-tools .stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#speero-testing-tools .stat-num {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
}
#speero-testing-tools .stat-num.accent { color: var(--speero-red); }
#speero-testing-tools .stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-60);
  font-weight: 500;
}

/* ============ TOOLBAR ============ */
#speero-testing-tools .toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--ink-10);
  padding: 20px 0;
  margin-top: 32px;
}
#speero-testing-tools .toolbar-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
#speero-testing-tools .search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}
#speero-testing-tools .search-wrap::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  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='%23001641' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  opacity: 0.5;
}
#speero-testing-tools #search {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid var(--ink-20);
  background: var(--paper);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  transition: border 0.15s;
}
#speero-testing-tools #search:focus {
  outline: none;
  border-color: var(--ink);
}
#speero-testing-tools .sort-wrap { position: relative; }
#speero-testing-tools #sort {
  padding: 12px 36px 12px 14px;
  border: 1px solid var(--ink-20);
  background: var(--paper);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  appearance: none;
  cursor: pointer;
}
#speero-testing-tools .sort-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%23001641' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ============ FILTERS ============ */
#speero-testing-tools .filters { padding: 24px 0 0; }
#speero-testing-tools .filter-row { margin-bottom: 18px; }
#speero-testing-tools .filter-row-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-60);
  font-weight: 500;
  margin-bottom: 10px;
}
#speero-testing-tools .filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#speero-testing-tools .chip {
  background: transparent;
  border: 1px solid var(--ink-20);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
#speero-testing-tools .chip:hover { border-color: var(--ink); }
#speero-testing-tools .chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
#speero-testing-tools .chip-count {
  color: var(--ink-40);
  font-size: 11px;
  margin-left: 4px;
}
#speero-testing-tools .chip.active .chip-count {
  color: rgba(255,255,255,0.5);
}
#speero-testing-tools .more-filters-btn {
  background: transparent;
  border: none;
  color: var(--speero-red);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 7px 0;
  margin-left: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#speero-testing-tools .more-filters-btn:hover { text-decoration: none; }

#speero-testing-tools .more-filters {
  display: none;
  padding: 18px 24px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  margin-top: 12px;
  border: 1px solid var(--ink-10);
}
#speero-testing-tools .more-filters.open { display: block; }

#speero-testing-tools .result-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 8px;
  border-top: 1px solid var(--ink-10);
  margin-top: 24px;
}
#speero-testing-tools .result-count {
  font-size: 15px;
  font-weight: 500;
}
#speero-testing-tools .result-count strong { font-weight: 900; }
#speero-testing-tools .clear-all {
  background: transparent;
  border: none;
  color: var(--ink-60);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#speero-testing-tools .clear-all:hover { color: var(--speero-red); }

/* ============ CARD GRID ============ */
#speero-testing-tools .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px 0 96px;
}
@media (max-width: 1024px) {
  #speero-testing-tools .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  #speero-testing-tools .grid { grid-template-columns: 1fr; }
}

#speero-testing-tools .card {
  background: var(--paper);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  position: relative;
}
#speero-testing-tools .card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(0,22,65,0.12);
}

#speero-testing-tools .card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
#speero-testing-tools .card-name {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
#speero-testing-tools .card-status {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--ink-60);
  background: var(--ink-06);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
#speero-testing-tools .card-status.discontinued {
  color: var(--ink-60);
}

#speero-testing-tools .card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
#speero-testing-tools .badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 3px;
}
#speero-testing-tools .badge-mcp {
  background: var(--speero-red);
  color: white;
}
#speero-testing-tools .badge-mcp-platform {
  background: rgba(255, 0, 73, 0.12);
  color: var(--speero-red);
  border: 1px solid rgba(255, 0, 73, 0.3);
}
#speero-testing-tools .badge-ai {
  background: var(--ink);
  color: var(--paper);
}
#speero-testing-tools .badge-warehouse {
  background: var(--ink-10);
  color: var(--ink);
}
#speero-testing-tools .badge-soc2 {
  background: var(--speero-eggplant);
  color: white;
}

#speero-testing-tools .card-h1 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 16px;
  flex: 1;
}

#speero-testing-tools .card-ucf {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
#speero-testing-tools .ucf-tag {
  font-size: 11px;
  color: var(--ink-60);
  background: var(--ink-04);
  padding: 4px 8px;
  border-radius: 3px;
  font-weight: 400;
}

#speero-testing-tools .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--ink-10);
}
#speero-testing-tools .card-pricing {
  font-size: 11px;
  color: var(--ink-60);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
#speero-testing-tools .card-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#speero-testing-tools .empty-state {
  grid-column: 1 / -1;
  padding: 64px 0;
  text-align: center;
  color: var(--ink-60);
}
#speero-testing-tools .empty-state h3 {
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 8px;
}

/* ============ MODAL ============ */
#speero-testing-tools .speero-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 22, 65, 0.6);
  z-index: 100;
  overflow-y: auto;
  padding: 40px 20px;
}
#speero-testing-tools .speero-modal-backdrop.open {
  display: block;
}
#speero-testing-tools .speero-modal {
  background: var(--paper);
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 64px -16px rgba(0, 22, 65, 0.4);
}
#speero-testing-tools .speero-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--ink);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
  transition: background 0.15s;
}
#speero-testing-tools .speero-modal-close:hover { background: var(--speero-red); }
#speero-testing-tools .speero-modal-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--ink-10);
}
#speero-testing-tools .speero-modal-name {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  padding-right: 60px;
}
#speero-testing-tools .speero-modal-h1 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
#speero-testing-tools .speero-modal-h2 {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-60);
  line-height: 1.5;
  margin-bottom: 20px;
}
#speero-testing-tools .speero-modal-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
#speero-testing-tools .speero-modal-cta {
  background: var(--ink);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.15s;
}
#speero-testing-tools .speero-modal-cta:hover { background: var(--speero-red); }

#speero-testing-tools .speero-modal-body {
  padding: 32px;
}
#speero-testing-tools .speero-modal-section {
  margin-bottom: 28px;
}
#speero-testing-tools .speero-modal-section:last-child {
  margin-bottom: 0;
}
#speero-testing-tools .speero-modal-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--speero-red);
  margin-bottom: 12px;
  font-style: italic;
}
#speero-testing-tools .speero-modal-summary {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
#speero-testing-tools .speero-modal-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
#speero-testing-tools .speero-modal-tag {
  font-size: 12px;
  color: var(--ink);
  background: var(--ink-06);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 400;
}
#speero-testing-tools .speero-modal-tag.mcp-cap {
  background: rgba(255, 0, 73, 0.08);
  color: var(--speero-red);
}
#speero-testing-tools .speero-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 600px) {
  #speero-testing-tools .speero-modal-grid { grid-template-columns: 1fr; }
}

#speero-testing-tools .mcp-detail-box {
  background: rgba(255, 0, 73, 0.04);
  border-left: 3px solid var(--speero-red);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 12px;
}
#speero-testing-tools .mcp-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}
#speero-testing-tools .mcp-detail-row strong {
  font-weight: 500;
  color: var(--ink-60);
}

#speero-testing-tools .speero-modal-profile {
  font-size: 15px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--ink);
  padding: 4px 0 8px;
}

#speero-testing-tools .speero-modal-footer-cta {
  margin-top: 12px;
  padding: 20px;
  background: var(--ink-04);
  border-radius: var(--radius);
  text-align: center;
  border: 1px dashed var(--ink-20);
}
#speero-testing-tools .speero-modal-footer-cta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--ink-60);
  margin-bottom: 6px;
}
#speero-testing-tools .speero-modal-footer-cta-text {
  font-size: 14px;
  color: var(--ink-60);
  font-weight: 400;
}
#speero-testing-tools .speero-modal-footer-cta-text strong {
  color: var(--ink);
  font-weight: 700;
}

body.speero-modal-open { overflow: hidden; }
