/* REQ-017 Dividend Savings. Scoped to .ds-* so baseline pages stay untouched. */

.ds-scroll { padding: 12px 0 20px; }
.ds-pad { padding: 0 16px; }
.ds-pad-top { margin-top: 10px; }

.ds-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.82;
}

/* Existing customer: next payout (primary) */
.ds-next {
  margin: 0 16px;
  background: var(--opay);
  color: #fff;
  border-radius: 18px;
  padding: 16px;
}
.ds-next-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}
.ds-date {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
}
.ds-next-amt {
  margin-top: 8px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ds-next-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.ds-next-chips span {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ds-next-sub {
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.85;
}

/* Existing customer: this month (secondary) */
.ds-got {
  width: calc(100% - 32px);
  margin: 8px 16px 0;
  border: 0;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-body);
  text-align: left;
}
.ds-got > .ph-check-circle { color: var(--opay); font-size: 18px; }
.ds-got-label { flex: 1; font-size: 13px; }
.ds-got strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  font-variant-numeric: tabular-nums;
}
.ds-got .chev { color: rgba(0, 0, 0, 0.28); }

.ds-card {
  margin: 12px 16px 0;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
}
.ds-card h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.ds-cv {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ds-bal-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
}
.ds-grow {
  text-align: right;
  color: var(--opay-dark);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ds-grow small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.ds-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 10px;
}
.ds-bar-past { fill: #cdeedd; }
.ds-bar-now { fill: var(--opay); }
.ds-bar-next {
  fill: #fff;
  stroke: var(--opay);
  stroke-width: 1.5;
  stroke-dasharray: 3 2;
}
.ds-chart-x {
  font-size: 9px;
  fill: var(--muted);
  text-anchor: middle;
}
.ds-chart-val {
  font-size: 10px;
  font-weight: 700;
  text-anchor: end;
  fill: var(--text);
}
.ds-chart-val.next { fill: var(--opay-dark); }
.ds-legend {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}
.ds-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ds-legend .sw {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.ds-legend .sw.now { background: var(--opay); }
.ds-legend .sw.next { border: 1.5px dashed var(--opay); }

.ds-keep-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.ds-keep-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.ds-seg {
  display: flex;
  background: #f1f3f5;
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}
.ds-seg button {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  white-space: nowrap;
}
.ds-seg button.on {
  background: #fff;
  color: var(--opay-dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.ds-mini {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.ds-vision {
  width: calc(100% - 32px);
  margin: 12px 16px 0;
  border: 0;
  background: #fff7e6;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.ds-vision-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ds-vision .t { font-size: 14px; font-weight: 700; }
.ds-vision .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ds-vision strong {
  font-size: 16px;
  color: #b36b00;
  font-variant-numeric: tabular-nums;
}
.ds-vision .chev { color: rgba(0, 0, 0, 0.28); }

.ds-link {
  width: calc(100% - 32px);
  margin: 10px 16px 0;
  border: 0;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.ds-link .ds-link-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--opay-light);
  color: var(--opay-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 16px;
}
.ds-link .ds-link-copy { min-width: 0; flex: 1; }
.ds-link .t { font-size: 14px; font-weight: 700; }
.ds-link .chev { color: rgba(0, 0, 0, 0.28); font-size: 16px; flex-shrink: 0; }

.ds-fine {
  margin: 12px 16px 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

/* New customer: hook (about half the screen) */
.ds-topbar-mint { background: var(--opay-light); }
.ds-scroll:has(.ds-hook) { padding-top: 0; }
.ds-hook {
  padding: 6px 16px 38px;
  background: var(--opay-light);
  color: var(--text);
}
.ds-hook-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ds-hero-top {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ds-hero-copy { flex: 1; min-width: 0; }
.ds-hero-art {
  width: 172px;
  height: auto;
  flex-shrink: 0;
  margin: -4px -10px -6px 0;
}
.ds-rate-label {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
}
.ds-rate-big {
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--opay);
  font-variant-numeric: tabular-nums;
}
.ds-rate-big small {
  margin-left: 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--opay-dark);
}
.ds-rate-plus {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--text-body);
  font-size: 11px;
  font-weight: 700;
}
.ds-rate-plus i { color: #d98a00; font-size: 13px; }

/* What the 17% is made of */
.ds-split { margin-top: 12px; }
.ds-split-bar {
  display: flex;
  gap: 3px;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}
.ds-split-bar .paid { background: var(--opay); }
.ds-split-bar .grow { background: var(--opay-focus); }
.ds-split-legend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-body);
}
.ds-split-legend b { color: var(--opay-dark); }
.ds-split-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ds-split-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.ds-split-legend i.paid { background: var(--opay); }
.ds-split-legend i.grow { background: var(--opay-focus); }

/* Two benefit cards */
.ds-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.ds-feat {
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  padding: 10px 10px 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ds-feat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}
.ds-feat-ico {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  margin: -4px 0 -2px -4px;
}
.ds-feat-ico img { width: 38px; height: 38px; display: block; }
.ds-feat.pay .ds-feat-ico { color: #d98a00; }
.ds-feat.grow .ds-feat-ico { color: var(--opay-dark); }
.ds-feat-t {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.ds-feat-v {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ds-feat-v small { margin-left: 2px; font-size: 11px; font-weight: 700; color: var(--muted); }
.ds-feat.pay .ds-feat-v { color: #d98a00; }
.ds-feat.grow .ds-feat-v { color: var(--opay-dark); }
.ds-feat-s {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* New customer: calculator */
.ds-calc {
  margin: 12px 16px 0;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
}
.ds-hook + .ds-calc {
  position: relative;
  margin-top: -26px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.ds-calc-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 10px 0 6px;
}
.ds-calc-label:first-child { margin-top: 0; }
.ds-calc .ds-table { margin-top: 6px; }
.ds-calc .ds-calc-label { margin-top: 12px; }
.ds-calc > .ds-seg + .ds-calc-out,
.ds-calc > .ds-keep + .ds-calc-out { margin-top: 12px; }
.ds-amt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  cursor: text;
}
.ds-amt-input {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #fff;
  border: 1.5px solid var(--opay);
  border-radius: 12px;
  padding: 4px 10px;
}
.ds-amt-input b { font-size: 18px; color: var(--opay-dark); }
.ds-amt-input input {
  width: 92px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ds-amt-hint {
  margin: 12px 4px 4px;
  font-size: 12px;
  color: #d4380d;
}
.ds-calc-out .ds-calc-get { margin-top: 10px; }
.ds-calc-out {
  margin-top: 0;
  background: #f0fbf6;
  border-radius: 14px;
  padding: 12px;
}
.ds-calc-line {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
}
.ds-calc-get {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.ds-calc-get span { font-size: 13px; color: var(--muted); }
.ds-calc-get strong {
  font-size: 26px;
  font-weight: 800;
  color: var(--opay-dark);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ds-calc-month {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #bfe6d3;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  color: var(--text-body);
}
.ds-calc-month strong {
  font-size: 16px;
  color: #b36b00;
  font-variant-numeric: tabular-nums;
}

/* Projection */

.ds-chips {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
}
.ds-chip {
  flex: 1;
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
}
.ds-chip.on { background: var(--opay); color: #fff; }

.ds-case {
  margin: 12px 16px 0;
  background: var(--opay);
  color: #fff;
  border-radius: 18px;
  padding: 16px 14px 14px;
}
.ds-case-title { font-size: 15px; font-weight: 700; }
.ds-case-after { margin-top: 10px; font-size: 12px; opacity: 0.85; }
.ds-case-after.dark { color: var(--muted); opacity: 1; }
.ds-case-amt {
  margin-top: 2px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.ds-lines { margin-top: 12px; }
.ds-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
}
.ds-lines strong { font-variant-numeric: tabular-nums; }
.ds-case-month {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.ds-case-month strong { font-size: 16px; font-variant-numeric: tabular-nums; }

.ds-table-wrap {
  margin: 12px 16px 0;
  background: #fff;
  border-radius: 16px;
  padding: 12px 10px 6px;
}
.ds-table-title {
  font-size: 14px;
  font-weight: 700;
  padding: 0 4px 8px;
}
.ds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.ds-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  padding: 4px;
}
.ds-table td {
  padding: 8px 4px;
  border-top: 1px solid #f2f2f5;
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}
.ds-table th:nth-child(n+2),
.ds-table td:nth-child(n+2) { text-align: right; }
.ds-table td:last-child { font-weight: 700; color: var(--opay-dark); }
.ds-table tr.ex td { background: #f3fbf7; font-weight: 700; }
.ds-ex {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--opay-dark);
  font-weight: 700;
}

/* Forms, rows, results */
.ds-field { padding: 4px 16px 0; }
.ds-field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.ds-field input {
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.ds-field input:focus { outline: 2px solid var(--opay-focus); }

.ds-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #f2f2f5;
  font-size: 13px;
}
.ds-row:first-child { border-top: 0; padding-top: 0; }
.ds-row.sub { padding: 8px 0 8px 12px; font-size: 12px; }
.ds-row .k { color: var(--muted); }
.ds-row .v { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ds-row .v small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 11px;
}

.ds-result {
  padding: 24px 20px 8px;
  text-align: center;
}
.ds-result .mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--opay-light);
  color: var(--opay-dark);
  display: grid;
  place-items: center;
  font-size: 28px;
}
.ds-result h2 { margin: 0; font-size: 18px; }
.ds-result-art { width: 120px; height: auto; display: block; margin: 0 auto 10px; }
.ds-result .big {
  margin-top: 6px;
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ds-result .lead {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-body);
}

.ds-hist {
  margin: 0 16px 8px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.ds-hist .m { font-size: 14px; font-weight: 700; }
.ds-hist .st { font-size: 11px; color: var(--muted); margin-top: 2px; }
.ds-hist .amt { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.ds-hist .mix { font-size: 11px; color: var(--muted); margin-top: 2px; text-align: right; }
