/* ============================================================
   HRHelperG — Ecosystem Design System (ecosystem.css)
   Modern, AI-first software-company UI.
   Self-contained: own reset + tokens + components.
   Used by the redesigned homepage and all new ecosystem routes.
   Legacy pages (about/partner bodies) keep styles.css; the
   shared chrome here is namespaced `eco-` to avoid collisions.
   ============================================================ */

/* ── 1. Tokens ─────────────────────────────────────────────── */
:root {
  /* Brand */
  --eco-ink:        #0b1020;   /* near-black for dark surfaces */
  --eco-ink-2:      #111a33;
  --eco-navy:       #1a2d5a;   /* carried over from existing brand */
  --eco-accent:     #3b6ef6;   /* primary blue */
  --eco-accent-2:   #6d5cf6;   /* indigo for gradients */
  --eco-accent-3:   #22b8cf;   /* cyan accent */

  /* Light surfaces */
  --eco-bg:         #ffffff;
  --eco-bg-soft:    #f6f8fc;
  --eco-bg-mute:    #eef2fb;
  --eco-surface:    #ffffff;
  --eco-border:     #e6e9f2;
  --eco-border-2:   #d7dcec;

  /* Text */
  --eco-text:       #0d1426;
  --eco-text-2:     #3c465c;
  --eco-text-3:     #565f73;   /* darkened for AA on white & soft surfaces */
  --eco-on-dark:    #eef2ff;
  --eco-on-dark-2:  #aab3cf;

  /* Effects */
  --eco-shadow-sm:  0 1px 2px rgba(13,20,38,.05), 0 1px 3px rgba(13,20,38,.06);
  --eco-shadow-md:  0 6px 20px -6px rgba(13,20,38,.12);
  --eco-shadow-lg:  0 24px 60px -20px rgba(13,20,38,.28);
  --eco-ring:       0 0 0 3px rgba(59,110,246,.35);

  /* Geometry */
  --eco-r-sm: 8px;
  --eco-r-md: 14px;
  --eco-r-lg: 20px;
  --eco-r-xl: 28px;
  --eco-container: 1180px;
  --eco-header-h: 68px;

  --eco-grad: linear-gradient(135deg, var(--eco-accent) 0%, var(--eco-accent-2) 100%);
  --eco-grad-soft: linear-gradient(135deg, rgba(59,110,246,.10), rgba(109,92,246,.10));
}

/* ── 2. Reset / base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* keep in-page anchor targets clear of the sticky header */
  scroll-padding-top: calc(var(--eco-header-h) + 16px);
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--eco-text);
  background: var(--eco-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea { font: inherit; }
:focus-visible { outline: none; box-shadow: var(--eco-ring); border-radius: var(--eco-r-sm); }

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

/* Skip link (a11y) */
.eco-skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--eco-ink); color: #fff; padding: 12px 18px;
  border-radius: 0 0 var(--eco-r-sm) 0; font-weight: 600;
}
.eco-skip:focus { left: 0; }

/* ── 3. Layout primitives ──────────────────────────────────── */
.eco-container { max-width: var(--eco-container); margin: 0 auto; padding: 0 24px; }
.eco-section { padding: clamp(56px, 8vw, 104px) 0; }
.eco-section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.eco-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--eco-accent);
}
.eco-eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6;
}
.eco-h2 {
  font-size: clamp(26px, 3.4vw, 40px); font-weight: 700;
  line-height: 1.15; letter-spacing: -.02em; color: var(--eco-text);
  margin: 14px 0 0; text-wrap: balance;
}
.eco-lead {
  margin-top: 16px; max-width: 60ch;
  font-size: clamp(15px, 1.4vw, 18px); color: var(--eco-text-2);
  text-wrap: pretty;
}
.eco-section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
/* Trailing lead paragraph directly after a grid gets clear separation */
.eco-grid + .eco-lead { margin-top: clamp(28px, 4vw, 40px); }

/* ── 4. Buttons ────────────────────────────────────────────── */
.eco-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--eco-r-sm);
  font-size: 15px; font-weight: 600; line-height: 1;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.eco-btn:active { transform: translateY(1px); }
.eco-btn--primary { color: #fff; background: var(--eco-grad); box-shadow: 0 8px 22px -10px rgba(59,110,246,.7); }
.eco-btn--primary:hover { box-shadow: 0 12px 28px -10px rgba(59,110,246,.85); }
.eco-btn--ghost { color: var(--eco-text); background: var(--eco-bg); border: 1px solid var(--eco-border-2); }
.eco-btn--ghost:hover { border-color: var(--eco-accent); color: var(--eco-accent); }
.eco-btn--light { color: var(--eco-ink); background: #fff; }
.eco-btn--light:hover { background: #eef2ff; }
.eco-btn--on-dark { color: var(--eco-on-dark); border: 1px solid rgba(255,255,255,.22); }
.eco-btn--on-dark:hover { border-color: rgba(255,255,255,.55); }

/* ── 5. Header ─────────────────────────────────────────────── */
.eco-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--eco-border);
}
.eco-header__bar {
  display: flex; align-items: center; gap: 28px;
  height: var(--eco-header-h);
}
.eco-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.eco-logo__mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--eco-grad); color: #fff;
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
}
.eco-logo__text { font-size: 17px; }
.eco-logo__text b { color: var(--eco-accent); }
.eco-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.eco-nav a {
  padding: 8px 12px; border-radius: var(--eco-r-sm);
  font-size: 14.5px; font-weight: 500; color: var(--eco-text-2);
  transition: color .15s ease, background .15s ease;
}
.eco-nav a:hover { color: var(--eco-text); background: var(--eco-bg-mute); }
.eco-nav a[aria-current="page"] { color: var(--eco-accent); }
.eco-header__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.eco-lang { display: flex; gap: 2px; }
.eco-lang button {
  min-width: 36px; height: 36px; padding: 0 6px; border-radius: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; line-height: 1;
  color: var(--eco-text-3);
  transition: color .15s ease, background .15s ease;
}
.eco-lang button:hover { color: var(--eco-text); background: var(--eco-bg-mute); }
.eco-lang button.active { color: var(--eco-accent); background: var(--eco-bg-mute); }
.eco-burger { display: none; width: 40px; height: 40px; border-radius: 9px; font-size: 20px; color: var(--eco-text); }
.eco-burger:hover { background: var(--eco-bg-mute); }

.eco-mobile {
  display: none; border-bottom: 1px solid var(--eco-border);
  background: var(--eco-bg); padding: 8px 24px 20px;
}
.eco-mobile.open { display: block; }
.eco-mobile a {
  display: block; padding: 14px 8px; font-weight: 500; font-size: 15px;
  color: var(--eco-text-2); border-bottom: 1px solid var(--eco-border);
}
.eco-mobile a:hover { color: var(--eco-accent); }
.eco-mobile__cta { margin-top: 14px; }
.eco-mobile__cta .eco-btn { width: 100%; }

/* ── 6. Hero ───────────────────────────────────────────────── */
.eco-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 520px at 78% -10%, #1c2c5e 0%, var(--eco-ink) 55%, var(--eco-ink) 100%);
  color: var(--eco-on-dark);
}
.eco-hero::before { /* grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(900px 480px at 60% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(900px 480px at 60% 0%, #000 0%, transparent 75%);
}
.eco-hero::after { /* glow — gradient-only, no blur filter (cheaper to composite) */
  content: ""; position: absolute; width: 560px; height: 560px;
  right: -130px; top: -210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(109,92,246,.38) 0%, rgba(109,92,246,.16) 40%, transparent 70%);
}
.eco-hero__inner { position: relative; z-index: 1; padding: clamp(64px, 11vw, 132px) 0 clamp(56px, 9vw, 108px); }
.eco-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  font-size: 13px; font-weight: 500; color: var(--eco-on-dark-2);
}
.eco-hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--eco-accent-3); }
.eco-hero h1 {
  margin-top: 22px; max-width: 16ch;
  font-size: clamp(34px, 6vw, 64px); font-weight: 800;
  line-height: 1.05; letter-spacing: -.03em; color: #fff;
  text-wrap: balance;
}
.eco-hero h1 .grad {
  background: linear-gradient(120deg, #7aa2ff, #b39bff 60%, #6fe3f0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eco-hero__sub { margin-top: 22px; max-width: 56ch; font-size: clamp(15px, 1.5vw, 19px); color: var(--eco-on-dark-2); }
.eco-hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.eco-hero__meta {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-size: 13.5px; color: var(--eco-on-dark-2);
}
.eco-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.eco-hero__meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--eco-accent-3); }

/* ── 7. Product / generic cards ────────────────────────────── */
.eco-grid { display: grid; gap: 20px; }
.eco-grid--3 { grid-template-columns: repeat(3, 1fr); }
.eco-grid--2 { grid-template-columns: repeat(2, 1fr); }
.eco-grid--4 { grid-template-columns: repeat(4, 1fr); }

.eco-card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px; background: var(--eco-surface);
  border: 1px solid var(--eco-border); border-radius: var(--eco-r-md);
  box-shadow: var(--eco-shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.eco-card:hover { transform: translateY(-3px); box-shadow: var(--eco-shadow-md); border-color: var(--eco-border-2); }
.eco-card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: var(--eco-grad); margin-bottom: 18px;
}
.eco-card__icon svg { width: 22px; height: 22px; }
.eco-card__cat {
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--eco-accent);
}
.eco-card h3 { margin: 10px 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.eco-card p { color: var(--eco-text-2); font-size: 14.5px; }
/* Footer affordances always bottom-aligned across a grid row */
.eco-card__link {
  margin-top: auto; padding-top: 20px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--eco-accent);
}
.eco-card__link svg { width: 15px; height: 15px; transition: transform .15s ease; }
.eco-card:hover .eco-card__link svg { transform: translateX(3px); }
.eco-card__soon {
  align-self: flex-start; margin-top: auto;
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 5px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--eco-text-3); background: var(--eco-bg-soft);
  border: 1px solid var(--eco-border); border-radius: 999px;
}
.eco-card__soon::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--eco-accent-3);
}
.eco-card__soon--wrap { margin-top: 20px; }

/* ── 8. Ecosystem map ──────────────────────────────────────── */
.eco-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eco-node {
  padding: 22px; border: 1px solid var(--eco-border); border-radius: var(--eco-r-md);
  background: linear-gradient(180deg, var(--eco-surface), var(--eco-bg-soft));
}
.eco-node__top { display: flex; align-items: center; gap: 12px; }
.eco-node__dot { width: 36px; height: 36px; border-radius: 10px; background: var(--eco-grad-soft); display: grid; place-items: center; color: var(--eco-accent); }
.eco-node__dot svg { width: 18px; height: 18px; }
.eco-node h3 { font-size: 16px; font-weight: 700; }
.eco-node p { margin-top: 12px; font-size: 14px; color: var(--eco-text-2); }

/* ── 9. Trust band ─────────────────────────────────────────── */
.eco-band { background: var(--eco-bg-soft); border-block: 1px solid var(--eco-border); }
.eco-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.eco-trust__item { padding: 22px; background: var(--eco-surface); border: 1px solid var(--eco-border); border-radius: var(--eco-r-md); }
.eco-trust__item svg { width: 22px; height: 22px; color: var(--eco-accent); }
.eco-trust__item h3 { margin: 14px 0 6px; font-size: 15.5px; font-weight: 700; }
.eco-trust__item p { font-size: 13.5px; color: var(--eco-text-3); }

/* ── 10. Developers preview ────────────────────────────────── */
.eco-dev {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
}
.eco-dev__list { margin-top: 22px; display: grid; gap: 14px; }
.eco-dev__list li { display: flex; gap: 12px; font-size: 14.5px; color: var(--eco-text-2); }
.eco-dev__list svg { flex: none; width: 18px; height: 18px; color: var(--eco-accent); margin-top: 1px; }
.eco-dev__cta { margin-top: 24px; }

/* Utilities */
.eco-mt-xl { margin-top: 56px; }
.eco-textlink { color: var(--eco-accent); text-decoration: underline; text-underline-offset: 3px; }
.eco-code {
  background: var(--eco-ink); color: #d7defb; border-radius: var(--eco-r-md);
  border: 1px solid rgba(255,255,255,.08); overflow: hidden;
}
.eco-code__bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.eco-code__bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.16); }
.eco-code pre {
  margin: 0; padding: 20px; overflow-x: auto;
  font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.eco-code .c { color: #7c89b8; }
.eco-code .k { color: #8fb6ff; }
.eco-code .s { color: #8fe3c0; }

/* ── 11. CTA strip ─────────────────────────────────────────── */
.eco-cta {
  position: relative; overflow: hidden; text-align: center;
  background: radial-gradient(800px 360px at 50% 0%, #21336b, var(--eco-ink));
  color: #fff; border-radius: var(--eco-r-xl);
  padding: clamp(44px, 7vw, 76px) 24px;
}
.eco-cta h2 { font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.eco-cta p { margin: 14px auto 0; max-width: 52ch; color: var(--eco-on-dark-2); text-wrap: pretty; }
.eco-cta__actions { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── 12. Sub-page hero (lighter) ───────────────────────────── */
.eco-phero { background: var(--eco-bg-soft); border-bottom: 1px solid var(--eco-border); }
.eco-phero__inner { padding: clamp(40px, 7vw, 80px) 0 clamp(36px, 5vw, 56px); }
.eco-breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--eco-text-3); }
.eco-breadcrumb a:hover { color: var(--eco-accent); }
.eco-breadcrumb span { color: var(--eco-border-2); }
.eco-phero h1 { margin-top: 14px; font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.eco-phero p { margin-top: 16px; max-width: 62ch; font-size: clamp(15px, 1.4vw, 18px); color: var(--eco-text-2); }

/* Prose for content pages */
.eco-prose { max-width: 72ch; }
.eco-prose h2 { margin: 40px 0 12px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.eco-prose h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 700; }
.eco-prose p { margin-top: 12px; color: var(--eco-text-2); }
.eco-prose ul { margin: 14px 0 0; display: grid; gap: 10px; }
.eco-prose ul li { position: relative; padding-left: 22px; color: var(--eco-text-2); }
.eco-prose ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--eco-accent); }
.eco-prose a { color: var(--eco-accent); text-decoration: underline; text-underline-offset: 3px; }

/* ── 12b. HR resources components ───────────────────────────── */
/* Informational / disclaimer callout (HR compliance, templates) */
.eco-note {
  display: flex; gap: 12px; padding: 16px 18px;
  background: var(--eco-bg-soft); border: 1px solid var(--eco-border);
  border-left: 3px solid var(--eco-accent); border-radius: var(--eco-r-sm);
  font-size: 13.5px; color: var(--eco-text-2);
}
.eco-note svg { flex: none; width: 18px; height: 18px; color: var(--eco-accent); margin-top: 1px; }
.eco-note strong { color: var(--eco-text); }

/* Future-content / scalable document list (templates, categories) */
.eco-doclist { display: grid; gap: 10px; }
.eco-doclist li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; background: var(--eco-surface);
  border: 1px solid var(--eco-border); border-radius: var(--eco-r-sm);
}
.eco-doclist a, .eco-doclist span:first-child {
  font-weight: 600; font-size: 15px; color: var(--eco-text);
}
.eco-doclist a:hover { color: var(--eco-accent); }
.eco-doclist .eco-tag { flex: none; }

/* Status / category tag */
.eco-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--eco-text-3); background: var(--eco-bg-soft);
  border: 1px solid var(--eco-border);
}
.eco-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--eco-accent-3); }
.eco-tag--live::before { background: #16a34a; }

/* Section divider label */
.eco-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--eco-text-3);
}

/* ── 12c. Authority article / FAQ / template / tool ─────────── */
.eco-article { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 48px; align-items: start; }
.eco-article__body { max-width: 72ch; }
.eco-article__body h2 { margin: 40px 0 12px; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.eco-article__body h2:first-child { margin-top: 0; }
.eco-article__body h3 { margin: 26px 0 8px; font-size: 18px; font-weight: 700; }
.eco-article__body p { margin-top: 12px; color: var(--eco-text-2); }
.eco-article__body ul, .eco-article__body ol { margin: 14px 0 0 0; display: grid; gap: 9px; padding-left: 0; }
.eco-article__body ul li { position: relative; padding-left: 22px; color: var(--eco-text-2); list-style: none; }
.eco-article__body ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--eco-accent); }
.eco-article__body ol { counter-reset: s; }
.eco-article__body ol li { position: relative; padding-left: 30px; color: var(--eco-text-2); list-style: none; counter-increment: s; }
.eco-article__body ol li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; background: var(--eco-grad-soft); color: var(--eco-accent); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.eco-article__body a { color: var(--eco-accent); text-decoration: underline; text-underline-offset: 3px; }
.eco-aside { position: sticky; top: calc(var(--eco-header-h) + 20px); }
.eco-aside__box { padding: 18px; border: 1px solid var(--eco-border); border-radius: var(--eco-r-md); background: var(--eco-bg-soft); }
.eco-aside__box h4 { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--eco-text-3); margin-bottom: 12px; }
.eco-aside__box a { display: block; padding: 7px 0; font-size: 14px; font-weight: 500; color: var(--eco-text-2); }
.eco-aside__box a:hover { color: var(--eco-accent); }

/* FAQ — native <details>, zero JS */
.eco-faq { display: grid; gap: 10px; max-width: 760px; }
.eco-faq details {
  border: 1px solid var(--eco-border); border-radius: var(--eco-r-sm);
  background: var(--eco-surface); overflow: hidden;
}
.eco-faq summary {
  list-style: none; cursor: pointer; padding: 16px 18px;
  font-size: 15.5px; font-weight: 600; color: var(--eco-text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.eco-faq summary::-webkit-details-marker { display: none; }
.eco-faq summary::after {
  content: "+"; flex: none; font-size: 18px; font-weight: 600;
  color: var(--eco-text-3); transition: transform .15s ease;
}
.eco-faq details[open] summary::after { content: "−"; }
.eco-faq details[open] summary { color: var(--eco-accent); }
.eco-faq summary:hover { color: var(--eco-accent); }
.eco-faq__a { padding: 0 18px 16px; font-size: 14.5px; color: var(--eco-text-2); }
.eco-faq__a p { margin-top: 0; }

/* Template "document" block */
.eco-tpl {
  border: 1px solid var(--eco-border); border-radius: var(--eco-r-md);
  background: var(--eco-bg-soft); overflow: hidden;
}
.eco-tpl__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--eco-border);
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--eco-text-3);
}
.eco-tpl__body {
  padding: 24px; margin: 0; background: var(--eco-surface);
  font: 14px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--eco-text-2); white-space: pre-wrap; overflow-x: auto;
}
.eco-tpl__body b { color: var(--eco-text); font-weight: 700; }
.eco-tpl__body i { color: var(--eco-accent); font-style: normal; }

/* Tool input scaffold */
.eco-form {
  display: grid; gap: 16px; max-width: 560px; padding: 24px;
  border: 1px solid var(--eco-border); border-radius: var(--eco-r-md); background: var(--eco-surface);
}
.eco-field { display: grid; gap: 6px; }
.eco-field label { font-size: 13px; font-weight: 600; color: var(--eco-text); }
.eco-field input, .eco-field select {
  height: 44px; padding: 0 14px; border: 1px solid var(--eco-border-2);
  border-radius: var(--eco-r-sm); background: var(--eco-bg); color: var(--eco-text); font-size: 15px;
}
.eco-field input:focus, .eco-field select:focus { outline: none; border-color: var(--eco-accent); box-shadow: var(--eco-ring); }
.eco-field--row { grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .eco-field--row { grid-template-columns: 1fr; } }
.eco-form__note { font-size: 13px; color: var(--eco-text-3); }
.eco-form .eco-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Generic content table */
.eco-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.eco-table th, .eco-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--eco-border); }
.eco-table th { font-weight: 700; color: var(--eco-text); background: var(--eco-bg-soft); }
.eco-table td { color: var(--eco-text-2); }
.eco-table td:first-child, .eco-table th:first-child { font-weight: 600; color: var(--eco-text); }

/* ── 12e. Comparison cluster — responsive table + pros/cons ── */
.eco-tablewrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--eco-border); border-radius: var(--eco-r-md); }
.eco-tablewrap .eco-table { margin-top: 0; min-width: 520px; }
.eco-tablewrap .eco-table th, .eco-tablewrap .eco-table td { border-bottom: 1px solid var(--eco-border); }
.eco-tablewrap .eco-table tr:last-child td { border-bottom: 0; }

.eco-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.eco-pc__card { padding: 22px; border: 1px solid var(--eco-border); border-radius: var(--eco-r-md); background: var(--eco-surface); }
.eco-pc__card h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.eco-pc__card h3 svg { width: 18px; height: 18px; }
.eco-pc--pro h3 { color: var(--eco-text); }
.eco-pc--pro h3 svg { color: #16a34a; }
.eco-pc--con h3 svg { color: var(--eco-text-3); }
.eco-pc__list { display: grid; gap: 9px; }
.eco-pc__list li { position: relative; padding-left: 22px; font-size: 14px; color: var(--eco-text-2); list-style: none; }
.eco-pc--pro .eco-pc__list li::before { content: "+"; position: absolute; left: 4px; top: 0; font-weight: 700; color: #16a34a; }
.eco-pc--con .eco-pc__list li::before { content: "–"; position: absolute; left: 5px; top: 0; font-weight: 700; color: var(--eco-text-3); }
@media (max-width: 700px) { .eco-pc { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .eco-article { grid-template-columns: 1fr; gap: 32px; }
  .eco-aside { position: static; }
}

/* ── 12d. Tool MVP — results, summary bar, scorecard, print ─── */
.eco-out {
  margin-top: 18px; padding: 22px; border-radius: var(--eco-r-md);
  background: var(--eco-grad-soft); border: 1px solid var(--eco-border-2);
}
.eco-out__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 7px 0; }
.eco-out__row + .eco-out__row { border-top: 1px dashed var(--eco-border-2); }
.eco-out__label { font-size: 13.5px; color: var(--eco-text-2); }
.eco-out__val { font-size: 18px; font-weight: 700; color: var(--eco-text); font-variant-numeric: tabular-nums; }
.eco-out__big { font-size: clamp(26px, 4vw, 36px); font-weight: 800; color: var(--eco-accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.eco-out__hint { margin-top: 10px; font-size: 12.5px; color: var(--eco-text-3); }

.eco-bar { height: 12px; border-radius: 999px; background: var(--eco-bg-mute); overflow: hidden; margin-top: 8px; }
.eco-bar__fill { height: 100%; background: var(--eco-grad); width: 0; transition: width .25s ease; }
@media (prefers-reduced-motion: reduce) { .eco-bar__fill { transition: none; } }

.eco-score { display: grid; gap: 12px; }
.eco-score__row { display: grid; grid-template-columns: 1fr 96px; align-items: center; gap: 14px; }
.eco-score__row label { font-size: 14px; font-weight: 600; color: var(--eco-text); }
.eco-score select { height: 42px; }
.eco-score__total {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 4px; padding: 16px 18px; border-radius: var(--eco-r-sm);
  background: var(--eco-bg-soft); border: 1px solid var(--eco-border);
}
.eco-score__total b { font-size: 22px; color: var(--eco-accent); font-variant-numeric: tabular-nums; }
.eco-field textarea {
  min-height: 90px; padding: 12px 14px; border: 1px solid var(--eco-border-2);
  border-radius: var(--eco-r-sm); background: var(--eco-bg); color: var(--eco-text);
  font: inherit; font-size: 15px; resize: vertical;
}
.eco-field textarea:focus { outline: none; border-color: var(--eco-accent); box-shadow: var(--eco-ring); }
.eco-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Print: clean scorecard / results only */
@media print {
  .eco-header, .eco-mobile, .eco-footer, .eco-skip, .eco-aside, .eco-faq,
  #cc-banner, #cc-modal, #cc-manage-btn, .eco-breadcrumb,
  .eco-section.eco-band:last-of-type, [data-noprint] { display: none !important; }
  body { background: #fff; }
  .eco-phero { background: #fff; border: 0; }
  .eco-section { padding: 0 0 16px; }
  .eco-article { display: block; }
  .eco-out, .eco-form, .eco-score__total { border-color: #bbb; background: #fff; box-shadow: none; }
  .eco-tpl { border-color: #999; break-inside: avoid; }
  .eco-tpl__body { background: #fff; color: #000; }
  .eco-tpl__bar { color: #333; border-color: #999; }
  .eco-note { background: #fff; border-color: #999; color: #000; break-inside: avoid; }
  .eco-article__body h2 { break-after: avoid; }
  a { color: #000; text-decoration: none; }
}

/* Timeline (roadmap / changelog) */
.eco-timeline { display: grid; gap: 18px; max-width: 760px; }
.eco-tl-item { padding: 22px; border: 1px solid var(--eco-border); border-radius: var(--eco-r-md); background: var(--eco-surface); }
.eco-tl-item__tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--eco-accent);
}
.eco-tl-item h3 { margin: 8px 0 6px; font-size: 17px; font-weight: 700; }
.eco-tl-item p { font-size: 14px; color: var(--eco-text-2); }

/* ── 13. Footer ────────────────────────────────────────────── */
.eco-footer { background: var(--eco-ink); color: var(--eco-on-dark-2); }
.eco-footer__top {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px;
  padding: clamp(48px, 7vw, 72px) 0 44px;
}
.eco-footer__brand .eco-logo__text { color: #fff; }
.eco-footer__brand p { margin-top: 14px; max-width: 32ch; font-size: 13.5px; }
.eco-footer__socials { margin-top: 18px; display: flex; gap: 10px; }
.eco-footer__socials a {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.14); color: var(--eco-on-dark-2);
  transition: border-color .15s ease, color .15s ease;
}
.eco-footer__socials a:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.eco-footer__socials svg { width: 16px; height: 16px; }
.eco-fcol h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.eco-fcol a, .eco-fcol button {
  display: block; padding: 6px 0; font-size: 14px; color: var(--eco-on-dark-2);
  transition: color .15s ease; text-align: left;
}
.eco-fcol a:hover, .eco-fcol button:hover { color: #fff; }
.eco-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0 36px; display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between; font-size: 13px;
}
.eco-footer__legalmeta { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--eco-on-dark-2); }
.eco-footer__bottom .eco-lang button { color: var(--eco-on-dark-2); }
.eco-footer__bottom .eco-lang button:hover,
.eco-footer__bottom .eco-lang button.active { background: rgba(255,255,255,.08); color: #fff; }
.eco-credit a { color: var(--eco-on-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ── 14. Fade-in — progressive enhancement ─────────────────────
   Content is fully visible by default. Only when JS + IntersectionObserver
   are available does `.eco-js` get added to <html>, enabling the hidden
   start state that JS then reveals via `.vis`. No content is ever hidden
   behind JS for crawlers or no-JS users. */
.eco-js .eco-fi { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.eco-js .eco-fi.vis { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .eco-js .eco-fi { opacity: 1; transform: none; } }

/* ── 15. Responsive ────────────────────────────────────────── */
@media (max-width: 980px) {
  .eco-grid--3, .eco-grid--4, .eco-map { grid-template-columns: repeat(2, 1fr); }
  .eco-trust { grid-template-columns: repeat(2, 1fr); }
  .eco-dev { grid-template-columns: 1fr; gap: 28px; }
  .eco-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .eco-nav, .eco-header__right .eco-lang, .eco-header__right .eco-btn { display: none; }
  .eco-burger { display: grid; place-items: center; }
  .eco-grid--3, .eco-grid--4, .eco-grid--2, .eco-map { grid-template-columns: 1fr; }
  .eco-trust { grid-template-columns: 1fr 1fr; }
  .eco-footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .eco-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .eco-trust { grid-template-columns: 1fr; }
  .eco-footer__top { grid-template-columns: 1fr; }
  .eco-hero__cta .eco-btn, .eco-cta__actions .eco-btn { width: 100%; }
}
