/* SiteBirdy page. Shared Site.eu components (ratings, services, plans, FAQ, footer sections) keep their own styles.
   No text below 14px. */

.sbp-hero,
.sbp-section,
.sbp-plans-intro {
  --sbp-navy: #22203f;
  --sbp-yellow: #ffda77;
}

/* ---------- Hero ---------- */
.sbp-hero {
  --sbp-max: 1240px;
  --sbp-gutter: 40px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--sbp-navy);
  color: #fff;
  font-family: var(--font-uni-neue);
}
.sbp-hero a {
  color: inherit;
  text-decoration: none;
}
.sbp-hero :is(a, button):focus-visible {
  outline: 3px solid #cbb8f3;
  outline-offset: 6px;
}
.sbp-hero-wrap {
  position: relative;
  z-index: 1;
  width: calc(100% - var(--sbp-gutter) * 2);
  max-width: var(--sbp-max);
  margin-inline: auto;
}
.sbp-crumb {
  padding-top: 22px;
  color: #d5d1e3;
  font: 400 14px/1.5 var(--font-nunito);
}
.sbp-crumb ol,
.sbp-crumb li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sbp-crumb ol {
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sbp-crumb a:hover {
  text-decoration: underline;
}
.sbp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  min-height: 600px;
  padding: 36px 0 72px;
}
.sbp-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #dbd0f4;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.sbp-label::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bca2f0;
}
.sbp-hero h1 {
  margin: 22px 0 0;
  font-size: clamp(42px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
}
.sbp-hero h1 em {
  color: var(--sbp-yellow);
  font-style: normal;
}
.sbp-intro {
  max-width: 540px;
  margin: 22px 0 0;
  color: #d3cddd;
  font-family: var(--font-nunito);
  font-size: 18px;
  line-height: 1.6;
}
.sbp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}
.sbp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 16px 23px;
  border-radius: 8px;
  background: var(--sbp-yellow);
  color: var(--sbp-navy) !important;
  font: 800 16px/1.2 var(--font-uni-neue);
  transition:
    transform 0.15s,
    background 0.15s;
}
.sbp-btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.sbp-btn:hover {
  transform: translateY(-2px);
  background: #ffe397;
}
.sbp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: 700 15px/1.3 var(--font-uni-neue);
  cursor: pointer;
}
.sbp-link svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.sbp-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.sbp-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: #d3cddd;
  font: 600 15px/1.4 var(--font-nunito);
}
.sbp-includes li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sbp-includes svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: #92e990;
}

/* The promo: landscape here, portrait on phones. */
.sbp-video-stage {
  position: relative;
  isolation: isolate;
}

/* The big way to SiteBirdy itself, under the video. */
.sbp-site-link {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 48px;
  padding: 18px 26px;
  border: 2px solid #ffffff38;
  border-radius: 14px;
  background: #ffffff12;
  color: #fff;
  font: 800 21px/1.2 var(--font-uni-neue);
  transition:
    transform 0.15s,
    background 0.15s,
    border-color 0.15s;
}
.sbp-site-link img {
  width: auto;
  height: 32px;
}
.sbp-site-link svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--sbp-yellow);
}
.sbp-site-link:hover {
  border-color: var(--sbp-yellow);
  background: #ffffff1f;
  transform: translateY(-2px);
}

/* Every "SiteBirdy" in the copy links to sitebirdy.com (opened in a new tab by sitebirdy-page.js). */
main a.sbp-copy-link {
  color: var(--pink);
  text-decoration: none;
}
main a.sbp-copy-link:hover,
main a.sbp-copy-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sbp-video {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid #1e1e41;
  border-radius: 18px;
  background: #fff;
  box-shadow: -15px 15px 0 #bcefff;
}
.sbp-video video,
.sbp-video-poster,
.sbp-video-poster img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.sbp-video video {
  object-fit: contain;
  background: #fff;
}
.sbp-video-poster img {
  object-fit: cover;
}
.sbp-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 13%;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.sbp-video-play > span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 16px;
  border-radius: 99px;
  background: #1e1e41;
  color: #fff;
  font: 800 16px/1 var(--font-uni-neue);
  white-space: nowrap;
  box-shadow: 0 10px 30px #1e1e4133;
  transition:
    transform 0.2s,
    background 0.2s;
}
.sbp-video-play i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sbp-yellow);
  color: var(--sbp-navy);
}
.sbp-video-play i svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}
.sbp-video-play:hover > span {
  background: #3b345b;
  transform: translateY(-3px);
}
.sbp-video-play:focus-visible {
  outline: none;
}
.sbp-video-play:focus-visible > span {
  outline: 3px solid #cbb8f3;
  outline-offset: 4px;
}
.sbp-video.is-playing :is(.sbp-video-poster, .sbp-video-play) {
  display: none;
}

/* ---------- Hero shapes: a set of its own, around the copy and the video ---------- */
.sbp-hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.sbp-shape {
  position: absolute;
  display: block;
  pointer-events: none;
}
.sbp-shape-top {
  top: 0;
  right: 0;
  width: 170px;
  height: 120px;
}
/* Only the room outside the content column is used, so the shape never sits behind the copy. */
.sbp-shape-rail {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: clamp(0px, calc((100% - var(--sbp-max)) / 2 - 24px), 64px);
  overflow: hidden;
}
.sbp-shape-left {
  top: 34%;
  left: 0;
  width: 64px;
  height: 160px;
}
.sbp-shape-bottom {
  bottom: 0;
  left: calc(50% - 40px);
  width: 120px;
  height: 64px;
}
.sbp-shape-quarter {
  top: -44px;
  left: -44px;
  z-index: 0;
  width: 96px;
  height: 96px;
}
.sbp-shape-half {
  right: 56px;
  bottom: -44px;
  z-index: 0;
  width: 110px;
  height: 55px;
}
.sbp-shape-side {
  top: 30%;
  right: -84px;
  z-index: 0;
  width: 48px;
  height: 96px;
}
.sbp-shape-diamond {
  top: -18px;
  right: 18%;
  z-index: 2;
  width: 36px;
  height: 36px;
  background: #ff7d81;
  transform: rotate(45deg);
}

/* About 800px tall on desktop, but never taller than the first screen (with a floor for short screens). */
@media (min-width: 1001px) {
  .sbp-hero {
    display: flex;
    flex-direction: column;
    min-height: min(800px, max(640px, calc(100svh - var(--header-height, 75px))));
  }
  .sbp-hero-grid {
    flex: 1 0 auto;
  }
}
@media (max-width: 1360px) {
  .sbp-shape-side {
    display: none;
  }
}
@media (max-width: 1150px) {
  .sbp-hero {
    --sbp-gutter: 32px;
  }
  .sbp-hero-grid {
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    gap: 48px;
  }
  .sbp-hero h1 {
    font-size: 52px;
  }
  .sbp-intro {
    font-size: 17px;
  }
}
@media (max-width: 1000px) {
  .sbp-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
    min-height: 0;
    padding: 28px 0 80px;
  }
  .sbp-hero-copy,
  .sbp-crumb {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
  }
  .sbp-hero h1 {
    font-size: 60px;
  }
  .sbp-hero-visual {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
  }
  .sbp-shape-bottom {
    left: 12%;
  }
}
@media (max-width: 600px) {
  .sbp-hero {
    --sbp-gutter: 20px;
  }
  .sbp-crumb {
    padding-top: 20px;
    padding-right: 96px;
  }
  .sbp-crumb ol,
  .sbp-crumb li {
    gap: 8px;
  }
  .sbp-hero-grid {
    gap: 56px;
    padding: 22px 0 76px;
  }
  .sbp-hero h1 {
    font-size: 44px;
    letter-spacing: -1px;
  }
  .sbp-intro {
    font-size: 17px;
  }
  .sbp-actions {
    gap: 12px 20px;
  }
  .sbp-includes {
    margin-top: 24px;
  }
  /* Phones get the portrait promo. */
  .sbp-hero-visual {
    width: min(100%, 320px);
  }
  .sbp-site-link {
    flex-wrap: nowrap;
    gap: 10px;
    width: calc(100vw - 40px);
    margin: 44px 0 0 50%;
    padding: 16px 14px;
    font-size: 17px;
    transform: translateX(-50%);
  }
  .sbp-site-link:hover {
    transform: translate(-50%, -2px);
  }
  .sbp-site-link img {
    height: 22px;
  }
  .sbp-site-link svg {
    width: 20px;
    height: 20px;
  }
  .sbp-video {
    aspect-ratio: 9 / 16;
  }
  .sbp-video-play {
    padding-bottom: 24%;
  }
  .sbp-video-play > span {
    gap: 10px;
    padding: 12px 18px 12px 12px;
    font-size: 15px;
  }
  .sbp-shape-top {
    width: 102px;
    height: 72px;
  }
  .sbp-shape-quarter {
    top: -34px;
    left: -34px;
    width: 72px;
    height: 72px;
  }
  .sbp-shape-half {
    right: 28px;
    bottom: -36px;
    width: 88px;
    height: 44px;
  }
  .sbp-shape-diamond {
    top: -14px;
    width: 28px;
    height: 28px;
  }
  .sbp-shape-bottom {
    left: 20px;
    width: 90px;
    height: 48px;
  }
}

/* ---------- Strip under the hero (as on the web hosting page) ---------- */
.sbp-services {
  background: #f7f5fa;
  color: #22203f;
}
.sbp-services hr {
  border-color: #d8d2e3;
}

/* ---------- Sections ---------- */
.sbp-section {
  padding: 96px 0;
}
.sbp-wrap {
  width: calc(100% - 80px);
  max-width: 1120px;
  margin-inline: auto;
}
.sbp-center {
  text-align: center;
}
.sbp-eyebrow {
  margin: 0;
  font: 700 14px/20px var(--font-overpass);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sbp-h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
}
.sbp-h2 em {
  font-style: normal;
  box-shadow: inset 0 -0.32em 0 #ffd672;
}
.sbp-lead {
  max-width: 640px;
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.6;
}
.sbp-center .sbp-lead {
  margin-inline: auto;
}

/* ---------- Highlights: copy beside a live clip ---------- */
.sbp-rows {
  display: grid;
  gap: 110px;
  margin-top: 72px;
}
.sbp-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 72px;
}
.sbp-row.is-left .sbp-row-copy {
  order: 2;
}
.sbp-row-copy > :first-child {
  margin-top: 0;
}
.sbp-row-copy > :last-child {
  margin-bottom: 0;
}
.sbp-clip {
  position: relative;
}
.sbp-clip video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 940 / 820;
  object-fit: cover;
  border-radius: 6px 20px;
  background: #eef1fb;
  box-shadow: -15px 15px 0 rgb(0 0 0 / 3%);
}
.sbp-clip-shape {
  position: absolute;
  display: block;
  pointer-events: none;
}
.sbp-clip-pair {
  top: 100%;
  width: 112px;
  height: 56px;
}
.sbp-clip-diamond {
  top: -17px;
  z-index: 2;
  width: 35px;
  height: 35px;
  transform: rotate(45deg);
}
.sbp-row.is-right .sbp-clip-pair {
  left: 12%;
}
.sbp-row.is-right .sbp-clip-diamond {
  right: 24px;
}
.sbp-row.is-left .sbp-clip-pair {
  right: 12%;
  transform: scaleX(-1);
}
.sbp-row.is-left .sbp-clip-diamond {
  left: 24px;
}

/* ---------- Extras: six cards ---------- */
.sbp-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
.sbp-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 6px 20px;
  background: #fff;
  box-shadow: -15px 15px 0 rgb(0 0 0 / 3%);
}
/* Pictures made for the card (355 × 230) from the app's own components. */
.sbp-card-media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 355 / 230;
  object-fit: cover;
}
.sbp-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 26px;
}
.sbp-card-body h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}
.sbp-card-body p {
  margin: 0;
}
.sbp-card-body p:last-child {
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Privacy ---------- */
.sbp-privacy {
  position: relative;
  background: #f1edfc;
}
/* Site.eu's section wave (horizontal-wave-short.svg, as under the support heroes) at twice its length,
   filled with the neighbouring section's colour. */
.sbp-wave {
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  pointer-events: none;
  -webkit-mask: url('/assets/images/overlays/horizontal-wave-wide.svg') repeat-x left top / auto 50px;
  mask: url('/assets/images/overlays/horizontal-wave-wide.svg') repeat-x left top / auto 50px;
}
.sbp-wave-top {
  top: 0;
  background: var(--blue-light);
  transform: rotate(180deg);
}
.sbp-wave-bottom {
  bottom: 0;
  background: var(--yellow-light);
}
.sbp-privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
.sbp-privacy-grid li {
  padding: 24px 22px;
  border-radius: 6px 20px;
  background: #fff;
  box-shadow: -15px 15px 0 #e0d6f7;
}
.sbp-privacy-grid h3 {
  margin: 16px 0 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}
.sbp-privacy-grid p {
  margin: 8px 0 0;
  color: #43435a;
  font-size: 15px;
  line-height: 1.55;
}
.sbp-tile {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid #1e1e41;
  border-radius: 12px;
  background: var(--tile, #bcefff);
  color: #1e1e41;
  box-shadow: -4px 4px 0 #1e1e4122;
}
.sbp-tile svg {
  width: 22px;
  height: 22px;
}
.sbp-tile.is-blue {
  --tile: #bcefff;
}
.sbp-tile.is-pink {
  --tile: #ffa6c2;
}
.sbp-tile.is-green {
  --tile: #92e990;
}
.sbp-tile.is-yellow {
  --tile: #ffd672;
}

/* ---------- How to start ---------- */
.sbp-start {
  background: var(--yellow-light);
}
.sbp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: sbp-step;
}
.sbp-steps li {
  padding: 26px 24px 24px;
  border: 2px solid #1e1e41;
  border-radius: 16px;
  background: #fff;
}
.sbp-steps li::before {
  counter-increment: sbp-step;
  content: counter(sbp-step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #ffd672;
  font: 800 18px/1 var(--font-uni-neue);
}
.sbp-steps h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}
.sbp-steps p {
  margin: 8px 0 0;
  color: #43435a;
  line-height: 1.6;
}

/* ---------- Plans intro ---------- */
.sbp-plans-intro {
  padding: 88px 0 0;
}

/* In-page targets stay clear of the sticky header. */
#plans-list {
  scroll-margin-top: var(--header-height, 75px);
}

@media (max-width: 1000px) {
  .sbp-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .sbp-row.is-left .sbp-row-copy {
    order: 0;
  }
  .sbp-clip {
    max-width: 620px;
  }
  .sbp-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sbp-privacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sbp-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .sbp-section {
    padding: 64px 0;
  }
  .sbp-wrap {
    width: calc(100% - 40px);
  }
  .sbp-rows {
    gap: 80px;
    margin-top: 48px;
  }
  .sbp-clip-pair {
    width: 80px;
    height: 40px;
  }
  .sbp-clip-diamond {
    top: -13px;
    width: 26px;
    height: 26px;
  }
  .sbp-cards,
  .sbp-privacy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sbp-plans-intro {
    padding-top: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sbp-btn,
  .sbp-site-link,
  .sbp-video-play > span {
    transition: none;
  }
}
