/* Shared opening sections. About Us retains its own design. */
.page-hero,
.page-contact {
  --hero-highlight: var(--brand-blue);
  background:
    radial-gradient(ellipse at 88% 28%, #9ad1ed26, transparent 52%),
    linear-gradient(100deg, #181c20ed, #181c20c9),
    #202122 url('/assets/bg3.png') center / cover no-repeat;
  position: relative;
}

.page-hero::after,
.page-contact::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-blue) 0 40%, var(--brand-yellow) 40% 70%, var(--brand-green) 70% 90%, var(--brand-orange) 90%);
}

.page-hero:not(.home-hero) .hero-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: 72px;
}

.page-hero:not(.home-hero) .hero-copy {
  max-width: 760px;
}

.page-hero:not(.home-hero) h1 {
  margin-bottom: 28px;
  font-size: clamp(2.6rem, 4.5vw, 4.4rem);
  line-height: 1.12;
  text-wrap: balance;
}

.page-hero .hero-accent,
.page-contact .hero-accent {
  color: var(--hero-highlight);
}

.page-hero .hero-copy > .eyebrow,
.page-hero .hero-copy > div > p:first-child:has(+ h1) {
  color: var(--brand-blue);
}

.page-hero:not(.home-hero) .hero-copy p:not(.eyebrow):not(:has(+ h1)) {
  max-width: 650px;
  font-size: 1rem;
  line-height: 1.85;
}

.page-hero .hero-visual {
  min-width: 0;
}

.page-hero .hero-summary {
  padding: 32px;
  border: 1px solid #9ad1ed3b;
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff0d, #ffffff03);
  box-shadow: 0 20px 48px #00000017;
}

.page-hero .hero-summary-title {
  margin: 0 0 28px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

.hero-highlights {
  margin: 0;
}

.hero-highlights > div {
  margin-top: 22px;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--brand-blue);
}

.hero-highlights > div:nth-child(2) {
  border-left-color: var(--brand-yellow);
}

.hero-highlights > div:nth-child(3) {
  border-left-color: var(--brand-green);
}

.hero-highlights dt {
  margin-bottom: 4px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.hero-highlights dd {
  margin: 0;
  color: #c3cbd4;
  font-size: .9rem;
  line-height: 1.7;
}

.page-hero .hero-brand-panel {
  padding: 36px;
  border: 1px solid #ffffff52;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px #0003, 0 0 90px #9ad1ed0d;
}

.page-hero .hero-brand-panel .ct-logo {
  width: 100%;
  max-width: 320px;
  height: 120px;
  margin: 0 auto;
  padding: 12px 0;
  border-radius: 0;
  object-fit: contain;
}

.page-hero .hero-brand-caption {
  margin: 26px 0 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.6;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  padding: 5px 10px;
  border-radius: 8px;
  background: #e5f4fc;
  color: #245b73;
  font-size: .72rem;
}

.hero-tags li:nth-child(2) {
  color: #67580b;
  background: #fffbd1;
}

.hero-tags li:nth-child(3) {
  color: #326523;
  background: #e8f5e3;
}

.page-hero.shopify-hero {
  --hero-highlight: var(--brand-green);
}

.page-hero .hero-screen-panel {
  padding: 14px;
  border: 1px solid #ffffff3b;
  border-radius: 24px;
  background: #ffffff0a;
  box-shadow: 0 20px 60px #0003;
}

.page-hero .hero-screen-panel .screenshot {
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  box-shadow: none;
  border-radius: 12px;
}

.page-hero.home-hero {
  background:
    radial-gradient(ellipse at 90% 30%, #9ad1ed16, transparent 58%),
    #202122 url('/assets/bg3.png') center / cover no-repeat;
}

.page-hero.page-hero--compact {
  padding-block: 64px 72px;
}

.page-hero.page-hero--compact .hero-layout {
  grid-template-columns: minmax(0, 1fr);
}

.page-hero.page-hero--compact h1 {
  color: var(--brand-blue);
  font-size: clamp(2.4rem, 4vw, 3.75rem);
}

.page-contact .contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 72px;
}

.page-contact .contact-details {
  color: #fff;
}

.page-contact .contact-details .eyebrow {
  color: var(--brand-blue);
}

.page-contact .contact-details h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 4.6vw, 4.5rem);
}

.page-contact .contact-details p {
  color: #c3cbd4;
}

.page-contact .contact-details .contact-intro {
  max-width: 460px;
  margin-block: 26px;
  font-size: 1.05rem;
}

.page-contact .contact-details .contact-email {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--brand-blue);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  overflow-wrap: anywhere;
}

.page-contact .contact-details a:hover {
  color: var(--brand-yellow);
}

.page-contact form {
  color: var(--ink);
  border-radius: 24px;
  box-shadow: 0 20px 60px #0003;
}

@media (max-width: 1150px) {
  .page-hero:not(.home-hero) .hero-layout,
  .page-contact .contact-layout {
    gap: 40px;
  }

  .page-hero .hero-brand-panel,
  .page-hero .hero-summary {
    padding: 28px;
  }
}

@media (max-width: 960px) {
  .page-hero:not(.home-hero) .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .page-hero:not(.home-hero) .hero-visual {
    width: 100%;
    max-width: 560px;
    margin-inline: 0;
  }

  .hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .hero-highlights > div {
    margin-top: 0;
  }

  .page-contact .contact-layout {
    gap: 32px;
  }
}

@media (max-width: 720px) {
  .page-hero:not(.home-hero) h1 {
    font-size: clamp(2.25rem, 9vw, 3.3rem);
  }

  .page-hero .hero-brand-panel,
  .page-hero .hero-summary {
    padding: 24px;
    border-radius: 18px;
  }

  .page-hero .hero-brand-panel .ct-logo {
    height: 90px;
  }

  .page-hero .hero-summary-title {
    margin-bottom: 24px;
  }

  .hero-highlights {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-hero.page-hero--compact {
    padding-block: 48px 58px;
  }

  .page-contact .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .page-contact form {
    border-radius: 18px;
  }
}
