:root {
  --bg-lavender: #ebe3f3;
  --bg-cream: #efe2cf;
  --bg-soft: #f6f1f8;
  --ink: #171d14;
  --muted: #5f5a67;
  --purple: #6b4eb2;
  --purple-dark: #4a2d87;
  --pink: #ef4b78;
  --yellow: #f4cf1f;
  --green: #71ce63;
  --cyan: #28b5d2;
  --orange: #f5a33b;
  --card: rgba(255,255,255,.72);
  --border: rgba(23,29,20,.12);
  --shadow: 0 18px 45px rgba(44, 34, 71, .14);
  --round-xl: 40px;
  --round-lg: 28px;
  --round-md: 20px;
  --max: 1220px;
  --splash: url("/assets/images/rainbow-paint-splash.png");
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 12% 10%, rgba(244,207,31,.3), transparent 18rem), radial-gradient(circle at 88% 7%, rgba(40,181,210,.18), transparent 20rem), linear-gradient(180deg, var(--bg-lavender) 0%, var(--bg-soft) 45%, #f7f2e8 100%);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", "Avenir Next", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 1000;
  letter-spacing: -.03em;
  font-size: 1.45rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(44,34,71,.14);
  flex: 0 0 auto;
}

.brand-name {
  color: #402c78;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 38px;
  align-items: center;
}

h1, h2, h3 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", "Trebuchet MS", sans-serif;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.1;
  text-transform: uppercase;
}

h1 {
  margin-top: 18px;
  font-size: clamp(3rem, 7vw, 6rem);
  max-width: 760px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-visual {
  position: relative;
  min-height: 600px;
}

.hero-card {
  position: relative;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow);
  border-radius: 34px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.hero-main {
  padding: 14px;
  transform: rotate(-1.8deg);
}

.hero-main img {
  width: 100%;
  border-radius: 26px;
}

.floating-badge {
  position: absolute;
  left: -18px;
  bottom: 30px;
  width: min(54%, 270px);
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.90);
  border: 1px solid var(--border);
  box-shadow: 0 14px 26px rgba(44,34,71,.13);
}

.floating-badge strong {
  display: block;
  font-size: .96rem;
  line-height: 1.4;
  color: var(--ink);
}

.floating-badge span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
  font-size: .88rem;
}

section {
  padding: 78px 0;
}

h2 {
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items: center;
}

.feature-card {
  border-radius: var(--round-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.feature-card .text {
  padding: 26px;
}

.feature-card h3 {
  font-size: 1.8rem;
}

.feature-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.poster-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.poster-stack .shot {
  background: rgba(255,255,255,.84);
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 16px 34px rgba(44,34,71,.12);
  border: 1px solid rgba(255,255,255,.8);
}

.poster-stack .shot img {
  width: 100%;
  border-radius: 20px;
  position: relative;
  z-index: 2;
}

.hero-main, .poster-stack .shot, .screen, .gallery-grid .panel, .portrait-block .photo {
  position: relative;
  isolation: isolate;
}

.hero-main::before, .poster-stack .shot::before, .screen::before, .gallery-grid .panel::before, .portrait-block .photo::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 32px;
  background: url('/assets/images/dark-rainbow-paint-splash.png') no-repeat center / cover;
  opacity: .18;
  z-index: -1;
  pointer-events: none;
}

.hero-main::before {
  inset: -14px;
  border-radius: 40px;
  opacity: .16;
  transform: rotate(-3deg);
}

.poster-stack .shot::before, .screen::before, .gallery-grid .panel::before {
  inset: -10px;
  border-radius: 24px;
  opacity: .16;
  transform: rotate(-1.5deg);
}

.portrait-block .photo::before {
  inset: -12px;
  border-radius: 34px;
  opacity: .15;
  transform: rotate(1.5deg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  position: relative;
  padding: 26px;
  border-radius: var(--round-lg);
  background: rgba(255,255,255,.74);
  border: 1px solid var(--border);
  box-shadow: 0 16px 34px rgba(44,34,71,.1);
  overflow: hidden;
}

.step::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -30px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(244,207,31,.25);
}

.step:nth-child(2)::after {
  background: rgba(40,181,210,.2);
}

.step:nth-child(3)::after {
  background: rgba(239,75,120,.18);
}

.step:nth-child(4)::after {
  background: rgba(137,100,246,.18);
}

.step-no {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  color: #221;
  font-weight: 1000;
  margin-bottom: 16px;
  box-shadow: 0 10px 18px rgba(239,75,120,.18);
}

.step h3 {
  font-size: 1.5rem;
}

.step p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.screens {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.screen {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,.84);
  padding: 10px;
  box-shadow: 0 18px 36px rgba(44,34,71,.12);
  border: 1px solid rgba(255,255,255,.8);
}

.screen img {
  width: 100%;
  border-radius: 18px;
}

.gallery-band {
  position: relative;
  padding: 28px;
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.72)), linear-gradient(120deg, rgba(40,181,210,.12), rgba(239,75,120,.08));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: stretch;
}

.gallery-grid .panel {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,.82);
  padding: 10px;
  border: 1px solid rgba(255,255,255,.75);
}

.gallery-grid .panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.portrait-block {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
  align-items: center;
}

.portrait-block .photo {
  padding: 12px;
  border-radius: 24px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.8);
}

.portrait-block .photo img {
  border-radius: 20px;
  width: 100%;
}

.callout {
  padding: 30px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(107,78,178,.96), rgba(74,45,135,.96));
  color: #fff;
  box-shadow: 0 20px 40px rgba(74,45,135,.22);
}

.callout h3 {
  font-size: 2rem;
  color: #fff;
}

.callout p {
  margin: 14px 0 0;
  color: rgba(255,255,255,.82);
  font-weight: 700;
  font-size: 1.02rem;
}

.check-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 8px;
  color: rgba(255,255,255,.9);
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-weight: 1000;
}

.store {
  min-width: 196px;
  padding: 13px 18px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 14px 28px rgba(23,29,20,.16);
}

.store svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.store small {
  display: block;
  font-size: .72rem;
  color: rgba(255,255,255,.72);
  line-height: 1;
}

.store strong {
  display: block;
  font-size: 1rem;
  line-height: 1.08;
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .hero-grid, .story-grid, .gallery-grid, .portrait-block {
    grid-template-columns: 1fr;
  }
  .screens {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .poster-stack {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, var(--max));
  }
  .hero {
    padding-top: 46px;
  }
  .screens, .poster-stack {
    grid-template-columns: 1fr;
  }
  .store, .btn {
    width: 100%;
  }
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
  section {
    padding: 58px 0;
  }
  h1 {
    font-size: clamp(2.7rem, 15vw, 4.7rem);
  }
}

.rock-gallery {
  position: relative;
  padding: 28px;
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(255,255,255,.90), rgba(255,255,255,.76)), linear-gradient(120deg, rgba(40,181,210,.10), rgba(239,75,120,.08));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: visible;
  isolation: isolate;
}

.rock-gallery::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 42px;
  background: inherit;
  opacity: .28;
  z-index: -2;
  filter: blur(10px);
}

.rock-gallery .section-head {
  position: relative;
  z-index: 2;
}

.rock-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.rock-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: 0 14px 28px rgba(44,34,71,.12);
  transform: translateZ(0);
}

.rock-card::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(244,207,31,.22), rgba(239,75,120,.16), rgba(40,181,210,.15));
  opacity: .35;
  z-index: 0;
}

.rock-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  padding: 4px;
  transition: transform .25s ease;
}

.rock-card:hover img {
  transform: scale(1.02);
}

.rock-gallery-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1024px) {
  .rock-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 760px) {
  .rock-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 520px) {
  .rock-gallery {
    padding: 18px;
  }
  .rock-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

/* Tight rock mosaic override */
.rock-gallery {
  padding: 20px !important;
}

.rock-grid {
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 3px !important;
  margin-top: 18px !important;
}

.rock-card {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.rock-card::before {
  display: none !important;
}

.rock-card img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  padding: 0 !important;
  border-radius: 10px !important;
}

@media (max-width: 1024px) {
  .rock-grid {
    grid-template-columns: repeat(6, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .rock-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 3px !important;
  }
}

@media (max-width: 520px) {
  .rock-gallery {
    padding: 12px !important;
  }
  .rock-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2px !important;
  }
}

/* Make the How it works heading use the full available width */
#how-it-works .section-head {
  max-width: none !important;
  width: 100% !important;
}

#how-it-works .section-copy {
  max-width: none !important;
}

/* Make the How it works title really use the desktop width */
#how-it-works .section-head {
  max-width: none !important;
  width: 100% !important;
}

#how-it-works h2 {
  max-width: none !important;
  width: 100% !important;
  font-size: clamp(3.2rem, 7.2vw, 6.4rem) !important;
  line-height: .88 !important;
  letter-spacing: .005em !important;
  white-space: nowrap !important;
}

#how-it-works .section-copy {
  max-width: none !important;
  width: 100% !important;
  font-size: 1.18rem !important;
}

@media (max-width: 980px) {
  #how-it-works h2 {
    white-space: normal !important;
    font-size: clamp(3rem, 11vw, 5.2rem) !important;
  }
}

/* Balanced title size for the How it works section */
#how-it-works h2 {
  font-size: clamp(2.6rem, 5.1vw, 4.75rem) !important;
  line-height: .94 !important;
  white-space: nowrap !important;
}

@media (max-width: 980px) {
  #how-it-works h2 {
    white-space: normal !important;
    font-size: clamp(2.5rem, 9vw, 4.2rem) !important;
  }
}

/* Custom title font */
h1, h2, h3 {
  font-family: "Luckiest Guy", Impact, Haettenschweiler, "Arial Black", "Trebuchet MS", sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: .015em !important;
}

#how-it-works h2 {
  font-family: "Luckiest Guy", Impact, Haettenschweiler, "Arial Black", "Trebuchet MS", sans-serif !important;
  font-weight: 400 !important;
}

/* Tighten the main hero title line spacing */
.hero h1 {
  line-height: .78 !important;
}

@media (max-width: 560px) {
  .hero h1 {
    line-height: .82 !important;
  }
}

/* Slightly reduce hero title size and use the same title font for the top-left brand */
.hero h1 {
  font-size: clamp(2.75rem, 6.35vw, 5.55rem) !important;
  line-height: .80 !important;
}

.brand-name {
  font-family: "Luckiest Guy", Impact, Haettenschweiler, "Arial Black", "Trebuchet MS", sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: .015em !important;
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(2.55rem, 14vw, 4.45rem) !important;
    line-height: .83 !important;
  }
}

/* Make the gallery title use the full container width */
#gallery .section-head {
  max-width: none !important;
  width: 100% !important;
}

#gallery h2 {
  max-width: none !important;
  width: 100% !important;
  font-size: clamp(2.65rem, 5.25vw, 4.85rem) !important;
  line-height: .92 !important;
  white-space: nowrap !important;
}

#gallery .section-copy {
  max-width: none !important;
  width: 100% !important;
}

@media (max-width: 900px) {
  #gallery h2 {
    white-space: normal !important;
    font-size: clamp(2.45rem, 8.5vw, 4.2rem) !important;
  }
}

/* Mascot restored only for the Creative block */
.callout.has-mascot {
  position: relative;
  overflow: visible;
  padding-top: 35px;
}

.callout.has-mascot h3 {
  margin-bottom: 12px;
}

.decorative-mascot {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 14px 26px rgba(44, 34, 71, 0.18));
}

.mascot-callout {
  width: 92px;
  right: 18px;
  top: -52px;
  transform: rotate(6deg);
}

@media (max-width: 860px) {
  .callout.has-mascot {
    padding-right: 32px;
    padding-top: 88px;
  }
  .mascot-callout {
    width: 84px;
    right: 18px;
    top: -22px;
  }
}

/* Slightly reduce these two section titles */
#gallery h2, #how-it-works h2 {
  font-size: clamp(2.35rem, 4.65vw, 4.25rem) !important;
  line-height: .94 !important;
}

@media (max-width: 900px) {
  #gallery h2, #how-it-works h2 {
    font-size: clamp(2.25rem, 7.8vw, 3.75rem) !important;
  }
}

/* Hero title line-height */
.hero h1 {
  line-height: 0.85 !important;
}

/* Global section spacing */
section {
  padding: 50px 0 !important;
}

/* Final section spacing */
section {
  padding: 48px 0 !important;
}

.hero {
  padding: 68px 0 40px !important;
}

/* Top-left brand adjustments */
.brand {
  gap: 12px !important;
  font-size: 1.65rem !important;
}

.brand-logo {
  border-radius: 14px !important;
  object-fit: contain !important;
}

/* Make the hero splash visible behind the first image frame */
.hero-card.hero-main {
  overflow: visible !important;
  position: relative !important;
  z-index: 1 !important;
}

.hero-card.hero-main::before {
  opacity: 1 !important;
  z-index: -1 !important;
  inset: -42px !important;
  border-radius: 52px !important;
  transform: rotate(-3deg) scale(1.02) !important;
}

.hero-card.hero-main > img, .hero-card.hero-main .floating-badge {
  position: relative !important;
  z-index: 2 !important;
}

/* Put the hero splash behind the full white image frame */
.hero-card.hero-main {
  position: relative !important;
  overflow: visible !important;
  isolation: isolate !important;
  z-index: 0 !important;
}

.hero-card.hero-main::before {
  content: "" !important;
  position: absolute !important;
  inset: -46px !important;
  z-index: -1 !important;
  opacity: 1 !important;
  border-radius: 58px !important;
  transform: rotate(-3deg) scale(1.04) !important;
  pointer-events: none !important;
}

.hero-card.hero-main::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  border-radius: inherit !important;
  background: inherit !important;
  box-shadow: inherit !important;
  pointer-events: none !important;
}

.hero-card.hero-main > img, .hero-card.hero-main .floating-badge {
  position: relative !important;
  z-index: 1 !important;
}

/* Make the hero image frame fully opaque white */
.hero-card.hero-main {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

.hero-card.hero-main::after {
  background: #ffffff !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
}

/* Show the full hero splash artwork without cutting its edges */
.hero-card.hero-main::before {
  inset: -82px !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  border-radius: 0 !important;
  transform: rotate(-3deg) scale(1) !important;
}

/* Slightly larger hero splash, without cutting the artwork */
.hero-card.hero-main::before {
  inset: -92px !important;
  background-size: 106% auto !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  border-radius: 0 !important;
  transform: rotate(-3deg) scale(1) !important;
}

/* Fine-tuned hero splash: smaller than previous, slightly larger than reverted */
.hero-card.hero-main::before {
  inset: -86px !important;
  background-size: 102% auto !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  border-radius: 0 !important;
  transform: rotate(-3deg) scale(1) !important;
}

/* Final subtle hero splash size: almost like reverted, only slightly larger */
.hero-card.hero-main::before {
  inset: -83px !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  border-radius: 0 !important;
  transform: rotate(-3deg) scale(1.015) !important;
}

/* Hero title line-height update */
.hero h1 {
  line-height: 0.9 !important;
}

/* Hero title font-size update */
.hero h1 {
  font-size: clamp(2.75rem, 6.35vw, 5.0rem) !important;
}

/* Hero title line-height update */
.hero h1 {
  line-height: 0.95 !important;
}

/* Hero visual spacing and badge position */
.hero-visual {
  padding-top: 50px !important;
}

.floating-badge {
  bottom: -20px !important;
}

/* Hero layout gap */
.hero-grid {
  gap: 58px !important;
}

/* Prevent the floating badge shadow from being cut at the bottom */
.hero, .hero-grid, .hero-visual {
  overflow: visible !important;
}

.hero-visual {
  padding-bottom: 44px !important;
}

/* How it works section spacing only */
#how-it-works {
  padding: 70px 0 !important;
}

/* Alternative colorful painted-splash design for the how-it-works steps */
#how-it-works .steps {
  gap: 22px !important;
}

#how-it-works .step {
  position: relative !important;
  background: #ffffff !important;
  border: 2px solid rgba(45, 35, 69, 0.08) !important;
  box-shadow: 0 22px 46px rgba(45, 35, 69, 0.12) !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

#how-it-works .step::before {
  content: "" !important;
  position: absolute !important;
  width: 150px !important;
  height: 150px !important;
  right: -46px !important;
  top: -46px !important;
  border-radius: 48% 52% 45% 55% / 55% 44% 56% 45% !important;
  z-index: -1 !important;
  opacity: 1 !important;
  transform: rotate(12deg) !important;
}

#how-it-works .step::after {
  content: "" !important;
  position: absolute !important;
  width: 86px !important;
  height: 86px !important;
  left: -28px !important;
  bottom: -28px !important;
  border-radius: 50% !important;
  z-index: -1 !important;
  opacity: .8 !important;
  transform: none !important;
}

#how-it-works .step:nth-child(1) {
  border-color: rgba(247, 198, 61, 0.55) !important;
}

#how-it-works .step:nth-child(1)::before {
  background: linear-gradient(135deg, #f7c63d, #fff0a8) !important;
}

#how-it-works .step:nth-child(1)::after {
  background: rgba(247, 198, 61, 0.22) !important;
}

#how-it-works .step:nth-child(1) .step-no {
  background: #f7c63d !important;
}

#how-it-works .step:nth-child(2) {
  border-color: rgba(255, 128, 92, 0.50) !important;
}

#how-it-works .step:nth-child(2)::before {
  background: linear-gradient(135deg, #ff8a6b, #ffd6b7) !important;
}

#how-it-works .step:nth-child(2)::after {
  background: rgba(255, 138, 107, 0.20) !important;
}

#how-it-works .step:nth-child(2) .step-no {
  background: #ff8a6b !important;
}

#how-it-works .step:nth-child(3) {
  border-color: rgba(72, 181, 255, 0.48) !important;
}

#how-it-works .step:nth-child(3)::before {
  background: linear-gradient(135deg, #5ac8fa, #c9f2ff) !important;
}

#how-it-works .step:nth-child(3)::after {
  background: rgba(90, 200, 250, 0.20) !important;
}

#how-it-works .step:nth-child(3) .step-no {
  background: #5ac8fa !important;
}

#how-it-works .step:nth-child(4) {
  border-color: rgba(205, 188, 246, 0.65) !important;
}

#how-it-works .step:nth-child(4)::before {
  background: linear-gradient(135deg, #cdbcf6, #f2d1dc) !important;
}

#how-it-works .step:nth-child(4)::after {
  background: rgba(205, 188, 246, 0.24) !important;
}

#how-it-works .step:nth-child(4) .step-no {
  background: #cdbcf6 !important;
}

#how-it-works .step .step-no {
  color: #2d2345 !important;
  box-shadow: 0 12px 22px rgba(45, 35, 69, 0.16) !important;
  border: 3px solid #ffffff !important;
}

#how-it-works .step h3, #how-it-works .step p {
  position: relative !important;
  z-index: 2 !important;
}

/* Add the RockQuest splash artwork behind each How it works block */
#how-it-works .step {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background: rgba(255,255,255,0.96) !important;
}

#how-it-works .step::before {
  content: "" !important;
  position: absolute !important;
  inset: 0px !important;
  background: url('/assets/images/rainbow-paint-splash.png') no-repeat center / cover !important;
  opacity: 0.16 !important;
  z-index: 0 !important;
  border-radius: 28px !important;
  transform: none !important;
  pointer-events: none !important;
}

#how-it-works .step::after {
  z-index: 0 !important;
}

#how-it-works .step > * {
  position: relative !important;
  z-index: 1 !important;
}

/* New override: splash sits BEHIND the whole step card,
like the hero main card, with the white card fully opaque on top */
#how-it-works .steps {
  position: relative !important;
  z-index: 1 !important;
}

#how-it-works .step {
  position: relative !important;
  isolation: isolate !important;
  overflow: visible !important;
  background: #ffffff !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 34px rgba(44, 34, 71, 0.10) !important;
  backdrop-filter: none !important;
}

#how-it-works .step::before {
  content: "" !important;
  position: absolute !important;
  inset: -24px !important;
  background-image: url('/assets/images/rainbow-paint-splash.png') !important;
  background-repeat: no-repeat !important;
  background-size: 132% 132% !important;
  background-position: center center !important;
  opacity: 1 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  border-radius: 34px !important;
}

/* Remove the previous inner decorative layer so the splash only appears behind the card */
#how-it-works .step::after {
  content: none !important;
  display: none !important;
}

#how-it-works .step > * {
  position: relative !important;
  z-index: 2 !important;
}

/* Vary the splash framing so each card feels a bit different */
#how-it-works .step:nth-child(1)::before {
  background-position: 28% 38% !important;
  transform: scale(1.02) rotate(-4deg) !important;
}

#how-it-works .step:nth-child(2)::before {
  background-position: 72% 34% !important;
  transform: scale(1.02) rotate(4deg) !important;
}

#how-it-works .step:nth-child(3)::before {
  background-position: 24% 60% !important;
  transform: scale(1.03) rotate(-3deg) !important;
}

#how-it-works .step:nth-child(4)::before {
  background-position: 76% 60% !important;
  transform: scale(1.03) rotate(3deg) !important;
}

/* Keep the number pill fully readable above the splash */
#how-it-works .step .step-no {
  position: relative !important;
  z-index: 3 !important;
  box-shadow: 0 10px 22px rgba(44, 34, 71, 0.14) !important;
}

/* New override: keep the colorful top shape, and add the user's splash image
behind the WHOLE card so it looks closer to the hero-card effect */
#how-it-works .step {
  position: relative !important;
  isolation: isolate !important;
  overflow: visible !important;
  background: #ffffff !important;
  border-radius: 28px !important;
}

/* Splash image behind the full card */
#how-it-works .step::before {
  content: "" !important;
  position: absolute !important;
  left: -32px !important;
  right: -32px !important;
  top: -34px !important;
  bottom: -34px !important;
  background: url('/assets/images/rainbow-paint-splash.png') no-repeat !important;
  background-size: 168% 168% !important;
  opacity: 1 !important;
  z-index: -2 !important;
  pointer-events: none !important;
  border-radius: 38px !important;
}

/* Colored rounded shape on top of each card, like the earlier design */
#how-it-works .step::after {
  content: "" !important;
  position: absolute !important;
  width: 132px !important;
  height: 154px !important;
  left: -2px !important;
  top: -44px !important;
  border-radius: 30px !important;
  z-index: -1 !important;
  opacity: 0.95 !important;
  transform: none !important;
  pointer-events: none !important;
}

#how-it-works .step:nth-child(1)::before {
  background-position: 14% 52% !important;
  transform: rotate(-2deg) !important;
}

#how-it-works .step:nth-child(2)::before {
  background-position: 86% 52% !important;
  transform: rotate(2deg) !important;
}

#how-it-works .step:nth-child(3)::before {
  background-position: 14% 52% !important;
  transform: rotate(-2deg) !important;
}

#how-it-works .step:nth-child(4)::before {
  background-position: 86% 52% !important;
  transform: rotate(2deg) !important;
}

#how-it-works .step:nth-child(1)::after {
  background: linear-gradient(135deg, #f7c63d, #fff0a8) !important;
}

#how-it-works .step:nth-child(2)::after {
  background: linear-gradient(135deg, #ff8a6b, #ffd6b7) !important;
}

#how-it-works .step:nth-child(3)::after {
  background: linear-gradient(135deg, #5ac8fa, #c9f2ff) !important;
}

#how-it-works .step:nth-child(4)::after {
  background: linear-gradient(135deg, #cdbcf6, #f2d1dc) !important;
}

#how-it-works .step > * {
  position: relative !important;
  z-index: 2 !important;
}

#how-it-works .step .step-no {
  position: relative !important;
  z-index: 3 !important;
  color: #2d2345 !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 10px 20px rgba(45, 35, 69, 0.14) !important;
}

#how-it-works .step:nth-child(1) .step-no {
  background: #f7c63d !important;
}

#how-it-works .step:nth-child(2) .step-no {
  background: #ff8a6b !important;
}

#how-it-works .step:nth-child(3) .step-no {
  background: #5ac8fa !important;
}

#how-it-works .step:nth-child(4) .step-no {
  background: #cdbcf6 !important;
}

/* Final correction: one large splash behind the whole How it works cards row */
#how-it-works .steps {
  position: relative !important;
  isolation: isolate !important;
  overflow: visible !important;
  z-index: 1 !important;
}

#how-it-works .steps::before {
  content: "" !important;
  position: absolute !important;
  left: -95px !important;
  right: -95px !important;
  top: -95px !important;
  bottom: -85px !important;
  background: url('/assets/images/rainbow-paint-splash.png') no-repeat center center / 112% auto !important;
  opacity: 1 !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

#how-it-works .step {
  position: relative !important;
  z-index: 1 !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 34px rgba(44, 34, 71, 0.10) !important;
}

/* Use the card pseudo-element only for the colored corner shape */
#how-it-works .step::before {
  content: "" !important;
  position: absolute !important;
  width: 138px !important;
  height: 158px !important;
  top: -50px !important;
  border-radius: 32px !important;
  opacity: 0.95 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-image: none !important;
  background-repeat: initial !important;
  background-size: initial !important;
  background-position: initial !important;
}

#how-it-works .step::after {
  content: none !important;
  display: none !important;
}

#how-it-works .step:nth-child(1)::before {
  left: -8px !important;
  right: auto !important;
  background: linear-gradient(135deg, #f7c63d, #fff0a8) !important;
  transform: rotate(-3deg) !important;
}

#how-it-works .step:nth-child(2)::before {
  left: auto !important;
  right: -8px !important;
  background: linear-gradient(135deg, #ff8a6b, #ffd6b7) !important;
  transform: rotate(3deg) !important;
}

#how-it-works .step:nth-child(3)::before {
  left: -8px !important;
  right: auto !important;
  background: linear-gradient(135deg, #5ac8fa, #c9f2ff) !important;
  transform: rotate(-3deg) !important;
}

#how-it-works .step:nth-child(4)::before {
  left: auto !important;
  right: -8px !important;
  background: linear-gradient(135deg, #cdbcf6, #f2d1dc) !important;
  transform: rotate(3deg) !important;
}

#how-it-works .step > * {
  position: relative !important;
  z-index: 2 !important;
}

#how-it-works .step .step-no {
  position: relative !important;
  z-index: 3 !important;
  color: #2d2345 !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 10px 20px rgba(45, 35, 69, 0.14) !important;
}

#how-it-works .step:nth-child(1) .step-no {
  background: #f7c63d !important;
}

#how-it-works .step:nth-child(2) .step-no {
  background: #ff8a6b !important;
}

#how-it-works .step:nth-child(3) .step-no {
  background: #5ac8fa !important;
}

#how-it-works .step:nth-child(4) .step-no {
  background: #cdbcf6 !important;
}

/* Final fix: a painted splash behind EACH individual how-it-works card */
#how-it-works .steps::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

#how-it-works .steps {
  position: relative !important;
  overflow: visible !important;
  isolation: isolate !important;
  gap: 22px !important;
}

#how-it-works .step {
  position: relative !important;
  z-index: 1 !important;
  isolation: isolate !important;
  overflow: visible !important;
  background: #ffffff !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 34px rgba(44, 34, 71, 0.10) !important;
}

/* colored corner block inside the card */
#how-it-works .step::before {
  content: "" !important;
  position: absolute !important;
  width: 150px !important;
  height: 150px !important;
  top: -28px !important;
  border-radius: 30px !important;
  opacity: 0.95 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

/* splash artwork behind the whole card */
#how-it-works .step::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  width: 165% !important;
  height: 190% !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: url('/assets/images/rainbow-paint-splash.png') no-repeat center center / contain !important;
  opacity: 1 !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

#how-it-works .step:nth-child(1)::before {
  left: -30px !important;
  right: auto !important;
  background: linear-gradient(135deg, #f7d354, #fff1b6) !important;
  transform: rotate(-2deg) !important;
}

#how-it-works .step:nth-child(1)::after {
  transform: translate(-50%, -50%) rotate(-3deg) scale(1.03) !important;
  background-position: center center !important;
}

#how-it-works .step:nth-child(2)::before {
  left: auto !important;
  right: -30px !important;
  background: linear-gradient(135deg, #ff9a79, #ffd7c1) !important;
  transform: rotate(2deg) !important;
}

#how-it-works .step:nth-child(2)::after {
  transform: translate(-50%, -50%) rotate(2deg) scale(1.03) !important;
  background-position: center center !important;
}

#how-it-works .step:nth-child(3)::before {
  left: -30px !important;
  right: auto !important;
  background: linear-gradient(135deg, #7ccdf6, #d7f2ff) !important;
  transform: rotate(-2deg) !important;
}

#how-it-works .step:nth-child(3)::after {
  transform: translate(-50%, -50%) rotate(-2deg) scale(1.03) !important;
  background-position: center center !important;
}

#how-it-works .step:nth-child(4)::before {
  left: auto !important;
  right: -30px !important;
  background: linear-gradient(135deg, #d7c5fb, #f4deee) !important;
  transform: rotate(2deg) !important;
}

#how-it-works .step:nth-child(4)::after {
  transform: translate(-50%, -50%) rotate(3deg) scale(1.03) !important;
  background-position: center center !important;
}

#how-it-works .step > * {
  position: relative !important;
  z-index: 2 !important;
}

#how-it-works .step .step-no {
  position: relative !important;
  z-index: 3 !important;
  color: #2d2345 !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 10px 20px rgba(45, 35, 69, 0.14) !important;
}

#how-it-works .step:nth-child(1) .step-no {
  background: #f7c63d !important;
}

#how-it-works .step:nth-child(2) .step-no {
  background: #ff8a6b !important;
}

#how-it-works .step:nth-child(3) .step-no {
  background: #5ac8fa !important;
}

#how-it-works .step:nth-child(4) .step-no {
  background: #cdbcf6 !important;
}

/* Final clean structure:
- splash behind each card
- fully white card frame on top
- small colored corner shape inside the card
*/
#how-it-works .steps {
  position: relative !important;
  overflow: visible !important;
  isolation: isolate !important;
  gap: 22px !important;
}

#how-it-works .steps::before, #how-it-works .step::before, #how-it-works .step::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

#how-it-works .step {
  position: relative !important;
  isolation: isolate !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 28px !important;
}

#how-it-works .step-splash-layer {
  position: absolute !important;
  inset: -34px !important;
  z-index: 0 !important;
  background: url('/assets/images/rainbow-paint-splash.png') no-repeat center center / contain !important;
  pointer-events: none !important;
}

#how-it-works .step-card-layer {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: #ffffff !important;
  border-radius: 28px !important;
  border: 2px solid rgba(45, 35, 69, 0.08) !important;
  box-shadow: 0 18px 34px rgba(44, 34, 71, 0.10) !important;
  pointer-events: none !important;
}

#how-it-works .step-corner-layer {
  position: absolute !important;
  width: 128px !important;
  height: 132px !important;
  top: -28px !important;
  z-index: 2 !important;
  border-radius: 30px !important;
  opacity: 0.95 !important;
  pointer-events: none !important;
}

#how-it-works .step:nth-child(1) .step-corner-layer {
  left: -28px !important;
  background: linear-gradient(135deg, #f7d354, #fff1b6) !important;
  transform: rotate(-2deg) !important;
}

#how-it-works .step:nth-child(2) .step-corner-layer {
  right: -28px !important;
  background: linear-gradient(135deg, #ff9a79, #ffd7c1) !important;
  transform: rotate(2deg) !important;
}

#how-it-works .step:nth-child(3) .step-corner-layer {
  left: -28px !important;
  background: linear-gradient(135deg, #7ccdf6, #d7f2ff) !important;
  transform: rotate(-2deg) !important;
}

#how-it-works .step:nth-child(4) .step-corner-layer {
  right: -28px !important;
  background: linear-gradient(135deg, #d7c5fb, #f4deee) !important;
  transform: rotate(2deg) !important;
}

#how-it-works .step > :not(.step-splash-layer):not(.step-card-layer):not(.step-corner-layer) {
  position: relative !important;
  z-index: 3 !important;
}

#how-it-works .step .step-no {
  color: #2d2345 !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 10px 20px rgba(45, 35, 69, 0.14) !important;
}

#how-it-works .step:nth-child(1) .step-no {
  background: #f7c63d !important;
}

#how-it-works .step:nth-child(2) .step-no {
  background: #ff8a6b !important;
}

#how-it-works .step:nth-child(3) .step-no {
  background: #5ac8fa !important;
}

#how-it-works .step:nth-child(4) .step-no {
  background: #cdbcf6 !important;
}

/* Slightly different splash framing for each card */
#how-it-works .step:nth-child(1) .step-splash-layer {
  transform: rotate(-3deg) scale(1.12) !important;
}

#how-it-works .step:nth-child(2) .step-splash-layer {
  transform: rotate(3deg) scale(1.12) !important;
}

#how-it-works .step:nth-child(3) .step-splash-layer {
  transform: rotate(-2deg) scale(1.12) !important;
}

#how-it-works .step:nth-child(4) .step-splash-layer {
  transform: rotate(2deg) scale(1.12) !important;
}

/* Remove the small colored corner blocks */
#how-it-works .step-corner-layer {
  display: none !important;
}

/* Different splash orientation for each How it works block */
#how-it-works .step:nth-child(1) .step-splash-layer {
  transform: rotate(-8deg) scale(1.08) !important;
}

#how-it-works .step:nth-child(2) .step-splash-layer {
  transform: scaleX(-1) rotate(8deg) scale(1.08) !important;
}

#how-it-works .step:nth-child(3) .step-splash-layer {
  transform: scaleY(-1) rotate(-6deg) scale(1.08) !important;
}

#how-it-works .step:nth-child(4) .step-splash-layer {
  transform: rotate(180deg) scale(1.08) !important;
}

/* Add the rainbow splash behind the 4 screenshot blocks too */
#how-it-works .screens {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  position: relative !important;
  isolation: isolate !important;
  overflow: visible !important;
  z-index: 1 !important;
}

#how-it-works .screen {
  position: relative !important;
  isolation: isolate !important;
  overflow: visible !important;
  background: #ffffff !important;
  border-radius: 30px !important;
  border: 3px solid #ffffff !important;
  padding: 12px !important;
  box-shadow: 0 18px 36px rgba(44,34,71,.12) !important;
}

#how-it-works .screen::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: -26px !important;
  background: url('/assets/images/rainbow-paint-splash.png') no-repeat center center / contain !important;
  opacity: 1 !important;
  z-index: -1 !important;
  border-radius: 38px !important;
  pointer-events: none !important;
}

#how-it-works .screen img {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  border-radius: 18px !important;
}

#how-it-works .screen:nth-child(1)::before {
  transform: rotate(-7deg) scale(1.10) !important;
}

#how-it-works .screen:nth-child(2)::before {
  transform: scaleX(-1) rotate(7deg) scale(1.10) !important;
}

#how-it-works .screen:nth-child(3)::before {
  transform: scaleY(-1) rotate(-6deg) scale(1.10) !important;
}

#how-it-works .screen:nth-child(4)::before {
  transform: rotate(180deg) scale(1.10) !important;
}

/* Final fix for screenshot cards:
use real layers so the splash is visible BEHIND the fully opaque white frame */
#how-it-works .screens {
  position: relative !important;
  isolation: isolate !important;
  overflow: visible !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

#how-it-works .screen {
  position: relative !important;
  isolation: isolate !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 12px !important;
  border-radius: 30px !important;
}

#how-it-works .screen::before, #how-it-works .screen::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

#how-it-works .screen-splash-layer {
  position: absolute !important;
  inset: -32px !important;
  z-index: 0 !important;
  background: url('/assets/images/rainbow-paint-splash.png') no-repeat center center / contain !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

#how-it-works .screen-card-layer {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: #ffffff !important;
  border-radius: 30px !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 18px 36px rgba(44,34,71,.12) !important;
  pointer-events: none !important;
}

#how-it-works .screen img {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  width: 100% !important;
  border-radius: 18px !important;
}

#how-it-works .screen:nth-child(1) .screen-splash-layer {
  transform: rotate(-7deg) scale(1.12) !important;
}

#how-it-works .screen:nth-child(2) .screen-splash-layer {
  transform: scaleX(-1) rotate(7deg) scale(1.12) !important;
}

#how-it-works .screen:nth-child(3) .screen-splash-layer {
  transform: scaleY(-1) rotate(-6deg) scale(1.12) !important;
}

#how-it-works .screen:nth-child(4) .screen-splash-layer {
  transform: rotate(180deg) scale(1.12) !important;
}

/* Five screenshot cards in the How it works section */
#how-it-works .screens {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

#how-it-works .screen:nth-child(5) .screen-splash-layer {
  transform: scaleX(-1) scaleY(-1) rotate(6deg) scale(1.12) !important;
}

@media (max-width: 1180px) {
  #how-it-works .screens {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  #how-it-works .screens {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  #how-it-works .screens {
    grid-template-columns: 1fr !important;
  }
}

/* Fix screenshot splash layering:
one shared splash behind the whole screenshot grid,
never on top of the next image/card */
#how-it-works .screens {
  position: relative !important;
  isolation: isolate !important;
  overflow: visible !important;
  z-index: 1 !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

#how-it-works .screens::before {
  content: "" !important;
  position: absolute !important;
  left: -50px !important;
  right: -50px !important;
  top: -52px !important;
  bottom: -52px !important;
  background: url('/assets/images/rainbow-paint-splash.png') no-repeat 5% 35% / 34% auto, url('/assets/images/rainbow-paint-splash.png') no-repeat 31% 65% / 34% auto, url('/assets/images/rainbow-paint-splash.png') no-repeat 58% 35% / 34% auto, url('/assets/images/rainbow-paint-splash.png') no-repeat 84% 65% / 34% auto !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

#how-it-works .screen-splash-layer {
  display: none !important;
}

#how-it-works .screen {
  position: relative !important;
  isolation: auto !important;
  overflow: visible !important;
  z-index: 2 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 12px !important;
  border-radius: 30px !important;
}

#how-it-works .screen-card-layer {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: #ffffff !important;
  border-radius: 30px !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 18px 36px rgba(44,34,71,.12) !important;
  pointer-events: none !important;
}

#how-it-works .screen img {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  width: 100% !important;
  border-radius: 18px !important;
}

@media (max-width: 1180px) {
  #how-it-works .screens {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  #how-it-works .screens::before {
    background: url('/assets/images/rainbow-paint-splash.png') no-repeat 8% 22% / 45% auto, url('/assets/images/rainbow-paint-splash.png') no-repeat 84% 30% / 45% auto, url('/assets/images/rainbow-paint-splash.png') no-repeat 50% 86% / 45% auto !important;
  }
}

@media (max-width: 760px) {
  #how-it-works .screens {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #how-it-works .screens::before {
    background: url('/assets/images/rainbow-paint-splash.png') no-repeat 12% 18% / 70% auto, url('/assets/images/rainbow-paint-splash.png') no-repeat 86% 50% / 70% auto, url('/assets/images/rainbow-paint-splash.png') no-repeat 20% 86% / 70% auto !important;
  }
}

@media (max-width: 520px) {
  #how-it-works .screens {
    grid-template-columns: 1fr !important;
  }
  #how-it-works .screens::before {
    background: url('/assets/images/rainbow-paint-splash.png') no-repeat center 8% / 95% auto, url('/assets/images/rainbow-paint-splash.png') no-repeat center 42% / 95% auto, url('/assets/images/rainbow-paint-splash.png') no-repeat center 76% / 95% auto !important;
  }
}

/* --- Screenshot area fix: each screenshot gets its own splash again --- */
#how-it-works .screens {
  position: relative !important;
  isolation: isolate !important;
  overflow: visible !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 38px !important;
}

/* Disable the shared splash background */
#how-it-works .screens::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

#how-it-works .screen {
  position: relative !important;
  isolation: isolate !important;
  overflow: visible !important;
  z-index: 1 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 12px !important;
  border-radius: 30px !important;
}

#how-it-works .screen::before, #how-it-works .screen::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Splash behind each individual screenshot card */
#how-it-works .screen-splash-layer {
  display: block !important;
  position: absolute !important;
  inset: -28px !important;
  z-index: 0 !important;
  background: url('/assets/images/rainbow-paint-splash.png') no-repeat center center / contain !important;
  opacity: 1 !important;
  pointer-events: none !important;
  filter: none !important;
}

/* Fully opaque white frame above the splash */
#how-it-works .screen-card-layer {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: #ffffff !important;
  border-radius: 30px !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 18px 36px rgba(44,34,71,.12) !important;
  pointer-events: none !important;
}

#how-it-works .screen img {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  width: 100% !important;
  border-radius: 18px !important;
}

/* Different orientation for each splash */
#how-it-works .screen:nth-child(1) .screen-splash-layer {
  transform: rotate(-8deg) scale(1.06) !important;
}

#how-it-works .screen:nth-child(2) .screen-splash-layer {
  transform: scaleX(-1) rotate(7deg) scale(1.06) !important;
}

#how-it-works .screen:nth-child(3) .screen-splash-layer {
  transform: scaleY(-1) rotate(-6deg) scale(1.06) !important;
}

#how-it-works .screen:nth-child(4) .screen-splash-layer {
  transform: rotate(180deg) scale(1.06) !important;
}

#how-it-works .screen:nth-child(5) .screen-splash-layer {
  transform: scaleX(-1) scaleY(-1) rotate(6deg) scale(1.06) !important;
}

@media (max-width: 1180px) {
  #how-it-works .screens {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 38px !important;
  }
}

@media (max-width: 760px) {
  #how-it-works .screens {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 38px !important;
  }
  #how-it-works .screen-splash-layer {
    inset: -22px !important;
  }
}

@media (max-width: 520px) {
  #how-it-works .screens {
    grid-template-columns: 1fr !important;
    gap: 38px !important;
  }
}

/* Final screenshot splash layout:
- 2 splashes per screenshot
- one clearly at the top, one clearly at the bottom
- both behind all opaque white frames/images
*/
#how-it-works .screens {
  position: relative !important;
  isolation: isolate !important;
  overflow: visible !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 38px !important;
}

#how-it-works .screens::before, #how-it-works .screens::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

#how-it-works .screen {
  position: relative !important;
  isolation: auto !important;
  overflow: visible !important;
  z-index: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 12px !important;
  border-radius: 30px !important;
}

#how-it-works .screen::before, #how-it-works .screen::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

#how-it-works .screen-splash-layer, #how-it-works .screen-splash-layer-bottom {
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  width: 126% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  z-index: -1 !important;
  background: url('/assets/images/rainbow-paint-splash.png') no-repeat center center / contain !important;
  opacity: 1 !important;
  pointer-events: none !important;
  filter: none !important;
  border-radius: 0 !important;
  inset: auto !important;
}

/* Top splash */
#how-it-works .screen-splash-layer {
  top: 0 !important;
}

/* Bottom splash */
#how-it-works .screen-splash-layer-bottom {
  top: 100% !important;
}

/* Fully opaque white frame above the splashes */
#how-it-works .screen-card-layer {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: #ffffff !important;
  border-radius: 30px !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 18px 36px rgba(44,34,71,.12) !important;
  pointer-events: none !important;
}

#how-it-works .screen img {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  width: 100% !important;
  border-radius: 18px !important;
}

/* Different orientations, but always top + bottom */
#how-it-works .screen:nth-child(1) .screen-splash-layer {
  transform: translate(-55%, -58%) rotate(-10deg) scale(1.02) !important;
}

#how-it-works .screen:nth-child(1) .screen-splash-layer-bottom {
  transform: translate(-45%, -42%) rotate(14deg) scale(1.02) !important;
}

#how-it-works .screen:nth-child(2) .screen-splash-layer {
  transform: translate(-45%, -58%) scaleX(-1) rotate(10deg) scale(1.02) !important;
}

#how-it-works .screen:nth-child(2) .screen-splash-layer-bottom {
  transform: translate(-55%, -42%) scaleY(-1) rotate(-12deg) scale(1.02) !important;
}

#how-it-works .screen:nth-child(3) .screen-splash-layer {
  transform: translate(-55%, -58%) scaleY(-1) rotate(-8deg) scale(1.02) !important;
}

#how-it-works .screen:nth-child(3) .screen-splash-layer-bottom {
  transform: translate(-45%, -42%) scaleX(-1) rotate(9deg) scale(1.02) !important;
}

#how-it-works .screen:nth-child(4) .screen-splash-layer {
  transform: translate(-45%, -58%) rotate(176deg) scale(1.02) !important;
}

#how-it-works .screen:nth-child(4) .screen-splash-layer-bottom {
  transform: translate(-55%, -42%) scaleX(-1) scaleY(-1) rotate(-8deg) scale(1.02) !important;
}

#how-it-works .screen:nth-child(5) .screen-splash-layer {
  transform: translate(-55%, -58%) scaleX(-1) rotate(7deg) scale(1.02) !important;
}

#how-it-works .screen:nth-child(5) .screen-splash-layer-bottom {
  transform: translate(-45%, -42%) scaleY(-1) rotate(-7deg) scale(1.02) !important;
}

@media (max-width: 1180px) {
  #how-it-works .screens {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 38px !important;
  }
}

@media (max-width: 760px) {
  #how-it-works .screens {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 38px !important;
  }
  #how-it-works .screen-splash-layer, #how-it-works .screen-splash-layer-bottom {
    width: 118% !important;
  }
}

@media (max-width: 520px) {
  #how-it-works .screens {
    grid-template-columns: 1fr !important;
    gap: 38px !important;
  }
}

/* how-it-works-final-spacing-and-step-splash-override */
#how-it-works .section-head {
  margin-bottom: 58px !important;
}

#how-it-works .step:nth-child(1) .step-splash-layer {
  transform: rotate(105deg) scale(1.08) !important;
}

#how-it-works .step:nth-child(2) .step-splash-layer {
  transform: scaleX(-1) rotate(-71deg) scale(1.08) !important;
}

#how-it-works .step:nth-child(3) .step-splash-layer {
  transform: scaleY(-1) rotate(-137deg) scale(1.08) !important;
}

#how-it-works .step:nth-child(4) .step-splash-layer {
  transform: rotate(525deg) scale(1.08) !important;
}

/* how-it-works-screen-splash-position-override */
#how-it-works .screen:nth-child(1) .screen-splash-layer {
  transform: translate(-19%, -3%) rotate(-1deg) scale(1.02) !important;
}

#how-it-works .screen:nth-child(1) .screen-splash-layer-bottom {
  transform: translate(-14%, -80%) rotate(211deg) scale(1.02) !important;
}

#how-it-works .screen:nth-child(2) .screen-splash-layer {
  transform: translate(-16%, 3%) scaleX(-1) rotate(-138deg) scale(1.02) !important;
}

#how-it-works .screen:nth-child(2) .screen-splash-layer-bottom {
  transform: translate(-13%, -87%) scaleY(-1) rotate(251deg) scale(1.02) !important;
}

#how-it-works .screen:nth-child(3) .screen-splash-layer {
  transform: translate(-11%, -10%) scaleY(-1) rotate(50deg) scale(1.02) !important;
}

#how-it-works .screen:nth-child(3) .screen-splash-layer-bottom {
  transform: translate(-17%, -83%) scaleX(-1) rotate(-12deg) scale(1.02) !important;
}

#how-it-works .screen:nth-child(4) .screen-splash-layer {
  transform: translate(-13%, -6%) rotate(381deg) scale(1.02) !important;
}

#how-it-works .screen:nth-child(4) .screen-splash-layer-bottom {
  transform: translate(-18%, -89%) scaleX(-1) scaleY(-1) rotate(45deg) scale(1.02) !important;
}

#how-it-works .screen:nth-child(5) .screen-splash-layer {
  transform: translate(-12%, 4%) scaleX(-1) rotate(331deg) scale(1.02) !important;
}

#how-it-works .screen:nth-child(5) .screen-splash-layer-bottom {
  transform: translate(-19%, -87%) scaleY(-1) rotate(2deg) scale(1.02) !important;
}

/* how-it-works-step-3-splash-override */
#how-it-works .step:nth-child(3) .step-splash-layer {
  transform: scaleY(-1) rotate(-238deg) scale(1.08) !important;
}

/* how-it-works-step-3-splash-override-v2 */
#how-it-works .step:nth-child(3) .step-splash-layer {
  transform: scaleY(-1) rotate(507deg) scale(1.08) !important;
}

/* how-it-works-step-card-layer-border-override */
#how-it-works .step-card-layer {
  border: 2px solid rgba(95, 90, 103, 0.2) !important;
}

/* portrait-block-height-match-update */
/* Make the text callout match the height of the image on the left */
.portrait-block {
  align-items: stretch !important;
}

.portrait-block .photo, .portrait-block .callout {
  height: 100% !important;
  box-sizing: border-box !important;
}

.portrait-block .photo {
  display: flex !important;
}

.portrait-block .photo img {
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.portrait-block .callout {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.portrait-block .callout h3 {
  margin-top: 0 !important;
}

.portrait-block .callout p:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 1024px) {
  .portrait-block .photo, .portrait-block .callout {
    height: auto !important;
  }
  .portrait-block .photo img {
    height: auto !important;
    object-fit: initial !important;
  }
}

/* portrait-block-text-top-align-update */
.portrait-block .callout {
  justify-content: flex-start !important;
}

/* portrait-photo-remove-splash */
.portrait-block .photo::before, .portrait-block .photo::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

.portrait-block .photo {
  background-image: none !important;
}

/* download-clean-editable-splashes */
/*
Download CTA splash system
--------------------------
The white .download frame is fully opaque and sits above the splashes.
Each splash is an independent element that you can move/rotate later.

Edit these variables:
--x: horizontal position
--y: vertical position
--size: splash size
--rotate: orientation
--scale: extra scale
--flip-x: 1 or -1
--flip-y: 1 or -1
*/
/* Left splash */
/* Top / center splash */
/* Right splash */
/* download-splash-custom-position-update */
/* download-frame-background-gradient-update */
/* download-frame-fully-opaque-gradient-update */
/* store-button-image-badges-update */
/* download-block-margin-top-48px */
/* HTML utility classes */
.floating-badge-title {
  line-height: 1.35;
  font-weight: 1000;
}

.screens-spacer {
  height: 48px;
}

.section-head-gallery {
  margin-bottom: 22px;
}

/* Rock page */
.rock-hero {
  position: relative;
  padding: 64px 0 42px;
}

.rock-hero-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 48px;
  align-items: center;
}

.rock-hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(2.75rem, 6.35vw, 5rem);
}

.rock-meta {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.rock-creator, .rock-found {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.76);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(44,34,71,.08);
}

.rock-creator img {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  background: #fff;
  flex: 0 0 auto;
}

.rock-creator span, .rock-found span, .rock-found small, .rock-counts span {
  color: var(--muted);
  font-weight: 900;
  font-size: .82rem;
  text-transform: uppercase;
}

.rock-creator strong, .rock-found strong {
  display: block;
  color: var(--ink);
  font-size: 1.04rem;
}

.rock-creator time {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.mention-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mention-list a {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(107,78,178,.12);
  color: var(--purple-dark);
  font-weight: 1000;
}

.rock-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.rock-counts div {
  min-height: 86px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(23,29,20,.08);
  display: grid;
  align-content: center;
}

.rock-counts strong {
  font-family: Impact, Haettenschweiler, "Arial Black", "Trebuchet MS", sans-serif;
  color: var(--purple-dark);
  font-size: 1.85rem;
  line-height: 1;
}

.rock-showcase {
  position: relative;
  isolation: isolate;
}

.rock-showcase::before {
  content: "";
  position: absolute;
  inset: -70px;
  background: url("/assets/images/rainbow-paint-splash.png") no-repeat center / contain;
  opacity: .5;
  z-index: -1;
  pointer-events: none;
}

.rock-media-frame {
  padding: 12px;
  border-radius: 30px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.84);
  box-shadow: var(--shadow);
}

.rock-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 8px;
}

.rock-media-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(23,29,20,.07);
}

.rock-media-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-type-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23,29,20,.74);
  color: #fff;
  font-size: .74rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.rock-media-empty {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
}

.rock-media-empty img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  filter: saturate(.78);
  opacity: .64;
}

.rock-media-empty span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.88);
  font-weight: 1000;
  text-align: center;
}

.rock-comments-panel {
  position: relative;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.rock-comments-panel::before {
  content: "";
  position: absolute;
  inset: -46px;
  background: url("/assets/images/rainbow-paint-splash.png") no-repeat center / contain;
  opacity: .34;
  z-index: -1;
  pointer-events: none;
}

.last-comments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin-top: 24px;
}

.last-comment {
  min-height: 150px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(23,29,20,.08);
}

.last-comment strong {
  color: var(--purple-dark);
}

.last-comment p {
  margin: 10px 0 0;
  color: var(--ink);
  font-weight: 800;
  white-space: pre-wrap;
}

@media (max-width: 1024px) {
  .rock-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 769px) {
  .last-comments {
    grid-template-columns: 1fr;
  }
  .rock-media-grid {
    grid-template-columns: 1fr;
  }
  .rock-media-item:first-child {
    grid-column: auto;
  }
  .rock-comments-panel {
    padding: 22px;
  }
}

@media (max-width: 620px) {
  .rock-counts {
    grid-template-columns: 1fr;
  }
  .rock-hero .actions .btn {
    width: 100%;
  }
}


/* ===== download section - synced verbatim from rock.css ===== */

#download {
  margin-top: 78px;
}

#download, #download .container {
  position: relative;
  overflow: visible;
}

.download-scene {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.download-splash {
  position: absolute;
  z-index: 0;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  aspect-ratio: 1 / 1;
  background: var(--splash) no-repeat center center / contain;
  opacity: 1;
  pointer-events: none;
  transform: translate(-50%, -50%) scaleX(var(--flip-x, 1)) scaleY(var(--flip-y, 1)) rotate(var(--rotate, 0deg)) scale(var(--scale, 1));
}

.download-splash-1 {
  --x: 15%;
  --y: 51%;
  --size: 33%;
  --rotate: 280deg;
  --scale: 1.08;
  --flip-x: 1;
  --flip-y: 1;
}

.download-splash-2 {
  --x: 54%;
  --y: 50%;
  --size: 33%;
  --rotate: 29deg;
  --scale: 1.08;
  --flip-x: -1;
  --flip-y: 1;
}

.download-splash-3 {
  --x: 85%;
  --y: 52%;
  --size: 33%;
  --rotate: 441deg;
  --scale: 1.08;
  --flip-x: 1;
  --flip-y: -1;
}

.download {
  text-align: center;
  padding: 70px 28px;
  border-radius: 40px;
  background: radial-gradient(circle at 16% 20%, rgba(244, 207, 31, .14), transparent 12rem), radial-gradient(circle at 85% 25%, rgba(40, 181, 210, .14), transparent 12rem), linear-gradient(135deg, #ffffff, #ffffff);
  border: 1px solid rgba(95, 90, 103, 0.18);
  box-shadow: 0 22px 52px rgba(44, 34, 71, 0.14);
  position: relative;
  z-index: 1;
  overflow: visible;
}

.download h2 {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
}

.store-buttons.store-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-decoration: none;
  line-height: 0;
}

.store-badge-link img {
  display: block;
  height: 58px;
  width: auto;
  max-width: 100%;
}

@media (max-width: 560px) {
  .store-buttons.store-badges {
    flex-direction: column;
    align-items: center;
  }
  .store-badge-link img {
    height: 50px;
  }
}

.download-splash, .download-splash-1, .download-splash-2, .download-splash-3 {
  --size: 33% !important;
  width: 36% !important;
}

#download, #download .container, .download-card {
  overflow-x: clip !important;
}

@media (max-width: 769px) {
  #download {
    margin-top: 16px !important;
  }
}

#download, #download .container, .download-card {
  overflow: visible !important;
}

@media (min-width: 1024px) {
  .download-splash, .download-splash-1, .download-splash-2, .download-splash-3 {
    width: 438px !important;
  }
}

@media (min-width: 770px) and (max-width: 1023.98px) {
  .download-splash, .download-splash-1, .download-splash-2, .download-splash-3 {
    width: 408px !important;
  }
}

@media (min-width: 1024px) {
  #download {
    margin-top: 68px !important;
  }
}

@media (max-width: 1023.98px) {
  #download {
    margin-top: 58px !important;
  }
}

@media (min-width: 561px) and (max-width: 769px) {
  #download {
    margin-top: 92px !important;
  }
  .download-splash, .download-splash-1, .download-splash-2, .download-splash-3 {
    width: 382px !important;
  }
}

@media (max-width: 769px) {
  .download-scene {
    overflow: visible !important;
  }
  .download-splash, .download-splash-1, .download-splash-2, .download-splash-3 {
    top: 50% !important;
    height: calc(100% + 72px) !important;
    width: auto !important;
    min-width: min(382px, 92vw) !important;
    aspect-ratio: 1 / 1 !important;
    background-size: contain !important;
  }
}

@media (max-width: 560px) {
  .download-splash, .download-splash-1, .download-splash-2, .download-splash-3 {
    height: calc(100% + 64px) !important;
    min-width: min(340px, 96vw) !important;
  }
}

@media (max-width: 500px) {
  .download-splash-1, .download-splash-3 {
    display: none !important;
  }
}

.download h2 {
  font-family: "Luckiest Guy", cursive !important;
  font-weight: 400 !important;
  line-height: 0.95 !important;
  letter-spacing: 0.01em !important;
}

.download h2 {
  font-size: 3.8rem !important;
}

.download h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem) !important;
}

@media (min-width: 561px) and (max-width: 769px) {
  #download {
    margin-top: 108px !important;
  }
}

@media (max-width: 560px) {
  #download {
    margin-top: 72px !important;
  }
}

.download h2 {
  line-height: 1.1 !important;
}


/* prevent horizontal overflow from decorative splashes (home).
   Uses overflow-x: clip (not hidden) so the sticky header keeps working. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}


/* how-it-works: keep each card's paint splash behind EVERY white card.
   Each .step had isolation:isolate, making it its own stacking context, so a
   later card's splash painted on top of the adjacent (earlier) white card.
   Removing isolation lets all .step-splash-layer (z-index:0) share the .steps
   stacking context and stay below all .step-card-layer (z-index:1). */
#how-it-works .step {
  isolation: auto !important;
}


/* Authoritative: .step must NOT be its own stacking context, otherwise a later
   card's splash paints over the previous card. Both isolation AND position+z-index
   create a stacking context, so reset both here (this is the last .step rule). */
#how-it-works .step {
  isolation: auto !important;
  z-index: auto !important;
}


/* hide the "Treasure hunt + creativity + community" floating badge on tablet/mobile */
@media (max-width: 1024px) {
  .floating-badge {
    display: none !important;
  }
}


/* On single-column layout the hero image is short, but min-height:600px (plus the
   badge spacing paddings) left a huge gap before "How it works". Collapse it. */
@media (max-width: 1024px) {
  .hero-visual {
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}


/* Single-column hero: the hero-card splash (::before) bleeds upward past the card
   and, since the image column comes after the text column in the DOM and is
   positioned (z-index:0), it painted over the "See the experience" button.
   Lift the text/buttons column above the image column so the splash stays behind. */
@media (max-width: 1024px) {
  .hero-grid > div:first-child {
    position: relative;
    z-index: 2;
  }
}


/* make the "See the experience" button fully opaque (was rgba white .78) */
.btn-secondary {
  background: #ffffff !important;
}


/* hide the paint splash behind the how-it-works step cards at <=900px */
@media (max-width: 900px) {
  #how-it-works .step-splash-layer {
    display: none !important;
  }
}


/* hide the decorative RockQuest mascot at <=1024px */
@media (max-width: 1024px) {
  .decorative-mascot {
    display: none !important;
  }
}


/* mascot is hidden <=1024px, so drop the padding reserved for it (was up to
   padding-top:88px / padding-right:120px), which left a huge gap before
   "Your rock. Your story." */
@media (max-width: 960px) {
  .callout.has-mascot {
    padding-top: 30px !important;
    padding-right: 30px !important;
  }
}


/* match rock.html's hero top spacing at <=1024px (rock-hero uses padding-top:38px)
   so the gap before the eyebrow ("A colorful painted-rock adventure") is the same. */
@media (max-width: 1024px) {
  .hero {
    padding-top: 38px !important;
  }
}


/* tighten how-it-works heading spacing at <=1024px */
@media (max-width: 1024px) {
  #how-it-works .section-head {
    margin-bottom: 28px !important;
  }
}


/* Make the download splash size track the WHITE BOX height (not a fixed px width),
   so the visible peek around the box stays constant no matter how many lines the
   heading/copy wrap to (e.g. 3 lines in EN vs 2 in FR).
   <=769px already does this (synced from rock); this covers >=770px too.
   The peek is half of the added value -> 120px = ~60px top + ~60px bottom.
   Adjust the 120px to grow/shrink how much splash shows. */
@media (min-width: 770px) {
  .download-splash,
  .download-splash-1,
  .download-splash-2,
  .download-splash-3 {
    top: 50% !important;
    height: calc(100% + 80px) !important;
    width: auto !important;
    aspect-ratio: 1 / 1 !important;
    background-size: contain !important;
  }
}


/* tighter vertical section spacing at <=1024px */
@media (max-width: 1024px) {
  section {
    padding: 28px 0 !important;
  }
}


/* how-it-works section padding at <=1024px */
@media (max-width: 1024px) {
  #how-it-works {
    padding: 60px 0 !important;
  }
}

/* download top margin between 561px and 769px */
@media (min-width: 561px) and (max-width: 769px) {
  #download {
    margin-top: 58px !important;
  }
}


/* Keep the how-it-works / gallery headings inside the container for longer
   translations: allow wrapping (override the desktop white-space:nowrap) and
   break overly long words instead of overflowing the container. */
#how-it-works h2,
#gallery h2 {
  white-space: normal !important;
  overflow-wrap: break-word !important;
  max-width: 100% !important;
}


/* gallery / how-it-works heading size + line-height */
#gallery h2,
#how-it-works h2 {
  font-size: clamp(2.35rem, 4.65vw, 4.25rem) !important;
  line-height: 1.1 !important;
}


/* how-it-works heading spacing on wider screens */
@media (min-width: 1024px) {
  #how-it-works .section-head {
    margin-bottom: 24px !important;
  }
}

/* remove the paint splash behind the how-it-works step cards (all widths) */
#how-it-works .step-splash-layer {
  display: none !important;
}
