/* ==========================================================================
   GPLPal 2026 dedicated stylesheet for the standalone pricing page (depends on the gplpal-core.css shared library)
   Contains: 3-Tier Plan Boxes, Quota Meter Bars, Comparison Matrix Table
   ========================================================================== */

/* 1. Page-level outer container and deep-space header layout */
.gplpal-pricing-page-wrapper {
  width: 100%;
  overflow: hidden;
  font-family: var(--gplpal-font);
  box-sizing: border-box;
}

.gplpal-pricing-hero-header {
  position: relative;
  background-color: var(--gplpal-bg-surface);
  background: radial-gradient(circle at 50% 0%, #111c38 0%, var(--gplpal-bg-surface) 75%);
  padding: 70px 20px 85px 20px;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
  border-bottom: 1px solid var(--gplpal-border-subtle);
}

.gplpal-pricing-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.gplpal-switcher-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
}

.gplpal-pricing-main-h1 {
  font-size: 40px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1.22 !important;
  letter-spacing: -0.8px !important;
  margin: 0 0 18px 0 !important;
}

.gplpal-pricing-main-sub {
  font-size: 15.5px !important;
  color: var(--gplpal-text-muted) !important;
  line-height: 1.65 !important;
  max-width: 820px;
  margin: 0 auto 30px auto !important;
}

.gplpal-hero-trust-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 8px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 12.5px;
  color: #cbd5e1;
  font-weight: 600;
}
.trust-chip { display: inline-flex; align-items: center; gap: 6px; }
.chk-icon { color: var(--gplpal-emerald); font-weight: 900; }
.chip-sep { color: var(--gplpal-text-dim); }

/* 2. 三大卡片展示区 (白-黑-白 经典大厂反差排版) */
.gplpal-cards-stage-section {
  width: 100%;
  padding: 75px 20px 85px 20px;
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  box-sizing: border-box;
}

.gplpal-stage-container {
  max-width: 1200px;
  margin: 0 auto;
}

.gplpal-pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.gplpal-plan-box {
  border-radius: 22px;
  padding: 38px 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gplpal-plan-box:hover {
  transform: translateY(-4px);
}

.plan-white {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.plan-white:hover {
  border-color: #94a3b8;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.plan-obsidian-hero {
  background: #090e1a;
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.4), 0 0 35px rgba(245, 158, 11, 0.15);
  position: relative;
  overflow: hidden;
}

.gplpal-card-glow-bg {
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 200px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  filter: blur(40px); pointer-events: none;
}

.gplpal-hero-top-ribbon {
  position: absolute; top: 0; left: 0; right: 0;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #090d16; font-size: 11px; font-weight: 900;
  text-align: center; padding: 5px 0; letter-spacing: 0.8px;
}

.plan-obsidian-hero .gplpal-box-header { margin-top: 10px; }
.gplpal-box-header { margin-bottom: 20px; }

.gplpal-tier-pill {
  display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: 0.8px; padding: 3px 10px; border-radius: 6px; margin-bottom: 12px;
}
.pill-slate { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.pill-gold  { background: rgba(245, 158, 11, 0.15); color: var(--gplpal-gold); border: 1px solid rgba(245, 158, 11, 0.35); }

.gplpal-box-title {
  font-size: 24px !important; font-weight: 900 !important;
  color: #0f172a !important; margin: 0 0 4px 0 !important;
}
.gplpal-box-subtitle {
  font-size: 13.5px !important; color: #64748b !important; margin: 0 !important; line-height: 1.4;
}

.gplpal-box-price-row {
  margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid #f1f5f9;
}
.plan-obsidian-hero .gplpal-box-price-row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.gplpal-box-price {
  font-size: 48px; font-weight: 900; color: #0f172a;
  line-height: 1; letter-spacing: -1.5px; margin-bottom: 8px;
}
.gplpal-box-price .currency { font-size: 24px; font-weight: 700; vertical-align: super; }

.gplpal-box-cycle { font-size: 13px; color: #64748b; font-weight: 500; margin-bottom: 10px; }

.gplpal-box-guarantee {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
}
.tag-gray { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.tag-gold-glow { background: rgba(245, 158, 11, 0.15); color: var(--gplpal-gold); border: 1px solid rgba(245, 158, 11, 0.35); }

/* Quota bar */
.gplpal-box-quota { margin-bottom: 24px; }
.quota-label { font-size: 13px; color: #0f172a; margin-bottom: 8px; font-weight: 600; }
.quota-label strong { font-size: 15px; font-weight: 900; }
.quota-meter { width: 100%; height: 6px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.meter-dark { background: rgba(255, 255, 255, 0.12); }
.meter-bar { height: 100%; border-radius: 999px; }
.fill-20  { width: 20%; background: #64748b; }
.fill-60  { width: 60%; background: linear-gradient(90deg, #f59e0b, #ea580c); box-shadow: 0 0 10px #f59e0b; }
.fill-100 { width: 100%; background: var(--gplpal-emerald); }

.gplpal-box-features {
  list-style: none; padding: 0; margin: 0 0 32px 0;
  display: flex; flex-direction: column; gap: 14px; flex: 1;
}
.gplpal-box-features li {
  display: flex !important; align-items: center !important; justify-content: flex-start !important;
  gap: 10px !important; font-size: 13.5px; color: #334155; line-height: 1.45; text-align: left;
}
.feat-chk { color: var(--gplpal-emerald); font-weight: 900; font-size: 14px; flex-shrink: 0; }

.gplpal-box-action {
  margin-top: auto; display: flex; flex-direction: column; gap: 10px; text-align: center;
}
.gplpal-btn-box {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 13px 20px; border-radius: 10px;
  text-decoration: none; font-size: 14px; font-weight: 800;
  transition: all 0.2s ease; box-sizing: border-box;
}
.gplpal-btn-micro { font-size: 11.5px; color: #64748b; font-weight: 500; }

.text-white { color: #ffffff !important; }
.text-gold {
  background: linear-gradient(135deg, #ffffff 30%, #fcd34d 70%, #f59e0b 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.text-gold-light { color: var(--gplpal-amber) !important; }
.text-slate-dim { color: var(--gplpal-text-muted) !important; }
.text-slate-light li { color: #cbd5e1 !important; }

/* 3. Competitor Comparison Matrix */
.gplpal-matrix-section {
  width: 100%; padding: 85px 20px 95px 20px;
  background-color: var(--gplpal-bg-surface);
  background: radial-gradient(circle at 50% 0%, #111c38 0%, var(--gplpal-bg-surface) 75%);
  box-sizing: border-box;
  border-top: 1px solid var(--gplpal-border-subtle);
  border-bottom: 1px solid var(--gplpal-border-subtle);
}
.gplpal-matrix-container { max-width: 1140px; margin: 0 auto; }
.gplpal-matrix-header { text-align: center; max-width: 780px; margin: 0 auto 50px auto; }
.gplpal-matrix-eyebrow {
  font-size: 11.5px; font-weight: 800; color: #ea580c; letter-spacing: 1.5px; display: block; margin-bottom: 10px;
}
.gplpal-matrix-h2 {
  font-size: 36px !important; font-weight: 900 !important; color: #ffffff !important; line-height: 1.25 !important; margin: 0 0 12px 0 !important;
}
.gplpal-matrix-desc {
  font-size: 15px !important; color: var(--gplpal-text-muted) !important; line-height: 1.6 !important; margin: 0 !important;
}

.gplpal-matrix-table-wrap {
  width: 100%; overflow-x: auto; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.gplpal-compare-table {
  width: 100%; border-collapse: collapse; text-align: left;
  background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(16px);
}
.gplpal-compare-table th {
  padding: 18px 22px; font-size: 13.5px; font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12); color: #ffffff;
}
.col-feature { width: 30%; background: rgba(255, 255, 255, 0.03); }
.col-competitor { width: 35%; color: var(--gplpal-text-muted) !important; background: rgba(0, 0, 0, 0.2); }
.col-gplpal { width: 35%; color: var(--gplpal-gold) !important; background: rgba(245, 158, 11, 0.08); border-left: 1px solid rgba(245, 158, 11, 0.2); }

.gplpal-compare-table td {
  padding: 18px 22px; font-size: 13.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); line-height: 1.55;
}
.feat-name strong { display: block; color: #ffffff; font-size: 14px; margin-bottom: 2px; }
.feat-name span { font-size: 12px; color: var(--gplpal-text-dim); }
.cell-bad { color: var(--gplpal-text-muted); background: rgba(0, 0, 0, 0.15); }
.cell-good {
  color: #e2e8f0; background: rgba(245, 158, 11, 0.04);
  border-left: 1px solid rgba(245, 158, 11, 0.15);
}
.cell-good strong { color: #ffffff; }

/* 4. 7 Comprehensive Category Express Channel */
.gplpal-spectrum-section {
  width: 100%; padding: 40px 20px; background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0; text-align: center;
}
.gplpal-spectrum-container { max-width: 1200px; margin: 0 auto; }
.gplpal-spectrum-lead {
  font-size: 11px; font-weight: 800; color: #64748b; letter-spacing: 1.5px; margin-bottom: 16px;
}
.gplpal-spectrum-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.spec-chip {
  background: #f8fafc; border: 1px solid #cbd5e1;
  color: #1e293b; padding: 8px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s ease;
}
.spec-chip:hover {
  background: #0f172a; color: #ffffff; border-color: #0f172a; transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

/* 5. 10 Major Pre-sales FAQ Grid */
.gplpal-pricing-faq-section {
  width: 100%; padding: 75px 20px 85px 20px; background: #f8fafc; box-sizing: border-box;
}
.gplpal-pricing-faq-container { max-width: 900px; margin: 0 auto; text-align: left; }
.gplpal-pricing-faq-header { text-align: center; margin-bottom: 45px; }
.gplpal-faq-h2 {
  font-size: 32px !important; font-weight: 900 !important; color: #0f172a !important; margin: 0 0 10px 0 !important;
}
.gplpal-faq-sub { font-size: 15px !important; color: #64748b !important; margin: 0 !important; }

.gplpal-pricing-faq-grid {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px;
}
.gplpal-p-faq-item {
  background: #ffffff; border: 1px solid #cbd5e1;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03); transition: all 0.2s;
}
.gplpal-p-faq-item[open] {
  border-color: #ea580c; box-shadow: 0 4px 15px rgba(234, 88, 12, 0.08);
}
.gplpal-p-faq-q {
  padding: 16px 20px; font-size: 15px; font-weight: 700; color: #0f172a;
}
.gplpal-p-faq-q:hover { color: #ea580c; }
.gplpal-p-faq-a { padding: 0 20px 18px 20px; border-top: 1px solid #f1f5f9; }
.gplpal-p-faq-a p {
  margin: 12px 0 0 0 !important; font-size: 13.5px !important; color: #475569 !important; line-height: 1.65 !important;
}

/* 6. Responsive Breakpoint Adaptation */
@media (max-width: 1024px) {
  .gplpal-pricing-cards-grid {
    grid-template-columns: 1fr; gap: 35px; max-width: 440px; margin: 0 auto;
  }
  .gplpal-pricing-main-h1 { font-size: 28px !important; }
  .gplpal-matrix-table-wrap { font-size: 12.5px; }
}

/* ========================================================
   7. Mobile-exclusive: Fully lock the comparison table—no more horizontal scrolling.
   ======================================================== */
@media (max-width: 768px) {
  /* 1. Completely disable horizontal scrolling to prevent accidental left-right drifting caused by thumb contact. */
  .gplpal-matrix-table-wrap {
    overflow-x: hidden !important;
    border-radius: 12px !important;
  }

  /* 2. Enforce a fixed-width column layout to ensure the table never breaks due to long English words. */
  .gplpal-compare-table {
    table-layout: fixed !important;
    width: 100% !important;
  }

  /* 3. Eliminate the original 22px "black hole" of whitespace and compress it to a refined 8px of padding, freeing up 84px of content width. */
  .gplpal-compare-table th,
  .gplpal-compare-table td {
    padding: 12px 8px !important;
    font-size: 11.5px !important;
    line-height: 1.45 !important;
    word-break: break-word !important; /* 长单词整齐自适应折行 */
  }

  /* 4. Three-column compact layout with a golden ratio distribution: Dimensions 30%, Competitors 33%, GPLPal 37% */
  .col-feature { width: 30% !important; }
  .col-competitor { width: 33% !important; }
  .col-gplpal { width: 37% !important; }

  /* 5. Cell Micro-typography Optimization */
  .feat-name strong { font-size: 12px !important; margin-bottom: 2px !important; }
  .feat-name span { font-size: 10px !important; line-height: 1.3 !important; }
}