/* Integration, developer, automation, and research pages share the Industry page visual system. */
.integrations-hub-page,
.instantly-integration-page,
.smartlead-page,
.api-page,
.automations-page,
.mcp-page,
.niche-research-page {
  --workflow-blue: #3847fe;
  --workflow-ink: #181818;
  --workflow-muted: #46484d;
  --workflow-line: rgb(108 111 118 / 14%);
  --workflow-shell: min(1060px, calc(100% - 60px));
  background: #fff;
  color: var(--workflow-ink);
}

.integrations-hub-page main,
.instantly-integration-page main,
.smartlead-page main,
.api-page main,
.automations-page main,
.mcp-page main,
.niche-research-page main {
  overflow: clip;
  background: #fff;
}

/* Keep breadcrumb semantics without introducing a different visual row above the hero. */
.workflow-breadcrumb {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.workflow-brand-pill {
  gap: 8px;
}

.workflow-brand-pill img {
  width: 20px;
  height: 20px;
  flex: none;
}

.workflow-brand-pill img[alt="Smartlead"] {
  border-radius: 4px;
}

.workflow-hero-copy .paper-industry-hero-text p strong,
.workflow-hero-copy code {
  color: var(--workflow-ink);
  font-weight: 600;
}

.workflow-hero-copy code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .9em;
}

.workflow-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.workflow-secondary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  color: var(--workflow-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(24 24 24 / 24%);
  text-underline-offset: 5px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.workflow-secondary-link svg {
  width: 16px;
  height: 16px;
}

.workflow-trust > div {
  justify-content: flex-start;
  gap: 34px;
}

.workflow-trust span img {
  width: 20px;
  height: 20px;
}

.workflow-product-frame picture,
.workflow-product-frame > img {
  display: block;
  width: 100%;
  height: 100%;
}

.workflow-product-frame picture img,
.workflow-product-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  border: 7px solid #fff;
  border-radius: 22px;
  background: #fff;
  object-fit: contain;
  object-position: left top;
}

.workflow-product-frame figcaption,
.workflow-map-frame figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.workflow-hero-product {
  position: relative;
}

/* Smartlead's artwork is a complete 16:9 composition, unlike the edge-anchored
   product capture used by Industry pages. Keep its controls inside the viewport. */
.smartlead-page .workflow-product-frame {
  aspect-ratio: 16 / 9;
}

.smartlead-page .workflow-product-frame picture img {
  object-fit: cover;
  object-position: center;
}

@media (min-width: 1041px) {
  .smartlead-page .workflow-hero-product {
    display: flex;
    align-items: center;
  }

  .smartlead-page .workflow-product-frame {
    width: min(650px, calc(50vw - 76px));
    flex: none;
  }
}

.paper-industry-hero > :is(.api-shell, .research-shell) {
  width: 100%;
  max-width: none;
}

.workflow-endpoint-ticket {
  position: absolute;
  z-index: 2;
  bottom: 46px;
  left: -26px;
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border: 1px solid var(--workflow-line);
  border-radius: 14px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 16px 32px -20px rgb(10 14 42 / 42%);
  backdrop-filter: blur(12px);
  transform: rotate(-2deg);
}

.workflow-endpoint-ticket span {
  padding: 5px 9px;
  border-radius: 7px;
  background: #e8f8ee;
  color: #168545;
  font-size: 12px;
  font-weight: 750;
}

.workflow-endpoint-ticket code {
  color: var(--workflow-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  font-weight: 650;
}

.workflow-map-frame {
  position: relative;
  min-height: 538px;
  color: var(--workflow-blue);
}

.workflow-map-frame .hub-map-lines {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  color: rgb(255 255 255 / 42%);
}

.workflow-map-frame .hub-map-core,
.workflow-map-frame .hub-map-node {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgb(255 255 255 / 70%);
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 14px 30px -20px rgb(4 9 40 / 60%);
  color: var(--workflow-ink);
  backdrop-filter: blur(10px);
}

.workflow-map-frame .hub-map-core {
  top: 50%;
  left: 50%;
  width: 144px;
  height: 144px;
  flex-direction: column;
  justify-content: center;
  border-radius: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.workflow-map-frame .hub-map-core svg {
  width: 32px;
  height: 32px;
  color: var(--workflow-blue);
}

.workflow-map-frame .hub-map-node {
  min-width: 150px;
  min-height: 62px;
  padding: 10px 14px;
  border-radius: 15px;
}

.workflow-map-frame .hub-map-node i {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: #eef0ff;
  color: var(--workflow-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
}

.workflow-map-frame .hub-map-node i img,
.workflow-map-frame .hub-map-node i svg {
  width: 22px;
  height: 22px;
}

.workflow-map-frame .hub-map-node strong,
.workflow-map-frame .hub-map-node small {
  display: block;
}

.workflow-map-frame .hub-map-node strong { font-size: 13px; }
.workflow-map-frame .hub-map-node small { margin-top: 2px; color: #70737c; font-size: 10px; }
.workflow-map-frame .hub-map-node.instantly { top: 13%; left: 8%; }
.workflow-map-frame .hub-map-node.smartlead { top: 13%; right: 8%; }
.workflow-map-frame .hub-map-node.api { bottom: 13%; left: 8%; }
.workflow-map-frame .hub-map-node.mcp { right: 8%; bottom: 13%; }
.workflow-map-frame .hub-map-node.automations { bottom: 5%; left: 50%; transform: translateX(-50%); }

/* Match the restrained Industry page typography, spacing, and section rhythm. */
.integrations-hub-page :is(.hub-shell, .hub-section-inner),
.instantly-integration-page .integration-shell,
.smartlead-page .integration-section-inner,
.api-page .api-shell,
.automations-page .auto-section-inner,
.mcp-page .seo-shell,
.niche-research-page .research-shell {
  width: var(--workflow-shell);
  max-width: none;
  margin-inline: auto;
}

:is(.api-page, .niche-research-page) .paper-industry-hero > :is(.api-shell, .research-shell) {
  width: 100%;
  margin-inline: 0;
}

.integrations-hub-page :is(.hub-section, .hub-lanes),
.instantly-integration-page :is(.integration-section, .integration-fact-strip),
.smartlead-page :is(.integration-section, .integration-proof),
.api-page :is(.api-section, .api-proof),
.automations-page :is(.auto-section, .auto-proof),
.mcp-page :is(.seo-section, .seo-cta-band),
.niche-research-page :is(.research-section, .research-summary) {
  padding: 120px 30px;
}

.integrations-hub-page :is(.hub-section:nth-of-type(even), .hub-lanes),
.instantly-integration-page :is(.integration-section:nth-of-type(even), .integration-fact-strip),
.smartlead-page :is(.integration-section.is-soft, .integration-proof),
.api-page :is(.api-section.is-soft, .api-proof),
.automations-page :is(.auto-section.is-soft, .auto-proof),
.mcp-page .seo-section.alt,
.niche-research-page :is(.research-summary, .research-section:nth-of-type(even)) {
  background: #fafafa;
}

.integrations-hub-page :is(.hub-section-heading, .hub-section-head),
.instantly-integration-page .integration-section-heading,
.smartlead-page .integration-section-heading,
.api-page .api-section-head,
.automations-page .auto-section-heading,
.mcp-page .seo-section-head,
.niche-research-page :is(.research-section-heading, .research-section > .research-shell > header) {
  max-width: 760px;
  margin-inline: auto;
}

.integrations-hub-page main :is(h1, h2, h3),
.instantly-integration-page main :is(h1, h2, h3),
.smartlead-page main :is(h1, h2, h3),
.api-page main :is(h1, h2, h3),
.automations-page main :is(h1, h2, h3),
.mcp-page main :is(h1, h2, h3),
.niche-research-page main :is(h1, h2, h3) {
  font-family: var(--site-font-display);
  font-variation-settings: "wght" 500;
  text-wrap: balance;
}

:is(.integrations-hub-page, .instantly-integration-page, .smartlead-page, .api-page, .automations-page, .mcp-page, .niche-research-page) .paper-industry-hero h1 {
  max-width: 500px;
  margin: 0;
  color: var(--workflow-ink);
  font-family: var(--site-font-display);
  font-size: clamp(48px, 4.24vw, 64px);
  font-weight: 500;
  font-variation-settings: "wght" 500;
  letter-spacing: -.055em;
  line-height: 1.1;
}

.integrations-hub-page main h2,
.instantly-integration-page main h2,
.smartlead-page main h2,
.api-page main h2,
.automations-page main h2,
.mcp-page main h2,
.niche-research-page main h2 {
  font-size: clamp(38px, 3.2vw, 48px);
  font-weight: 500;
  letter-spacing: -.052em;
  line-height: 1.1;
}

.integrations-hub-page main h3,
.instantly-integration-page main h3,
.smartlead-page main h3,
.api-page main h3,
.automations-page main h3,
.mcp-page main h3,
.niche-research-page main h3 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.integrations-hub-page main p,
.instantly-integration-page main p,
.smartlead-page main p,
.api-page main p,
.automations-page main p,
.mcp-page main p,
.niche-research-page main p {
  text-wrap: pretty;
}

.integrations-hub-page :is(.hub-card, .hub-lane),
.instantly-integration-page :is(.integration-step, .integration-card, .integration-related-card),
.smartlead-page :is(.integration-capability-grid article, .integration-step, .integration-report-card, .integration-related-card),
.api-page :is(.api-step, .api-card, .api-related-card),
.automations-page :is(.auto-card-grid article, .auto-step, .auto-link-card),
.mcp-page .seo-card,
.niche-research-page :is(.research-card, .research-link-card, .research-summary-item) {
  border-color: var(--workflow-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .workflow-secondary-link:hover { color: var(--workflow-blue); text-decoration-color: currentColor; }
  .integrations-hub-page .hub-card:hover,
  .instantly-integration-page .integration-related-card:hover,
  .smartlead-page .integration-related-card:hover,
  .api-page .api-related-card:hover,
  .automations-page .auto-link-card:hover,
  .niche-research-page .research-link-card:hover {
    border-color: rgb(56 71 254 / 35%);
    box-shadow: 0 18px 44px -32px rgb(18 18 18 / 40%);
    transform: translateY(-2px);
  }
}

@media (max-width: 1040px) {
  .workflow-endpoint-ticket { bottom: 24px; left: 20px; }
  .workflow-map-frame { min-height: 530px; }
}

@media (max-width: 720px) {
  .integrations-hub-page,
  .instantly-integration-page,
  .smartlead-page,
  .api-page,
  .automations-page,
  .mcp-page,
  .niche-research-page {
    --workflow-shell: calc(100% - 28px);
  }

  .workflow-brand-pill { max-width: 100%; }
  .workflow-hero-actions { width: 100%; }
  .workflow-hero-actions .paper-industry-primary { width: 100%; }
  .workflow-trust > div { gap: 12px; }
  .workflow-product-frame picture img,
  .workflow-product-frame > img { border-width: 5px; border-radius: 14px; }
  .workflow-endpoint-ticket { bottom: 18px; left: 12px; min-height: 48px; padding: 8px 12px; }
  .workflow-map-frame { min-height: 410px; }
  .workflow-map-frame .hub-map-core { width: 104px; height: 104px; font-size: 11px; }
  .workflow-map-frame .hub-map-core svg { width: 26px; height: 26px; }
  .workflow-map-frame .hub-map-node { min-width: 112px; min-height: 50px; padding: 7px 9px; }
  .workflow-map-frame .hub-map-node i { width: 28px; height: 28px; }
  .workflow-map-frame .hub-map-node i img,
  .workflow-map-frame .hub-map-node i svg { width: 19px; height: 19px; }
  .workflow-map-frame .hub-map-node span small { display: none; }
  .workflow-map-frame .hub-map-node.instantly { top: 8%; left: 4%; }
  .workflow-map-frame .hub-map-node.smartlead { top: 8%; right: 4%; }
  .workflow-map-frame .hub-map-node.api { bottom: 16%; left: 4%; }
  .workflow-map-frame .hub-map-node.mcp { right: 4%; bottom: 16%; }
  .workflow-map-frame .hub-map-node.automations { bottom: 3%; }

  :is(.integrations-hub-page, .instantly-integration-page, .smartlead-page, .api-page, .automations-page, .mcp-page, .niche-research-page) .paper-industry-hero h1 {
    font-size: clamp(42px, 12vw, 56px);
    letter-spacing: -.06em;
  }

  .integrations-hub-page :is(.hub-section, .hub-lanes),
  .instantly-integration-page :is(.integration-section, .integration-fact-strip),
  .smartlead-page :is(.integration-section, .integration-proof),
  .api-page :is(.api-section, .api-proof),
  .automations-page :is(.auto-section, .auto-proof),
  .mcp-page :is(.seo-section, .seo-cta-band),
  .niche-research-page :is(.research-section, .research-summary) {
    padding: 80px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-secondary-link,
  .integrations-hub-page .hub-card,
  .instantly-integration-page .integration-related-card,
  .smartlead-page .integration-related-card,
  .api-page .api-related-card,
  .automations-page .auto-link-card,
  .niche-research-page .research-link-card {
    transition: none;
  }
}
