/* Product Guides — index cards, hero banner, rendered markdown */

.product-guide-card {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--pindah-border, #e5e7eb);
  border-radius: 0.35rem;
  background: #fff;
  height: 100%;
}

.product-guide-card a {
  color: var(--pindah-accent, #0c63e7);
  text-decoration: none;
}

.product-guide-card a:hover {
  text-decoration: underline;
}

/* Index hero — ink + indigo documentation mesh (distinct from Home navy / BasaRx teal) */
.product-guides-landing-banner.module-landing-banner {
  overflow: hidden;
  min-height: clamp(18rem, 40vw, 24rem);
  padding: 3rem 0 2.75rem;
  color: #f1f5f9;
  border-bottom: none;
  background:
    radial-gradient(ellipse 52% 68% at 95% -10%, rgba(56, 189, 248, 0.42) 0%, transparent 55%),
    radial-gradient(ellipse 48% 58% at -6% 110%, rgba(99, 102, 241, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse 38% 42% at 42% 48%, rgba(79, 70, 229, 0.35) 0%, transparent 65%),
    linear-gradient(132deg, #070b14 0%, #111827 24%, #1e1b4b 50%, #312e81 74%, #0f172a 100%);
}

.product-guides-landing-banner .pg-hero-glow,
.product-guides-landing-banner .pg-hero-orb,
.product-guides-landing-banner .pg-hero-grid,
.product-guides-landing-banner .pg-hero-pages {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.product-guides-landing-banner .pg-hero-glow {
  background:
    linear-gradient(105deg, transparent 26%, rgba(165, 180, 252, 0.22) 45%, rgba(56, 189, 248, 0.14) 52%, transparent 70%);
  mix-blend-mode: screen;
  animation: pg-sheen 9s ease-in-out infinite;
}

.product-guides-landing-banner .pg-hero-orb {
  width: min(28rem, 56vw);
  height: min(28rem, 56vw);
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.72;
}

.product-guides-landing-banner .pg-hero-orb--a {
  top: -24%;
  right: -6%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.95) 0%, rgba(55, 48, 163, 0.3) 45%, transparent 70%);
  animation: pg-drift-a 15s ease-in-out infinite;
}

.product-guides-landing-banner .pg-hero-orb--b {
  bottom: -30%;
  left: -14%;
  width: min(34rem, 68vw);
  height: min(34rem, 68vw);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45) 0%, transparent 72%);
  animation: pg-drift-b 17s ease-in-out infinite;
}

.product-guides-landing-banner .pg-hero-orb--c {
  top: 32%;
  left: 36%;
  width: min(16rem, 36vw);
  height: min(16rem, 36vw);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  opacity: 0.45;
  animation: pg-pulse 7s ease-in-out infinite;
}

.product-guides-landing-banner .pg-hero-grid {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 12%, transparent 78%);
}

.product-guides-landing-banner .pg-hero-pages {
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23c7d2fe' stroke-width='1.3' opacity='0.9'%3E%3Crect x='18' y='22' width='28' height='36' rx='2'/%3E%3Cpath d='M24 32h16M24 40h12M24 48h14'/%3E%3Crect x='72' y='48' width='30' height='38' rx='2'/%3E%3Cpath d='M78 58h18M78 66h14M78 74h16'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  mask-image: linear-gradient(120deg, transparent 8%, #000 30%, #000 70%, transparent 100%);
}

.product-guides-landing-banner > .container {
  position: relative;
  z-index: 1;
}

.product-guides-landing-banner .module-landing-kicker {
  color: #c7d2fe;
  letter-spacing: 0.12em;
}

.site-body .product-guides-landing-banner h1.module-landing-headline,
.site-body .product-guides-landing-banner h1.module-landing-headline.text-white,
.product-guides-landing-banner .module-landing-headline,
.product-guides-landing-banner .module-landing-headline.text-white {
  color: #fff !important;
  max-width: 14em;
  font-size: clamp(1.85rem, 4vw, 2.75rem) !important;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.product-guides-landing-banner .module-landing-dek {
  color: rgba(226, 232, 240, 0.92);
  max-width: 38em;
}

.product-guides-landing-banner .btn-primary {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 28px rgba(79, 70, 229, 0.4);
}

.product-guides-landing-banner .btn-light {
  border: none;
  color: #1e1b4b;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.product-guides-landing-banner .btn-light:hover {
  background: #eef2ff;
  color: #312e81;
}

@keyframes pg-sheen {
  0%, 100% { transform: translateX(-10%); opacity: 0.4; }
  50% { transform: translateX(10%); opacity: 0.95; }
}

@keyframes pg-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5%, 7%) scale(1.1); }
}

@keyframes pg-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(7%, -6%) scale(1.08); }
}

@keyframes pg-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .product-guides-landing-banner .pg-hero-glow,
  .product-guides-landing-banner .pg-hero-orb {
    animation: none;
  }
}

/* Rendered product documentation markdown (/product-guides) */
.product-guide-document {
  max-width: 52rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--pindah-text, #111827);
}

.product-guide-document > p:first-child img {
  display: block;
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
  object-position: center;
  border-radius: 0.35rem;
  border: 1px solid var(--pindah-border, #e5e7eb);
  margin: 0 0 1.75rem;
}

.product-guide-document h1,
.product-guide-document h2,
.product-guide-document h3,
.product-guide-document h4 {
  font-family: "IBM Plex Sans", Inter, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--pindah-navy, #111827);
  letter-spacing: -0.02em;
  scroll-margin-top: 5rem;
}

.product-guide-document h1 {
  font-size: 1.85rem;
  margin: 0 0 0.75em;
  padding-bottom: 0.35em;
  border-bottom: 3px solid var(--pindah-accent, #0c63e7);
}

.product-guide-document h2 {
  font-size: 1.35rem;
  margin: 1.6em 0 0.55em;
  padding-bottom: 0.3em;
  color: var(--pindah-accent, #0c63e7);
  border-bottom: 2px solid var(--pindah-border, #e5e7eb);
}

.product-guide-document h3 {
  font-size: 1.1rem;
  margin: 1.35em 0 0.4em;
}

.product-guide-document h4 {
  font-size: 1rem;
  margin: 1.2em 0 0.35em;
}

.product-guide-document p,
.product-guide-document ul,
.product-guide-document ol {
  margin: 0 0 0.85em;
}

.product-guide-document ul,
.product-guide-document ol {
  padding-left: 1.4em;
}

.product-guide-document li {
  margin: 0.25em 0;
}

.product-guide-document a {
  color: var(--pindah-accent, #0c63e7);
  font-weight: 500;
  text-decoration: none;
}

.product-guide-document a:hover {
  text-decoration: underline;
}

.product-guide-document hr {
  border: none;
  border-top: 1px solid var(--pindah-border, #e5e7eb);
  margin: 1.75em 0;
}

.product-guide-document table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0 1.25em;
  font-size: 0.92em;
}

.product-guide-document th,
.product-guide-document td {
  border: 1px solid var(--pindah-border, #e5e7eb);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

.product-guide-document th {
  background: #f3f4f6;
  border-bottom: 2px solid var(--pindah-accent, #0c63e7);
  font-weight: 600;
}

.product-guide-document tr:nth-child(even) td {
  background: var(--pindah-light, #f9fafb);
}

.product-guide-document img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
  border-radius: 6px;
  border: 1px solid var(--pindah-border, #e5e7eb);
}

.product-guide-document code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88em;
  background: var(--pindah-light, #f9fafb);
  padding: 0.12em 0.35em;
  border-radius: 3px;
  border: 1px solid var(--pindah-border, #e5e7eb);
}

.product-guide-document pre {
  background: var(--pindah-light, #f9fafb);
  border: 1px solid var(--pindah-border, #e5e7eb);
  border-radius: 6px;
  padding: 0.9em 1em;
  overflow-x: auto;
  margin: 1em 0;
}

.product-guide-document pre code {
  background: transparent;
  border: none;
  padding: 0;
}

.product-guide-document blockquote {
  margin: 1em 0;
  padding: 0.65em 1em;
  border-left: 4px solid var(--pindah-accent, #0c63e7);
  background: var(--pindah-light, #f9fafb);
  color: var(--pindah-muted, #6b7280);
}

.product-guide-document strong {
  font-weight: 600;
  color: var(--pindah-navy, #111827);
}
