:root {
  --ink: #242424;
  --muted: #686868;
  --line: #e2e2e2;
  --paper: #fff;
  --bg: #f7f7f7;
  --blue: #d9540d;
  --brand-orange: #f58220;
  --brand-orange-dark: #bd4300;
  --brand-purple: #7656d6;
  --brand-blue: #2878d0;
  --brand-cyan: #138da5;
  --brand-green: #24895a;
  --tint-orange: #fff3e8;
  --tint-purple: #f3efff;
  --tint-blue: #edf6ff;
  --tint-green: #edf9f2;
  --green: #16834a;
  --amber: #a85d00;
  --red: #c23131;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(58, 40, 28, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Poppins,
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}
.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
}
.hero {
  padding: 62px 0 92px;
  background: linear-gradient(135deg, #fff9f4 0%, #ffead8 62%, #ffd4b0 100%);
  color: var(--ink);
  border-top: 5px solid var(--brand-orange);
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 1;
  margin: 0.2em 0;
}
.hero p {
  max-width: 700px;
  font-size: 1.08rem;
  color: #555;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--brand-orange-dark);
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
  margin: 24px 0;
}
.form-card {
  margin-top: -54px;
}
h2 {
  font-size: 1.45rem;
  margin: 0.1em 0 1em;
}
h3 {
  margin: 1.1em 0 0.5em;
}
label {
  font-weight: 700;
  font-size: 0.92rem;
}
input,
select,
button,
.button {
  font: inherit;
}
input,
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #b8c4d3;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
input:focus,
select:focus,
button:focus,
.button:focus {
  outline: 3px solid rgba(245, 130, 32, 0.3);
  outline-offset: 2px;
  border-color: var(--blue);
}
.url-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 7px;
}
button,
.button {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: var(--brand-orange-dark);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button:hover,
.button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.toggle {
  padding: 8px 0;
  margin: 10px 0;
  background: transparent;
  color: var(--brand-orange-dark);
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 4px 0 12px;
  padding: 20px;
}
legend {
  font-weight: 800;
}
.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.options-grid label {
  display: grid;
  gap: 5px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.check input {
  width: auto;
}
.privacy,
.empty {
  font-size: 0.88rem;
  color: var(--muted);
}
.loading {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin-top: 10px;
  background: #fff2e7;
  border-left: 4px solid var(--brand-orange);
  border-radius: 10px;
}
.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #ffd3ad;
  border-top-color: var(--brand-orange-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.alert {
  padding: 14px;
  border-radius: 10px;
  margin: 12px 0;
}
.alert.fail {
  background: #fff0f0;
  color: #8d1c1c;
  border-left: 4px solid var(--red);
}
.alert.warning {
  background: #fff8e7;
  color: #754000;
  border-left: 4px solid var(--amber);
}
.summary {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  border-top: 6px solid var(--brand-orange);
  background: linear-gradient(135deg, #fff 68%, var(--tint-orange));
}
.grade {
  width: 116px;
  height: 116px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
  color: #fff;
  font-size: 3rem;
  font-weight: 900;
  margin: 10px 0;
}
.score {
  font-size: 1.15rem;
}
.summary dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
}
.summary dl div {
  padding: 13px;
  background: #f7f9fc;
  border-radius: 12px;
  border: 1px solid transparent;
}
.summary dl div:nth-child(4n + 1) {
  background: var(--tint-orange);
  border-color: #ffd5b3;
}
.summary dl div:nth-child(4n + 2) {
  background: var(--tint-purple);
  border-color: #dcd2ff;
}
.summary dl div:nth-child(4n + 3) {
  background: var(--tint-blue);
  border-color: #cbe4ff;
}
.summary dl div:nth-child(4n) {
  background: var(--tint-green);
  border-color: #ccebd9;
}
.summary dt {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 800;
}
.summary dd {
  margin: 3px 0;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
th,
td {
  padding: 13px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.break {
  min-width: 220px;
  overflow-wrap: anywhere;
}
.pill {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 0.73rem;
  font-weight: 850;
  text-transform: capitalize;
}
.pill.pass {
  background: #e6f6ed;
  color: var(--green);
}
.pill.warning {
  background: #fff3d7;
  color: var(--amber);
}
.pill.fail {
  background: #fde8e8;
  color: var(--red);
}
.pill.info {
  background: #e8f0ff;
  color: #2453a6;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.filters button {
  padding: 7px 11px;
  background: #edf2f8;
  color: var(--ink);
  font-size: 0.8rem;
}
.filters button.active {
  background: var(--brand-purple);
  color: #fff;
}
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.check-card {
  border: 1px solid var(--line);
  border-left: 5px solid #8192a8;
  border-radius: 13px;
  padding: 18px;
  min-width: 0;
  background: #fff;
  box-shadow: 0 6px 18px rgba(36, 36, 36, 0.04);
}
.check-card:nth-child(4n + 1) {
  background: linear-gradient(145deg, #fff 58%, var(--tint-orange));
}
.check-card:nth-child(4n + 2) {
  background: linear-gradient(145deg, #fff 58%, var(--tint-purple));
}
.check-card:nth-child(4n + 3) {
  background: linear-gradient(145deg, #fff 58%, var(--tint-blue));
}
.check-card:nth-child(4n) {
  background: linear-gradient(145deg, #fff 58%, var(--tint-green));
}
.check-card.status-pass {
  border-left-color: var(--green);
}
.check-card.status-warning {
  border-left-color: var(--amber);
}
.check-card.status-fail {
  border-left-color: var(--red);
}
.check-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.check-card code,
.copy-row code {
  display: block;
  background: #f2f5f9;
  padding: 8px;
  border-radius: 7px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}
.copy,
.secondary,
.ghost {
  background: var(--tint-purple);
  color: #20334e;
  border: 1px solid #d9d0fa;
  padding: 8px 12px;
  font-size: 0.82rem;
}
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.two-col .card {
  margin: 0;
}
.two-col .card:first-child {
  border-top: 5px solid var(--brand-purple);
  background: linear-gradient(180deg, var(--tint-purple), #fff 150px);
}
.two-col .card:last-child {
  border-top: 5px solid var(--brand-blue);
  background: linear-gradient(180deg, var(--tint-blue), #fff 150px);
}
.score-bars > div {
  display: grid;
  grid-template-columns: 220px 1fr 70px;
  gap: 14px;
  align-items: center;
  margin: 12px 0;
}
progress {
  width: 100%;
  height: 14px;
  accent-color: var(--blue);
}
.score-bars > div:nth-child(5n + 1) progress {
  accent-color: var(--brand-orange);
}
.score-bars > div:nth-child(5n + 2) progress {
  accent-color: var(--brand-purple);
}
.score-bars > div:nth-child(5n + 3) progress {
  accent-color: var(--brand-blue);
}
.score-bars > div:nth-child(5n + 4) progress {
  accent-color: var(--brand-green);
}
.score-bars > div:nth-child(5n) progress {
  accent-color: var(--brand-cyan);
}
.header-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 12px 0;
  overflow: hidden;
}
.header-panel summary {
  cursor: pointer;
  padding: 14px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--tint-blue), #fff);
  border-left: 5px solid var(--brand-blue);
}
.header-panel:nth-of-type(3n + 2) summary {
  background: linear-gradient(90deg, var(--tint-purple), #fff);
  border-left-color: var(--brand-purple);
}
.header-panel:nth-of-type(3n) summary {
  background: linear-gradient(90deg, var(--tint-orange), #fff);
  border-left-color: var(--brand-orange);
}
.header-panel > div,
.header-panel > pre {
  margin: 0 14px 14px;
}
.panel-tools {
  display: flex;
  gap: 8px;
}
.panel-tools input {
  max-width: 400px;
}
.header-panel pre {
  padding: 15px;
  background: #111b2d;
  color: #dbe7fb;
  border-radius: 9px;
  overflow: auto;
  max-height: 360px;
}
.header-line {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 10px;
  padding: 9px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.actions,
.actions form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.actions {
  justify-content: space-between;
}
footer {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
}
.is-hidden {
  display: none !important;
}
@media (max-width: 850px) {
  .options-grid,
  .analysis-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  .summary {
    grid-template-columns: 1fr;
  }
  .summary dl {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-head {
    display: block;
  }
  .filters {
    margin-bottom: 16px;
  }
}
@media (max-width: 520px) {
  .wrap {
    width: min(100% - 20px, 1180px);
  }
  .hero {
    padding: 42px 0 80px;
  }
  .url-row {
    grid-template-columns: 1fr;
  }
  .summary dl {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 17px;
    border-radius: 14px;
  }
  .score-bars > div {
    grid-template-columns: 1fr;
  }
  .header-line {
    grid-template-columns: 1fr;
  }
  .panel-tools {
    display: grid;
  }
  .section-head {
    display: block;
  }
}
@media print {
  body {
    background: #fff;
  }
  .hero,
  .form-card,
  .filters,
  .actions,
  footer,
  .copy,
  .panel-tools {
    display: none !important;
  }
  .card {
    box-shadow: none;
    break-inside: avoid;
    margin: 12px 0;
  }
  .header-panel:not([open]) > *:not(summary) {
    display: block;
  }
  .wrap {
    width: 100%;
  }
}
