/* =========================
   PRODUCT DETAIL PAGE
   Product-specific styles only.
   Packs + trial/free-analysis are handled by index.css.
   ========================= */

.product-page {
  --oa-primary: #6c63ff;
  --oa-primary-dark: #574fd6;
  --oa-text: #1e2d3a;
  --oa-muted: #5b6672;
  --oa-muted-2: #64748b;
  --oa-soft: rgba(108, 99, 255, 0.08);
  --oa-soft-border: rgba(108, 99, 255, 0.16);
  --oa-gradient: linear-gradient(to right, #74ebd5, #9face6);
  --oa-shadow: 0 10px 30px rgba(30, 45, 58, 0.08), 0 2px 8px rgba(30, 45, 58, 0.04);
  --oa-shadow-strong: 0 18px 45px rgba(30, 45, 58, 0.14), 0 6px 18px rgba(108, 99, 255, 0.10);

  overflow-x: hidden;
  background: #ffffff;
  color: var(--oa-text);
}

.product-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   HERO
   ========================= */

.product-hero {
  background: var(--oa-gradient);
  padding: 64px 20px 80px;
  color: var(--oa-text);
  text-align: center;
}

.product-hero__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.product-hero__copy {
  max-width: 860px;
  margin: 0 auto;
}

.product-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: var(--oa-primary);
  color: #ffffff;
  border: 1px solid var(--oa-primary);
  border-radius: 999px;

  padding: 8px 16px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;

  box-shadow: 0 6px 18px rgba(108, 99, 255, 0.22);
}

.product-badge {
  display: inline-flex;
  align-items: center;

  margin-left: 8px;
  padding: 8px 16px;

  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--oa-text);
  border: 1px solid rgba(30, 45, 58, 0.12);

  font-size: 13px;
  font-weight: 700;
  line-height: 1;

  box-shadow: 0 6px 16px rgba(30, 45, 58, 0.05);
}

.product-hero h1 {
  max-width: 900px;
  margin: 1.5rem auto 20px;

  font-size: 3rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;

  color: var(--oa-text);
}

.product-hero__subtitle {
  max-width: 780px;
  margin: 0 auto 1rem;

  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;

  color: #243746;
}

.product-hero__audience {
  max-width: 760px;
  margin: 1rem auto 0;

  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.65;

  color: #334155;
}

.product-hero__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 14px 28px;

  border: none;
  border-radius: 12px;

  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;

  cursor: pointer;

  transition:
    background 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease,
    color 0.2s ease;
}

.product-btn--primary {
  background: var(--oa-primary);
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(108, 99, 255, 0.22);
}

.product-btn--primary:hover {
  background: var(--oa-primary-dark);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(108, 99, 255, 0.28);
}

.product-btn--secondary {
  background: rgba(255, 255, 255, 0.85);
  color: #2f3e4d !important;
  border: 1px solid rgba(30, 45, 58, 0.12);
  box-shadow: 0 6px 16px rgba(30, 45, 58, 0.05);
}

.product-btn--secondary:hover {
  background: #ffffff;
  color: var(--oa-text) !important;
  border-color: rgba(30, 45, 58, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30, 45, 58, 0.08);
}

.product-btn--light {
  background: #ffffff;
  color: var(--oa-primary-dark) !important;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.18);
}

.product-btn--light:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--oa-primary-dark) !important;
  transform: translateY(-2px);
}

.product-trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;

  margin-top: 1.5rem;
}

.product-trust-pills span {
  display: inline-flex;
  align-items: center;

  padding: 8px 14px;

  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #5b6672;
  border: 1px solid rgba(30, 45, 58, 0.10);

  font-size: 13px;
  font-weight: 600;
}

.product-hero__visual {
  max-width: 700px;
  margin: 0 auto;
  padding: 8px;

  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(30, 45, 58, 0.10);
  border-radius: 22px;

  box-shadow:
    0 18px 45px rgba(30, 45, 58, 0.18),
    0 4px 14px rgba(30, 45, 58, 0.08);

  overflow: hidden;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-hero__visual:hover {
  transform: translateY(-3px);
  box-shadow:
    0 24px 55px rgba(30, 45, 58, 0.22),
    0 6px 18px rgba(30, 45, 58, 0.10);
}

.product-hero__visual img {
  display: block;
  width: 100%;
  border-radius: 16px;
}

/* =========================
   GENERIC PRODUCT SECTIONS
   ========================= */

.product-section {
  padding: 40px 20px;
}

.product-section--white {
  background: #ffffff;
}

.product-section__intro {
  max-width: 780px;
  margin: 0 auto 30px;
  text-align: center;
}

.product-section__intro h2,
.product-use-cases h2,
.product-clinic-block h2,
.product-final-cta h2 {
  margin: 14px 0 12px;

  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;

  color: var(--oa-text);
}

.product-section__intro p,
.product-use-cases p,
.product-clinic-block p,
.product-final-cta p {
  margin: 0 auto;

  font-size: 16px;
  line-height: 1.7;

  color: var(--oa-muted);
}

/* =========================
   WORKFLOW + FEATURE CARDS
   ========================= */

.product-card-grid {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  gap: 18px;
}

.product-card-grid--steps {
  grid-template-columns: repeat(3, 1fr);
}

.product-card-grid--features {
  grid-template-columns: repeat(4, 1fr);
}

.product-step-card,
.product-feature-card,
.product-clinic-block__main,
.product-clinic-block__side,
.product-faq {
  position: relative;

  background: #ffffff;
  border: 1px solid rgba(108, 99, 255, 0.12);
  border-radius: 18px;

  box-shadow: var(--oa-shadow);
}

.product-step-card,
.product-feature-card {
  padding: 24px 22px;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.product-step-card:hover,
.product-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--oa-shadow-strong);
}

.product-step-card__number {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: var(--oa-primary);
  color: #ffffff;

  font-size: 15px;
  font-weight: 800;

  box-shadow: 0 8px 18px rgba(108, 99, 255, 0.22);
}

.product-step-card h3,
.product-feature-card h3 {
  margin: 0 0 10px;

  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;

  color: var(--oa-text);
}

.product-step-card p,
.product-feature-card p {
  margin: 0;

  font-size: 15px;
  line-height: 1.7;

  color: #334155;
}

/* Gradient border utility */
.product-step-card::before,
.product-feature-card::before,
.product-clinic-block__main::before,
.product-clinic-block__side::before
 {
  content: "";
  position: absolute;
  inset: -2px;

  border-radius: 20px;
  background: var(--oa-gradient);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 0;
}

@supports (mask-composite: exclude) or (-webkit-mask-composite: xor) {
  .product-step-card::before,
  .product-feature-card::before,
  .product-clinic-block__main::before,
  .product-clinic-block__side::before {
    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    padding: 2px;
  }
}

.product-step-card:hover::before,
.product-feature-card:hover::before {
  opacity: 1;
}

.product-step-card > *,
.product-feature-card > *,
.product-clinic-block__main > *,
.product-clinic-block__side > * {
  position: relative;
  z-index: 1;
}

/* =========================
   USE CASES
   ========================= */

.product-use-cases {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: center;

  padding: 32px 24px;

  border-radius: 18px;
  background: var(--oa-soft);
}

.product-use-cases__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-use-case {
  padding: 14px 16px;

  background: #ffffff;
  color: #334155;

  border: 1px solid rgba(108, 99, 255, 0.12);
  border-radius: 14px;

  font-size: 15px;
  font-weight: 600;

  box-shadow: 0 8px 20px rgba(30, 45, 58, 0.05);
}

.product-use-case span {
  margin-right: 6px;
  color: var(--oa-primary);
  font-weight: 800;
}

/* =========================
   FULL CLINIC PLATFORM
   ========================= */

.product-clinic-block {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}

.product-clinic-block__main,
.product-clinic-block__side {
  padding: 28px 26px;
}

.product-clinic-block__main::before,
.product-clinic-block__side::before {
  opacity: 1;
}

.product-platform-modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;

  margin: 24px 0;
}

.product-platform-modules div {
  padding: 16px;

  border-radius: 14px;
  background: var(--oa-soft);
}

.product-platform-modules strong {
  display: block;
  margin-bottom: 6px;

  color: var(--oa-text);

  font-size: 15px;
  font-weight: 700;
}

.product-platform-modules span {
  display: block;

  color: var(--oa-muted);

  font-size: 14px;
  line-height: 1.55;
}

.product-clinic-block__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-clinic-block__side h3 {
  margin: 0 0 12px;

  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;

  color: var(--oa-text);
}

.product-clinic-block__side ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.product-clinic-block__side li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;

  padding: 0.65rem 0;

  border-bottom: 1px solid rgba(30, 45, 58, 0.08);

  color: #334155;

  font-size: 0.95rem;
  line-height: 1.45;
}

.product-clinic-block__side li::before {
  content: "✓";
  color: var(--oa-primary);
  font-weight: 800;
  flex-shrink: 0;
}

.product-note {
  font-size: 0.7rem !important;
  margin-top: 1rem !important;
  margin-left: 0.2rem !important;
}
/* =========================
   FAQ
   ========================= */

.product-faq-list {
  max-width: 960px;
  margin: 0 auto;
}

.product-faq {
  margin-bottom: 1rem;
  overflow: hidden;
}

.product-faq summary {
  padding: 20px;

  cursor: pointer;
  list-style: none;

  background: #f9f9f9;
  color: var(--oa-text);

  font-size: 16px;
  font-weight: 600;
}

.product-faq summary::-webkit-details-marker {
  display: none;
}

.product-faq summary::after {
  content: "▶";
  float: right;

  color: var(--oa-primary);

  transition: transform 0.3s ease;
}

.product-faq[open] summary::after {
  transform: rotate(90deg);
}

.product-faq p {
  margin: 0;
  padding: 15px 20px;

  border-top: 1px solid #eeeeee;

  color: #333333;

  font-size: 14px;
  line-height: 1.6;
}

/* =========================
   FINAL CTA
   ========================= */

.product-final-cta {
  padding: 40px 20px 60px;
}

.product-final-cta__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 28px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  border-radius: 18px;
  background: var(--oa-gradient);

  box-shadow:
    0 18px 45px rgba(30, 45, 58, 0.14),
    0 6px 18px rgba(108, 99, 255, 0.10);
}

.product-final-cta__inner .product-eyebrow {
  background: var(--oa-primary);
  color: #ffffff;
}

.product-final-cta__inner h2 {
  margin-bottom: 10px;
}

.product-final-cta__inner p {
  color: #334155;
}

/* =========================
   SMALL PRODUCT-PAGE ADJUSTMENTS
   For homepage/index.css sections reused here.
   Do not redefine full packs/trial styles.
   ========================= */

.product-page .trial-how {
  scroll-margin-top: 20px;
}

.product-page #packs {
  scroll-margin-top: 20px;
}

/* Optional spacing when homepage pack block appears on product pages */
.product-page .packs {
  margin-top: 3rem;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (min-width: 992px) {
  .product-hero {
    padding-top: 80px;
  }

  .product-hero__grid {
    grid-template-columns: 1fr 0.9fr;
    text-align: left;
  }

  .product-hero__copy {
    margin: 0;
    text-align: left;
  }

  .product-hero h1,
  .product-hero__subtitle,
  .product-hero__audience {
    margin-left: 0;
    margin-right: 0;
  }

  .product-hero__actions,
  .product-trust-pills {
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  .product-card-grid--features {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card-grid--steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .product-hero {
    padding-top: 110px;
  }

  .product-use-cases,
  .product-clinic-block {
    grid-template-columns: 1fr;
  }

  .product-section__intro h2,
  .product-use-cases h2,
  .product-clinic-block h2,
  .product-final-cta h2 {
    font-size: 28px;
  }

  .product-platform-modules {
    grid-template-columns: 1fr 1fr;
  }

  .product-final-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .product-hero {
    padding: 110px 16px 60px;
  }

  .product-hero h1 {
    font-size: 2rem;
    line-height: 1.15;
  }

  .product-hero__subtitle {
    font-size: 0.95rem;
  }

  .product-badge {
    margin-left: 0;
    margin-top: 8px;
  }

  .product-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-btn {
    width: 100%;
  }

  .product-section {
    padding: 32px 16px;
  }

  .product-section__intro h2,
  .product-use-cases h2,
  .product-clinic-block h2,
  .product-final-cta h2 {
    font-size: 24px;
  }

  .product-use-cases {
    padding: 24px 16px;
    border-radius: 18px;
  }

  .product-use-cases__list,
  .product-card-grid--features,
  .product-platform-modules {
    grid-template-columns: 1fr;
  }

  .product-clinic-block__main,
  .product-clinic-block__side,
  .product-testimonial {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .product-final-cta__inner {
    padding: 24px 18px;
    border-radius: 18px;
  }
}

@media (hover: none) {
  .product-step-card:hover,
  .product-feature-card:hover,
  .product-hero__visual:hover {
    transform: none;
  }
}