/* Stockzen — subpage components (shop, blog, library pages).
   Depends on landing.css for tokens, nav, buttons, sections, FAQ, CTA, footer. */

/* ---------- Nav active state ---------- */
.sz-nav-links a.is-active { color: var(--text); }

/* ---------- Compact page hero ---------- */
.sz-hero.sz-hero-page { padding: 44px 0 52px; }
.sz-hero-page .sz-wrap { position: relative; z-index: 1; }

.sz-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.sz-crumbs a { color: var(--muted); }
.sz-crumbs a:hover { color: var(--accent); }
.sz-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.sz-crumbs li:last-child { color: var(--text); }

.sz-hero-page .sz-h1 { max-width: 20ch; margin: 0 0 16px; }
.sz-hero-page .sz-lede { margin: 0 0 26px; font-weight: 500; }
.sz-hero-page.center .sz-h1,
.sz-hero-page.center .sz-lede,
.sz-hero-page.center .sz-crumbs { margin-left: auto; margin-right: auto; justify-content: center; }
.sz-hero-page.center { text-align: center; }

/* Slim variant (pricing): a short title band so the plan cards sit above the fold */
.sz-hero.sz-hero-page.slim { padding: 26px 0 28px; }
.sz-hero-page.slim .sz-crumbs { margin-bottom: 12px; }
.sz-hero-page.slim .sz-h1 {
  max-width: 30ch; margin-bottom: 10px;
  font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.12; letter-spacing: -0.03em;
}
.sz-hero-page.slim .sz-lede {
  max-width: 44rem; margin-bottom: 0;
  font-size: clamp(0.98rem, 1.15vw, 1.05rem); line-height: 1.55;
}
.sz-hero-page.slim .sz-trust-row { margin-top: 14px; font-size: 13px; }
.sz-hero-page.slim .sz-hero-actions,
.sz-hero-page.slim .sz-article-meta,
.sz-hero-page.slim .sz-legal-meta { margin-top: 16px; }
.sz-hero-page.slim .sz-hero-actions .sz-btn { height: 40px; padding: 0 16px; font-size: 14px; }
.sz-hero-page.slim::after { opacity: 0.6; }

.sz-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sz-hero-page.center .sz-hero-actions { justify-content: center; }

.sz-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}
.sz-hero-page.center .sz-trust-row { justify-content: center; }
.sz-trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.sz-trust-row li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 8.4l2.6 2.6L12 5.6'/></svg>") center / 10px no-repeat,
    var(--accent);
}

/* Two-column hero (library pages) */
.sz-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.sz-lib-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px 0 10px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sz-lib-chip img { height: 18px; width: auto; }
.sz-lib-chip b { color: var(--accent); font-weight: 500; }

/* Demo window: paste URL → original file */
.sz-demo {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.sz-demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.sz-demo-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.sz-demo-bar span {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.sz-demo-body { padding: 20px; display: grid; gap: 14px; }
.sz-demo-body > * { min-width: 0; }
.sz-demo-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 6px;
}
.sz-demo-url {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}
.sz-demo-url span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-demo-url b {
  flex: none;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
}
.sz-demo-result {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
}
.sz-demo-file {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
}
.sz-demo-result h4 { margin: 0 0 3px; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-demo-result p { margin: 0; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.sz-badge-good { background: #e7f6ec; color: var(--good); }
.sz-badge-soft { background: var(--accent-soft); color: var(--accent); }
.sz-badge-muted { background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
.sz-demo-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.sz-demo-meta div { min-width: 0; }
.sz-demo-meta div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.sz-demo-meta dt { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }
.sz-demo-meta dd { margin: 2px 0 0; font-size: 12px; color: var(--muted); line-height: 1.35; }

/* ---------- 4-up grid ---------- */
.sz-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sz-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ---------- Prose (long-form copy) ---------- */
.sz-prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.sz-prose > * + * { margin-top: 1.1em; }
.sz-prose h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin-top: 2.2em;
}
.sz-prose h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-top: 1.9em;
}
.sz-prose h2:first-child, .sz-prose h3:first-child { margin-top: 0; }
.sz-prose p { margin: 1.1em 0 0; color: var(--muted); font-weight: 450; }
.sz-prose p:first-child { margin-top: 0; }
.sz-prose strong { color: var(--text); font-weight: 600; }
.sz-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.sz-prose ul, .sz-prose ol { margin: 1.1em 0 0; padding-left: 1.4em; color: var(--muted); }
.sz-prose li { margin: 0.45em 0; }
.sz-prose li::marker { color: var(--accent); }
.sz-prose img { border-radius: 12px; border: 1px solid var(--line); margin: 1.6em auto; }
.sz-prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-size: 1.1em;
  font-weight: 500;
}
.sz-prose pre, .sz-prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.sz-prose code { padding: 2px 6px; }
.sz-prose pre { padding: 16px 18px; overflow: auto; }
.sz-prose pre code { background: none; border: 0; padding: 0; }
.sz-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.sz-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sz-prose th, .sz-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.sz-prose th { font-weight: 600; color: var(--text); }
.sz-prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }

/* Callout */
.sz-callout {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
.sz-callout svg { color: var(--accent); margin-top: 2px; }
.sz-callout strong { font-weight: 600; }
.sz-callout p { margin: 0; }

/* Comparison table */
.sz-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.sz-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.sz-table th, .sz-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.sz-table thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: var(--bg-2);
}
.sz-table tbody tr:last-child td { border-bottom: 0; }
.sz-table td:not(:first-child), .sz-table th:not(:first-child) { text-align: center; }
.sz-table td:first-child { font-weight: 600; }
.sz-table .lib { display: flex; align-items: center; gap: 12px; }
.sz-table .lib img { height: 18px; width: auto; max-width: 84px; object-fit: contain; object-position: left; filter: grayscale(1); opacity: 0.75; }
.sz-table .lib a:hover { color: var(--accent); }
.sz-table td .n {
  display: inline-flex;
  min-width: 36px;
  height: 26px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
}
.sz-table td .n.off { background: transparent; color: var(--faint); }
.sz-table th.hl { color: var(--accent); }
.sz-table-note { margin: 14px 4px 0; font-size: 13px; color: var(--muted); }

/* Boolean "included" marker used in plan cards and the compare table */
/* Payment methods (wraps the shared partial that still emits Bootstrap utility classes) */
.sz-pay { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.sz-pay .text-center { text-align: center; }
.sz-pay .d-flex { display: flex; }
.sz-pay .flex-wrap { flex-wrap: wrap; }
.sz-pay .justify-content-center { justify-content: center; }
.sz-pay .align-items-center { align-items: center; }
.sz-pay .d-block { display: block; }
.sz-pay .mt-1 { margin-top: 4px; }
.sz-pay .mt-3 { margin-top: 14px; }
.sz-pay .mt-4 { margin-top: 0; }
.sz-pay .mb-0 { margin-bottom: 0; }
.sz-pay .mb-3 { margin-bottom: 0; }
.sz-pay .small { font-size: 12.5px; }
.sz-pay .text-muted { color: var(--muted); }
.sz-pay .sz-pay-title {
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
.sz-pay .payment-method-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  min-width: 108px;
}
.sz-pay .payment-method-item img { height: 32px !important; max-width: 96px !important; width: auto; object-fit: contain; }
.sz-pay .payment-method-item span { color: var(--muted); }

/* ---------- Blog ---------- */
.sz-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sz-post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.sz-post-card:hover { box-shadow: var(--shadow-md), inset 0 0 0 1px var(--accent); transform: translateY(-2px); }
.sz-post-cover {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.sz-post-cover img { width: 100%; height: 100%; object-fit: cover; }
.sz-post-cover.empty {
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  background:
    radial-gradient(60% 80% at 20% 20%, rgba(178, 208, 255, 0.55), transparent 70%),
    radial-gradient(60% 80% at 80% 80%, rgba(212, 199, 255, 0.5), transparent 70%),
    var(--bg-2);
}
.sz-post-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.sz-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.sz-post-meta time { color: var(--accent); }
.sz-post-card h2 { font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; }
.sz-post-card h2 a:hover { color: var(--accent); }
.sz-post-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; flex: 1; }
.sz-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sz-tags li {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-2);
}
.sz-post-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.sz-post-more svg { transition: transform 0.18s ease; }
.sz-post-card:hover .sz-post-more svg { transform: translateX(3px); }

.sz-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.sz-pagination a, .sz-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.sz-pagination a:hover { background: var(--bg-2); }
.sz-pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }
.sz-pagination .disabled { opacity: 0.4; pointer-events: none; }

.sz-empty {
  padding: 56px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
}

/* Article */
.sz-article-hero .sz-h1 { max-width: 24ch; font-size: clamp(2rem, 4.2vw, 3.1rem); }
.sz-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.sz-article-meta .sz-avatar { width: 32px; height: 32px; font-size: 11px; }
.sz-article-meta .dot { color: var(--line-strong); }
.sz-article-wrap { max-width: 820px; margin: 0 auto; }
.sz-article-cover {
  margin: 0 0 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
}
.sz-article-cover img { width: 100%; height: 100%; object-fit: cover; }
.sz-article-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* ---------- Related libraries ---------- */
.sz-related {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sz-related a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px;
  background: #fff;
  transition: box-shadow 0.18s ease;
}
.sz-related a:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.sz-related img { height: 22px; width: auto; align-self: flex-start; filter: grayscale(1); opacity: 0.7; transition: filter 0.18s, opacity 0.18s; }
.sz-related a:hover img { filter: none; opacity: 1; }
.sz-related strong { font-size: 15px; font-weight: 600; margin-top: 6px; }
.sz-related span { font-size: 13px; color: var(--muted); }

/* ---------- Section spacing helpers ---------- */
.sz-section.tight > .sz-wrap { padding-top: 56px; padding-bottom: 64px; }
.sz-last { border-bottom: 1px solid var(--line); }

/* ---------- Legal pages (tos / privacy / refund) ---------- */
.sz-legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.sz-legal-meta div { display: grid; gap: 4px; }
.sz-legal-meta dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.sz-legal-meta dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--text); }
.sz-legal-meta dd a { color: var(--accent); }

.sz-legal {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.sz-toc { position: sticky; top: calc(var(--nav-h) + 24px); }
.sz-toc-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 12px;
}
.sz-toc ol, .sz-toc ul { list-style: none; margin: 0 0 28px; padding: 0; }
.sz-toc li + li { margin-top: 2px; }
.sz-toc a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
}
.sz-toc a span { font-family: var(--mono); font-size: 11px; color: var(--faint); flex: none; }
.sz-toc a:hover { background: var(--bg-2); color: var(--text); }
.sz-toc a.is-active { background: var(--accent-soft); color: var(--accent); }
.sz-toc a.is-active span { color: var(--accent); }
.sz-toc-related a { padding: 5px 10px; }

.sz-legal-body { max-width: 720px; }
.sz-legal-intro {
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--bg-2);
}
.sz-legal-intro p { margin: 0; color: var(--text); font-weight: 450; }
.sz-legal-sec { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 24px); }
.sz-legal-intro + .sz-legal-sec { border-top: 0; padding-top: 8px; }
.sz-legal-sec h2 { display: flex; align-items: baseline; gap: 14px; margin: 0; font-size: 22px; }
.sz-legal-num { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); flex: none; }
.sz-legal-sec > p:first-of-type, .sz-legal-sec > ul:first-of-type { margin-top: 0.9em; }

/* ---------- About ---------- */
.sz-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.sz-about-grid.flip > :first-child { order: 2; }
.sz-about-copy .sz-h2 { margin: 0 0 16px; }
.sz-about-copy p { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0 0 22px; }
.sz-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sz-checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; font-weight: 500; line-height: 1.5; }
.sz-checklist li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230a25dc' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 8.4l2.6 2.6L12 5.6'/></svg>") center / 11px no-repeat;
}

.sz-about-visual {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(60% 60% at 20% 15%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, #fff, var(--bg-2));
}
.sz-about-visual img { display: block; width: 100%; height: auto; }

.sz-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.sz-stat { padding: 26px 28px; background: #fff; }
.sz-stat b { display: block; font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.sz-stat b small { font-size: 16px; font-weight: 600; color: var(--accent); margin-left: 2px; }
.sz-stat span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); font-weight: 500; }

.sz-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sz-value {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: box-shadow 0.2s;
}
.sz-value:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.sz-value .sz-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.sz-value h3 { margin: 0 0 8px; font-size: 17px; }
.sz-value p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- Contact ---------- */
.sz-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sz-contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.sz-contact-card:hover { box-shadow: var(--shadow-md), inset 0 0 0 1px var(--accent); transform: translateY(-2px); }
.sz-contact-card .sz-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 8px;
}
.sz-contact-card .sz-kicker-mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.sz-contact-card h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.sz-contact-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.sz-contact-card .sz-contact-handle {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  word-break: break-all;
}
.sz-contact-card .sz-btn { margin-top: auto; align-self: flex-start; }
.sz-contact-card.featured {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.sz-contact-card.featured .sz-icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.sz-contact-card.featured .sz-kicker-mono { color: rgba(255, 255, 255, 0.7); }
.sz-contact-card.featured h2, .sz-contact-card.featured .sz-contact-handle { color: #fff; }
.sz-contact-card.featured p { color: rgba(255, 255, 255, 0.85); }
.sz-contact-card.featured:hover { box-shadow: var(--shadow-md); }
.sz-contact-card.featured .sz-pixel-canvas { position: absolute; inset: 0; z-index: -1; opacity: 0.45; pointer-events: none; }

.sz-contact-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 20px; }
.sz-contact-tip { padding: 22px 24px; background: #fff; }
.sz-contact-tip b { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 4px; }
.sz-contact-tip span { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .sz-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sz-related { grid-template-columns: repeat(3, 1fr); }
  .sz-posts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .sz-legal { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .sz-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sz-legal { grid-template-columns: 1fr; gap: 32px; }
  .sz-toc { position: static; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
  .sz-toc ol, .sz-toc ul { margin-bottom: 16px; }
  .sz-toc-related { display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .sz-about-grid { grid-template-columns: 1fr; gap: 32px; }
  .sz-about-grid.flip > :first-child { order: 0; }
  .sz-values { grid-template-columns: 1fr; }
  .sz-contact-grid { grid-template-columns: 1fr; }
  .sz-contact-tips { grid-template-columns: 1fr; }
  .sz-hero.sz-hero-page { padding: 36px 0 44px; }
  .sz-hero.sz-hero-page.slim { padding: 22px 0 24px; }
  .sz-hero-page.slim .sz-trust-row { gap: 6px 14px; }
  .sz-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .sz-hero-grid .sz-h1 { max-width: none; }
  .sz-grid-2 { grid-template-columns: 1fr; }
  .sz-demo-meta { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .sz-grid-4 { grid-template-columns: 1fr; }
  .sz-related { grid-template-columns: 1fr 1fr; }
  .sz-posts { grid-template-columns: 1fr; }
  .sz-hero-actions .sz-btn { width: 100%; }
  .sz-demo-result { grid-template-columns: 44px minmax(0, 1fr); }
  .sz-demo-result .sz-badge { grid-column: 2; justify-self: start; }
  .sz-demo-meta { grid-template-columns: 1fr 1fr; }
  .sz-prose { font-size: 16px; }
  .sz-table th, .sz-table td { padding: 12px 14px; }
  .sz-article-foot { flex-direction: column; align-items: flex-start; }
  .sz-stat-grid { grid-template-columns: 1fr 1fr; }
  .sz-stat { padding: 20px; }
  .sz-stat b { font-size: 28px; }
  .sz-legal-meta { gap: 12px 24px; }
  .sz-legal-sec h2 { font-size: 20px; }
  .sz-contact-card { padding: 24px; }
}
