/* ==========================================================================
   product.css — product page sections (hero, feature blocks, numbered
   summary list, CTA). Reuses feature-row / accordion / card from global CSS.
   ========================================================================== */

/* ---- Product hero --------------------------------------------------------- */
.product-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(55% 55% at 15% 0%, rgba(91,52,240,0.10), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--color-bg-alt) 100%);
}
.product-hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: center;
}
.product-hero h1 { font-size: var(--fs-hero); margin-top: var(--space-4); }
.product-hero .lead { margin-top: var(--space-4); }
.product-hero__cta { margin-top: var(--space-6); display: flex; gap: var(--space-4); flex-wrap: wrap; }
.product-hero__media { padding: var(--space-3); }
.product-hero__media img { width: 100%; border-radius: var(--radius-md); }
@media (max-width: 860px) {
  .product-hero__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .product-hero__media { order: -1; }
}

/* ---- Numbered summary list ------------------------------------------------ */
.summary-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-top: var(--space-8); counter-reset: feat; }
.summary-list li {
  counter-increment: feat;
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start;
  padding: var(--space-4); border-radius: var(--radius-md); background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.summary-list li::before {
  content: counter(feat, decimal-leading-zero);
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff; font-weight: var(--fw-bold); font-size: 0.9rem;
}
.summary-list li strong { display: block; color: var(--color-primary); }
.summary-list li span { color: var(--color-text-muted); font-size: var(--fs-small); }
@media (max-width: 640px) { .summary-list { grid-template-columns: 1fr; } }

/* ---- Breadcrumb ----------------------------------------------------------- */
.breadcrumb { font-size: var(--fs-small); color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }

/* ==========================================================================
   Product page — conversion sections (injected by scripts/upgrade_products.php)
   Shares the visual language of the /alternatives pages: gradient rails,
   numbered steps, tick/cross tables, glass cards, reveal-on-scroll.
   ========================================================================== */

.p-head { max-width: 720px; margin: 0 auto var(--space-8); text-align: center; }
.p-head h2 { margin-top: var(--space-2); }
.p-head .lead { margin-top: var(--space-3); }
.section-title { text-align: center; margin-bottom: var(--space-8); }
.btn--sm { padding: 0.55rem 1rem; font-size: var(--fs-small); gap: 0.4rem; }
.cta-band__actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.cta-band__actions .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.cta-band__actions .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---- 1. How it works: 3 numbered steps on a rail -------------------------- */
.p-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
@media (max-width: 900px) { .p-steps { grid-template-columns: 1fr; } }
.p-steps li { position: relative; padding-top: var(--space-6); }
.p-steps li::before {
  content: "";
  position: absolute;
  top: 22px; left: 46px; right: -24px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), rgba(91, 52, 240, 0.12));
}
.p-steps li:last-child::before { display: none; }
@media (max-width: 900px) { .p-steps li::before { display: none; } }
.p-steps__n {
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-accent);
  color: var(--color-primary);
  font-weight: var(--fw-bold);
}
.p-steps li h3 { margin-top: var(--space-6); font-size: 1.1rem; margin-bottom: var(--space-2); }
.p-steps li p { color: var(--color-text-muted); line-height: var(--lh-body); }

/* ---- 2. Use cases --------------------------------------------------------- */
.p-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 900px) { .p-cases { grid-template-columns: 1fr; } }
.p-case {
  position: relative;
  padding: var(--space-6);
  padding-top: var(--space-8);
  border-radius: var(--radius-lg);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.p-case:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.p-case__icon {
  position: absolute;
  top: calc(-1 * var(--space-4));
  left: var(--space-6);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: 0 8px 20px rgba(91, 52, 240, 0.3);
}
.p-case__icon svg { width: 22px; height: 22px; }
.p-case h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.p-case p { color: var(--color-text-muted); font-size: var(--fs-small); line-height: var(--lh-body); }

/* ---- 3. Outcome metrics --------------------------------------------------- */
.p-outcomes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 900px) { .p-outcomes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .p-outcomes { grid-template-columns: 1fr; } }
.p-outcome {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--dur-base) var(--ease-out);
}
.p-outcome:hover { transform: translateY(-4px); }
.p-outcome strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.p-outcome span { display: block; font-size: var(--fs-small); color: var(--color-text-muted); margin-top: var(--space-2); }

/* ---- 4. Before / after table ---------------------------------------------
   MOVED to components.css on 2026-08-14. pricing.html uses .p-table too and
   does NOT load this stylesheet, so its comparison table rendered with no
   borders, padding or header — the "scattered, unformatted" report. Both
   pages load components.css, so one definition now serves both.
   -------------------------------------------------------------------------- */

/* ---- 5. Related free tools ------------------------------------------------ */
.p-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 900px) { .p-tools { grid-template-columns: 1fr; } }
.p-tool {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: #fff;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.p-tool:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-accent); }
.p-tool__tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-3);
}
.p-tool strong { font-size: 1rem; margin-bottom: var(--space-2); }
.p-tool span { font-size: var(--fs-small); color: var(--color-text-muted); line-height: var(--lh-body); flex: 1 1 auto; }
.p-tool em { font-style: normal; margin-top: var(--space-4); font-weight: var(--fw-semibold); color: var(--color-accent); font-size: var(--fs-small); }

/* ---- 6. Quote ------------------------------------------------------------- */
.p-quote {
  max-width: 820px;
  margin-inline: auto;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  text-align: center;
}
.p-quote blockquote { font-size: 1.35rem; line-height: 1.55; color: var(--color-text); }
.p-quote figcaption { margin-top: var(--space-5); }
.p-quote figcaption strong { display: block; color: var(--color-primary); }
.p-quote figcaption span { font-size: var(--fs-small); color: var(--color-text-muted); }

/* ---- 7. Integrations ------------------------------------------------------ */
.p-integrations { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.p-chip {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  transition: all var(--dur-fast) var(--ease-out);
}
.p-chip:hover { border-color: var(--color-accent); color: var(--color-primary); transform: translateY(-2px); }

/* The chip icon. Added when the integration strip got glyphs: a row of bare
   words read as a list of things we had failed to finish. These are icons for
   the KIND of integration, not brand marks -- see chip_icon() in
   scripts/upgrade_products.php for why. */
.p-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding-left: 0.85rem;
}
.p-chip__ic {
  width: 16px; height: 16px; flex: 0 0 auto;
  color: var(--color-accent);
  transition: color var(--dur-fast) var(--ease-out);
}
.p-chip:hover .p-chip__ic { color: var(--color-primary); }
