/* GrowthOS hero roles: self-contained enhancement. Load after the page styles. */
.hero .selector {
  position: relative;
  isolation: isolate;
  min-width: 0;
}

/* Optional <noscript> role links supplied by the page integrator. */
.hero .hero-nojs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 60px auto 18px;
}
.hero .hero-nojs-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 14px;
  background: rgba(13, 41, 76, .72);
  color: #fff;
  font-size: 13px;
}
.hero .hero-nojs-nav a:hover { background: rgba(13, 41, 76, .9); }

/* The icon colors identify a role even before it is selected. */
.hero .role-tab {
  --role-icon: #d6eaff;
  --role-ink: #15558c;
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 8px 14px 8px 9px;
  background: rgba(13, 41, 76, .72);
  border-color: rgba(255, 255, 255, .55);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.hero .role-tab[data-role="creative"] { --role-icon: #f4dbec; --role-ink: #862e60; }
.hero .role-tab[data-role="ads"] { --role-icon: #ffe5b2; --role-ink: #784a00; }
.hero .role-tab[data-role="retention"] { --role-icon: #c9efe5; --role-ink: #145e50; }
.hero .role-tab[data-role="store"] { --role-icon: #ffe0d4; --role-ink: #8a3e25; }
.hero .role-tab[data-role="insights"] { --role-icon: #e2defa; --role-ink: #4f4284; }
.hero .role-tab .ico {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 10px;
  background: var(--role-icon);
  color: var(--role-ink);
}
.hero .role-tab:hover { background: rgba(13, 41, 76, .9); }
.hero .role-tab[aria-selected="true"] {
  color: var(--navy, #0f2442);
  background: #fff;
  border-color: #fff;
}

/* Only enabled when the indicator exists; the selected button is the fallback. */
.hero .selector[data-hero-ready] .role-tab[aria-selected="true"] {
  background: transparent;
  border-color: transparent;
}
.hero .hero-role-indicator {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  pointer-events: none;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 5px 15px rgba(9, 33, 65, .15);
  transform: translate(0, 0);
}
.hero .hero-role-indicator.is-positioned {
  transition: transform 280ms cubic-bezier(.2, 0, 0, 1), width 280ms cubic-bezier(.2, 0, 0, 1), height 280ms cubic-bezier(.2, 0, 0, 1);
}

/* Keep the existing card and its dimensions; change only its color atmosphere. */
.hero .feature { --hero-stage: #e0effe; --hero-accent: #245f98; }
.hero .feature[data-hero-role="creative"] { --hero-stage: #f6e5ef; --hero-accent: #862e60; }
.hero .feature[data-hero-role="ads"] { --hero-stage: #fff0d5; --hero-accent: #784a00; }
.hero .feature[data-hero-role="retention"] { --hero-stage: #dcf4ed; --hero-accent: #145e50; }
.hero .feature[data-hero-role="store"] { --hero-stage: #ffebe3; --hero-accent: #8a3e25; }
.hero .feature[data-hero-role="insights"] { --hero-stage: #ebe8fb; --hero-accent: #4f4284; }
.hero .feature .role-tag { color: var(--hero-accent); }
.hero .feature .stage {
  background: radial-gradient(ellipse at 85% 100%, rgba(255,255,255,.7), transparent 65%), var(--hero-stage);
  transition: background-color 220ms ease;
}
.hero .feature .stage:before { opacity: .3; }

@media (max-width: 800px) {
  .hero .role-tab { min-height: 44px; padding: 6px 10px 6px 7px; }
  .hero .role-tab .ico { width: 30px; height: 30px; padding: 5px; }
  .hero .hero-role-indicator { border-radius: 13px; }
  /* Reserve enough room for the longest existing role without clipping text. */
  .hero .feature { min-height: 630px; }
  /* Keep the task-card text readable in narrow stages. */
  .hero .feature .stage { padding: 20px; }
  .hero .feature .stage .card { padding: 18px; }
}
@media (min-width: 801px) and (max-width: 1000px) {
  .hero .feature { min-height: 460px; }
}
@media (max-width: 440px) { .hero .feature { min-height: 667px; } }
@media (max-width: 370px) { .hero .feature { min-height: 708px; } }
@media (max-width: 350px) { .hero .feature { min-height: 778px; } }
@media (prefers-reduced-motion: reduce) {
  .hero .role-tab,
  .hero .hero-role-indicator.is-positioned,
  .hero .feature .stage { transition: none; }
}
