/* ==========================================================================
   Products page — five product showcases with flyer-derived UI previews
   ========================================================================== */
.prod-hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.prod-hero h1 { max-width: 22ch; margin-inline: auto; text-wrap: balance; }
.prod-hero .section-lead { max-width: 46rem; margin-inline: auto; }
.prod-hero .eyebrow { justify-content: center; }

.prod-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 62rem;
  margin-top: 2.5rem;
}
.prod-directory a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
  padding: 0.95rem 1rem 0.9rem;
  border: 1px solid #dce7f1;
  border-radius: 0.75rem;
  color: #09234b;
  background: #fff;
  box-shadow: 0 6px 18px rgba(9, 35, 75, 0.05);
  text-align: left;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.prod-directory a::before { position: absolute; inset: 0 0 auto; height: 3px; content: ""; background: var(--accent); }
.prod-directory a span { color: #61758c; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.prod-directory a strong { font-family: var(--font-heading); font-size: 1.05rem; }
.prod-directory a:last-child { grid-column: span 2; }
.prod-directory a:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 12px 26px rgba(9, 35, 75, 0.1); }

.prod-section { padding-block: clamp(3rem, 6vw, 5rem); background: #edf4fa; }
.prod-stack { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }

.prod {
  --accent: #3fb8f5;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 1.1rem;
  color: #fff;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 26rem),
    linear-gradient(140deg, #0b2540, #081a2e);
  box-shadow: 0 22px 48px rgba(9, 35, 75, 0.14);
  scroll-margin-top: 6rem;
}
.prod::after { position: absolute; inset: 0 0 auto; height: 3px; content: ""; background: var(--accent); opacity: 0.85; }
.prod--flip .prod-copy { order: 2; }
.prod--flip .prod-visual { order: 1; }

.prod-copy { display: flex; flex-direction: column; padding: clamp(1.75rem, 4vw, 3.5rem); }
.prod .eyebrow { color: var(--accent); }
.prod .eyebrow::before { background: var(--accent) !important; box-shadow: none !important; }
.prod h2 { margin-top: 0.6rem; color: #fff; font-size: clamp(2.1rem, 1.6rem + 2vw, 3.4rem); line-height: 1.02; letter-spacing: -0.02em; }
.prod-hook { max-width: 32rem; margin-top: 0.9rem; color: #fff; font-family: var(--font-heading); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); font-weight: 700; line-height: 1.3; }
.prod-copy > p:not(.eyebrow):not(.prod-hook) { max-width: 36rem; margin-top: 0.85rem; color: rgba(238, 246, 251, 0.72); font-size: 1rem; line-height: 1.6; }
.prod ul { display: grid; gap: 0.6rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.prod li { position: relative; padding-left: 1.6rem; color: rgba(238, 246, 251, 0.9); font-size: 0.95rem; font-weight: 600; line-height: 1.45; }
.prod li::before {
  position: absolute;
  top: 0.12rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  content: "\2713";
  border-radius: 50%;
  color: #081a2e;
  background: var(--accent);
  font-size: 0.62rem;
  font-weight: 900;
}

.prod-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin: 1.6rem 0 0; }
.prod-stats div { padding: 0.75rem 0.8rem; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 0.6rem; background: rgba(255, 255, 255, 0.04); }
.prod-stats dt { color: var(--accent); font-family: var(--font-heading); font-size: 1.05rem; font-weight: 800; }
.prod-stats dd { margin: 0.2rem 0 0; color: rgba(238, 246, 251, 0.62); font-size: 0.74rem; line-height: 1.35; }

.prod-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.75rem; }
.prod-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.6rem;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.prod-btn small { padding: 0.08rem 0.35rem; border-radius: 0.3rem; background: rgba(255, 255, 255, 0.12); font-size: 0.6rem; letter-spacing: 0.06em; }
.prod-btn:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.06); }
.prod-btn--primary { border-color: #0069b7; background: #0069b7; }
.prod-btn--primary:hover { border-color: #0a7fd6; background: #0a7fd6; transform: translateY(-1px); }
.prod-btn b { transition: transform 150ms ease; }
.prod-btn:hover b { transform: translateX(2px); }

.prod-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 24rem;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.75rem);
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    rgba(1, 8, 16, 0.25);
}
.prod-shot {
  width: 100%;
  max-height: 22rem;
  object-fit: contain;
  border: 1px solid rgba(238, 246, 251, 0.18);
  border-radius: 0.5rem;
  background: #f5f8f8;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.3);
}
.prod-visual.product-mail-tunnel { padding: 0; background: #09234b; }
.prod-visual.product-mail-tunnel canvas { width: 100%; height: 100%; min-height: 24rem; }

/* Flyer-style interface cards */
.ui-stack { display: grid; gap: 0.85rem; width: 100%; max-width: 27rem; }
.ui-card {
  width: 100%;
  max-width: 27rem;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  color: #10233a;
  background: #f7fafc;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  font-size: 0.8rem;
}
.ui-card--float { position: absolute; right: clamp(0.75rem, 2vw, 1.5rem); bottom: clamp(0.75rem, 2vw, 1.5rem); max-width: 17.5rem; font-size: 0.72rem; }
.ui-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 0.75rem; border-radius: 0.55rem; color: #fff; background: #0b2540; font-weight: 800; }
.ui-head em { padding: 0.12rem 0.45rem; border-radius: 0.3rem; background: rgba(255, 255, 255, 0.16); font-size: 0.68rem; font-style: normal; white-space: nowrap; }
.ui-head--alert { background: #d9364a; }
.ui-head--accent em { background: var(--accent); }
.ui-head em.ui-pill-ok { color: #2b1a00; background: #f5a524; }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.45rem; padding: 0.55rem 0.75rem; border: 1px solid #e2e9f0; border-radius: 0.55rem; background: #fff; }
.ui-row span { font-weight: 700; }
.ui-row small { display: block; color: #6b7d90; font-size: 0.68rem; font-weight: 500; }
.ui-row b { padding: 0.15rem 0.45rem; border-radius: 0.3rem; background: #eef3f8; font-size: 0.7rem; white-space: nowrap; }
.ui-row b.ui-ok { color: #0f7a4f; background: #e3f6ec; }
.ui-row b.ui-bad { color: #c22a3c; background: #fde8eb; }
.ui-row b.ui-warn { color: #b4500d; background: #fdeedd; }
.ui-transfer { margin-top: 0.45rem; padding: 0.65rem 0.75rem; border: 1px solid #f2dca8; border-radius: 0.55rem; background: #fff9ea; }
.ui-transfer-top { display: flex; justify-content: space-between; font-weight: 700; }
.ui-bar { height: 0.4rem; margin: 0.45rem 0 0.35rem; overflow: hidden; border-radius: 1rem; background: #f1e3c0; }
.ui-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f5a524, var(--accent)); }
.ui-transfer small { color: #7a6a45; font-size: 0.68rem; }
.ui-chat { padding: 0.75rem; }
.ui-q { margin: 0; padding: 0.7rem 0.85rem; border-radius: 0.6rem 0.6rem 0.6rem 0.15rem; color: #fff; background: #0b2540; font-weight: 700; line-height: 1.4; }
.ui-a { margin: 0.6rem 0 0; padding: 0.75rem 0.85rem; border: 1px solid #e2e9f0; border-radius: 0.6rem; color: #2a3b4f; background: #fff; line-height: 1.5; }
.ui-a b { color: #0b2540; }
.ui-chips, .ui-foot { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.ui-chips span { padding: 0.25rem 0.55rem; border-radius: 0.35rem; color: #10233a; background: color-mix(in srgb, var(--accent) 18%, #fff); font-size: 0.7rem; font-weight: 700; }
.ui-foot span { flex: 1; padding: 0.45rem 0.55rem; border: 1px solid #e2e9f0; border-radius: 0.45rem; background: #fff; font-size: 0.68rem; font-weight: 700; text-align: center; }

@media (max-width: 960px) {
  .prod-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prod-directory a:last-child { grid-column: 1 / -1; }
  .prod { grid-template-columns: 1fr; }
  .prod--flip .prod-copy { order: 1; }
  .prod--flip .prod-visual { order: 2; }
  .prod-visual { min-height: 0; }
  .prod-visual.product-mail-tunnel canvas { min-height: 16rem; }
}

@media (max-width: 680px) {
  .prod-hero { align-items: stretch; text-align: left; }
  .prod-hero .eyebrow { justify-content: flex-start; }
  .prod-hero h1, .prod-hero .section-lead { margin-inline: 0; }
  .prod-directory { grid-template-columns: 1fr 1fr; }
  .prod-directory a:last-child { grid-column: 1 / -1; }
  .prod-stats { gap: 0.4rem; }
  .prod-stats div { padding: 0.6rem; }
  .prod-stats dt { font-size: 0.92rem; }
  .prod-stats dd { font-size: 0.68rem; }
  .prod-visual:has(.ui-card--float) { display: flex; flex-direction: column; align-items: center; }
  .ui-card--float { position: relative; right: auto; bottom: auto; max-width: 92%; margin-top: -2.5rem; }
}
