/* Digital Products pages (apps/**). Product palettes are scoped to .product so
   they never leak into the corporate site styles. Light theme only; third-party
   carousel/animation libraries were replaced by the CSS below (strict CSP). */
.product {
  --primary-color: #8a5a0b;
  --primary-light: #c08a1e;
  --accent-color: #e0b04a;
  --ink-color: #2a1e10;
  --primary-gradient: linear-gradient(135deg, #c08a1e, #e0b04a);
  --hero-gradient: linear-gradient(135deg, #1a140c, #3a2810 55%, #6b4a1a);
  --light-bg: #f2e2bf;
  --white-bg: #fbf5e6;
  --text-color: #2a1e10;
  --text-muted: #6b5a40;
  --border-color: rgb(138, 90, 11, 0.18);
  --border-radius: 16px;
  --box-shadow: 0 10px 30px rgb(42, 30, 16, 0.1);
  --transition: all 0.3s ease;
}

.product {
  background: var(--white-bg);
  color: var(--text-color);

  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.product a {
  color: var(--primary-color);
}

.product .text-primary {
  color: var(--primary-color) !important;
}

.product .text-muted {
  color: var(--text-muted) !important;
}

.product .bg-light {
  background: var(--light-bg) !important;
}

.product .btn-primary {
  background: var(--primary-gradient);
  border: none;
  border-radius: 25px;
  font-weight: 600;
  padding: 0.5rem 1.5rem !important;
}

.product .btn-primary:hover {
  filter: brightness(1.08);
}

.product .hero-section {
  background: var(--hero-gradient);
  color: #fff;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 100px;
  position: relative;
}

.product .hero-section .lead,
.product .hero-section .text-muted {
  color: rgb(255, 255, 255, 0.82) !important;
}

.product .hero-glyphs {
  font-size: 1.6rem;
  letter-spacing: 0.6rem;
  color: var(--accent-color);
  opacity: 0.9;
}

.product .bg-primary-soft {
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgb(255, 255, 255, 0.18);
  border-radius: 30px;
  color: #fff;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 600;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
}

.product .stats {
  flex-wrap: wrap;
}

.product .stat h4 {
  font-weight: 700;
}

.product .hero-image {
  text-align: center;
  padding: 2rem 0;
}

.product .phone-frame {
  border-radius: 44px;
  box-shadow: 0 30px 80px rgb(0, 0, 0, 0.45);
  max-height: 78vh;
  width: auto;
  border: 8px solid #1a140c;
}

.product .download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.product .btn-download img {
  height: 54px;
  width: auto;
}

.product .coming-soon {
  font-size: 0.85rem;
}

.product .privacy-card {
  background: var(--white-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 3rem;
}

.product .privacy-feature h5 {
  font-weight: 600;
}

.product .feature-card {
  background: var(--white-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: 100%;
  padding: 2rem;
  transition: var(--transition);
}

.product .feature-card:hover {
  transform: translateY(-6px);
}

.product .feature-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

.product .feature-icon {
  align-items: center;
  background: var(--primary-gradient);
  border-radius: 16px;
  color: var(--ink-color);
  display: flex;
  font-size: 1.6rem;
  height: 70px;
  justify-content: center;
  margin-bottom: 1.5rem;
  width: 70px;
}

.product .theme-card {
  background: var(--white-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: 100%;
  padding: 1.5rem;
  text-align: center;
}

.product .theme-card .glyph-row {
  font-size: 1.6rem;
  letter-spacing: 0.3rem;
  min-height: 2.6rem;
}

.product .theme-card .price {
  font-weight: 700;
  color: var(--primary-color);
}

.product .theme-card.featured {
  border: 2px solid var(--primary-light);
}

.product .badge-free {
  background: var(--accent-color);
  color: var(--ink-color);
}

.product .screenshot-swiper {
  padding-bottom: 3rem;
}

.product .screenshot-slide {
  text-align: center;
}

.product .screenshot-slide img {
  border-radius: 28px;
  box-shadow: var(--box-shadow);
  max-height: 640px;
  width: auto;
}

.product .swiper-pagination-bullet-active {
  background: var(--primary-color);
}

.product .accordion-item {
  background: var(--white-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.product .accordion-button {
  background: var(--white-bg);
  border: none;
  color: var(--text-color);
  font-weight: 600;
  padding: 1.5rem;
}

.product .accordion-button:not(.collapsed) {
  background: var(--light-bg);
  color: var(--primary-color);
  box-shadow: none;
}

.product .accordion-body {
  color: var(--text-muted);
}

.product .cta-section {
  background: var(--hero-gradient);
  overflow: hidden;
  padding: 100px 0;
  position: relative;
}

.product .app-promo {
  align-items: center;
  background: var(--white-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem;
}

.product .app-promo img {
  border-radius: 22px;
  height: 96px;
  width: 96px;
}

.product .app-promo .promo-text {
  flex: 1 1 16rem;
}

.product .product-header {
  padding-top: 120px !important;
}

.product .legal h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 2.5rem;
}

@media (max-width: 991px) {
  .product .hero-section {
    min-height: auto;
    padding-bottom: 3rem;
  }
  .product .phone-frame {
    max-height: 560px;
  }
  .product .privacy-card {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 575px) {
  .product .theme-card {
    padding: 1.25rem 0.75rem;
  }
  .product .theme-card .glyph-row {
    font-size: 1.25rem;
    letter-spacing: 0.15rem;
    white-space: nowrap;
  }
}

/* Glyph Grids palette */
.product.grids {
  --primary-color: #4f3a8f;
  --primary-light: #83e5c7;
  --accent-color: #83e5c7;
  --ink-color: #0b2a24;
  --primary-gradient: linear-gradient(135deg, #83e5c7, #b9a3f0);
  --hero-gradient: linear-gradient(135deg, #100d1b, #211a33 55%, #3b2a5c);
  --light-bg: #ece7f6;
  --white-bg: #f8f6fc;
  --text-color: #1c1630;
  --text-muted: #5d5473;
  --border-color: rgb(79, 58, 143, 0.18);
  --box-shadow: 0 10px 30px rgb(28, 22, 48, 0.1);
}

.product.grids .phone-frame {
  border-color: #100d1b;
}

.product .store-soon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.product .store-soon img {
  height: 54px;
  width: auto;
  opacity: 0.55;
}

.product .store-soon img.play-badge {
  height: 80px;
  margin: -13px 0;
}

.product .store-soon span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255, 255, 255, 0.82);
}

.product.hub {
  --primary-color: #0b4f8a;
  --primary-gradient: linear-gradient(135deg, #1c4f82, #2d6fb0);
  --ink-color: #fff;
  --light-bg: #eef3f8;
  --white-bg: #fff;
  --text-color: #1a2433;
  --text-muted: #4a5870;
  --border-color: rgb(15, 40, 70, 0.14);
}
/* Screenshot carousel (CSS scroll-snap; replaces Swiper) */
.product .shot-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.5rem 1rem 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.product .shot-slide {
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: center;
}
.product .shot-slide img {
  border-radius: 28px;
  box-shadow: var(--box-shadow);
  height: auto;
  max-height: 640px;
  max-width: 100%;
  width: auto;
}
.product .shot-track:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 4px;
}

/* Store buttons (self-hosted; no third-party badge images under the CSP) */
.product .store-badge {
  align-items: center;
  background: #000;
  border: 1px solid #a6a6a6;
  border-radius: 10px;
  color: #fff !important;
  display: inline-flex;
  gap: 0.6rem;
  line-height: 1.1;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
}
.product .store-badge i {
  font-size: 1.9rem;
}
.product .store-badge span {
  display: flex;
  flex-direction: column;
  font-size: 1.25rem;
  font-weight: 600;
}
.product .store-badge small {
  font-size: 0.65rem;
  font-weight: 400;
}
.product a.store-badge:hover {
  background: #222;
}
.product .store-badge-soon {
  opacity: 0.8;
}
.product .app-promo img {
  height: 96px;
  width: 96px;
}

/* Digital Products hub */
.product .hub-hero {
  background: linear-gradient(135deg, #0b1d33, #12345a 60%, #1c4f82);
  color: #fff;
  padding: 140px 0 70px;
}
.product .hub-hero .lead {
  color: rgb(255, 255, 255, 0.88);
}
.product .product-card {
  background: #fff;
  border: 1px solid rgb(15, 40, 70, 0.14);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgb(15, 40, 70, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  padding: 2rem;
}
.product .product-card img {
  border-radius: 18px;
  height: 80px;
  width: 80px;
}
.product .product-card .status {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Corporate heading colors are tuned for dark heroes; product sections set their own. */
.product h1,
.product h2,
.product h3,
.product h4,
.product h5,
.product h6 {
  color: inherit;
}

.product p a:not(.btn, .store-badge),
.product li a:not(.btn, .store-badge),
.product .accordion-body a {
  text-decoration: underline;
}
