/* BlackPen product page — extends site.css */
:root {
  --red: #ff5d6c;
  --red-2: #ff8a95;
  --bp-bg: #07061c;
  --bp-panel: #0f0e2c
}

.bp body,
body.bp {
  background: var(--bp-bg);
  color: #fff
}

.bp .nav::before {
  background: rgba(7, 6, 28, .86)   /* BlackPen's frosted bar is dark (the layer itself is in site.css) */
}

.bp .nav.scrolled {
  border-color: var(--line-d)
}

.bp .nav.scrolled ul a,
.bp .nav.scrolled .dd-toggle {
  color: rgba(255, 255, 255, .78)
}

.bp .nav.scrolled ul a:hover {
  color: #fff
}

.bp .nav.scrolled .logo-light {
  display: block
}

.bp .nav.scrolled .logo-dark {
  display: none
}

.bp .nav.scrolled .btn-ghost {
  border-color: rgba(255, 255, 255, .3);
  color: #fff
}

.bp .nav.scrolled .btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff
}

.bp .nav.scrolled .burger {
  color: #fff
}

.bp .nav ul a.active,
.bp .dd-toggle.active {
  color: #fff
}

.bp .eyebrow {
  color: var(--red-2)
}

.btn-red {
  background: var(--red);
  color: var(--ink)
}

.btn-red:hover {
  background: #ff7b88
}

/* hero */
.bp-hero {
  position: relative;
  padding: 140px 0 0;
  overflow: hidden
}

.bp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(255, 93, 108, .16), transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(0, 167, 157, .12), transparent 70%);
  pointer-events: none
}

.bp-hero .grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 10%, transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 75%)
}

.bp-hero .wrap {
  position: relative
}

.crumb {
  display: flex;
  gap: 10px;
  color: var(--muted-d);
  margin-bottom: 34px
}

.crumb a:hover {
  color: #fff
}

.bp-hero-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
  align-items: end
}

.bp-name {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px
}

.bp-name .mk {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid rgba(255, 93, 108, .55);
  background: rgba(255, 93, 108, .1);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: var(--t-lead);
  color: var(--red)
}

.bp-name b {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: var(--t-h3);
  letter-spacing: -.02em
}

.bp-name .mono {
  color: var(--red-2);
  display: block;
  font-size: var(--t-label)
}

.bp-hero h1 {
  font-size: var(--t-display);
  letter-spacing: -.045em;
  line-height: .95
}

.bp-hero h1 em {
  font-style: normal;
  color: var(--red)
}

.bp-hero .lede {
  color: var(--muted-d);
  font-size: var(--t-lead);
  line-height: 1.55;
  margin-bottom: 36px
}

.bp-hero .ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.cursor {
  display: inline-block;
  width: .08em;
  height: .8em;
  background: var(--red);
  margin-left: .06em;
  vertical-align: -.04em;
  animation: blink 1s steps(1) infinite
}

@keyframes blink {
  50% {
    opacity: 0
  }
}

.bp-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* three key facts (was four) */
  border-top: 1px solid var(--line-d);
  border-bottom: 1px solid var(--line-d);
  margin-top: 90px
}

.bp-strip div {
  padding: 24px 24px 24px 0
}

.bp-strip div+div {
  padding-left: 24px;
  border-left: 1px solid var(--line-d)
}

.bp-strip .mono {
  color: var(--muted-d);
  display: block;
  margin-bottom: 6px;
  font-size: var(--t-label)
}

.bp-strip b {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: var(--t-lead)
}

/* console mock */
.console {
  margin-top: 70px;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--line-d);
  border-bottom: 0;
  background: var(--bp-panel);
  padding: 14px 14px 0;
  box-shadow: 0 -30px 80px -30px rgba(255, 93, 108, .25)
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px 14px
}

.console-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14)
}

.console-bar i:first-child {
  background: var(--red)
}

.console-bar .url {
  margin-left: 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted-d);
  background: rgba(255, 255, 255, .05);
  padding: 6px 14px;
  border-radius: 6px;
  flex: 1;
  max-width: 420px
}

.console-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: #fff;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  color: var(--ink)
}

.console-side {
  background: #f3f3f7;
  border-right: 1px solid #e6e6ee;
  padding: 18px 0;
  font-size: var(--t-ui)
}

.console-side .grp {
  font-family: var(--f-mono);
  font-size: var(--t-ui-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #666682;
  padding: 12px 20px 6px
}

.console-side div.it {
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3b3b55
}

.console-side div.it::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #c9c9d6
}

.console-side div.it.on {
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  box-shadow: inset 3px 0 0 var(--red)
}

.console-side div.it.on::before {
  background: var(--red)
}

.console-main {
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start
}

.console-main .shot {
  border: 1px solid #e6e6ee;
  border-radius: 6px;
  overflow: hidden;
  background: #fff
}

.console-main .shot.wide {
  grid-column: 1/-1
}

.console-main img {
  width: 100%;
  height: auto
}

/* sections */
.bp-sec {
  padding: 56px 0
}

.bp-sec.light {
  background: var(--paper);
  color: var(--ink)
}

.bp-sec.light .eyebrow {
  color: var(--deep)
}

.bp-sec .sec-head p {
  color: var(--muted-d)
}

.bp-sec.light .sec-head p {
  color: var(--muted)
}

/* at a glance */
.glance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

.glance-col {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 36px
}

.glance-col h3 {
  font-size: var(--t-h3);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px
}

.glance-col h3 .mono {
  color: var(--muted);
  font-size: var(--t-label)
}

.glance-col ol {
  list-style: none;
  counter-reset: g
}

.glance-col li {
  counter-increment: g;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-family: var(--f-head);
  font-size: var(--t-lead)
}

.glance-col li::before {
  content: counter(g, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: var(--t-label);
  color: var(--red-text)
}

.glance-col.svcs li::before {
  color: var(--teal-text)
}

.glance-col li a {
  font-family: var(--f-body);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: var(--t-small);
  color: var(--muted)
}

.glance-col li a:hover {
  color: var(--ink)
}

/* scanners tabs */
.sc {
  display: grid;
  grid-template-columns: 300px 1fr;
  border: 1px solid var(--line-d);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bp-panel)
}

.sc-tabs {
  border-right: 1px solid var(--line-d);
  display: flex;
  flex-direction: column
}

.sc-tab {
  all: unset;
  cursor: pointer;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line-d);
  position: relative;
  transition: background .2s
}

.sc-tab:last-child {
  border-bottom: 0
}

.sc-tab .mono {
  color: var(--muted-d);
  font-size: var(--t-label);
  display: block;
  margin-bottom: 6px
}

.sc-tab b {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: var(--t-lead);
  display: block;
  line-height: 1.2
}

.sc-tab::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transition: transform .3s
}

.sc-tab:hover {
  background: rgba(255, 255, 255, .03)
}

.sc-tab.on {
  background: rgba(255, 93, 108, .07)
}

.sc-tab.on::after {
  transform: scaleY(1)
}

.sc-tab.on .mono {
  color: var(--red-2)
}

.sc-tab:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px
}

.sc-panel {
  padding: 48px 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start
}

.sc-panel h3 {
  font-size: var(--t-h3-xl);
  margin: 12px 0 16px;
  line-height: 1.08
}

.sc-panel .mono.k {
  color: var(--red-2)
}

.sc-panel p.d {
  color: var(--muted-d);
  font-size: var(--t-body);
  margin-bottom: 26px
}

.sc-list {
  list-style: none;
  display: grid;
  gap: 12px
}

.sc-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  font-size: var(--t-body);
  line-height: 1.5;
  color: #e4e4f0
}

.sc-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border: 1.5px solid var(--red);
  border-radius: 2px;
  transform: rotate(45deg)
}

.sc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px
}

.sc-tags span {
  font-family: var(--f-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--t-label);
  padding: 7px 12px;
  border: 1px solid var(--line-d);
  border-radius: 999px;
  color: var(--muted-d)
}

.sc-shot {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-d);
  position: sticky;
  top: 130px
}

.sc-shot .cap {
  font-family: var(--f-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--t-small);
  color: #6a6a82;
  padding: 10px 14px;
  border-top: 1px solid #eee;
  background: #fafafc
}

.sc-shot img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: top left
}

/* flow */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line)
}

.flow>div {
  padding: 34px 28px 10px 0;
  position: relative
}

.flow>div+div {
  padding-left: 28px;
  border-left: 1px solid var(--line)
}

.flow .n {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  color: var(--red-text);
  letter-spacing: .08em
}

.flow h4 {
  font-size: var(--t-h4);
  margin: 16px 0 10px
}

.flow p {
  color: var(--muted);
  font-size: var(--t-body)
}

/* services */
.ps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px
}

.ps-card {
  grid-column: span 2;
  border: 1px solid var(--line-d);
  border-radius: 10px;
  background: var(--bp-panel);
  overflow: hidden;
  display: flex;
  flex-direction: column
}

.ps-card.big {
  grid-column: span 3
}

.ps-card .img {
  background: #fff;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-bottom: 1px solid var(--line-d)
}

.ps-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left
}

.ps-card .img.contain img {
  object-fit: contain;
  object-position: center;
  padding: 10px
}

.ps-card .tx {
  padding: 26px 28px 30px
}

.ps-card .mono {
  color: var(--teal-2);
  font-size: var(--t-label)
}

.ps-card h4 {
  font-size: var(--t-h4);
  margin: 10px 0 10px
}

.ps-card p {
  color: var(--muted-d);
  font-size: var(--t-body)
}

.ps-card ul {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.ps-card ul li {
  font-family: var(--f-body);
  font-size: var(--t-label);
  letter-spacing: .03em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: #d5d5e6
}

/* security */
.secg {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px
}

.sec-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px;
  background: #fff
}

.sec-box h3 {
  font-size: var(--t-h3);
  margin-bottom: 10px
}

.sec-box>p {
  color: var(--muted);
  margin-bottom: 26px
}

.roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px
}

.role {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 16px;
  background: var(--paper)
}

.role b {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: var(--t-body-lg);
  display: block
}

.role span {
  font-size: var(--t-label);
  color: var(--muted)
}

.role.custom {
  border-style: dashed;
  background: transparent
}

.sec-feats {
  display: grid;
  gap: 0
}

.sec-feats div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line)
}

.sec-feats div:first-child {
  border-top: 0;
  padding-top: 0
}

.sec-feats .mono {
  color: var(--red-text);
  font-size: var(--t-label);
  padding-top: 4px
}

.sec-feats p {
  font-size: var(--t-body)
}

/* report anatomy */
.report {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center
}

.report ol {
  list-style: none;
  counter-reset: r;
  border-top: 1px solid var(--line-d)
}

.report li {
  counter-increment: r;
  display: grid;
  grid-template-columns: 50px 1fr;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-d);
  font-family: var(--f-head);
  font-size: var(--t-lead)
}

.report li::before {
  content: counter(r, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: var(--t-label);
  color: var(--red);
  padding-top: 6px
}

.report li small {
  display: block;
  font-family: var(--f-body);
  font-size: var(--t-small);
  color: var(--muted-d);
  margin-top: 2px
}

.report .stack {
  position: relative;
  height: 460px
}

.report .stack .shot {
  position: absolute;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-d);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7)
}

.report .stack .s1 {
  left: 0;
  top: 0;
  width: 78%
}

.report .stack .s2 {
  right: 0;
  top: 120px;
  width: 62%
}

.report .stack .s3 {
  left: 8%;
  bottom: 0;
  width: 56%
}

.report .stack img {
  width: 100%;
  height: auto
}

/* cta */
.bp-cta {
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-d)
}

.bp-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 70% at 50% 100%, rgba(255, 93, 108, .18), transparent 70%)
}

.bp-cta .wrap {
  position: relative
}

.bp-cta h2 {
  font-size: var(--t-h2);
  letter-spacing: -.045em;
  line-height: .98;
  max-width: 14ch;
  margin: 0 auto
}

.bp-cta p {
  color: var(--muted-d);
  font-size: var(--t-lead);
  max-width: 560px;
  margin: 26px auto 40px
}

.bp-cta .ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap
}

@media (max-width:1100px) {
  .bp-hero-top {
    grid-template-columns: 1fr;
    gap: 30px
  }

  .console-body {
    grid-template-columns: 1fr
  }

  .console-side {
    display: none
  }

  .sc {
    grid-template-columns: 1fr
  }

  .sc-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-d)
  }

  .sc-tab {
    min-width: 190px;
    border-bottom: 0;
    border-right: 1px solid var(--line-d)
  }

  .sc-tab::after {
    top: auto;
    height: 3px;
    width: auto;
    right: 0;
    transform: scaleX(0)
  }

  .sc-tab.on::after {
    transform: scaleX(1)
  }

  .sc-panel {
    grid-template-columns: 1fr
  }

  .sc-shot {
    position: static
  }

  .ps-card,
  .ps-card.big {
    grid-column: span 3
  }

  .secg,
  .report {
    grid-template-columns: 1fr
  }

  .flow {
    grid-template-columns: 1fr 1fr
  }

  .flow>div:nth-child(3) {
    border-left: 0;
    padding-left: 0
  }
}

@media (max-width:860px) {
  .bp-hero {
    padding-top: 124px
  }

  /* phones: the three facts stack in one column, each with a line above it */
  .bp-strip {
    grid-template-columns: 1fr
  }

  .bp-strip div,
  .bp-strip div+div {
    padding: 16px 0;
    border-left: 0;
    border-top: 1px solid var(--line-d)
  }

  .bp-strip div:first-child {
    border-top: 0
  }

  .console-main {
    grid-template-columns: 1fr;
    padding: 12px
  }

  .bp-sec {
    padding: 48px 0
  }

  .glance {
    grid-template-columns: 1fr
  }

  .glance-col {
    padding: 26px 22px
  }

  .sc-panel {
    padding: 30px 22px
  }

  .ps-card,
  .ps-card.big {
    grid-column: 1/-1
  }

  .flow {
    grid-template-columns: 1fr
  }

  .flow>div,
  .flow>div+div {
    padding: 26px 0;
    border-left: 0;
    border-top: 1px solid var(--line)
  }

  .roles {
    grid-template-columns: 1fr 1fr
  }

  .sec-feats div {
    grid-template-columns: 1fr;
    gap: 4px
  }

  .report .stack {
    height: 340px
  }
}

.bp {
  --snav-accent: var(--red)
}

/* dropdown: dark panel to match the dark nav (fixes white-on-white names) */
.bp .dd {
  background: var(--bp-panel);
  border-color: var(--line-d);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7)
}

.bp .nav .dd a,
.bp .nav.scrolled .dd a {
  color: #fff
}

.bp .nav .dd a:hover,
.bp .nav.scrolled .dd a:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff
}

.bp .dd a .mono {
  color: var(--red-2)
}

.bp .dd a small {
  color: var(--muted-d)
}

/* Scanners (#scanners) on desktop: a little tighter than the original, but with room to breathe */
@media (min-width:861px) {
  #scanners .sec-head {
    grid-template-columns: 1.5fr 1fr;
    margin-bottom: 32px
  }

  #scanners .sc {
    grid-template-columns: 280px 1fr
  }

  #scanners .sc-tab {
    padding: 20px 24px
  }

  #scanners .sc-panel {
    padding: 38px 42px;
    gap: 40px;
    grid-template-columns: 1.25fr 1fr
  }

  #scanners .sc-panel h3 {
    font-size: var(--t-h3);
    margin: 10px 0 14px
  }

  #scanners .sc-panel p.d {
    margin-bottom: 20px
  }

  #scanners .sc-list {
    gap: 10px
  }

  #scanners .sc-list li {
    line-height: 1.5
  }

  #scanners .sc-tags {
    margin-top: 22px
  }

  #scanners .sc-shot {
    top: 110px
  }

  #scanners .sc-shot img {
    max-height: 360px
  }
}

/* Bottom half of the page alternates clearly: Report management light, Secure by design dark, Get started a red gradient band */
@media (min-width:861px) {
  #reports.bp-sec {
    padding-top: 80px;
    padding-bottom: 80px
  }
}

/* Report management on light */
#reports .report ol {
  border-top-color: var(--line)
}

#reports .report li {
  border-bottom-color: var(--line);
  color: var(--ink)
}

#reports .report li small {
  color: var(--muted)
}

#reports .report li::before {
  color: var(--red-text)
}

#reports .report .stack .shot {
  border-color: var(--line);
  box-shadow: 0 30px 60px -30px rgba(12, 11, 46, .35)
}

/* Secure by design on dark */
#access .sec-box {
  background: var(--bp-panel);
  border-color: var(--line-d);
  color: #fff
}

#access .sec-box>p,
#access .sec-feats p {
  color: var(--muted-d)
}

#access .role {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-d)
}

#access .role span {
  color: var(--muted-d)
}

#access .role.custom {
  background: transparent
}

#access .sec-feats div {
  border-top-color: var(--line-d)
}

#access .sec-feats .mono {
  color: var(--red-2)
}

/* Get started: its own band, distinct from the dark section above and the navy footer below */
.bp #demo {
  border-top: 0;
  background: radial-gradient(60% 120% at 50% 120%, rgba(255, 138, 149, .35), transparent 60%), linear-gradient(135deg, #a3283a 0%, #5a1a3a 45%, #1a0f2e 100%)
}

.bp #demo::before {
  /* the grid of thin lines over this band is switched off. To bring it back, replace display:none with:
     background: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
     background-size: 44px 44px;
     -webkit-mask-image: radial-gradient(70% 90% at 50% 50%, #000 30%, transparent 80%); mask-image: radial-gradient(70% 90% at 50% 50%, #000 30%, transparent 80%) */
  display: none
}

.bp #demo .eyebrow {
  color: #ffc2c8
}

.bp #demo p {
  color: rgba(255, 255, 255, .82)
}

.bp #demo .btn-red {
  background: #fff;
  color: var(--ink)
}

.bp #demo .btn-red:hover {
  background: #ffc2c8;
  color: var(--ink)
}


/* Platform services on desktop: horizontal cards (screenshot left, text right) so both rows fit one screen
   without shrinking padding or text */
@media (min-width:1101px) {
  #services-bp.bp-sec {
    padding-top: 44px
  }

  #services-bp .sec-head {
    margin-bottom: 28px
  }

  #services-bp .ps {
    gap: 20px;
    align-items: stretch
  }

  #services-bp .ps-card {
    flex-direction: row
  }

  #services-bp .ps-card .img {
    flex: 0 0 44%;
    aspect-ratio: auto;
    border-bottom: 0;
    border-right: 1px solid var(--line-d)
  }

  #services-bp .ps-card.big .img {
    flex-basis: 37%
  }

  #services-bp .ps-card .tx {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px 28px
  }

  #services-bp .ps-card:not(.big) .tx {
    padding: 22px 24px
  }

  #services-bp .ps-card h4 {
    margin: 8px 0 8px
  }

  #services-bp .ps-card:not(.big) .img {
    flex: 0 0 108px
  }

  #services-bp .ps-card:not(.big) .img.contain img {
    padding: 10px
  }

  #services-bp .ps-card:not(.big) h4 {
    font-size: var(--t-lead)
  }
}

@media (min-width:1101px) and (max-height:790px) {
  #services-bp.bp-sec {
    padding-top: 40px;
    padding-bottom: 40px
  }

  #services-bp .sec-head h2 {
    font-size: clamp(34px, 3.4vw, 46px)
  }

  #services-bp .sec-head {
    margin-bottom: 20px
  }

  #services-bp .ps-card ul {
    display: none
  }

  /* the Dashboard chips repeat the three cards below */
}

/* Platform services on desktop: bento grid. Dashboard is a tall card on the left spanning both rows,
   the other four sit in a 2x2 beside it; every card shows its screenshot on top, uncropped where possible */
@media (min-width:1101px) {
  #services-bp .sec-head {
    margin-bottom: 36px
  }

  #services-bp .ps {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 22px
  }

  #services-bp .ps-card,
  #services-bp .ps-card.big {
    grid-column: auto;
    flex-direction: column
  }

  #services-bp .ps-card:first-child {
    grid-row: span 2
  }

  #services-bp .ps-card .img {
    flex: none;
    aspect-ratio: 2.4/1;
    border-right: 0;
    border-bottom: 1px solid var(--line-d);
    background: #fff
  }

  #services-bp .ps-card:first-child .img {
    aspect-ratio: auto;
    flex: 1 1 auto;
    min-height: 220px;
    display: flex;
    align-items: center
  }

  #services-bp .ps-card:first-child .img img {
    object-fit: contain;
    object-position: center;
    padding: 14px 12px
  }

  #services-bp .ps-card.big:nth-child(2) .img img {
    object-fit: cover;
    object-position: top center
  }

  #services-bp .ps-card .img.contain img {
    padding: 10px 14px
  }

  #services-bp .ps-card .tx {
    flex: none;
    padding: 22px 26px 24px
  }

  #services-bp .ps-card:first-child .tx {
    padding: 26px 28px 28px
  }

  #services-bp .ps-card h4 {
    margin: 8px 0 8px
  }

  #services-bp .ps-card ul {
    display: flex;
    margin-top: 14px;
    gap: 8px
  }
}

@media (min-width:1101px) {
  #services-bp.bp-sec {
    padding-top: 48px
  }

  #services-bp .sec-head {
    margin-bottom: 32px
  }

  #services-bp .ps-card .img {
    aspect-ratio: 3.2/1
  }

  #services-bp .ps-card .tx>.mono {
    display: none
  }

  /* titles already say what each card is */
  #services-bp .ps-card h4 {
    margin: 0 0 8px
  }

  #services-bp .ps-card .tx {
    padding: 20px 24px 22px
  }

  #services-bp .ps-card:first-child .tx {
    padding: 22px 26px 24px
  }
}

@media (min-width:1101px) {
  #services-bp .ps-card h4 {
    min-height: 0
  }

  /* the site-wide two-line title reserve isn't needed here */
  #services-bp .ps-card:not(:first-child) .img {
    aspect-ratio: 3.6/1
  }
}

@media (min-width:1101px) {
  #services-bp.bp-sec {
    padding-top: 40px
  }

  #services-bp .sec-head {
    margin-bottom: 26px
  }
}

/* Platform services: moderate spacing, the same as Secure by design (56px section padding, 40px under the heading) */
@media (min-width:1101px) {
  #services-bp.bp-sec {
    padding-top: 56px;
    padding-bottom: 56px
  }

  #services-bp .sec-head {
    margin-bottom: 40px
  }
}

/* Platform services: a touch more room than Secure by design */
@media (min-width:1101px) {
  #services-bp.bp-sec {
    padding-top: 64px;
    padding-bottom: 64px
  }

  #services-bp .sec-head {
    margin-bottom: 44px
  }

  #services-bp .ps {
    gap: 24px
  }

  #services-bp .ps-card .tx {
    padding: 22px 26px 24px
  }

  #services-bp .ps-card:first-child .tx {
    padding: 26px 28px 28px
  }
}

/* Secure by design: same extra room as Platform services */
@media (min-width:1101px) {
  #access.bp-sec {
    padding-top: 64px;
    padding-bottom: 64px
  }

  #access .sec-head {
    margin-bottom: 44px
  }

  #access .secg {
    gap: 24px
  }
}