@import url('/assets/css/product-route-shell.css');

:root {
  --bg-0: #eef4ef;
  --bg-1: #e3ece7;
  --bg-2: #d6e2db;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(33, 57, 43, 0.16);
  --text: #1a2a22;
  --muted: rgba(26, 42, 34, 0.76);
  --accent: #5e8f73;
  --accent-strong: #3f6f57;
  --shadow: 0 14px 40px rgba(34, 58, 45, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Assistant", "Heebo", "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(113, 156, 130, 0.24), transparent 26%),
    radial-gradient(circle at bottom left, rgba(196, 216, 205, 0.34), transparent 30%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 42%, var(--bg-2) 100%);
  line-height: 1.7;
}
img { max-width: 100%; }
a { color: inherit; }
.page-shell { min-height: 100vh; }

.site-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(238, 244, 239, 0.48);
  border-bottom: 1px solid rgba(33, 57, 43, 0.10);
}
.site-shell__inner,
.page {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}
.main-wrap {
  width: min(920px, calc(100% - 56px));
  margin: 0 auto;
  padding: 40px 0 72px;
}
.site-shell__inner {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.site-shell__brand-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-shell__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-shell__brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}
.site-shell__brand-menu-toggle {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.site-shell__brand-menu-toggle:hover,
.site-shell__brand-wrap.is-open .site-shell__brand-menu-toggle {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.24);
  color: var(--text);
}
.site-shell__brand-wrap:hover .site-shell__brand-menu,
.site-shell__brand-wrap.is-open .site-shell__brand-menu,
.site-shell__brand-menu:focus-within {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.site-shell__brand-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 190px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(247, 251, 248, 0.98);
  box-shadow: var(--shadow);
  padding: 7px;
  display: grid;
  gap: 3px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.site-shell__brand-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.site-shell__brand-menu-link {
  text-decoration: none;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-shell__brand-menu-link:hover,
.site-shell__brand-menu-link.is-current {
  background: rgba(63, 111, 87, 0.10);
  color: var(--text);
}
.site-shell__context-link {
  text-decoration: none;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}
.site-shell__desktop-nav {
  min-width: 0;
}
.site-shell__desktop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 7px;
  justify-content: center;
  align-items: center;
}
.site-shell__item {
  position: relative;
}
.site-shell__top-link,
.site-shell__top-button {
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1;
  min-height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.site-shell__top-link:hover,
.site-shell__top-button:hover,
.site-shell__top-link.is-current,
.site-shell__top-button.is-current,
.site-shell__item--dropdown.is-open .site-shell__top-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.32);
}
.site-shell__caret {
  font-size: 0.82rem;
  transition: transform 0.2s ease;
}
.site-shell__item--dropdown.is-open .site-shell__caret {
  transform: rotate(180deg);
}
.site-shell__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(420px, 70vw);
  min-width: 280px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(245, 250, 247, 0.98);
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.site-shell__dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.site-shell__item--dropdown:hover .site-shell__dropdown,
.site-shell__item--dropdown.is-open .site-shell__dropdown,
.site-shell__dropdown:focus-within {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.site-shell__dropdown-link {
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-shell__dropdown-link:hover,
.site-shell__dropdown-link.is-current,
.site-shell__dropdown-link--section {
  color: var(--text);
  background: rgba(63, 111, 87, 0.10);
}
.site-shell__dropdown-link--section {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.site-shell__hamburger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.20);
  color: var(--text);
}
.site-shell__hamburger span,
.site-shell__hamburger span::before,
.site-shell__hamburger span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease;
}
.site-shell__hamburger span::before { transform: translateY(-6px); }
.site-shell__hamburger span::after { transform: translateY(4px); }

.site-shell__mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
.site-shell__mobile-panel {
  position: fixed;
  top: 68px;
  right: 16px;
  z-index: 110;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 82px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(247, 251, 248, 0.98);
  box-shadow: var(--shadow);
  padding: 14px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.site-shell__mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.site-shell__mobile-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.site-shell__mobile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.site-shell__mobile-close {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.20);
  color: var(--text);
  border-radius: 10px;
  width: 34px;
  height: 34px;
}
.site-shell__mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.site-shell__mobile-link,
.site-shell__mobile-group-toggle,
.site-shell__mobile-child-link {
  text-decoration: none;
  width: 100%;
  color: var(--text);
  border: 0;
  background: transparent;
  text-align: right;
  border-radius: 10px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}
.site-shell__mobile-link.is-current,
.site-shell__mobile-group-toggle.is-current,
.site-shell__mobile-child-link.is-current,
.site-shell__mobile-group-toggle:hover,
.site-shell__mobile-link:hover,
.site-shell__mobile-child-link:hover {
  background: rgba(63, 111, 87, 0.10);
}
.site-shell__mobile-group-content { display: none; }
.site-shell__mobile-group-content.is-open {
  display: grid;
  gap: 4px;
}
.site-shell-mobile-open { overflow: hidden; }

.site-shell__article-meta-button {
  margin-top: 10px;
  border: 1px solid rgba(151, 188, 157, 0.45);
  border-radius: 999px;
  background: rgba(151, 188, 157, 0.12);
  color: #d9eadc;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 700;
}
.site-shell__article-toc-toggle {
  position: fixed;
  left: 16px;
  bottom: 18px;
  z-index: 86;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 18, 14, 0.96);
  color: var(--text);
  min-height: 42px;
  padding: 0 16px;
  font-weight: 700;
}
.site-shell__article-toc-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(2px);
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 85;
}
.site-shell__article-toc-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.site-shell__article-toc-panel {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 74px;
  z-index: 89;
  max-height: 68vh;
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(247, 251, 248, 0.98);
  box-shadow: var(--shadow);
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.site-shell__article-toc-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.site-shell__article-toc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.site-shell__article-toc-close {
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.site-shell__article-toc-links {
  display: grid;
  gap: 6px;
}
.site-shell__article-toc-link {
  text-decoration: none;
  color: var(--muted);
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.6;
}
.site-shell__article-toc-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.site-shell__article-toc-link--h3 {
  margin-right: 14px;
  font-size: 0.93rem;
}
.site-shell-article-nav-open .site-shell__article-toc-toggle {
  opacity: 0;
  pointer-events: none;
}
.site-shell-article-nav-open .page-shell main {
  filter: saturate(0.88);
}

@media (max-width: 920px) {
  .site-shell__desktop-nav,
  .site-shell__context-link { display: none; }
  .site-shell__inner {
    min-height: 58px;
    grid-template-columns: 1fr auto;
  }
  .site-shell__hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .site-shell__article-toc-toggle {
    top: 132px;
    bottom: auto;
    left: max(12px, calc((100vw - 1100px) / 2 - 4px));
  }
  .site-shell__article-toc-panel {
    top: 178px;
    bottom: auto;
    width: 320px;
    right: auto;
    max-height: calc(100vh - 210px);
  }
}

@media (max-width: 640px) {
  .main-wrap {
    width: min(100% - 24px, 920px);
    padding-top: 24px;
  }
  .site-shell__article-toc-toggle {
    left: auto;
    right: 12px;
    bottom: 12px;
    min-height: 44px;
  }
  .site-shell__article-toc-panel {
    left: 8px;
    right: 8px;
    bottom: 64px;
    max-height: 74vh;
    padding: 14px;
  }
}

.page { padding: 36px 0 88px; }
.hero {
  display: grid;
  gap: 24px;
  padding: 26px 0 34px;
}
.hero--split {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}
.eyebrow {
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin: 0 0 14px;
}
h1, .page-title {
  margin: 0 0 18px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-size: clamp(2.6rem, 5vw, 5.3rem);
}
.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
}
.note,
.section-block,
.card,
.quote,
.compare-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.note,
.section-block,
.card,
.compare-card { padding: 22px; }
.note { color: var(--muted); }
.note strong {
  display: block;
  color: var(--text);
  margin-bottom: 10px;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(135deg, #e8f3e9, #97bc9d);
  color: #0d1712;
}
.button--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
}
.section-stack {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}
.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.section-intro {
  margin: 0;
  color: var(--muted);
}
.card-grid,
.stat-grid,
.compare-grid,
.link-grid {
  display: grid;
  gap: 18px;
}
.card-grid,
.compare-grid,
.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card h3,
.compare-card h3,
.stat h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.15;
}
.card p,
.compare-card p,
.stat p,
.list-clean li,
.article-body p,
.article-body li { color: var(--muted); }
.list-clean {
  margin: 0;
  padding-right: 18px;
}
.list-clean li + li { margin-top: 8px; }
.link-card { text-decoration: none; }
.link-card:hover { border-color: rgba(151, 188, 157, 0.34); }
.stat {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.stat .stat-value {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 1.7rem;
  font-weight: 800;
}
.article-hero { padding-bottom: 10px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}
.article-body {
  display: grid;
  gap: 24px;
}
.article-body section {
  padding: 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
}
.article-body h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  line-height: 1.05;
}
.article-body h3 {
  margin: 18px 0 8px;
  font-size: 1.15rem;
}
.article-body p, .article-body ul { margin: 0; }
.article-body ul { padding-right: 18px; }
.article-body p + p,
.article-body p + ul,
.article-body ul + p,
.article-body ul + ul { margin-top: 12px; }
.quote {
  padding: 26px;
  font-size: 1.15rem;
  color: var(--text);
}
.quote cite {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
}
.footer-note {
  margin: 42px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .hero--split,
  .card-grid,
  .compare-grid,
  .link-grid,
  .stat-grid { grid-template-columns: 1fr; }
}
