/* Same palette and fonts as web/src/index.css. */
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --gray: #5f5f5f;
  --card: #f6f6f6;
  --line: #e3e3e3;
  --night: #0f0f0f;
  --ash: #bfbfbf;
  --brand: #4aa8e8;
  --ok: #16693c;
  --warn: #8a5a00;
  --bad: #b42318;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

h1, h2, h3 { font-family: Outfit, Inter, ui-sans-serif, system-ui, sans-serif; font-weight: 600; line-height: 1.15; }

a { color: inherit; }

.wrap { width: min(760px, 100%); margin: 0 auto; padding: 0 20px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: var(--night);
  color: var(--paper);
}
.logo { display: block; line-height: 0; }
.lang { font-size: 14px; color: var(--ash); }

.hero { padding: 56px 0 64px; background: var(--night); color: var(--paper); }
.kicker { margin: 0 0 12px; color: var(--brand); font-weight: 600; font-size: 15px; }
h1 { margin: 0; font-size: clamp(2.2rem, 7vw, 3.6rem); text-wrap: balance; }
.lede { max-width: 58ch; margin: 18px 0 28px; color: var(--ash); font-size: 18px; }

.run { display: flex; gap: 10px; }
.run input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: #1b1b1b;
  color: var(--paper);
  font: inherit;
}
.run input::placeholder { color: #9a9a9a; }
.run button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: var(--ink);
  font: 600 16px Inter, ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.run button:hover, .button:hover { background: #79c0f0; }
button:disabled { opacity: .6; cursor: wait; }

.button.ghost { border: 1px solid var(--ink); background: transparent; }
.button.ghost:hover { background: var(--card); }

.status-line { margin: 16px 0 0; color: var(--paper); }
.fine { margin: 14px 0 0; color: var(--ash); font-size: 13.5px; }
.error { margin: 14px 0 0; color: var(--bad); font-weight: 500; }
.hero .error { color: #ff9c92; }

.result { padding-top: 44px; padding-bottom: 56px; }
.site-label { margin: 0; color: var(--gray); font-size: 15px; }
h2 { margin: 4px 0 0; font-size: clamp(1.7rem, 6vw, 2.5rem); overflow-wrap: anywhere; }
.site-kind { margin: 6px 0 0; color: var(--gray); }

.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 8px; }
.summary div { padding: 16px; border-radius: 8px; background: var(--card); }
.summary strong { display: block; font: 600 30px/1.1 Outfit, Inter, sans-serif; }
.summary span { color: var(--gray); font-size: 14px; }
.summary .bad strong { color: var(--bad); }
.summary .warn strong { color: var(--warn); }
.summary .ok strong { color: var(--ok); }

.result section { margin-top: 32px; }
h3 { margin: 0 0 12px; font-size: 22px; }

.checks { width: 100%; border-collapse: collapse; font-size: 15px; }
.checks th, .checks td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.checks th { width: 38%; font-weight: 600; }
.checks td { overflow-wrap: anywhere; }
.checks td.state { width: 96px; padding-right: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.state.ok { color: var(--ok); }
.state.warn { color: var(--warn); }
.state.bad { color: var(--bad); }
.state.info { color: var(--gray); }

.gate { padding: 24px; border-radius: 8px; background: var(--night); color: var(--paper); }
.gate p { color: var(--ash); }
.gate > p { margin: 0 0 18px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.field label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 500; }
.field input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  background: #1b1b1b;
  color: var(--paper);
  font: inherit;
}
.gate .error { color: #ff9c92; }

.priorities { margin: 0; padding: 0; list-style: none; counter-reset: item; }
.priorities li {
  position: relative;
  padding: 16px 0 16px 48px;
  border-bottom: 1px solid var(--line);
  counter-increment: item;
}
.priorities li::before {
  content: counter(item);
  position: absolute;
  top: 15px;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  line-height: 32px;
  text-align: center;
}
.priorities h4 { margin: 0 0 4px; font-size: 17px; }
.priorities p { margin: 0; overflow-wrap: anywhere; }
.priorities .fix { margin-top: 4px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.disclaimer { color: var(--gray); }

.footer { padding: 24px 20px 32px; border-top: 1px solid var(--line); color: var(--gray); font-size: 14px; text-align: center; }
.footer p { margin: 0; }
.footer .fine { margin-top: 6px; color: var(--gray); font-size: 12.5px; }

@media (max-width: 620px) {
  .hero { padding: 36px 0 44px; }
  .run { flex-direction: column; }
  .run button { width: 100%; }
  .fields { grid-template-columns: 1fr; }
  .summary div { padding: 12px; }
  .summary strong { font-size: 24px; }
  .summary span { font-size: 12.5px; }
  .actions .button { width: 100%; }
}

@media print {
  .topbar, .hero, .footer, .no-print { display: none !important; }
  .result { padding-top: 0; }
  body { font-size: 12pt; }
}
