/* Brushi — dark glass theme (MagicPen-style) with seamless section joins */

.brushi-page {
  background: #fff;
}

.brushi-page .section-lg {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .brushi-page .section-lg {
    padding: 72px 0;
  }
}

@media (max-width: 576px) {
  .brushi-page .section-lg {
    padding: 56px 0;
  }
}

/* ── Hero: dark glass, subtle bg, fades to white ── */
.brushi-hero {
  padding: 0 !important;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.brushi-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/brushi/screenshot-home.png') center 35% / cover no-repeat;
  filter: blur(32px) saturate(0.85) brightness(0.55);
  transform: scale(1.15);
  opacity: 0.55;
  pointer-events: none;
}

.brushi-hero-overlay {
  position: relative;
  z-index: 1;
  padding: 100px 0 140px;
  /* dark through most of hero, long smooth fade to white at bottom */
  background: linear-gradient(180deg,
    rgba(8, 10, 16, 0.78) 0%,
    rgba(8, 10, 16, 0.85) 40%,
    rgba(8, 10, 16, 0.82) 62%,
    rgba(12, 14, 22, 0.72) 78%,
    rgba(40, 42, 52, 0.50) 88%,
    rgba(140, 142, 150, 0.28) 94%,
    rgba(235, 236, 240, 0.92) 98%,
    #ffffff 100%);
}

.brushi-hero-overlay .container {
  padding-bottom: 80px;
}

.brushi-page .brushi-hero .magicpen-hero-panel {
  max-width: 38rem;
}

.brushi-mascot-hero {
  max-width: 240px;
  width: 100%;
  height: auto !important;
  max-height: none;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
  flex-shrink: 0;
}

/* ── Dark image sections (facts + CTA) ── */
.brushi-section-dark {
  padding: 0 !important;
  position: relative;
  overflow: hidden;
}

.brushi-section-dark.bg-image .container {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}

.brushi-facts-bg {
  background-size: cover;
  background-position: center;
  background-image: url('../assets/images/brushi/screenshot-categories.png');
}

.brushi-cta-section {
  background: #fff;
}

.brushi-cta-section .brushi-cta-text {
  color: #444;
}

.brushi-cta-section .brushi-cta-text strong {
  color: #1d1d1f;
}

.brushi-cta-section .brushi-cta-char {
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.12));
}

/* Mute busy screenshot backgrounds */
.brushi-section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(0.7) brightness(0.45);
  transform: scale(1.12);
  opacity: 0.5;
  pointer-events: none;
}

.brushi-dark-overlay {
  position: relative;
  z-index: 1;
  background: linear-gradient(165deg,
    rgba(6, 8, 14, 0.92) 0%,
    rgba(0, 0, 0, 0.86) 50%,
    rgba(8, 10, 18, 0.92) 100%);
}

.brushi-dark-overlay--deep {
  background: rgba(0, 0, 0, 0.78);
}

.brushi-cta-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0;
}

.brushi-cta-text strong {
  color: #fff;
}

@media (max-width: 768px) {
  .brushi-section-dark.bg-image .container {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }
}

/* App showcase — Coloring + Free Draw */
.brushi-showcase-copy {
  font-size: 1.06rem;
  line-height: 1.65;
  color: #2d2d2d;
}

.brushi-showcase-shots {
  display: grid;
  gap: 24px;
  width: 100%;
  overflow: visible;
}

.brushi-showcase-shots--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
}

.brushi-showcase-shots--single {
  grid-template-columns: minmax(0, 480px);
  justify-content: start;
  max-width: none;
}

.brushi-showcase-shot {
  margin: 0;
  padding: 0;
  display: block;
  overflow: visible;
  min-width: 0;
  width: 100%;
}

.brushi-showcase-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

#screenshots .row,
#screenshots [class*="col-"],
#screenshots .brushi-showcase-shots,
#screenshots .brushi-showcase-shot {
  overflow: visible !important;
}

.brushi-showcase-shot--side {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.brushi-showcase-shot--side img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brushi-showcase-shot figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #666;
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 991px) {
  .brushi-showcase-shots--triple {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .brushi-showcase-shots--single {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

#screenshots .section-lg {
  padding: 100px 0;
}

@media (max-width: 768px) {
  #screenshots .section-lg {
    padding: 72px 0;
  }
}

.brushi-page .magicpen-facts-grid > [class*="col-"] {
  margin-bottom: 1.25rem;
}

@media (min-width: 992px) {
  .brushi-page .magicpen-facts-grid > [class*="col-"] {
    margin-bottom: 0;
  }
}

/* ── Character placements ── */

/* Hero mascot + speech bubble */
.brushi-hero-mascot-wrap {
  display: inline-flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
  justify-content: center;
}

.brushi-speech-bubble {
  background: rgba(255, 255, 255, 0.95);
  color: #1d1d1f;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 10px 16px;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 20px;
  text-align: left;
  max-width: 175px;
}

.brushi-speech-bubble span {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: #777;
  margin-top: 2px;
}

/* Section character images */
.brushi-section-char {
  width: 210px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.12));
}

/* Fact card character images (replaces icons) */
.brushi-card-char {
  width: 132px;
  height: auto;
  display: block;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18));
}

/* CTA mascot */
.brushi-cta-char {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}

/* Reactions strip */
.brushi-reactions-strip {
  background: #fff8f2;
  border-top: 1px solid #f0e8df;
  border-bottom: 1px solid #f0e8df;
  padding: 48px 0;
}

.brushi-reactions-label {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 32px;
}

.brushi-reactions-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.brushi-reaction-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 135px;
}

.brushi-reaction-item img {
  width: 108px;
  height: auto;
  display: block;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.1));
  transition: transform 0.2s ease;
}

.brushi-reaction-item:hover img {
  transform: translateY(-4px) scale(1.06);
}

.brushi-reaction-item span {
  font-size: 0.78rem;
  color: #666;
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}

@media (max-width: 575px) {
  .brushi-hero-mascot-wrap {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .brushi-speech-bubble {
    border-radius: 12px;
    text-align: center;
    max-width: 200px;
    margin-bottom: 0;
  }
  .brushi-reactions-row { gap: 20px; }
  .brushi-reaction-item { width: 105px; }
  .brushi-reaction-item img { width: 84px; }
  .brushi-section-char { width: 165px; }
}

/* Legal pages — light glass card on muted bg */
.brushi-page.brushi-legal .section-lg.bg-light {
  padding-top: 120px;
  background: #f5f5f7;
}

.brushi-legal-wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 2.25rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.brushi-legal-wrap h1 {
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: #1d1d1f;
}

.brushi-legal-wrap .legal-meta {
  font-size: 0.875rem;
  color: #86868b;
  margin-bottom: 1.5rem;
}

.brushi-legal-wrap h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: #1d1d1f;
}

.brushi-legal-wrap p,
.brushi-legal-wrap li {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #444;
}

.brushi-legal-wrap ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.brushi-legal-wrap a {
  color: #0066cc;
}

@media (max-width: 767.98px) {
  .brushi-mascot-hero {
    max-width: 210px;
  }

  .brushi-hero-overlay {
    padding-top: 84px;
    padding-bottom: 100px;
  }

  .brushi-hero-overlay .container {
    padding-bottom: 56px;
  }
}
