/* eNPS page. Group colours match the dashboard's eNPS chart. */
:root {
  --en-det: #f0a0a0;
  --en-pas: #f2d06b;
  --en-pro: #6bc89b;
}
.page-hero .ui > .hand-note {
  top: -2.1rem;
  left: 40%;
}
.page-hero .ui > .hand-note svg {
  width: 30px;
  height: auto;
  overflow: visible;
}

/* how it works: a clickable 0 to 10 */
.en-how {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4.5vw, 4rem) clamp(1.5rem, 4.5vw, 4rem) clamp(3.25rem, 5.5vw, 5rem);
  border-radius: 32px;
  background: var(--stage-coral);
}
.en-how-copy h2 {
  margin-top: 1rem;
  font-size: clamp(2.1rem, 3.9vw, 3.3rem);
  line-height: 1.06;
}
.en-how-copy > p:not(.label-pill) {
  max-width: 44ch;
  margin-top: 1rem;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--navy-2);
}
.en-how-copy strong {
  font-weight: 600;
  color: var(--navy);
}
.en-scale {
  position: relative;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: 22px;
  background: var(--surface);
  box-shadow:
    0 1px 2px rgb(12 21 34 / 0.05),
    0 24px 44px -30px rgb(12 21 34 / 0.4);
}
.en-scale-q {
  font: 700 clamp(1.25rem, 2vw, 1.55rem) / 1.2 var(--display);
}
.en-answer {
  min-height: 3em;
  margin-top: 0.75rem;
  line-height: 1.5;
  color: var(--navy-2);
}
.en-answer b {
  font-weight: 600;
  color: var(--navy);
}
/* columns line up with the tiles: 7, 2 and 2 */
.en-bands {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  text-align: center;
  color: var(--navy-2);
}
.en-band {
  padding-bottom: 0.3rem;
  border-bottom: 3px solid var(--en);
  white-space: nowrap;
}
.en-band--det { --en: var(--en-det); grid-column: span 7; }
.en-band--pas { --en: var(--en-pas); grid-column: span 2; }
.en-band--pro { --en: var(--en-pro); grid-column: span 2; }
.en-band.is-on {
  font-weight: 600;
  color: var(--navy);
}
.en-tiles {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 0.3rem;
  margin-top: 0.5rem;
}
@media (max-width: 560px) {
  .en-tiles {
    margin-top: 1rem;
  }
}
.en-tile {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--en) 40%, #fff);
  color: var(--navy);
  font: 600 0.95rem / 1 var(--body);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition:
    background-color 0.15s var(--ease-out),
    transform 0.15s var(--ease-out);
}
.en-tile--det { --en: var(--en-det); }
.en-tile--pas { --en: var(--en-pas); }
.en-tile--pro { --en: var(--en-pro); }
.en-tile:hover {
  background: color-mix(in srgb, var(--en) 70%, #fff);
}
.en-tile[aria-pressed="true"] {
  background: var(--en);
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--navy-2);
}
.en-tile:focus-visible {
  outline: 2px solid #c25400;
  outline-offset: 2px;
}
/* arrow tip lands under the 6 */
.en-scale > .hand-note {
  right: 39%;
  bottom: -2.35rem;
}

/* notes behind the number */
.en-notes {
  display: grid;
  gap: 0.6rem;
}
.en-notes-title {
  font-weight: 600;
}
.en-note {
  display: flex;
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid #eee6dd;
  border-radius: 12px;
}
.en-note p {
  line-height: 1.4;
}
.en-note div > span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--navy-2);
}
.en-mood {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.en-mood .i {
  width: 20px;
  height: 20px;
}
.en-mood--neg { background: #fee2e2; }
.en-mood--neg .i { color: #ef4444; }
.en-mood--pos { background: #dcfce7; }
.en-mood--pos .i { color: #22c55e; }

/* card drawings */
.en-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem 0.45rem 0.7rem;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.en-pill .i {
  width: 1.3em;
  height: 1.3em;
}
.en-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem 0.6rem;
  align-items: center;
  width: 100%;
  font-size: 0.82rem;
}
.en-groups b {
  min-width: 2.6rem;
  padding: 0.25rem 0.4rem;
  border-radius: 7px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.en-groups .is-pro { background: var(--en-pro); }
.en-groups .is-det { background: var(--en-det); }
.en-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 132px;
}
.en-grid i {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #ff7300;
  opacity: var(--a);
}
.en-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  background: var(--surface);
  font-weight: 600;
}
.en-toggle i {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 99px;
  background: #ff7300;
}
.en-toggle i::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}
@media (max-width: 960px) {
  .en-how {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  /* two lines, so the note stays on screen */
  .page-hero-media.moment-media--centred {
    padding-top: 4.25rem;
  }
  .page-hero .ui > .hand-note {
    white-space: normal;
  }
  .page-hero .ui > .hand-note > span {
    width: 7.5rem;
  }
  .en-tiles {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  /* 6 starts the bottom row here, so the note sits under it on the left */
  .en-scale > .hand-note {
    left: 0.9rem;
    right: auto;
    flex-direction: row;
  }
  .en-scale > .hand-note svg {
    transform: scaleY(-1);
  }
  .en-answer {
    min-height: 4.5em;
  }
  .en-bands {
    display: none;
  }
}
