:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5a6670;
  --line: #d7dde2;
  --paper: #f7f9fb;
  --white: #ffffff;
  --green: #1d7f5c;
  --blue: #2457c5;
  --amber: #b65d00;
  --shadow: 0 18px 50px rgba(23, 32, 38, 0.10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 249, 251, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

.language {
  color: var(--blue);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 75px);
  padding: clamp(48px, 8vw, 96px) clamp(18px, 6vw, 88px) 44px;
  background:
    linear-gradient(120deg, rgba(36, 87, 197, 0.09), rgba(29, 127, 92, 0.08)),
    var(--white);
}

.hero-copy {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.82rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(2.6rem, 6vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
button {
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 12px 16px;
  min-height: 46px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary,
button {
  background: var(--white);
  color: var(--ink);
}

.note {
  margin-top: 18px;
  color: var(--muted);
}

.hero-panel,
.result,
.priorities,
.category {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 26px;
}

.metric {
  display: block;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1;
}

.metric-label {
  color: var(--muted);
  font-weight: 800;
}

.bar {
  height: 12px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8edf1;
}

.bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--green));
  transition: width 180ms ease;
}

.diagnostic,
.checklist,
.content-band {
  padding: clamp(44px, 7vw, 88px) clamp(18px, 6vw, 88px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 0.64fr);
  gap: 18px;
}

.result,
.priorities {
  padding: 24px;
}

.result span {
  display: block;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1;
}

.result p {
  margin: 12px 0 0;
  color: var(--green);
  font-weight: 800;
}

.priorities p {
  color: var(--muted);
}

.priorities ol {
  padding-left: 22px;
}

.priorities li + li {
  margin-top: 8px;
}

.category {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 0.62fr);
  gap: 24px;
  padding: 24px;
  margin-top: 18px;
  box-shadow: none;
}

.category-count {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 900;
}

.category p:not(.category-count) {
  color: var(--muted);
}

.checks {
  display: grid;
  gap: 10px;
}

.check-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.check-item input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
}

.content-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  background: var(--white);
}

.content-band article {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.content-band p {
  max-width: 720px;
  color: var(--muted);
}

.ad-slot {
  min-height: 90px;
  margin-top: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(720px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.2;
}

.consent-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 6vw, 88px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .result-grid,
  .category,
  .content-band,
  .consent-banner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}
