/* Potwise — this build's sections, composed from the Brivo DNA (tokens only, no new radii or shadows). */

/* Hero B: the set-aside switch changes the amounts row as well as the detail pane */
.vh-b__amt[data-way] { display: none; }
.vh-b__rating b { font-variant-numeric: tabular-nums; }
.vh-b__amt b, .vh-b__pane dd { font-variant-numeric: tabular-nums; }

/* ── January bill: field cell (left) | hairline date rows (right) ── */
.pw-split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pw-split__field { background: var(--field); border-right: 1px solid var(--line); display: grid; place-items: center; padding: 64px 48px; min-height: 480px; }
.pw-bill { width: min(420px, 100%); }
.pw-bill .mk-head__t b { font-size: 16px; font-weight: 500; }
.pw-bill .mk-head__t small { font-size: 13px; color: var(--muted); }
.pw-bill .mk-li__t b { font-size: 15px; font-weight: 500; }
.pw-bill .mk-li__t small { font-size: 13px; color: var(--muted); }
.pw-bill .mk-li__v, .pw-bill .mk-inv__total b { font-variant-numeric: tabular-nums; }
.pw-bill__ok { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); font-size: 15px; font-weight: 500; }
.pw-dates { display: flex; flex-direction: column; }
.pw-date { display: grid; grid-template-columns: 112px 1fr auto; align-items: start; gap: 24px; padding: 28px var(--inset); border-top: 1px solid var(--line); flex: 1; }
.pw-date:first-child { border-top: 0; }
.pw-date.is-key { background: var(--surface); }
.pw-date__d { font-size: 15px; font-weight: 500; line-height: 1.75; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pw-date__t { display: block; font: 500 20px/1.4 var(--font-display); letter-spacing: -.5px; }
.pw-date__p { display: block; margin-top: 6px; max-width: 40ch; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.pw-date__v { font-size: 16px; font-weight: 500; line-height: 1.75; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pw-date .tag { margin-top: 4px; }

/* ── What is yours (charcoal): bank view → the move → Potwise view ── */
.pw-yours__row { display: grid; grid-template-columns: 1fr 200px 1fr; border-top: 1px solid var(--line-dark); }
.pw-yours__side { padding: 40px var(--inset) 44px; display: grid; gap: 18px; align-content: start; }
.pw-yours__mid { border-inline: 1px solid var(--line-dark); display: grid; place-content: center; justify-items: center; gap: 10px; padding: 40px 20px; text-align: center; }
.pw-move { width: 48px; height: 48px; border-radius: var(--r); background: var(--field); color: var(--text); display: grid; place-items: center; }
.pw-move svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pw-move__v { font: 500 24px/1.2 var(--font-display); letter-spacing: -.6px; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.pw-move__l { font-size: 14px; color: var(--on-dark-2); max-width: 14ch; }
.pw-bal { display: grid; gap: 2px; padding: 14px 14px 16px; border-radius: var(--r); background: var(--deep-3); }
.pw-bal small { font-size: 13px; color: var(--on-dark-2); }
.pw-bal b { font: 500 32px/1.15 var(--font-display); letter-spacing: -1.2px; font-variant-numeric: tabular-nums; }
.pw-bal--yours { box-shadow: inset 0 0 0 1px var(--grad-bot); }
.mk-ledger__row b { font-size: 15px; font-weight: 500; }
.mk-ledger__row small { display: block; font-size: 13px; color: var(--on-dark-2); }
.mk-ledger__v { font-variant-numeric: tabular-nums; }
.mk-ledger__row.is-locked { opacity: .55; }
.mk-ledger .up { color: var(--success); }

/* ── Your rate: three profit cells, the middle one on the field ── */
.pw-rate__cells > li { padding-block: 40px 36px; gap: 4px; }
.pw-rate__cells > li.is-key { background: var(--field); }
.pw-rate__k { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--text); margin-bottom: 18px; }
.pw-rate__c { font-size: 14px; color: var(--text-2); }
.is-key .pw-rate__c { color: var(--text); }
.pw-rate__dl { display: grid; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.pw-rate__dl div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.pw-rate__dl dt { color: var(--text-2); }
.is-key .pw-rate__dl dt { color: var(--text); }
.pw-rate__dl dd { font-weight: 500; font-variant-numeric: tabular-nums; }
.pw-rate__dl .is-sum { padding-top: 10px; border-top: 1px solid var(--line); }
.pw-note { display: flex; align-items: center; gap: 12px; padding: 24px var(--inset); border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.pw-note svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── Last year: wide field cell with the bars card | three stacked stat cells ── */
.pw-year__grid { display: grid; grid-template-columns: 2fr 1fr; border-top: 1px solid var(--line); }
.pw-year__field { background: var(--field); display: grid; place-items: center; padding: 64px 56px; border-right: 1px solid var(--line); }
.pw-chart { width: min(600px, 100%); }
.pw-chart .mk-total { font-variant-numeric: tabular-nums; }
.pw-bars { --mk-bh: 168px; }
.pw-bars i { cursor: default; transition: background-color .25s var(--ease), opacity .25s var(--ease); }
.pw-bars i.on { background: var(--accent); }
.pw-chart__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.pw-year__stats { display: grid; grid-template-rows: repeat(3, 1fr); }
.pw-year__stats li { display: grid; align-content: center; gap: 6px; padding: 32px var(--inset); border-top: 1px solid var(--line); }
.pw-year__stats li:first-child { border-top: 0; }
.pw-year__stats span { font-size: 15px; color: var(--text-2); max-width: 30ch; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .pw-yours__row { grid-template-columns: 1fr 160px 1fr; }
  .pw-year__grid { grid-template-columns: 1fr; }
  .pw-year__field { border-right: 0; border-bottom: 1px solid var(--line); }
  .pw-year__stats { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .pw-year__stats li { border-top: 0; border-left: 1px solid var(--line); }
  .pw-year__stats li:first-child { border-left: 0; }
}
@media (max-width: 900px) {
  .pw-split { grid-template-columns: 1fr; }
  .pw-split__field { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; padding: 48px 24px; }
  .pw-yours__row { grid-template-columns: 1fr; }
  .pw-yours__mid { border-inline: 0; border-block: 1px solid var(--line-dark); grid-auto-flow: column; place-content: center start; justify-items: start; align-items: center; gap: 14px; padding: 20px var(--inset); text-align: left; }
  .pw-move { width: 40px; height: 40px; transform: rotate(90deg); }
  .pw-move__l { max-width: none; }
  .pw-rate__cells { grid-template-columns: 1fr; }
  .pw-rate__cells > li { border-left: 0; border-top: 1px solid var(--line); }
  .pw-rate__cells > li:first-child { border-top: 0; }
  .pw-year__field { padding: 40px 20px; }
}
@media (max-width: 560px) {
  .pw-date { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 22px var(--inset); }
  .pw-date__d { grid-column: 1 / -1; line-height: 1.4; }
  .pw-yours__mid { grid-auto-flow: row; grid-template-columns: auto 1fr; gap: 2px 14px; }
  .pw-yours__mid .pw-move { grid-row: span 2; }
  .pw-year__stats { grid-template-columns: 1fr; }
  .pw-year__stats li { border-left: 0; border-top: 1px solid var(--line); padding: 24px var(--inset); }
  .pw-year__stats li:first-child { border-top: 0; }
  .pw-bars { --mk-bh: 120px; gap: 5px; }
  .pw-chart__foot { flex-direction: column; align-items: flex-start; }
  .pw-bal b { font-size: 28px; }
}

/* fixes after the first render */
.mk-dark__v { white-space: nowrap; }
.v-ctac__vis .mk-card__num { left: auto; right: 20px; }
@media (max-width: 560px) {
  .vh-b__strip .frame { height: auto; padding: 10px 16px; flex-wrap: wrap; gap: 4px 10px; text-align: center; font-size: 13px; }
  .pw-date { grid-template-columns: 1fr; }
  .pw-date__v, .pw-date .tag { justify-self: start; }
  .pw-bill .mk-head__t small { display: none; }
  .pw-bill .mk-li__t b { white-space: normal; }
}
.pw-dates { margin: 0; padding: 0; list-style: none; }
@media (max-width: 560px) {
  .pw-bill .coin { display: none; }
}

/* Data colours: the bars split income tax and National Insurance; the pot card */
.pw-bars i { background: linear-gradient(to top, color-mix(in srgb, var(--accent) 45%, var(--bg)) 0 77%, color-mix(in srgb, var(--info) 40%, var(--bg)) 77% 100%); }
.pw-bars i.on { background: linear-gradient(to top, var(--accent) 0 77%, var(--info) 77% 100%); }
.pw-chart__key { display: flex; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--text-2); }
.pw-chart__key span { display: inline-flex; align-items: center; gap: 6px; }
.pw-k { width: 10px; height: 10px; border-radius: 3px; }
.pw-k--tax { background: var(--accent); }
.pw-k--ni { background: var(--info); }
.pw-potcard__pill { position: absolute; right: 20px; top: 18px; }
.pw-potcard .mk-card__num { display: inline-flex; align-items: center; gap: 10px; right: 20px; letter-spacing: 0; font-size: 14px; }
.pw-potcard .coin { width: 28px; height: 28px; font-size: 13px; }
.v-ctac__vis .pw-potcard .mk-card__num { left: 20px; right: auto; }
.pw-coin-ni { background: var(--info); color: #fff; }
.pw-potcard__bar { position: absolute; left: 76px; right: 20px; top: 89px; height: 8px; border-radius: 99px; background: var(--deep-3); overflow: hidden; }
.pw-potcard__bar i { display: block; width: 18%; height: 100%; border-radius: inherit; background: var(--info); }
.pw-potcard__pill { background: var(--success); color: #fff; }
.pw-chart .mk-chart { padding: 18px 16px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }

/* check fixes */
.pw-date { grid-template-columns: 150px 1fr auto; }
.mk-ledger__row.is-locked { opacity: 1; }
.mk-ledger__row.is-locked b, .mk-ledger__row.is-locked .mk-ledger__v { color: var(--on-dark-2); }
.mk-ledger__row.is-locked small { color: var(--on-dark-2); }
.pw-potcard__pill { background: var(--success-ink); }
.pw-display { font: 500 72px/1 var(--font-display); letter-spacing: -2.4px; font-variant-numeric: tabular-nums; }
.pw-year__big { gap: 12px; }
@media (max-width: 900px) { .pw-display { font-size: 56px; letter-spacing: -1.8px; } }
.pw-yours__row { grid-template-columns: 1fr 1fr; }
.pw-yours__row > .pw-yours__side + .pw-yours__side { border-left: 1px solid var(--line-dark); }
.pw-yours__sum { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 40px; padding: 44px var(--inset) 52px; border-top: 1px solid var(--line-dark); }
.pw-yours__sum .pw-display { color: var(--on-dark); }
.dark .pw-yours__cap { max-width: 44ch; font-size: 18px; line-height: 1.56; color: var(--on-dark-2); }
@media (max-width: 900px) {
  .pw-yours__row > .pw-yours__side + .pw-yours__side { border-left: 0; border-top: 1px solid var(--line-dark); }
  .pw-yours__sum { grid-template-columns: 1fr; gap: 12px; padding: 32px var(--inset) 40px; }
}
@media (max-width: 900px) { .pw-yours__row { grid-template-columns: 1fr; } }

/* Hero B (new): the screen is cropped by the hero's bottom edge; the + strip after it sits on white */
.vh-b__stage { height: auto; align-items: flex-end; }
.mk.vh-b__app { padding-bottom: 26px; }
@media (max-width: 900px) { .vh-b__stage { height: auto; } }
.vh-b .strip { background: var(--bg); }
.vh-b__head .mnav { border-top: 1px solid var(--line); }
@media (max-width: 560px) {
  .vh-b__stage { flex-direction: column; align-items: stretch; }
  .vh-b__toast { position: relative; left: auto; right: auto; bottom: auto; top: auto; margin: -18px 12px 20px; }
}

/* CTA tax pot card: real content, no skeleton */
.v-ctac__vis .pw-potcard { height: auto; display: grid; gap: 12px; padding: 18px 20px 22px; }
.pw-potcard__hd { display: flex; align-items: center; gap: 12px; }
.pw-potcard__hd .coin { width: 32px; height: 32px; }
.pw-potcard__t { display: grid; flex: 1; }
.pw-potcard__t b { font-size: 15px; font-weight: 500; }
.pw-potcard__t small { font-size: 13px; color: var(--on-dark-2); }
.pw-potcard__big { font: 500 32px/1.1 var(--font-display); letter-spacing: -1.2px; font-variant-numeric: tabular-nums; }
.pw-potcard__prog { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.pw-potcard__prog b { color: var(--on-dark); font-weight: 500; }
.v-ctac__vis .pw-potcard__bar { position: static; display: block; height: 8px; border-radius: 99px; background: var(--deep-3); overflow: hidden; }
.v-ctac__vis .pw-potcard__bar i { display: block; width: 8%; height: 100%; border-radius: inherit; background: var(--grad-bot); }
.pw-potcard .mk-pill--ok { background: var(--success-ink); color: #fff; }
.v-ctac__vis { padding-bottom: 84px; }
@media (max-width: 900px) { .v-ctac__vis { padding-bottom: 0; } }

/* long single-line notes wrap into 2 lines (typecheck line-too-long) */
.pw-note { max-width: 38em; text-wrap: balance; }

/* bigger product card in the hero (Farhan 2026-10-21); the toast keeps the same overlap on the card's right edge */
@media (min-width: 1101px) {
  .mk.vh-b__app { width: min(760px, 100%); padding: 28px 32px 32px; gap: 18px; font-size: 17px; }
  .vh-b__app-hd b { font-size: 21px; }
  .vh-b__amt b { font-size: 34px; }
  .vh-b__toast { left: calc(50% + 316px); top: 236px; }
}
