:root {
  color-scheme: light;
  --canvas: #f5f7f1;
  --paper: #fffefa;
  --ink: #17271f;
  --muted: #475a50;
  --line: #d2dcd2;
  --lime: #d9f1a2;
  --mint: #e7f0e5;
  --forest: #21543d;
  --brand-blurple: #315b91;
  --brand-pink: #9c3b55;
  --brand-cyan: #17647b;
  --brand-emerald: #236047;
  --brand-amber: #865511;
  --text-secondary: var(--muted);
  --radius: 1.375rem;
  --shadow: 0 20px 48px -36px #18392c70;
  --gutter: clamp(1rem, 3.7vw, 3rem);
  --header-height: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font: 1rem/1.6 'Segoe UI', system-ui, sans-serif;
}
h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; }
::selection { background: var(--lime); color: var(--ink); }

.container { width: min(100%, 88rem); margin-inline: auto; padding-inline: var(--gutter); }
.gradient-text { color: var(--forest); }
.text-white { color: var(--ink); }
.text-muted, .text-secondary { color: var(--muted); }
.text-emerald-500 { color: var(--brand-emerald); }
.text-xs { font-size: .8125rem; }
.text-sm { font-size: .875rem; }
.text-2xl { font-size: 1.5rem; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 800; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: .08em; }
.w-full { width: 100%; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mb-3 { margin-bottom: .75rem; }

.skip-link {
  position: fixed;
  z-index: 30;
  top: 1rem;
  left: 1rem;
  padding: .6rem 1rem;
  border-radius: .625rem;
  background: var(--lime);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .65rem 1.125rem;
  min-height: 2.875rem;
  border: 1px solid transparent;
  border-radius: .75rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: background-color .18s ease, border-color .18s ease;
}
.btn svg { flex: none; }
.btn-primary { background: var(--forest); color: white; }
.btn-primary:hover { background: #163e2c; }
.btn-secondary { background: var(--paper); border-color: var(--line); }
.btn-secondary:hover { background: var(--mint); border-color: #9cb5a2; }
.btn-accent { background: var(--lime); color: #263c17; border-color: #bdd783; }
.btn-accent:hover { background: #cce88c; }
.btn-sm { padding-inline: .9rem; font-size: .875rem; }
.btn-lg { min-height: 3.25rem; padding-inline: 1.25rem; }
.btn svg:has(path[d^="M10.293 3.293"]),
.btn svg:has(path[d^="M12.293 5.293"]) { display: none; }
.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .5rem;
  border-radius: 2rem;
  padding: .35rem .7rem;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.35;
}
.badge svg { flex: none; }
.badge-brand, .badge-success { background: var(--mint); color: var(--forest); }
.badge-popular { background: var(--lime); color: #375121; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fffefaf7;
  border-bottom: 1px solid var(--line);
}
.nav-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: var(--header-height);
}
.brand-logo { display: inline-flex; align-items: center; gap: .625rem; font-weight: 800; font-size: 1.125rem; letter-spacing: -.035em; }
.logo-icon { width: 2.125rem; height: 2.125rem; flex: none; }
.brand-dot { color: var(--forest); }
.nav-menu, .nav-actions { display: flex; align-items: center; gap: clamp(.65rem, 1.15vw, 1.25rem); }
.nav-link { font-size: .875rem; font-weight: 650; color: var(--muted); white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--forest); text-decoration: underline; text-underline-offset: .35em; }
.mobile-toggle { display: none; }

.hero-section { padding-block: clamp(1rem, 4vw, 3.75rem) clamp(2rem, 6vw, 5.25rem); }
.hero-content {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(15rem, .8fr);
  gap: .95rem clamp(2rem, 7vw, 7rem);
  align-items: start;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 5rem);
  border: 1px solid #ccdbca;
  border-radius: clamp(1.25rem, 3vw, 2.875rem);
  background: linear-gradient(120deg, #fcfcf6 25%, #edf3e5 69%, #e0edda);
}
.hero-content::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 0 47%;
  background: radial-gradient(ellipse at 88% 52%, #d8ecb5 0 13%, transparent 13.2% 25%, #c8dfbb 25.2% 25.65%, transparent 26% 36%, #c8dfbb 36.2% 36.6%, transparent 37% 48%, #c8dfbb 48.2% 48.6%, transparent 49% 100%);
  opacity: .85;
}
.hero-badge-wrap, .hero-title, .hero-subtitle, .hero-actions { grid-column: 1; }
.hero-title {
  font-size: clamp(2.4rem, 5.05vw, 5.1rem);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -.075em;
  text-wrap: balance;
}
.hero-title .gradient-text { color: var(--forest); }
.hero-subtitle { max-width: 42rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.125rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: .5rem; }
.hero-trust-bar {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
  display: grid;
  gap: .625rem;
  padding: .75rem;
  border: 1px solid #ccdbca;
  border-radius: 1.5rem;
  background: #f9fcf2de;
  box-shadow: var(--shadow);
}
.trust-item { display: flex; gap: .85rem; align-items: center; padding: .75rem; background: var(--paper); border: 1px solid #dbe4d8; border-radius: .9rem; }
.trust-icon, .pillar-icon-box, .step-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .75rem;
  flex: none;
  background: var(--mint);
  color: var(--forest);
}
.trust-item:nth-child(even) .trust-icon { background: #eef3d8; }
.trust-title { font-weight: 750; line-height: 1.3; }
.trust-desc { color: var(--muted); font-size: .8125rem; }

.section { padding-block: clamp(2.75rem, 6vw, 6rem); }
#calculator { background: #edf2ea; border-block: 1px solid var(--line); }
#levels { background: #e9efe5; border-block: 1px solid var(--line); }
#how-it-works { background: #edf2e8; border-block: 1px solid var(--line); }
.section-header { display: grid; gap: .65rem; max-width: 48rem; margin-bottom: clamp(1.5rem, 3.2vw, 3rem); }
.section-eyebrow { color: var(--forest); font-size: .8125rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.section-title, .cta-title { font-size: clamp(2rem, 4vw, 3.625rem); line-height: 1.05; letter-spacing: -.062em; font-weight: 780; text-wrap: balance; }
.section-subtitle, .cta-desc { color: var(--muted); max-width: 46rem; }
.calculator-card, .pricing-card, .level-card, .pillar-card, .step-card, .review-card, .faq-item, .article-content {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.calculator-card, .article-content { padding: clamp(1.1rem, 3vw, 2.75rem); box-shadow: var(--shadow); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.6rem); align-items: start; }
.calc-controls, .modal-form { display: grid; gap: 1.25rem; min-width: 0; }
.control-group, .slider-container { display: grid; gap: .65rem; }
.control-label, .slider-ticks { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .2rem .65rem; }
.control-label { font-weight: 750; }
.control-hint, .slider-ticks { color: var(--muted); font-size: .8125rem; font-weight: 400; }
.segmented-control { display: flex; min-width: 0; flex-wrap: wrap; gap: .25rem; padding: .3rem; border-radius: .8rem; background: #edf2ea; border: 1px solid var(--line); }
.seg-btn { flex: 1 1 5rem; padding: .45rem .55rem; min-height: 2.75rem; border: 1px solid transparent; border-radius: .55rem; background: transparent; font-size: .875rem; font-weight: 700; line-height: 1.25; }
.seg-btn:hover { background: #e2ebdf; }
.seg-btn.active { background: var(--paper); color: var(--forest); border-color: #b9ccbc; box-shadow: 0 1px 2px #173a2420; }
.custom-range { display: block; width: 100%; min-height: 2rem; margin: 0; accent-color: var(--forest); cursor: pointer; }
.calc-summary { display: grid; min-width: 0; gap: 1rem; background: #e8f1e2; border: 1px solid #cadbc5; border-radius: 1.15rem; padding: clamp(1rem, 3vw, 2rem); }
.summary-header { display: grid; gap: .45rem; padding-bottom: .9rem; border-bottom: 1px solid #c9d9c4; }
.summary-level-badge { width: fit-content; padding: .3rem .65rem; border-radius: 1rem; font-size: .875rem; font-weight: 750; }
.summary-price-wrap, .card-price-row { display: flex; align-items: baseline; gap: .3rem .65rem; flex-wrap: wrap; }
.calc-price, .card-price-value { font-size: clamp(2.15rem, 3.6vw, 3.4rem); line-height: 1.08; font-weight: 800; letter-spacing: -.072em; }
.calc-original-price { text-decoration: line-through; color: var(--muted); }
.calc-savings-badge { color: var(--forest); font-size: .875rem; font-weight: 750; }

.pricing-toggle-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
.toggle-label { font-weight: 700; font-size: .875rem; }
.pricing-cards-grid, .levels-grid, .pillars-grid, .steps-grid, .reviews-grid, .checklist-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min, 17rem)), 1fr));
  gap: 1rem;
}
.pricing-cards-grid { --card-min: 16rem; }
.levels-grid { --card-min: 18rem; }
.steps-grid { --card-min: 15.5rem; }
.checklist-items { --card-min: 15rem; }
.pricing-card, .level-card, .pillar-card, .step-card, .review-card { padding: clamp(1.1rem, 2.2vw, 1.75rem); }
.pricing-card { display: flex; flex-direction: column; gap: .9rem; }
.pricing-card.featured { background: #edf4dd; border-color: #a7c78d; box-shadow: var(--shadow); }
.card-ribbon { align-self: flex-start; }
.card-header { display: grid; gap: .3rem; }
.card-level-name, .level-title, .pillar-title, .step-title, .checklist-title, .modal-title { font-size: 1.25rem; font-weight: 780; line-height: 1.23; letter-spacing: -.025em; }
.card-boost-count { color: var(--forest); font-weight: 750; font-size: .875rem; }
.card-price-period, .card-savings-text, .level-req, .pillar-text, .step-desc, .review-quote { color: var(--muted); }
.card-price-period, .card-savings-text { font-size: .875rem; }
.card-footer { margin-top: auto; padding-top: .4rem; }
.card-features, .level-perks-list, .summary-perks-list { display: grid; gap: .6rem; list-style: none; }
.feature-point, .level-perk, .perk-item, .check-item { display: flex; align-items: flex-start; gap: .55rem; color: var(--muted); font-size: .875rem; }
.feature-point svg, .perk-item svg, .check-item svg { width: 1rem; height: 1rem; flex: none; color: var(--forest); margin-top: .2rem; }
.level-card, .pillar-card, .step-card, .review-card { display: grid; align-content: start; gap: .7rem; }
.level-badge-top { width: fit-content; padding: .3rem .7rem; border-radius: 2rem; font-weight: 750; font-size: .8125rem; }
.level-1-badge { background: #e7eef9; color: #31547c; }
.level-2-badge { background: #e1f2ed; color: #245b4b; }
.level-3-badge { background: #eeeed5; color: #635719; }
.level-perk { display: block; }
.level-perk strong { color: var(--ink); }
.step-card { position: relative; }
.step-number { position: absolute; inset: 1rem 1rem auto auto; color: var(--forest); font-weight: 750; font-size: .875rem; }
.checklist-card { margin-top: 1.2rem; padding: clamp(1.15rem, 3vw, 2rem); background: #f5f8ed; border: 1px solid #c9d9bd; border-radius: var(--radius); }
.checklist-title { margin-bottom: .9rem; }
.review-card { grid-template-rows: auto 1fr auto; }
.review-stars { color: #8a5916; letter-spacing: .08em; }
.review-meta { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.reviewer-info { display: flex; gap: .6rem; align-items: center; }
.reviewer-avatar { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--mint); color: var(--forest); font-weight: 800; }
.reviewer-name { font-weight: 750; font-size: .875rem; }
.reviewer-server, .review-badge-verified { font-size: .8125rem; color: var(--muted); }
.review-badge-verified { color: var(--forest); }

.faq-wrap { display: grid; gap: .625rem; max-width: 60rem; }
.faq-item[open] { border-color: #abc5af; }
.faq-question { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; list-style: none; font-weight: 750; cursor: pointer; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question span { min-width: 0; overflow-wrap: anywhere; }
.faq-icon { width: 1.125rem; height: 1.125rem; color: var(--forest); flex: none; }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-answer { padding: 0 1.25rem 1.25rem; color: var(--muted); overflow-wrap: anywhere; }
.faq-answer a, .article-content a:not(.btn) { color: var(--forest); text-decoration: underline; text-underline-offset: .2em; }
.cta-banner { display: grid; justify-items: start; gap: 1rem; border: 1px solid #c3d8ab; border-radius: var(--radius); padding: clamp(1.5rem, 5vw, 4.25rem); background: linear-gradient(115deg, #e7f2d9, #e1efd7 65%, #d5e9b7); }

.article-page { flex: 1; padding-block: clamp(2rem, 6vw, 5rem); }
.article-header { display: grid; gap: .9rem; margin: 0 auto 2rem; max-width: 58rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .875rem; color: var(--muted); }
.breadcrumb a:hover { text-decoration: underline; }
.article-content { max-width: 58rem; margin-inline: auto; overflow-wrap: anywhere; }
.calc-grid .article-content { width: 100%; }
.article-content :is(h2, h3) { line-height: 1.25; letter-spacing: -.025em; margin-block: 1.3em .5em; }
.article-content > :first-child { margin-top: 0; }
.article-content p, .article-content :is(ul, ol) { color: var(--muted); margin-bottom: 1rem; }
.article-content :is(ul, ol) { padding-inline-start: 1.25rem; }
.article-content li + li { margin-top: .4rem; }
.article-callout { margin-block: 1rem; padding: 1rem; border-inline-start: 3px solid #80ab79; background: var(--mint); border-radius: .45rem; }

.modal-overlay {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(.75rem, env(safe-area-inset-top)) 1rem max(.75rem, env(safe-area-inset-bottom));
  background: #142d21a8;
  visibility: hidden;
  opacity: 0;
  transition: opacity .16s ease;
}
.modal-overlay.active { visibility: visible; opacity: 1; }
.modal-box { position: relative; flex: none; width: min(100%, 33rem); margin-block: auto; padding: clamp(1rem, 4vw, 2.25rem); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.modal-close { position: absolute; inset: .75rem .75rem auto auto; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: .75rem; background: var(--mint); font-size: 1.5rem; }
.modal-header { padding-inline-end: 3rem; margin-bottom: 1rem; }
.modal-subtitle { color: var(--muted); font-size: .875rem; }
.form-group { display: grid; min-width: 0; gap: .35rem; }
.form-label { font-size: .9375rem; font-weight: 750; }
.form-input { width: 100%; min-width: 0; padding: .7rem .8rem; border: 1px solid #a9b9ad; border-radius: .65rem; background: #fbfcf8; }
textarea.form-input { resize: vertical; }
.check-item input { flex: none; }

.site-footer { margin-top: auto; padding-block: 2.5rem 1.5rem; border-top: 1px solid var(--line); background: #e8efe5; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; padding-bottom: 1.5rem; }
.footer-brand, .footer-links { display: grid; align-content: start; gap: .5rem; }
.footer-col-title { margin-bottom: .5rem; font-weight: 800; }
.footer-text, .footer-link, .footer-bottom { color: var(--muted); font-size: .875rem; }
.footer-link:hover { color: var(--forest); text-decoration: underline; text-underline-offset: .2em; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; padding-top: 1rem; border-top: 1px solid #cdd9ce; }
.disclaimer-text { margin-top: .75rem; color: var(--muted); font-size: .8125rem; }

@media (max-width: 76rem) {
  .mobile-toggle { display: grid; place-content: center; gap: .25rem; flex: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--paper); }
  .mobile-toggle span { width: 1rem; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav-menu { position: absolute; z-index: 1; inset: 100% 0 auto; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; display: grid; gap: 0; padding: .5rem; border: 1px solid var(--line); border-radius: 0 0 .9rem .9rem; background: var(--paper); box-shadow: var(--shadow); }
  .nav-menu.open { visibility: visible; }
  .nav-link { display: flex; align-items: center; white-space: normal; min-height: 2.75rem; padding: .45rem .75rem; }
  .nav-menu + .nav-actions { display: none; }
}
@media (max-width: 56rem) {
  .hero-content { grid-template-columns: minmax(0, 1fr); }
  .hero-content::before { inset-inline-start: 18%; opacity: .4; }
  .hero-trust-bar { grid-area: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .75rem; }
  .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 32rem) {
  :root { --header-height: 4.25rem; }
  .hero-trust-bar { grid-template-columns: minmax(0, 1fr); padding: .5rem; }
  .hero-actions .btn { width: 100%; }
  .hero-title { letter-spacing: -.06em; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
