:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --paper: #ffffff;
  --ink: #161814;
  --muted: #5f665d;
  --line: #d9ded4;
  --green: #266b4a;
  --green-2: #e1f0e6;
  --blue: #1f5d8f;
  --amber: #b45f20;
  --amber-2: #fff1df;
  --red: #9f3535;
  --shadow: 0 18px 40px rgba(24, 31, 22, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-color: rgba(38, 107, 74, 0.45);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green);
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 245, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(24, 31, 22, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
}

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

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 0 16px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.nav-cta:hover,
.button:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-2);
}

.button,
.filter-button,
.article-card,
.side-box,
.tool-panel,
.stat {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.section {
  padding: 54px 22px;
}

.section.tight {
  padding-top: 20px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: 34px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 8px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.2rem, 4.25vw, 4.05rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.9rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
}

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

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.stat strong {
  display: block;
  font-size: 1.4rem;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-showcase {
  position: relative;
  min-height: clamp(390px, 42vw, 510px);
  margin: 0;
  border: 1px solid rgba(24, 31, 22, 0.18);
  border-radius: 8px;
  background: #dfe7dc;
  box-shadow: 0 24px 58px rgba(24, 31, 22, 0.16);
  overflow: hidden;
  isolation: isolate;
}

.hero-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 18, 14, 0.04) 38%, rgba(13, 18, 14, 0.78) 100%),
    linear-gradient(90deg, rgba(13, 18, 14, 0.46) 0%, rgba(13, 18, 14, 0.04) 48%);
  z-index: 1;
  pointer-events: none;
}

.hero-showcase img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transform: scale(1.015);
}

.hero-caption,
.hero-metric-stack {
  position: absolute;
  z-index: 2;
}

.hero-caption {
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 10px;
  max-width: 420px;
  color: #fff;
}

.hero-caption strong {
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  line-height: 1.08;
}

.hero-badge {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(12px);
}

.hero-metric-stack {
  top: 18px;
  right: 18px;
  display: grid;
  gap: 8px;
  width: min(260px, calc(100% - 36px));
}

.hero-metric-stack span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: #223029;
  padding: 8px 10px;
  font-size: 0.87rem;
  font-weight: 780;
  box-shadow: 0 10px 24px rgba(17, 23, 18, 0.12);
  backdrop-filter: blur(12px);
}

.hero-metric-stack strong {
  color: var(--green);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.tool-panel {
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 22px;
}

.tool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.tool-header p,
.section-kicker,
.article-meta,
.small,
.note {
  color: var(--muted);
}

.tool-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  accent-color: var(--green);
}

label.side-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  line-height: 1.35;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(38, 107, 74, 0.18);
  border-color: var(--green);
}

.result-box {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  background: #141914;
  color: #fff;
  padding: 18px;
}

.result-box span {
  color: #cbd6ca;
  font-size: 0.86rem;
}

.result-box strong {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.diagnosis-section {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.diagnosis-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 34px;
  align-items: center;
}

.diagnosis-copy {
  display: grid;
  gap: 16px;
}

.diagnosis-panel {
  box-shadow: 0 18px 38px rgba(24, 31, 22, 0.1);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

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

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
}

.article-card:hover {
  color: var(--ink);
  border-color: rgba(38, 107, 74, 0.48);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e8ece5;
}

.article-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.article-card h2 {
  font-size: 1.25rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--green-2);
  color: var(--green);
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag.blue {
  background: #e4eff8;
  color: var(--blue);
}

.tag.amber {
  background: var(--amber-2);
  color: var(--amber);
}

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

.filter-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  color: var(--muted);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-2);
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 110px;
  border: 1px dashed #aeb8aa;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: #6f786d;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 750;
  padding: 16px;
}

.feature-card {
  grid-column: span 2;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: start;
}

.checklist,
.resource-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li,
.resource-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px 14px;
}

.article-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 22px 70px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 330px);
  gap: 34px;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-hero {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.article-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 4rem);
}

.article-cover {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e8ece5;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible,
.reveal.reveal-pending.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .filter-button,
  .article-card,
  .side-box,
  .tool-panel,
  .hero-showcase,
  .stat,
  .reveal {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.article-content {
  display: grid;
  gap: 22px;
  font-size: 1.04rem;
}

.article-content h2 {
  margin-top: 14px;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
}

.article-content h3 {
  margin-top: 8px;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.25rem;
}

.article-content blockquote {
  margin: 0;
  border-left: 4px solid var(--green);
  background: #fff;
  padding: 16px 18px;
  color: #364038;
}

.sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 88px;
}

.side-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.side-box h3 {
  margin-bottom: 10px;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px;
}

.footer-inner a {
  color: #e8eee5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #c5cebf;
  font-size: 0.92rem;
}

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 42px 22px 70px;
}

.legal-page .article-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
}

@media (max-width: 920px) {
  .header-inner,
  .nav {
    align-items: flex-start;
  }

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

  .hero-grid,
  .diagnosis-grid,
  .section-heading,
  .two-column,
  .article-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-showcase {
    min-height: 390px;
  }

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

  .feature-card {
    grid-column: span 1;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .section,
  .article-shell,
  .legal-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 4px;
  }

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

  .stats-row {
    display: none;
  }

  .tool-panel {
    padding: 16px;
  }

  .hero-showcase {
    min-height: 360px;
  }

  .hero-caption {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .hero-metric-stack {
    top: 14px;
    right: 14px;
    width: min(238px, calc(100% - 28px));
  }

  .hero-metric-stack span {
    min-height: 38px;
    font-size: 0.8rem;
    padding: 7px 9px;
  }
}
