:root {
  --header-bg: #096da9;
  --button-bg: #2087a0;
  --bg: #f5f6f8;
  --bg-accent: #e8eaee;
  --panel: #ffffff;
  --panel-border: #d1d5db;
  --text: #1a1d21;
  --muted: #5c6370;
  --accent: #2087a0;
  --accent-strong: #1a7190;
  --success: #56c271;
  --danger: #ef476f;
  --warning: #ffd166;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

.site-header {
  margin: 0;
}

.brand-bar {
  background: var(--header-bg);
  display: flex;
  align-items: center;
  padding: 12px 24px;
  gap: 16px;
}

.brand-bar-white {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 24px;
}

.brand-bar-white .brand-logo {
  max-height: 36px;
}

.header-separator {
  height: 1px;
  background: var(--panel-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.brand-logo {
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}

body {
  margin: 0;
  font-family: sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  gap: 24px;
}

.hero {
  display: grid;
  gap: 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
  font-size: 12px;
}

h1 {
  font-size: clamp(2.25rem, 3vw, 3.2rem);
  margin: 0;
}

.lede {
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

button {
  background: var(--button-bg);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(32, 135, 160, 0.35);
}

.muted {
  color: var(--muted);
  margin-top: 6px;
}

.status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.status-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-accent);
  color: var(--text);
  font-weight: 600;
}

.status-pill.success {
  background: rgba(86, 194, 113, 0.2);
  color: var(--success);
}

.status-pill.fail {
  background: rgba(239, 71, 111, 0.2);
  color: var(--danger);
}

.progress {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.progress-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  border-radius: 999px;
  width: 0%;
  transition: width 0.2s ease;
}

.results,
.guidance {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.result-card,
.guidance-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: var(--bg);
  display: grid;
  gap: 6px;
}

.result-card.success {
  border-color: rgba(86, 194, 113, 0.4);
}

.result-card.fail {
  border-color: rgba(239, 71, 111, 0.4);
}

.result-title {
  font-weight: 600;
}

.result-meta {
  color: var(--muted);
  font-family: monospace;
  font-size: 0.85rem;
}

.result-url {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: monospace;
  word-break: break-all;
}

.result-tip {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.result-error-message {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: monospace;
  word-break: break-all;
  opacity: 0.9;
}

.guidance-card p {
  margin: 0;
}

.guidance-card.troubleshooting {
  border-color: rgba(255, 193, 7, 0.5);
  background: rgba(255, 193, 7, 0.08);
}

.guidance-card code {
  font-family: monospace;
  font-size: 0.9em;
}

@media (max-width: 720px) {
  .brand-bar,
  .brand-bar-white {
    padding: 10px 16px;
  }

  .brand-bar .brand-logo {
    max-height: 36px;
  }

  .brand-bar-white .brand-logo {
    max-height: 32px;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  button {
    width: 100%;
  }
}
