/* =================================================
   NEW HOMEPAGE STYLES
   Ported from React Homepage.css
   Font: Gibson (design), fallback to system fonts
================================================= */

.homepage {
  --hp-font: 'Gibson', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --hp-dark: #203540;
  --hp-blue: #0083CA;
  --hp-yellow: #FFC50A;
  --hp-white: #FFFFFF;
  --hp-light-bg: #F5FAFA;
  --hp-border: #E5E5E5;
  --hp-green: #79B25D;
  --hp-lime: #C3CC45;
  --hp-dark-bg: #404040;
  --hp-max-width: 1240px;
  --hp-content-width: 100%;
  --hp-testimonial-bg-opacity: 1;
  --hp-testimonial-overlay-opacity: 0.2;

  font-family: var(--hp-font);
  color: var(--hp-dark);
  background: var(--hp-white);
  overflow-x: hidden;
}

.homepage,
.demo-page,
.trial-page,
.tc-page,
.pricing-page {
  --cc-page-font: 'Gibson', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--cc-page-font);
}

.homepage :where(h1, h2, h3, h4, h5, h6, p, li, a, span, button, label, input, textarea, select, blockquote),
.demo-page :where(h1, h2, h3, h4, h5, h6, p, li, a, span, button, label, input, textarea, select, blockquote),
.trial-page :where(h1, h2, h3, h4, h5, h6, p, li, a, span, button, label, input, textarea, select, blockquote),
.tc-page :where(h1, h2, h3, h4, h5, h6, p, li, a, span, button, label, input, textarea, select, blockquote),
.pricing-page :where(h1, h2, h3, h4, h5, h6, p, li, a, span, button, label, input, textarea, select, blockquote) {
  font-family: var(--cc-page-font);
}

.homepage :is(.hp-improve, .hp-text-image, .hp-testimonial, .hp-case-studies, .hp-cta-panels) {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.homepage h1,
.demo-page h1,
.trial-page h1,
.tc-page h1,
.pricing-page h1 {
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
}

.homepage h2,
.demo-page h2,
.trial-page h2,
.tc-page h2,
.pricing-page h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.125;
}

.homepage h3,
.demo-page h3,
.trial-page h3,
.tc-page h3,
.pricing-page h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.homepage p,
.demo-page p,
.trial-page p,
.tc-page p,
.pricing-page p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.44;
}

@media (max-width: 768px) {
  .homepage h1,
  .demo-page h1,
  .trial-page h1,
  .tc-page h1,
  .pricing-page h1 {
    font-size: 36px;
  }

  .homepage h2,
  .demo-page h2,
  .trial-page h2,
  .tc-page h2,
  .pricing-page h2 {
    font-size: 28px;
  }
}

.homepage *,
.homepage *::before,
.homepage *::after {
  box-sizing: border-box;
}

.homepage img {
  max-width: 100%;
  height: auto;
}

.homepage a {
  text-decoration: none;
  color: inherit;
}

/* =================================================
   TOP BAR
================================================= */
.hp-topbar {
  background: linear-gradient(0deg, #404040 0%, #404040 100%), #203540;
  height: 50px;
  display: flex;
  align-items: center;
  font-family: var(--hp-font, 'Gibson', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  padding: 0 100px;
  gap: 10px;
}

.hp-topbar__phone-icon {
  width: 20px;
  height: 20px;
  fill: #FFFFFF;
  flex-shrink: 0;
}

.hp-topbar__number {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.44;
  white-space: nowrap;
}

.hp-topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.hp-topbar__btn {
  padding: 6px 15px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.hp-topbar__btn:hover {
  opacity: 0.85;
}

.hp-topbar__btn--find {
  color: #FFFFFF !important;
  border: 1px solid #FFFFFF;
}

.hp-topbar__btn--feedback {
  background: #FFC50A;
  color: #404040 !important;
}

.hp-topbar__btn--account {
  background: #0083CA;
  color: #FFFFFF !important;
}

.hp-topbar__divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .hp-topbar { padding: 0 40px; }
}

@media (max-width: 900px) {
  .hp-topbar { padding: 0 24px; }
  .hp-topbar__phone-icon,
  .hp-topbar__number,
  .hp-topbar__divider { display: none; }
  .hp-topbar__actions { margin-left: 0; width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
  .hp-topbar__actions { gap: 6px; }
  .hp-topbar__btn { padding: 5px 12px; font-size: 13px; }
}

/* =================================================
   NAVBAR
================================================= */
.hp-navbar {
  display: flex;
  align-items: center;
  padding: 20px 100px;
  position: relative;
}

.hp-navbar__logo {
  width: 170px;
  height: auto;
  flex-shrink: 0;
}

.hp-navbar__links {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.hp-navbar__link {
  font-size: 16px;
  font-weight: 400;
  color: var(--hp-dark);
  transition: color 0.2s;
  white-space: nowrap;
}

.hp-navbar__link:hover { color: var(--hp-blue); }

.hp-navbar__link--highlight {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hp-navbar__link-arrow {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: rgba(172, 191, 202, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hp-navbar__divider {
  width: 0.5px;
  height: 30px;
  background: rgba(172, 191, 202, 0.75);
}

.hp-navbar__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.hp-navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--hp-dark);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 1100px) {
  .hp-navbar { padding: 20px 40px; }
  .hp-navbar__links { gap: 25px; }
}

@media (max-width: 900px) {
  .hp-navbar { padding: 16px 24px; }
  .hp-navbar__links { display: none; }
  .hp-navbar__hamburger { display: block; }
  .hp-navbar__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }
  .hp-navbar__divider { display: none; }
}

@media (max-width: 440px) {
  .hp-navbar { padding: 16px 16px; }
}

/* =================================================
   CTA BUTTONS
================================================= */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 18px 28px;
  border-radius: 46px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
  text-decoration: none;
}

.hp-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.hp-btn--primary {
  background: var(--hp-blue);
  color: #FFFFFF !important;
}

.hp-btn--secondary {
  background: var(--hp-yellow);
  color: var(--hp-dark) !important;
}

.hp-btn--large {
  padding: 18px 64px;
}

/* =================================================
   HERO
================================================= */
.hp-hero {
  position: relative;
  border-radius: 30px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 100px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hp-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background:  #f5fafa url('/assets/img/homepage/hero-background.webp') center center / cover no-repeat;
}

.hp-hero__content {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 45%;
  max-width: 566px;
}

.hp-hero__title {
  color: var(--hp-dark);
  margin: 0 0 20px;
}

.hp-hero__subtitle {
  color: var(--hp-dark);
  margin: 0 0 40px;
  max-width: 505px;
}

.hp-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hp-hero__image {
  position: relative;
  flex: 0 0 auto;
  width: clamp(320px, 40vw, 640px);
  min-width: 0;
  z-index: 1;
}

.hp-hero__image img {
  width: 100%;
  height: auto;
}

.hp-hero__video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  display: block;
}

.hp-hero__video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: filter 0.25s;
}

.hp-hero__play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  /* Hidden until advertising cookies are accepted */
  display: none;
}

.hp-video--enabled .hp-hero__play-btn {
  display: flex;
}

.hp-hero__video-consent {
  position: absolute;
  inset: auto 16px 16px;
  z-index: 3;
  border-radius: 10px;
  background: rgba(32, 53, 64, 0.78);
  color: #FFFFFF;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  backdrop-filter: blur(2px);
}

.hp-hero__video-consent-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: #FFFFFF;
}

.hp-hero__video-consent-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  background: #FFC50A;
  color: #203540;
  cursor: pointer;
  white-space: nowrap;
}

.hp-video--enabled .hp-hero__video-consent {
  display: none;
}

.hp-hero__play-btn svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s;
}

/* Only apply hover effects (cursor, brightness, scale) when the video is enabled */
.hp-video--enabled {
  cursor: pointer;
}

.hp-hero__video-thumbnail:not(.hp-video--enabled) {
  cursor: default;
}

.hp-video--enabled:hover img { filter: brightness(0.88); }
.hp-video--enabled:hover .hp-hero__play-btn svg { transform: scale(1.1); }

.hp-hero__video-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 10px;
  display: block;
}

@media (max-width: 1200px) {
  .hp-hero { padding: 60px 60px; gap: 30px; }
  .hp-hero__content { width: 46%; }
}

@media (max-width: 1024px) {
  .hp-hero {
    flex-direction: column;
    padding: 60px 40px 50px;
    width: calc(100% - 32px);
    margin: 0 auto;
    border-radius: 20px;
    gap: 30px;
  }
  .hp-hero__content { width: 100%; max-width: 100%; text-align: center; }
  .hp-hero__title { font-size: 42px !important; }
  .hp-hero__subtitle { font-size: 18px; max-width: 100%; margin-left: auto; margin-right: auto; }
  .hp-hero__actions { flex-direction: column; align-items: center; gap: 10px; }
  .hp-hero__actions .hp-btn { width: 300px; max-width: 100%; }
  .hp-hero__image { width: 100%; }
  .hp-hero__video-consent {
    inset: auto 10px 10px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .hp-hero__video-consent-btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hp-hero {
    padding: 50px 24px 40px;
  }

  .hp-hero__title { font-size: 36px !important; }
  .hp-hero__subtitle { font-size: 16px; }
}

/* =================================================
   SECTION SPACING
================================================= */
.hp-section { padding: 0 100px; }
.hp-spacer { height: 120px; }
.hp-spacer--large { height: 150px; }

@media (max-width: 1200px) {
  .hp-section { padding: 0 60px; }
  .hp-spacer { height: 80px; }
  .hp-spacer--large { height: 100px; }
}

@media (max-width: 768px) {
  .hp-section { padding: 0 24px; }
  .hp-spacer { height: 50px; }
  .hp-spacer--large { height: 60px; }
}

/* =================================================
   CLIENT LOGOS
================================================= */
.hp-clients-section { text-align: center; }

.hp-clients__title {
  color: var(--hp-dark);
  margin: 0 0 50px;
  padding: 0 100px;
}

.hp-clients-carousel {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.hp-clients-carousel__track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.hp-clients-carousel__track--ready {
  animation: hp-scroll-logos var(--hp-clients-duration, 30s) linear infinite;
}

.hp-clients-carousel__logo {
  width: 200px;
  height: 60px;
  border-radius: 10px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--hp-border);
}

.hp-clients-carousel__logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

@keyframes hp-scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--hp-clients-loop-distance, 50%))); }
}

@media (max-width: 768px) {
  .hp-clients__title { font-size: 28px; padding: 0 16px; margin-bottom: 30px; }
  .hp-clients-carousel__logo { width: 107px; height: 32px; border-radius: 5px; }
  .hp-clients-carousel__track { gap: 10px; }
}

/* =================================================
   IMPROVE & DEMONSTRATE
================================================= */
.hp-improve {
  display: flex;
  gap: 60px;
  padding: 0 100px;
  max-width: 1440px;
  margin: 0 auto;
  align-items: flex-start;
}

.hp-improve__image { flex: 1; max-width: 778px; }
.hp-improve__text { flex: 0 0 400px; }

.hp-improve__title {
  color: var(--hp-dark);
  margin: 0 0 20px;
}

.hp-improve__desc {
  color: var(--hp-dark);
  margin: 0 0 30px;
}

.hp-improve__desc--bold { font-weight: 500 !important; opacity: 1; }

@media (max-width: 1000px) {
  .hp-improve { flex-direction: column; padding: 0 40px; }
  .hp-improve__text { flex: 0 0 auto; max-width: 100%; }
}

@media (max-width: 768px) {
  .hp-improve { padding: 0 16px; gap: 30px; }
  .hp-improve__image { max-width: 100%; }
}

/* =================================================
   FEATURE CARDS
================================================= */
.hp-features {
  background: #0083CA;
  padding: 120px 0;
  text-align: center;
}

.hp-features__title,
.hp-features__cards {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.hp-features__title {
  color: #FFFFFF;
  margin-bottom: 50px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hp-features__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--hp-max-width);
  margin: 0 auto 50px;
}

.hp-feature-card {
  background: #FFFFFF;
  border: 1px solid var(--hp-border);
  border-radius: 10px;
  padding: 50px 50px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hp-feature-card__icon { width: 40px; height: 40px; }

.hp-feature-card__title {
  color: var(--hp-dark);
  margin: 0;
}

.hp-feature-card__bold {
  color: var(--hp-dark);
  margin: 0;
  font-size:16px !important;
  font-weight:500 !important;
}

.hp-feature-card__desc {
  color: var(--hp-dark);
  margin: 0;
  font-size:16px !important;
}

@media (max-width: 1000px) {
  .hp-features { padding: 80px 0; }
  .hp-features__cards { grid-template-columns: 1fr; max-width: 500px; }
}

@media (max-width: 768px) {
  .hp-features { padding: 60px 0; }
  .hp-features__cards { max-width: 100%; }
  .hp-feature-card { max-width: 400px; margin: 0 auto; width: 100%; }
}

/* =================================================
   TEXT-IMAGE SECTIONS
================================================= */
.hp-text-image {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 125px;
  padding: 0 100px;
  max-width: 1440px;
  margin: 0 auto;
}

.hp-text-image--reversed { flex-direction: row-reverse; }
.hp-text-image__text { flex: 0 0 auto; width: 400px; }
.hp-text-image__image { flex: 0 0 auto; width: 610px; max-width: 50%; }
.hp-text-image__image img { width: 100%; border-radius: 10px; }

.hp-text-image__title {
  color: var(--hp-dark);
  margin: 0 0 20px;
}

.hp-text-image__desc {
  color: var(--hp-dark);
  margin: 0 0 30px;
}

.hp-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hp-checklist__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hp-checklist__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.hp-checklist__text {
  color: var(--hp-dark);
}

@media (max-width: 1200px) {
  .hp-text-image { gap: 60px; padding: 0 60px; }
  .hp-text-image__text { width: 350px; }
  .hp-text-image__image { width: 500px; }
}

@media (max-width: 900px) {
  .hp-text-image { flex-direction: column; gap: 40px; padding: 0 24px; }
  .hp-text-image--reversed { flex-direction: column; }
  .hp-text-image__text { width: 100%; }
  .hp-text-image__image { width: 100%; max-width: 100%; }
}

@media (max-width: 768px) {
  .hp-text-image__desc,
  .hp-checklist__text { font-size: 16px; }
}

/* =================================================
   TESTIMONIAL
================================================= */
.hp-testimonial { padding: 0 100px; }

.hp-testimonial__card {
  background: var(--hp-light-bg);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 505px;
}

.hp-testimonial__card-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #f5fafa url('/assets/img/homepage/testimonial-bg.webp') var(--hp-testimonial-bg-position, center center) / var(--hp-testimonial-bg-size, cover) no-repeat;
  opacity: 1;
}

.hp-testimonial__card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(245, 250, 250, 0.92) 0%, rgba(245, 250, 250, 0.72) 46%, rgba(245, 250, 250, 0.92) 100%);
  opacity: var(--hp-testimonial-overlay-opacity, 0.2);
}

.hp-testimonial__bg-pattern {
  position: absolute;
  width: 130%;
  height: auto;
  top: -40%;
  left: -5%;
  opacity: 0.4;
  object-fit: cover;
  transform: scaleX(-1);
}

.hp-testimonial__blob { position: absolute; }
.hp-testimonial__blob--yellow { width: 65%; top: -70%; left: -16%; }
.hp-testimonial__blob--blue { width: 53%; bottom: -40%; left: -5%; }

.hp-testimonial__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 125px;
  padding: 105px;
  background: rgba(229, 229, 229, 0.3);
  border-radius: 10px;
}

.hp-testimonial__portrait {
  width: 295px;
  height: 295px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.hp-testimonial__content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hp-testimonial__quote-icon { width: 30px; height: 30px; color: var(--hp-blue); transform:rotate(180deg);
}

.hp-testimonial__quote {
  color: var(--hp-dark);
  margin: 0;
  font-weight: 500;
  font-size: 26px;
  border-left: 0;
  padding: 0;
}

.hp-testimonial__author {
  color: var(--hp-dark);
  margin: 0;
  font-weight: 400;
}

.hp-testimonial__role {
  color: var(--hp-dark);
  margin: 0;
  font-weight: 500 !important;
}

@media (max-width: 1100px) {
  .hp-testimonial { padding: 0 40px; }
  .hp-testimonial__inner { gap: 60px; padding: 60px; }
  .hp-testimonial__portrait { width: 200px; height: 200px; }
}

@media (max-width: 768px) {
  .homepage {
    --hp-testimonial-bg-opacity: 0.34;
    --hp-testimonial-overlay-opacity: 1;
  }
  .hp-testimonial { padding: 0 16px; }
  .hp-testimonial__card { min-height: auto; border-radius: 20px; }
  .hp-testimonial__inner { flex-direction: column; gap: 24px; padding: 30px 24px; }
  .hp-testimonial__portrait { width: 100%; height: 220px; }
  .hp-testimonial__author,
  .hp-testimonial__role { font-size: 16px; }
}

/* =================================================
   CASE STUDIES
================================================= */
.hp-case-studies {
    text-align: center;
    margin-left: 10%;
    margin-right: 10%;
}

.hp-case-studies__title {
  color: var(--hp-dark);
  margin: 0 0 10px;
}

.hp-case-studies__subtitle {
  color: var(--hp-dark);
  margin: 0 0 50px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hp-case-studies__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.hp-case-study {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hp-case-study__image { width: 100%; height: 183px; border-radius: 10px; object-fit: cover; }

.hp-case-study__logo-wrap {
  width: 100%;
  height: 184px;
  position: relative;
  border: 2px solid #E5E5E5;
  border-radius: 30px;
  background: #FFFFFF;
  flex-shrink: 0;
}

.hp-case-study__logo-wrap img {
  width: auto;
  height: auto;
  max-width: 80%;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.hp-case-study__body {
  flex: 1;
  overflow: hidden;
}

.hp-case-study__body .hp-case-study__desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-case-study__title {
  color: var(--hp-dark);
  margin: 0;
}

.hp-case-study__desc {
  color: var(--hp-dark);
  margin: 0;
}

.hp-case-study__link {
  font-size: 16px;
  font-weight: 500;
  color: var(--hp-blue);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s;
}

.hp-case-study__link:hover { opacity: 0.8; }

.hp-case-study__link-arrow {
  width: 16px;
  height: 16px;
  transform: rotate(-90deg);
}

.hp-case-study__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 46px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: #0083CA !important;
  border: 1.5px solid #0083CA;
  background: transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
  margin-top: auto;
  cursor: pointer;
  white-space: nowrap;
}

.hp-case-study__btn:hover {
  background: #0083CA;
  color: #FFFFFF !important;
}

@media (max-width: 900px) {
  .hp-case-studies__grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .hp-case-studies__grid { max-width: 100%; }
}

/* =================================================
   FINAL CTA
================================================= */
.hp-final-cta {
  width: 100%;
  max-width: 1440px;
  box-sizing: border-box;
  padding: 0 100px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  position: relative;
  min-height: 505px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-final-cta__inner {
  position: relative;
  z-index: 2;
  background: var(--hp-blue);
  border-radius: 20px;
  padding: 105px;
  width: 100%;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 505px;
}

.hp-final-cta__title {
  color: #FFFFFF;
  margin: 0 0 30px;
}

.hp-final-cta__perks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
}

.hp-final-cta__perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 400;
  color: #FFFFFF;
}

.hp-final-cta__perk-icon { width: 14px; height: 14px; }

@media (max-width: 1000px) {
  .hp-final-cta { padding: 0 40px; }
  .hp-final-cta__inner { padding: 60px; }
  .hp-final-cta__title { margin-bottom: 30px; }
}

@media (max-width: 768px) {
  .hp-final-cta { padding: 0 16px; min-height: auto; }
  .hp-final-cta__inner { padding: 60px 24px; border-radius: 20px; min-height: auto; }
  .hp-final-cta__title { margin-bottom: 30px; }
  .hp-final-cta__perks { flex-direction: column; gap: 12px; }
  .hp-final-cta .hp-btn { width: 300px; max-width: 100%; }
}

/* =================================================
   CTA PANELS
================================================= */
.hp-cta-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 100px;
}

.hp-cta-panel {
  background: var(--hp-light-bg);
  border-radius: 10px;
  padding: 75px 105px;
  position: relative;
  overflow: hidden;
  min-height: 342px;
  display: flex;
  align-items: center;
}

.hp-cta-panel__bg img{
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  height: 100%;
  width: 100%;
}

.hp-cta-panel__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hp-cta-panel__title {
  color: var(--hp-dark);
  margin: 0;
}

.hp-cta-panel__desc {
  color: var(--hp-dark);
  margin: 0 0 20px;
  max-width: 440px;
}

@media (max-width: 1000px) {
  .hp-cta-panels { grid-template-columns: 1fr; padding: 0 40px; }
  .hp-cta-panel {
    padding: 50px;
    justify-content: center;
    text-align: center;
  }
  .hp-cta-panel__content {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .hp-cta-panels { padding: 0 16px; gap: 16px; }
  .hp-cta-panel { padding: 40px 30px; border-radius: 20px; }
  .hp-cta-panel__content .hp-btn { width: 300px; max-width: 100%; justify-content: center; }
}

/* =================================================
   FAQs
================================================= */
.hp-faqs {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.hp-faqs__title {
  color: var(--hp-dark);
  margin: 0 0 50px;
}

.hp-faqs__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-bottom: 50px;
}

.hp-faq {
  border: 1px solid var(--hp-border);
  border-radius: 10px;
  overflow: hidden;
}

.homepage .hp-faq__question,
.trial-page .tp-faq__question,
.pricing-page .pp-faq__question,
.tc-page .tc-q__btn {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.homepage .hp-faq__answer,
.trial-page .tp-faq__answer,
.pricing-page .pp-faq__answer,
.tc-page .tc-q__answer {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.375;
}

.hp-faq__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 30px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.hp-faq__question {
  color: var(--hp-dark);
  margin: 0;
  flex: 1;
}

.hp-faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--hp-dark);
  transition: transform 0.2s;
}

.hp-faq__answer {
  padding: 0 30px 25px;
  color: var(--hp-dark);
  margin: 0;
  display: none;
}

.hp-faq--open .hp-faq__answer { display: block; }
.hp-faq--open .hp-faq__icon--plus { display: none; }
.hp-faq:not(.hp-faq--open) .hp-faq__icon--minus { display: none; }

@media (max-width: 768px) {
  .hp-faqs__title { margin-bottom: 30px; }
  .homepage .hp-faq__question,
  .trial-page .tp-faq__question,
  .pricing-page .pp-faq__question,
  .tc-page .tc-q__btn { font-size: 16px; }
  .hp-faq__header { padding: 20px 24px; }
  .hp-faq__answer { padding: 0 24px 20px; }
  .hp-faqs .hp-btn--large { width: 300px; max-width: 100%; padding: 18px 28px; }
}

/* hp-footer removed — cc-footer (shared.xsl) is the canonical footer for all new-design pages */

/* =================================================
   HIDE STANDARD HEADER/FOOTER ON NEW HOMEPAGE
================================================= */
.homepage-new #header,
.homepage-new #footer { display: none; }

/* =================================================
   SHARED COMPONENT ALIASES
   The shared cc-topbar / cc-navbar / cc-footer
   templates emit .cc-* classes. On the homepage
   these are aliased to the existing .hp-* classes
   so no duplication of styles is needed.
================================================= */

/* --- Topbar --- */
.cc-topbar                   { background: linear-gradient(0deg, #404040 0%, #404040 100%), #203540; height: 50px; display: flex; align-items: center; font-family: var(--hp-font, 'Gibson', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif); padding: 0 100px; gap: 10px; }
.cc-topbar__left             { display: flex; align-items: center; gap: 8px; }
.cc-topbar__phone-icon       { width: 20px; height: 20px; fill: #FFFFFF; flex-shrink: 0; }
.cc-topbar__number           { color: #FFFFFF; font-size: 18px; font-weight: 400; line-height: 1.44; white-space: nowrap; }
.cc-topbar__actions          { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cc-topbar__btn              { padding: 6px 15px; border-radius: 8px; font-size: 16px; font-weight: 500; line-height: 1.5; border: none; cursor: pointer; transition: opacity 0.2s; text-decoration: none; display: inline-flex; align-items: center; }
.cc-topbar__btn:hover        { opacity: 0.85; }
.cc-topbar__btn--find        { color: #FFFFFF !important; border: 1px solid #FFFFFF; }
.cc-topbar__btn--feedback    { background: #FFC50A; color: #404040 !important; }
.cc-topbar__btn--account     { background: #0083CA; color: #FFFFFF !important; }
.cc-topbar__divider          { width: 1px; height: 20px; background: rgba(255,255,255,0.3); flex-shrink: 0; }

@media (max-width: 1100px) { .cc-topbar { padding: 0 40px; } }
@media (max-width: 900px) {
  .cc-topbar { padding: 0 24px; }
  .cc-topbar__left { display: none; }
  .cc-topbar__divider { display: none; }
  .cc-topbar__actions { margin-left: 0; width: 100%; justify-content: center; }
}
@media (max-width: 600px) { .cc-topbar__actions { gap: 6px; } .cc-topbar__btn { padding: 5px 12px; font-size: 13px; } }

/* --- Navbar --- */
.cc-navbar                        { display: flex; align-items: center; width: 100%; max-width: 1440px; margin: 0 auto; box-sizing: border-box; padding: 20px; position: relative; z-index: 20; font-family: 'Gibson', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.cc-navbar__logo                  { width: 170px; min-width: 170px; height: auto; flex-shrink: 0; }
.cc-navbar__links                 { display: flex; align-items: center; gap: 50px; margin-left: auto; list-style: none; padding: 0; margin-bottom: 0; }
.cc-navbar__link                  { font-size: 16px; font-weight: 600; color: #203540; transition: color 0.2s; white-space: nowrap; text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.cc-navbar__link:hover            { color: #0083CA; }
.cc-navbar__link--active          { color: #0083CA; border-bottom-color: #0083CA; }
.cc-navbar__link--highlight       { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.cc-navbar__link-arrow            { width: 30px; height: 30px; border-radius: 5px; background: rgba(172,191,202,0.1); display: inline-flex; align-items: center; justify-content: center; }
.cc-navbar__divider               { width: 0.5px; height: 30px; background: rgba(172,191,202,0.75); list-style: none; }
.cc-navbar__hamburger             { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; position: relative; z-index: 21; }
.cc-navbar__hamburger span        { display: block; width: 24px; height: 2px; background: #203540; margin: 5px 0; transition: 0.3s; }

@media (max-width: 1280px) {
  .cc-navbar { padding: 18px 40px; }
  .cc-navbar__links { gap: 24px; }
  .cc-navbar__link { font-size: 15px; }
  .cc-navbar__link--highlight {
    gap: 6px;
    white-space: normal;
    line-height: 1.15;
    align-items: flex-start;
    max-width: 126px;
  }
}

@media (max-width: 1100px) {
  .cc-navbar { padding: 16px 28px; }
  .cc-navbar__links { gap: 14px; }
  .cc-navbar__link { font-size: 14px; }
  .cc-navbar__link-arrow { width: 26px; height: 26px; }
}

@media (max-width: 1024px) {
  .homepage h1,
  .demo-page h1,
  .trial-page h1,
  .tc-page h1,
  .pricing-page h1 {
    font-size: 36px;
  }

  .homepage h2,
  .demo-page h2,
  .trial-page h2,
  .tc-page h2,
  .pricing-page h2 {
    font-size: 28px;
  }

  .cc-navbar { padding: 16px 40px; }
  .cc-navbar__links { display: none; }
  .cc-navbar__hamburger { display: block; }
  .cc-navbar__links--open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #FFFFFF; padding: 24px; gap: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); z-index: 100; }
  .cc-navbar__divider { display: none; }
}
@media (max-width: 440px) { .cc-navbar { padding: 16px 24px; } }

/* --- Footer (cc-footer) mirrors hp-footer styles) --- */
.cc-footer { background: #404040; padding: 75px 100px 30px; color: #FFFFFF; font-family: var(--hp-font, 'Gibson', system-ui, sans-serif); }
.cc-footer__inner { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 60px; max-width: 1240px; margin: 0 auto; padding-bottom: 40px; }
.cc-footer__col-title { font-size: 18px; font-weight: 500; line-height: 1.2; margin: 0 0 20px; color: #FFFFFF; }
.cc-footer__links-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; }
.cc-footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cc-footer__link { font-size: 16px; font-weight: 400; line-height: 1.375; color: #FFFFFF; opacity: 0.75; transition: opacity 0.2s; text-decoration: none; white-space: nowrap; }
.cc-footer__link:hover { opacity: 1; color: #FFFFFF; }
.cc-footer__contact-info { display: flex; flex-direction: column; gap: 10px; }
.cc-footer__contact-row { display: flex; align-items: center; gap: 10px; }
.cc-footer__contact-icon { width: 22px; height: 22px; fill: #FFFFFF; flex-shrink: 0; }
.cc-footer__social { display: flex; gap: 20px; margin-top: 15px; }
.cc-footer__social-icon { width: 20px; height: 20px; fill: #FFFFFF; transition: opacity 0.2s; }
.cc-footer__social-icon:hover { opacity: 0.7; }
.cc-footer__divider { width: 100%; height: 1px; background: rgba(255,255,255,0.15); max-width: 1240px; margin: 0 auto; }
.cc-footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; max-width: 1240px; margin: 0 auto; padding-top: 30px; }
.cc-footer__copyright { font-size: 16px; opacity: 0.75; margin: 0; }
.cc-footer__legal { display: flex; gap: 30px; list-style: none; padding: 0; margin: 0; }
.cc-footer__legal-link { font-size: 16px; color: #FFFFFF; opacity: 0.75; transition: opacity 0.2s; text-decoration: none; }
.cc-footer__legal-link:hover { opacity: 1; color: #FFFFFF; }

@media (max-width: 1000px) { .cc-footer { padding: 50px 40px 30px; } .cc-footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 600px) {
  .cc-footer { padding: 40px 24px 20px; }
  .cc-footer__inner { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .cc-footer__inner > div:first-child { grid-column: 1 / -1; }
  .cc-footer__links-split { grid-template-columns: 1fr; gap: 10px; }
  .cc-footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cc-footer__legal { flex-wrap: wrap; gap: 12px 16px; }
  .cc-footer__copyright { font-size: 14px; }
}
