/* Base layout and editorial styles shared by the preview and WordPress theme. */
:root {
  --page-bg: #f6f8f5;
  --surface: #ffffff;
  --ink: #1d2b25;
  --muted: #68766f;
  --line: #e4ebe5;
  --green: #23775a;
  --green-deep: #174e3b;
  --green-soft: #e7f2eb;
  --lime: #d8eddf;
  --gold: #e6b96e;
  --shadow: 0 18px 55px rgba(25, 55, 39, .08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --content-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(35, 119, 90, .35);
  outline-offset: 3px;
}
.page-width { width: min(var(--content-width), calc(100% - 48px)); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 248, 245, .9);
  border-bottom: 1px solid rgba(221, 230, 222, .78);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(var(--content-width), calc(100% - 48px)); min-height: 76px; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand-mark {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 14px; color: #fff; background: var(--green-deep);
  font-size: 17px; font-weight: 800; letter-spacing: -.06em;
  box-shadow: 0 7px 16px rgba(23, 78, 59, .18);
}
.brand-mark::after { content: ""; position: absolute; right: 5px; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: #b7e0c5; }
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-size: 15px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.site-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.site-nav a { color: #536259; text-decoration: none; font-size: 13px; font-weight: 650; transition: color .18s ease; }
.site-nav a:hover { color: var(--green); }
.site-nav-list { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.site-nav-list li { margin: 0; padding: 0; list-style: none; }
.page-subnav { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -18px; margin-bottom: 22px; padding: 8px 11px; border: 1px solid rgba(221,230,222,.9); border-radius: 13px; background: rgba(255,255,255,.93); box-shadow: 0 7px 20px rgba(25,55,39,.035); }
.page-subnav-label { margin-right: 3px; padding: 6px 7px; color: #89958c; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.page-subnav a { display: inline-flex; align-items: center; min-height: 31px; padding: 5px 10px; border: 1px solid transparent; border-radius: 999px; color: #53645a; background: #f7faf7; text-decoration: none; font-size: 10px; font-weight: 700; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.page-subnav a:hover { border-color: #d6e6d9; color: var(--green-deep); background: #eef6ef; }
.custom-logo-link { display: inline-flex; flex: 0 0 auto; align-items: center; }
.custom-logo { display: block; width: auto; max-height: 46px; }
.sr-only:focus { position: fixed !important; z-index: 100; top: 12px; left: 12px; width: auto; height: auto; padding: 10px 14px; clip: auto; white-space: normal; color: #fff; background: var(--green-deep); border-radius: 8px; }
.header-cta, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  text-decoration: none; font-size: 13px; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.header-cta { color: #fff; background: var(--green); box-shadow: 0 7px 17px rgba(35, 119, 90, .16); }
.header-cta:hover, .button-primary:hover { transform: translateY(-1px); background: var(--green-deep); box-shadow: 0 10px 21px rgba(35, 119, 90, .22); }
.button-primary { color: #fff; background: var(--green); box-shadow: 0 7px 17px rgba(35, 119, 90, .16); }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button-secondary:hover { border-color: #b8d4c2; transform: translateY(-1px); }
.button svg, .header-cta svg { width: 16px; height: 16px; }

/* Intro */
.hero { padding: 62px 0 42px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(310px, .87fr); align-items: center; gap: 44px; }
.hero-copy { padding: 5px 0 14px; }
.hero-kicker, .section-kicker {
  display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-size: 11px;
  line-height: 1.3; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
}
.hero-kicker::before, .section-kicker::before { content: ""; display: inline-block; width: 20px; height: 1px; background: currentColor; }
.hero-title { max-width: 650px; margin: 18px 0 17px; font-size: clamp(42px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -.065em; font-weight: 760; }
.hero-title em { color: var(--green); font-style: normal; }
.hero-text { max-width: 590px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 17px 24px; margin-top: 28px; color: #617067; font-size: 12px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.meta-dot { width: 7px; height: 7px; border-radius: 50%; background: #66a886; box-shadow: 0 0 0 4px #e5f1e9; }
.hero-visual {
  position: relative; min-height: 324px; display: grid; place-items: center; isolation: isolate;
}
.visual-glow { position: absolute; z-index: -1; width: 300px; height: 300px; right: 22px; top: 8px; border-radius: 50%; background: radial-gradient(circle, #dfeee2 0, rgba(223,238,226,.65) 44%, rgba(223,238,226,0) 72%); }
.visual-card {
  position: relative; width: min(100%, 390px); padding: 27px; border: 1px solid rgba(255,255,255,.85);
  border-radius: 25px; background: rgba(255,255,255,.82); box-shadow: 0 22px 58px rgba(32, 73, 51, .12); transform: rotate(1.2deg);
}
.visual-top { display: flex; align-items: center; justify-content: space-between; color: #65756b; font-size: 12px; font-weight: 650; }
.visual-pill { padding: 5px 9px; border-radius: 8px; color: var(--green); background: #edf6ef; font-size: 11px; }
.visual-amount { margin: 23px 0 7px; color: var(--ink); font-size: 34px; line-height: 1.1; font-weight: 780; letter-spacing: -.05em; }
.visual-caption { color: #849087; font-size: 12px; }
.visual-divider { height: 1px; margin: 22px 0 18px; background: var(--line); }
.visual-bottom { display: flex; justify-content: space-between; gap: 20px; }
.visual-stat small { display: block; margin-bottom: 4px; color: #7a877f; font-size: 11px; }
.visual-stat strong { display: block; font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.visual-stat strong.green { color: var(--green); }
.visual-spark {
  position: absolute; right: -18px; bottom: -22px; display: grid; place-items: center; width: 86px; height: 86px;
  border-radius: 24px; color: #fff; background: var(--green-deep); box-shadow: 0 14px 30px rgba(23,78,59,.2); transform: rotate(-8deg);
}
.visual-spark strong { font-size: 23px; line-height: 1; letter-spacing: -.05em; }
.visual-spark small { margin-top: 4px; font-size: 10px; opacity: .75; }

/* General content sections */
.site-main { padding-bottom: 76px; }
.calculator-shell { margin-top: 4px; }
.content-section { padding: 78px 0 0; }
.section-head { max-width: 690px; margin: 0 0 28px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .section-kicker { justify-content: center; }
.section-title { margin: 12px 0 9px; font-size: clamp(29px, 3.2vw, 40px); line-height: 1.13; letter-spacing: -.05em; font-weight: 740; }
.section-lead { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card {
  min-height: 197px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.8);
}
.step-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: var(--green); background: var(--green-soft); font-size: 13px; font-weight: 800; }
.step-card h3 { margin: 20px 0 7px; font-size: 16px; line-height: 1.3; letter-spacing: -.02em; }
.step-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.formula-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.formula-card { position: relative; overflow: hidden; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.formula-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -36px; bottom: -52px; border-radius: 50%; background: #f0f6f1; }
.formula-label { position: relative; z-index: 1; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.formula-card h3 { position: relative; z-index: 1; margin: 11px 0 13px; font-size: 18px; letter-spacing: -.03em; }
.formula-expression { position: relative; z-index: 1; display: inline-block; padding: 11px 14px; border-radius: 10px; color: #194a38; background: #edf5ef; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; font-weight: 700; }
.formula-card p { position: relative; z-index: 1; margin: 15px 0 0; color: var(--muted); font-size: 13px; }
.example-line { color: var(--ink) !important; font-weight: 650; }
.note-box { display: flex; align-items: flex-start; gap: 13px; margin-top: 19px; padding: 17px 19px; border: 1px solid #e4eadf; border-radius: 15px; color: #627067; background: #f1f5ef; font-size: 12px; line-height: 1.65; }
.note-box svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: var(--green); }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.faq-item summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 21px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; display: grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 9px; color: var(--green); background: var(--green-soft); font-size: 18px; font-weight: 500; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { max-width: 900px; padding: 0 21px 18px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.faq-answer p { margin: 0; }
.site-footer { padding: 29px 0 34px; border-top: 1px solid var(--line); color: #76827a; font-size: 12px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { color: #4c5c52; font-weight: 750; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--green); }

@media (max-width: 1120px) {
  .header-inner { gap: 14px; flex-wrap: wrap; padding-block: 11px; }
  .site-nav { order: 3; flex: 1 0 100%; width: 100%; justify-content: center; flex-wrap: wrap; margin-left: 0; gap: 8px 18px; }
  .site-nav-list { justify-content: center; flex-wrap: wrap; gap: 8px 18px; }
  .header-cta { margin-left: auto; }
  .hero { padding-top: 48px; }
  .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: 26px; }
  .hero-title { font-size: clamp(40px, 6.2vw, 58px); }
  .visual-card { padding: 22px; }
  .visual-spark { right: -8px; }
}
@media (max-width: 700px) {
  .page-width, .header-inner { width: min(100% - 32px, var(--content-width)); }
  .header-inner { min-height: 68px; display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 9px 0 10px; }
  .brand-mark { width: 37px; height: 37px; border-radius: 12px; }
  .brand-copy small { display: none; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 6px 14px; padding: 3px 0 0; }
  .site-nav-list { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 6px 14px; }
  .page-subnav { gap: 5px; margin-top: -12px; margin-bottom: 17px; padding: 7px; }
  .page-subnav-label { flex-basis: 100%; margin: 0 0 1px 3px; padding: 2px 4px; }
  .page-subnav a { flex: 1 1 auto; justify-content: center; padding-inline: 8px; }
  .site-nav a { font-size: 11px; }
  .header-cta { min-height: 37px; padding-inline: 12px; font-size: 11px; }
  .hero { padding: 38px 0 28px; }
  .hero-inner { display: block; }
  .hero-copy { padding-bottom: 0; }
  .hero-title { max-width: 500px; margin-top: 13px; font-size: clamp(39px, 11vw, 55px); }
  .hero-text { font-size: 15px; }
  .hero-actions { margin-top: 22px; }
  .hero-meta { gap: 12px 18px; margin-top: 22px; font-size: 11px; }
  .hero-visual { display: none; }
  .content-section { padding-top: 57px; }
  .steps-grid { grid-template-columns: 1fr; gap: 11px; }
  .step-card { min-height: 0; padding: 20px; }
  .step-card h3 { margin-top: 14px; }
  .formula-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
