/*
 * Batch 2 Fix 3 — premium content pages (Research Quality, COA Library,
 * About, FAQ). Standard: Apple/Stripe/Linear content pages, in the frozen
 * palette (navy #0f172a, signature blue #0053E1). Loaded only on those
 * pages. Covers BOTH hero systems in use: the parent's .page-hero
 * (research/coa via peptalux_wrap_page_start) and .plx-page-hero (about/faq).
 */

/* ══ Hero refinement ═════════════════════════════════════════════════════ */
.page-hero,
.plx-page-hero {
  background: #0f172a;
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
}
.page-hero::before,
.plx-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cg fill='none' stroke='%230053E1' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M30 0v20L10 32v24l20 12v20M90 0v20l20 12v24l-20 12v20M30 52h60M30 20l30 16 30-16M30 84l30-16 30 16'/%3E%3C/g%3E%3Cg fill='%230053E1' fill-opacity='0.07'%3E%3Ccircle cx='30' cy='20' r='2'/%3E%3Ccircle cx='90' cy='20' r='2'/%3E%3Ccircle cx='60' cy='36' r='2'/%3E%3Ccircle cx='30' cy='52' r='2'/%3E%3Ccircle cx='90' cy='52' r='2'/%3E%3Ccircle cx='60' cy='68' r='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 104px;
}
.page-hero .inner,
.plx-page-hero .section-container { position: relative; z-index: 1; }

/* Eyebrow → brand pill badge */
.page-hero .eyebrow,
.plx-page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0053E1;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  border: 0;
  margin-bottom: 18px;
}
.page-hero h1,
.plx-page-hero__title {
  font-size: 40px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 12px;
}
.page-hero .inner > p,
.plx-page-hero__sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 640px) {
  .page-hero h1, .plx-page-hero__title { font-size: 30px; }
}

/* ══ Content body — never a blog post ════════════════════════════════════ */
.plx-page-content,
.page-section .section-container > :where(h2, h3, p, ul, ol) { max-width: 720px; }
.plx-page-content { margin: 0 auto; }

.plx-page-content h2,
.page-section h2 {
  font-size: 22px;
  font-weight: 600;
  color: #0f172a;
  border-left: 3px solid #0053E1;
  padding-left: 14px;
  margin: 40px 0 14px;
}
.plx-page-content h3,
.page-section h3 { color: #0f172a; font-weight: 600; margin: 28px 0 10px; }
.plx-page-content p,
.page-section p { font-size: 16px; color: #374151; line-height: 1.75; }

/* Brand bullets */
.plx-page-content ul,
.page-section .section-container ul { list-style: none; padding-left: 0; }
.plx-page-content ul > li,
.page-section .section-container ul > li {
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
  font-size: 16px;
  color: #374151;
  line-height: 1.7;
}
.plx-page-content ul > li::before,
.page-section .section-container ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0053E1;
}

/* Info cards (Gutenberg groups / .table-card get the treatment) */
.plx-page-content .wp-block-group,
.plx-info-card,
.page-section .table-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* Data / specs in mono, brand blue */
.plx-page-content code,
.page-section code,
.plx-mono {
  font-family: "Courier New", Courier, monospace;
  color: #0053E1;
  background: none;
}

/* Internal CTAs */
.plx-page-content a,
.page-section .section-container a {
  color: #0053E1;
  text-decoration: none;
  font-weight: 600;
}
.plx-page-content a:hover,
.page-section .section-container a:hover { text-decoration: underline; }

/* Branded search input focus (COA library) */
#coa-search:focus {
  border-color: #0053E1 !important;
  box-shadow: 0 0 0 3px rgba(0, 83, 225, 0.15);
}

/* ══ Research Quality — process cards + stats strip ══════════════════════ */
.plx-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 40px;
}
@media (max-width: 900px) { .plx-process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .plx-process-grid { grid-template-columns: 1fr; } }
.plx-process-card {
  background: #0f172a;
  border-radius: 12px;
  padding: 24px 20px;
  color: #ffffff;
  position: relative;
}
.plx-process-card svg { color: #0053E1; stroke: #0053E1; margin-bottom: 12px; }
.plx-process-card__step {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.plx-process-card h3 {
  color: #ffffff !important;
  font-size: 17px;
  margin: 0 0 8px !important;
  border: 0 !important;
  padding: 0 !important;
}
.plx-process-card p {
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  margin: 0;
}

.plx-stats-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
  background: #0b1120;
  border-radius: 10px;
  padding: 16px 12px;
  margin: 0 0 48px;
}
.plx-stats-strip span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.plx-stats-strip span + span::before {
  content: "|";
  margin: 0 14px;
  color: rgba(255, 255, 255, 0.25);
}

/* ══ FAQ — accordion to spec ═════════════════════════════════════════════ */
.plx-faq-item,
.plx-page-content details {
  border-bottom: 1px solid #e5e7eb;
  border-left: 3px solid transparent;
  padding: 4px 0 4px 14px;
  transition: border-color 0.15s ease;
}
.plx-faq-item.open,
.plx-page-content details[open] { border-left-color: #0053E1; }
.plx-faq-q,
.plx-page-content details summary {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  padding: 14px 0;
}
.plx-faq-a,
.plx-page-content details p { font-size: 15px; color: #374151; line-height: 1.7; }
.plx-faq-a { overflow: hidden; transition: max-height 0.25s ease; }
@media (prefers-reduced-motion: reduce) { .plx-faq-a { transition: none; } }

/* ═══ Batch 2 v4 — Apple-tier content-page pass ═════════════════════════ */

/* Global rhythm: 80px between major sections, breathe */
.page-section { padding: 80px 0; }
.plx-page-content { padding: 0 0 80px; }

/* Hero: bigger headline, subtler lattice */
.page-hero h1, .plx-page-hero__title { font-size: 48px; font-weight: 800; }
.page-hero::before, .plx-page-hero::before { opacity: 0.6; }
@media (max-width: 640px) { .page-hero h1, .plx-page-hero__title { font-size: 32px; } }

/* Process cards: stunning-pass */
.plx-process-grid { gap: 20px; margin: 0 0 80px; }
.plx-process-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.plx-process-card:hover {
  transform: translateY(-4px);
  border-color: #0053E1;
  box-shadow: 0 12px 32px rgba(0, 83, 225, 0.18);
}
.plx-process-card h3 { font-size: 18px !important; }

/* MASSIVE stats */
.plx-big-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: #0f172a;
  border-radius: 14px;
  padding: 48px 32px;
  margin: 0 0 80px;
  text-align: center;
}
@media (max-width: 900px) { .plx-big-stats { grid-template-columns: repeat(2, 1fr); } }
.plx-big-stats strong {
  display: block;
  font-size: 56px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
@media (max-width: 640px) { .plx-big-stats strong { font-size: 38px; } }
.plx-big-stats span { display: block; margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* Comparison table */
.plx-compare { margin: 0 0 80px; }
.plx-compare__title {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  border-left: 0 !important;
  padding-left: 0 !important;
  text-align: center;
  margin: 0 0 24px !important;
}
.plx-compare__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  color: #ffffff;
}
.plx-compare__table th, .plx-compare__table td {
  padding: 16px 18px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.plx-compare__table thead th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.plx-compare__table thead th:nth-child(2) { color: #ffffff; }
.plx-compare__table tbody td:first-child { font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.plx-compare__table tbody tr:last-child td { border-bottom: 0; }
.plx-compare__table td { color: rgba(255, 255, 255, 0.7); }
.plx-yes { color: #0053E1; font-weight: 700; margin-right: 6px; }
.plx-no { color: rgba(255, 255, 255, 0.35); font-weight: 700; margin-right: 6px; }
@media (max-width: 700px) {
  .plx-compare__table { display: block; overflow-x: auto; }
  .plx-compare__table th, .plx-compare__table td { min-width: 160px; }
}

/* ── COA Library ── */
body.plx-page--coa .page-hero { padding: 56px 0 44px; }
body.plx-page--coa .page-hero h1 { font-size: 40px; }
body.plx-page--coa #coa-search {
  height: 56px;
  max-width: 560px;
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 15px !important;
  padding: 0 18px !important;
}
body.plx-page--coa #coa-search::placeholder { color: rgba(255, 255, 255, 0.45); }
body.plx-page--coa #coa-search:focus {
  border-color: #0053E1 !important;
  box-shadow: 0 0 0 3px rgba(0, 83, 225, 0.2) !important;
}
.plx-coa-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.plx-coa-pill {
  padding: 9px 18px;
  border: 1px solid #e1e5eb;
  border-radius: 999px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
}
.plx-coa-pill:hover { border-color: #0053E1; color: #0053E1; }
.plx-coa-pill.is-active { background: #0053E1; border-color: #0053E1; color: #ffffff; }

/* ── About ── */
body.plx-page--about .plx-page-content > p:first-of-type {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}
@media (max-width: 640px) { body.plx-page--about .plx-page-content > p:first-of-type { font-size: 24px; } }
.plx-about-cta { text-align: center; margin: 64px 0 0; }
.plx-about-cta .plx-btn,
.plx-faq-cta .plx-btn {
  display: inline-block;
  background: #0f172a;
  color: #ffffff !important;
  padding: 15px 34px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.15s ease;
}
.plx-about-cta .plx-btn:hover, .plx-faq-cta .plx-btn:hover { background: #1e293b; transform: translateY(-1px); }

/* ── FAQ ── */
.plx-faq-search { margin: 0 0 32px; }
.plx-faq-search input {
  width: 100%;
  height: 52px;
  border: 1px solid #e1e5eb;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 15px;
  color: #0f172a;
}
.plx-faq-search input:focus {
  outline: none;
  border-color: #0053E1;
  box-shadow: 0 0 0 3px rgba(0, 83, 225, 0.15);
}
.plx-faq-content h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 48px 0 8px;
}
.plx-fq {
  border-bottom: 1px solid #e5e7eb;
  border-left: 3px solid transparent;
  padding-left: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.plx-fq[open] { border-left-color: #0053E1; background: #f8faff; border-radius: 0 8px 8px 0; }
.plx-fq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 16px 8px 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}
.plx-fq summary::-webkit-details-marker { display: none; }
.plx-fq summary i {
  font-style: normal;
  color: #0053E1;
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.plx-fq[open] summary i { transform: rotate(45deg); }
.plx-fq__a { padding: 0 24px 16px 0; }
.plx-fq__a p { font-size: 15px !important; color: #374151 !important; line-height: 1.7 !important; }
.plx-faq-cta { text-align: center; margin: 64px 0 0; padding: 40px; background: #0f172a; border-radius: 14px; }
.plx-faq-cta h2 { color: #ffffff !important; border: 0 !important; padding: 0 !important; font-size: 24px !important; margin: 0 0 18px !important; }

/* ═══ Batch 2 v5 — LIGHT COMMIT overrides (navy = hero band only) ════════ */

/* Process cards → white, #0053E1 icon + top accent, subtle shadow */
.plx-process-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: 3px solid #0053E1;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.plx-process-card:hover {
  transform: translateY(-4px);
  border-color: #0053E1;
  box-shadow: 0 12px 28px rgba(0, 83, 225, 0.12);
}
.plx-process-card__step { color: #9ca3af; }
.plx-process-card h3 { color: #0f172a !important; }
.plx-process-card p { color: #6b7280 !important; }

/* Massive stats → white card, navy numbers, hairline */
.plx-big-stats {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.plx-big-stats strong { color: #0f172a; }
.plx-big-stats span { color: #6b7280; }

/* Comparison table → light body, quiet header (email grammar) */
.plx-compare__table { background: #ffffff; border: 1px solid #e5e7eb; color: #0f172a; }
.plx-compare__table th, .plx-compare__table td { border-bottom: 1px solid #f0f0f0; }
.plx-compare__table thead th { background: #f8fafc; color: #6b7280; }
.plx-compare__table thead th:nth-child(2) { color: #0053E1; }
.plx-compare__table tbody td:first-child { color: #0f172a; }
.plx-compare__table td { color: #374151; }
.plx-no { color: #c0c8d0; }

/* COA library → light search + white stat cards */
body.plx-page--coa #coa-search {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #0f172a !important;
}
body.plx-page--coa #coa-search::placeholder { color: #9ca3af; }
body.plx-page--coa .stats-grid .stat,
body.plx-page--coa .stat {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* FAQ closing CTA → light card, cobalt button */
.plx-faq-cta { background: #ffffff; border: 1px solid #e5e7eb; }
.plx-faq-cta h2 { color: #0f172a !important; }

/* ═══ Batch 2 v6 — My-Account benchmark system (owner: "THIS is the
   quality standard"). Light gradient heroes + pill badges + white-card
   bodies on a #f8fafc canvas; navy reserved for stats bands. ═══════════ */

/* Hero → light gradient, centered, pill badge (supersedes navy hero) */
.page-hero,
.plx-page-hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
  min-height: 280px;
  display: flex;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid #e5e7eb;
}
.page-hero::before,
.plx-page-hero::before { display: none; }
.page-hero .inner,
.plx-page-hero .section-container {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero .eyebrow,
.plx-page-hero__eyebrow {
  background: #eff6ff;
  color: #0053E1;
  border: 1px solid #dbeafe;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
}
.page-hero .eyebrow svg,
.plx-page-hero__eyebrow svg { stroke: #0053E1; }
.page-hero h1,
.plx-page-hero__title {
  font-size: 40px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.page-hero .inner > p,
.plx-page-hero__sub {
  font-size: 16px;
  color: #6b7280;
  max-width: 560px;
  margin: 0 auto;
}
@media (max-width: 640px) { .page-hero h1, .plx-page-hero__title { font-size: 30px; } }

/* Body canvas + card system */
body.plx-page--research, body.plx-page--coa,
body.plx-page--about, body.plx-page--faq { background: #f8fafc; }
.page-section { background: transparent; }
.page-section .section-container { max-width: 900px; }

.plx-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
  margin: 0 0 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.plx-card > h2:first-child { margin-top: 0 !important; }

/* Icon-circle card header (About / process cards) */
.plx-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eff6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.plx-icon-circle svg { stroke: #0053E1; color: #0053E1; margin: 0; }

/* About cards grid */
.plx-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0 0 48px;
}
@media (max-width: 760px) { .plx-about-grid { grid-template-columns: 1fr; } }
.plx-about-grid .plx-card { margin: 0; padding: 28px; }
.plx-about-grid h3 { color: #0f172a; font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.plx-about-grid p { font-size: 15px; color: #374151; line-height: 1.7; margin: 0; }

/* Bullets → checkmark rows */
.plx-page-content ul > li::before,
.page-section .section-container ul > li::before,
.plx-card ul > li::before {
  content: "\2713";
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: #0053E1;
  font-weight: 700;
  font-size: 14px;
  top: 0.18em;
  left: 0;
}
.plx-page-content ul > li,
.plx-card ul > li { padding-left: 26px; margin: 10px 0; }

/* Stats band → NAVY again per benchmark ("same as homepage") */
.plx-big-stats {
  background: #0f172a;
  border: 0;
  box-shadow: none;
}
.plx-big-stats strong { color: #ffffff; }
.plx-big-stats span { color: rgba(255, 255, 255, 0.6); }

/* Comparison table — light refinement pass */
.plx-compare__table { border-radius: 12px; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05); }

/* ═══ Batch 2 v7 — Owner pass fixes ═══════════════════════════════════════ */

/* Fix 1 — COA stat chips: compact, single-line, equal height */
body.plx-page--coa .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 760px) { body.plx-page--coa .stats-grid { grid-template-columns: repeat(2, 1fr); } }
body.plx-page--coa .stats-grid .stat {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 74px;
}
body.plx-page--coa .stats-grid .stat strong {
  font-size: 28px;
  font-weight: 700;
  color: #0053E1;
  line-height: 1.1;
  white-space: nowrap;
}
body.plx-page--coa .stats-grid .stat .text-muted {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
  margin-top: 2px;
}
