/* ─────────────────────────────────────────────────────────────
   Hardware-check section — terminal log + verdict card
   Matches the landing-page dark palette (#05070b / #1e293b / #3b82f6)
   ───────────────────────────────────────────────────────────── */

.hw-check {
  max-width: 760px;
  margin: 0 auto;
}

/* ── Intro (button state) ─────────────────────────────────── */
.hwc-intro {
  text-align: center;
  padding: 8px 0 16px;
}

.hwc-intro-body {
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
  font-size: 15px;
}

.hwc-intro-note {
  margin-top: 16px;
  color: #475569;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.hwc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #3b82f6;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: white;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hwc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.hwc-btn:active {
  transform: translateY(0);
}

.hwc-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hwc-btn-secondary {
  background: transparent;
  border: 1px solid #334155;
  color: #cbd5e1;
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hwc-btn-secondary:hover {
  background: #1e293b;
  border-color: #475569;
  box-shadow: none;
}

/* ── Fallback (ineligible browser) ────────────────────────── */
.hwc-fallback {
  background: #0b1220;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.hwc-fallback-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #1e293b;
  color: #64748b;
  margin-bottom: 20px;
}

.hwc-fallback-title {
  font-size: 18px;
  color: #e2e8f0;
  margin-bottom: 12px;
  font-weight: 600;
}

.hwc-fallback-body {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.hwc-fallback-body strong {
  color: #cbd5e1;
  font-weight: 600;
}

/* ── Terminal log ─────────────────────────────────────────── */
.hwc-run {
  margin-top: 8px;
}

.hwc-terminal {
  background: #05070b;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 20px 22px;
  font-family: 'SF Mono', 'Cascadia Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 13.5px;
  line-height: 1.5;
  color: #cbd5e1;
  min-height: 80px;
  max-height: 480px;
  overflow-y: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.hwc-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  animation: hwc-step-in 0.25s ease-out both;
}

@keyframes hwc-step-in {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hwc-step-label {
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

.hwc-step-leader {
  flex: 1;
  min-width: 16px;
  border-bottom: 1px dotted #1e293b;
  margin-bottom: 4px;
}

.hwc-step-status {
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  text-align: right;
}

.hwc-step-detail {
  color: #64748b;
  font-size: 12.5px;
}

.hwc-step[data-status='ok'] .hwc-step-label {
  color: #cbd5e1;
}

.hwc-step[data-status='warn'] .hwc-step-label {
  color: #cbd5e1;
}

.hwc-step[data-status='fail'] .hwc-step-label {
  color: #94a3b8;
}

/* Glyphs */
.hwc-glyph {
  font-weight: 700;
  font-family: inherit;
}

.hwc-glyph-ok {
  color: #22c55e;
}

.hwc-glyph-warn {
  color: #f59e0b;
}

.hwc-glyph-fail {
  color: #ef4444;
}

/* Spinner for 'running' state */
.hwc-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #334155;
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: hwc-spin 0.75s linear infinite;
}

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

/* ── Verdict card ─────────────────────────────────────────── */
.hwc-verdict-wrapper {
  margin-top: 24px;
  animation: hwc-verdict-in 0.4s ease-out both;
}

@keyframes hwc-verdict-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hwc-verdict {
  background: #0b1220;
  border: 1px solid #1e293b;
  border-left-width: 4px;
  border-radius: 14px;
  padding: 24px 26px;
  position: relative;
}

.hwc-tier-full {
  border-left-color: #22c55e;
}

.hwc-tier-light {
  border-left-color: #f59e0b;
}

.hwc-tier-cloud {
  border-left-color: #3b82f6;
}

.hwc-verdict-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.hwc-verdict-emoji {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}

.hwc-verdict-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hwc-tier-full .hwc-verdict-label {
  color: #22c55e;
}

.hwc-tier-light .hwc-verdict-label {
  color: #f59e0b;
}

.hwc-tier-cloud .hwc-verdict-label {
  color: #60a5fa;
}

.hwc-verdict-headline {
  color: #e2e8f0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.hwc-verdict-rec {
  color: #94a3b8;
  line-height: 1.6;
  font-size: 14px;
  margin: 0;
}

.hwc-masked-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #1e293b;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  font-style: italic;
}

.hwc-nano-note {
  margin-top: 14px;
  padding: 12px 14px;
  background: #22c55e12;
  border-left: 2px solid #22c55e;
  border-radius: 6px;
  color: #86efac;
  font-size: 13px;
  line-height: 1.55;
}

/* ── Raw measurements (collapsible) ───────────────────────── */
.hwc-raw {
  margin-top: 16px;
  background: #0b1220;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 4px 18px;
}

.hwc-raw > summary {
  cursor: pointer;
  padding: 14px 0;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hwc-raw > summary::-webkit-details-marker {
  display: none;
}

.hwc-raw > summary::before {
  content: '▸';
  color: #475569;
  transition: transform 0.15s ease;
  font-size: 10px;
}

.hwc-raw[open] > summary::before {
  transform: rotate(90deg);
}

.hwc-raw > summary:hover {
  color: #cbd5e1;
}

.hwc-raw-table {
  padding: 4px 0 18px;
  font-family: 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  font-size: 13px;
}

.hwc-raw-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0;
  border-bottom: 1px dotted #1e293b;
}

.hwc-raw-row:last-child {
  border-bottom: none;
}

.hwc-raw-key {
  color: #64748b;
  flex-shrink: 0;
}

.hwc-raw-val {
  color: #cbd5e1;
  text-align: right;
  word-break: break-word;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .hwc-terminal {
    font-size: 12.5px;
    padding: 16px 14px;
  }

  .hwc-step {
    flex-wrap: wrap;
  }

  .hwc-step-leader {
    display: none;
  }

  .hwc-verdict {
    padding: 20px 18px;
  }

  .hwc-verdict-emoji {
    font-size: 30px;
  }

  .hwc-verdict-headline {
    font-size: 16px;
  }

  .hwc-raw-row {
    flex-direction: column;
    gap: 2px;
  }

  .hwc-raw-val {
    text-align: left;
  }
}
