/* Copia V2 commercial landing page components.
   Shared by migrated product/solution pages; base system lives in site-v2.css. */

.page-breadcrumb {
  border-bottom: 1px solid var(--copia-border-soft);
  background: #fff;
}

.page-breadcrumb__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  min-height: 44px;
  color: var(--copia-muted);
  font-size: .78rem;
}

.page-breadcrumb a {
  color: var(--copia-blue-700);
  text-decoration: none;
}

.page-breadcrumb span[aria-hidden="true"] {
  color: #9aabb8;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #d8e7f2;
  background:
    radial-gradient(circle at 90% 15%, rgba(101, 84, 164, .11), transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(37, 134, 207, .13), transparent 30%),
    linear-gradient(135deg, #f8fbfd 0%, #eef6fb 100%);
}

.landing-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: clamp(42px, 7vw, 88px);
  align-items: center;
  min-height: 560px;
  padding-block: 76px;
}

.landing-hero h1 {
  max-width: 860px;
}

.landing-hero .lead {
  max-width: 760px;
}

.landing-hero__panel {
  min-width: 0;
  padding: 30px;
  border: 1px solid rgba(24, 90, 145, .18);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 20px 50px rgba(16, 42, 67, .11);
}

.landing-hero__panel h2 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.landing-hero__panel .code-panel {
  margin-top: 16px;
}

.landing-chip-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.landing-chip-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  align-items: start;
  color: var(--copia-muted);
  font-size: .94rem;
}

.landing-chip-list svg {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 8px;
  color: var(--copia-blue-700);
  background: var(--copia-blue-100);
}

.landing-strip {
  border-bottom: 1px solid var(--copia-border);
  background: #fff;
}

.landing-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-strip__item {
  padding: 24px 22px;
  border-right: 1px solid var(--copia-border-soft);
}

.landing-strip__item:last-child {
  border-right: 0;
}

.landing-strip__item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--copia-ink);
}

.landing-strip__item span {
  color: var(--copia-muted);
  font-size: .86rem;
}

/* One card per CopiaFacts channel on the platform-level products hub.
   Each channel uses its matching globe; branded products also use a textmark. */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 30px 20px;
  border: 1px solid var(--copia-border);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  text-align: center;
  transition: box-shadow .15s ease, transform .15s ease;
}

.channel-card:hover,
.channel-card:focus-visible {
  box-shadow: var(--copia-shadow-sm);
  transform: translateY(-2px);
}

.channel-card__globe {
  width: 76px;
  height: 76px;
}

.channel-card__icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--copia-blue-700);
  background: var(--copia-blue-100);
}

.channel-card__icon svg {
  width: 34px;
  height: 34px;
}

.channel-card__mark {
  height: 20px;
  width: auto;
  margin-top: 2px;
}

.channel-card__name {
  margin-top: 2px;
  min-height: 20px;
  line-height: 20px;
  color: #c52931;
  font-weight: 800;
}

.channel-card p {
  margin: 0;
  color: var(--copia-muted);
  font-size: .88rem;
}

.channel-card .card__link {
  margin-top: auto;
  padding-top: 6px;
  color: var(--copia-blue-700);
}

.feature-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid--4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* Developer integration approaches read better as two landscape rows. */
.integration-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.integration-grid code {
  overflow-wrap: anywhere;
}

/* Grid items default to a content-based min-width, which lets something
   wide (e.g. a .code-panel with unwrapped code lines) force the whole
   grid wider than the viewport instead of scrolling internally. */
.feature-grid--3 > *,
.feature-grid--4 > * {
  min-width: 0;
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--copia-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,42,67,.04);
}

.feature-card__number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, var(--copia-blue-700), var(--copia-blue-500));
  font-weight: 800;
  white-space: nowrap;
}

/* For labels too long for the default square badge (e.g. "G.711"), widen
   into a pill instead of letting the text wrap or clip. */
.feature-card__number--wide {
  width: auto;
  min-width: 40px;
  padding: 0 14px;
  border-radius: 20px;
  font-size: .82rem;
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  margin-bottom: 18px;
}

.feature-card .card__link {
  margin-top: auto;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: process;
}

.process-step {
  position: relative;
  padding: 24px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dce7ef;
  counter-increment: process;
}

.process-step::before {
  content: counter(process);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #fff;
  background: var(--copia-blue-700);
  box-shadow: 0 6px 14px rgba(16, 42, 67, .22);
  font-size: 1.05rem;
  font-weight: 800;
}

.process-step h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.process-step p {
  margin: 0;
  font-size: .91rem;
}

.process-step p + p {
  margin-top: 10px;
}

/* Opt-in variant: use a product globe (lightened) as the step marker
   instead of a plain numbered circle. Scoped to .process-grid--globe so
   it doesn't change every process-grid on the site -- just the diagrams
   that explicitly ask for it. */
.process-grid--globe .process-step {
  padding-top: 40px;
}

.process-grid--globe .process-step::before {
  content: none;
}

.process-step__globe {
  position: absolute;
  top: -30px;
  left: 24px;
  width: 64px;
  height: 64px;
}

.process-step__globe img {
  display: block;
  width: 100%;
  height: 100%;
  /* Lightened vs. the same globe artwork used at full color elsewhere on
     the page (hero art, hub diagrams) so this reads as a quieter marker,
     not a competing focal illustration. */
  opacity: .38;
}

.process-step__globe::after {
  content: counter(process);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--copia-ink);
  font-size: 1.05rem;
  font-weight: 800;
}

/* Arrow connector between steps, centered in the grid gap. Only meaningful
   when every step is in a single row, so it's hidden once the grid wraps
   (see the 960px breakpoint below). */
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -13px;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--copia-blue-500);
  border-right: 3px solid var(--copia-blue-500);
  transform: translateY(-50%) rotate(45deg);
}

.process-grid--globe .process-step:not(:last-child)::after {
  top: 2px;
}

/* Badge marking a step that loops back on itself (e.g. retries) instead of
   just running once, layered over the step's top edge like a notification. */
.process-loop-badge {
  position: absolute;
  top: -13px;
  right: 20px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--copia-blue-500);
  box-shadow: 0 4px 10px rgba(16, 42, 67, .18);
}

.process-loop-badge svg {
  width: 15px;
  height: 15px;
}

.process-note {
  color: var(--copia-muted);
  font-size: .84rem;
}

.media-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 70px);
  align-items: center;
}

.media-split--reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.media-split__media img {
  width: 100%;
  border: 1px solid var(--copia-border);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(16,42,67,.09);
}

/* Hub-and-spoke diagram: the system in the center, connected to each
   recipient-data source it can pull from. Mirrors the accessible inline-SVG
   pattern already used for .broadcast-model-visual. */
.source-hub {
  padding: 24px;
  border: 1px solid var(--copia-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 42, 67, .09);
  color: var(--copia-blue-700);
}

.source-hub svg {
  display: block;
  width: 100%;
  height: auto;
}

.source-hub .hub-link {
  stroke: var(--copia-border);
  stroke-width: 2;
}

.media-split__media .source-hub__mark {
  display: block;
  width: auto;
  height: 22px;
  margin: 4px auto 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.source-hub .hub-node {
  fill: #fff;
  stroke: var(--copia-blue-100);
  stroke-width: 2;
}

/* Plain hub center for diagrams that don't have a product globe to place
   there (e.g. a network/protocol concept rather than a product). */
.source-hub .hub-core {
  fill: var(--copia-blue-700);
}

.source-hub .hub-core-icon {
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.source-hub .hub-node-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.data-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.data-source {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid #dce7ef;
  border-radius: 10px;
  background: #fff;
  color: var(--copia-ink);
  font-size: .9rem;
  font-weight: 700;
}

.data-source svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--copia-blue-600);
}

/* The vendor/data-source grid that sits beside a hub diagram in a
   media-split needs less top margin than the default section spacing. */
.media-split__media .data-source-grid {
  margin-top: 16px;
}

/* Vendor/partner wordmarks shown as plain floating logos -- no card,
   border or background -- kept in their original brand colors. */
.partner-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 20px;
  align-items: center;
  margin-top: 20px;
}

.media-split__media .partner-logos img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 30px;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.compliance-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--copia-blue-500);
  border-radius: 8px;
  color: var(--copia-muted);
  background: #f4f9fc;
  font-size: .9rem;
}

.compliance-note strong {
  color: var(--copia-ink);
}

.landing-faq {
  max-width: 900px;
  margin-inline: auto;
  border-top: 1px solid var(--copia-border);
}

.landing-faq details {
  border-bottom: 1px solid var(--copia-border);
}

.landing-faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 20px 46px 20px 0;
  color: var(--copia-ink);
  font-weight: 750;
}

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

.landing-faq summary::after {
  content: "+";
  position: absolute;
  top: 15px;
  right: 4px;
  color: var(--copia-blue-700);
  font-size: 1.5rem;
  font-weight: 400;
}

.landing-faq details[open] summary::after {
  content: "–";
}

.landing-faq details p {
  max-width: 790px;
  margin: 0;
  padding: 0 0 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Deliberately unlike .feature-card/.process-step above it on the page:
   no white bordered box, tinted background instead, and the whole tile is
   the link -- a "these lead elsewhere" pattern rather than "more detail
   about this topic". */
.related-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--copia-blue-050);
  color: inherit;
  text-decoration: none;
  transition: background .15s ease;
}

.related-card:hover,
.related-card:focus-visible {
  background: var(--copia-blue-100);
}

.related-card:focus-visible {
  outline: 3px solid var(--copia-blue-500);
  outline-offset: 2px;
}

/* Icon badge identifying which page/product a related-card links to --
   kept consistent so the same page always gets the same icon everywhere
   it's cross-linked. */
.related-card__icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--copia-blue-700);
  background: #fff;
}

.related-card__icon svg {
  width: 20px;
  height: 20px;
}

.related-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.related-card__body strong {
  display: block;
  margin-bottom: 4px;
  color: var(--copia-ink);
  font-size: 1.02rem;
}

.related-card__body span {
  display: block;
  color: var(--copia-muted);
  font-size: .86rem;
  line-height: 1.45;
}

.related-card__arrow {
  flex: 0 0 auto;
  margin-top: 8px;
  width: 18px;
  height: 18px;
  color: var(--copia-blue-600);
  transition: transform .15s ease;
}

.related-card:hover .related-card__arrow {
  transform: translateX(3px);
}

.landing-cta {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.landing-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* Compact in-page contact form, reusing the .callout/.form-demo pattern
   from contact.html but trimmed to the fields a quick inquiry needs. */
.contact-panel {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.contact-panel .form-demo {
  margin-top: 22px;
  text-align: left;
}

.contact-panel p {
  color: var(--copia-muted);
}

/* Long-form article content (e.g. an archival guide) -- a comfortable
   reading measure instead of the wider marketing-page container. */
.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-body h2 {
  margin-top: 2.4em;
  margin-bottom: .7em;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  margin-bottom: 1.15em;
}

.article-body figure {
  margin: 2em 0;
  text-align: center;
}

.article-body figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--copia-border);
  border-radius: var(--copia-radius);
  box-shadow: var(--copia-shadow-sm);
}

.article-body figcaption {
  margin-top: 10px;
  color: var(--copia-muted);
  font-size: .85rem;
}

.article-body .pull-question {
  margin: 1.7em 0 .5em;
  font-weight: 800;
}

.article-body .code-panel {
  margin: 1.6em 0;
}

@media (max-width: 960px) {
  .landing-hero__grid,
  .media-split,
  .media-split--reverse {
    grid-template-columns: 1fr;
  }

  .landing-hero__grid {
    min-height: 0;
  }

  .landing-hero__panel {
    max-width: 700px;
  }

  .landing-strip__grid,
  .process-grid,
  .channel-grid,
  .feature-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-step::after {
    display: none;
  }

  .landing-strip__item:nth-child(2) {
    border-right: 0;
  }

  .landing-strip__item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--copia-border-soft);
  }

  .landing-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .landing-hero__grid {
    padding-block: 58px;
  }

  .feature-grid--3,
  .feature-grid--4,
  .data-source-grid,
  .related-grid,
  .landing-strip__grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .partner-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Once stacked into one column, turn the corner-chevron connector into a
     downward one flowing with the content, so the sequence still reads as
     a flow instead of a stack of unrelated boxes. */
  .process-step:not(:last-child)::after {
    position: static;
    display: block;
    top: auto;
    right: auto;
    width: 12px;
    height: 12px;
    margin: 16px auto 0;
    transform: rotate(135deg);
  }

  .landing-strip__item,
  .landing-strip__item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--copia-border-soft);
  }

  .landing-strip__item:last-child {
    border-bottom: 0;
  }

  .landing-cta__actions,
  .landing-cta__actions .btn {
    width: 100%;
  }
}