:root {
  --ink: #0f1a17;
  --ink-2: #33423d;
  --muted: #5d6d67;
  --line: #dfe6e2;
  --bg: #fbfcfa;
  --bg-2: #f1f5f2;
  --card: #ffffff;
  --brand: #0e6b4f;
  --brand-2: #14a37a;
  --brand-soft: #e3f4ec;
  --accent: #f2b33d;
  --danger: #c4452f;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 26, 23, .04), 0 12px 32px -12px rgba(15, 26, 23, .14);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-style: italic; letter-spacing: -0.01em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 250, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 24px; margin-left: 12px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { font-size: .85rem; font-weight: 700; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.lang:hover { color: var(--ink); border-color: var(--ink-2); }
@media (max-width: 1100px) { .nav-links { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .98rem;
  padding: 12px 20px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brand); color: #fff; box-shadow: 0 8px 24px -8px rgba(14, 107, 79, .55); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
@media (max-width: 480px) { .nav-cta .btn-ghost { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 640px; z-index: -1;
  background:
    radial-gradient(520px 320px at 18% 30%, rgba(20, 163, 122, .16), transparent 70%),
    radial-gradient(420px 280px at 85% 10%, rgba(242, 179, 61, .16), transparent 70%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px; padding: 6px 12px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(20, 163, 122, .2); }
.hero h1 { max-width: 15ch; }
.hero h1 .serif { color: var(--brand); }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 58ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-note { font-size: .88rem; color: var(--muted); }
.channels { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 44px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.channels span.label { font-weight: 700; color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 8px; }
.chip i { width: 8px; height: 8px; border-radius: 2px; background: var(--brand-2); display: inline-block; }

/* ---------- Demo mock ---------- */
.demo { margin-top: 56px; }
.demo-frame {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  overflow: hidden;
}
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: .82rem; color: var(--muted); }
.demo-bar b { width: 10px; height: 10px; border-radius: 50%; background: #d7ddd9; display: inline-block; }
.demo-bar .url { margin-left: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-body { display: grid; grid-template-columns: 1fr 1fr; }
.demo-col { padding: 26px; min-width: 0; }
.demo-col + .demo-col { border-left: 1px solid var(--line); background: linear-gradient(180deg, #f7fbf9, #fff); }
.demo-tag { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.demo-tag.ok { color: var(--brand); }
.field { margin-bottom: 14px; }
.field small { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.field div { font-size: .95rem; color: var(--ink-2); overflow-wrap: anywhere; }
.field .weak { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(196, 69, 47, .5); }
.field .strong { color: var(--ink); font-weight: 600; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin: 2px 4px 2px 0; }
.pill.err { background: #fbe9e5; color: var(--danger); }
.pill.warn { background: #fdf3dc; color: #8a5a00; }
.pill.ok { background: var(--brand-soft); color: var(--brand); }
.score { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.score .bar { flex: 1; height: 8px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.score .bar span { display: block; height: 100%; border-radius: 999px; }
.score b { font-size: .9rem; min-width: 52px; text-align: right; }
@media (max-width: 760px) {
  .demo-body { grid-template-columns: 1fr; }
  .demo-col + .demo-col { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }
.kicker { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: 12px; }
.alt { background: var(--bg-2); }
@media (max-width: 600px) { section { padding: 68px 0; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--ink-2); margin: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 22px; height: 22px; }

.value-card { position: relative; overflow: hidden; }
.value-card .big { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--brand); line-height: 1; margin-bottom: 12px; }
.value-card .big .serif { font-size: 2.8rem; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 24px; left: 28px; font-weight: 800; font-size: .9rem; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px; padding: 2px 10px;
}

/* feature list */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.feature { padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature:nth-child(3n) { border-right: 0; }
.feature:nth-last-child(-n+3) { border-bottom: 0; }
.feature p { color: var(--ink-2); margin: 0; }
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .feature { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .feature:last-child { border-bottom: 0 !important; }
}

/* flow diagram */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 14px; }
.flow .node { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.flow .node h3 { font-size: 1.05rem; margin-bottom: 10px; }
.flow .node ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; color: var(--ink-2); }
.flow .node li { padding: 6px 0; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 10px; }
.flow .node li:first-child { border-top: 0; }
.flow .node.center { background: var(--ink); color: #fff; border-color: var(--ink); }
.flow .node.center ul { color: #cfe0d9; }
.flow .node.center li { border-top-color: rgba(255, 255, 255, .14); }
.flow .arrow { display: grid; place-items: center; color: var(--brand-2); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); height: 30px; }
}

/* security strip */
.trust { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.trust ul { list-style: none; padding: 0; margin: 0; }
.trust li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.trust li:first-child { border-top: 0; }
.trust li svg { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.trust li p { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--ink-2); max-width: 70ch; }

/* CTA */
.cta-band { background: var(--ink); color: #fff; border-radius: 28px; padding: 64px 48px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(20, 163, 122, .45), transparent 70%); }
.cta-band h2 { max-width: 20ch; position: relative; }
.cta-band p { color: #cfe0d9; max-width: 56ch; position: relative; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--brand-2); color: #fff; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }
.cta-band .hero-actions { position: relative; margin: 28px 0 0; }
@media (max-width: 600px) { .cta-band { padding: 44px 24px; border-radius: 22px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--brand); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2.2em; padding-top: .4em; }
.legal h3 { margin-top: 1.4em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .45em; }
.legal .meta { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.legal .callout { background: var(--brand-soft); border: 1px solid #c5e7d7; border-radius: 14px; padding: 18px 20px; margin: 24px 0; color: var(--ink); }
.legal .callout p { color: var(--ink); margin: 0; }
.legal .toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 28px 0; }
.legal .toc ol { margin: 8px 0 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.legal .toc li { margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 600px) { .legal .toc ol { columns: 1; } }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .94rem; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--bg-2); font-weight: 700; color: var(--ink); }
.legal code { background: var(--bg-2); padding: 1px 6px; border-radius: 6px; font-size: .88em; overflow-wrap: anywhere; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }

/* ---------- v2: pillars, levels, scores, channels, credits ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; position: relative; overflow: hidden; }
.pillar.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.pillar.dark p, .pillar.dark li { color: #cfe0d9; }
.pillar .q { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 1.35rem; line-height: 1.3; margin: 6px 0 18px; }
.pillar.dark .q { color: #fff; }
.pillar ul { list-style: none; padding: 0; margin: 0; }
.pillar li { padding: 9px 0 9px 26px; border-top: 1px solid var(--line); position: relative; color: var(--ink-2); font-size: .97rem; }
.pillar.dark li { border-top-color: rgba(255,255,255,.12); }
.pillar li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 2px; background: var(--brand-2); }
.pillar .tag { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.pillar.dark .tag { color: var(--brand-2); }
.pillars-note { margin-top: 18px; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--card); }
.level { padding: 28px; border-right: 1px solid var(--line); }
.level:last-child { border-right: 0; background: repeating-linear-gradient(135deg, #fff, #fff 10px, #f6f8f7 10px, #f6f8f7 20px); }
.level .n { font-size: .8rem; font-weight: 800; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.level h3 { font-size: 1.35rem; margin: 6px 0 10px; }
.level p { color: var(--ink-2); margin-bottom: 14px; }
.level .promise { display: inline-block; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.level .promise.obs { background: #fdf3dc; color: #8a5a00; }
@media (max-width: 860px) { .levels { grid-template-columns: 1fr; } .level { border-right: 0; border-bottom: 1px solid var(--line); } .level:last-child { border-bottom: 0; } }

.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: pipe; }
.pipe { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 22px; position: relative; }
.pipe::before { counter-increment: pipe; content: counter(pipe, decimal-leading-zero); font-size: .78rem; font-weight: 800; color: var(--brand); display: block; margin-bottom: 8px; }
.pipe h3 { font-size: 1.02rem; margin-bottom: 6px; }
.pipe p { font-size: .92rem; color: var(--ink-2); margin: 0; }
.pipe.hl { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(20,163,122,.12); }
@media (max-width: 960px) { .pipeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pipeline { grid-template-columns: 1fr; } }

.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.score-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.score-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.score-card header h3 { margin: 0; }
.score-card .val { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand); line-height: 1; }
.score-card .val small { font-size: 1rem; color: var(--muted); font-weight: 700; }
.score-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.crit { display: grid; grid-template-columns: 1fr 120px; gap: 6px 14px; align-items: center; font-size: .92rem; color: var(--ink-2); padding: 6px 0; }
.crit .bar { height: 7px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.crit .bar span { display: block; height: 100%; background: var(--brand-2); border-radius: 999px; }
.crit .bar span.mid { background: var(--accent); }
.crit .bar span.low { background: var(--danger); }
.issue { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #fbe9e5; color: #7a2a1c; font-size: .9rem; }
.issue b { color: var(--danger); }
@media (max-width: 860px) { .scores { grid-template-columns: 1fr; } }

.channels-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ch { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.ch h3 { font-size: 1rem; margin: 0; }
.ch p { font-size: .88rem; color: var(--ink-2); margin: 0; }
.ch .how { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 1000px) { .channels-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .channels-grid { grid-template-columns: 1fr; } }

.credits { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.formula { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px; text-align: center; }
.formula .eq { font-size: clamp(1.1rem, 2.4vw, 1.45rem); font-weight: 800; letter-spacing: -.01em; }
.formula .eq span { color: var(--brand); }
.formula .ex { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.free { list-style: none; padding: 0; margin: 18px 0 0; }
.free li { padding: 8px 0 8px 28px; position: relative; color: var(--ink-2); }
.free li::before { content: "✓"; position: absolute; left: 4px; color: var(--brand-2); font-weight: 800; }
@media (max-width: 860px) { .credits { grid-template-columns: 1fr; } }
[id] { scroll-margin-top: 84px; }
