:root {
  color-scheme: dark;
  --bg: #070a0f;
  --panel: rgba(12, 16, 23, 0.88);
  --panel-strong: rgba(16, 22, 30, 0.98);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef2f7;
  --muted: #96a3b7;
  --muted-2: #6f7d91;
  --grad-start: rgba(110, 231, 216, 0.18);
  --grad-end: rgba(79, 185, 173, 0.54);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.backdrop {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
}

.shell {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  padding: 32px 0;
  position: relative;
  z-index: 1;
}


.hero {
  padding: 32px;
  max-width: 900px;
}

.hero-copy h1,
.section-head h2,
.rule-card h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.3rem, 4.8vw, 4.7rem);
  line-height: 0.97;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.eyebrow a {
  text-decoration: none;
}
.eyebrow a:hover {
  text-decoration: underline;
}

.hero-metrics {
  display: grid;
  gap: 14px;
  align-content: start;
  margin-top: 2rem;
}

.scales {
  display: flex;
  flex: row;
  align-items: center;
  gap: 1rem;
}

.scale-toggle {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  width: fit-content;
}

.scale-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  font: 700 0.92rem/1 "IBM Plex Sans", system-ui, sans-serif;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.scale-btn:hover {
  transform: translateY(-1px);
}

.scale-btn.is-active {
  background: linear-gradient(135deg, rgba(110, 231, 216, 0.18), rgba(141, 211, 255, 0.14));
  color: var(--text);
}

.users-toggle-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.users-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.switch-slider {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--border);
  transition: background 180ms ease, border-color 180ms ease;
}

.switch-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 180ms ease;
}

.switch input:checked + .switch-slider {
  background: linear-gradient(135deg, rgba(110, 231, 216, 0.3), rgba(141, 211, 255, 0.22));
  border-color: rgba(110, 231, 216, 0.32);
}

.switch input:checked + .switch-slider::before {
  transform: translateX(20px);
}

.users-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 180ms ease;
}

.users-controls.is-active {
  opacity: 1;
}

#users-scale {
  width: 128px;
}

.users-scale-label {
  color: var(--muted);
  font-size: 0.88rem;
  min-width: 7.5rem;
}

.metric {
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.metric-label,
.metric-sub,
.section-note,
.analysis-card p,
.rule-card p,
.callout p,
.small-copy {
  color: var(--muted);
}


.metric-header {
  display: flex;
}
.metric-year {
  flex: 1;
  font-size: 0.88em;
  font-weight: bold;
  color: var(--muted);
}

.metric-value {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: bold;
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 1rem 0;
}

.metric-label {
  font-size: 0.75em;
  margin-left: .25em;
  font-weight: normal;
}

.section-block {
  margin-top: 22px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.section-note {
  margin: 0;
  max-width: 42ch;
  font-size: 0.95rem;
}

.grid.cards {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: .5rem 2rem;
  margin: 1rem;
}

.grid.cards .progress {
  grid-column: 1/-1;
}

.cost-card {
  display: flex;
  padding: 18px;
  font-size: 1.12rem;
}

.cost-card.is-optional {
  opacity: 0.86;
}

.cost-title {
}

.cost-value {
}

.cost-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.progress {
  margin-top: 14px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.analysis-card,
.callout,
.rule-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.analysis-card.highlight {
  background: linear-gradient(180deg, rgba(244, 184, 96, 0.10), rgba(255, 255, 255, 0.03));
  border-color: rgba(244, 184, 96, 0.18);
}

.analysis-kicker,
.callout-label {
  display: block;
  color: var(--muted-2);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
  font-weight: 700;
}

.analysis-card strong,
.callout strong {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.05em;
  line-height: 1;
}

.analysis-card strong {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 10px;
}

.analysis-card p,
.callout p,
.rule-card p {
  margin: 0;
}

.callout-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.callout {
  background: linear-gradient(180deg, rgba(141, 211, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.callout strong {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table th,
.history-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

.history-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.03);
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
}

.history-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.history-amount {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.02rem;
  white-space: nowrap;
}
.history-amount.mensual {
  color: var(--muted);
}

.history-bar {
  margin-top: 8px;
  height: 6px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.history-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rule-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.rule-card p {
  font-size: 0.96rem;
}

strong {
  font-weight: 700;
}
