.tap3-page {
  --tap3-border: #c9d7e5;
  --tap3-teal: #168a8f;
  --tap3-blue: #275f97;
  --tap3-caption: #4d5e70;
  --tap3-shadow: 0 18px 44px rgba(10, 31, 60, .08);
}

.tap3-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.tap3-hero {
  padding-bottom: clamp(72px, 8vw, 112px);
}

.tap3-hero::after {
  z-index: 0;
  pointer-events: none;
}

.tap3-hero .container {
  position: relative;
  z-index: 1;
}

.tap3-hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, .82fr) minmax(500px, 1.18fr);
  gap: clamp(48px, 7vw, 92px);
}

.tap3-hero-copy {
  min-width: 0;
  max-width: 650px;
}

.tap3-hero-copy h1 {
  font-size: clamp(3.2rem, 6vw, 5.5rem);
}

.tap3-kicker {
  margin: 14px 0 18px;
  color: var(--tap3-teal);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 800;
}

.tap3-hero-copy .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.tap3-figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--tap3-border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--tap3-shadow);
}

.tap3-flow-map {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background:
    linear-gradient(rgba(39, 95, 151, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 95, 151, .045) 1px, transparent 1px),
    var(--white);
  background-size: 32px 32px;
}

.tap3-flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #9ab6ce;
  stroke-linecap: round;
  stroke-width: 4;
}

.tap3-flow-source,
.tap3-flow-output,
.tap3-flow-core {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
}

.tap3-flow-source,
.tap3-flow-output {
  width: 164px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--tap3-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .97);
}

.tap3-flow-source strong,
.tap3-flow-output strong {
  color: var(--navy-950);
  font-size: 1.15rem;
}

.tap3-flow-source span,
.tap3-flow-output span {
  color: var(--muted);
  font-size: .76rem;
}

.tap3-flow-core {
  top: 154px;
  left: 50%;
  width: 156px;
  height: 162px;
  transform: translateX(-50%);
  border-radius: 28px;
  color: var(--white);
  background: var(--tap3-teal);
}

.tap3-flow-core span,
.tap3-flow-core small {
  color: rgba(255, 255, 255, .86);
}

.tap3-flow-core span {
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tap3-flow-core strong {
  color: var(--white);
  font-size: 1.35rem;
}

.tap3-flow-core small {
  font-size: .78rem;
}

.tap3-flow-tap { top: 69px; left: 26px; }
.tap3-flow-rap { top: 189px; left: 26px; }
.tap3-flow-nrtde { top: 309px; left: 26px; }
.tap3-flow-ber { top: 69px; right: 26px; }
.tap3-flow-json { top: 189px; right: 26px; }
.tap3-flow-xml { top: 309px; right: 26px; }

.tap3-figure figcaption {
  min-height: 68px;
  padding: 18px 22px;
  border-top: 1px solid var(--tap3-border);
  color: var(--tap3-caption);
  font-size: .92rem;
  line-height: 1.55;
}

.tap3-overview-grid,
.tap3-formats-grid,
.tap3-languages-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, .88fr) minmax(500px, 1.12fr);
  gap: clamp(52px, 8vw, 108px);
}

.tap3-overview-copy,
.tap3-formats-grid > div:first-child,
.tap3-languages-grid > div:first-child {
  max-width: 640px;
}

.tap3-overview-copy > p:last-child,
.tap3-format-note {
  color: var(--muted);
}

.tap3-capability-grid,
.tap3-language-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tap3-capability-grid article,
.tap3-language-list article {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--tap3-border);
  border-radius: 20px;
  background: var(--white);
}

.tap3-capability-grid span,
.tap3-language-list article > span,
.tap3-format-flow article > span {
  display: block;
  margin-bottom: 26px;
  color: var(--tap3-blue);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.tap3-capability-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy-950);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.tap3-capability-grid p,
.tap3-language-list p,
.tap3-format-flow p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.tap3-process-list {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
}

.tap3-process-list li {
  display: grid;
  min-width: 0;
  padding: 28px;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--tap3-border);
  border-radius: 20px;
  background: var(--white);
}

.tap3-process-list li > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--tap3-teal);
  font-size: .75rem;
  font-weight: 850;
}

.tap3-process-list strong {
  display: block;
  margin-bottom: 7px;
  color: var(--navy-950);
  font-size: 1.12rem;
}

.tap3-process-list p {
  margin: 0;
  color: var(--muted);
}

.tap3-format-flow {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
}

.tap3-format-flow article {
  min-width: 0;
  min-height: 190px;
  padding: 24px 18px;
  border: 1px solid var(--tap3-border);
  border-radius: 18px;
  background: var(--white);
}

.tap3-format-flow article > span {
  margin-bottom: 34px;
}

.tap3-format-flow strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy-950);
  font-size: 1.05rem;
}

.tap3-flow-arrow {
  color: var(--tap3-teal);
  font-size: 1.6rem;
  font-weight: 800;
}

.tap3-language-list h3 {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

@media (max-width: 1040px) {
  .tap3-hero-grid,
  .tap3-overview-grid,
  .tap3-formats-grid,
  .tap3-languages-grid {
    grid-template-columns: 1fr;
  }

  .tap3-hero-copy,
  .tap3-overview-copy,
  .tap3-formats-grid > div:first-child,
  .tap3-languages-grid > div:first-child {
    max-width: 720px;
  }

  .tap3-figure-hero {
    max-width: 780px;
  }
}

@media (max-width: 760px) {
  .tap3-capability-grid,
  .tap3-process-list,
  .tap3-language-list {
    grid-template-columns: 1fr;
  }

  .tap3-format-flow {
    grid-template-columns: 1fr;
  }

  .tap3-format-flow article {
    min-height: 0;
  }

  .tap3-format-flow article > span {
    margin-bottom: 20px;
  }

  .tap3-flow-arrow {
    transform: rotate(90deg);
    text-align: center;
  }
}

@media (max-width: 520px) {
  .tap3-hero-copy h1 {
    font-size: clamp(2.8rem, 15vw, 4rem);
  }

  .tap3-hero-copy .hero-actions {
    flex-direction: column;
  }

  .tap3-hero-copy .button {
    width: 100%;
  }

  .tap3-figure {
    border-radius: 16px;
  }

  .tap3-flow-map {
    min-height: 610px;
  }

  .tap3-flow-lines {
    display: none;
  }

  .tap3-flow-source,
  .tap3-flow-output {
    width: calc(50% - 24px);
  }

  .tap3-flow-tap { top: 16px; left: 12px; }
  .tap3-flow-rap { top: 118px; left: 12px; }
  .tap3-flow-nrtde { top: 220px; left: 12px; }
  .tap3-flow-ber { top: 16px; right: 12px; }
  .tap3-flow-json { top: 118px; right: 12px; }
  .tap3-flow-xml { top: 220px; right: 12px; }

  .tap3-flow-core {
    top: 342px;
    width: calc(100% - 24px);
    height: 180px;
    border-radius: 20px;
  }

  .tap3-figure figcaption,
  .tap3-capability-grid article,
  .tap3-process-list li,
  .tap3-language-list article {
    padding: 22px 18px;
  }

  .tap3-process-list li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
  }

  .tap3-process-list li > span {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tap3-page *,
  .tap3-page *::before,
  .tap3-page *::after {
    scroll-behavior: auto;
  }
}
