/* The public homepage uses the existing Nivel Digital navy and gold palette. */
.hero-v6 {
  position: relative;
  isolation: isolate;
}

.product-showcase {
  padding: clamp(12px, 1.4vw, 20px);
  border: 1px solid var(--nd-line);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--nd-surface), var(--nd-ink));
  box-shadow: 0 24px 52px #0006, inset 0 1px #ffffff14;
}

.product-device {
  border: 1px solid var(--nd-line);
  border-radius: 14px;
  box-shadow: 0 12px 28px #0005;
  transform: none;
  animation: none;
}

.product-tabs button[aria-selected=true] {
  box-shadow: 0 2px 8px #0005;
}

.product-caption a { min-width: 0; }

.needs-results {
  background: linear-gradient(140deg, var(--paper) 70%, #f8f6f0);
  box-shadow: 0 12px 30px #18212b0d;
}

.compact-directory-card {
  padding: clamp(15px, 1.8vw, 23px);
  border: 1px solid var(--nd-line);
  border-top-color: var(--nd-gold);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--nd-surface), var(--nd-ink));
}

.compact-case {
  box-shadow: 0 8px 20px #10192310;
}

@media (min-width: 1200px) {
  .product-showcase {
    display: grid;
    grid-template-columns: minmax(100px, 23%) minmax(0, 1fr);
    align-items: start;
    gap: 16px;
  }

  .showcase-top {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 5px 0;
    margin: 0;
  }

  .product-tabs {
    flex-direction: column;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    gap: 6px;
  }

  .product-tabs button {
    min-height: 42px;
    border-radius: 9px;
    text-align: left;
  }

  .product-tabs button:not([aria-selected=true]):hover {
    background: var(--nd-line);
    color: var(--paper);
  }

  .product-panel, .product-body { min-width: 0; }
  .product-caption a { white-space: normal; }
}

@media (max-width: 700px) {
  .product-showcase { padding: 9px; border-radius: 16px; }
  .product-device { border-width: 1px; }
  .product-tabs button { overflow-wrap: normal; }
  .compact-directory { gap: 12px; }
}

@media screen and (prefers-reduced-motion: no-preference) {
  .hero-v6, .needs-layout, .home-section {
    --home-ease: cubic-bezier(.22, 1, .36, 1);
  }

  .hero-copy, .product-showcase {
    animation: home-panel-enter 500ms var(--home-ease) both;
  }

  .product-showcase { animation-delay: 75ms; }
  .hero-glow { animation-duration: 850ms; }

  .product-panel:not([hidden]), .need-result:not([hidden]) {
    animation: home-panel-enter 300ms var(--home-ease) both;
  }

  .product-panel:not([hidden]) .product-rows > div {
    animation: home-panel-enter 360ms var(--home-ease) both;
  }
  .product-panel:not([hidden]) .product-rows > div:nth-child(2) { animation-delay: 55ms; }
  .product-panel:not([hidden]) .product-rows > div:nth-child(3) { animation-delay: 110ms; }

  .reveal-item {
    transition: opacity 420ms var(--home-ease, ease), transform 420ms var(--home-ease, ease);
  }
  .reveal-pending { transform: translateY(10px); }

  .hero-cta .btn > [aria-hidden=true],
  .product-caption a > [aria-hidden=true] {
    display: inline-block;
    transition: transform 180ms ease;
  }
  .hero-cta .btn:is(:hover, :focus-visible) > [aria-hidden=true],
  .product-caption a:is(:hover, :focus-visible) > [aria-hidden=true] {
    transform: translateX(3px);
  }
}

@keyframes home-panel-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
