/* Pricing calculator v2, coffee "Steamed Milk" skin. Fork of portal-landing-page/public/calculator.css (v2, approved
   2026-09-27), recoloured per design/coffee-refresh/research/verdict.md §6 "Calculator page". Production copy of
   design/coffee-refresh/mockups/css/calculator.css (approved 2026-09-28). Loaded after coffee.styles.css and uses its
   tokens; it defines no colour tokens of its own (the portal file's --go-ink / --bar overrides are gone, so the coffee
   values apply).
   Coffee moves: crema You-pay card with a rust cap; hatched, dashed customer card with a round NOT YOUR COST stamp;
   foam receipt with dotted leaders; crema TABL chart row with a rust bar; --bar competitor bars on a latte track;
   --typ-ink "more than TABL"; rust step circles; crema active preset.
   calculator.js hooks (keep): [data-preset], [data-orders]/[data-ticket] inputs, [data-gross], [data-orders-display],
   [data-provider-list] > .provider-row[data-provider], [data-fee], [data-loss][data-sign], .provider-row__rate, .provider-bar,
   [data-hero-fee], [data-peek-fee], [data-savings][data-rank], [data-line-*], [data-receipt-total], [data-customer-orders],
   [data-service-fee-range], .cv2-customer-line, [data-calc-status]. */

/* ?embed=1: the calculator alone, on paper, with no site chrome. */
html.calculator-embed .skip-link,
html.calculator-embed .site-header,
html.calculator-embed .closing,
html.calculator-embed .site-footer { display: none !important; }
html.calculator-embed body { background: var(--paper); }

/* The partners section sits on a latte band here (on the landing page it follows the latte digital-menu band). */
html:not(.calculator-embed) .page-calculator .partners { background: var(--sunk); }

:root {
  --hatch: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 4.5%, transparent) 0 1px, transparent 1px 9px);
  /* White tick for the --go badge (white = --on-accent; hex is baked into the URI). */
  --i-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Base (shared with the v2 rules below) ---------- */

.calc-hero h1 .line { display: block; }

.calc-section > .container { display: grid; gap: clamp(40px, 5vw, 64px); }

.calc-inputs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px;
  margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line);
}
.calc-field { display: grid; gap: 8px; }
.calc-field-label { font: 600 0.9375rem/1.2 var(--font-display); color: var(--ink); }
.calc-field-control { position: relative; display: block; }
.calc-field-control input {
  width: 100%; height: 52px; margin: 0; padding: 0 16px;
  background: var(--surface); border: 1.5px solid var(--field-border); border-radius: var(--r-sm);
  font: 600 1.25rem/1 var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.calc-field-control input::-webkit-inner-spin-button, .calc-field-control input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.calc-field-control input:hover { border-color: var(--ink-3); }
.calc-field-control input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.calc-field-control--prefix > span {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font: 600 1.25rem/1 var(--font-mono); color: var(--ink-3); pointer-events: none;
}
.calc-field-control--prefix input { padding-left: 36px; }
.calc-field-hint { font-size: 0.875rem; line-height: 1.4; color: var(--ink-3); }

/* Rank chip: crema with a rust-deep masked check when TABL is lowest (or tied); plain latte when it is not. */
.result-rank {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px;
  border-radius: var(--r-xs); background: var(--crema); box-shadow: inset 0 0 0 1px var(--crema-line);
  font: 700 0.8125rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-hover);
}
.result-rank::before {
  content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat;
}

.provider-list { list-style: none; }
.provider-row + .provider-row { border-top: 1px solid var(--line); }
.provider-main { display: grid; gap: 4px; min-width: 0; }
.provider-name { min-width: 0; font: 600 1.0625rem/1.25 var(--font-display); color: var(--ink); letter-spacing: -0.005em; }
.provider-total {
  order: 2; flex: none; white-space: nowrap;
  font: 600 1.25rem/1 var(--font-mono); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums;
}
.provider-row__rate { font: 0.8125rem/1.4 var(--font-mono); color: var(--ink-3); }
.provider-bar i { display: block; height: 100%; width: 0; border-radius: 0 4px 4px 0; background: var(--bar); transition: width 240ms var(--ease); }
.provider-row--tabl { position: relative; min-height: 88px; }
.provider-row--tabl + .provider-row { border-top-color: transparent; }

.provider-row--unranked { background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 4%, transparent) 0 1px, transparent 1px 9px); }
.provider-row--unranked + .provider-row--unranked { border-top-style: dashed; }
.provider-row:not(.provider-row--unranked) + .provider-row--unranked { border-top: 1.5px dashed var(--line-strong); }
.provider-row--unranked .provider-name { color: var(--ink-2); }

.results-footnote {
  margin-top: 24px; columns: 2 380px; column-gap: 48px;
  font-size: 0.875rem; line-height: 1.6; color: var(--ink-3);
}
@media (max-width: 720px) { .results-footnote { columns: 1; } }

/* Step numbers: rust circles with white numerals. */
.cv2-step {
  display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font: 700 0.875rem/1 var(--font-mono); font-variant-numeric: tabular-nums;
}

/* ---------- Hero + who pays what ---------- */

.cv2-hero { padding-bottom: clamp(48px, 6vw, 80px); }
.cv2-hero-head {
  position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px 24px; align-items: end; /* hero, who-pays and calc rows share one 7:5 grid with a 24px gutter */
}
.cv2-hero h1 { margin: 22px 0 0; }
/* Coffee keeps its full lede (it names every provider), so it gets the whole column and a smaller size. */
.cv2-lead { max-width: 46ch; padding-bottom: 6px; font-size: 1.0625rem; line-height: 1.55; }

.cv2-who { position: relative; margin-top: clamp(36px, 4.5vw, 56px); }
/* Menu-board kicker: "WHO PAYS WHAT ········" (same leader as the landing eyebrows). */
.cv2-kicker {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px;
  font: 600 0.8125rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.cv2-kicker::after { content: ""; flex: 1; min-width: 24px; border-bottom: 2px dotted var(--line-strong); transform: translateY(-3px); }

.cv2-who-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
.cv2-pay { position: relative; display: flex; flex-direction: column; min-width: 0; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-md); }
.cv2-pay-key { font: 600 0.8125rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.cv2-pay-title { margin-top: 12px; font: 650 clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem)/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.cv2-pay-value {
  margin-top: 14px; white-space: nowrap; color: var(--ink);
  font: 680 clamp(3.25rem, 2rem + 4.2vw, 5.5rem)/0.95 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.cv2-pay-note { margin-top: 12px; font: 0.9375rem/1.45 var(--font-mono); color: var(--ink-2); }
/* The tick row anchors to the card foot, level with the customer card's compliance row when the cards stretch. */
.cv2-pay--you .cv2-pay-note { margin-bottom: 26px; }
/* When the card stretches (721-1100, stamp in flow), the spare height splits around the figure instead of one hole. */
.cv2-pay--you .cv2-pay-value { margin-top: auto; padding-top: 14px; } /* padding keeps the 14px gap when there is no spare height */

/* You pay: the merchant's money. Crema (TABL's side) under a 4px rust cap. */
.cv2-pay--you { background: var(--crema); border: 1px solid var(--crema-line); box-shadow: var(--e2), inset 0 4px 0 var(--accent); }
.cv2-pay--you .cv2-pay-key { display: flex; align-items: center; gap: 10px; color: var(--accent-hover); }
.cv2-pay--you .cv2-pay-key::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--glyph) center / contain no-repeat; }
.cv2-pay--you .cv2-pay-plus { font-size: 0.5em; letter-spacing: -0.02em; color: var(--accent); }
.cv2-ticks {
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px;
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--crema-line);
}
.cv2-ticks li { display: flex; align-items: center; gap: 10px; font: 650 1.0625rem/1.3 var(--font-display); color: var(--ink); }
.cv2-ticks li::before { content: ""; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--go) var(--i-tick) center / 14px no-repeat; }
.cv2-ticks b { font-family: var(--font-mono); font-weight: 700; }

/* Your customer pays: somebody else's money, on paper, dashed, hatched, stamped. */
.cv2-pay--customer { background: var(--paper) var(--hatch); border: 2px dashed var(--line-strong); color: var(--ink-2); }
.cv2-pay--customer .cv2-pay-key { color: var(--ink-3); padding-right: 112px; } /* clears the stamp */
.cv2-pay--customer .cv2-pay-value { margin-top: auto; padding-top: 28px; font-size: clamp(2.25rem, 1.5rem + 2vw, 3.25rem); color: var(--ink-2); }
.cv2-pay--customer .cv2-pay-note { color: var(--ink-2); }
.cv2-pay-to { margin: 0 0.15em; font-size: 0.45em; letter-spacing: 0; color: var(--ink-3); }
/* A round double-ring loyalty stamp (Daylight: a rotated rectangle). Absolute top-right on wide cards. */
.cv2-stamp {
  position: absolute; top: 18px; right: 18px; width: 100px; height: 100px; margin: 0; padding: 14px;
  display: grid; place-items: center; text-align: center; border-radius: 50%; transform: rotate(-10deg);
  border: 2px solid var(--go-ink); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4.5px var(--go-ink);
  background: var(--paper); color: var(--go-ink);
  font: 700 0.8125rem/1.15 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
}
/* Why the customer fee exists: a quiet compliance assurance, not a disclaimer. */
.cv2-compliance {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line-strong); font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2);
}
.cv2-compliance strong { font-family: var(--font-display); font-weight: 650; color: var(--ink); }
.cv2-shield { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--go-ink); }

/* ---------- Your numbers + your monthly cost ---------- */

.cv2-calc { padding-bottom: 0; }
.cv2-calc-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.calc-section > .cv2-calc-grid { column-gap: 24px; } /* beats .calc-section > .container's gap */
/* Desktop: the inputs stay in view beside the taller receipt. */
@media (min-width: 961px) { .cv2-inputs { position: sticky; top: 88px; } }

.cv2-card {
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--e2);
}
.cv2-card-head, .cv2-receipt-head { display: flex; align-items: flex-start; gap: 14px; }
.cv2-card-head h2, .cv2-receipt-head h2 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.1; letter-spacing: -0.02em; }
.cv2-card-head p, .cv2-receipt-head p { margin-top: 4px; color: var(--ink-2); }

.cv2-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.cv2-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; min-height: 72px; padding: 14px 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  text-align: left; cursor: pointer;
  transition: background-color 120ms var(--ease), border-color 120ms var(--ease);
}
.cv2-chip:hover { border-color: var(--field-border); background: var(--paper); }
/* Active preset: TABL's crema, a 1.5px rust edge and the four-square glyph. */
.cv2-chip.is-active { background: var(--crema); border-color: var(--accent); box-shadow: var(--e1); }
.cv2-chip-label { display: flex; align-items: center; gap: 8px; font: 600 1rem/1.2 var(--font-display); }
.cv2-chip-meta { font: 0.8125rem/1.35 var(--font-mono); color: var(--ink-3); }
.cv2-chip.is-active .cv2-chip-label { color: var(--ink); }
.cv2-chip.is-active .cv2-chip-label::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--glyph) center / contain no-repeat; }
.cv2-chip.is-active .cv2-chip-meta { color: var(--ink-2); }

/* Stacked layouts: the bill is far below, so the total shows right under the presets. */
.cv2-peek { display: none; }
@media (max-width: 960px) {
  .cv2-peek {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px;
    min-height: 56px; margin-top: 16px; padding: 12px 16px; border-radius: var(--r-sm);
    background: var(--crema); box-shadow: inset 0 0 0 1px var(--crema-line); color: var(--ink); text-decoration: none;
    font: 600 1rem/1.3 var(--font-display);
  }
  .cv2-peek b { font: 600 1.375rem/1 var(--font-mono); letter-spacing: -0.02em; color: var(--accent-hover); font-variant-numeric: tabular-nums; }
  .cv2-peek-unit { font: 500 0.875rem/1 var(--font-mono); color: var(--ink-3); }
  .cv2-peek-go { font-size: 0.9375rem; color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
  .cv2-peek-go::after { content: " \2193"; content: " \2193" / ""; }
  .cv2-peek:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
}

.cv2-fields { margin-top: 24px; padding-top: 24px; gap: 20px; }
/* The inputs are the most-used controls: give them the same 3px rust ring as the rest of the page. */
.cv2-fields .calc-field-control input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cv2-fields .calc-field-label { font-size: 1rem; }
.cv2-fields .calc-field-control input { height: 56px; padding: 0 18px; border-radius: var(--r-sm); font-size: 1.5rem; }
.cv2-fields .calc-field-control--prefix > span { left: 18px; font-size: 1.5rem; }
.cv2-fields .calc-field-control--prefix input { padding-left: 42px; }

/* The receipt: a foam slip with a torn zigzag foot; the drop shadow follows the teeth. */
.cv2-receipt-wrap {
  filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--ink) 8%, transparent)) drop-shadow(0 18px 28px color-mix(in srgb, var(--ink) 16%, transparent));
}
.cv2-receipt {
  --z: 9px; --pad: clamp(24px, 3vw, 36px);
  padding: var(--pad) var(--pad) calc(var(--pad) + var(--z));
  background: var(--surface); border-radius: var(--r-md) var(--r-md) 0 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
}
.cv2-receipt-meta {
  display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 18px 0 0; padding-bottom: 18px; border-bottom: 1.5px dashed var(--line-strong);
  font: 0.875rem/1.3 var(--font-mono); color: var(--ink-3);
}
.cv2-receipt-meta > div { display: flex; gap: 8px; }
.cv2-receipt-meta dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.cv2-bill { display: grid; gap: 8px; margin-top: 22px; }
.cv2-bill-key { font: 600 1.125rem/1.2 var(--font-display); color: var(--ink); }
.cv2-bill-fee {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  font: 600 clamp(2.75rem, 1.7rem + 3.2vw, 4.5rem)/0.95 var(--font-mono); letter-spacing: -0.05em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cv2-bill-fee [data-hero-fee] { min-width: 0; overflow-wrap: anywhere; }
.cv2-bill-unit { font: 500 1.0625rem/1 var(--font-mono); letter-spacing: 0; color: var(--ink-3); }

.cv2-lines { margin: 22px 0 0; }
.cv2-lines > div { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; }
.cv2-lines > div::after { content: ""; order: 1; flex: 1 1 16px; min-width: 16px; border-bottom: 2px dotted var(--line-strong); }
.cv2-lines dt { order: 0; min-width: 0; font: 600 1rem/1.3 var(--font-display); color: var(--ink); }
.cv2-lines dt span { display: block; margin-top: 3px; font: 400 0.8125rem/1.35 var(--font-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cv2-lines dd { order: 2; margin: 0; font: 600 1.125rem/1 var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Total under a double rule, like a printed bill. */
.cv2-lines .cv2-lines-total { margin-top: 6px; padding-top: 14px; border-top: 3px double var(--ink); }
.cv2-lines-total::after { visibility: hidden; }
.cv2-lines-total dt { font-size: 1.125rem; font-weight: 700; }
.cv2-lines-total dd { font-size: 1.5rem; letter-spacing: -0.02em; }

/* The customer's fee: visibly outside the bill (hatched, dashed, muted, stamped). */
.cv2-customer-line {
  margin-top: 22px; padding: 14px 16px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-sm); background: var(--paper) var(--hatch);
  font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2);
}
.cv2-customer-line b { font: 600 0.9375rem/1 var(--font-mono); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cv2-customer-tag {
  display: inline-block; margin: 0 6px 0 0; padding: 3px 7px 2px; vertical-align: 1px;
  border: 1.5px solid currentColor; border-radius: var(--r-xs); color: var(--go-ink);
  font: 700 0.75rem/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}

.cv2-rank {
  display: grid; justify-items: start; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 1rem; line-height: 1.5; color: var(--ink-2);
}
.cv2-rank b { font-weight: 700; color: var(--ink); }
.cv2-rank a { font-weight: 600; color: var(--accent-hover); text-underline-offset: 3px; white-space: nowrap; }
.cv2-rank:not([data-rank="1"]) .result-rank { background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); }
.cv2-rank:not([data-rank="1"]) .result-rank::before { display: none; }

/* ---------- The same month on other POS systems: zero-based bars ---------- */

.cv2-compare { padding-block: clamp(56px, 7vw, 96px) var(--section-pad); }
.cv2-compare-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.cv2-compare-head h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); line-height: 1.08; letter-spacing: -0.025em; }
.cv2-compare-head p { font: 0.875rem/1.4 var(--font-mono); color: var(--ink-3); }

.cv2-chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--e1); overflow: hidden; }
.cv2-chart .provider-row {
  display: grid; grid-template-columns: minmax(0, 23rem) minmax(0, 1fr) 7rem 12.5rem; grid-template-areas: "main bar total delta";
  column-gap: 24px; row-gap: 10px; align-items: center; min-height: 0; padding: 16px 28px;
}
.cv2-chart .provider-main { grid-area: main; gap: 3px; }
.cv2-chart .provider-name { font: 600 1rem/1.25 var(--font-display); }
.cv2-chart .provider-row__rate { font-size: 0.8125rem; }
.cv2-chart .provider-bar {
  grid-area: bar; display: flex; align-items: center; gap: 10px; height: 14px; margin: 0;
  background: var(--sunk); border-radius: 7px; overflow: visible;
}
.cv2-chart .provider-bar i { flex: none; height: 100%; border-radius: 7px; background: var(--bar); }
.cv2-chart .provider-bar em { font: 700 0.75rem/1 var(--font-mono); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-hover); }
.cv2-chart .provider-total { grid-area: total; justify-self: end; font: 600 1.125rem/1 var(--font-mono); letter-spacing: -0.02em; color: var(--ink); }
.cv2-chart .provider-delta { grid-area: delta; display: block; padding: 0; font: 0.8125rem/1.35 var(--font-mono); color: var(--ink-3); }
.cv2-chart .provider-delta b { font-weight: 700; color: var(--ink); }
.cv2-chart [data-sign="more"] b { color: var(--typ-ink); }
.cv2-nowrap { white-space: nowrap; }

/* TABL's row: crema with a 5px rust inset, a rust bar on a foam track. */
.cv2-chart .provider-row--tabl { background: var(--crema); box-shadow: inset 5px 0 0 var(--accent); }
.cv2-chart .provider-row--tabl .provider-name { font-size: 1.0625rem; }
.cv2-chart .provider-row--tabl .provider-row__rate { color: var(--ink-2); }
.cv2-chart .provider-row--tabl .provider-bar { background: var(--surface); }
.cv2-chart .provider-row--tabl .provider-bar i { background: var(--accent); }
.cv2-chart .provider-row--tabl .provider-total { font-size: 1.375rem; color: var(--accent-hover); }
.cv2-chart .provider-row--tabl .provider-delta { font-weight: 700; color: var(--accent-hover); }

.cv2-chart .provider-row--unranked .provider-total { font-size: 0.9375rem; font-weight: 500; color: var(--ink-3); }

/* ---------- How we calculated this ---------- */

.cv2-method { margin-top: 24px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.cv2-method summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 6px 0; cursor: pointer; list-style: none;
  font: 600 1.0625rem/1.3 var(--font-display); color: var(--ink);
}
.cv2-method summary::-webkit-details-marker { display: none; }
/* Same toggle as the landing FAQ: 28px round, field-border edge, rust +/-; crema when open. */
.cv2-method summary::after {
  content: "+"; content: "+" / ""; flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: var(--r-pill); border: 1.5px solid var(--field-border); font: 600 1.125rem/1 var(--font-mono); color: var(--accent);
}
.cv2-method summary:hover::after { border-color: var(--ink); }
.cv2-method[open] summary::after { content: "\2212"; content: "\2212" / ""; background: var(--crema); border-color: var(--crema-line); color: var(--accent-hover); }
.cv2-method-body { padding: 4px 0 24px; }
.cv2-formula { max-width: 72ch; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }

/* ---------- Partners (calculator page only) ---------- */

/* Menu-board eyebrow without a section number: this page has no numbered sections. */
.page-calculator .partners .eyebrow { align-items: baseline; max-width: 360px; font-weight: 600; }
.page-calculator .partners .eyebrow::after { content: ""; flex: 1; min-width: 24px; border-bottom: 2px dotted var(--line-strong); transform: translateY(-3px); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .cv2-chart .provider-row { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr) 6.5rem 12rem; column-gap: 20px; padding-inline: 24px; }
  /* Narrow cards: the stamp joins the flow so it never covers the key or the fee range. */
  .cv2-stamp { position: static; align-self: flex-start; width: 88px; height: 88px; margin-top: 16px; padding: 10px; transform: rotate(-8deg); }
  .cv2-pay--customer .cv2-pay-key { padding-right: 0; }
  .cv2-pay--customer .cv2-pay-value { padding-top: 16px; }
}

@media (max-width: 960px) {
  .cv2-hero-head { grid-template-columns: minmax(0, 1fr); }
  .cv2-lead { max-width: 60ch; padding-bottom: 0; }
  .cv2-calc-grid { grid-template-columns: minmax(0, 1fr); }
  /* Tablet: the bar gets the whole left column, the amount and the difference stack on the right. */
  .cv2-chart .provider-row {
    grid-template-columns: minmax(0, 1fr) 12.5rem; grid-template-areas: "main total" "bar delta";
    column-gap: 24px; row-gap: 10px; padding: 16px 24px;
  }
  .cv2-chart .provider-delta { justify-self: end; text-align: right; }
}

@media (max-width: 720px) {
  .cv2-hero h1 .line { display: inline; }
  /* Coffee keeps the lede on phones (it is the only place that names every compared provider up front). */
  .cv2-lead { font-size: 1rem; }
  .cv2-who-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cv2-pay { padding: 24px 20px; }
  .cv2-pay-value { font-size: clamp(2.75rem, 1.5rem + 7vw, 3.5rem); }
  .cv2-pay--customer .cv2-pay-value { font-size: 2.25rem; }
  .cv2-pay--you .cv2-pay-note { margin-bottom: 22px; }
  .cv2-ticks { padding-top: 18px; }

  .cv2-card { padding: 20px; }
  .cv2-presets { gap: 8px; }
  .cv2-chip { min-height: 68px; padding: 12px 14px; }
  .cv2-fields { grid-template-columns: minmax(0, 1fr); }
  .cv2-receipt { --pad: 20px; }
  .cv2-lines-total dd { font-size: 1.375rem; }

  /* Phone: name and amount on one line, the bar full width, the difference under it. */
  .cv2-chart .provider-row {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main total" "bar bar" "delta delta";
    column-gap: 12px; row-gap: 10px; align-items: start; padding: 16px;
  }
  .cv2-chart .provider-total { padding-top: 1px; }
  .cv2-chart .provider-delta { justify-self: start; text-align: left; }
  .cv2-chart .provider-row--tabl .provider-total { font-size: 1.25rem; }
  .cv2-compare-head { margin-bottom: 16px; }
}

/* Small phones: presets as one list, label left and numbers right (the numbers drop under the label if they must). */
@media (max-width: 480px) {
  .cv2-presets { grid-template-columns: minmax(0, 1fr); }
  .cv2-chip { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; min-height: 56px; }
  .cv2-chart .provider-row--unranked { grid-template-areas: "main main" "total total" "delta delta"; }
  .cv2-chart .provider-row--unranked .provider-total { justify-self: start; }
}
@media (max-width: 400px) {
  .cv2-card { padding: 20px 16px; }
}

/* Windows High Contrast: keep the bars, the TABL row and the selected preset visible. */
@media (forced-colors: active) {
  .cv2-chart .provider-bar { border: 1px solid CanvasText; }
  .cv2-chart .provider-bar i { forced-color-adjust: none; background: CanvasText; }
  .cv2-chart .provider-row--tabl .provider-bar i { background: Highlight; }
  .cv2-chart .provider-row--tabl { outline: 2px solid Highlight; outline-offset: -2px; }
  .cv2-chip.is-active { outline: 3px solid Highlight; outline-offset: -3px; }
}
