/* Shared banner system for the Google and Instagram service page. */
.ad-banner {
  --banner-blue: #174c94;
  --banner-deep: #12366a;
  --banner-gold: #b9882d;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.17fr .83fr;
  place-items: stretch;
  gap: 0;
  padding: 0;
  border: 1px solid #dce6f5;
  border-radius: 12px;
  text-align: left;
  color: var(--banner-deep);
  background: linear-gradient(108deg,#fff 30%,#f4f8fd 70%,#e3eefb);
}
.ad-banner::before,.ad-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  pointer-events: none;
}
.ad-banner::before {
  height: 10%;
  background: linear-gradient(105deg,#e5bd61,#fbdf92 45%,#c79028);
  clip-path: polygon(0 20%,35% 64%,71% 76%,100% 4%,100% 100%,0 100%);
}
.ad-banner::after {
  height: 7%;
  background: linear-gradient(115deg,#174c94,#2875bb 63%,#164889);
  clip-path: polygon(0 22%,37% 77%,71% 89%,100% 17%,100% 100%,0 100%);
}
.banner-copy {
  z-index: 2;
  align-self: center;
  min-width: 0;
  padding: 1rem 0 1.2rem 8%;
  display: grid;
  justify-items: start;
  gap: .45rem;
}
.banner-brand {
  font-size: clamp(.75rem,1.45vw,1.14rem);
  font-weight: 950;
  letter-spacing: -.015em;
}
.banner-category {
  display: inline-block;
  padding: .14em .75em;
  border-radius: 2px;
  font-size: clamp(.65rem,1.2vw,.91rem);
  font-weight: 850;
  color: #3b290b;
  background: linear-gradient(110deg,#e2b552,#f7dfa1);
}
.banner-title {
  line-height: 1.18;
  font-size: clamp(1.25rem,3.25vw,2.65rem);
  letter-spacing: -.045em;
  font-weight: 950;
}
.banner-description {
  line-height: 1.4;
  font-size: clamp(.76rem,1.5vw,1.05rem);
  font-weight: 800;
}
.banner-art {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 8% 8% 12%;
}
.banner-device {
  position: relative;
  z-index: 1;
  width: min(96%,195px);
  background: #fff;
  border: clamp(2px,.44vw,5px) solid #1b3f64;
  border-radius: clamp(7px,1.6vw,18px);
  overflow: hidden;
  box-shadow: 0 7px 20px #1d437937;
  transform: rotate(-5deg);
}
.device-header {
  background: #e8f1fc;
  color: var(--banner-deep);
  font-size: clamp(.6rem,1.23vw,.86rem);
  font-weight: 850;
  padding: .5em .66em;
}
.device-content {
  padding: .45em .57em;
  font-size: clamp(.56rem,1.12vw,.83rem);
  line-height: 1.35;
}
.device-content strong {
  display: block;
  padding-block: .1em .35em;
  font-weight: 950;
}
.device-row {
  display: grid;
  padding-block: .3em;
  border-top: 1px solid #dce7f3;
}
.device-row span {
  color: #3b526b;
  font-size: .91em;
}
.device-photo {
  height: 3.3em;
  background: #e3ebf6 url("assets/salon-stylist.jpg") center 36% / cover no-repeat;
  border-radius: 3px;
  margin-bottom: .35em;
}
.banner-demo {
  position: absolute;
  z-index: 2;
  right: 7%;
  bottom: 8%;
  padding: 1px 7px;
  border-radius: 8px;
  color: #12366a;
  background: #fff4d7;
  font-size: clamp(.58rem,1vw,.72rem);
  font-weight: 750;
  white-space: nowrap;
}
.hero>.ad-hero {
  grid-template-columns: 1fr 1fr;
  min-height: 325px;
  height: auto;
  max-height: 500px;
  aspect-ratio: 1280/437;
  border: 0;
  border-radius: 0;
}
.ad-hero .banner-copy {
  padding-left: clamp(24px,7.2vw,110px);
  gap: clamp(7px,1.2vw,16px);
}
.ad-hero .banner-title {
  font-size: clamp(1.6rem,3.8vw,3.45rem);
}
.ad-hero .banner-art {
  padding-right: 36%;
  padding-left: 0;
  background: linear-gradient(90deg,#f6f9fe 0%,transparent 32%),
    url("assets/salon-stylist.jpg") right 40% / cover no-repeat;
}
.ad-hero .banner-device {
  margin-right: 10%;
}
.ad-hero .device-secondary {
  position: absolute;
  width: min(27%,155px);
  left: 34%;
  top: 34%;
  transform: rotate(6deg);
}
.ad-feature {
  min-height: clamp(174px,28vw,280px);
}
.ad-feature .banner-copy { padding-left: 8%; }
.ad-screen {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  min-height: 230px;
}
.ad-screen .banner-copy {
  padding: .75rem .6rem .2rem;
  justify-items: center;
  text-align: center;
}
.ad-screen .banner-title {font-size: clamp(1.05rem,2vw,1.5rem);}
.ad-screen .banner-art {padding: .25rem 12% 14%;}
.ad-screen .banner-device {width:min(100%,165px);transform:none;}
.ad-compact {
  min-height: 132px;
}
.ad-compact .banner-title {font-size:clamp(.98rem,2.15vw,1.65rem);}
.ad-compact .device-row:nth-of-type(n+3) {display:none;}
@media(max-width:760px) {
  .hero>.ad-hero {min-height: 230px;max-height:none;aspect-ratio: 16/10;grid-template-columns: 1.15fr .85fr;}
  .ad-hero .banner-title {font-size:clamp(1.02rem,4.0vw,2rem);}
  .ad-hero .banner-art {padding-right:14%;background-position:right center;}
  .ad-hero .banner-device {width:85%;margin-right:16%;}
  .ad-hero .device-secondary {display:none;}
  .ad-hero .banner-copy {padding-left:6%;gap:5px;}
  .ad-feature .banner-title {font-size:clamp(1.18rem,4.1vw,2.05rem);}
  .ad-screen {min-height:225px;}
  .ad-screen .banner-title {font-size:1.1rem;}
}
