:root {
  --green-900: #0f3d22;
  --green-800: #14532d;
  --green-700: #166534;
  --green-100: #dcfce7;
  --amber-500: #f59e0b;
  --amber-300: #fcd34d;
  --amber-100: #fef3c7;
  --cream: #faf8f3;
  --white: #ffffff;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --line: #e7e2d8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 61, 34, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--green-900);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-800);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--green-900);
}
.brand-mark { display: inline-flex; }
.brand-logo {
  display: block;
  border-radius: 8px;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-900);
}
.brand-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-500);
  font-weight: 600;
}
.site-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-list a:hover { color: var(--green-700); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-900);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--green-800);
  color: #fff;
}
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-whatsapp {
  background: #16a34a;
  color: #fff;
}
.btn-whatsapp:hover { background: #12813a; color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}
.btn-ghost:hover { background: var(--green-100); color: var(--green-900); }
.btn-small { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(245, 158, 11, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(20, 83, 45, 0.10), transparent 55%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 72px 24px 64px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin-bottom: 18px;
}
.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 34em;
}
.subscribe {
  display: flex;
  gap: 10px;
  margin: 0 0 8px;
  max-width: 460px;
}
.subscribe input {
  flex: 1;
  padding: 13px 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}
.subscribe input:focus { border-color: var(--green-700); outline: none; }
.subscribe-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; min-height: 340px; }
.hero-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  width: 190px;
}
.hero-card strong { font-family: var(--font-display); color: var(--green-900); font-size: 1.05rem; }
.hero-card span:last-child { font-size: 0.82rem; color: var(--ink-soft); }
.hero-card-icon { font-size: 1.6rem; line-height: 1; margin-bottom: 6px; }
.hero-card-a { top: 12px; left: 6%; transform: rotate(-3deg); }
.hero-card-b { top: 120px; left: 42%; transform: rotate(2deg); }
.hero-card-c { top: 44px; left: 72%; transform: rotate(4deg); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { color: var(--ink-soft); margin: 0; }

/* Topics */
.topics { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.topic-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--amber-300);
  color: var(--ink);
}
.topic-icon { font-size: 2rem; line-height: 1; margin-bottom: 14px; }
.topic-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.topic-card p { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.95rem; }
.topic-link { font-weight: 600; color: var(--green-700); font-size: 0.9rem; }

/* Guides */
.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.guide-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.guide-item:last-child { border-bottom: none; }
.guide-tag {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  padding: 5px 10px;
  border-radius: 6px;
  margin-top: 4px;
}
.guide-item h3 { font-size: 1.15rem; margin: 0 0 4px; }
.guide-item h3 a { text-decoration: none; color: var(--green-900); }
.guide-item h3 a:hover { color: var(--green-700); }
.guide-item p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Testimonials */
.testimonials { background: var(--green-900); }
.testimonials .section-head h2 { color: #fff; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial {
  margin: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 26px;
  color: #fff;
}
.testimonial blockquote {
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #f1f5f1;
  font-family: var(--font-display);
}
.testimonial figcaption strong { display: block; color: #fff; }
.testimonial figcaption span { color: #b8c9bd; font-size: 0.85rem; }

/* About */
.about-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: flex-start;
}
.about-mark { margin-top: 6px; }
.about-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.about-points { list-style: none; margin: 20px 0 0; padding: 0; }
.about-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
.about-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-700);
  font-weight: 700;
}

/* Contact */
.contact { background: #fff; border-top: 1px solid var(--line); }
.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.contact-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact-copy p { color: var(--ink-soft); max-width: 34em; }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.contact-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-card h3 { font-size: 1.3rem; }
.contact-card p { color: var(--ink-soft); margin: 0 0 18px; }
.subscribe-stacked { flex-direction: column; max-width: none; }
.subscribe-stacked input { width: 100%; }
.subscribe-stacked .btn { width: 100%; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: #d7e2d9;
  padding: 48px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-brand .brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand p { margin: 0; font-size: 0.9rem; max-width: 30em; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #d7e2d9; text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--amber-300); }
.footer-meta p { margin: 0 0 6px; font-size: 0.85rem; color: #9fb6a5; }
.footer-attribution { color: #7f9a86; }

/* ---------- Articles ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.breadcrumb a { color: var(--green-700); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 16px;
}
.article-head { margin-bottom: 24px; }
.article-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}
.byline {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0;
}
.byline strong { color: var(--ink); }
.article-hero { margin: 0 0 24px; }
.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.inline-figure { margin: 8px 0 20px; }
.inline-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.inline-figure figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 8px;
}
.article-body { font-size: 1.06rem; }
.article-body > p { margin: 0 0 18px; color: #334155; }
.article-body h2 {
  font-size: 1.5rem;
  margin: 32px 0 12px;
  color: var(--green-900);
}
.article-body h3 {
  font-size: 1.18rem;
  margin: 24px 0 8px;
  color: var(--green-900);
}
.article-body ul, .article-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.article-body li { margin-bottom: 8px; }
.article-body a { text-decoration: underline; }
.article-body blockquote {
  border-left: 4px solid var(--amber-500);
  background: var(--amber-100);
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  color: var(--ink);
}
.key-takeaways {
  background: var(--green-100);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 28px 0;
}
.key-takeaways h2 { margin-top: 0; font-size: 1.2rem; }
.key-takeaways ul { margin-bottom: 0; }
.article-cta {
  background: var(--green-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 32px;
  text-align: center;
}
.article-cta h2 { color: #fff; font-size: 1.4rem; }
.article-cta p { color: #d7e2d9; margin: 0 0 18px; }
.article-cta .btn { margin: 0 6px; }
.related-guides { margin-top: 24px; }
.related-guides h2 { font-size: 1.4rem; margin-bottom: 16px; }
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { margin-bottom: 10px; }
.related-list a { text-decoration: none; color: var(--green-700); font-weight: 600; }
.related-list a:hover { color: var(--green-900); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-visual { min-height: 300px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; }
  .hero-card { width: 150px; padding: 14px 16px; }
  .hero-card-a { left: 0; }
  .hero-card-b { left: 30%; }
  .hero-card-c { left: 55%; }
  .nav-toggle { display: flex; }
  .nav-list {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    gap: 14px;
  }
  .nav-list.open { display: flex; }
  .nav-list .btn { justify-content: center; }
}


/* ---------- Calculators & tools ---------- */
.calc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 20px 0; box-shadow: var(--shadow); }
.calc label { display: block; font-weight: 600; color: var(--green-900); margin: 14px 0 6px; font-size: 0.95rem; }
.calc .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }
.calc input[type="number"] { width: 100%; max-width: 320px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: var(--font-body); color: var(--ink); background: var(--cream); }
.calc input[type="number"]:focus { outline: 2px solid var(--green-700); outline-offset: 1px; border-color: var(--green-700); background: var(--white); }
.calc .calc-error { color: #b91c1c; font-weight: 600; margin: 12px 0 0; display: none; }
.calc .calc-results { margin-top: 18px; }
.calc .calc-result { background: var(--green-100); border: 1px solid #bbf7d0; border-radius: 12px; padding: 12px 16px; margin: 8px 0; }
.calc .calc-result b { color: var(--green-900); font-size: 1.05rem; }
.calc .calc-result .note { color: var(--ink-soft); font-size: 0.85rem; }
.calc .calc-actions { margin-top: 16px; }
.calc .badge-good { color: var(--green-700); font-weight: 700; }
.calc .badge-warn { color: #b45309; font-weight: 700; }
.calc .badge-bad { color: #b91c1c; font-weight: 700; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 20px 0; }
.dl-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.dl-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.dl-card p { color: var(--ink-soft); margin: 0 0 14px; font-size: 0.95rem; flex: 1; }
.dl-card .filetype { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--green-700); background: var(--green-100); border-radius: 6px; padding: 2px 8px; margin-bottom: 8px; align-self: flex-start; }
.tool-list { list-style: none; padding: 0; margin: 0; }
.tool-list li { margin-bottom: 14px; }
.tool-list a { text-decoration: none; font-weight: 600; color: var(--green-700); font-size: 1.05rem; }
.tool-list a:hover { color: var(--green-900); text-decoration: underline; }
.tool-list .tool-desc { color: var(--ink-soft); font-size: 0.92rem; margin-top: 2px; }
.data-note { background: var(--amber-100); border: 1px solid var(--amber-300); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; font-size: 0.95rem; }
.data-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.data-table th { background: var(--green-100); color: var(--green-900); }
@media (max-width: 640px) { .data-table { display: block; overflow-x: auto; } }


/* ---------- Sources ---------- */
.sources { background: var(--white); border: 1px dashed #c9c2b4; border-radius: var(--radius); padding: 16px 20px; margin: 24px 0 0; font-size: 0.9rem; }
.sources h2 { font-size: 1.05rem; margin: 0 0 8px; }
.sources ul { margin: 0; padding-left: 18px; }
.sources li { margin-bottom: 4px; color: var(--ink-soft); }
.sources a { color: var(--green-700); }

/* ---------- Gated downloads ---------- */
.dl-gate { margin: 14px 0 0; }
.dl-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dl-form input[type="email"] { flex: 1 1 180px; min-width: 160px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; color: var(--ink); background: var(--white); }
.dl-form input[type="email"]:focus { outline: 2px solid var(--green-700); outline-offset: 1px; }
.dl-form input[type="email"][aria-invalid="true"] { border-color: #b91c1c; }
.dl-note { margin: 8px 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.dl-message { margin: 10px 0 0; font-size: 0.9rem; padding: 9px 12px; border-radius: var(--radius); }
.dl-message--ok { background: #e7f6ec; color: #14532d; }
.dl-message--error { background: #fdecec; color: #b91c1c; }
.dl-message--warn { background: #fdf3d8; color: #7a5b00; }
.dl-reveal { margin-top: 10px; }
.is-hidden { display: none !important; }

.footer-disclaimer { margin-top: 10px; font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); max-width: 52ch; }
.footer-disclaimer a { color: inherit; text-decoration: underline; }
