:root {
  --bg: #f6f4ef;
  --surface: #fffdf8;
  --ink: #171713;
  --muted: #66645d;
  --line: #d9d5ca;
  --accent: #1f5f48;
  --accent-2: #e7efe9;
  --max: 1120px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; }

.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.narrow { width: min(calc(100% - 32px), 820px); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }
.brand { text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { padding: 9px 14px; border-radius: 999px; background: var(--ink); color: white !important; }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 1.35rem; }

.hero { padding: 96px 0 64px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-weight: 750; font-size: 0.78rem; color: var(--accent); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.035em; margin-top: 0; }
h1 { font-size: clamp(2.9rem, 7vw, 6.2rem); max-width: 1050px; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 18px; }
h3 { font-size: 1.28rem; letter-spacing: -0.02em; }
.lede { font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--muted); max-width: 780px; }
.hero-quote { font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 760; max-width: 860px; margin: 42px 0 0; padding-left: 20px; border-left: 4px solid var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-block; padding: 12px 18px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 700; }
.button.primary { background: var(--ink); color: white; }
.button.secondary { background: transparent; }

.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-soft { background: var(--surface); }
.section p { color: var(--muted); }
.section p strong { color: var(--ink); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { margin-bottom: 0; }
.number { font-size: 0.8rem; font-weight: 800; color: var(--accent); letter-spacing: 0.08em; }

.flow { display: grid; grid-template-columns: repeat(7, auto); gap: 10px; align-items: center; margin-top: 30px; }
.flow-box { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 18px; min-height: 88px; display: grid; place-items: center; text-align: center; font-weight: 700; }
.arrow { color: var(--accent); font-size: 1.5rem; }

.metric { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.metric:last-child { border-bottom: 0; }
.metric span:first-child { color: var(--muted); }
.metric strong { white-space: nowrap; }

.callout { background: var(--accent-2); border: 1px solid #b8d0c1; border-radius: var(--radius); padding: 26px; }
.callout p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
th { background: #f0eee8; font-size: 0.9rem; }
tr:last-child td { border-bottom: 0; }

.article { padding: 72px 0 96px; }
.article-header { margin-bottom: 42px; }
.article h1 { font-size: clamp(2.5rem, 6vw, 4.7rem); }
.article h2 { margin-top: 48px; font-size: 2rem; }
.article h3 { margin-top: 30px; }
.article p, .article li { color: #4f4d47; }
.article blockquote { margin: 28px 0; padding: 18px 22px; border-left: 4px solid var(--accent); background: var(--accent-2); font-size: 1.15rem; font-weight: 700; }
.article ul { padding-left: 22px; }
.article .formula { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #efede7; border-radius: 10px; padding: 14px 16px; overflow-x: auto; color: var(--ink); }

.faq-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { margin-bottom: 8px; }

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-grid a { color: var(--muted); }

.note { font-size: 0.9rem; color: var(--muted); }
.badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.82rem; font-weight: 700; }

@media (max-width: 820px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 16px; right: 16px; top: 62px; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; }
  .hero { padding-top: 68px; }
}
