/* Product capability pages (/product/*) — Snowflake-style long pages:
   hero with a live sim, alternating text|visual bands, feature grid, CTA.
   Leans on marketing tokens (styles.css) + sims (productsims.css). */

.prod .wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- hero ---- */
.prod-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
  background: radial-gradient(56vw 44vh at 82% -12%, rgba(102, 99, 253, 0.11), transparent 60%);
}
.prod-hero .wrap {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 3.5rem;
  align-items: center;
}
.prod-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.8rem;
}
.prod-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--color-text);
  margin: 0;
  text-wrap: balance;
}
.prod-hero h1 em,
.prod h2 em {
  font-style: normal;
  color: var(--color-accent);
}
.prod-sub {
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-top: 1.25rem;
  font-size: 1.12rem;
  line-height: 1.6;
}
.prod-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* ---- alternating feature bands ---- */
.pband {
  padding: 4.5rem 0;
  border-top: 1px solid var(--color-border);
}
.pband .wrap {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 4rem;
  align-items: center;
}
.pband--flip .wrap {
  grid-template-columns: 1.08fr 0.92fr;
}
.pband--flip .pband-copy { order: 2; }
.pband--flip .pband-visual { order: 1; }
.pband h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--color-text);
  margin: 0.2rem 0 0;
  text-wrap: balance;
}
.pband-copy > p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  line-height: 1.62;
  margin-top: 1.1rem;
  max-width: 46ch;
}
.pband-points {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pband-points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--color-text-muted);
  font-size: 0.96rem;
  line-height: 1.5;
}
.pband-points li b {
  color: var(--color-text);
  font-weight: 600;
}
.pband-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 9px;
  height: 9px;
  border-radius: 2.5px;
  background: var(--color-accent);
}
.pband-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.4rem;
  color: var(--color-accent-light);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
}
.pband-link:hover { text-decoration: underline; }

/* ---- feature grid ---- */
.pgrid-sec {
  padding: 4.5rem 0;
  border-top: 1px solid var(--color-border);
}
.pgrid-sec > .wrap > h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin: 0.2rem 0 0;
  max-width: 30ch;
  text-wrap: balance;
}
.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}
.pgrid-card {
  background: var(--color-surface, #f8f8fa);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.4rem;
}
.pgrid-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}
.pgrid-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* ---- "more of the platform" cross-links ---- */
.pmore {
  padding: 4rem 0 4.5rem;
  border-top: 1px solid var(--color-border);
}
.pmore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
}
.pmore-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.pmore-card:hover {
  border-color: rgba(102, 99, 253, 0.55);
  box-shadow: 0 8px 22px -10px rgba(102, 99, 253, 0.35);
  transform: translateY(-1px);
}
.pmore-card b {
  display: block;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.98rem;
}
.pmore-card span {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
  margin-top: 0.3rem;
}

/* ---- final CTA ---- */
.prod-final {
  padding: 5rem 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  background: radial-gradient(50vw 40vh at 50% 120%, rgba(102, 99, 253, 0.12), transparent 62%);
}
.prod-final h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin: 0;
}
.prod-final p {
  color: var(--color-text-muted);
  margin: 1rem auto 0;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.6;
}
.prod-final .prod-cta-row {
  justify-content: center;
}

@media (max-width: 920px) {
  .prod-hero .wrap,
  .pband .wrap {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .pband--flip .pband-copy { order: 1; }
  .pband--flip .pband-visual { order: 2; }
  .pgrid, .pmore-grid { grid-template-columns: 1fr; }
}

/* Mobile overflow guards: grid/flex children shrink below their content's
   intrinsic width, and the page never scrolls sideways. */
.prod { overflow-x: clip; }
@media (max-width: 920px) {
  .prod-hero .wrap > div, .prod-hero-visual, .pband-copy, .pband-visual,
  .pgrid-card, .pmore-card { min-width: 0; }
  .prod-hero .wrap, .pband .wrap { gap: 2.2rem; }
}
