:root {
  --coral: #f6a070;
  --coral-dk: #e07c45;
  --green: #7ba543;
  --green-dk: #5f8532;
  --ink: #1c2118;
  --ink-2: #4a5346;
  --line: #e6e4dd;
  --bg: #fdfcf9;
  --bg-2: #f5f3ec;
  --radius: 14px;
  --wrap: 1120px;
  --prose: 68ch;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-dk); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--ink-2); font-size: .9rem; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--coral-dk); margin-bottom: .8rem; }
.eyebrow a { color: inherit; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 52ch; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .6rem 1rem; z-index: 10; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--green-dk); outline-offset: 3px; }

/* --- buttons --- */
.btn {
  display: inline-block; background: var(--green); color: #fff;
  padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600;
  text-decoration: none; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--green-dk); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn-sm { padding: .5rem 1.1rem; font-size: .92rem; }

/* --- header --- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1rem; }
.brand b { color: var(--coral-dk); font-weight: 700; }
.brand img { width: 30px; height: auto; }
.header-inner nav { margin-left: auto; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.header-inner nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.header-inner nav a:hover, .header-inner nav a.current { color: var(--ink); }
.header-inner nav a.current { box-shadow: 0 2px 0 var(--coral); }

/* --- hero --- */
.hero { padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero-copy p { font-size: 1.1rem; color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-figure { margin: 0; }
.hero-figure img { border-radius: var(--radius); box-shadow: 0 18px 40px -24px rgba(28,33,24,.5); }
.hero-figure figcaption { font-size: .85rem; color: var(--ink-2); margin-top: .7rem; }

/* --- stats --- */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 1.75rem 0; }
.stats-inner b { display: block; font-size: 1.25rem; }
.stats-inner span { color: var(--ink-2); font-size: .92rem; }

/* --- sections --- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 2.25rem; }
.section-head p { color: var(--ink-2); }
.section-head :last-child { margin-bottom: 0; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem;
}
.card :last-child { margin-bottom: 0; }
.card h3, .card h4 { margin-bottom: .4rem; }
.card p { color: var(--ink-2); font-size: .95rem; }
.card svg {
  width: 30px; height: 30px; margin-bottom: .9rem;
  fill: none; stroke: var(--coral-dk); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

.link-card { transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: var(--green); transform: translateY(-2px); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.split img { border-radius: var(--radius); }
.split ul { padding-left: 1.1rem; }
.split li { margin-bottom: .6rem; }

/* --- prices --- */
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.price-card.featured { border-color: var(--green); box-shadow: 0 14px 34px -22px rgba(28,33,24,.55); }
.price { font-size: 2.4rem; font-weight: 700; margin-bottom: .2rem; letter-spacing: -.03em; }
.price span { font-size: 1rem; font-weight: 400; color: var(--ink-2); }
.price-for { color: var(--ink-2); }
.price-card ul { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; }
.price-card li { padding-left: 1.6rem; position: relative; margin-bottom: .55rem; font-size: .95rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* --- faq --- */
.faq { max-width: var(--prose); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; translate: 0 -50%;
  font-weight: 400; font-size: 1.5rem; color: var(--coral-dk); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > :not(summary) { margin-bottom: 1.1rem; color: var(--ink-2); }
.faq details ul { padding-left: 1.1rem; }
.faq details li { margin-bottom: .5rem; }

/* --- article pages --- */
.page-hero { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.page-hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.page-hero-inner img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.page-hero h1 { margin-bottom: .6rem; }

.prose { max-width: var(--prose); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.prose h2 { margin-top: 2.4em; padding-top: .3em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose blockquote {
  margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 3px solid var(--coral);
  background: var(--bg-2); border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote :last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }

/* --- cta band --- */
.cta-band { background: var(--ink); color: #f4f2ea; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3c9be; max-width: 52ch; }
.cta-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.cta-split img { border-radius: var(--radius); background: #fff; padding: 1rem; }

/* --- footer --- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 1.5rem; }
.footer-inner { display: flex; gap: 2rem; justify-content: space-between; flex-wrap: wrap; }
.footer-inner nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-inner nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.footer-inner nav a:hover { color: var(--ink); }
.footer-inner .brand { margin-bottom: .7rem; }
.copyright { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; color: var(--ink-2); }

@media (max-width: 800px) {
  .hero-inner, .split, .page-hero-inner, .cta-split { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .stats-inner { grid-template-columns: 1fr; gap: 1rem; text-align: left; }
  .header-inner { flex-wrap: wrap; gap: .75rem 1.2rem; padding: .75rem 0; }
  .header-inner nav { margin-left: 0; order: 3; width: 100%; }
  .header-inner .btn-sm { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* whole-card link: an anchor stretched over its card */
.link-card { position: relative; }
.stretched { font-weight: 600; text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; }
.stretched::before { content: "→"; margin-right: .35rem; }

section[id] { scroll-margin-top: 80px; }

/* 404 */
.notfound { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.notfound h1 { font-size: clamp(4rem, 12vw, 8rem); color: var(--coral); margin-bottom: 0; }
.notfound h2 { margin-top: .2em; }
.notfound p { color: var(--ink-2); }
.notfound .hero-actions { justify-content: center; }

/* answer-first summary: the passage AI search engines quote */
.answer {
  background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; margin-bottom: 2.5rem;
}
.answer :last-child { margin-bottom: 0; }
.crumbs { font-size: .85rem; margin-bottom: 1rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { margin: 0 .35rem; opacity: .5; }

/* at-a-glance table */
.facts { overflow-x: auto; }
.facts table { border-collapse: collapse; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts th, .facts td { text-align: left; padding: .85rem 1.1rem; border-top: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.facts tr:first-child th, .facts tr:first-child td { border-top: 0; }
.facts td:first-child { width: 32%; white-space: nowrap; }
.facts.glance thead { display: none; }
.facts thead td, .facts thead th { font-weight: 700; background: var(--bg-2); }
.facts.glance td:first-child { white-space: normal; }
.facts + .muted, .facts .muted { margin-top: .9rem; }
.steps .card h4 { color: var(--coral-dk); }

.related { list-style: none; padding: 0; }
.related li { margin-bottom: .5rem; }
.related a { font-weight: 600; }
.related a::before { content: "→ "; color: var(--green-dk); }
