:root {
  --public-hero-desktop: 650px;
  --public-hero-mobile: 740px;
}

.public-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-home .hero,
.page-process .phero,
.page-pricing .phero,
.page-contact .phero {
  position: relative;
  height: var(--public-hero-desktop);
  min-height: var(--public-hero-desktop);
  padding: 0;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #091426;
}

.page-home .hero::before,
.page-process .phero::before,
.page-pricing .phero::before,
.page-contact .phero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 1;
  mask-image: none;
  background: linear-gradient(
    90deg,
    rgba(6, 16, 34, 0.96) 0%,
    rgba(6, 16, 34, 0.88) 35%,
    rgba(6, 16, 34, 0.38) 64%,
    rgba(6, 16, 34, 0.08) 100%
  );
}

.page-home .hero-grid,
.page-process .phero .inner,
.page-pricing .phero .inner,
.page-contact .phero .inner {
  position: relative;
  z-index: 2;
  min-height: var(--public-hero-desktop);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 58px;
  padding-bottom: 42px;
  padding-left: 0;
  padding-right: 0;
}

.page-home .hero-grid {
  width: min(1440px, calc(100% - 48px));
  max-width: none;
  margin-inline: auto;
}

.page-home .hero-grid > div:first-child {
  width: min(790px, 64%);
}

.page-process .phero .inner,
.page-pricing .phero .inner,
.page-contact .phero .inner {
  width: min(1440px, calc(100% - 48px));
  max-width: none;
  margin-inline: auto;
}

.page-process .phero .inner > *,
.page-pricing .phero .inner > *,
.page-contact .phero .inner > * {
  max-width: 790px;
}

.page-home .hero-mock {
  display: none;
}

.page-home .hero h1,
.page-process .phero h1,
.page-pricing .phero h1,
.page-contact .phero h1 {
  max-width: 17ch;
  color: #fff;
  font-size: clamp(42px, 4.7vw, 62px);
  letter-spacing: 0;
}

.page-home .hero p.sub,
.page-process .phero p,
.page-pricing .phero p,
.page-contact .phero p {
  max-width: 61ch;
  margin: 18px 0 0;
  color: #dce7f7;
  font-size: 17px;
  line-height: 1.6;
}

.page-home .hero .eyebrow,
.page-process .phero .eyebrow,
.page-pricing .phero .eyebrow,
.page-contact .phero .eyebrow {
  margin-bottom: 18px;
  padding: 0;
  color: #85b4ff !important;
  -webkit-text-fill-color: #85b4ff !important;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page-home .hero-cta,
.page-process .hero-cta,
.page-pricing .hero-cta,
.page-contact .hero-cta {
  margin-top: 24px;
}

.page-home .reassure,
.page-process .chips,
.page-pricing .chips,
.page-contact .chips {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.page-process .chips,
.page-pricing .chips,
.page-contact .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-process .chip,
.page-pricing .chip,
.page-contact .chip {
  color: #c8d8ee;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(5, 15, 32, 0.24);
}

.page-features .feature-hero {
  position: relative;
  height: var(--public-hero-desktop);
  min-height: var(--public-hero-desktop);
  padding: 0;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #091426;
}

.page-features .feature-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 1;
  mask-image: none;
  background: linear-gradient(
    90deg,
    rgba(6, 16, 34, 0.97) 0%,
    rgba(6, 16, 34, 0.88) 38%,
    rgba(6, 16, 34, 0.34) 66%,
    rgba(6, 16, 34, 0.08) 100%
  );
}

.page-features .feature-hero .public-hero-bg {
  object-position: center;
}

.page-features .feature-hero .hero-grid {
  position: relative;
  z-index: 2;
  width: min(1440px, calc(100% - 48px));
  height: var(--public-hero-desktop);
  min-height: var(--public-hero-desktop);
  margin-inline: auto;
  padding: 58px 0 42px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.page-features .feature-hero-copy {
  width: min(790px, 62%);
}

.page-features .feature-hero h1 {
  max-width: 15ch;
  font-size: clamp(42px, 4.5vw, 62px);
  letter-spacing: 0;
}

.page-features .feature-hero p {
  max-width: 61ch;
  margin: 18px 0 0;
  color: #dce7f7;
  font-size: 17px;
  line-height: 1.6;
}

.page-features .feature-hero .eyebrow {
  margin-bottom: 18px;
  padding: 0;
  color: #85b4ff !important;
  -webkit-text-fill-color: #85b4ff !important;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page-features .feature-hero-stats {
  width: 100%;
  max-width: 760px;
  margin-top: 26px;
  padding-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.page-features .feature-hero-stats span {
  display: grid;
  gap: 3px;
}

.page-features .feature-hero-stats strong {
  color: #fff;
  font-family: var(--f-display);
  font-size: 21px;
  line-height: 1.1;
}

.page-features .feature-hero-stats small {
  color: #b9c9df;
  font-size: 13px;
}

.page-features .module-map-showcase {
  padding: 82px 0 88px;
  background: #f7f9fd;
  border-bottom: 1px solid var(--line);
}

.page-features .module-map-intro {
  max-width: 900px;
  margin: 0 auto 34px;
  text-align: center;
}

.page-features .module-map-intro h2 {
  margin-top: 10px;
  font-size: clamp(34px, 4vw, 48px);
}

.page-features .module-map-intro p {
  max-width: 72ch;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.page-features .module-map-frame {
  width: min(1400px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #203a61;
  border-radius: 8px;
  background: #07101f;
  box-shadow: 0 24px 70px rgba(12, 31, 61, 0.18);
}

.page-features .module-map-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.page-features .module-map-proof {
  width: min(1200px, 100%);
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.page-features .module-map-proof span {
  padding-left: 18px;
  display: grid;
  gap: 5px;
  border-left: 3px solid #3d7cff;
}

.page-features .module-map-proof strong {
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 17px;
}

.page-features .module-map-proof small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .page-home .hero,
  .page-process .phero,
  .page-pricing .phero,
  .page-contact .phero,
  .page-features .feature-hero {
    height: var(--public-hero-mobile);
    min-height: var(--public-hero-mobile);
  }

  .page-home .hero::before,
  .page-process .phero::before,
  .page-pricing .phero::before,
  .page-contact .phero::before {
    background: linear-gradient(
      180deg,
      rgba(6, 16, 34, 0.1) 0%,
      rgba(6, 16, 34, 0.72) 43%,
      rgba(6, 16, 34, 0.96) 72%,
      rgba(6, 16, 34, 0.98) 100%
    );
  }

  .page-home .public-hero-bg,
  .page-process .public-hero-bg,
  .page-pricing .public-hero-bg,
  .page-contact .public-hero-bg {
    object-position: 67% center;
  }

  .page-home .hero-grid,
  .page-process .phero .inner,
  .page-pricing .phero .inner,
  .page-contact .phero .inner {
    min-height: var(--public-hero-mobile);
    width: calc(100% - 36px);
    padding: 60px 0 24px;
  }

  .page-home .hero-grid > div:first-child,
  .page-process .phero .inner > *,
  .page-pricing .phero .inner > *,
  .page-contact .phero .inner > * {
    width: 100%;
    max-width: none;
  }

  .page-home .hero h1,
  .page-process .phero h1,
  .page-pricing .phero h1,
  .page-contact .phero h1 {
    max-width: none;
    font-size: 36px;
  }

  .page-home .hero p.sub,
  .page-process .phero p,
  .page-pricing .phero p,
  .page-contact .phero p {
    font-size: 16px;
  }

  .page-features .feature-hero .hero-grid {
    height: var(--public-hero-mobile);
    min-height: var(--public-hero-mobile);
    width: calc(100% - 36px);
    padding: 60px 0 64px;
    justify-content: flex-end;
  }

  .page-features .feature-hero::before {
    background: linear-gradient(
      180deg,
      rgba(6, 16, 34, 0.1) 0%,
      rgba(6, 16, 34, 0.72) 43%,
      rgba(6, 16, 34, 0.96) 72%,
      rgba(6, 16, 34, 0.98) 100%
    );
  }

  .page-features .feature-hero .public-hero-bg {
    object-position: 68% center;
  }

  .page-features .feature-hero-copy {
    width: 100%;
  }

  .page-features .feature-hero h1 {
    max-width: 17ch;
    font-size: 32px;
    line-height: 1.08;
  }

  .page-features .feature-hero p {
    margin: 12px 0 16px;
    font-size: 14px;
    line-height: 1.5;
  }

  .page-features .feature-hero .hero-cta,
  .page-home .hero-cta,
  .page-process .hero-cta,
  .page-pricing .hero-cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .page-features .feature-hero .hero-cta .btn,
  .page-home .hero-cta .btn,
  .page-process .hero-cta .btn,
  .page-pricing .hero-cta .btn {
    width: auto;
    min-height: 44px;
    padding: 10px 8px;
    justify-content: center;
    font-size: 13px;
    text-align: center;
  }

  .page-features .feature-hero-stats {
    margin-top: 18px;
    padding-top: 14px;
    gap: 10px;
  }

  .page-features .feature-hero-stats strong {
    font-size: 16px;
  }

  .page-features .feature-hero-stats small {
    font-size: 11px;
  }

  .page-features .module-map-showcase {
    padding: 64px 0 68px;
  }

  .page-features .module-map-intro {
    margin-bottom: 26px;
  }

  .page-features .module-map-proof {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .page-process .phero h1,
  .page-pricing .phero h1,
  .page-home .hero h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .page-process .phero p,
  .page-pricing .phero p,
  .page-home .hero p.sub {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.5;
  }

  .page-process .hero-cta,
  .page-pricing .hero-cta,
  .page-home .hero-cta {
    margin-top: 18px;
  }

  .page-process .chips,
  .page-pricing .chips,
  .page-home .reassure {
    margin-top: 18px;
    padding-top: 14px;
  }

  .page-process .chips,
  .page-pricing .chips {
    gap: 7px;
  }

  .page-process .chip,
  .page-pricing .chip {
    padding: 7px 10px;
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  .page-home .reassure {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .page-features .feature-hero .hero-grid {
    padding-inline: 0;
  }

  .page-features .feature-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-features .module-map-showcase .wrap-wide {
    width: calc(100% - 24px);
    padding-inline: 0;
  }

  .page-features .module-map-intro h2 {
    font-size: 31px;
  }

  .page-features .module-map-intro p {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-hero-bg {
    animation: none !important;
  }
}

/* Secondary public pages share the same visual grid and hero proportions. */
:is(.page-self-hosted, .page-partners, .page-partner-apply, .page-complaints)
  .phero {
  position: relative;
  height: var(--public-hero-desktop);
  min-height: var(--public-hero-desktop);
  padding: 0;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #091426;
}

:is(.page-self-hosted, .page-partners, .page-partner-apply, .page-complaints)
  .phero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 1;
  mask-image: none;
  background: linear-gradient(
    90deg,
    rgba(6, 16, 34, 0.97) 0%,
    rgba(6, 16, 34, 0.88) 38%,
    rgba(6, 16, 34, 0.34) 66%,
    rgba(6, 16, 34, 0.08) 100%
  );
}

:is(.page-self-hosted, .page-partners, .page-partner-apply, .page-complaints)
  .phero
  .inner {
  position: relative;
  z-index: 2;
  width: min(1440px, calc(100% - 48px));
  max-width: none;
  min-height: var(--public-hero-desktop);
  margin-inline: auto;
  padding: 58px 0 42px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

:is(.page-self-hosted, .page-partners, .page-partner-apply, .page-complaints)
  .phero
  .inner
  > * {
  max-width: 790px;
}

:is(.page-self-hosted, .page-partners, .page-partner-apply, .page-complaints)
  .phero
  h1 {
  max-width: 17ch;
  color: #fff;
  font-size: clamp(42px, 4.7vw, 62px);
  line-height: 1.08;
  letter-spacing: 0;
}

:is(.page-self-hosted, .page-partners, .page-partner-apply, .page-complaints)
  .phero
  p {
  max-width: 61ch;
  margin: 18px 0 0;
  color: #dce7f7;
  font-size: 17px;
  line-height: 1.6;
}

:is(.page-self-hosted, .page-partners, .page-partner-apply, .page-complaints)
  .phero
  .eyebrow {
  margin-bottom: 18px;
  padding: 0;
  color: #85b4ff !important;
  -webkit-text-fill-color: #85b4ff !important;
  border: 0;
  border-radius: 0;
  background: transparent;
}

:is(.page-self-hosted, .page-partners) .phero .hero-cta {
  margin-top: 24px;
}

:is(.page-self-hosted, .page-partners, .page-partner-apply, .page-complaints)
  .phero
  .chips {
  max-width: 790px;
  margin-top: 26px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

:is(.page-self-hosted, .page-partners, .page-partner-apply, .page-complaints)
  .phero
  .chip {
  color: #c8d8ee;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(5, 15, 32, 0.24);
}

@media (max-width: 900px) {
  :is(.page-self-hosted, .page-partners, .page-partner-apply, .page-complaints)
    .phero {
    height: var(--public-hero-mobile);
    min-height: var(--public-hero-mobile);
  }

  :is(.page-self-hosted, .page-partners, .page-partner-apply, .page-complaints)
    .phero::before {
    background: linear-gradient(
      180deg,
      rgba(6, 16, 34, 0.1) 0%,
      rgba(6, 16, 34, 0.72) 43%,
      rgba(6, 16, 34, 0.96) 72%,
      rgba(6, 16, 34, 0.98) 100%
    );
  }

  :is(.page-self-hosted, .page-partners, .page-partner-apply, .page-complaints)
    .phero
    .public-hero-bg {
    object-position: 68% center;
  }

  :is(.page-self-hosted, .page-partners, .page-partner-apply, .page-complaints)
    .phero
    .inner {
    width: calc(100% - 36px);
    min-height: var(--public-hero-mobile);
    padding: 60px 0 24px;
  }

  :is(.page-self-hosted, .page-partners, .page-partner-apply, .page-complaints)
    .phero
    .inner
    > * {
    width: 100%;
    max-width: none;
  }

  :is(.page-self-hosted, .page-partners, .page-partner-apply, .page-complaints)
    .phero
    h1 {
    max-width: none;
    font-size: 34px;
  }

  :is(.page-self-hosted, .page-partners, .page-partner-apply, .page-complaints)
    .phero
    p {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.5;
  }

  :is(.page-self-hosted, .page-partners) .phero .hero-cta {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  :is(.page-self-hosted, .page-partners) .phero .hero-cta .btn {
    width: auto;
    min-height: 44px;
    padding: 10px 8px;
    justify-content: center;
    font-size: 13px;
    text-align: center;
  }

  :is(.page-self-hosted, .page-partners, .page-partner-apply, .page-complaints)
    .phero
    .chips {
    margin-top: 18px;
    padding-top: 14px;
    gap: 7px;
  }

  :is(.page-self-hosted, .page-partners, .page-partner-apply, .page-complaints)
    .phero
    .chip {
    padding: 7px 10px;
    font-size: 11px;
  }
}
