:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17233b;
  background: #f3f6fb;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; }

main { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 96px; }

.hero { max-width: 760px; margin-bottom: 32px; }
.eyebrow, .step { margin: 0 0 8px; color: #365bd6; font-size: .78rem; font-weight: 750; letter-spacing: .04em; }
h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.055em; }
.lede { margin: 24px 0 0; color: #526078; font-size: 1.18rem; line-height: 1.65; }

.card, .results { margin-top: 20px; padding: clamp(24px, 4vw, 40px); border: 1px solid #dce3ef; border-radius: 20px; background: #fff; box-shadow: 0 16px 50px rgba(38, 55, 88, .08); }
.card-heading, .results-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.85rem); letter-spacing: -.025em; }
.muted, .message { color: #637088; line-height: 1.55; }

.badge { flex: none; padding: 7px 11px; border-radius: 999px; color: #704619; background: #fff1d8; font-size: .78rem; font-weight: 700; }
.badge.good { color: #126341; background: #daf5e7; }
.badge.error { color: #8c2832; background: #fee5e8; }
.badge.busy { color: #264bb9; background: #e5ebff; }
.badge.quiet { color: #617088; background: #edf1f6; }

form { display: grid; gap: 10px; margin-top: 24px; }
label { margin-top: 8px; font-size: .9rem; font-weight: 700; }
.optional { color: #7a879d; font-weight: 500; }
input[type="url"], input[type="text"] { width: 100%; padding: 13px 14px; border: 1px solid #bac5d6; border-radius: 9px; color: inherit; background: #fff; font: inherit; }
input:focus { outline: 3px solid rgba(54, 91, 214, .2); border-color: #365bd6; }
.check { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; font-weight: 550; }
.check input { width: 18px; height: 18px; accent-color: #365bd6; }

.actions { display: flex; gap: 10px; margin-top: 20px; }
button { width: fit-content; padding: 12px 17px; border: 1px solid #284ab8; border-radius: 9px; color: #fff; background: #365bd6; font: inherit; font-weight: 700; cursor: pointer; }
button:hover { background: #284ab8; }
button.secondary { color: #2f4262; border-color: #bac5d6; background: #fff; }
button:disabled { color: #7b8799; border-color: #d8dee8; background: #edf0f4; cursor: not-allowed; }

.results-heading a { color: #365bd6; font-weight: 700; }
.image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
figure { min-width: 0; margin: 0; }
figure img { display: block; width: 100%; max-height: 720px; object-fit: contain; object-position: top; border: 1px solid #dce3ef; border-radius: 10px; background: #f6f8fb; }
figcaption { padding: 10px 2px 0; color: #637088; font-size: .85rem; text-transform: capitalize; }

[hidden] { display: none !important; }

@media (max-width: 680px) {
  main { width: min(100% - 24px, 1080px); padding-top: 36px; }
  .card-heading, .results-heading { display: grid; }
  .image-grid { grid-template-columns: 1fr; }
  button { width: 100%; }
  .actions { display: grid; }
}
