/* ============================================================
   The Business Game — TBG Industry Insights
   Landing, industry page and the annual Pulse survey.
   Self-contained: does not lean on the .assessment-form scope.
   ============================================================ */

/* Broadcast tone, matching the network page — a lighter violet dark. */
#page-insights,
#page-pulse {
  --ink:          #1A1626;
  --ink-2:        #221C32;
  --surface:      #2A2340;
  --surface-2:    #352C4E;
  --line:         rgba(255,255,255,.12);
  --line-strong:  rgba(255,255,255,.22);
  --text:         #F5F2FB;
  --muted:        #CFC8DE;
  background: var(--ink);
}

.wrap--narrow {
  max-width: 760px;
}

/* A full-bleed rule across the top of a section, separating it from the one
   above (used above "Choose your industry" and "Why contribute?"). The border
   sits on the full-width section, so the line spans the whole page. */
.section--ruled {
  border-top: 1px solid var(--line-strong);
}

/* ============ INDUSTRY SELECTION GRID ============ */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.industry-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.industry-card:hover,
.industry-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px -24px var(--glow);
  outline: none;
}

.industry-card__icon {
  font-size: 2.1rem;
  line-height: 1;
}

.industry-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  color: var(--text);
}

.industry-card__count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

.industry-card__status {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}

.industry-card__status--open {
  color: #7CE7B0;
  border-color: rgba(124, 231, 176, .4);
  background: rgba(124, 231, 176, .08);
}

/* ============ LIVE ACTIVITY ============ */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.activity-row__icon { font-size: 1.6rem; flex-shrink: 0; }

/* Name takes the middle and truncates rather than colliding with the stat. */
.activity-row__name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Count + label are one solid unit pinned to the right, so they can never
   overlap the name whatever its length. */
.activity-row__stat {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.activity-row__count {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}

.activity-row__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ WHY INSIGHTS EXISTS ============ */
.why-insights__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.why-insights__grid .kicker { margin-bottom: 16px; }

/* Breathing room under the "Businesses improve when leaders share
   experiences." heading before its supporting copy. */
.why-insights__grid h2 { margin-bottom: 18px; }

.why-insights__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}

.why-insights__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
}

.why-insights__list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============ INDUSTRY HERO POINTS ============ */
.industry-hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 26px 0 8px;
}

.industry-hero__point {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--text);
}

/* ============ ABOUT THE PULSE ============ */
.about-pulse__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Breathing room under the "Where {industry} is today…" heading. */
.about-pulse__grid h2 { margin-bottom: 18px; }
.about-pulse__grid .kicker { margin-bottom: 16px; }

.about-pulse__perspectives-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  font-size: .85rem;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

/* ============ LIVE PULSE STATS ============ */
.pulse-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.pulse-stat {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* The value area grows to fill each (equal-height) card so the labels below
   line up across all four tiles, whatever their value is — a big number, a
   two-line challenge name, or the em-dash placeholder. */
.pulse-stat__value {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.pulse-stat__value--text {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text);
}

.pulse-stat__suffix {
  font-size: 1rem;
  color: var(--muted);
}

.pulse-stat__label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ HOW IT WORKS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.step {
  position: relative;
  padding: 24px 18px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 14px;
}

.step__text {
  color: var(--text);
  font-size: .92rem;
}

/* ============ RESEARCH PARTNERS ============ */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.partner-block {
  flex: 1 1 260px;
  max-width: 360px;
  text-align: center;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.partner-block__role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.partner-block__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text);
}

.final-cta {
  max-width: 640px;
  margin: 0 auto;
}

/* A little breathing room under the "Help shape the future of …" heading
   before the "Contribute to the … Pulse today" line. */
.final-cta h2 { margin-bottom: 16px; }

/* "Why contribute?" cards: number, checkmark and text stack with even
   spacing (these reuse .benefits--four but have no benefit__top row). */
#why-contribute .benefit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
#why-contribute .benefit__number {
  order: -1;
  opacity: .55;
}
#why-contribute .benefit__icon {
  margin: 0;
}
#why-contribute .benefit p {
  margin: 0;
}

/* ============================================================
   PULSE SURVEY
   ============================================================ */
.pulse {
  padding: 70px 0 90px;
  min-height: 70vh;
}

/* ---- progress bar ---- */
.pulse-progress {
  position: sticky;
  top: 72px;
  z-index: 5;
  margin-bottom: 34px;
  padding: 12px 0;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(6px);
}

.pulse-progress__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.pulse-progress__track {
  height: 6px;
  border-radius: 999px;
  background: var(--ink-2);
  overflow: hidden;
}

.pulse-progress__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
}

/* ---- steps ---- */
.pulse-step {
  display: none;
  animation: pulseStepIn .35s ease;
}

.pulse-step.is-active {
  display: block;
}

.pulse-step:focus {
  outline: none;
}

@keyframes pulseStepIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pulse-step--intro {
  text-align: center;
  padding-top: 20px;
}

/* The survey's intro and thank-you kickers read better in the body face than
   the site-wide mono eyebrow style used elsewhere (Insights/Network/etc). */
.pulse-step--intro .kicker,
.pulse-done .kicker {
  font-family: var(--font-body);
}

.pulse-step__title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin: 16px 0 12px;
}

.pulse-step__lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 10px;
}

.pulse-note {
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 26px;
}

/* ---- section intro ---- */
.pulse-section-intro {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.pulse-section-intro__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

.pulse-section-intro__title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin: 8px 0 8px;
}

.pulse-section-intro__text {
  color: var(--muted);
}

/* ---- question ---- */
.pulse-q {
  margin-bottom: 30px;
}

.pulse-q__number {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulse-q__optional {
  color: var(--gold);
}

.pulse-q__label {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 10px 0 6px;
  color: var(--text);
}

.pulse-q__help {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.pulse-q--shake {
  animation: pulseShake .4s ease;
}

@keyframes pulseShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

/* ---- single-select options ---- */
.pulse-options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

/* Free-text detail revealed under the options when "Other" is selected. */
.pulse-other {
  margin-top: 10px;
  animation: pulseStepIn .25s ease;
}

.pulse-option {
  cursor: pointer;
}

.pulse-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pulse-option__box {
  display: block;
  padding: 15px 18px;
  background: var(--ink-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.pulse-option:hover .pulse-option__box {
  border-color: var(--line-strong);
  transform: translateX(3px);
}

.pulse-option input:checked + .pulse-option__box {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
}

.pulse-option input:focus-visible + .pulse-option__box {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent);
}

/* ---- generic field / inputs ---- */
.pulse-field {
  margin-top: 18px;
  display: block;
}

.pulse-field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.pulse-field__optional {
  color: var(--gold);
}

.input,
.pulse-select,
.pulse-textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 15px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.input:focus,
.pulse-select:focus,
.pulse-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 16%, transparent);
}

.pulse-textarea {
  resize: vertical;
  min-height: 96px;
}

.pulse-charcount {
  margin-top: 8px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---- slider ---- */
.pulse-slider {
  margin-top: 28px;
}

.pulse-slider__input {
  --pulse-slider-pct: 44%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) var(--pulse-slider-pct), var(--ink-2) var(--pulse-slider-pct));
  cursor: pointer;
}

.pulse-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  border: 5px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  cursor: pointer;
}

.pulse-slider__input::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  border: 5px solid var(--gold);
  cursor: pointer;
}

.pulse-slider__value {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  margin: 16px 0 4px;
}

.pulse-slider__scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---- stay connected ---- */
.pulse-prefs {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.pulse-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  color: var(--text);
}

.pulse-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.pulse-details__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---- step nav ---- */
.pulse-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.pulse-nav [data-pulse-next],
.pulse-nav [type="submit"] {
  margin-left: auto;
}

.pulse-nav [data-pulse-skip] {
  margin-left: auto;
}

.pulse-nav [data-pulse-skip] + [data-pulse-next] {
  margin-left: 0;
}

/* Self-contained (doesn't rely on the site-wide .link-quiet, which the
   standalone Smoothx page never loads) so this looks intentional on both
   the TBG and Smoothx variants — brightens to whichever theme's --gold is. */
.pulse-skip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease;
}

.pulse-skip span {
  transition: transform .2s ease;
}

.pulse-skip:hover,
.pulse-skip:focus-visible {
  color: var(--gold);
}

.pulse-skip:hover span,
.pulse-skip:focus-visible span {
  transform: translateX(3px);
}

.pulse-skip:focus-visible {
  outline: none;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

/* ---- thank you ---- */
.pulse-done {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  padding-top: 30px;
  animation: pulseStepIn .4s ease;
}

.pulse-done__mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  border: 1.5px solid var(--gold);
  color: var(--gold);
}

.pulse-done__mark svg {
  width: 34px;
  height: 34px;
}

/* Space under the "You've helped shape the future of …" heading. */
.pulse-done h2 { margin-bottom: 16px; }
.pulse-done .kicker { margin-bottom: 14px; }

/* Centred row of CTA buttons (thank-you screen). Self-contained so this
   partial doesn't reach into the main site's .hero__cta/.stack--medium —
   both the TBG and Smoothx-branded pulse pages load only this stylesheet. */
.pulse-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

/* Inline validation error banner for the survey form. */
.pulse-form__error {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, .4);
  background: rgba(248, 113, 113, .08);
  color: #dc2626;
  font-size: .88rem;
  text-align: center;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .why-insights__grid,
  .about-pulse__grid { grid-template-columns: 1fr; gap: 30px; }
  .pulse-stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .why-insights__list { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .pulse-stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pulse-details__grid { grid-template-columns: 1fr; }
  .pulse-nav { flex-wrap: wrap; }
  .pulse-progress { top: 60px; }
}