/* ==========================================================================
   Homepage 2026 — Enterprise redesign
   Following Voxpopme frontend design skill guidelines
   ========================================================================== */

:root {
  --vox-purple: #341C4C;
  --vox-lilac: #95569E;
  --vox-highlight-green: #58B999;
  --vox-warm-white: #FAFAFA;
  --vox-light-gray: #F3F4F6;
  --vox-cool-gray: #6B7280;
  --vox-charcoal: #1F2937;
  --vox-gray-200: #E0E0E0;
  --vox-white: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Global heading overrides
   application.css sets h1-h4 via .mainContent h3 (specificity 0-1-1).
   Two-class selectors (0-2-0) beat that comfortably.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Orphan and widow prevention
   text-wrap: pretty  — prevents single-word orphans on body paragraphs
   text-wrap: balance — distributes lines evenly on headings / short text
   -------------------------------------------------------------------------- */

.hp-hero__title,
.hp-door__title,
.hp-journey__title,
.hp-feature__title,
.hp-cta__title,
.hp-faq__title,
.hp-eyebrow,
.hp-platform__title,
.hp-testimonials__title {
  text-wrap: balance;
}

.hp-hero__body,
.hp-testimonials__quote {
  text-wrap: balance;
}

.hp-door__text,
.hp-journey__text,
.hp-feature__text,
.hp-faq__answer p,
.hp-testimonials__subtitle {
  text-wrap: pretty;
}

/* These two-class selectors (0-2-0) beat application.css's
   .mainContent h1-h6 reset (0-1-1) which forces margin:0. */
.hp-hero .hp-hero__title {
  margin: 0 0 2rem;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--vox-white);
}

.hp-door .hp-door__title {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--vox-purple);
}

.hp-journey .hp-journey__title {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--vox-purple);
}

.hp-feature .hp-feature__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.25;
  font-weight: 600;
  color: var(--vox-purple);
}

.hp-cta .hp-cta__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  line-height: 1.3;
  font-weight: 600;
  color: #341c4c;
}

.hp-faq .hp-faq__title {
  margin: 0 0 3rem;
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  line-height: 1.3;
  font-weight: 600;
  color: var(--vox-purple);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Hero — split layout (text left, video right)
   -------------------------------------------------------------------------- */

.hp-hero {
  position: relative;
  overflow: hidden;
  background: var(--vox-lilac);
  padding: 6rem 0 5rem;
}

.hp-hero .container {
  max-width: 72rem;
}

.hp-hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hp-hero__content {
  text-align: left;
}

.hp-hero__title {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--vox-white);
  margin: 0 0 1.5rem;
}

.hp-hero__body {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2rem;
  max-width: 32rem;
}

/* Hero video */
.hp-hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-hero__video {
  width: 100%;
  max-width: 540px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(52, 28, 76, 0.25);
  display: block;
}

@media (max-width: 860px) {
  .hp-hero {
    padding: 4rem 0 3rem;
  }
  .hp-hero__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hp-hero__content {
    text-align: center;
    order: 0;
  }
  .hp-hero__body {
    margin-left: auto;
    margin-right: auto;
  }
  .hp-hero__media {
    order: 1;
  }
  .hp-hero__video {
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Three front doors
   -------------------------------------------------------------------------- */

.hp-frontdoors {
  background: var(--vox-warm-white);
  padding: 5rem 0;
}

.hp-frontdoors__header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3.5rem;
}

/* Two-class selector (0-2-0) beats .mainContent h3 (0-1-1) */
.hp-frontdoors .hp-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--vox-lilac);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.hp-frontdoors__intro {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--vox-cool-gray);
  margin: 1.5rem 0 0;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.hp-frontdoors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto auto;
  column-gap: 2rem;
  row-gap: 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hp-frontdoors {
    padding: 3.5rem 0;
  }

  .hp-frontdoors__header {
    margin-bottom: 2.5rem;
  }

  .hp-frontdoors__intro {
    font-size: 0.9375rem;
  }

  .hp-frontdoors__grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1rem;
  }

  .hp-door__media img {
    height: 140px;
    object-fit: cover;
  }

  .hp-door__body {
    padding: 1rem;
  }

  .hp-door__title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .hp-door__text {
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
  }

  .hp-door .hp-btn {
    font-size: 0.6875rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .hp-frontdoors__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2.5rem;
    max-width: 36rem;
    margin: 0 auto;
  }
  .hp-door {
    grid-row: auto;
    grid-template-rows: auto auto auto auto;
  }
}

.hp-door {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  background: var(--vox-white);
  border: 1px solid var(--vox-gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hp-door:hover {
  border-color: var(--vox-lilac);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(149, 86, 158, 0.1);
}

.hp-door__icon {
  width: 64px;
  height: 64px;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vox-white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hp-door__icon svg {
  width: 32px;
  height: 32px;
  color: var(--vox-purple);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp-door__media {
  overflow: hidden;
}

.hp-door__media img {
  width: 100%;
  height: auto;
  display: block;
}

.hp-door__body {
  padding: 1.5rem 1.5rem 2rem;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
}

.hp-door__title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--vox-purple);
  margin: 0 0 1.5rem;
  line-height: 1.3;
}

.hp-door__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--vox-cool-gray);
  margin: 0 0 1.25rem;
}

.hp-door .hp-btn {
  align-self: end;
  justify-self: start;
  font-size: 0.875rem;
  padding: 0.75rem 1.75rem;
}

.hp-door__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hp-door__bullets li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--vox-charcoal);
}

.hp-door__bullets li:last-child {
  margin-bottom: 0;
}

.hp-door__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #95569e;
}

/* --------------------------------------------------------------------------
   Platform journey (Reveal / Unlock / Formulate / Propel)
   -------------------------------------------------------------------------- */

.hp-platform {
  background: var(--vox-light-gray);
  padding: 5rem 0;
}

.hp-platform__header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3.5rem;
}

.hp-platform__title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--vox-lilac);
  margin-bottom: 1rem;
}

.hp-platform .hp-platform__title {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--vox-lilac);
}

.hp-platform__intro {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--vox-cool-gray);
  margin: 1.5rem auto 0;
  max-width: 52rem;
}

.hp-journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto auto;
  gap: 0 2rem;
}

.hp-journey__step {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  text-align: left;
  padding: 2rem;
  align-content: start;
  background: var(--vox-white);
  border: 1px solid var(--vox-gray-200);
  border-radius: 12px;
  transition: all 0.3s ease;
}

@media (min-width: 601px) and (max-width: 1023px) {
  .hp-journey {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem 2rem;
  }

  .hp-journey__step {
    grid-row: auto;
    grid-template-rows: auto auto 1fr;
    gap: 0.25rem;
    padding: 1.5rem;
  }

  .hp-journey__title {
    max-width: 15rem;
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {
  .hp-journey {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-width: 24rem;
    margin: 0 auto;
  }
  .hp-journey__step {
    grid-row: auto;
    grid-template-rows: auto auto auto;
  }
}

.hp-journey__step:hover {
  border-color: var(--vox-lilac);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(149, 86, 158, 0.1);
}

.hp-journey__icon {
  width: 56px;
  height: 56px;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vox-light-gray);
  border-radius: 12px;
}

.hp-journey__icon svg {
  width: 28px;
  height: 28px;
  color: #95569E;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp-journey__title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--vox-purple);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.hp-journey__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--vox-cool-gray);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Feature sections (split content — image + text)
   -------------------------------------------------------------------------- */

.hp-feature {
  background: var(--vox-warm-white);
  padding: 5rem 0;
}

.hp-feature--alt {
  background: var(--vox-white);
}

.hp-feature__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hp-feature__layout--flipped .hp-feature__media {
  order: -1;
}

@media (max-width: 860px) {
  .hp-feature__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hp-feature__layout--flipped .hp-feature__media {
    order: 0;
  }
}

.hp-feature__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-feature__media img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

.hp-feature__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--vox-purple);
  margin: 0 0 1.5rem;
  line-height: 1.25;
}

.hp-feature__text {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--vox-cool-gray);
  margin: 0 0 1.75rem;
}

.hp-feature__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.hp-feature__bullets li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--vox-charcoal);
}

.hp-feature__bullets li:last-child {
  margin-bottom: 0;
}

.hp-feature__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #95569e;
}

/* --------------------------------------------------------------------------
   Testimonial (DEPRECATED — replaced by testimonial-carousel block)
   -------------------------------------------------------------------------- */

/*
.hp-testimonial {
  background: var(--vox-purple);
  padding: 5rem 0;
}

.hp-testimonial .container {
  max-width: 52rem;
}

.hp-testimonial__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

@media (max-width: 767px) {
  .hp-testimonial__inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
}

.hp-testimonial__photo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--vox-lilac);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vox-white);
  font-size: 0.75rem;
  font-style: italic;
  overflow: hidden;
}

.hp-testimonial__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-testimonial__content {
  flex: 1;
}

.hp-testimonial__quote {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.6;
  color: var(--vox-white);
  margin: 0 0 1.5rem;
  font-weight: 500;
  position: relative;
}

.hp-testimonial__quote::before {
  content: '\201C';
  font-size: 3rem;
  font-weight: 800;
  color: var(--vox-lilac);
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}

.hp-testimonial__cite {
  font-style: normal;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.hp-testimonial__cite strong {
  display: block;
  color: var(--vox-white);
  font-weight: 600;
  margin-bottom: 0.125rem;
}
*/

/* --------------------------------------------------------------------------
   Bottom CTA
   -------------------------------------------------------------------------- */

.hp-cta {
  background: var(--vox-warm-white);
  padding: 5rem 0;
  text-align: center;
}

.hp-cta .container {
  max-width: 52rem;
}

.hp-cta__title {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--vox-purple);
  margin: 0 0 1.5rem;
}

.hp-cta__body {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--vox-cool-gray);
  margin: 0 0 2.25rem;
}

/* --------------------------------------------------------------------------
   FAQ accordion (two-column, shadcn faq-component-07 adaptation)
   -------------------------------------------------------------------------- */

.hp-faq {
  padding: 4rem 0 5rem;
}

.hp-faq .container {
  max-width: 76rem;
}

/* Header */
.hp-faq__header {
  text-align: center;
  margin-bottom: 3rem;
}

.hp-faq__badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--vox-cool-gray, #6B7280);
  border: 1px solid var(--vox-gray-200, #E0E0E0);
  border-radius: 9999px;
  padding: 0.25rem 0.875rem;
  margin-bottom: 1rem;
}

.hp-faq__title {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--vox-charcoal);
  margin: 0 0 0.75rem;
}

.hp-faq__subtitle {
  font-size: 1.125rem;
  color: var(--vox-cool-gray);
  margin: 0;
}

/* Two-column grid */
.hp-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2.5rem;
}

/* Bordered accordion column */
.hp-faq__column {
  border: 1px solid var(--vox-gray-200, #E0E0E0);
  border-radius: 0.5rem;
  overflow: hidden;
  align-self: start;
}

.hp-faq__item {
  border-bottom: 1px solid var(--vox-gray-200, #E0E0E0);
}

.hp-faq__item:last-child {
  border-bottom: none;
}

.hp-faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--vox-charcoal);
  transition: color 0.2s ease;
}

.hp-faq__item summary:hover {
  color: var(--vox-purple);
}

.hp-faq__item summary::-webkit-details-marker {
  display: none;
}

.hp-faq__chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  color: var(--vox-cool-gray);
}

.hp-faq__item[open] .hp-faq__chevron {
  transform: rotate(180deg);
}

.hp-faq__answer {
  padding: 0 1.25rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--vox-cool-gray);
}

.hp-faq__answer p {
  margin: 0;
}

.hp-faq__footer {
  text-align: center;
  margin-top: 3rem;
}

/* Responsive — single column on mobile */
@media (max-width: 767px) {
  .hp-faq {
    padding: 3rem 0 4rem;
  }

  .hp-faq__header {
    margin-bottom: 2rem;
  }

  .hp-faq__grid {
    grid-template-columns: 1fr;
  }

  .hp-faq__item summary {
    font-size: 0.9375rem;
    padding: 0.875rem 1rem;
  }

  .hp-faq__answer {
    padding: 0 1rem 0.875rem;
    font-size: 0.875rem;
  }
}

/* --------------------------------------------------------------------------
   Shared CTA button (reused in hero, bottom CTA, FAQ footer)
   -------------------------------------------------------------------------- */

.hp-btn {
  display: inline-block;
  background: var(--vox-highlight-green);
  color: var(--vox-white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2.25rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
}

.hp-btn:hover {
  background: #4aa085;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88, 185, 153, 0.3);
  color: var(--vox-white);
}

.hp-btn--outline {
  background: transparent;
  color: var(--vox-purple);
  border: 2px solid var(--vox-purple);
  padding: 0.875rem 2.25rem;
}

.hp-btn--outline:hover {
  background: var(--vox-purple);
  color: var(--vox-white);
  box-shadow: none;
  transform: translateY(-2px);
}

.hp-btn--small {
  font-size: 0.875rem;
  padding: 0.75rem 1.75rem;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .hp-door,
  .hp-hero__cta,
  .hp-btn {
    transition: none;
  }
  .hp-door:hover,
  .hp-btn:hover,
  .hp-hero__cta:hover {
    transform: none;
  }
}
