/* B2C journey presentation upgrade: compact discovery, expandable products, stronger completion state */

/* Landing: reduce dead space and keep the primary action above the fold. */
.page-shell {
  padding-top: 26px;
}

.hero-logo {
  width: 104px;
  height: 104px;
  margin-bottom: 18px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.09);
}

.page-title {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 64px);
}

/* Replace the repetitive guide treatment with a compact reassurance panel. */
.guide-card.journey-trust-panel {
  padding: 18px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.guide-card.journey-trust-panel .guide-badge,
.guide-card.journey-trust-panel .guide-list {
  display: none;
}

.guide-card.journey-trust-panel h2 {
  margin: 0 0 6px;
  font-size: 19px;
}

.guide-card.journey-trust-panel p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

/* Product discovery: compact cards by default. */
.product-list {
  gap: 12px;
}

.product-card {
  position: relative;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-card:hover {
  transform: translateY(-1px);
  border-color: #9fc9d3;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.10);
}

.product-card:focus-visible {
  outline: 3px solid rgba(11, 95, 153, 0.22);
  outline-offset: 2px;
}

.product-logo {
  width: 74px;
  height: 74px;
}

.product-copy h2 {
  margin-bottom: 3px;
  font-size: 21px;
}

.product-copy .premium {
  margin-bottom: 3px;
  font-size: 20px;
}

.product-copy .description {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card .card-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-card .button-primary {
  min-height: 42px;
  padding: 10px 15px;
  white-space: nowrap;
}

.product-details-toggle {
  min-width: 112px;
  min-height: 42px;
  border: 1px solid var(--b4e-border);
  border-radius: 9px;
  background: #fff;
  color: var(--b4e-blue);
  font-weight: 900;
  padding: 9px 13px;
}

.product-details-toggle:hover {
  background: #f8fafc;
}

.product-card .benefits,
.product-card .requirements {
  display: none;
}

.product-card.is-expanded .benefits,
.product-card.is-expanded .requirements {
  display: block;
  animation: b4eReveal 180ms ease-out;
}

.product-card.is-expanded {
  border-color: var(--b4e-accent);
  box-shadow: 0 18px 50px rgba(15, 118, 110, 0.13);
}

.product-card.is-expanded .product-copy .description {
  -webkit-line-clamp: unset;
}

@keyframes b4eReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Review and completion pages: stronger hierarchy without touching transaction logic. */
.review-card,
.form-card,
.state-card {
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.b2c-app .state-card h1 {
  letter-spacing: -0.03em;
}

.b2c-app .state-card .button-primary {
  min-width: 210px;
}

@media (max-width: 860px) {
  .page-shell {
    padding-top: 14px;
  }

  .hero-logo {
    width: 84px;
    height: 84px;
    margin-bottom: 14px;
  }

  .page-title {
    margin-bottom: 16px;
    font-size: clamp(34px, 9vw, 48px);
  }

  .product-card {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 14px;
  }

  .product-logo {
    width: 64px;
    height: 64px;
  }

  .product-card .card-action {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .product-card .card-action > * {
    flex: 1 1 0;
  }
}

@media (max-width: 520px) {
  .product-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
  }

  .product-logo {
    width: 54px;
    height: 54px;
  }

  .product-copy h2 {
    font-size: 18px;
  }

  .product-copy .premium {
    font-size: 18px;
  }

  .product-card .card-action {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-details-toggle,
  .product-card .button-primary {
    width: 100%;
  }
}

.beneficiary-grid.is-hidden {
  display: none;
}
