/* ═══ product.css — EDD product landing pages, specs, demo section, blog posts ═══ */

/* ─── Product Page ──────────────────────────────────── */
.np-product-page {
  padding: 60px 0 80px;
}
.np-product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}
@media (max-width: 768px) {
  .np-product-hero-grid { grid-template-columns: 1fr; gap: 32px; }
}
.np-product-hero-info h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--np-secondary);
  line-height: 1.2;
  margin-bottom: 16px;
}
.np-product-hero-info h1 span {
  /* deeper, more confident purple — keeps brand accent without the cartoony lavender */
  color: var(--np-primary-dark, #5B21B6);
  background: linear-gradient(135deg, var(--np-primary, #6C3AED), var(--np-primary-dark, #5B21B6));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.np-product-subtitle {
  color: var(--np-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Price box */
.np-product-price-box {
  position: relative;
  background: var(--np-white);
  border: 1px solid #E2E8F0;
  border-radius: var(--np-radius-lg);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}
.np-product-price-box::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--np-primary), #4F46E5);
  border-radius: var(--np-radius-lg) var(--np-radius-lg) 0 0;
}
.np-price-tag {
  margin-bottom: 16px;
}
.np-price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--np-secondary);
}
.np-price-period {
  color: var(--np-text-muted);
  font-size: 0.95rem;
  margin-left: 8px;
}
.np-price-includes {
  list-style: none;
  padding: 0;
  margin: 0;
}
.np-price-includes li {
  padding: 4px 0;
  color: var(--np-text-muted);
  font-size: 0.95rem;
}
.np-price-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--np-border);
  color: var(--np-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Release status badge */
.np-release-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 8px;
}
.np-release-ready {
  background: #ECFDF5;
  color: #059669;
}
.np-release-waitlist {
  background: #FEF3C7;
  color: #D97706;
}

/* Waitlist CTA */
.np-waitlist-cta {
  background: #D97706 !important;
  border-color: #D97706 !important;
}
.np-waitlist-cta:hover {
  background: #B45309 !important;
  border-color: #B45309 !important;
}
.np-waitlist-note {
  color: var(--np-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Hero CTA group */
.np-hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 28px 0;
}
.np-hero-buy {
  padding: 14px 32px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  min-width: 200px;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(108, 58, 237, 0.25);
}
.np-hero-buy:hover {
  box-shadow: 0 6px 20px rgba(108, 58, 237, 0.35) !important;
}
@media (max-width: 480px) {
  .np-hero-cta-group { flex-direction: column; align-items: stretch; }
  .np-hero-buy { min-width: unset; }
}

/* Trust proof strip — demo, install guide, screenshots, checksum, support */
.np-trust-proof {
  margin-bottom: 48px;
}
.np-trust-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 16px 24px;
  background: var(--np-bg-alt, #F8FAFC);
  border: 1px solid var(--np-border, #E2E8F0);
  border-radius: var(--np-radius-lg, 14px);
  align-items: center;
}
.np-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--np-text-muted, #64748B);
  text-decoration: none;
  transition: color 0.15s;
}
a.np-proof-item:hover {
  color: var(--np-primary, #6C3AED);
}
.np-proof-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.np-proof-checksum {
  font-size: 0.82rem;
}
.np-proof-checksum code {
  font-family: monospace;
  font-size: 0.78rem;
  background: var(--np-white, #fff);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--np-border, #E2E8F0);
  word-break: break-all;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}
@media (max-width: 640px) {
  .np-trust-proof-strip { flex-direction: column; gap: 10px; }
  .np-proof-checksum code { max-width: 100%; }
}

/* Product features section */
.np-product-features-section {
  margin-bottom: 80px;
}
.np-fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 960px) {
  .np-fit-grid { grid-template-columns: 1fr; }
}
.np-fit-card {
  background: var(--np-white);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  padding: 28px;
  box-shadow: var(--np-shadow);
}
.np-fit-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--np-secondary);
  margin-bottom: 10px;
}
.np-fit-card p {
  color: var(--np-text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
}
.np-fit-check-section {
  padding: 48px;
  background: var(--np-bg-alt);
  border-radius: var(--np-radius-lg);
}
@media (max-width: 640px) {
  .np-fit-check-section { padding: 28px; }
}
.np-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 640px) {
  .np-check-grid { grid-template-columns: 1fr; }
}
.np-check-item {
  position: relative;
  padding: 18px 18px 18px 44px;
  background: var(--np-white);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
  color: var(--np-text);
  font-size: 0.95rem;
  line-height: 1.6;
}
.np-check-item::before {
  content: '✓';
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--np-accent);
  font-weight: 800;
}

/* Specs grid */
.np-product-specs {
  margin-bottom: 80px;
}
.np-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--np-border);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  overflow: hidden;
}
@media (max-width: 640px) {
  .np-specs-grid { grid-template-columns: 1fr; }
}
.np-spec-item {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--np-white);
}
.np-spec-item strong {
  color: var(--np-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}
.np-spec-item span {
  color: var(--np-text-muted);
  font-size: 0.9rem;
  text-align: right;
}

/* Demo section */
.np-product-demo {
  text-align: center;
  padding: 48px;
  background: var(--np-bg-alt);
  border-radius: var(--np-radius-lg);
}
.np-demo-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.np-product-faq {
  margin: 80px 0;
}
.np-faq-list {
  display: grid;
  gap: 16px;
}
.np-faq-item {
  background: var(--np-white);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  padding: 24px 28px;
}
.np-faq-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--np-secondary);
  margin-bottom: 8px;
}
.np-faq-item p {
  margin: 0;
  color: var(--np-text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}
.np-product-buy-note {
  margin-top: 80px;
  padding: 48px;
  background: var(--np-secondary);
  border-radius: var(--np-radius-lg);
}
.np-product-buy-note .np-section-title {
  margin-bottom: 24px;
}
.np-product-buy-note .np-section-title h2 {
  color: var(--np-white);
}
.np-product-buy-note .np-section-title p {
  color: var(--np-icon-muted);
}
.np-product-buy-note .np-btn-outline {
  border-color: rgba(255,255,255,0.22);
  color: var(--np-white) !important;
}
.np-product-buy-note .np-btn-outline:hover {
  background: var(--np-white);
  color: var(--np-secondary) !important;
  border-color: var(--np-white);
}

/* ─── Feature matrix table (product page 1.0 vs 2.0 comparison) ─── */
.np-table-scroll--sticky {
  max-height: 520px;
  overflow-y: auto;
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
}
.np-table-scroll--sticky:focus {
  outline: 2px solid var(--np-primary);
  outline-offset: 2px;
}
.np-table-scroll--sticky .np-feature-matrix {
  border: none;
  border-radius: 0;
}
.np-feature-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 16px;
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  overflow: hidden;
}
.np-table-scroll--sticky .np-feature-matrix {
  margin-top: 0;
}
.np-feature-matrix th {
  background: var(--np-secondary);
  color: var(--np-white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 2;
}
.np-feature-matrix td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--np-border);
  color: var(--np-text-muted);
}
.np-feature-matrix td:first-child {
  font-weight: 500;
  color: var(--np-text);
}
.np-feature-matrix tr:last-child td { border-bottom: none; }
.np-feature-matrix tr:hover td { background: var(--np-bg-alt); }
@media (max-width: 640px) {
  .np-feature-matrix { font-size: 0.82rem; }
  .np-feature-matrix th,
  .np-feature-matrix td { padding: 8px 10px; }
  .np-table-scroll--sticky { max-height: 400px; }
}

/* ─── Fit check lists (good-fit / not-a-fit) ─── */
.np-fit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.np-fit-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--np-text-muted);
  border-bottom: 1px solid var(--np-border);
}
.np-fit-list li:last-child { border-bottom: none; }
.np-fit-yes li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 800;
}
.np-fit-no li::before {
  content: '\2717';
  position: absolute;
  left: 0;
  color: #DC2626;
  font-weight: 800;
}

/* ─── Product page: mobile refinements ─────────────── */
.np-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 480px) {
  .np-hero-badge { flex-wrap: wrap; justify-content: center; }
  .np-product-hero-grid { margin-bottom: 48px; }
  .np-product-features-section { margin-bottom: 48px; }
}
@media (max-width: 640px) {
  .np-product-buy-note,
  .np-product-demo { padding: 28px; }
  .np-fit-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .np-product-hero-grid { margin-bottom: 48px; }
}

/* ─── Product page: accessibility ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  .np-feature-card,
  .np-proof-item,
  .np-btn,
  .np-faq-item,
  .np-quote-card {
    transition: none !important;
  }
  .np-feature-card:hover,
  .np-quote-card:hover {
    transform: none !important;
  }
}

/* ─── Blog Posts ────────────────────────────────────── */
.np-blog-content {
  max-width: 800px;
  margin: 0 auto;
}
.np-blog-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--np-secondary);
  margin: 48px 0 16px;
}
.np-blog-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--np-secondary);
  margin: 32px 0 8px;
}
.np-blog-content p, .np-blog-content li {
  color: var(--np-text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}
.np-blog-content ul {
  padding-left: 20px;
  margin: 8px 0 16px;
}
.np-blog-content li { margin-bottom: 6px; }
.np-blog-content a { color: var(--np-primary) !important; font-weight: 500; }
.np-blog-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--np-text);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--np-border);
}
/* Comparison table */
.np-comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.np-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 16px 0;
}
.np-comparison-table th {
  background: var(--np-secondary);
  color: white;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
}
.np-comparison-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--np-border);
  color: var(--np-text-muted);
}
.np-comparison-table tr:first-child td {
  background: var(--np-surface-purple-soft);
  font-weight: 600;
  color: var(--np-secondary);
}
.np-comparison-table tr:hover td {
  background: var(--np-bg-alt);
}

/* ─── Blog Listing / Archive ────────────────────────── */
.np-blog-page {
  background: var(--np-bg);
}

.np-blog-hero {
  background: var(--np-hero-gradient);
  padding: 84px 0 56px;
  border-bottom: 1px solid var(--np-border);
}

.np-blog-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin: 18px 0 18px;
}

.np-blog-hero h1 span {
  color: var(--np-primary);
}

.np-blog-hero p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--np-text-muted);
  max-width: 840px;
}

.np-blog-taxonomy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.np-blog-taxonomy-links a,
.np-blog-category {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--np-white);
  border: 1px solid var(--np-border);
  color: var(--np-text);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all var(--np-transition);
}

.np-blog-taxonomy-links a:hover,
.np-blog-category:hover {
  border-color: var(--np-primary);
  color: var(--np-primary);
  transform: translateY(-1px);
}
.np-blog-taxonomy-links a:focus-visible,
.np-blog-category:focus-visible {
  outline: 2px solid var(--np-primary);
  outline-offset: 3px;
}

.np-blog-listing {
  padding: 56px 0 80px;
}

.np-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}

.np-blog-card {
  background: var(--np-white);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  padding: 28px;
  box-shadow: var(--np-shadow);
  transition: all var(--np-transition);
}

.np-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--np-shadow-lg);
  border-color: rgba(108, 58, 237, 0.18);
}

.np-blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.np-blog-card-title {
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 0 0 12px;
}

.np-blog-card-title a {
  color: var(--np-secondary);
  text-decoration: none;
}

.np-blog-card-title a:hover {
  color: var(--np-primary);
}

.np-blog-card-title a:focus-visible {
  outline: 2px solid var(--np-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

.np-blog-card-date {
  color: var(--np-text-muted);
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.np-blog-card-excerpt {
  color: var(--np-text-muted);
  line-height: 1.8;
  margin-bottom: 18px;
}

.np-blog-read-more {
  display: inline-block;
  padding: 6px 0;
  color: var(--np-primary);
  font-weight: 700;
  text-decoration: none;
}
.np-blog-read-more:focus-visible {
  outline: 2px solid var(--np-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

.np-blog-pagination {
  margin-top: 42px;
}

.np-blog-pagination .nav-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.np-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--np-border);
  background: var(--np-white);
  color: var(--np-text);
  text-decoration: none;
  font-weight: 600;
}

.np-blog-pagination .page-numbers.current,
.np-blog-pagination .page-numbers:hover {
  background: var(--np-primary);
  border-color: var(--np-primary);
  color: var(--np-white);
}

.np-blog-pagination .page-numbers:focus-visible {
  outline: 2px solid var(--np-primary);
  outline-offset: 3px;
}

.np-blog-empty {
  text-align: center;
  background: var(--np-white);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  padding: 56px 32px;
  box-shadow: var(--np-shadow);
}

@media (max-width: 768px) {
  .np-blog-hero {
    padding: 64px 0 42px;
  }

  .np-blog-card {
    padding: 22px;
  }
}

/* ─── Fix Astra hover color override on inline-styled buttons ─── */
.entry-content a[style*="background:#6C3AED"],
.entry-content a[style*="background: #6C3AED"],
.entry-content a[style*="background:#7C3AED"],
.entry-content a[style*="background: #7C3AED"],
.entry-content a[style*="background:#059669"],
.entry-content a[style*="background: #059669"] {
  color: #ffffff !important;
  transition: opacity 0.2s ease;
}
.entry-content a[style*="background:#6C3AED"]:hover,
.entry-content a[style*="background: #6C3AED"]:hover,
.entry-content a[style*="background:#7C3AED"]:hover,
.entry-content a[style*="background: #7C3AED"]:hover,
.entry-content a[style*="background:#059669"]:hover,
.entry-content a[style*="background: #059669"]:hover {
  color: #ffffff !important;
  opacity: 0.9;
  text-decoration: none;
}

/* ─── Product card hover effects ─── */
.entry-content a[style*="border:1px solid #E2E8F0"]:hover {
  border-color: #6C3AED !important;
  box-shadow: 0 4px 16px rgba(108, 58, 237, 0.1) !important;
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

/* ─── Hide Astra footer credit ─── */
.ast-small-footer, .site-footer .ast-footer-copyright,
.ast-footer-copyright a[href*="developer.wordpress.org"],
.ast-footer-copyright a[href*="developer.wordpress.org"] + span {
  display: none !important;
}
.site-footer .ast-row {
  text-align: center;
}


/* ─── Product page: customer quotes ─── */
.np-product-quotes {
  padding: 56px 0;
  max-width: 1200px;
  margin: 0 auto;
}
.np-product-quotes h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 32px;
}
.np-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) {
  .np-quote-grid { grid-template-columns: 1fr; }
}
.np-quote-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 22px 24px;
  margin: 0;
  position: relative;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
  transition: transform .15s, box-shadow .15s;
}
.np-quote-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
}
.np-quote-card::before {
  content: '“';
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 48px;
  color: #EDE9FE;
  font-family: Georgia, serif;
  line-height: 1;
}
.np-quote-card blockquote {
  margin: 0 0 14px;
  padding: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #334155;
  font-style: normal;
  position: relative;
  z-index: 1;
}
.np-quote-card figcaption {
  font-size: 13px;
  font-weight: 600;
  color: #6C3AED;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}

/* ─── Product hero preview panel (shortcode template default) ─── */
/* Used by [np_product_landing] when the per-product config does not   */
/* ship custom preview_html. Inline-styled HTML demos (npageverify,    */
/* npfbt, npsearch) override the children but keep this outer chrome.  */
.np-product-hero-preview .np-preview-panel {
  background: var(--np-white, #FFFFFF);
  border: 1px solid var(--np-border, #E2E8F0);
  border-radius: var(--np-radius-lg, 14px);
  padding: 18px 20px 22px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
  min-height: 220px;
}
.np-product-hero-preview .np-preview-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.np-product-hero-preview .np-preview-dots::before,
.np-product-hero-preview .np-preview-dots::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #EF4444;
}
.np-product-hero-preview .np-preview-dots::after {
  background: #FBBF24;
  box-shadow: 16px 0 0 #10B981;
}
.np-product-hero-preview .np-preview-body {
  color: var(--np-text-muted, #64748B);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ─── Trust proof strip: focus-visible + checksum overflow polish ─── */
/* Strip surfaces demo, install guide, screenshots, support, and       */
/* package SHA256 checksum above the fold for release-proof scanning.  */
a.np-proof-item:focus-visible {
  outline: 2px solid var(--np-primary, #6C3AED);
  outline-offset: 2px;
  border-radius: 4px;
}
.np-proof-checksum[title] {
  cursor: help;
}
.np-proof-checksum {
  color: var(--np-text-muted, #64748B);
}

/* Beta release badge — share waitlist palette but keep distinct text */
.np-release-badge {
  white-space: nowrap;
}
