/* ============================================================
   SIMSURVEYS PRODUCT PAGE STYLES
   Shared layout for Platform, Oracle, Oracle Voices pages
   ============================================================ */

/* ── PRODUCT HERO ── */
.product-hero {
  padding: calc(var(--header-height) + 80px) 0 80px;
  background: var(--white);
}

.product-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.product-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.product-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

.product-hero__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-md);
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 48ch;
}

.product-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero visual (right column) */
.product-hero__visual {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.product-hero__visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--product-accent, var(--accent));
}

/* ── PRODUCT STATS ── */
.product-stats {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.product-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.product-stat__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1;
  margin-bottom: 8px;
}

.product-stat__label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.4;
}

/* ── FEATURES GRID ── */
.product-features {
  padding: 100px 0;
  background: var(--off-white);
}

.product-features__header {
  text-align: center;
  margin-bottom: 56px;
}

.product-features__header .section-desc {
  margin: 12px auto 0;
}

.product-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--product-accent, var(--accent));
}

.feature-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.6;
}

/* ── MODES / CAPABILITIES (2-col sections) ── */
.product-detail {
  padding: 100px 0;
  background: var(--white);
}

.product-detail--alt {
  background: var(--off-white);
}

.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.product-detail__grid--reverse {
  direction: rtl;
}

.product-detail__grid--reverse > * {
  direction: ltr;
}

.product-detail__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}

.product-detail__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-detail__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-detail__list li {
  font-size: var(--text-sm);
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.product-detail__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--product-accent, var(--accent));
  flex-shrink: 0;
  margin-top: 7px;
}

/* Detail visual panel */
.product-detail__panel {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.product-detail--alt .product-detail__panel {
  background: var(--white);
}

/* ── DOMAIN MODELS ── */
.domain-models {
  padding: 100px 0;
  background: var(--off-white);
}

.domain-models__header {
  text-align: center;
  margin-bottom: 56px;
}

.domain-models__header .section-desc {
  margin: 12px auto 0;
}

.domain-models__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.domain-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.domain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.domain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--product-accent, var(--accent));
}

.domain-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--ink);
  margin-bottom: 8px;
}

.domain-card__desc {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.domain-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.domain-card__tag {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  font-size: 0.7rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ── CODE BLOCK (for Oracle/API pages) ── */
.product-code {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  overflow-x: auto;
  color: #94a3b8;
  white-space: pre;
  margin: 0;
}

.product-code .comment { color: #8b9bb5; font-style: italic; }
.product-code .key { color: #a78bfa; }
.product-code .string { color: #86efac; }
.product-code .number { color: #fbbf24; }
.product-code .brace { color: #e2e8f0; }
.product-code .method { color: #67e8f9; }
.product-code .param { color: #fca5a5; }

/* ── PRODUCT CTA ── */
.product-cta {
  padding: 100px 0;
  text-align: center;
  background: var(--white);
}

.product-cta__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--ink);
  margin-bottom: 16px;
}

.product-cta__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-md);
  color: var(--ink-2);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.product-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── PRICING TEASER ── */
.pricing-teaser {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--accent-bg) 0%, var(--white) 100%);
  text-align: center;
}

.pricing-teaser__price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--accent);
  margin-bottom: 8px;
}

.pricing-teaser__label {
  font-size: var(--text-md);
  color: var(--ink-2);
  margin-bottom: 8px;
}

.pricing-teaser__note {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 32px;
}

/* ── INTEGRATION PATTERNS (Oracle-specific) ── */
.integrations {
  padding: 100px 0;
  background: var(--white);
}

.integrations__header {
  text-align: center;
  margin-bottom: 56px;
}

.integrations__header .section-desc {
  margin: 12px auto 0;
}

.integrations__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.integration-card {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.integration-card__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--product-accent, var(--accent));
  margin-bottom: 12px;
  line-height: 1;
}

.integration-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--ink);
  margin-bottom: 8px;
}

.integration-card__desc {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.6;
}

/* ── WORKFLOW STEPS (Oracle Voices-specific) ── */
.workflow {
  padding: 100px 0;
  background: var(--off-white);
}

.workflow__header {
  text-align: center;
  margin-bottom: 56px;
}

.workflow__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.workflow-step {
  text-align: center;
  position: relative;
}

.workflow-step__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--product-accent, var(--accent));
  margin-bottom: 16px;
  line-height: 1;
}

.workflow-step__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--ink);
  margin-bottom: 8px;
}

.workflow-step__desc {
  font-size: var(--text-xs);
  color: var(--ink-2);
  line-height: 1.5;
}

/* ── COMPARISON TABLE ── */
.comparison {
  padding: 100px 0;
  background: var(--white);
}

.comparison__header {
  text-align: center;
  margin-bottom: 56px;
}

.comparison__header .section-desc {
  margin: 12px auto 0;
}

.comparison-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.comparison-table th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--text-xs);
  padding: 12px 16px;
  border-bottom: 2px solid var(--line);
}

.comparison-table td {
  padding: 14px 16px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

.comparison-table td:first-child {
  font-weight: 500;
  color: var(--ink);
}

.comparison-table .highlight-col {
  background: var(--accent-bg);
  font-weight: 600;
  color: var(--accent);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .product-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-features__grid,
  .domain-models__grid,
  .integrations__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-detail__grid,
  .product-detail__grid--reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .product-stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .workflow__steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .product-hero {
    padding: calc(var(--header-height) + 48px) 0 48px;
  }

  .product-features,
  .product-detail,
  .domain-models,
  .integrations,
  .workflow,
  .comparison {
    padding: 64px 0;
  }

  .product-stats__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .workflow__steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-cta {
    padding: 64px 0;
  }

  .comparison-table {
    font-size: var(--text-xs);
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 8px;
  }
}
