:root {
  --bg: #f5f0e8;
  --bg-elevated: rgba(255, 255, 255, 0.78);
  --bg-strong: #fffaf3;
  --text: #133020;
  --text-soft: #4f5f55;
  --line: rgba(26, 107, 60, 0.14);
  --line-strong: rgba(26, 107, 60, 0.24);
  --brand: #1a6b3c;
  --brand-deep: #104024;
  --accent: #ff6b35;
  --accent-deep: #cc4d1f;
  --gold: #f1c972;
  --shadow: 0 20px 50px rgba(16, 64, 36, 0.12);
  --shadow-soft: 0 12px 30px rgba(16, 64, 36, 0.08);
  --radius: 12px;
  --radius-lg: 24px;
  --content: 1180px;
  --header-height: 76px;
  --font-heading: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1712;
    --bg-elevated: rgba(22, 34, 27, 0.8);
    --bg-strong: #18241d;
    --text: #edf6ef;
    --text-soft: #b6c5bb;
    --line: rgba(199, 227, 211, 0.12);
    --line-strong: rgba(199, 227, 211, 0.22);
    --brand: #72bf8f;
    --brand-deep: #d9f2e1;
    --accent: #ff8a5d;
    --accent-deep: #ff6b35;
    --gold: #f6d485;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.24);
  }
}

:root[data-theme="light"] {
  --bg: #f5f0e8;
  --bg-elevated: rgba(255, 255, 255, 0.78);
  --bg-strong: #fffaf3;
  --text: #133020;
  --text-soft: #4f5f55;
  --line: rgba(26, 107, 60, 0.14);
  --line-strong: rgba(26, 107, 60, 0.24);
  --brand: #1a6b3c;
  --brand-deep: #104024;
  --accent: #ff6b35;
  --accent-deep: #cc4d1f;
  --gold: #f1c972;
  --shadow: 0 20px 50px rgba(16, 64, 36, 0.12);
  --shadow-soft: 0 12px 30px rgba(16, 64, 36, 0.08);
}

:root[data-theme="dark"] {
  --bg: #0f1712;
  --bg-elevated: rgba(22, 34, 27, 0.8);
  --bg-strong: #18241d;
  --text: #edf6ef;
  --text-soft: #b6c5bb;
  --line: rgba(199, 227, 211, 0.12);
  --line-strong: rgba(199, 227, 211, 0.22);
  --brand: #72bf8f;
  --brand-deep: #d9f2e1;
  --accent: #ff8a5d;
  --accent-deep: #ff6b35;
  --gold: #f6d485;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.24);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 107, 53, 0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(26, 107, 60, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 30%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.45;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

button {
  cursor: pointer;
}

main {
  display: block;
}

.container {
  width: min(100% - 2rem, var(--content));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(245, 240, 232, 0.62);
  border-bottom: 1px solid var(--line);
}

:root[data-theme="dark"] .site-header {
  background: rgba(15, 23, 18, 0.72);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header {
    background: rgba(15, 23, 18, 0.72);
  }
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(26, 107, 60, 0.28)),
    var(--bg-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.logo-copy {
  display: grid;
  gap: 0.05rem;
}

.logo-title {
  font-size: 1rem;
}

.logo-tag {
  font-size: 0.76rem;
  color: var(--text-soft);
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a,
.theme-toggle {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.65rem 0.95rem;
  color: var(--text-soft);
  font-weight: 600;
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.42);
  outline: none;
}

.theme-toggle {
  background: transparent;
}

.hero {
  padding: 4rem 0 2rem;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(26, 107, 60, 0.08);
  color: var(--brand);
  border: 1px solid var(--line);
}

.hero h1,
.page-hero h1,
.section-heading h2,
.article-content h2,
.article-content h3,
.card-title,
.stat-value,
.cta-band h2 {
  font-family: var(--font-heading);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero h1,
.page-hero h1 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
}

.hero p,
.page-hero p,
.section-heading p,
.lede {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  max-width: 62ch;
}

.hero-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button {
  background: linear-gradient(135deg, var(--accent), #ff8b57);
  color: #fff8f4;
  box-shadow: 0 16px 34px rgba(255, 107, 53, 0.28);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(255, 107, 53, 0.34);
  outline: none;
}

.button-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--line);
}

.button-ghost {
  background: transparent;
  color: var(--brand);
}

.hero-panel,
.card,
.panel,
.article-card,
.review-card,
.faq-item,
.table-wrap,
.cta-band,
.callout,
.image-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
}

.hero-panel {
  padding: 1.4rem;
  overflow: hidden;
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -12% -24% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.24), transparent 60%);
}

.stat-stack {
  display: grid;
  gap: 1rem;
}

.stat-card {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

:root[data-theme="dark"] .stat-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stat-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
  }
}

.stat-label {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.stat-value {
  font-size: 2rem;
  margin-top: 0.35rem;
}

.hero-mini-grid,
.card-grid,
.review-grid,
.guide-grid,
.faq-grid,
.metric-grid,
.content-grid,
.split-grid,
.footer-grid,
.how-grid {
  display: grid;
  gap: 1.25rem;
}

.hero-mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.2rem;
}

.mini-chip {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.mini-chip strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.section {
  padding: 1.5rem 0 4rem;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-kicker {
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

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

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

.card {
  padding: 1.35rem;
}

.card-title {
  font-size: 1.4rem;
  margin: 0.6rem 0;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  padding: 0.3rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.icon-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.16), rgba(26, 107, 60, 0.22));
  border: 1px solid var(--line);
}

.table-wrap,
.article-card,
.callout,
.image-card,
.cta-band {
  padding: 1.3rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.content-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: start;
}

.article-content {
  display: grid;
  gap: 1.2rem;
}

.article-content h2,
.article-content h3 {
  margin: 1rem 0 0.35rem;
}

.article-content h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
}

.article-content h3 {
  font-size: 1.3rem;
}

.article-content p,
.article-content li {
  color: var(--text-soft);
}

.article-content ul,
.article-content ol {
  margin: 0;
  padding-left: 1.15rem;
}

.article-content blockquote {
  margin: 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 107, 53, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.sticky-stack {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  display: grid;
  gap: 1rem;
}

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

.review-card {
  padding: 1.35rem;
  display: grid;
  gap: 0.75rem;
}

.review-card strong {
  font-family: var(--font-heading);
}

.review-stars {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.faq-item {
  padding: 1rem 1.1rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0.9rem 0 0;
  color: var(--text-soft);
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--brand);
}

.faq-item[open] summary::after {
  content: "−";
}

.page-hero {
  padding: 3rem 0 1rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--brand);
  font-weight: 700;
}

.how-grid,
.guide-grid,
.faq-grid,
.footer-grid,
.split-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.image-card {
  overflow: hidden;
}

.hero-image-card {
  width: 100%;
  max-width: 540px;
  justify-self: center;
  align-self: center;
  padding: 0.9rem;
}

.guide-image-card {
  width: 100%;
  max-width: 320px;
  justify-self: center;
  margin: 0 auto 0.45rem;
  padding: 0.75rem;
}

.image-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
}

.guide-image-card img {
  display: block;
  aspect-ratio: 4 / 3;
  max-height: 250px;
  margin: 0 auto;
  object-fit: contain;
}

.hero-image-card img {
  display: block;
  max-height: 340px;
  margin: 0 auto;
  object-fit: contain;
}

.cta-band {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  justify-items: start;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: auto -14% -40% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.18), transparent 62%);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.site-footer {
  padding: 2rem 0 2.6rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 0.8rem;
}

.footer-nav {
  display: grid;
  gap: 0.55rem;
}

.footer-nav strong {
  font-family: var(--font-heading);
}

.footer-nav a {
  color: var(--text-soft);
}

.footer-footnote {
  margin-top: 1.4rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

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

  .card-grid,
  .review-grid,
  .guide-grid,
  .faq-grid,
  .how-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky-stack {
    position: static;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 68px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 0.65rem 0;
  }

  .site-nav {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .hero-mini-grid,
  .card-grid,
  .review-grid,
  .guide-grid,
  .faq-grid,
  .metric-grid,
  .how-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.35rem, 10vw, 3.5rem);
  }

  .button,
  .button-secondary,
  .button-ghost {
    width: 100%;
  }

  .hero-actions,
  .stack-actions {
    flex-direction: column;
  }
}
