/* Home: dashboard hipotético + calculadora de impacto */
#impact-demo {
  position: relative;
  overflow-x: clip;
}

.impact-demo__inner {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.impact-demo__header {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.impact-demo__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-on-surface, #f3eeff);
  margin-bottom: 0.75rem;
}

.impact-demo__subtitle {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgba(231, 222, 255, 0.72);
}

.impact-demo__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 1024px) {
  .impact-demo__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.impact-panel {
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: rgba(22, 8, 59, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(8, 2, 24, 0.35);
}

.impact-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.impact-panel__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.impact-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(45, 189, 215, 0.95);
  background: rgba(45, 189, 215, 0.12);
  border: 1px solid rgba(45, 189, 215, 0.35);
}

.impact-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .impact-activity-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.impact-stat-card {
  padding: 0.85rem 0.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.impact-stat-card__value {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, #c555eb, #8a5dfe, #2dbdd7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.impact-stat-card__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  line-height: 1.35;
  color: rgba(231, 222, 255, 0.65);
}

.impact-quality {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 480px) {
  .impact-quality {
    grid-template-columns: 1fr 1fr;
  }
}

.impact-quality__item {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(138, 93, 254, 0.08);
  border: 1px solid rgba(138, 93, 254, 0.2);
}

.impact-quality__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(231, 222, 255, 0.85);
}

.impact-quality__pct {
  font-weight: 700;
  color: #2dbdd7;
}

.impact-progress {
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.impact-progress__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8a5dfe, #2dbdd7);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.impact-impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.impact-impact-card {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.impact-impact-card--hero {
  grid-column: 1 / -1;
  padding: 1.15rem 1.25rem;
  border-color: rgba(197, 85, 235, 0.35);
  background: linear-gradient(135deg, rgba(138, 93, 254, 0.15), rgba(45, 189, 215, 0.08));
}

.impact-impact-card__value {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.impact-impact-card--hero .impact-impact-card__value {
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
}

.impact-impact-card__label {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  line-height: 1.4;
  color: rgba(231, 222, 255, 0.65);
}

.impact-disclaimer {
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  font-size: 0.7rem;
  line-height: 1.5;
  color: rgba(231, 222, 255, 0.55);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.impact-calc__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.impact-calc__sub {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(231, 222, 255, 0.68);
  margin-bottom: 1.25rem;
}

.impact-field {
  margin-bottom: 1.1rem;
}

.impact-field__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.impact-field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(231, 222, 255, 0.9);
}

.impact-field__value {
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #2dbdd7;
}

.impact-field input[type='range'] {
  width: 100%;
  height: 6px;
  margin: 0;
  accent-color: #8a5dfe;
  cursor: pointer;
}

.impact-field input[type='number'] {
  width: 100%;
  max-width: 7rem;
  margin-top: 0.35rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.impact-field input[type='number']:focus-visible {
  outline: 2px solid rgba(138, 93, 254, 0.6);
  outline-offset: 2px;
}

.impact-results {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.impact-results__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(231, 222, 255, 0.5);
  margin-bottom: 0.75rem;
}

.impact-results__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.impact-results__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.8125rem;
}

.impact-results__row span:first-child {
  color: rgba(231, 222, 255, 0.72);
}

.impact-results__row strong {
  font-variant-numeric: tabular-nums;
  color: #fff;
  font-weight: 700;
}

.impact-results__row--highlight {
  padding: 0.65rem 0.75rem;
  margin-top: 0.35rem;
  border-radius: 12px;
  background: rgba(45, 189, 215, 0.1);
  border: 1px solid rgba(45, 189, 215, 0.25);
}

.impact-results__row--highlight strong {
  color: #2dbdd7;
  font-size: 1rem;
}

.impact-chart {
  margin-top: 1.25rem;
}

.impact-chart__title {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(231, 222, 255, 0.75);
  margin-bottom: 0.65rem;
}

.impact-chart__row {
  margin-bottom: 0.65rem;
}

.impact-chart__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(231, 222, 255, 0.65);
  margin-bottom: 0.3rem;
}

.impact-chart__track {
  height: 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.impact-chart__bar {
  height: 100%;
  border-radius: inherit;
  min-width: 2px;
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.impact-chart__bar--without {
  background: rgba(255, 255, 255, 0.35);
}

.impact-chart__bar--with {
  background: linear-gradient(90deg, #8a5dfe, #2dbdd7);
}

.impact-cta {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 28px;
  border: 1px solid rgba(138, 93, 254, 0.25);
  background: linear-gradient(160deg, rgba(22, 8, 59, 0.55), rgba(138, 93, 254, 0.08));
}

.impact-cta__text {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: #fff;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

html[data-theme='light'] #impact-demo {
  --impact-text: #1a0a3e;
  --impact-text-muted: rgba(26, 10, 62, 0.72);
  --impact-text-soft: rgba(26, 10, 62, 0.58);
  --impact-surface: rgba(255, 255, 255, 0.92);
  --impact-surface-alt: rgba(138, 93, 254, 0.08);
  --impact-border: rgba(88, 28, 135, 0.14);
  --impact-accent: #5b21b6;
  --impact-cyan: #0e7490;
}

html[data-theme='light'] .impact-panel {
  background: var(--impact-surface);
  border-color: var(--impact-border);
  box-shadow: 0 16px 40px rgba(88, 28, 135, 0.1);
}

html[data-theme='light'] .impact-demo__title,
html[data-theme='light'] .impact-panel__title,
html[data-theme='light'] .impact-calc__title,
html[data-theme='light'] .impact-impact-card__value,
html[data-theme='light'] .impact-results__row strong {
  color: var(--impact-text);
}

html[data-theme='light'] .impact-demo__subtitle,
html[data-theme='light'] .impact-calc__sub,
html[data-theme='light'] .impact-stat-card__label,
html[data-theme='light'] .impact-impact-card__label,
html[data-theme='light'] .impact-results__row span:first-child,
html[data-theme='light'] .impact-chart__title,
html[data-theme='light'] .impact-chart__label,
html[data-theme='light'] .impact-quality__row span:first-child,
html[data-theme='light'] .impact-field__label {
  color: var(--impact-text-muted);
}

html[data-theme='light'] .impact-results__title,
html[data-theme='light'] .impact-disclaimer {
  color: var(--impact-text-soft);
}

html[data-theme='light'] .impact-disclaimer {
  background: rgba(138, 93, 254, 0.06);
  border-color: var(--impact-border);
}

html[data-theme='light'] .impact-stat-card,
html[data-theme='light'] .impact-impact-card,
html[data-theme='light'] .impact-quality__item {
  background: var(--impact-surface-alt);
  border-color: var(--impact-border);
}

html[data-theme='light'] .impact-impact-card--hero {
  background: linear-gradient(135deg, rgba(138, 93, 254, 0.12), rgba(45, 189, 215, 0.1));
  border-color: rgba(138, 93, 254, 0.22);
}

html[data-theme='light'] .impact-badge {
  color: var(--impact-cyan);
  background: rgba(14, 116, 144, 0.1);
  border-color: rgba(14, 116, 144, 0.28);
}

html[data-theme='light'] .impact-quality__pct,
html[data-theme='light'] .impact-field__value,
html[data-theme='light'] .impact-results__row--highlight strong {
  color: var(--impact-cyan);
}

html[data-theme='light'] .impact-results__row--highlight {
  background: rgba(14, 116, 144, 0.08);
  border-color: rgba(14, 116, 144, 0.22);
}

html[data-theme='light'] .impact-results {
  border-top-color: var(--impact-border);
}

html[data-theme='light'] .impact-progress {
  background: rgba(26, 10, 62, 0.08);
}

html[data-theme='light'] .impact-field input[type='number'] {
  background: #fff;
  border-color: var(--impact-border);
  color: var(--impact-text);
}

html[data-theme='light'] .impact-chart__track {
  background: rgba(26, 10, 62, 0.08);
}

html[data-theme='light'] .impact-chart__bar--without {
  background: rgba(26, 10, 62, 0.35);
}

html[data-theme='light'] .impact-cta {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(138, 93, 254, 0.1));
  border-color: rgba(138, 93, 254, 0.2);
}

html[data-theme='light'] .impact-cta__text {
  color: var(--impact-text);
}

@media (prefers-reduced-motion: reduce) {
  .impact-progress__fill,
  .impact-chart__bar {
    transition: none;
  }
}
