/* =============================================================
   DATA.CSS — "Wellness Built on Data" section + carousel
============================================================= */

#data {
  background: var(--white);
  padding: var(--section-pad-v) var(--section-pad-h);
}

/* ── Header wrapper ── */
.data-header-wrap {
  text-align: center;
  margin-bottom: 48px;
}

.data-subtitle {
  font-size: 13px;
  color: var(--mid);
  max-width: 700px;
  margin: 20px auto 0;
  white-space: nowrap;
}

/* ── Header with wave decorations ── */
.data-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: center;
  margin-bottom: 0;
  position: relative;
}

.wave-deco {
  width: 280px;
  height: 110px;
  flex-shrink: 0;
  opacity: 0.5;
  margin-top: -30px;
}

.data-header h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
  background: var(--white);
  padding: 0 16px;
}

/* ── Carousel wrapper ── */
.data-carousel {
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.data-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.data-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ── Dark data visual panel ── */
.data-visual {
  background: var(--dark);
  border-radius: 6px;
  padding: 32px;
  color: var(--white);
  max-height: 360px;
  overflow: hidden;
}

.data-visual--light {
  background: var(--cream);
  color: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dv-company-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.dv-company-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.dv-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* Score ring */
.dv-score-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.dv-ring {
  width: 90px;
  height: 110px;
  border-radius: 50%;
  border: 6px solid var(--teal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dv-ring-score {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.dv-ring-sub {
  font-size: 9px;
  color: #888;
  margin-top: 2px;
}

.dv-meta {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 16px;
  font-size: 12px;
  align-items: center;
}

.dv-meta-label {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888;
}

/* Domain rings */
.dv-domains h4 {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 14px;
}

.dv-domain-row {
  display: flex;
  gap: 20px;
}

.dv-domain {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dv-domain span {
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888;
}

.dv-mini-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  border: 4px solid;
}

.dv-ring--restoration { border-color: var(--teal); color: var(--teal); }
.dv-ring--connection  { border-color: #a0a0c0;     color: #a0a0c0; }
.dv-ring--resilience  { border-color: #f08080;     color: #f08080; }

/* Pie chart */
.pie-chart {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(
    var(--teal)  0deg 130deg,
    #d4c8a8     130deg 220deg,
    #a0b8c0     220deg 310deg,
    #c0a0b0     310deg 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pie-center {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark);
}

.pie-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}

.legend-item {
  font-size: 11px;
  font-weight: 600;
}

.legend-item::before { content: '■ '; }
.legend--cultural::before { color: var(--teal); }
.legend--physical::before { color: #c8b478; }
.legend--tech::before     { color: #8abccc; }
.legend--social::before   { color: #c088a8; }

.pie-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid);
}

/* Bar chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 130px;
  padding: 12px 8px 0;
  margin: 8px 0 8px;
}

.bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bar {
  width: 36px;
  background: var(--teal);
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.bar:hover { opacity: 1; }

.bar-group span {
  font-size: 9px;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dv-chart-label {
  font-size: 10px;
  color: #888;
  text-align: center;
  margin-top: 4px;
}

/* Impact rows */
.impact-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.impact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #ccc;
}

.impact-val {
  font-size: 14px;
  font-weight: 700;
}

.impact--teal   { color: var(--teal); }
.impact--purple { color: #a0a0c0; }
.impact--orange { color: #f0a070; }

.impact-track {
  height: 4px;
  background: #333;
  border-radius: 2px;
}

.impact-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* ── Data text side ── */
.data-text h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 20px;
}

.data-text p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--dark);
}

/* ── Carousel controls ── */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}

.carousel-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--mid);
  cursor: pointer;
  padding: 4px 12px;
  transition: color 0.2s;
}

.carousel-btn:hover { color: var(--dark); }

.carousel-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.dot--active { background: var(--gold); }

/* .data-cta removed — demo button hidden until demo is built */

/* ── Responsive ── */
@media (max-width: 900px) {
  #data {
    padding: var(--section-pad-mobile);
  }

  .data-header {
    flex-direction: column;
    gap: 20px;
  }

  .wave-deco { display: none; }

  .data-slide {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Photo variant for data slides */
.data-visual--photo {
  padding: 0;
  background: none;
  border-radius: 6px;
  overflow: hidden;
  max-height: 360px;
}

.data-visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* ── Cognitive Focus Test panels (Slide 2) ── */
.data-visual--tests {
  padding: 20px;
  justify-content: flex-start;
}

.test-panels {
  display: flex;
  gap: 0;
  width: 100%;
  flex: 1;
}

.test-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.test-divider {
  width: 1px;
  background: rgba(0,0,0,0.1);
  margin: 0 16px;
  flex-shrink: 0;
}

.test-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.test-status {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
}

.test-status--live  { color: #e05c3a; }
.test-status--done  { color: var(--teal); }

/* Stroop card */
.stroop-card {
  background: white;
  border-radius: 6px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.stroop-prompt {
  font-size: 10px;
  color: var(--mid);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

.stroop-word {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.stroop-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
}

.stroop-btn {
  background: var(--cream);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 6px 4px;
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dark);
  cursor: default;
}

.stroop-btn--selected {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

.test-timer {
  font-size: 9px;
  color: #e05c3a;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Flanker results */
.flanker-results {
  background: white;
  border-radius: 6px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flanker-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flanker-score-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mid);
}

.flanker-score-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

.flanker-bar-wrap {
  height: 4px;
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
  margin-bottom: 4px;
}

.flanker-bar {
  height: 100%;
  border-radius: 2px;
}

.flanker-note {
  font-size: 9px;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  margin-top: 4px;
}

/* ── Portal marketing visual (Slide 1) ── */
.data-visual--portal {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: white;
  max-height: 360px;
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 10px;
}

.portal-company {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
}

.portal-report {
  font-size: 9px;
  color: #888;
  letter-spacing: 1px;
  margin-top: 2px;
}

.portal-ww-logo {
  text-align: right;
  line-height: 1.3;
}

.portal-w {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 600;
  color: #1DB89A;
  line-height: 1;
}

.portal-ww-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: white;
}

.portal-ww-byline {
  font-size: 7px;
  letter-spacing: 2px;
  color: #666;
  text-transform: uppercase;
  margin-top: 2px;
}

.portal-score-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #222;
  border-radius: 8px;
  padding: 14px 20px;
}

.portal-score-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.4;
  color: white;
  flex-shrink: 0;
}

.portal-score-label span {
  color: #1DB89A;
}

.portal-ring-main {
  flex-shrink: 0;
}

.portal-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: auto;
}

.portal-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: #2a2a2a;
  border-radius: 4px;
  padding: 4px 10px;
  min-width: 80px;
}

.portal-stat-label {
  font-size: 7px;
  color: #666;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.portal-stat-val {
  font-size: 13px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.portal-teal { color: #1DB89A !important; }

.portal-domains-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #666;
  text-align: center;
}

.portal-domains {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.portal-domain {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.portal-domain-name {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.portal-restoration { color: #1DB89A; }
.portal-connection  { color: #a0a0c0; }
.portal-resilience  { color: #f08080; }

/* ── Before/After Pillars visual (Slide 4) ── */
.data-visual--pillars {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 360px;
  overflow: hidden;
}

.pillars-domain {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pillars-domain-header {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding-left: 6px;
  border-left: 2px solid;
  margin-bottom: 3px;
}

.pillars-restoration { color: #1DB89A; border-color: #1DB89A; }
.pillars-connection  { color: #a0a0c0; border-color: #a0a0c0; }
.pillars-resilience  { color: #f08080; border-color: #f08080; }

.pillar-row {
  display: grid;
  grid-template-columns: 72px 24px 1fr 24px 36px;
  align-items: center;
  gap: 6px;
}

.pillar-name {
  font-size: 9px;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pillar-before {
  font-size: 9px;
  color: white;
  text-align: right;
  font-weight: 600;
}

.pillar-track {
  position: relative;
  height: 5px;
  background: #2a2a2a;
  border-radius: 3px;
  overflow: hidden;
}

.pillar-bar-after {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  height: 5px;
  border-radius: 3px;
}

/* Muted base up to before score, bright color for the gain */
.pillar-after--teal   { background: linear-gradient(to right, #0a4a3a var(--before-pct, 80%), #1DB89A var(--before-pct, 80%)); }
.pillar-after--purple { background: linear-gradient(to right, #3a3a5a var(--before-pct, 80%), #a0a0c0 var(--before-pct, 80%)); }
.pillar-after--coral  { background: linear-gradient(to right, #5a2020 var(--before-pct, 80%), #f08080 var(--before-pct, 80%)); }

.pillar-after-val {
  font-size: 10px;
  font-weight: 700;
  color: white;
  text-align: right;
}

.pillar-change {
  font-size: 8px;
  font-weight: 700;
  text-align: right;
}

.pillar-change--teal   { color: #1DB89A; }
.pillar-change--purple { color: #a0a0c0; }
.pillar-change--coral  { color: #f08080; }

/* ── Real-Time Insights cards (Slide 3) ── */
.data-visual--insights {
  background: var(--cream);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow: hidden;
}

.insights-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.insights-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mid);
}

.insights-date {
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #b5a46c;
  font-weight: 600;
}

.insight-card {
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid;
}

.insight-card--win  { background: rgba(29,184,154,0.08); border-color: #1DB89A; }
.insight-card--rec  { background: rgba(181,164,108,0.1); border-color: #b5a46c; }
.insight-card--risk { background: rgba(220,100,80,0.08); border-color: #dc6450; }

.insight-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.insight-tag {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.insight-tag--win  { color: #1DB89A; }
.insight-tag--rec  { color: #8a7a4e; }
.insight-tag--risk { color: #dc6450; }

.insight-pillar {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dark);
}

.insight-stat {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--dark);
  font-family: var(--font-display);
}

.insight-desc {
  font-size: 9px;
  color: var(--mid);
  line-height: 1.5;
}

.insight-track {
  height: 3px;
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
  margin-top: 2px;
}

.insight-fill {
  height: 100%;
  border-radius: 2px;
}

.insight-fill--win  { background: #1DB89A; }
.insight-fill--rec  { background: #b5a46c; }
.insight-fill--risk { background: #dc6450; }

.insight-track-labels {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  color: #999;
  letter-spacing: 0.5px;
}