/* Shared visual language for product, workflow, company, contact, and pricing pages. */
.detail-hero {
  min-height: min(520px, calc(100vh - 8rem));
  display: grid;
  align-items: center;
  padding: 4.5rem 0;
  color: #f8fafc;
  background:
    linear-gradient(rgba(129, 140, 248, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.07) 1px, transparent 1px),
    #080b18;
  background-size: 40px 40px;
  border-bottom: 1px solid rgba(129, 140, 248, 0.24);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 78% 42%, rgba(79, 70, 229, 0.25), transparent 36%);
  pointer-events: none;
}

.detail-hero::after {
  display: none;
}

.detail-hero-inner {
  position: relative;
}

.detail-kicker {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0.45rem 0.65rem;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(165, 180, 252, 0.3);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.detail-hero h1 {
  max-width: 900px;
  margin: 1.15rem 0 1.2rem;
  color: #f8fafc;
  font-size: clamp(2.65rem, 5.5vw, 5.15rem);
  line-height: 0.99;
  overflow-wrap: anywhere;
}

.detail-hero h1::after {
  display: none;
}

.detail-lead {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.7;
}

.detail-hero .detail-actions {
  margin-top: 1.75rem;
}

.detail-hero .btn-ghost {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.24);
}

.detail-hero .btn-ghost:hover,
.detail-hero .btn-ghost:focus-visible {
  color: #c7d2fe;
  background: rgba(129, 140, 248, 0.08);
  border-color: #818cf8;
}

.detail-content {
  padding: 5rem 0;
}

.detail-section {
  grid-template-columns: minmax(210px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding: 3rem 0;
}

.detail-section:first-child {
  padding-top: 0;
}

.detail-section h2 {
  position: relative;
  padding-top: 0.8rem;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  line-height: 1.2;
}

.detail-section h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 2px;
  background: var(--accent);
}

.detail-copy {
  font-size: 1rem;
}

.detail-card,
.detail-example {
  border-radius: 7px;
  box-shadow: 0 16px 36px color-mix(in srgb, var(--bg) 76%, transparent);
}

.detail-card {
  position: relative;
  overflow: hidden;
}

.detail-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent);
}

.detail-example {
  padding: 1.5rem;
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
}

.detail-faq {
  padding-top: 3rem;
}

.detail-faq h2,
.detail-related h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.detail-faq details {
  padding: 1.15rem 0;
}

.detail-faq summary {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.detail-related {
  padding-bottom: 5rem;
}

.pricing-page {
  padding-top: 5rem;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(rgba(129, 140, 248, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.055) 1px, transparent 1px),
    color-mix(in srgb, var(--bg) 96%, #080b18);
  background-size: 40px 40px;
}

.pricing-page > .section-inner > h1 {
  max-width: 820px;
  margin-inline: auto;
  font-family: "Aptos Display", "Segoe UI Variable Display", sans-serif;
  font-size: clamp(2.65rem, 5vw, 4.6rem);
  line-height: 1;
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 900px) {
  .detail-hero {
    min-height: auto;
    padding: 3.5rem 0;
  }

  .detail-section {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  .detail-hero {
    padding: 2.75rem 0 3rem;
  }

  .detail-hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.3rem);
  }

  .detail-hero .detail-actions > * {
    width: 100%;
    justify-content: center;
  }

  .detail-content {
    padding: 3.5rem 0;
  }

  .detail-section {
    padding: 2.25rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-card,
  .detail-example {
    scroll-behavior: auto;
  }
}