:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080c18;
  color: #f5f7ff;
  --panel: #11172a;
  --panel-soft: #0d1324;
  --line: #26304b;
  --muted: #96a0b8;
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
  --good: #86efac;
  --warn: #fde68a;
  --bad: #fca5a5;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: #080c18;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 5%, rgba(56, 189, 248, .14), transparent 30rem),
    radial-gradient(circle at 10% 30%, rgba(129, 140, 248, .09), transparent 26rem),
    #080c18;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #07111f;
  font-weight: 900;
}

.badge,
.status,
.country {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
}

.hero {
  padding: 96px 0 72px;
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(48px, 8vw, 94px);
  line-height: .96;
  letter-spacing: -.065em;
}

.lead {
  max-width: 720px;
  margin: 28px 0 34px;
  color: #c3cadb;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.check-form {
  max-width: 820px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(17, 23, 42, .86);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}

.check-form > label,
.extra-panel > label {
  display: block;
  margin: 0 0 8px;
  color: #d8deec;
  font-size: 13px;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input {
  min-width: 0;
  width: 100%;
  height: 56px;
  border: 1px solid #35405d;
  border-radius: 14px;
  padding: 0 16px;
  background: #080d1b;
  color: #fff;
  outline: none;
  font-size: 18px;
  letter-spacing: .04em;
}

input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .12);
}

button {
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  cursor: pointer;
  background: #f4f7ff;
  color: #09101d;
  font-weight: 850;
}

button:hover {
  background: #fff;
}

button:disabled {
  cursor: wait;
  opacity: .65;
}

button.secondary {
  background: #1d2945;
  color: #edf3ff;
  border: 1px solid #364664;
}

.hint {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.extra-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.result {
  scroll-margin-top: 24px;
  padding: 42px 0 78px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.result-heading,
.section-heading,
.provider-top,
.fine-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.result h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -.04em;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 48px;
}

.summary-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
}

.summary-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 30px;
}

.summary-card span {
  color: var(--muted);
  font-size: 13px;
}

.section-heading {
  margin: 34px 0 14px;
  align-items: end;
}

.section-heading h3 {
  margin: 0;
  font-size: 21px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.provider-list,
.fine-list {
  display: grid;
  gap: 12px;
}

.provider-card,
.fine-card,
.error-box {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 19, 36, .9);
}

.provider-top > div {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.provider-card p {
  margin: 12px 0 0;
  color: #c0c8da;
  line-height: 1.55;
}

.status-ok {
  color: var(--good);
  border-color: rgba(134, 239, 172, .35);
}

.status-needs_input,
.status-needs_human,
.status-source_available,
.status-discovering,
.status-checking,
.status-queued {
  color: var(--warn);
  border-color: rgba(253, 230, 138, .35);
}

.status-not_supported {
  color: var(--muted);
  border-color: var(--line);
}

.status-error {
  color: var(--bad);
  border-color: rgba(252, 165, 165, .35);
}

.source-link {
  display: inline-block;
  margin-top: 13px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}

.source-link:hover {
  text-decoration: underline;
}


.provider-inputs {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.provider-input-row {
  display: grid;
  gap: 7px;
  color: #d8deec;
  font-size: 13px;
  font-weight: 700;
}

.provider-input-row small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.4;
}

.provider-inputs button {
  width: fit-content;
}

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

.action-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #364664;
  border-radius: 12px;
  padding: 0 16px;
  background: #1d2945;
  color: #edf3ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.fine-card dl {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 8px 18px;
  margin: 18px 0 0;
}

.fine-card dt {
  color: var(--muted);
  font-size: 13px;
}

.fine-card dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.how {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 0 84px;
}

.how article {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(12, 17, 31, .7);
}

.how article > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.how h3 {
  margin: 22px 0 9px;
}

.how p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

footer {
  min-height: 92px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    padding: 64px 0 50px;
  }

  .check-form {
    padding: 14px;
    border-radius: 18px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-row button {
    width: 100%;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how {
    grid-template-columns: 1fr;
  }

  .result-heading,
  .section-heading,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .fine-card dl {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .fine-card dd {
    margin-bottom: 9px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 44px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}
