/* Public support & seller pages: help centre, pricing, onboarding, ads, API docs.

   Shares the design tokens from app.css so these pages sit inside the same
   editorial B2B console language as the rest of the storefront. */
.pg-page { display: flex; flex-direction: column; gap: 6px; padding-block: 28px 72px; }
.pg-doc { padding-block: 16px 72px; }

/* -------------------------------------------------------------------- hero */
.pg-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 26px;
  align-items: center; padding: 38px 40px; border-radius: 26px;
  background: var(--grad-night); color: #fff;
  box-shadow: 0 30px 60px -32px rgba(9, 22, 45, .55);
}
.pg-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 90% at 88% 12%, rgba(47, 91, 255, .38), transparent 62%),
              radial-gradient(50% 80% at 4% 100%, rgba(124, 58, 237, .30), transparent 66%);
}
.pg-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  color: #a5b8e6;
}
.pg-eyebrow svg { width: 14px; height: 14px; }
.pg-title {
  margin-top: 12px; font-size: clamp(1.85rem, 1.1rem + 1.9vw, 2.75rem);
  line-height: 1.12; letter-spacing: -.03em; font-weight: 720; color: #fff;
}
.pg-lead { margin-top: 12px; max-width: 56ch; font-size: 14.5px; line-height: 1.7; color: #b7c6e4; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pg-hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.pg-hero-stats b { display: block; font-size: 1.15rem; letter-spacing: -.02em; color: #fff; }
.pg-hero-stats span { display: block; margin-top: 3px; font-size: 11.5px; color: #94a6c9; line-height: 1.4; }
.pg-hero-art { position: relative; display: grid; place-items: center; min-height: 190px; }
.pg-art-icon {
  display: grid; place-items: center; width: 108px; height: 108px; border-radius: 32px;
  color: #9ec5ff; background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .24); backdrop-filter: blur(6px);
  box-shadow: 0 20px 44px -18px rgba(6, 16, 36, .8);
}
.pg-art-icon svg { width: 54px; height: 54px; stroke-width: 1.5; }
.pg-art-ring {
  position: absolute; inset: 4px; border-radius: 50%;
  border: 1px solid rgba(148, 197, 255, .22); animation: pg-pulse 6s ease-in-out infinite;
}
@keyframes pg-pulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* ----------------------------------------------------------------- section */
.pg-section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin: 34px 0 14px;
}
.pg-section-title { font-size: 1.28rem; font-weight: 700; letter-spacing: -.02em; }
.pg-section-sub { margin-top: 5px; font-size: 12.5px; color: var(--muted); }

.pg-grid { display: grid; gap: 14px; }
.pg-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ------------------------------------------------------------------- card */
.pg-card {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 20px 18px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
a.pg-card:hover {
  transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
  box-shadow: 0 16px 36px -22px rgba(9, 22, 45, .45);
}
.pg-card-ico {
  flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand);
}
.pg-card-ico svg { width: 19px; height: 19px; }
.pg-card-body b { display: block; font-size: 14.5px; letter-spacing: -.01em; }
.pg-card-body p { margin-top: 5px; font-size: 12.8px; line-height: 1.65; color: var(--muted); }
.pg-card-body em { display: block; margin-top: 8px; font-size: 11.5px; font-style: normal; color: var(--faint); }
.pg-card-arrow { position: absolute; inset-inline-end: 18px; top: 18px; color: var(--faint); }
.pg-card-arrow svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------- help centre */
.pg-search { display: flex; gap: 10px; margin: 24px 0 0; flex-wrap: wrap; }
.pg-search-field {
  position: relative; flex: 1 1 340px; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  padding-inline-start: 42px; transition: border-color .16s, box-shadow .16s;
}
.pg-search-field:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.pg-search-field svg {
  position: absolute; inset-inline-start: 14px; width: 17px; height: 17px; color: var(--muted);
}
.pg-search-field .input { border: 0; background: transparent; height: 48px; box-shadow: none; }
.pg-hot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pg-hot-label {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px;
  font-weight: 650; color: var(--muted); letter-spacing: .04em; text-transform: uppercase;
}
.pg-hot-label svg { width: 13px; height: 13px; color: var(--accent); }

.pg-help-grid { display: grid; grid-template-columns: 254px minmax(0, 1fr); gap: 18px; margin-top: 22px; }
.pg-help-nav {
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: calc(var(--header-h, 64px) + 16px); align-self: start;
}
.pg-help-tab {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 12px;
  border-radius: 11px; border: 1px solid transparent; background: transparent;
  color: var(--ink-2); font-size: 13px; cursor: pointer; text-align: start;
  transition: background .15s, color .15s, border-color .15s;
}
.pg-help-tab svg { width: 15px; height: 15px; color: var(--muted); flex: 0 0 auto; }
.pg-help-tab span { flex: 1; }
.pg-help-tab b { font-size: 10.5px; color: var(--faint); }
.pg-help-tab:hover { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.pg-help-tab.active {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border-color: color-mix(in srgb, var(--brand) 24%, transparent);
  color: var(--brand); font-weight: 650;
}
.pg-help-tab.active svg, .pg-help-tab.active b { color: var(--brand); }
.pg-help-contact {
  margin-top: 10px; padding: 14px; border-radius: 14px;
  background: var(--surface-3); border: 1px solid var(--line);
}
.pg-help-contact b { font-size: 12.5px; }
.pg-help-contact p { margin: 5px 0 10px; font-size: 11.8px; line-height: 1.6; color: var(--muted); }

.pg-help-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pg-help-block { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.pg-help-block-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.pg-help-block-head b { font-size: 14px; }
.pg-help-block-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pg-help-block-head .badge { margin-inline-start: auto; }
.pg-help-list { display: flex; flex-direction: column; }
.pg-help-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px;
  border-top: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: background .15s;
}
.pg-help-row:first-child { border-top: 0; }
.pg-help-row:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.pg-help-row > div { flex: 1; min-width: 0; }
.pg-help-row b { font-size: 13.2px; font-weight: 600; }
.pg-help-row p { margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.pg-help-row > svg { width: 15px; height: 15px; color: var(--faint); }
.pg-help-row mark { background: color-mix(in srgb, var(--accent) 30%, transparent); color: inherit; border-radius: 3px; }
.pg-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 44px 20px; text-align: center; }

/* ------------------------------------------------------------- article view */
.pg-doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; margin-top: 18px; }
.pg-doc-body {
  display: flex; flex-direction: column; gap: 14px; padding: 26px 28px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--surface);
}
.pg-doc-body section { display: flex; gap: 14px; }
.pg-doc-body p { font-size: 13.6px; line-height: 1.85; color: var(--ink-2); }
.pg-step-no {
  flex: 0 0 auto; font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  color: var(--brand); padding-top: 3px;
}
.pg-doc-side { display: flex; flex-direction: column; gap: 12px; }
.pg-doc-links { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.pg-doc-links a {
  display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 9px;
  font-size: 12.5px; color: var(--ink-2); text-decoration: none;
}
.pg-doc-links a:hover { background: var(--surface-3); color: var(--brand); }
.pg-doc-links svg { width: 14px; height: 14px; color: var(--muted); flex: 0 0 auto; }

/* -------------------------------------------------------------------- faq */
.pg-faq { display: flex; flex-direction: column; gap: 8px; }
.pg-faq-item {
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  padding: 0 18px; transition: border-color .16s;
}
.pg-faq-item[open] { border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); }
.pg-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; font-size: 13.4px; font-weight: 600; cursor: pointer; list-style: none;
}
.pg-faq-item summary::-webkit-details-marker { display: none; }
.pg-faq-chev svg { width: 15px; height: 15px; color: var(--muted); transition: transform .18s; }
.pg-faq-item[open] .pg-faq-chev svg { transform: rotate(180deg); }
.pg-faq-item p { padding-bottom: 15px; font-size: 12.8px; line-height: 1.75; color: var(--muted); }

/* -------------------------------------------------------------------- CTA */
.pg-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 30px; padding: 24px 28px; border-radius: 20px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 12%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
}
.pg-cta b { font-size: 16px; letter-spacing: -.015em; }
.pg-cta p { margin-top: 5px; font-size: 12.8px; color: var(--muted); max-width: 62ch; }
.pg-cta .pg-actions { margin-top: 0; }

/* ---------------------------------------------------------------- pricing */
.pg-cycle {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
}
.pg-cycle-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px;
  border-radius: 999px; border: 0; background: transparent; color: #c7d4ee;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.pg-cycle-btn.active { background: #fff; color: #0b1730; }
.pg-cycle-btn em {
  font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 999px;
  background: rgba(16, 185, 129, .22); color: #6ee7b7;
}
.pg-cycle-btn.active em { background: rgba(16, 185, 129, .16); color: #047857; }

.pg-plans {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  margin-top: 22px; align-items: stretch;
}
.pg-plan {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 22px 20px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--line); transition: transform .18s, border-color .18s, box-shadow .18s;
}
.pg-plan:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.pg-plan--featured {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  box-shadow: 0 22px 46px -30px rgba(47, 91, 255, .6);
}
.pg-plan-badge {
  position: absolute; top: -10px; inset-inline-start: 18px; padding: 3px 10px;
  border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  background: var(--grad-brand); color: #fff; text-transform: uppercase;
}
.pg-plan-tier {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 6px;
}
.pg-tier-silver { color: #64748b; }
.pg-tier-gold { color: #b45309; }
.pg-tier-platinum { color: var(--violet); }
.pg-plan h3 { font-size: 18px; letter-spacing: -.02em; }
.pg-plan header p { margin-top: 5px; font-size: 12.4px; color: var(--muted); line-height: 1.6; min-height: 40px; }
.pg-plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pg-price { font-size: 1.75rem; font-weight: 720; letter-spacing: -.03em; }
.pg-price-free { font-size: 1.45rem; font-weight: 700; color: var(--success); }
.pg-price-unit { font-size: 12.5px; color: var(--muted); }
.pg-plan-price s { font-size: 12.5px; color: var(--faint); }
.pg-plan-saving {
  font-size: 11px; font-weight: 650; color: var(--success);
  background: color-mix(in srgb, var(--success) 12%, transparent);
  border-radius: 999px; padding: 2px 8px;
}
.pg-plan-cny { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pg-price-cny { white-space: nowrap; }
.pg-pay-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin: -8px 0 22px;
}
.pg-pay-label { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.pg-pay-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 12.2px;
}
.pg-pay-chip img { display: block; }
.pg-pay-chip b { font-weight: 620; }
.pg-pay-chip em { font-style: normal; font-size: 11px; color: var(--faint); }
.pg-plan-list { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pg-plan-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.8px; color: var(--ink-2); line-height: 1.55; }
.pg-plan-list svg { width: 15px; height: 15px; color: var(--success); flex: 0 0 auto; margin-top: 2px; }
.pg-plan-foot { display: flex; flex-direction: column; gap: 7px; text-align: center; }

.pg-compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.pg-compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.pg-compare th, .pg-compare td {
  padding: 12px 16px; text-align: center; font-size: 12.6px; border-top: 1px solid var(--line);
}
.pg-compare thead th { border-top: 0; background: var(--surface-2); font-weight: 650; font-size: 12.5px; }
.pg-compare tbody th { text-align: start; font-weight: 550; color: var(--ink-2); }
.pg-check {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px;
  background: rgba(16, 185, 129, .14); color: var(--success);
}
.pg-check svg { width: 13px; height: 13px; }
.pg-dash { color: var(--faint); }

.pg-addon {
  display: flex; flex-direction: column; gap: 8px; padding: 20px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
}
.pg-addon b { font-size: 13.6px; }
.pg-addon p { font-size: 12.4px; line-height: 1.6; color: var(--muted); flex: 1; }
.pg-addon-price { display: flex; align-items: baseline; gap: 3px; }
.pg-addon-price b { font-size: 1.2rem; }
.pg-addon-price span { font-size: 11.5px; color: var(--muted); }
.pg-notes { display: flex; flex-direction: column; gap: 8px; }
.pg-notes li { display: flex; gap: 9px; font-size: 12.6px; color: var(--muted); line-height: 1.65; }
.pg-notes svg { width: 15px; height: 15px; color: var(--brand); flex: 0 0 auto; margin-top: 3px; }

/* ------------------------------------------------------------- onboarding */
.pg-flow { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.pg-flow-step {
  display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  position: relative;
}
.pg-flow-no { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--brand); padding-top: 12px; min-width: 24px; }
.pg-flow-body { flex: 1; min-width: 0; }
.pg-flow-body b { font-size: 14.5px; }
.pg-flow-body p { margin-top: 4px; font-size: 12.8px; color: var(--muted); line-height: 1.65; }
.pg-flow-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pg-flow-meta .badge { display: inline-flex; align-items: center; gap: 5px; }
.pg-flow-meta svg { width: 12px; height: 12px; }
.pg-flow--compact .pg-flow-step { padding: 14px 18px; }

.pg-docs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pg-doc-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
}
.pg-doc-item.required { border-color: color-mix(in srgb, var(--brand) 26%, var(--line)); }
.pg-doc-ico {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--surface-3); color: var(--muted); flex: 0 0 auto;
}
.pg-doc-item.required .pg-doc-ico { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.pg-doc-ico svg { width: 15px; height: 15px; }
.pg-doc-item b { font-size: 13px; }
.pg-doc-item p { margin-top: 3px; font-size: 11.8px; color: var(--muted); }

/* ------------------------------------------------------------ advertising */
.pg-slot {
  display: flex; flex-direction: column; gap: 14px; padding: 20px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .18s, transform .18s;
}
.pg-slot:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.pg-slot-head { display: flex; gap: 13px; align-items: flex-start; }
.pg-slot-head b { font-size: 14px; }
.pg-slot-head p { margin-top: 4px; font-size: 12.6px; color: var(--muted); line-height: 1.6; }
.pg-slot-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.pg-slot-meta span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.pg-slot-meta em { display: inline-flex; color: var(--brand); }
.pg-slot-meta svg { width: 14px; height: 14px; }
.pg-slot-meta .btn { margin-inline-start: auto; }

/* --------------------------------------------------------------- API docs */
.pg-code { margin-top: 20px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0b1730; }
.pg-code-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px; background: rgba(255, 255, 255, .05); color: #c7d4ee; font-size: 12px;
}
.pg-code-head .btn { color: #c7d4ee; }
.pg-code pre {
  margin: 0; padding: 18px 20px; overflow-x: auto; color: #d7e3ff;
  font-family: var(--mono); font-size: 12.4px; line-height: 1.75;
}
.pg-api { display: flex; flex-direction: column; gap: 12px; }
.pg-api-group { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.pg-api-group h3 {
  padding: 13px 18px; font-size: 13px; font-weight: 650; background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.pg-api-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line);
  font-size: 12.6px;
}
.pg-api-row:first-of-type { border-top: 0; }
.pg-api-row code { font-family: var(--mono); font-size: 12.2px; color: var(--ink); }
.pg-api-desc { color: var(--muted); margin-inline-start: auto; text-align: end; }
.pg-method {
  flex: 0 0 auto; min-width: 48px; text-align: center; padding: 3px 7px; border-radius: 6px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
}
.pg-method--get { background: rgba(47, 91, 255, .12); color: var(--brand); }
.pg-method--post { background: rgba(16, 185, 129, .14); color: #047857; }
.pg-method--put { background: rgba(245, 158, 11, .16); color: #b45309; }
.pg-method--delete { background: rgba(229, 72, 77, .14); color: var(--danger); }

.pg-timeline { display: flex; flex-direction: column; gap: 0; list-style: none; }
.pg-timeline li {
  display: flex; gap: 16px; align-items: baseline; padding: 12px 4px 12px 18px;
  border-inline-start: 2px solid var(--line); position: relative;
}
.pg-timeline li::before {
  content: ""; position: absolute; inset-inline-start: -6px; top: 17px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.pg-timeline li > b { min-width: 62px; font-size: 12.5px; color: var(--brand); }
.pg-timeline li span { font-size: 13px; font-weight: 600; }
.pg-timeline li em { font-style: normal; display: block; margin-top: 2px; }

/* ----------------------------------------------------------------- states */
.pg-skeleton { display: flex; flex-direction: column; gap: 12px; }
.pg-error { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px; text-align: center; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .pg-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-docs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pg-hero { grid-template-columns: minmax(0, 1fr); padding: 30px 24px; }
  .pg-hero-art { display: none; }
  .pg-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-help-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-help-nav { position: static; }
  .pg-doc-layout { grid-template-columns: minmax(0, 1fr); }
  .pg-grid-3, .pg-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pg-page { padding-block: 18px 56px; }
  .pg-plans { grid-template-columns: minmax(0, 1fr); }
  .pg-docs-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-api-desc { display: none; }
  .pg-cta { flex-direction: column; align-items: flex-start; }
  .pg-flow-step { padding: 16px; }
}

/* Dark theme: the hero already reads as night, keep body copy readable. */
[data-theme='dark'] .pg-help-block-head,
[data-theme='dark'] .pg-api-group h3 { background: rgba(255, 255, 255, .03); }
[data-theme='dark'] .pg-plan-list li,
[data-theme='dark'] .pg-doc-body p { color: #c3cbdd; }
