:root {
  --bg: #f8faf9;
  --panel: #ffffff;
  --ink: #12201f;
  --muted: #52615f;
  --line: #d9e3df;
  --teal: #0b766f;
  --teal-dark: #075650;
  --gold: #b7791f;
  --red: #b42318;
  --blue: #1d4ed8;
  --shadow: 0 14px 35px rgba(18, 32, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
}

a {
  color: var(--teal-dark);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--panel);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.nav-links,
.lang-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nav-links a,
.lang-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a[aria-current="page"],
.lang-links a[aria-current="true"] {
  color: var(--ink);
  font-weight: 700;
}

.hero,
.section,
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.5rem);
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.15rem;
}

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

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #ffffff;
  text-decoration: none;
  font-weight: 750;
}

.button.secondary {
  background: transparent;
  color: var(--teal-dark);
}

.signal-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.signal-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.signal-row:last-child {
  border-bottom: 0;
}

.signal-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e5f4f2;
  color: var(--teal-dark);
  font-weight: 900;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.card,
.question,
.ad-slot {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.card strong {
  color: var(--ink);
}

.metric {
  font-size: 2rem;
  font-weight: 850;
  color: var(--teal-dark);
}

.diagnostic-form {
  display: grid;
  gap: 1rem;
}

.question legend {
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.options label {
  display: grid;
  gap: 0.25rem;
  min-height: 86px;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.options input {
  width: 1rem;
  height: 1rem;
}

.result {
  border-left: 5px solid var(--teal);
}

.timeline {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.timeline-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-item::before {
  counter-increment: step;
  content: counter(step);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #ffffff;
  font-weight: 850;
}

.vendor-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
}

.vendor-table th,
.vendor-table td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.vendor-table th {
  background: #eef5f3;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fff7e6;
  color: #7a4a08;
  font-weight: 800;
  font-size: 0.82rem;
}

.ad-slot {
  color: var(--muted);
  text-align: center;
  min-height: 96px;
  display: grid;
  place-items: center;
  margin: 1.5rem 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .hero,
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .vendor-table {
    display: block;
    overflow-x: auto;
  }
}
