/**
 * Sanjal Enterprises — Product Catalog
 * Loaded via $page_extra_css on /products/ pages only.
 * Extends style.css with catalog patterns; homepage-aligned
 * teal/gold/navy, General Sans / IBM Plex, hairline cards.
 */

/* ---------------------------------------------------------
 * BEM button aliases (cta-block / pricing-table)
 * ------------------------------------------------------- */
.btn--primary {
  background: var(--color-teal);
  color: var(--btn-primary-text, #FFFFFF);
  border-color: transparent;
  font-weight: 700;
}
.btn--primary:hover { box-shadow: var(--glow-btn, 0 8px 24px rgba(11, 148, 140, 0.28)); }
.btn--ghost {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--hair-2, rgba(10, 20, 40, 0.18));
}
.btn--ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: 0 4px 14px rgba(138, 104, 24, 0.12);
}
.cta-block--dark .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cta-block--dark .btn--ghost:hover { border-color: var(--color-teal); color: var(--color-teal); }
.btn--secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--hair-2, rgba(10, 20, 40, 0.18));
}
.btn--secondary:hover { border-color: var(--color-gold); color: var(--color-gold); }

/* ---------------------------------------------------------
 * Page header — catalog lede + CTAs on the shared light band
 * (tokens from style.css .page-header --ph-*)
 * ------------------------------------------------------- */
.page-header.catalog-header {
  padding: 44px 0 48px;
}

.page-header.catalog-header h1 {
  color: var(--ph-title, var(--color-navy, #0A1428));
  margin-bottom: 14px;
  max-width: 22ch;
  font-size: clamp(1.85rem, 1.45rem + 1.4vw, 2.65rem);
  letter-spacing: -0.028em;
  line-height: 1.12;
}

.page-header .catalog-lede {
  color: var(--ph-muted, rgba(10, 20, 40, 0.68));
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 62ch;
  margin: 0 0 8px;
  font-weight: 500;
}

.page-header .catalog-stat {
  color: var(--ph-crumb-current, var(--color-navy, #0A1428));
  margin-top: 10px;
  margin-bottom: 0;
}

.page-header .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* Light .page-header band — ghost/outline must not assume navy hero */
.page-header .btn-ghost,
.page-header .btn-line {
  color: var(--ph-title, var(--color-navy, #0A1428));
  border-color: var(--hair-2, rgba(10, 20, 40, 0.18));
}
.page-header .btn-ghost:hover,
.page-header .btn-line:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.page-header .direct-answer {
  background: var(--color-teal-10, rgba(11, 148, 140, 0.08));
  border-left-color: var(--color-teal);
  margin-top: 22px;
  margin-bottom: 0;
  max-width: 68ch;
}
.page-header .direct-answer .label { color: var(--color-teal); }
.page-header .direct-answer p {
  color: var(--ph-muted, rgba(10, 20, 40, 0.84));
  font-size: 1.02rem;
  margin: 0;
}

/* ---------------------------------------------------------
 * Section rhythm & typography contrast
 * ------------------------------------------------------- */
.section.catalog-section {
  padding: 64px 0;
}
.section.catalog-section + .section.catalog-section {
  padding-top: 56px;
}
.section-alt.catalog-section {
  background: #EEF1F6;
}

.catalog-section > .container > h2,
.catalog-section .section-head h2 {
  color: var(--color-navy);
  font-size: clamp(1.45rem, 1.25rem + 0.85vw, 2rem);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.catalog-section > .container > .card-muted,
.catalog-section .section-lead {
  color: var(--color-text-muted, rgba(10, 20, 40, 0.70));
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 62ch;
  margin-bottom: 0;
  font-weight: 500;
}

.catalog-section .grid {
  margin-top: 28px;
}

.eyebrow {
  display: inline-block;
  color: var(--color-teal);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  margin-bottom: 10px;
}

.text-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.text-list li {
  position: relative;
  padding-left: 22px;
  color: rgba(10, 20, 40, 0.84);
  font-size: 1rem;
  line-height: 1.6;
}
.text-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-teal);
}

/* ---------------------------------------------------------
 * Product cards — hairline, homepage language
 * ------------------------------------------------------- */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  background: var(--color-surface);
  border: 1px solid var(--hair, rgba(10, 20, 40, 0.12));
  border-radius: var(--radius-md);
  height: 100%;
  box-shadow: var(--card-shadow);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover), inset 3px 0 0 var(--color-teal);
  border-color: rgba(11, 148, 140, 0.42);
  background: linear-gradient(180deg, rgba(11, 148, 140, 0.08) 0%, var(--color-surface) 48%);
}
.product-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  font-weight: 600;
  margin: 0;
}
.product-card__title {
  font-size: 1.12rem;
  margin: 0;
  color: var(--color-navy);
  letter-spacing: -0.015em;
}
.product-card__description {
  color: var(--color-text-muted, rgba(10, 20, 40, 0.70));
  font-size: 0.94rem;
  line-height: 1.6;
  flex: 1;
  margin: 0;
}
.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.product-card__cta:hover { color: var(--color-teal); text-decoration: none; }
.product-card__cta svg { transition: transform 0.15s ease; }
.product-card__cta:hover svg { transform: translateX(3px); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: rgba(11, 148, 140, 0.1);
  color: #087A74;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ---------------------------------------------------------
 * Vertical hub cards (catalog index)
 * ------------------------------------------------------- */
a.card.vertical-card,
.vertical-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--hair, rgba(10, 20, 40, 0.12));
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}
a.card.vertical-card:hover,
.vertical-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover), inset 3px 0 0 var(--color-teal);
  border-color: rgba(11, 148, 140, 0.42);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(11, 148, 140, 0.08) 0%, var(--color-surface) 48%);
}
a.card.vertical-card h3,
.vertical-card h3 {
  color: var(--color-navy);
  font-size: 1.08rem;
  margin: 0 0 8px;
}
a.card.vertical-card .card-body,
.vertical-card .card-body {
  color: var(--color-text-muted, rgba(10, 20, 40, 0.70));
  font-size: 0.9rem;
  line-height: 1.55;
  flex: 1;
  margin: 0 0 12px;
}

.vertical-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(11, 148, 140, 0.1);
  color: #087A74;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 14px;
  border: 1px solid rgba(11, 148, 140, 0.18);
}

.catalog-stat {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted, rgba(10, 20, 40, 0.70));
}

.card-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-navy);
  font-weight: 600;
  margin-top: 10px;
  display: inline-block;
  letter-spacing: 0.02em;
}
.card-link::after { content: ' \2192'; }
a.card.vertical-card:hover .card-link { color: var(--color-teal); }

.card { display: flex; flex-direction: column; height: 100%; }
.card p.card-body { flex: 1; }
.card-muted { color: var(--color-text-muted, rgba(10, 20, 40, 0.70)); }

.flagship-pill {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(11, 148, 140, 0.12);
  color: #087A74;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  display: inline-block;
  font-weight: 600;
}

/* ---------------------------------------------------------
 * Feature cards on product detail
 * ------------------------------------------------------- */
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--hair, rgba(10, 20, 40, 0.12));
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--card-shadow);
  height: 100%;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover), inset 3px 0 0 var(--color-teal);
  border-color: rgba(11, 148, 140, 0.38);
  background: linear-gradient(180deg, rgba(11, 148, 140, 0.08) 0%, var(--color-surface) 48%);
}
.feature-card .catalog-stat {
  font-weight: 700;
  color: var(--color-teal);
  font-size: 0.85rem;
}
.feature-card h3 {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--color-navy);
}
.feature-card .card-muted {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.58;
}

/* ---------------------------------------------------------
 * Pricing table
 * ------------------------------------------------------- */
.pricing-table { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .pricing-table { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.pricing-table .pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px;
  background: var(--color-surface);
  border: 1px solid var(--hair, rgba(10, 20, 40, 0.12));
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}
.pricing-table .pricing-card--featured {
  border-color: rgba(11, 148, 140, 0.45);
  box-shadow: var(--card-shadow-hover);
}
.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--color-teal);
  color: var(--btn-primary-text, #FFFFFF);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pricing-card__name { margin-bottom: 0; color: var(--color-navy); }
.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-navy);
  margin: 0;
  font-weight: 700;
}
.pricing-card__price small {
  font-size: 0.85rem;
  color: var(--color-text-muted, rgba(10, 20, 40, 0.70));
  font-family: var(--font-sans);
  font-weight: 500;
}
.pricing-card__description {
  color: var(--color-text-muted, rgba(10, 20, 40, 0.70));
  margin-bottom: 0;
  font-size: 0.92rem;
}
.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(10, 20, 40, 0.84);
}
.pricing-card__features svg { flex-shrink: 0; margin-top: 3px; color: var(--color-teal); }
.pricing-card__cta { margin-top: auto; }

/* ---------------------------------------------------------
 * CTA block
 * ------------------------------------------------------- */
.cta-block {
  padding-block: 56px;
  margin-top: 0;
}
.cta-block--dark {
  background: linear-gradient(135deg, #0A1428 0%, #0D1730 100%);
  color: #fff;
  border-top: 1px solid rgba(247, 248, 250, 0.08);
}
.cta-block--dark h2 {
  color: #fff;
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.85rem);
  margin-bottom: 0;
}
.cta-block--dark .cta-block__copy p { color: rgba(247, 248, 250, 0.75); }
.cta-block--light { background: rgba(11, 148, 140, 0.08); }
.cta-block__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.cta-block__copy p {
  color: var(--color-text-muted, rgba(10, 20, 40, 0.70));
  margin-top: 8px;
  margin-bottom: 0;
  max-width: 52ch;
  line-height: 1.6;
}
.cta-block__actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (min-width: 768px) {
  .cta-block__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------------------------------------------------------
 * Direct-answer (default: light surfaces; dark bands override)
 * ------------------------------------------------------- */
.direct-answer {
  border-left: 4px solid var(--color-teal);
  background: var(--color-teal-10, rgba(11, 148, 140, 0.08));
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin-top: 24px;
  max-width: 68ch;
}
.direct-answer .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-teal);
  margin-bottom: 8px;
  font-weight: 600;
}
.direct-answer p {
  margin-bottom: 0;
  color: var(--color-text, rgba(10, 20, 40, 0.88));
  font-size: 1.02rem;
}
.section .direct-answer,
.section-alt .direct-answer {
  background: var(--color-surface);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--hair, rgba(10, 20, 40, 0.12));
  border-left: 4px solid var(--color-teal);
}
.section .direct-answer p,
.section-alt .direct-answer p { color: rgba(10, 20, 40, 0.88); }

/* ---------------------------------------------------------
 * Agent callout
 * ------------------------------------------------------- */
.agent-callout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: linear-gradient(120deg, #0A1428 0%, #142544 100%);
  color: rgba(247, 248, 250, 0.92);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(11, 148, 140, 0.28);
}
.agent-callout__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(11, 148, 140, 0.12);
  border: 1px solid rgba(11, 148, 140, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  color: var(--color-teal);
  font-size: 1.05rem;
  font-weight: 700;
}
.agent-callout h3 { color: #fff; margin-bottom: 8px; font-size: 1.15rem; }
.agent-callout p {
  color: rgba(247, 248, 250, 0.78);
  margin-bottom: 12px;
  max-width: 68ch;
  line-height: 1.6;
}
.agent-callout .agent-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-teal);
  font-weight: 600;
}
.agent-callout .agent-link:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .agent-callout { flex-direction: column; padding: 24px; }
}

/* ---------------------------------------------------------
 * Screenshot placeholders
 * ------------------------------------------------------- */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 900px) {
  .screenshot-grid { grid-template-columns: 1fr; }
}
.screenshot-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  border: 1px solid var(--hair, rgba(10, 20, 40, 0.12));
  background:
    linear-gradient(135deg, #EEF1F6 0%, #F8F9FB 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  color: var(--color-text-muted, rgba(10, 20, 40, 0.70));
}
.screenshot-placeholder .ph-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--hair, rgba(10, 20, 40, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  color: var(--color-slate);
}
.screenshot-placeholder .caption {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-navy);
}
.screenshot-placeholder small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
 * FAQ accordion
 * ------------------------------------------------------- */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--hair, rgba(10, 20, 40, 0.12)); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-navy);
  cursor: pointer;
}
.faq-question .faq-icon {
  font-family: var(--font-mono);
  color: var(--color-teal);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.is-open .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.is-open .faq-answer { max-height: 480px; }
.faq-answer p {
  padding-bottom: 18px;
  color: var(--color-text-muted, rgba(10, 20, 40, 0.70));
  margin-bottom: 0;
  line-height: 1.65;
}

/* ---------------------------------------------------------
 * Problem section body copy
 * ------------------------------------------------------- */
.catalog-problem-intro {
  max-width: 70ch;
  color: var(--color-text-muted, rgba(10, 20, 40, 0.70));
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 4px;
  font-weight: 500;
}

/* ---------------------------------------------------------
 * Hover enrichment (additive)
 * ------------------------------------------------------- */
.pricing-table .pricing-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pricing-table .pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(11, 148, 140, 0.38);
}
.pricing-table .pricing-card--featured:hover {
  box-shadow: var(--card-shadow-hover), 0 0 0 1px rgba(11, 148, 140, 0.2);
  transform: translateY(-3px);
}
.btn--secondary:hover {
  box-shadow: 0 4px 14px rgba(138, 104, 24, 0.12);
}
@media (prefers-reduced-motion: reduce) {
  .product-card:hover,
  .vertical-card:hover,
  a.card.vertical-card:hover,
  .feature-card:hover,
  .pricing-table .pricing-card:hover,
  .pricing-table .pricing-card--featured:hover {
    transform: none;
    background: var(--color-surface);
  }
}
