:root {
  --bg: #f6f2ea;
  --panel: #fffaf2;
  --ink: #162019;
  --muted: #68736b;
  --line: #d9d1c2;
  --green: #1f4d3a;
  --green-2: #d9eee4;
  --copper: #b45f3a;
  --blue: #315c85;
  --shadow: 0 18px 50px rgba(36, 29, 20, 0.12);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: rgba(246, 242, 234, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 4;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 1px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
}

.nav a,
.footer a {
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.nav a:hover,
.footer a:hover {
  text-decoration-color: currentColor;
}

.hero {
  display: grid;
  min-height: min(720px, calc(100vh - 74px));
  position: relative;
}

.hero img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero::after {
  background: linear-gradient(90deg, rgba(20, 28, 22, 0.72), rgba(20, 28, 22, 0.2), rgba(20, 28, 22, 0.03));
  content: "";
  inset: 0;
  position: absolute;
}

.hero-copy {
  align-self: center;
  color: #fff;
  max-width: 720px;
  padding: clamp(48px, 9vw, 112px) clamp(22px, 7vw, 84px);
  position: relative;
  z-index: 1;
}

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

.hero .eyebrow {
  color: #f0c7ad;
}

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

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

h1 {
  font-size: clamp(42px, 8vw, 86px);
  max-width: 10ch;
}

.page-title h1,
.article-header h1 {
  color: var(--ink);
  font-size: clamp(38px, 7vw, 72px);
  max-width: 12ch;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  font-size: 24px;
}

.hero-copy p {
  font-size: clamp(18px, 2vw, 22px);
  max-width: 680px;
}

.hero-actions,
.offer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.hero .button.primary {
  background: #fff;
  color: var(--green);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.48);
  color: #fff;
}

.band {
  background: var(--green);
  color: #fff;
  padding: 58px clamp(20px, 5vw, 72px);
}

.band .eyebrow {
  color: #f0c7ad;
}

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

.section-heading p:not(.eyebrow),
.page-title p,
.article-header p {
  color: var(--muted);
  font-size: 18px;
}

.band .section-heading p,
.band .feature-grid span {
  color: #d8e8df;
}

.feature-grid,
.guide-grid,
.product-grid,
.tool-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  margin-top: 28px;
}

.feature-grid div,
.guide-card,
.product-card,
.tool-card,
.takeaway,
.disclosure-inline,
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-grid div {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 6px;
  padding: 22px;
}

.content-section,
.page-title,
.article-shell {
  margin-inline: auto;
  max-width: 980px;
  padding: 52px clamp(20px, 5vw, 64px);
}

.content-section.wide {
  max-width: 1180px;
}

.guide-card {
  min-height: 230px;
  padding: 22px;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.guide-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.guide-card span,
.product-meta,
.article-meta,
.status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.guide-card p,
.product-card p,
.content-section p,
.tool-card output {
  color: var(--muted);
}

.article-shell {
  max-width: 1040px;
}

.breadcrumb {
  color: var(--muted);
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.article-header {
  padding-bottom: 24px;
}

.article-meta,
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.disclosure-inline,
.takeaway {
  margin: 20px 0;
  padding: 20px;
}

.takeaway {
  background: var(--green-2);
}

.takeaway h2 {
  font-size: 24px;
}

.product-card {
  padding: 22px;
}

.split-list,
.details-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.risk-note {
  border-left: 4px solid var(--copper);
  padding-left: 14px;
}

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

.faq-item {
  padding: 18px;
}

.related-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.related-links a {
  background: var(--green-2);
  border-radius: 6px;
  padding: 10px 12px;
  text-decoration: none;
}

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

table {
  background: var(--panel);
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

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

th {
  background: #eee6d8;
  font-size: 13px;
  text-transform: uppercase;
}

.tool-grid {
  margin-inline: auto;
  max-width: 1180px;
  padding: 28px clamp(20px, 5vw, 64px) 64px;
}

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

.tool-card h2 {
  font-size: 26px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 14px;
  font-weight: 800;
  gap: 6px;
}

input {
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
}

output {
  background: var(--green-2);
  border-radius: 6px;
  display: block;
  min-height: 48px;
  padding: 12px;
}

.footer {
  align-items: start;
  background: #18251d;
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 34px clamp(20px, 5vw, 64px);
}

.footer p,
.footer a {
  color: #d8e8df;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.redirect-page {
  margin: 18vh auto;
  max-width: 640px;
  padding: 24px;
  text-align: center;
}

@media (max-width: 760px) {
  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 680px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(20, 28, 22, 0.78), rgba(20, 28, 22, 0.2));
  }

  .hero-copy {
    align-self: start;
  }

  h1,
  .page-title h1,
  .article-header h1 {
    max-width: 100%;
  }
}
