/* Product pages: /products/ and /products/<slug>/. Scoped under .bs-prod. */
.bs-prod {
  --p-ink: #0b1736;
  --p-text: #4a5168;
  --p-muted: #6b7285;
  --p-line: #e7e9f0;
  --p-soft: #f6f7fb;
  --p-accent: var(--accent-color, #4154f1);
  --p-green: #1f9d55;
  --p-star: #f5a623;
  padding-top: 84px;
  color: var(--p-text);
  overflow-x: clip;
}

.bs-prod a { color: var(--p-accent); }
.bs-prod a:hover { color: var(--p-ink); }

.bs-prod h1,
.bs-prod h2,
.bs-prod h3 {
  color: var(--p-ink);
  letter-spacing: -0.02em;
}

.bs-prod h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 14px 0 18px;
}

.bs-h1-sub {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--p-muted);
}

.bs-prod h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}

.bs-lead {
  max-width: 560px;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--p-text);
}

.bs-muted { color: var(--p-muted); font-weight: 400; }

.bs-eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p-accent);
}

/* Breadcrumbs (markup from components/BlogParts.jsx) */
.bs-prod .bs-crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--p-muted);
}
.bs-prod .bs-crumbs a { color: var(--p-muted); }
.bs-prod .bs-crumbs a:hover { color: var(--p-accent); }
.bs-prod .bs-crumbs li + li::before { content: "/"; margin-right: 6px; color: #b5bacb; }

/* Buttons and links */
.bs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--p-ink) !important;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bs-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.45);
}

.bs-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--p-accent);
}

.bs-play-badge {
  display: inline-block;
  border-radius: 10px;
  transition: transform 0.2s;
}
.bs-play-badge:hover { transform: translateY(-1px); }
.bs-play-badge img { display: block; }

/* Rating line: "4.7 ★★★★★ 10 reviews · 100+ downloads" */
.bs-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--p-muted);
}
.bs-rating strong { font-size: 1rem; color: var(--p-ink); }
.bs-stars {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 1px;
  color: #d7dae3;
}
.bs-stars::before {
  content: "★★★★★";
  position: absolute;
  inset: 0;
  width: var(--fill);
  overflow: hidden;
  white-space: nowrap;
  color: var(--p-star);
}
.bs-dot { color: #b5bacb; }
.bs-rating.is-light { color: rgba(255, 255, 255, 0.72); }
.bs-rating.is-light strong { color: #fff; }
.bs-rating.is-light .bs-stars { color: rgba(255, 255, 255, 0.25); }
.bs-rating.is-light .bs-dot { color: rgba(255, 255, 255, 0.4); }

/* App name chip with icon */
.bs-app-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 6px 18px 6px 6px;
  border: 1px solid var(--p-line);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--p-ink);
}
.bs-app-tag img { width: 40px; height: 40px; border-radius: 10px; }
.bs-app-tag.is-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Phone frame around a 575×1208 screenshot */
.bs-phone {
  position: relative;
  width: 100%;
  max-width: 280px;
  padding: 9px;
  border-radius: 42px;
  background: #10131f;
  box-shadow:
    0 40px 80px -32px rgba(15, 23, 42, 0.45),
    0 12px 24px -12px rgba(15, 23, 42, 0.25),
    inset 0 0 0 1.5px #2a2f42;
}
.bs-phone::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 1;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #0b0d16;
  box-shadow: 0 0 0 2px #1d2132;
}
.bs-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 33px;
  background: #f2f2f7;
}

/* Hero */
.bs-prod-hero {
  padding: 28px 0 72px;
  background:
    radial-gradient(900px 480px at 85% 0%, #eceffe 0%, rgba(236, 239, 254, 0) 65%),
    linear-gradient(180deg, #fafbff 0%, #fff 100%);
}
.bs-prod-hero.is-compact { padding-bottom: 48px; }
.bs-prod-hero.is-compact .bs-eyebrow { margin-top: 32px; }
.bs-prod-hero.is-compact h1 { max-width: 820px; }

.bs-hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
  margin-top: 32px;
}
.bs-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 30px;
}
.bs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.bs-pills li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--p-soft);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--p-ink);
}
.bs-pills .bi { color: var(--p-accent); }

.bs-hero-phones,
.bs-featured-phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.bs-hero-phones .is-front,
.bs-featured-phones .is-front { order: 1; z-index: 2; width: 270px; }
.bs-hero-phones .is-back,
.bs-featured-phones .is-back { order: 2; z-index: 1; width: 245px; margin: 56px 0 0 -72px; }

/* Numbers strip */
.bs-highlights {
  border-block: 1px solid var(--p-line);
  background: #fff;
}
.bs-highlights dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
}
.bs-highlights dl > div { padding: 28px 12px; text-align: center; }
.bs-highlights dl > div:nth-child(even) { border-left: 1px solid var(--p-line); }
.bs-highlights dl > div:nth-child(n + 3) { border-top: 1px solid var(--p-line); }
.bs-highlights dt {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--p-ink);
}
.bs-highlights dd { margin: 6px 0 0; font-size: 0.92rem; color: var(--p-muted); }

/* Feature rows: copy beside a phone, alternating sides */
.bs-feature { padding: 88px 0; }
.bs-feature.is-reverse { background: var(--p-soft); }
.bs-feature-grid { display: grid; gap: 48px; align-items: center; }
.bs-feature-media { display: flex; justify-content: center; }
.bs-feature-media .bs-phone { max-width: 290px; }

.bs-checks {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.bs-checks li {
  position: relative;
  padding-left: 30px;
  line-height: 1.55;
}
.bs-checks .bi { position: absolute; left: 0; top: 1px; color: var(--p-green); }

/* Generic sections */
.bs-section { padding: 88px 0; }
.bs-soft { background: var(--p-soft); }
.bs-section-head { max-width: 860px; margin: 0 auto 48px; text-align: center; }
.bs-narrow { max-width: 840px; }

/* Feature and tool tiles */
.bs-tiles { display: grid; gap: 20px; grid-template-columns: 1fr; }
.bs-tile {
  padding: 28px;
  border: 1px solid var(--p-line);
  border-radius: 20px;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.bs-tile > .bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: #eef0ff;
  font-size: 1.3rem;
  color: var(--p-accent);
}
.bs-tile h3 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 600; }
.bs-tile p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--p-text); }
.bs-tile.is-link { display: block; color: inherit; }
.bs-tile.is-link:hover {
  transform: translateY(-2px);
  border-color: #c9cff5;
  box-shadow: 0 18px 40px -24px rgba(65, 84, 241, 0.4);
}
.bs-tile .bs-link { margin-top: 16px; }

/* Screenshot strip */
.bs-gallery {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px max(16px, calc((100% - 1296px) / 2)) 48px;
  scroll-padding-inline: max(16px, calc((100% - 1296px) / 2));
  scrollbar-width: thin;
}
.bs-gallery:focus-visible { outline: 2px solid var(--p-accent); outline-offset: -2px; }
.bs-shot { flex: 0 0 220px; margin: 0; scroll-snap-align: start; text-align: center; }
.bs-shot .bs-phone { max-width: none; padding: 7px; border-radius: 34px; }
.bs-shot .bs-phone img { border-radius: 27px; }
.bs-shot .bs-phone::before { top: 13px; width: 8px; height: 8px; margin-left: -4px; }
.bs-shot figcaption { margin-top: 16px; font-size: 0.92rem; font-weight: 500; color: var(--p-ink); }

/* Steps */
.bs-steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.bs-steps li {
  counter-increment: step;
  padding: 28px;
  border: 1px solid var(--p-line);
  border-radius: 20px;
  background: #fff;
}
.bs-steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--p-ink);
  font-weight: 700;
  color: #fff;
}
.bs-steps h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 600; }
.bs-steps p { margin: 0; line-height: 1.55; }

/* FAQ */
.bs-faq details { border-bottom: 1px solid var(--p-line); }
.bs-faq details:first-child { border-top: 1px solid var(--p-line); }
.bs-faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  list-style: none;
  cursor: pointer;
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--p-ink);
}
.bs-faq summary::-webkit-details-marker { display: none; }
.bs-faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--p-muted);
}
.bs-faq details[open] summary::after { content: "\2212"; }
.bs-faq details p { max-width: 720px; margin: -6px 0 22px; line-height: 1.65; }

/* Closing call to action */
.bs-cta {
  padding: 88px 0;
  text-align: center;
  background: radial-gradient(800px 420px at 50% 0%, #27327a 0%, #0b1736 70%);
  color: #fff;
}
.bs-cta h2 { color: #fff; }
.bs-cta p { color: rgba(255, 255, 255, 0.75); }
.bs-cta > .container > p:not(.bs-rating):not(.bs-cta-links) { margin-bottom: 28px; font-size: 1.1rem; }
.bs-cta-icon {
  margin-bottom: 22px;
  border-radius: 18px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
}
.bs-cta .bs-rating { justify-content: center; margin-top: 18px; }
.bs-cta-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 30px 0 0;
  font-size: 0.92rem;
}
.bs-prod .bs-cta-links a { color: rgba(255, 255, 255, 0.85); }
.bs-prod .bs-cta-links a:hover { color: #fff; }

.bs-disclaimer {
  max-width: 840px;
  padding: 28px 12px 44px;
  margin: 0 auto;
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: center;
  color: var(--p-muted);
}

/* /products/: featured product banner */
.bs-featured {
  display: grid;
  gap: 8px;
  align-items: end;
  padding: 44px 28px 0;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(760px 460px at 82% 18%, #2c3c94 0%, #0b1736 66%);
  color: #fff;
}
.bs-featured h2 { color: #fff; }
.bs-featured .bs-lead { color: rgba(255, 255, 255, 0.78); }
.bs-featured-copy { align-self: center; padding-bottom: 36px; }
.bs-featured-copy .bs-app-tag { margin-bottom: 22px; }
.bs-featured-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.bs-featured-phones { height: 380px; overflow: hidden; }
.bs-badge-new {
  width: fit-content;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #052e1c;
}

/* /products/: app cards */
.bs-app-cards { display: grid; gap: 24px; }
.bs-app-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--p-line);
  border-radius: 24px;
  background: #fff;
}
.bs-app-card p { margin: 0; line-height: 1.6; }
.bs-app-card-head { display: flex; align-items: center; gap: 16px; }
.bs-app-card-head img {
  width: 64px;
  height: 64px;
  border-radius: 20%;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}
.bs-app-card h3 { margin: 0 0 2px; font-size: 1.3rem; font-weight: 600; }
.bs-prod .bs-app-card h3 a { color: var(--p-ink); }
.bs-prod .bs-app-card h3 a:hover { color: var(--p-accent); }
.bs-app-card-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: auto;
  padding-top: 8px;
}

@media (min-width: 576px) {
  .bs-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .bs-highlights dl { grid-template-columns: repeat(4, 1fr); }
  .bs-highlights dl > div:nth-child(n) { border-top: 0; border-left: 1px solid var(--p-line); }
  .bs-highlights dl > div:first-child { border-left: 0; }
  .bs-steps { grid-template-columns: repeat(3, 1fr); }
  .bs-app-cards { grid-template-columns: repeat(2, 1fr); }
  .bs-shot { flex-basis: 240px; }
}

@media (min-width: 992px) {
  .bs-hero-grid { grid-template-columns: 1.05fr 1fr; }
  .bs-feature-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .bs-feature.is-reverse .bs-feature-copy { order: 2; }
  .bs-tiles { grid-template-columns: repeat(4, 1fr); }
  .bs-tiles.is-three { grid-template-columns: repeat(3, 1fr); }
  .bs-featured { grid-template-columns: 1.1fr 1fr; padding: 64px 48px 0 64px; }
  .bs-featured-copy { padding-bottom: 64px; }
  .bs-featured-phones { height: 440px; }
}

@media (max-width: 575px) {
  .bs-feature,
  .bs-section,
  .bs-cta { padding: 64px 0; }
  .bs-hero-phones .is-front,
  .bs-featured-phones .is-front { width: 210px; }
  .bs-hero-phones .is-back,
  .bs-featured-phones .is-back { width: 190px; margin: 44px 0 0 -60px; }
  .bs-phone { padding: 7px; border-radius: 34px; }
  .bs-phone img { border-radius: 27px; }
  .bs-phone::before { top: 13px; }
  .bs-feature-media .bs-phone { max-width: 240px; }
  .bs-app-card { padding: 24px; }
  .bs-featured-phones { height: 320px; }
}

/* ProductsShowcase on the homepage: same look as the /products/ h1 and featured h2. */
.bs-prod.is-embedded { padding-top: 0; }
.bs-prod .bs-showcase-title {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 14px 0 18px;
  max-width: 820px;
}
.bs-featured .bs-featured-title { color: #fff; }
.bs-prod h3.bs-featured-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.15; }
