/* ============================================
   HOMEPAGE - SHARED SECTION HEADER
   ============================================ */

.hp-section-header {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.hp-section-header h2 {
  margin-bottom: var(--space-4);
}

.hp-section-sub {
  font-size: var(--text-lg);
  line-height: 1.6;
}


/* ============================================
   HERO LOAD ANIMATION
   ============================================ */

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hp-hero__copy {
  animation: fadeSlideUp 0.55s ease both;
}

.hp-hero__visual {
  animation: fadeSlideUp 0.55s 0.15s ease both;
}


/* ============================================
   HERO
   ============================================ */

.hp-hero {
  background: linear-gradient(160deg, #F0F5FF 0%, var(--color-bg) 60%);
  padding-block: var(--space-20) var(--space-16);
  overflow: hidden;
}

.hp-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hp-hero__eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
  letter-spacing: 0.01em;
}

.hp-hero__headline {
  font-size: clamp(2rem, 4vw, var(--text-6xl));
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.hp-hero__sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 520px;
}

.hp-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.hp-hero__trust {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Hero mockup */
.hp-hero__visual {
  position: relative;
}

.hp-mockup {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(26, 107, 255, 0.06);
  overflow: hidden;
}

.hp-mockup__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.hp-mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}

.hp-mockup__dot:nth-child(1) { background: #FC5F56; }
.hp-mockup__dot:nth-child(2) { background: #FDBF2D; }
.hp-mockup__dot:nth-child(3) { background: #27C840; }

.hp-mockup__title {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-left: var(--space-2);
  font-weight: var(--weight-medium);
}

.hp-mockup__body {
  padding: var(--space-5);
}

.hp-mockup__stat-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.hp-mockup__waste-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 48px;
  padding: 0 var(--space-3);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-md);
  line-height: 1;
  background: #FEE2E2;
  color: #991B1B;
  white-space: nowrap;
}

.hp-mockup__stat-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.hp-mockup__stat-sub {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
}

.hp-mockup__issues {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hp-mockup__issue {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: start;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.hp-mockup__issue-icon {
  font-size: 10px;
  margin-top: 3px;
}

.hp-mockup__issue--high .hp-mockup__issue-icon { color: var(--color-danger); }
.hp-mockup__issue--med .hp-mockup__issue-icon  { color: var(--color-warning); }

.hp-mockup__issue-text strong {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
  margin-bottom: 2px;
}

.hp-mockup__issue-text span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.hp-mockup__issue-cost {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-success);
  white-space: nowrap;
}


/* ============================================
   PAIN POINTS
   ============================================ */

.hp-pain {
  background: var(--color-surface);
}

.hp-pain__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.hp-pain__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hp-pain__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-pain__icon--red   { background: #FEE2E2; color: var(--color-danger); }
.hp-pain__icon--orange { background: #FEF3C7; color: #D97706; }
.hp-pain__icon--blue  { background: var(--color-primary-light); color: var(--color-primary); }

.hp-pain__stat {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hp-pain__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: 1.3;
}

.hp-pain__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}


/* ============================================
   HOW IT WORKS
   ============================================ */

.hp-how {
  background: var(--color-bg);
}

.hp-how__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.hp-how__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding-inline: var(--space-6);
}

.hp-how__step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-surface);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hp-how__step-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-how__step h3 {
  font-size: var(--text-xl);
  margin-bottom: 0;
}

.hp-how__step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.65;
}

.hp-how__connector {
  width: 60px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-border) 0,
    var(--color-border) 6px,
    transparent 6px,
    transparent 12px
  );
  margin-top: 100px;
  flex-shrink: 0;
}


/* ============================================
   FEATURES GRID
   ============================================ */

.hp-features {
  background: var(--color-surface);
}

.hp-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.hp-feature-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.hp-feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #C8D8FF;
}

.hp-feature-card--soon {
  opacity: 0.7;
}

.hp-feature-card--soon:hover {
  opacity: 1;
}

.hp-feature-card__icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hp-feature-card h4 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.hp-feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.55;
}

.hp-features__cta {
  margin-top: var(--space-12);
}


/* ============================================
   REPORT PREVIEW
   ============================================ */

.hp-preview {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.9);
}

.hp-preview h2 {
  color: var(--color-surface);
}

.hp-preview__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hp-preview__copy p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

.hp-preview__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hp-preview__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.85);
}

.hp-preview__list li svg {
  flex-shrink: 0;
}

/* Report mockup */
.hp-report {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.hp-report__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.hp-report__account {
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.hp-report__date {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.hp-report__waste-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: #FEE2E2;
}

.hp-report__waste-value {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: #991B1B;
  line-height: 1.2;
}

.hp-report__waste-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #991B1B;
  opacity: 0.85;
}

.hp-report__summary {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
}

.hp-report__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4);
  border-right: 1px solid var(--color-border);
}

.hp-report__stat:last-child {
  border-right: none;
}

.hp-report__stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  line-height: 1.2;
}

.hp-report__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-1);
}

.hp-report__issue-list {
  display: flex;
  flex-direction: column;
}

.hp-report__issue {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

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

.hp-report__issue-body strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
  margin-bottom: var(--space-1);
}

.hp-report__issue-body p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.hp-report__issue-impact {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-success);
  white-space: nowrap;
  padding-top: 2px;
}


/* ============================================
   PRICING
   ============================================ */

.hp-pricing {
  background: var(--color-bg);
}

.hp-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1040px;
  margin-inline: auto;
}

.hp-pricing__tagline {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
  text-align: center;
  margin-top: var(--space-10);
  margin-bottom: var(--space-2);
}

.hp-pricing__disclaimer {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}

.hp-pricing__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hp-pricing__card--featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-lg);
}

.hp-pricing__popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-surface);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.hp-pricing__plan {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.hp-pricing__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  line-height: 1;
}

.hp-pricing__amount {
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

.hp-pricing__period {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.hp-pricing__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.hp-pricing__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.hp-pricing__features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.hp-pricing__card--featured .hp-pricing__features li {
  color: var(--color-dark);
}

.hp-pricing__cta {
  width: 100%;
  text-align: center;
}

.hp-pricing__fine {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 0;
}


/* ============================================
   FINAL CTA
   ============================================ */

.hp-final-cta {
  background: var(--color-primary);
  padding-block: var(--space-20);
}

.hp-final-cta__inner {
  text-align: center;
  max-width: 600px;
}

.hp-final-cta h2 {
  color: var(--color-surface);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.hp-final-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

.hp-final-cta .btn--primary {
  background: var(--color-surface);
  color: var(--color-primary);
}

.hp-final-cta .btn--primary:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-hover);
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hp-pain__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .hp-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hp-hero__inner {
    grid-template-columns: 1fr;
  }

  .hp-hero__visual {
    order: 1;
  }

  .hp-hero__sub {
    max-width: 100%;
  }

  .hp-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hp-hero__actions .btn {
    text-align: center;
  }

  .hp-how__steps {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hp-how__connector {
    display: none;
  }

  .hp-pain__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

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

  .hp-feature-card {
    grid-template-columns: 44px 1fr;
  }

  .hp-feature-card .badge {
    grid-column: 2;
  }

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

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

  .hp-final-cta h2 {
    font-size: var(--text-3xl);
  }

  .hp-section-header {
    margin-bottom: var(--space-10);
  }
}
