/* Automotive-inspired editorial sequence for the CNW Terminal page. */
body.terminal-product-page {
  --terminal-shell: 1216px;
  --terminal-wide: 1540px;
  --terminal-edge: clamp(20px, 4vw, 72px);
  --terminal-ink: #0b0c0e;
  --terminal-muted: #596168;
  --terminal-panel: #f3f3f1;
  --terminal-line: #d7d9d8;
}

/* Final API composition: a live code demo, not a static product screenshot. */
body.terminal-product-page .terminal-api-story {
  padding: clamp(86px, 7vw, 116px) var(--terminal-edge) clamp(110px, 9vw, 150px);
  background: #f2f2f0;
}

body.terminal-product-page .terminal-api-story__head {
  width: min(1240px, 100%);
  margin: 0 auto clamp(50px, 5vw, 68px);
  text-align: center;
}

body.terminal-product-page .terminal-api-story__head h2 {
  margin: 18px auto 0;
  font-size: clamp(46px, 4.1vw, 64px);
  line-height: 1;
}

body.terminal-product-page .terminal-api-story__product {
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr);
  gap: clamp(58px, 7vw, 96px);
  align-items: center;
  width: min(1240px, 100%);
}

body.terminal-product-page .terminal-api-story .api-console-frame {
  position: relative;
  min-height: 410px !important;
  border-radius: 8px;
  box-shadow: 0 34px 54px rgba(12, 14, 15, .28);
}

body.terminal-product-page .terminal-api-story .api-console-frame::after {
  position: absolute;
  z-index: 5;
  top: 19px;
  right: 92px;
  color: #78838a;
  content: "EN PAUSA";
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .08em;
  pointer-events: none;
}

body.terminal-product-page .terminal-api-story .api-console-frame.is-live-typing::after {
  color: #7fb8f2;
  content: "● ESCRIBIENDO";
}

body.terminal-product-page .terminal-api-story .api-console-frame .api-console {
  height: 410px !important;
}

body.terminal-product-page .terminal-api-story .api-console-frame .api-code {
  height: 302px !important;
  min-height: 302px !important;
  max-height: 302px !important;
}

body.terminal-product-page .terminal-api-story .api-features {
  min-height: 0;
  padding: 20px 0 !important;
  background: transparent;
}

body.terminal-product-page .terminal-api-story .api-features h3 {
  margin-bottom: 10px;
  font-size: clamp(34px, 3vw, 46px);
}

body.terminal-product-page .terminal-api-story .api-features__subtitle {
  color: #9a9da0;
}

body.terminal-product-page .terminal-api-story .api-console-tabs {
  width: 100%;
  margin: 34px 0 32px !important;
}

body.terminal-product-page .terminal-api-story .api-features__copy {
  max-width: 470px;
  color: #363b3f;
  font-size: 16px;
  line-height: 1.52;
}

body.terminal-product-page .terminal-api-story .api-features .api-actions {
  margin-top: 30px;
}

body.terminal-product-page .terminal-api-story .api-action-primary {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #161819;
  color: #fff;
  box-shadow: none;
}

@media (max-width: 980px) {
  body.terminal-product-page .terminal-api-story__product {
    grid-template-columns: 1fr;
    gap: 62px;
  }

  body.terminal-product-page .terminal-api-story .api-features {
    width: min(680px, 100%);
    justify-self: center;
  }
}

@media (max-width: 560px) {
  body.terminal-product-page .terminal-api-story {
    padding-top: 76px;
  }

  body.terminal-product-page .terminal-api-story__head {
    margin-bottom: 42px;
  }

  body.terminal-product-page .terminal-api-story__head h2 {
    font-size: clamp(40px, 12vw, 52px);
  }

  body.terminal-product-page .terminal-api-story .api-console-frame::after {
    display: none;
  }

body.terminal-product-page .terminal-api-story .api-features {
    padding: 8px 2px !important;
  }
}

/* Final API layout override. Keep last: matches the compact Donovan-style stage. */
body.terminal-product-page .terminal-api-story{padding:clamp(112px,9vw,154px) var(--terminal-edge) clamp(122px,10vw,166px)!important;background:#fff!important}
body.terminal-product-page .terminal-api-story__head{display:none!important}
body.terminal-product-page .terminal-api-story .api-console-tabs--stage{width:max-content!important;max-width:100%;display:flex!important;margin:0 auto 32px!important;padding:4px!important;overflow-x:auto;border:1px solid #d7d8d8!important;border-radius:999px!important;background:#fff!important;scrollbar-width:none}
body.terminal-product-page .terminal-api-story .api-console-tabs--stage::-webkit-scrollbar{display:none}
body.terminal-product-page .terminal-api-story .api-console-tabs--stage button{flex:0 0 auto;min-width:116px;min-height:38px;padding:0 18px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#73777b!important}
body.terminal-product-page .terminal-api-story .api-console-tabs--stage button+button{border-left:1px solid #e1e2e2!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important}
body.terminal-product-page .terminal-api-story .api-console-tabs--stage button.active{border-left-color:transparent!important;background:#e8e9e8!important;color:#111!important}
body.terminal-product-page .terminal-api-story__product{width:min(1216px,100%)!important;min-height:492px!important;grid-template-columns:minmax(340px,.86fr) minmax(560px,1.14fr)!important;gap:clamp(52px,6vw,82px)!important;align-items:center!important;margin:0 auto!important;padding:clamp(44px,5vw,58px)!important;border:1px solid #d9dada!important;border-radius:16px!important;background:#f5f5f4!important;box-shadow:0 3px 15px rgba(10,12,13,.07) inset!important}
body.terminal-product-page .terminal-api-story .api-features{grid-column:1!important;grid-row:1!important;width:100%!important;display:block!important;min-height:0!important;margin:0!important;padding:0!important;background:transparent!important}
body.terminal-product-page .terminal-api-story .api-stage-points{max-width:410px;display:grid;gap:22px;margin:0;padding:0;list-style:none}
body.terminal-product-page .terminal-api-story .api-stage-points li{position:relative;padding-left:34px;color:#111314;font-size:16px;line-height:1.55}
body.terminal-product-page .terminal-api-story .api-stage-points li::before{position:absolute;top:3px;left:0;width:18px;height:18px;display:grid;place-items:center;border:1px solid #cfd2d3;border-radius:50%;background:#e4e5e5;color:#9ba1a4;content:"✓";font-size:11px;font-weight:600}
body.terminal-product-page .terminal-api-story .api-console-frame{grid-column:2!important;grid-row:1!important;width:100%!important;height:332px!important;min-height:332px!important;padding:14px!important;border-radius:18px!important;background:#050607!important;box-shadow:0 28px 44px rgba(12,14,15,.22)!important}
body.terminal-product-page .terminal-api-story .api-console-frame .api-console{height:304px!important;min-height:304px!important;border-radius:10px!important}
body.terminal-product-page .terminal-api-story .api-console-frame .api-code{height:196px!important;min-height:196px!important;max-height:196px!important}
@media(max-width:980px){body.terminal-product-page .terminal-api-story__product{grid-template-columns:1fr!important;gap:48px!important}body.terminal-product-page .terminal-api-story .api-features{grid-column:1!important;grid-row:1!important;width:min(680px,100%)!important;justify-self:center}body.terminal-product-page .terminal-api-story .api-console-frame{grid-column:1!important;grid-row:2!important;width:min(680px,100%)!important;justify-self:center}}
@media(max-width:620px){body.terminal-product-page .terminal-api-story{padding:88px 16px 112px!important}body.terminal-product-page .terminal-api-story .api-console-tabs--stage{width:100%!important;justify-content:flex-start;margin-bottom:24px!important}body.terminal-product-page .terminal-api-story .api-console-tabs--stage button{min-width:92px;padding:0 14px!important}body.terminal-product-page .terminal-api-story__product{min-height:0!important;padding:36px 22px!important;border-radius:12px!important}body.terminal-product-page .terminal-api-story .api-stage-points li{font-size:15px}body.terminal-product-page .terminal-api-story .api-console-frame{height:340px!important;min-height:340px!important;padding:9px!important;border-radius:13px!important}body.terminal-product-page .terminal-api-story .api-console-frame .api-console{height:322px!important;min-height:322px!important}body.terminal-product-page .terminal-api-story .api-console-frame .api-code{height:214px!important;min-height:214px!important;max-height:214px!important}}

/* API stage: compact selector, proof points left, live terminal right. */
body.terminal-product-page .terminal-api-story {
  padding: clamp(112px, 9vw, 154px) var(--terminal-edge) clamp(122px, 10vw, 166px) !important;
  background: #fff !important;
}

body.terminal-product-page .terminal-api-story__head {
  display: none !important;
}

body.terminal-product-page .terminal-api-story .api-console-tabs--stage {
  width: max-content !important;
  max-width: 100%;
  display: flex !important;
  margin: 0 auto 32px !important;
  padding: 4px !important;
  overflow-x: auto;
  border: 1px solid #d7d8d8 !important;
  border-radius: 999px !important;
  background: #fff !important;
  scrollbar-width: none;
}

body.terminal-product-page .terminal-api-story .api-console-tabs--stage::-webkit-scrollbar {
  display: none;
}

body.terminal-product-page .terminal-api-story .api-console-tabs--stage button {
  flex: 0 0 auto;
  min-width: 116px;
  min-height: 38px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #73777b !important;
}

body.terminal-product-page .terminal-api-story .api-console-tabs--stage button + button {
  border-left: 1px solid #e1e2e2 !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

body.terminal-product-page .terminal-api-story .api-console-tabs--stage button.active {
  border-left-color: transparent !important;
  background: #e8e9e8 !important;
  color: #111 !important;
}

body.terminal-product-page .terminal-api-story__product {
  width: min(1216px, 100%) !important;
  min-height: 492px !important;
  grid-template-columns: minmax(340px, .86fr) minmax(560px, 1.14fr) !important;
  gap: clamp(52px, 6vw, 82px) !important;
  align-items: center !important;
  margin: 0 auto !important;
  padding: clamp(44px, 5vw, 58px) !important;
  border: 1px solid #d9dada !important;
  border-radius: 16px !important;
  background: #f5f5f4 !important;
  box-shadow: 0 3px 15px rgba(10, 12, 13, .07) inset !important;
}

body.terminal-product-page .terminal-api-story .api-features {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.terminal-product-page .terminal-api-story .api-stage-points {
  max-width: 410px;
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.terminal-product-page .terminal-api-story .api-stage-points li {
  position: relative;
  padding-left: 34px;
  color: #111314;
  font-size: 16px;
  line-height: 1.55;
}

body.terminal-product-page .terminal-api-story .api-stage-points li::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #cfd2d3;
  border-radius: 50%;
  background: #e4e5e5;
  color: #9ba1a4;
  content: "✓";
  font-size: 11px;
  font-weight: 600;
}

body.terminal-product-page .terminal-api-story .api-console-frame {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  height: 332px !important;
  min-height: 332px !important;
  padding: 14px !important;
  border-radius: 18px !important;
  background: #050607 !important;
  box-shadow: 0 28px 44px rgba(12, 14, 15, .22) !important;
}

body.terminal-product-page .terminal-api-story .api-console-frame .api-console {
  height: 304px !important;
  min-height: 304px !important;
  border-radius: 10px !important;
}

body.terminal-product-page .terminal-api-story .api-console-frame .api-code {
  height: 196px !important;
  min-height: 196px !important;
  max-height: 196px !important;
}

@media (max-width: 980px) {
  body.terminal-product-page .terminal-api-story__product {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }

  body.terminal-product-page .terminal-api-story .api-features {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: min(680px, 100%) !important;
    justify-self: center;
  }

  body.terminal-product-page .terminal-api-story .api-console-frame {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: min(680px, 100%) !important;
    justify-self: center;
  }
}

@media (max-width: 620px) {
  body.terminal-product-page .terminal-api-story {
    padding: 88px 16px 112px !important;
  }

  body.terminal-product-page .terminal-api-story .api-console-tabs--stage {
    width: 100% !important;
    justify-content: flex-start;
    margin-bottom: 24px !important;
  }

  body.terminal-product-page .terminal-api-story .api-console-tabs--stage button {
    min-width: 92px;
    padding: 0 14px !important;
  }

  body.terminal-product-page .terminal-api-story__product {
    min-height: 0 !important;
    padding: 36px 22px !important;
    border-radius: 12px !important;
  }

  body.terminal-product-page .terminal-api-story .api-stage-points li {
    font-size: 15px;
  }

  body.terminal-product-page .terminal-api-story .api-console-frame {
    height: 340px !important;
    min-height: 340px !important;
    padding: 9px !important;
    border-radius: 13px !important;
  }

  body.terminal-product-page .terminal-api-story .api-console-frame .api-console {
    height: 322px !important;
    min-height: 322px !important;
  }

  body.terminal-product-page .terminal-api-story .api-console-frame .api-code {
    height: 214px !important;
    min-height: 214px !important;
    max-height: 214px !important;
  }
}

/* Full-width Terminal film directly below the three proof points. */
body.terminal-product-page .terminal-video-story {
  padding: 0 var(--terminal-edge) clamp(126px, 11vw, 184px);
  background: #fff;
}

body.terminal-product-page .terminal-video-story__frame {
  position: relative;
  width: min(1390px, 100%);
  aspect-ratio: 16 / 8.7;
  max-height: 760px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: #07111d;
  box-shadow: 0 28px 64px rgba(8, 24, 42, .18);
}

body.terminal-product-page .terminal-video-story video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.terminal-product-page .terminal-video-story__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 10, 18, .08), rgba(3, 10, 18, .52));
  transition: opacity .35s ease;
  pointer-events: none;
}

body.terminal-product-page .terminal-video-story__copy {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: clamp(32px, 5vw, 70px);
  left: 28px;
  color: #fff;
  text-align: center;
  transition: opacity .3s ease, transform .35s ease;
  pointer-events: none;
}

body.terminal-product-page .terminal-video-story__copy .terminal-remodel-eyebrow {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .64);
  text-align: center !important;
}

body.terminal-product-page .terminal-video-story__copy h2 {
  margin: 0 auto;
  color: #fff;
  font-size: clamp(42px, 5vw, 74px);
  font-weight: 400;
  letter-spacing: -.052em;
  line-height: .98;
}

body.terminal-product-page .terminal-video-story__control {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(4, 12, 22, .72);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform .25s ease, background-color .25s ease, opacity .25s ease;
}

body.terminal-product-page .terminal-video-story__control:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(9, 42, 75, .9);
}

body.terminal-product-page .terminal-video-story__control svg {
  width: 34px;
  fill: currentColor;
}

body.terminal-product-page .terminal-video-story__frame.is-playing .terminal-video-story__shade { opacity: .18; }
body.terminal-product-page .terminal-video-story__frame.is-playing .terminal-video-story__copy { opacity: 0; transform: translateY(10px); }
body.terminal-product-page .terminal-video-story__frame.is-playing .terminal-video-story__control { opacity: 0; }
body.terminal-product-page .terminal-video-story__frame.is-playing:hover .terminal-video-story__control { opacity: 1; }

@media (max-width: 680px) {
  body.terminal-product-page .terminal-video-story { padding-inline: 14px; }
  body.terminal-product-page .terminal-video-story__frame { aspect-ratio: 4 / 5; border-radius: 13px; }
  body.terminal-product-page .terminal-video-story video { object-position: 38% center; }
  body.terminal-product-page .terminal-video-story__control { width: 64px; height: 64px; }
  body.terminal-product-page .terminal-video-story__copy { right: 20px; bottom: 28px; left: 20px; }
}

/* Tabbed API stage, adapted from the supplied product-interaction reference. */
body.terminal-product-page .terminal-api-story {
  background: #fff !important;
}

body.terminal-product-page .terminal-api-story .api-console-tabs--stage {
  width: max-content;
  max-width: 100%;
  display: flex;
  gap: 0 !important;
  margin: 0 auto 32px !important;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid #d7d8d8;
  border-radius: 999px;
  background: #fff;
  scrollbar-width: none;
}

body.terminal-product-page .terminal-api-story .api-console-tabs--stage button {
  min-height: 38px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #777b7e !important;
  font-size: 13px !important;
}

body.terminal-product-page .terminal-api-story .api-console-tabs--stage button + button {
  border-left: 1px solid #e1e2e2 !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

body.terminal-product-page .terminal-api-story .api-console-tabs--stage button.active {
  border-left-color: transparent !important;
  background: #e8e9e8 !important;
  color: #111 !important;
}

body.terminal-product-page .terminal-api-story__product {
  grid-template-columns: minmax(330px, .82fr) minmax(520px, 1.18fr) !important;
  gap: clamp(48px, 6vw, 86px) !important;
  min-height: 492px;
  padding: clamp(42px, 5vw, 62px) !important;
  border: 1px solid #dadbdb !important;
  border-radius: 16px !important;
  background: #f5f5f4 !important;
  box-shadow: 0 3px 15px rgba(10, 12, 13, .07) inset;
}

body.terminal-product-page .terminal-api-story .api-features {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

body.terminal-product-page .terminal-api-story .api-console-frame {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  padding: 14px !important;
  border-radius: 18px !important;
  background: #050607 !important;
  box-shadow: none !important;
}

body.terminal-product-page .terminal-api-story .api-console-frame .api-console {
  overflow: hidden;
  border-radius: 8px;
}

body.terminal-product-page .terminal-api-story .api-features h3 {
  max-width: 10ch;
}

body.terminal-product-page .terminal-api-story .api-features__copy {
  margin-top: 28px;
}

@media (max-width: 980px) {
  body.terminal-product-page .terminal-api-story__product {
    grid-template-columns: 1fr !important;
  }

  body.terminal-product-page .terminal-api-story .api-features,
  body.terminal-product-page .terminal-api-story .api-console-frame {
    grid-column: 1;
  }

  body.terminal-product-page .terminal-api-story .api-features { grid-row: 1; }
  body.terminal-product-page .terminal-api-story .api-console-frame { grid-row: 2; }
}

@media (max-width: 560px) {
  body.terminal-product-page .terminal-api-story .api-console-tabs--stage {
    width: 100%;
    justify-content: flex-start;
  }

  body.terminal-product-page .terminal-api-story .api-console-tabs--stage button {
    padding-inline: 15px !important;
  }

  body.terminal-product-page .terminal-api-story__product {
    min-height: 0;
    padding: 30px 20px !important;
  }

  body.terminal-product-page .terminal-api-story .api-console-frame {
    padding: 8px !important;
    border-radius: 12px !important;
  }
}

body.terminal-product-page .terminal-engine-story,
body.terminal-product-page .terminal-delivery,
body.terminal-product-page .terminal-why,
body.terminal-product-page .terminal-resources {
  padding: clamp(112px, 10vw, 176px) var(--terminal-edge);
  background: #fff;
  color: var(--terminal-ink);
}

body.terminal-product-page :is(.terminal-engine-story__head, .terminal-delivery__head, .terminal-why__head, .terminal-resources__head) {
  width: min(940px, 100%);
  margin: 0 auto clamp(62px, 7vw, 104px);
  text-align: center;
}

body.terminal-product-page :is(.terminal-engine-story__head, .terminal-delivery__head, .terminal-why__head, .terminal-resources__head) .terminal-remodel-eyebrow {
  text-align: center !important;
}

body.terminal-product-page :is(.terminal-engine-story__head, .terminal-delivery__head, .terminal-why__head, .terminal-resources__head) h2 {
  margin: 24px auto 22px;
  color: var(--terminal-ink);
  font-size: clamp(48px, 5vw, 78px);
  font-weight: 400;
  letter-spacing: -.052em;
  line-height: .98;
  text-wrap: balance;
}

body.terminal-product-page :is(.terminal-engine-story__head, .terminal-delivery__head, .terminal-why__head) > p:last-child {
  max-width: 680px;
  margin: 0 auto;
  color: var(--terminal-muted);
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.42;
  text-align: center !important;
}

/* The overview mirrors the reference's product-engine split without inventing partner logos. */
body.terminal-product-page .terminal-engine-story {
  padding-top: clamp(128px, 12vw, 210px);
}

body.terminal-product-page .terminal-engine-story__grid {
  display: grid;
  grid-template-columns: minmax(340px, .84fr) minmax(500px, 1.16fr);
  gap: clamp(72px, 9vw, 160px);
  align-items: center;
  width: min(var(--terminal-shell), 100%);
  margin: 0 auto;
}

body.terminal-product-page .terminal-engine-story__points {
  display: grid;
  gap: clamp(38px, 4vw, 62px);
}

body.terminal-product-page .terminal-engine-story__points article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

body.terminal-product-page .terminal-engine-check {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #cfd3d4;
  border-radius: 50%;
  background: #f1f2f1;
}

body.terminal-product-page .terminal-engine-check svg {
  width: 14px;
  fill: none;
  stroke: #52616c;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.terminal-product-page .terminal-engine-story__points h3 {
  margin: 0 0 12px;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -.025em;
}

body.terminal-product-page .terminal-engine-story__points p {
  margin: 0;
  color: var(--terminal-muted);
  font-size: 16px;
  line-height: 1.55;
}

body.terminal-product-page .terminal-engine-diagram {
  position: relative;
  aspect-ratio: 1.08;
  min-height: 540px;
  overflow: hidden;
  border-radius: 4px;
  background: #f1f1ef;
}

body.terminal-product-page .terminal-engine-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #aab0b0;
  stroke-width: 1.3;
}

body.terminal-product-page .terminal-engine-node {
  position: absolute;
  display: grid;
  width: 154px;
  min-height: 130px;
  padding: 20px;
  place-items: center;
  border: 1px solid rgba(18, 25, 29, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(18, 25, 29, .07);
  text-align: center;
}

body.terminal-product-page .terminal-engine-node--top { top: 7%; left: 50%; transform: translateX(-50%); }
body.terminal-product-page .terminal-engine-node--right { top: 50%; right: 5%; transform: translateY(-50%); }
body.terminal-product-page .terminal-engine-node--bottom { bottom: 7%; left: 50%; transform: translateX(-50%); }
body.terminal-product-page .terminal-engine-node--left { top: 50%; left: 5%; transform: translateY(-50%); }

body.terminal-product-page .terminal-engine-node > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: #e8e9e8;
}

body.terminal-product-page .terminal-engine-node svg {
  width: 23px;
  fill: none;
  stroke: #315f8b;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.terminal-product-page .terminal-engine-node strong {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 550;
}

body.terminal-product-page .terminal-engine-node small {
  color: #737a7d;
  font-size: 12px;
}

/* Product surfaces remain the same interactive component, with the reference's tighter title scale. */
body.terminal-product-page .terminal-showcase {
  padding-top: clamp(114px, 10vw, 168px);
  background: #fafaf9;
}

body.terminal-product-page .terminal-showcase__head h2 {
  font-size: clamp(54px, 6vw, 96px);
}

body.terminal-product-page .terminal-showcase__stage {
  width: min(var(--terminal-wide), 100%);
}

body.terminal-product-page .terminal-api-story {
  padding-top: clamp(130px, 11vw, 190px);
}

/* Three delivery phases replace the old logo matrix. */
body.terminal-product-page .terminal-delivery {
  background: #fff;
}

body.terminal-product-page .terminal-delivery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 40px);
  width: min(var(--terminal-shell), 100%);
  margin: 0 auto;
}

body.terminal-product-page .terminal-delivery__grid article {
  min-width: 0;
}

body.terminal-product-page .terminal-delivery__grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
  background: #111416;
}

body.terminal-product-page .terminal-delivery__grid article > p {
  display: flex;
  gap: 18px;
  margin: 26px 0 12px;
  color: #6a7175;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em !important;
}

body.terminal-product-page .terminal-delivery__grid article > p span {
  color: #111;
}

body.terminal-product-page .terminal-delivery__grid h3 {
  margin: 0 0 14px;
  font-size: clamp(23px, 2vw, 31px);
  font-weight: 450;
  letter-spacing: -.035em;
}

body.terminal-product-page .terminal-delivery__grid small {
  display: block;
  color: var(--terminal-muted);
  font-size: 16px;
  line-height: 1.5;
}

/* Keep the four-stage traceability piece but let it read like the reference's phase section. */
body.terminal-product-page .provenance-section {
  padding: clamp(126px, 11vw, 190px) var(--terminal-edge) !important;
  background: #fafaf9 !important;
}

body.terminal-product-page .provenance-section > .container {
  width: min(var(--terminal-wide), 100%) !important;
}

body.terminal-product-page .provenance-header {
  max-width: 1030px !important;
  text-align: center !important;
}

body.terminal-product-page .provenance-header .kicker,
body.terminal-product-page .provenance-header .section-title,
body.terminal-product-page .provenance-intro {
  margin-inline: auto !important;
  text-align: center !important;
}

body.terminal-product-page .provenance-header .section-title {
  max-width: 23ch !important;
  font-size: clamp(48px, 5vw, 76px) !important;
  font-weight: 400 !important;
  letter-spacing: -.05em !important;
}

body.terminal-product-page .provenance-intro {
  max-width: 620px;
}

/* Why CNW follows the three-column proof block from the reference. */
body.terminal-product-page .terminal-why {
  padding-top: clamp(126px, 11vw, 190px);
}

body.terminal-product-page .terminal-why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(52px, 7vw, 112px);
  width: min(var(--terminal-shell), 100%);
  margin: 0 auto;
}

body.terminal-product-page .terminal-why__grid article > span {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid #d3d6d6;
  border-radius: 10px;
  background: #eeeeec;
}

body.terminal-product-page .terminal-why__grid svg {
  width: 25px;
  fill: none;
  stroke: #315f8b;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.terminal-product-page .terminal-why__grid h3 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 450;
  letter-spacing: -.035em;
}

body.terminal-product-page .terminal-why__grid p {
  margin: 0;
  color: var(--terminal-muted);
  font-size: 16px;
  line-height: 1.55;
}

/* Resource cards use existing CNW assets and real internal destinations. */
body.terminal-product-page .terminal-resources {
  padding-bottom: clamp(130px, 12vw, 210px);
}

body.terminal-product-page .terminal-resources__head {
  margin-bottom: clamp(52px, 6vw, 84px);
}

body.terminal-product-page .terminal-resources__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  width: min(var(--terminal-shell), 100%);
  margin: 0 auto;
}

body.terminal-product-page .terminal-resources__grid a {
  color: var(--terminal-ink);
  text-decoration: none;
}

body.terminal-product-page .terminal-resources__grid figure {
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 12px;
  background: #070a0d;
}

body.terminal-product-page .terminal-resources__grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  opacity: .88;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .45s ease;
}

body.terminal-product-page .terminal-resources__grid a:hover img {
  transform: scale(1.025);
  opacity: 1;
}

body.terminal-product-page .terminal-resources__grid small {
  color: #6f77a0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

body.terminal-product-page .terminal-resources__grid h3 {
  margin: 12px 0 14px;
  font-size: clamp(28px, 2.5vw, 40px);
  font-weight: 420;
  letter-spacing: -.04em;
}

body.terminal-product-page .terminal-resources__grid p {
  max-width: 580px;
  margin: 0 0 22px;
  color: var(--terminal-muted);
  font-size: 16px;
  line-height: 1.5;
}

body.terminal-product-page .terminal-resources__grid a > span {
  font-size: 15px;
  font-weight: 550;
}

/* FAQ intentionally spans the viewport: no boxed max-width wrapper. */
body.terminal-product-page #faq {
  padding: clamp(120px, 10vw, 174px) clamp(20px, 2.2vw, 40px) !important;
  background: #fff;
}

body.terminal-product-page #faq .faq-layout {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* End with the existing media CTA, presented like the reference's visual pre-footer. */
body.terminal-product-page .cta-section {
  padding: 0 clamp(18px, 2vw, 34px) clamp(18px, 2vw, 34px) !important;
  background: #fff !important;
}

body.terminal-product-page .cta-section .cta-media-card {
  width: 100% !important;
  max-width: none !important;
  min-height: clamp(560px, 62vw, 900px);
  margin: 0 !important;
  border-radius: 24px;
}

body.terminal-product-page .cta-section .cta-media-bg {
  object-fit: cover;
}

body.terminal-product-page .cta-section .cta-box {
  display: block !important;
  max-width: 980px;
}

body.terminal-product-page .cta-section .section-title {
  max-width: 16ch !important;
  color: #fff !important;
  font-size: clamp(48px, 5.7vw, 92px) !important;
  font-weight: 400 !important;
  letter-spacing: -.05em !important;
}

@media (max-width: 980px) {
  body.terminal-product-page .terminal-engine-story__grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  body.terminal-product-page .terminal-engine-diagram {
    min-height: 500px;
  }

  body.terminal-product-page .terminal-delivery__grid,
  body.terminal-product-page .terminal-why__grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  body.terminal-product-page .terminal-delivery__grid img {
    aspect-ratio: 1.8;
  }
}

@media (max-width: 680px) {
  body.terminal-product-page :is(.terminal-engine-story, .terminal-delivery, .terminal-why, .terminal-resources) {
    padding-inline: 18px;
  }

  body.terminal-product-page :is(.terminal-engine-story__head, .terminal-delivery__head, .terminal-why__head, .terminal-resources__head) h2 {
    font-size: clamp(42px, 13vw, 58px);
  }

  body.terminal-product-page .terminal-engine-diagram {
    min-height: 420px;
  }

  body.terminal-product-page .terminal-engine-node {
    width: 118px;
    min-height: 105px;
    padding: 12px;
  }

  body.terminal-product-page .terminal-engine-node--right { right: 2%; }
  body.terminal-product-page .terminal-engine-node--left { left: 2%; }
  body.terminal-product-page .terminal-engine-node small { display: none; }

  body.terminal-product-page .terminal-resources__grid {
    grid-template-columns: 1fr;
    gap: 62px;
  }

  body.terminal-product-page #faq {
    padding-inline: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.terminal-product-page .terminal-resources__grid img {
    transition: none;
  }

  body.terminal-product-page .api-code .api-typing-caret {
    animation: none !important;
  }
}

/* Product demo and API: Scale's compact split rhythm, adapted to CNW content. */
body.terminal-product-page .terminal-showcase,
body.terminal-product-page .terminal-api-story {
  padding: clamp(92px, 8vw, 132px) var(--terminal-edge) clamp(104px, 9vw, 148px);
  background: #fff;
}

body.terminal-product-page .terminal-showcase__head,
body.terminal-product-page .terminal-api-story__head {
  width: min(860px, 100%);
  margin: 0 auto clamp(52px, 5vw, 72px);
  text-align: center;
}

body.terminal-product-page .terminal-showcase__head .terminal-remodel-eyebrow,
body.terminal-product-page .terminal-api-story__head .terminal-remodel-eyebrow {
  text-align: center !important;
}

body.terminal-product-page .terminal-showcase__head h2,
body.terminal-product-page .terminal-api-story__head h2 {
  max-width: none;
  margin: 20px auto 16px;
  color: var(--terminal-ink);
  font-size: clamp(46px, 4.1vw, 64px);
  font-weight: 400;
  letter-spacing: -.052em;
  line-height: .98;
  text-wrap: balance;
}

body.terminal-product-page .terminal-showcase__head > p:last-child,
body.terminal-product-page .terminal-api-story__head > p:last-child {
  max-width: 650px;
  margin: 0 auto;
  color: var(--terminal-muted);
  font-size: clamp(17px, 1.15vw, 20px);
  line-height: 1.45;
  text-align: center !important;
}

body.terminal-product-page .terminal-showcase__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(390px, .84fr);
  width: min(1240px, 100%);
  min-height: 390px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

body.terminal-product-page .terminal-showcase__media {
  grid-column: 1;
  height: 390px;
  min-height: 390px;
  align-self: center;
  border-radius: 9px;
  background: #090b0d;
  box-shadow: 0 28px 58px rgba(16, 20, 23, .18);
}

body.terminal-product-page .terminal-showcase__media::after {
  display: none;
}

body.terminal-product-page .terminal-showcase__media img {
  object-fit: cover;
  object-position: top left;
  transform: none;
}

body.terminal-product-page .terminal-showcase__stage.is-switching .terminal-showcase__media img {
  transform: scale(1.012);
}

body.terminal-product-page .terminal-showcase__panel {
  display: flex;
  min-width: 0;
  min-height: 390px;
  padding: clamp(34px, 3vw, 48px) clamp(34px, 3.2vw, 52px);
  flex-direction: column;
  justify-content: center;
  background: #fbfafc;
}

body.terminal-product-page .terminal-showcase__panel-label {
  margin: 0 0 24px;
  color: #93989c;
  font-size: 12px;
  letter-spacing: .1em !important;
  text-transform: uppercase;
}

body.terminal-product-page .terminal-showcase__nav {
  display: flex;
  gap: 0;
  margin: 0 0 clamp(48px, 5vw, 68px);
  border-bottom: 1px solid #d9dcde;
}

body.terminal-product-page .terminal-showcase__nav button {
  min-height: 44px;
  padding: 0 18px 14px 0;
  border-radius: 0;
  background: transparent !important;
  color: #6b7175;
  font-size: 14px;
  text-align: left;
}

body.terminal-product-page .terminal-showcase__nav button + button {
  padding-left: 18px;
}

body.terminal-product-page .terminal-showcase__nav button span {
  display: none;
}

body.terminal-product-page .terminal-showcase__nav button::after {
  right: 18px;
  bottom: -1px;
  left: 0;
  background: transparent;
}

body.terminal-product-page .terminal-showcase__nav button + button::after {
  left: 18px;
}

body.terminal-product-page .terminal-showcase__nav button::before {
  right: 18px;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: #111416;
}

body.terminal-product-page .terminal-showcase__nav button + button::before {
  left: 18px;
}

body.terminal-product-page .terminal-showcase__nav button.is-active {
  color: #101214;
}

body.terminal-product-page .terminal-showcase__stage.is-running .terminal-showcase__nav button.is-active::before {
  width: calc(100% - 18px);
}

body.terminal-product-page .terminal-showcase__caption {
  position: static;
  max-width: 420px;
  color: var(--terminal-ink);
  transform: none;
}

body.terminal-product-page .terminal-showcase__stage.is-switching .terminal-showcase__caption {
  opacity: 0;
  transform: translateY(8px);
}

body.terminal-product-page .terminal-showcase__caption p {
  margin: 0 0 18px;
  color: #7898b9;
  font-size: 10px;
}

body.terminal-product-page .terminal-showcase__caption h3 {
  max-width: 12ch;
  color: var(--terminal-ink);
  font-size: clamp(32px, 2.7vw, 43px);
  line-height: 1;
}

body.terminal-product-page .terminal-showcase__caption > span {
  margin-top: 22px;
  color: var(--terminal-muted);
  font-size: 16px;
  line-height: 1.5;
}

body.terminal-product-page .terminal-showcase__link {
  align-self: flex-start;
  margin-top: 34px;
  color: var(--terminal-ink);
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
}

body.terminal-product-page .terminal-showcase__live {
  top: 18px;
  right: 18px;
}

body.terminal-product-page .terminal-api-story {
  background: #fff;
}

body.terminal-product-page .terminal-api-story__product {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr);
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
  width: min(1240px, 100%);
  margin: 0 auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.terminal-product-page .terminal-api-story .api-console-frame {
  min-height: 420px !important;
  padding: 0;
  overflow: hidden;
  border-radius: 9px;
  background: #111416;
  box-shadow: 0 28px 58px rgba(10, 14, 18, .23);
}

body.terminal-product-page .terminal-api-story .api-console-frame .api-console {
  height: 420px !important;
  border-radius: 9px;
  box-shadow: none;
}

body.terminal-product-page .terminal-api-story .api-console-frame .api-code {
  height: 312px !important;
  min-height: 312px !important;
  max-height: 312px !important;
  scroll-behavior: smooth;
}

body.terminal-product-page .terminal-api-story .api-features {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  min-width: 0;
  min-height: 420px;
  margin: 0 !important;
  padding: clamp(34px, 3.5vw, 52px) !important;
  border: 0;
  background: #fbfafc;
}

body.terminal-product-page .terminal-api-story .api-features h3 {
  margin: 0 0 10px;
  color: var(--terminal-ink);
  font-size: clamp(31px, 2.5vw, 40px);
  font-weight: 430;
  letter-spacing: -.045em;
  line-height: 1;
}

body.terminal-product-page .api-features__subtitle,
body.terminal-product-page .api-features__copy {
  margin: 0;
  color: var(--terminal-muted);
  font-size: 16px;
  line-height: 1.5;
}

body.terminal-product-page .terminal-api-story .api-console-tabs {
  display: flex;
  gap: 4px !important;
  margin: 34px 0 32px !important;
  overflow-x: auto;
  border-bottom: 1px solid #d9dcde;
  scrollbar-width: none;
}

body.terminal-product-page .terminal-api-story .api-console-tabs::-webkit-scrollbar { display: none; }

body.terminal-product-page .terminal-api-story .api-console-tabs button {
  min-width: 0;
  padding: 9px 11px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #747a7e;
  font: inherit;
  font-size: 13px !important;
  line-height: 1 !important;
  transform: none !important;
}

body.terminal-product-page .terminal-api-story .api-console-tabs button + button {
  padding-left: 11px !important;
}

body.terminal-product-page .terminal-api-story .api-console-tabs button.active {
  border-color: #d0d2d2 !important;
  color: #111416 !important;
  background: #e8e9e8 !important;
}

body.terminal-product-page .api-code .comment { color: #7e8b91; }

body.terminal-product-page .api-code .api-typing-caret {
  display: inline-block;
  width: 7px;
  height: 1.12em;
  margin-left: 3px;
  background: #82b8ea;
  vertical-align: -.18em;
  animation: api-caret-blink .72s steps(1, end) infinite;
}

@keyframes api-caret-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

body.terminal-product-page .api-features__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin-top: 28px;
}

body.terminal-product-page .api-features__facts span {
  position: relative;
  padding-left: 16px;
  color: #3f464a;
  font-size: 13px;
}

body.terminal-product-page .api-features__facts span::before {
  position: absolute;
  top: .55em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7898b9;
  content: "";
}

body.terminal-product-page .terminal-api-story .api-features .api-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 32px;
}

body.terminal-product-page .api-doc-link {
  color: var(--terminal-ink);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}

@media (max-width: 980px) {
  body.terminal-product-page .terminal-showcase__stage,
  body.terminal-product-page .terminal-api-story__product {
    grid-template-columns: 1fr;
  }

  body.terminal-product-page .terminal-showcase__media {
    height: min(62vw, 520px);
    min-height: min(62vw, 520px);
  }

  body.terminal-product-page .terminal-showcase__panel {
    min-height: 390px;
  }

  body.terminal-product-page .terminal-api-story__product {
    gap: 48px;
  }

  body.terminal-product-page .terminal-api-story .api-console-frame {
    width: min(680px, 100%);
    justify-self: center;
  }
}

@media (max-width: 560px) {
  body.terminal-product-page .terminal-showcase,
  body.terminal-product-page .terminal-api-story {
    padding-inline: 16px;
  }

  body.terminal-product-page .terminal-showcase__head h2,
  body.terminal-product-page .terminal-api-story__head h2 {
    font-size: clamp(42px, 12vw, 56px);
  }

  body.terminal-product-page .terminal-showcase__stage {
    padding: 0;
    border-radius: 10px;
  }

  body.terminal-product-page .terminal-showcase__media {
    height: 300px;
    min-height: 300px;
    border-radius: 10px;
  }

  body.terminal-product-page .terminal-showcase__panel {
    min-height: 390px;
    padding: 34px 24px;
  }

  body.terminal-product-page .terminal-showcase__nav {
    margin-bottom: 58px;
  }

  body.terminal-product-page .terminal-showcase__nav button,
  body.terminal-product-page .terminal-showcase__nav button + button {
    min-height: 42px;
    padding: 0 11px 12px 0;
    font-size: 12px;
  }

  body.terminal-product-page .terminal-showcase__nav button + button {
    padding-left: 11px;
  }

  body.terminal-product-page .terminal-showcase__caption {
    right: auto;
    bottom: auto;
    left: auto;
  }

  body.terminal-product-page .terminal-api-story .api-console-frame {
    min-height: 390px !important;
    padding: 10px;
  }

  body.terminal-product-page .terminal-api-story .api-console-frame .api-console {
    height: 370px !important;
  }

  body.terminal-product-page .terminal-api-story .api-console-frame .api-code {
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
  }

  body.terminal-product-page .terminal-api-story .api-features {
    display: block !important;
    min-height: 0;
    padding: 34px 24px !important;
  }

  body.terminal-product-page .terminal-api-story .api-console-tabs {
    overflow-x: auto;
  }

  body.terminal-product-page .terminal-api-story .api-features .api-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Keep this final: elongated API stage matching the product-surface proportions. */
body.terminal-product-page .terminal-api-story {
  padding: clamp(112px, 9vw, 154px) var(--terminal-edge) clamp(122px, 10vw, 166px) !important;
  background: #fff !important;
}

body.terminal-product-page .terminal-api-story__head {
  display: none !important;
}

body.terminal-product-page .terminal-api-story__head h2 {
  margin: 18px auto 0 !important;
  font-size: clamp(46px, 4.1vw, 64px) !important;
}

body.terminal-product-page .terminal-api-story__product {
  grid-template-columns: minmax(340px, .72fr) minmax(620px, 1.28fr) !important;
  gap: clamp(48px, 5vw, 72px) !important;
  width: min(1216px, 100%) !important;
  min-height: 520px !important;
  align-items: center !important;
  margin: 0 auto !important;
  padding: clamp(44px, 5vw, 62px) !important;
  border: 1px solid #d9dada !important;
  border-radius: 16px !important;
  background: #f5f5f4 !important;
  box-shadow: 0 3px 15px rgba(10, 12, 13, .07) inset !important;
}

body.terminal-product-page .terminal-api-story .api-console-frame {
  position: relative;
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  height: 350px !important;
  min-height: 350px !important;
  margin: 0 !important;
  padding: 14px !important;
  border-radius: 18px !important;
  background: #050607 !important;
  box-shadow: 0 28px 44px rgba(12, 14, 15, .22) !important;
}

body.terminal-product-page .terminal-api-story .api-console-frame .api-console {
  width: 100% !important;
  height: 322px !important;
  min-height: 322px !important;
  border-radius: 10px !important;
}

body.terminal-product-page .terminal-api-story .api-console-frame::after {
  position: absolute;
  z-index: 5;
  top: 19px;
  right: 92px;
  color: #78838a;
  content: "EN PAUSA";
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .08em;
  pointer-events: none;
}

body.terminal-product-page .terminal-api-story .api-console-frame.is-live-typing::after {
  color: #7fb8f2;
  content: "● ESCRIBIENDO";
}

body.terminal-product-page .terminal-api-story .api-console-frame .api-code {
  height: 214px !important;
  min-height: 214px !important;
  max-height: 214px !important;
}

body.terminal-product-page .terminal-api-story .api-features {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.terminal-product-page .terminal-api-story .api-features h3 {
  margin-bottom: 10px !important;
  font-size: clamp(34px, 3vw, 46px) !important;
}

body.terminal-product-page .terminal-api-story .api-console-tabs {
  width: max-content !important;
  max-width: 100% !important;
  margin: 0 auto 32px !important;
}

body.terminal-product-page .terminal-api-story .api-features__copy {
  max-width: 470px;
  color: #363b3f;
}

body.terminal-product-page .terminal-api-story .api-features .api-actions {
  margin-top: 30px !important;
}

body.terminal-product-page .terminal-api-story .api-action-primary {
  min-height: 40px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  background: #161819 !important;
  color: #fff !important;
  box-shadow: none !important;
}

@media (max-width: 980px) {
  body.terminal-product-page .terminal-api-story__product {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }

  body.terminal-product-page .terminal-api-story .api-features {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: min(680px, 100%);
    justify-self: center;
  }

  body.terminal-product-page .terminal-api-story .api-console-frame {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: min(680px, 100%) !important;
    justify-self: center;
  }
}

@media (max-width: 560px) {
  body.terminal-product-page .terminal-api-story {
    padding-top: 76px !important;
  }

  body.terminal-product-page .terminal-api-story__head {
    margin-bottom: 42px !important;
  }

  body.terminal-product-page .terminal-api-story__head h2 {
    font-size: clamp(40px, 12vw, 52px) !important;
  }

  body.terminal-product-page .terminal-api-story .api-console-frame,
  body.terminal-product-page .terminal-api-story .api-console-frame .api-console {
    height: 370px !important;
    min-height: 370px !important;
  }

  body.terminal-product-page .terminal-api-story .api-console-frame .api-code {
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
  }

  body.terminal-product-page .terminal-api-story .api-console-frame::after {
    display: none;
  }

  body.terminal-product-page .terminal-api-story .api-features {
    padding: 8px 2px !important;
  }
}
