:root {
  --bg: #070b10;
  --bg-soft: #0a1017;
  --panel: rgba(15, 23, 33, 0.72);
  --panel-solid: #0d151e;
  --border: rgba(148, 175, 205, 0.14);
  --border-strong: rgba(148, 175, 205, 0.26);
  --text: #e8eef6;
  --muted: #90a2b8;
  --dim: #64748b;
  --mint: #4be3b0;
  --cyan: #58c8ff;
  --fail: #ff6b7d;
  --warn: #ffbd66;
  --info: #8fa6c0;
  --radius: 16px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(148, 175, 205, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 175, 205, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  top: -320px;
  left: 50%;
  width: 900px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(75, 227, 176, 0.16), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

main,
.topbar,
.footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--mint);
  background: rgba(75, 227, 176, 0.08);
  border: 1px solid rgba(75, 227, 176, 0.16);
  padding: 1px 5px;
  border-radius: 5px;
}

.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;
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--mint);
  background: rgba(75, 227, 176, 0.08);
  border: 1px solid rgba(75, 227, 176, 0.25);
}

.brand-name {
  font-size: 17px;
  color: var(--text);
}

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

.topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.topbar-links a {
  text-decoration: none;
  transition: color 0.2s;
}

.topbar-links a:hover {
  color: var(--text);
}

.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ---------- hero ---------- */

.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 76px 24px 8px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 600;
}

h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--mint), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 640px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 16.5px;
}

.scan-form {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.scan-form:focus-within {
  border-color: rgba(75, 227, 176, 0.45);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 4px rgba(75, 227, 176, 0.08);
}

.input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--dim);
  pointer-events: none;
}

#url-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 15.5px;
  padding: 13px 12px 13px 42px;
  outline: none;
}

#url-input::placeholder {
  color: var(--dim);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 13px 22px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #04231a;
  background: linear-gradient(180deg, #5ff0bd, var(--mint));
  cursor: pointer;
  transition: transform 0.15s, filter 0.2s;
  white-space: nowrap;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: progress;
}

.hint {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--dim);
  font-family: var(--mono);
}

.examples {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--dim);
}

.example {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  background: rgba(148, 175, 205, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.example:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(148, 175, 205, 0.1);
}

/* ---------- scanning ---------- */

.scanning {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.scanner {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px 22px;
  backdrop-filter: blur(10px);
}

.scanner-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(75, 227, 176, 0.55);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(75, 227, 176, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(75, 227, 176, 0);
  }
}

.scan-steps {
  list-style: none;
  margin: 16px 0 2px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.scan-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--dim);
  transition: color 0.25s;
}

.scan-steps li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  transition: background 0.25s, border-color 0.25s;
}

.scan-steps li.active {
  color: var(--text);
}

.scan-steps li.active::before {
  background: var(--mint);
  border-color: var(--mint);
}

.scan-steps li.done {
  color: var(--muted);
}

.scan-steps li.done::before {
  background: rgba(75, 227, 176, 0.5);
  border-color: transparent;
}

/* ---------- error ---------- */

.error-box {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 107, 125, 0.3);
  background: rgba(255, 107, 125, 0.06);
}

.error-box strong {
  color: var(--fail);
  font-size: 14px;
}

.error-box p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- results ---------- */

#results {
  max-width: 1120px;
  margin: 46px auto 0;
  padding: 0 24px;
  animation: rise 0.5s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.verdict-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 30px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(20, 32, 45, 0.9), rgba(10, 16, 23, 0.9));
  box-shadow: 0 32px 70px -40px rgba(0, 0, 0, 0.95);
}

.ring {
  position: relative;
  width: 148px;
  height: 148px;
  flex: none;
}

.ring svg {
  transform: rotate(-90deg);
  overflow: visible;
}

.ring-track {
  fill: none;
  stroke: rgba(148, 175, 205, 0.12);
  stroke-width: 9;
}

.ring-value {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.ring-label strong {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.ring-label span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 6px;
}

.verdict-body {
  min-width: 0;
}

.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.tone-excellent,
.tone-good {
  color: var(--mint);
}

.tone-warning {
  color: var(--warn);
}

.tone-critical {
  color: var(--fail);
}

.verdict-body h2 {
  margin: 14px 0 10px;
  font-size: clamp(19px, 2.6vw, 25px);
  line-height: 1.32;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 720px;
}

.verdict-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.fact {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(7, 11, 16, 0.55);
}

.fact dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.fact dd {
  margin: 5px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  word-break: break-word;
}

.fact dd.good {
  color: var(--mint);
}

.fact dd.bad {
  color: var(--fail);
}

/* ---------- panels ---------- */

.report-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
  backdrop-filter: blur(8px);
}

.panel h3 {
  margin: 0 0 16px;
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.priority-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: prio;
}

.priority-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  counter-increment: prio;
}

.priority-list li::before {
  content: counter(prio, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  padding-top: 2px;
}

.priority-title {
  font-size: 14.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.priority-action {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.priority-empty {
  margin: 0;
  font-size: 14px;
  color: var(--mint);
}

.cat-list {
  display: grid;
  gap: 15px;
}

.cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.cat-head em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.cat-blurb {
  margin: 2px 0 8px;
  font-size: 12px;
  color: var(--dim);
}

.bar {
  height: 5px;
  border-radius: 99px;
  background: rgba(148, 175, 205, 0.12);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar .good {
  background: linear-gradient(90deg, #2fcf9d, var(--mint));
}

.bar .mid {
  background: linear-gradient(90deg, #f0a53f, var(--warn));
}

.bar .bad {
  background: linear-gradient(90deg, #e2485e, var(--fail));
}

/* ---------- checks ---------- */

.checks-section {
  margin-top: 30px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.tally {
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
}

.tally span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--muted);
}

.tally .t-pass {
  color: var(--mint);
  border-color: rgba(75, 227, 176, 0.3);
}

.tally .t-warn {
  color: var(--warn);
  border-color: rgba(255, 189, 102, 0.3);
}

.tally .t-fail {
  color: var(--fail);
  border-color: rgba(255, 107, 125, 0.3);
}

.check-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  margin-bottom: 14px;
  overflow: hidden;
}

.check-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(148, 175, 205, 0.035);
}

.check-group > header h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.check-group > header h3 span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}

.check-group > header .cat-score {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

details.check {
  border-bottom: 1px solid rgba(148, 175, 205, 0.08);
}

details.check:last-child {
  border-bottom: 0;
}

details.check > summary {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 20px;
  cursor: pointer;
  list-style: none;
  transition: background 0.15s;
}

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

details.check > summary:hover {
  background: rgba(148, 175, 205, 0.045);
}

.status-dot {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  margin-top: 3px;
}

.s-pass .status-dot {
  color: var(--mint);
  background: rgba(75, 227, 176, 0.12);
}

.s-warn .status-dot {
  color: var(--warn);
  background: rgba(255, 189, 102, 0.12);
}

.s-fail .status-dot {
  color: var(--fail);
  background: rgba(255, 107, 125, 0.12);
}

.s-info .status-dot {
  color: var(--info);
  background: rgba(143, 166, 192, 0.12);
}

.check-title {
  font-size: 14.5px;
  color: var(--text);
}

.check-summary {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.check-weight {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
  margin-top: 2px;
}

.check-body {
  padding: 4px 20px 20px 54px;
  font-size: 13.5px;
  color: var(--muted);
}

.check-body p {
  margin: 0 0 10px;
}

.evidence {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  background: rgba(7, 11, 16, 0.7);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  word-break: break-word;
  white-space: pre-wrap;
}

.fix {
  display: flex;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(75, 227, 176, 0.22);
  background: rgba(75, 227, 176, 0.055);
  color: #c8f5e6;
  font-size: 13px;
}

.fix b {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
  flex: none;
  padding-top: 2px;
}

/* ---------- extras ---------- */

.evidence-panel {
  margin-top: 18px;
}

.kv {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12.5px;
}

.kv td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 175, 205, 0.08);
  vertical-align: top;
}

.kv tr:last-child td {
  border-bottom: 0;
}

.kv td:first-child {
  color: var(--dim);
  width: 38%;
}

.kv td:last-child {
  color: var(--text);
  word-break: break-word;
}

.pill-ok {
  color: var(--mint);
}

.pill-no {
  color: var(--fail);
}

/* ---------- methodology ---------- */

.method {
  max-width: 1120px;
  margin: 90px auto 0;
  padding: 0 24px;
}

.method > h2 {
  margin: 0 0 20px;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.02em;
  font-weight: 500;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.method-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}

.method-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mint);
  letter-spacing: 0.12em;
}

.method-card h3 {
  margin: 10px 0 8px;
  font-size: 15.5px;
  font-weight: 500;
}

.method-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.limits {
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  background: rgba(148, 175, 205, 0.03);
}

.limits h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.limits ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- faq ---------- */

.faq {
  max-width: 1120px;
  margin: 72px auto 0;
  padding: 0 24px;
}

.faq > h2 {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.02em;
  font-weight: 500;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(7, 11, 16, 0.4);
  padding: 0 18px;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}

.faq-item[open] summary {
  color: var(--mint);
}

.faq-item p {
  margin: 0 0 16px;
  max-width: 78ch;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- footer ---------- */

.footer {
  max-width: 1120px;
  margin: 70px auto 0;
  padding: 26px 24px 44px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--dim);
  text-align: center;
}

.footer p {
  margin: 0 0 4px;
}

.footer strong {
  color: var(--muted);
  font-weight: 600;
}

.footer-note {
  font-family: var(--mono);
  font-size: 11.5px;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .report-grid {
    grid-template-columns: 1fr;
  }
  .verdict-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
  }
  .ring {
    width: 118px;
    height: 118px;
  }
  .ring-label strong {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 52px;
  }
  .scan-form {
    flex-direction: column;
    border-radius: 16px;
  }
  .input-wrap {
    border: 1px solid var(--border);
    border-radius: 11px;
  }
  .btn-primary {
    justify-content: center;
    padding: 14px;
  }
  .topbar-links .chip {
    display: none;
  }
  details.check > summary {
    grid-template-columns: 22px 1fr;
    padding: 14px 16px;
  }
  .check-weight {
    grid-column: 2;
    justify-self: start;
  }
  .check-body {
    padding: 4px 16px 18px 50px;
  }
  .check-group > header {
    padding: 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- PDF export ---------- */

.report-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 20px;
}

.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid rgba(75, 227, 176, 0.34);
  background: rgba(75, 227, 176, 0.1);
  color: var(--mint);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
  white-space: nowrap;
}

.btn-pdf:hover {
  background: rgba(75, 227, 176, 0.18);
  border-color: rgba(75, 227, 176, 0.55);
  transform: translateY(-1px);
}

.pdf-note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
}

/* ---------- remediation plan ---------- */

.exec-panel {
  margin-top: 18px;
}

.exec-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.exec-head-row h3 {
  margin: 0;
}

.exec-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--warn);
  border: 1px solid rgba(255, 189, 102, 0.3);
  background: rgba(255, 189, 102, 0.08);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.exec-summary {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text);
  max-width: 820px;
}

.exec-impact {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 860px;
}

.exec-issues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.exec-issue {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(7, 11, 16, 0.4);
  padding: 14px 16px;
}

.exec-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.exec-item-head strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.exec-item-head .status-dot {
  flex: none;
}

.exec-issue .exec-impact {
  margin: 6px 0 0;
  padding-left: 23px;
  font-size: 12px;
}

.exec-fix {
  margin: 7px 0 0;
  padding-left: 23px;
  font-size: 12.5px;
  color: var(--text);
}

.exec-fix b {
  display: inline-block;
  margin-right: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
}

.exec-meta {
  margin: 6px 0 0;
  padding-left: 23px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
}

.exec-issue.s-fail .exec-fix b {
  color: var(--fail);
}

.exec-issue.s-warn .exec-fix b {
  color: var(--warn);
}

/* ---------- ad placements ---------- */

.ad-slot {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 970px;
  margin: 34px auto 8px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  background: rgba(148, 175, 205, 0.035);
}

.ad-slot--leaderboard {
  min-height: 90px;
}

.ad-slot--rectangle {
  max-width: 336px;
  min-height: 280px;
  margin: 18px auto;
}

.ad-slot ins,
.ad-slot iframe {
  display: block;
  max-width: 100%;
}

/* Reserved spots stay collapsed until a real ad unit is inside them. */
.ad-slot:has(ins.adsbygoogle),
.ad-slot:has(iframe),
.ad-slot.ad-slot--active {
  display: flex;
}

.ad-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  pointer-events: none;
}

@media (max-width: 720px) {
  .ad-slot {
    margin: 26px auto 6px;
  }

  .ad-slot--leaderboard {
    min-height: 70px;
  }

  .ad-slot--rectangle {
    min-height: 250px;
  }
}
