/* Shared first-viewport contract for marketing, detail, pricing, and document pages. */
:root {
  --top-section-width: 1120px;
  --top-section-gutter: 1.5rem;
  --top-section-surface: #080b18;
  --top-section-text: #f8fafc;
  --top-section-muted: #cbd5e1;
  --top-section-accent: #a5b4fc;
}

.hero,
.use-cases-hero,
.detail-hero,
.pricing-masthead,
.document-masthead {
  position: relative;
  isolation: isolate;
  color: var(--top-section-text);
  background:
    linear-gradient(rgba(129, 140, 248, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.07) 1px, transparent 1px),
    var(--top-section-surface);
  background-size: 40px 40px;
  border-bottom: 1px solid rgba(129, 140, 248, 0.24);
}

.hero::before,
.use-cases-hero::before,
.detail-hero::before,
.pricing-masthead::before,
.document-masthead::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;
}

.hero-inner,
.use-cases-hero-inner,
.detail-hero-inner,
.pricing-masthead-inner,
.document-masthead-inner {
  width: min(calc(100% - (2 * var(--top-section-gutter))), var(--top-section-width));
  max-width: none;
  min-width: 0;
  margin-inline: auto;
}

.hero,
.use-cases-hero,
.detail-hero {
  align-items: start;
  padding-top: 4.5rem;
}

.hero {
  padding-inline: 0;
}

.hero-bg {
  display: none;
}

.hero-visual {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.hero-inner,
.use-cases-hero-inner,
.detail-hero-inner {
  position: relative;
  z-index: 1;
}

.hero .eyebrow,
.use-cases-eyebrow,
.detail-kicker,
.document-kicker {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0.45rem 0.65rem;
  color: var(--top-section-accent);
  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;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero-copy h1,
.use-cases-hero h1,
.detail-hero h1,
.pricing-masthead h1,
.document-masthead h1 {
  margin: 1.15rem 0 1.2rem;
  color: var(--top-section-text);
  font-family: "Aptos Display", "Segoe UI Variable Display", sans-serif;
  font-size: clamp(2.65rem, 5.5vw, 5.15rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 0.99;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-copy h1::after,
.detail-hero h1::after,
.document-masthead h1::after {
  display: none;
}

.use-cases-hero h1 {
  font-size: clamp(2.65rem, 5.25vw, 4.9rem);
}

.hero-sub,
.use-cases-hero-copy > p,
.detail-lead,
.pricing-masthead .section-sub,
.document-masthead .legal-updated,
.document-masthead .status-updated {
  color: var(--top-section-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-trust {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.hero-trust li,
.hero-note {
  color: #94a3b8;
}

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

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

.pricing-page {
  padding: 0 0 5rem;
  background: none;
  border-bottom: 0;
  overflow: visible;
}

.pricing-page::before {
  display: none;
}

.pricing-masthead {
  padding: 4.5rem 0 4rem;
}

.pricing-masthead h1 {
  max-width: 900px;
}

.pricing-masthead .eyebrow {
  margin-bottom: 0;
  color: var(--top-section-accent);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(165, 180, 252, 0.3);
  border-radius: 4px;
}

.pricing-masthead .section-sub {
  max-width: 760px;
  margin: 0;
  text-align: left;
}

.pricing-plans {
  padding-top: 0.5rem;
}

.legal-page {
  max-width: none;
  padding: 0 0 5rem;
}

.document-masthead {
  padding: 4.5rem 0 3.5rem;
}

.document-masthead h1 {
  max-width: 820px;
}

.document-masthead .legal-updated,
.document-masthead .status-updated {
  max-width: 760px;
  margin: 0;
}

.document-content {
  width: min(calc(100% - (2 * var(--top-section-gutter))), 760px);
  margin: 3rem auto 0;
}

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

  .pricing-masthead,
  .document-masthead {
    padding-top: 3.5rem;
  }
}

@media (max-width: 600px) {
  :root {
    --top-section-gutter: 1rem;
  }

  .hero,
  .use-cases-hero,
  .detail-hero {
    padding-top: 2.75rem;
  }

  .pricing-masthead,
  .document-masthead {
    padding: 2.75rem 0 3rem;
  }

  .detail-hero .detail-actions > * {
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy h1,
  .use-cases-hero h1,
  .detail-hero h1,
  .pricing-masthead h1,
  .document-masthead h1 {
    font-size: clamp(2.35rem, 13vw, 3.3rem);
  }
}

@media (max-width: 380px) {
  .hero-copy h1,
  .use-cases-hero h1,
  .detail-hero h1,
  .pricing-masthead h1,
  .document-masthead h1 {
    font-size: 2rem;
  }
}