/* product-v2.css — TRIAL product-page layout (?v2=1, admin-only). Scoped entirely under .pd2-page so
 * nothing else on the site (incl. /plugins listing and /checkout, which reuse .price-box/.disclosure)
 * is affected. Tokens only — no new colors/fonts; see assets/css/v2.css :root. */

.pd2-page .breadcrumb { margin-bottom: 20px; }

/* ---- hero ---- */
/* Diamond pattern as a ::before layer faded with opacity, not color-mix() inside the gradient —
 * Safari/WebKit can fail to paint color-mix() color stops in repeating-linear-gradient() at all. */
.pd2-hero { position: relative; padding-block: 28px 48px; background: var(--bg); }
.pd2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .05;
  pointer-events: none;
  background:
    repeating-linear-gradient(45deg, var(--pl, var(--primary)) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(-45deg, var(--pl, var(--primary)) 0 1px, transparent 1px 18px);
}
.pd2-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 48px; align-items: center; margin-top: 20px; }
.pd2-hero-grid.is-no-media { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.pd2-hero-text { min-width: 0; display: grid; gap: 16px; align-content: start; }
.pd2-hero-media { min-width: 0; }
.pd2-hero-media .gallery-stage { background: none; padding: 0; border-radius: 0; }
.pd2-title { font-size: 36px; line-height: 1.3; margin: 0; }
.pd2-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pd2-badges .chip svg { width: 14px; height: 14px; }
.pd2-subtitle { font-weight: 700; color: var(--pl-ink, var(--primary-deep)); font-size: 16px; margin: 0; }
.pd2-lede { margin: 0; max-width: 640px; }
.pd2-buy { display: grid; gap: 10px; max-width: 420px; }
.pd2-usage-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--pl-ink, var(--primary-deep)); }
.pd2-usage-link svg { width: 15px; height: 15px; }

/* ---- section 3: benefits/description + the buy box beside it ----
 * .features/.feature are shared with other pages (3-up grid of tower cards, full-width). Next to the
 * buy-box sidebar this column is too narrow for that — squeezed into tall, awkward cards — so here they
 * become a single-column list of icon-beside-text rows instead. */
.pd2-about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.pd2-about-grid.is-buy-only { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
.pd2-about-main { min-width: 0; }
.pd2-about-main .features { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pd2-about-main .feature { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 16px; row-gap: 4px; padding: 18px 20px; }
.pd2-about-main .feature .f-ic { grid-row: 1 / 3; margin-bottom: 0; }
.pd2-about-main .feature h3 { grid-column: 2; }
.pd2-about-main .feature p { grid-column: 2; }
.pd2-about-side { position: sticky; top: 150px; }

/* ---- section nav: visible right under the hero from the start, sticks at top:76px once scrolled to ---- */
.pd2-stickynav { position: sticky; top: 76px; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pd2-stickynav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 10px; }
.pd2-stickynav-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pd2-stickynav-links::-webkit-scrollbar { display: none; }
.pd2-stickynav-links a { flex: none; padding: 8px 14px; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--muted); border-radius: var(--r-btn); white-space: nowrap; text-decoration: none; }
.pd2-stickynav-links a:hover { color: var(--ink); background: var(--surface-2); }
.pd2-stickynav-links a.is-active { color: var(--pl-ink, var(--primary-deep)); background: var(--pl-soft, var(--primary-soft)); }
.pd2-stickynav-buy { flex: none; display: flex; align-items: center; gap: 12px; }
.pd2-stickynav-price { font-size: 15px; white-space: nowrap; }

/* ---- section 3/4: benefits + how ---- */
.pd2-section .pd-steps { max-width: 820px; }

/* ---- section 5: secondary features grid ---- */
.pd2-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pd2-feature-sm { padding: 18px 20px; }
.pd2-feature-sm h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 6px; }
.pd2-feature-sm h3 svg { width: 18px; height: 18px; color: var(--pl, var(--primary)); flex: none; }
.pd2-feature-sm p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---- section 6: license + token cards ---- */
.pd2-license-heading { display: flex; align-items: center; gap: 8px; }
.pd2-license-heading svg { width: 24px; height: 24px; flex: none; color: var(--pl, var(--primary)); }
.pd2-two-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pd2-license-card { padding: 22px; }
.pd2-license-card h3 { margin-bottom: 10px; }
.pd2-license-card p { margin: 0 0 6px; }
.pd2-page .pd2-token-card .disclosure { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-card); }
.pd2-page .pd2-token-card .disclosure h3 { color: var(--ink); }
.pd2-page .pd2-token-card .disclosure-links a { color: var(--pl-ink, var(--primary-deep)); }
.pd2-token-card { display: grid; gap: 14px; }

/* ---- section 7: specs grid ---- */
.pd2-specs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pd2-spec { padding: 16px 18px; }
.pd2-spec dt { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.pd2-spec dd { margin: 0; font-weight: 700; }

/* ---- section 8: reviews + faq ---- */
.pd2-two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pd2-two-col.is-single { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .pd2-hero-grid, .pd2-hero-grid.is-no-media { grid-template-columns: minmax(0, 1fr); max-width: none; }
  .pd2-feature-grid, .pd2-specs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd2-two-cards, .pd2-two-col { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pd2-about-grid, .pd2-about-grid.is-buy-only { grid-template-columns: minmax(0, 1fr); max-width: none; gap: 24px; }
  .pd2-about-side { position: static; }
  .pd2-stickynav-links a { padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 767px) {
  /* site header shrinks to 64px here (see .h2-wrap in v2.css) — keep the sticky buy-nav
   * flush under it instead of leaving a gap the page content scrolls through. */
  .pd2-stickynav { top: 64px; }
}
@media (max-width: 560px) {
  .pd2-feature-grid, .pd2-specs-grid { grid-template-columns: minmax(0, 1fr); }
  .pd2-stickynav-in { gap: 10px; }
  .pd2-stickynav-price { display: none; }
}
