:root {
  color-scheme: light;
  --ink: #18201d;
  --muted: #5d6762;
  --line: #d9dfdc;
  --panel: #ffffff;
  --soft: #f3f6f2;
  --mint: #d7f4de;
  --green: #116149;
  --green-dark: #0c3f34;
  --blue: #264e8a;
  --rose: #a8445b;
  --shadow: 0 22px 60px rgba(20, 38, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fbfdf9 0%, #eef5f1 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

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

.topbar,
.hero,
.section,
.safety-band {
  width: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-dark);
  color: white;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 108px);
  padding: 42px 0 24px;
}

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

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.lede {
  max-width: 660px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.65;
}

.search-panel {
  max-width: 720px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.search-panel label {
  display: block;
  margin-bottom: 10px;
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

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

input,
button {
  min-height: 52px;
  border-radius: 7px;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
}

button,
.report-link {
  border: 0;
  background: var(--green-dark);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

button {
  padding: 0 18px;
}

.form-note {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.results-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.result-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--green-dark);
  color: white;
  font-size: 0.9rem;
}

.profile-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  display: grid;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-dark);
  font-size: 1.4rem;
  font-weight: 900;
}

.profile-card h2,
.section-heading h2,
.safety-band h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.profile-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.signal-grid,
.tile-grid,
.faq-grid {
  display: grid;
  gap: 14px;
}

.signal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px;
}

.signal-grid article,
.tile-grid article,
.faq-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.signal-grid article {
  padding: 14px;
}

.signal-grid span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-grid strong {
  display: block;
  margin-top: 8px;
}

.signal-grid p,
.tile-grid p,
.faq-grid p,
.safety-band p {
  color: var(--muted);
  line-height: 1.55;
}

.signal-grid p {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 18px;
}

.source-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  padding: 56px 0 12px;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 22px;
}

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

.tile-grid article,
.faq-grid article {
  padding: 20px;
}

.tile-grid article:nth-child(2) {
  border-top-color: var(--blue);
}

.tile-grid article:nth-child(3) {
  border-top-color: var(--rose);
}

.tile-grid h3,
.faq-grid h3 {
  margin: 0;
  font-size: 1.05rem;
}

.tile-grid p,
.faq-grid p {
  margin: 10px 0 0;
}

.safety-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 48px;
  padding: 28px;
  border: 1px solid rgba(17, 97, 73, 0.22);
  border-radius: 8px;
  background: var(--mint);
}

.safety-band p {
  max-width: 840px;
  margin: 12px 0 0;
}

.report-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 7px;
  white-space: nowrap;
}

.faq-section {
  padding-bottom: 0;
}

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

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

  .hero {
    min-height: auto;
  }

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

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1180px);
    padding-top: 12px;
  }

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

  .hero {
    padding-top: 24px;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .search-row,
  .signal-grid,
  .tile-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .result-header {
    flex-direction: column;
  }

  button,
  .report-link {
    width: 100%;
    justify-content: center;
  }
}
