:root {
  --ink: #1d2726;
  --muted: #5e6a67;
  --line: #d8dfdc;
  --paper: #ffffff;
  --soft: #f4f7f6;
  --band: #eaf0ee;
  --teal: #0f766e;
  --teal-dark: #075f59;
  --orange: #e86f37;
  --amber: #f3c14b;
  --steel: #394846;
  --blue: #2563eb;
  --shadow: 0 16px 42px rgba(29, 39, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.62;
}

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

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav-links a {
  color: var(--steel);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--teal-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #fff;
  background: var(--teal);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
  background: var(--teal-dark);
}

.btn.secondary {
  background: #fff;
  color: var(--ink);
  border-color: #b8c4c0;
}

.btn.secondary:hover {
  background: #f9fbfa;
  box-shadow: 0 10px 24px rgba(29, 39, 38, 0.10);
}

.btn.orange {
  background: var(--orange);
}

.btn.orange:hover {
  background: #c95827;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: #e7eeeb;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244,247,246,0.96) 0%, rgba(244,247,246,0.92) 42%, rgba(244,247,246,0.58) 70%, rgba(244,247,246,0.38) 100%);
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(58vw, 860px);
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 660px;
  display: grid;
  align-items: center;
  padding: 78px 20px 54px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  color: var(--ink);
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 76px);
}

.hero-subtitle {
  margin: 18px 0 0;
  max-width: 680px;
  color: #31413f;
  font-size: clamp(18px, 2vw, 22px);
}

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

.trust-strip {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  max-width: 760px;
}

.trust-item {
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(27, 42, 40, 0.16);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 720;
  color: #2d3b39;
}

.trust-item i {
  color: var(--teal);
  flex: 0 0 auto;
}

.section {
  padding: 78px 0;
  background: var(--paper);
}

.section.band {
  background: var(--band);
}

.section.soft {
  background: var(--soft);
}

.section-header {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.section-header p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.toc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.toc a {
  min-height: 50px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--steel);
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 720;
}

.toc a:hover {
  color: var(--teal-dark);
  background: #e3eeeb;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 34px;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.text-block p {
  margin: 0 0 16px;
  color: #33413f;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}

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

.metric strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  color: var(--teal-dark);
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(29, 39, 38, 0.06);
}

.card h3 {
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h3 i,
.mini-head i {
  color: var(--orange);
}

.card p,
.card li {
  color: #43504e;
}

.card ul,
.check-list {
  padding-left: 19px;
  margin: 14px 0 0;
}

.check-list li {
  margin-bottom: 8px;
}

.process {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.process-step {
  position: relative;
  padding: 22px 22px 22px 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.process-step h3 {
  font-size: 21px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: #edf4f2;
  color: #243230;
  font-size: 13px;
  text-transform: uppercase;
}

td {
  color: #3c4947;
}

tr:last-child td {
  border-bottom: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e8f2ef;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 780;
}

.cta-band {
  padding: 28px;
  border-radius: 8px;
  background: var(--steel);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.cta-band h2,
.cta-band h3 {
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
}

.cta-band p {
  margin: 10px 0 0;
  color: #e6eeeb;
}

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

.selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

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

.field label {
  font-size: 13px;
  font-weight: 780;
  color: #33413f;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #bdc8c4;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.result-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #b8d6d1;
  background: #eff8f6;
  color: #153f3b;
  display: none;
}

.result-box.is-visible {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: 60px;
  border: 0;
  background: #fff;
  color: var(--ink);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-weight: 780;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 18px 18px;
  color: #44514f;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.footer {
  background: #182321;
  color: #dce8e5;
  padding: 46px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
}

.footer h3,
.footer h4 {
  color: #fff;
}

.footer a {
  color: #dce8e5;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
}

.copyright {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: #adc0bb;
  font-size: 13px;
}

.resource-hero {
  padding: 86px 0 58px;
  background: var(--band);
  border-bottom: 1px solid var(--line);
}

.resource-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.resource-hero p {
  max-width: 780px;
  color: #394846;
  font-size: 19px;
}

.compact-page .section {
  padding: 64px 0;
}

.article-page {
  background: var(--paper);
}

.article-detail-hero {
  padding: 74px 0 48px;
  background: var(--band);
  border-bottom: 1px solid var(--line);
}

.article-detail-hero h1 {
  max-width: 980px;
  font-size: clamp(38px, 5vw, 68px);
}

.article-detail-hero p {
  max-width: 820px;
  color: #394846;
  font-size: 19px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--steel);
  font-size: 13px;
  font-weight: 720;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.article-layout > * {
  min-width: 0;
}

.article-sidebar {
  position: sticky;
  top: 92px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.article-sidebar h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

.article-sidebar a {
  display: block;
  padding: 8px 0;
  border-top: 1px solid #edf2f0;
  color: var(--steel);
  font-size: 14px;
  text-decoration: none;
}

.article-sidebar a:hover {
  color: var(--teal-dark);
}

.article-content {
  max-width: 880px;
  min-width: 0;
}

.article-content h1 {
  display: none;
}

.article-content h2 {
  margin-top: 54px;
  padding-top: 10px;
  font-size: clamp(28px, 3.4vw, 42px);
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin-top: 32px;
  font-size: 25px;
}

.article-content p {
  margin: 15px 0;
  color: #34413f;
}

.article-content blockquote {
  margin: 26px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--orange);
  background: #fff7f2;
  color: #3f332d;
}

.article-content ul {
  padding-left: 22px;
  color: #34413f;
}

.article-content li {
  margin: 8px 0;
}

.article-content .table-wrap {
  margin: 22px 0;
}

.article-footer-cta {
  margin-top: 42px;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 67px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
  }

  .hero-media {
    width: 100%;
    opacity: 0.38;
  }

  .hero-inner {
    min-height: 610px;
  }

  .trust-strip,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .toc-grid,
  .grid-3,
  .grid-2,
  .selector-grid,
  .metric-row,
  .footer-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .cta-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 10px 14px;
  }

  .container,
  .hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 30px;
  }

  .hero::before {
    background: rgba(244,247,246,0.90);
  }

  .hero-media img {
    object-position: 62% center;
  }

  .section {
    padding: 58px 0;
  }

  .grid-4,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
  }

  .trust-item {
    min-height: 62px;
    padding: 10px;
    font-size: 12px;
  }

  .hero-actions .btn,
  .cta-band .btn {
    width: 100%;
  }

  .toc {
    padding: 16px;
  }

  .card,
  .selector,
  .cta-band {
    padding: 18px;
  }
}
