:root {
  --ink: #10212b;
  --muted: #60717d;
  --line: #d8e1e6;
  --panel: #ffffff;
  --paper: #f4f7f8;
  --teal: #0b6b7c;
  --navy: #0b3f55;
  --orange: #f97316;
  --green: #16835d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: stretch;
  padding: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #097083);
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar .eyebrow {
  color: #ffbc85;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.lede {
  max-width: 740px;
  margin-bottom: 0;
  color: #d8eef3;
  font-size: 1.05rem;
  line-height: 1.55;
}

.saldo-card,
.recommendation,
.profile-panel,
.cards article,
.source-section,
.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(24, 47, 58, 0.08);
}

.saldo-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  color: var(--ink);
}

.saldo-card span,
.metric-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.saldo-card strong {
  margin: 8px 0;
  color: var(--teal);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 650;
}

.saldo-card small {
  color: var(--muted);
  font-size: 0.95rem;
}

.decision-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  margin: 20px 0 30px;
}

.recommendation,
.profile-panel {
  padding: 24px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.metric-row div {
  padding: 14px;
  background: #edf6f7;
  border-radius: 8px;
}

.metric-row strong {
  display: block;
  margin-top: 4px;
  color: var(--teal);
  font-size: 1.4rem;
}

.recommendation p,
.cards p,
.source-section p,
.section-head p {
  color: var(--muted);
  line-height: 1.6;
}

.profile-panel label {
  display: block;
  margin-bottom: 8px;
  font-weight: 750;
}

select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bac8cf;
  border-radius: 6px;
  font: inherit;
}

.profile-result {
  margin-top: 16px;
  padding: 16px;
  background: #fff7ed;
  border-left: 4px solid var(--orange);
  border-radius: 4px;
  color: #743800;
  line-height: 1.55;
}

.section-head,
.source-section {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin: 30px 0 14px;
}

.section-head p {
  max-width: 440px;
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: #49606d;
  background: #edf3f5;
  font-size: 0.86rem;
  text-transform: uppercase;
}

td strong {
  color: var(--green);
  font-size: 1.08rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  color: #063b47;
  background: #d9f0f3;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.cards article,
.source-section {
  padding: 22px;
}

.source-section {
  align-items: start;
}

.source-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

a {
  color: var(--teal);
  font-weight: 750;
}

@media (max-width: 900px) {
  main {
    width: min(100% - 24px, 720px);
    padding-top: 16px;
  }

  .topbar,
  .decision-grid,
  .cards,
  .section-head,
  .source-section {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar,
  .recommendation,
  .profile-panel,
  .cards article,
  .source-section {
    padding: 18px;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }
}
