/* 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],
   .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; }


.results-footnote { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); }

/* 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 ---------- */

.page-calculator { --section-pad: clamp(40px, 4vw, 56px); }

.cv2-hero { padding-block: clamp(24px, 3vw, 40px) 32px; }
.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; }
/* Keep the calculator introduction readable beside the heading. */
.cv2-lead { max-width: 46ch; padding-bottom: 6px; font-size: 1.0625rem; line-height: 1.55; }

.cv2-who { position: relative; margin-top: 32px; }
/* 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(20px, 2.4vw, 28px); 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); }

/* 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: 16px; padding-top: 16px; 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: 72px; } /* clears the stamp */
.cv2-pay--customer .cv2-pay-value { margin: 0; padding: 0; font-size: clamp(2.125rem, 1.5rem + 2vw, 2.5rem); color: var(--ink-2); }
.cv2-pay--customer .cv2-pay-note { color: var(--ink-2); }
.cv2-pay-tiers { display: grid; gap: 10px; margin-top: 0; padding-top: 36px; }
.cv2-pay-tiers > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; }
.cv2-pay-tiers dt { font: 0.9375rem/1.4 var(--font-mono); color: var(--ink-2); }
/* Compact badge keeps the customer fee tiers close to their heading. */
.cv2-stamp {
  position: absolute; top: 8px; right: 12px; width: 56px; height: 56px; margin: 0; padding: 6px;
  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.6875rem/1.15 var(--font-mono); letter-spacing: 0.05em; 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: 14px; padding-top: 12px;
  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-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.calc-section > .cv2-calc-grid { gap: 24px; } /* beats .calc-section > .container's gap */
.cv2-calc-grid > .cv2-calc-head { grid-column: 1 / -1; margin-bottom: 0; }
/* Match the two cards when they sit side by side. */
@media (min-width: 961px) {
  .cv2-calc-grid { align-items: stretch; }
  .cv2-receipt { height: 100%; }
}

.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 h3, .cv2-receipt-head h3 { 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); 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; }

/* ---------- Live POS cost comparison ---------- */

.cv2-compare { padding-block: 32px; }
.cv2-calc { padding-block: 32px 56px; }
.cv2-compare-head { display: grid; gap: 10px; margin-bottom: 12px; }
.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 { margin-top: 6px; font: 0.875rem/1.4 var(--font-mono); color: var(--ink-3); }
.cv2-adjust-link { display: none; }
.cv2-compare-scenario { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.16em; }

.cv2-chart { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--e2); 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 24px;
}
.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: 750 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"] { padding: 5px 8px; border-radius: var(--r-xs); background: color-mix(in srgb, var(--typ-ink) 7%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--typ-ink) 18%, transparent); color: var(--typ-ink); font-weight: 600; }
.cv2-chart [data-sign="more"] b { color: inherit; font-size: 0.9375rem; font-weight: 750; }
.cv2-nowrap { white-space: nowrap; }

/* TABL's row: crema with a 6px rust inset, a rust bar on a foam track. */
.cv2-chart .provider-row--tabl { background: var(--crema); box-shadow: inset 6px 0 0 var(--accent), inset 0 0 0 1px var(--crema-line); }
.cv2-chart .provider-row--tabl .provider-name { font-size: 1.375rem; font-weight: 750; letter-spacing: -0.025em; }
.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; font-weight: 750; color: var(--accent-hover); }
.cv2-chart .provider-row--tabl .provider-delta { font-weight: 700; color: var(--accent-hover); }


/* ---------- 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[open] { padding-inline: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--e1); }
.cv2-method[open] summary { min-height: 64px; border-bottom: 1px solid var(--line); }
.cv2-method-body { padding-block: 24px; }
.cv2-method h3 { margin-bottom: 12px; font: 650 1.125rem/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.cv2-method strong { color: var(--ink); font-weight: 700; }
.cv2-method-overview { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.cv2-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.cv2-method-grid p + p { margin-top: 12px; }
.cv2-method-list { list-style: none; margin-top: 16px; }
.cv2-method-list li + li { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.cv2-method-list + p { margin-top: 16px; }
.cv2-method-sources { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.cv2-method-source-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font: 600 0.9375rem/1.4 var(--font-display); }
@media (max-width: 720px) { .cv2-method-grid { grid-template-columns: minmax(0, 1fr); gap: 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; }
}

@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: 8px; padding: 16px 20px;
  }
  .cv2-chart .provider-delta { justify-self: end; text-align: right; }
}

@media (max-width: 720px) {
  .page-calculator { --gutter: clamp(16px, 4vw, 24px); }
  .cv2-hero { padding-block: 24px 32px; }
  .cv2-hero h1 { margin-top: 16px; font-size: clamp(2.125rem, 9.5vw, 2.75rem); line-height: 1.06; }
  .cv2-hero h1 .line { display: inline; }
  /* Keep the calculator introduction visible on phones. */
  .cv2-lead { font-size: 1rem; }
  .cv2-who-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cv2-pay { padding: 20px; }
  .cv2-pay--you .cv2-pay-key { font: 650 1.25rem/1.2 var(--font-display); letter-spacing: -0.015em; text-transform: none; }
  .cv2-pay-title { margin-top: 8px; font-size: 1.0625rem; }
  .cv2-pay--you .cv2-pay-note { font: 400 0.9375rem/1.5 var(--font-body); }
  .cv2-pay-value { font-size: clamp(2.75rem, 1.5rem + 7vw, 3.5rem); }
  .cv2-pay--customer {
    display: grid; grid-template-columns: minmax(0, 1fr) 56px; column-gap: 16px;
    background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--e1);
  }
  .cv2-pay--customer .cv2-pay-key {
    align-self: center; padding-right: 0; color: var(--ink);
    font: 650 1.25rem/1.2 var(--font-display); letter-spacing: -0.015em; text-transform: none;
  }
  .cv2-pay--customer .cv2-stamp { position: static; grid-column: 2; grid-row: 1; }
  .cv2-pay-tiers { grid-column: 1 / -1; gap: 0; margin-top: 16px; padding-top: 0; }
  .cv2-pay-tiers > div { padding-block: 12px; }
  .cv2-pay-tiers > div:first-child { padding-top: 0; }
  .cv2-pay-tiers > div:last-child { padding-bottom: 0; }
  .cv2-pay-tiers > div + div { border-top: 1px solid var(--line); }
  .cv2-pay-tiers dt { font: 400 1rem/1.4 var(--font-body); }
  .cv2-pay--customer .cv2-pay-value { font-size: 2.25rem; color: var(--ink); }
  .cv2-pay--customer .cv2-pay-note {
    grid-column: 1 / -1; margin-top: 16px; font: 400 1rem/1.5 var(--font-body);
  }
  .cv2-pay--customer .cv2-compliance { grid-column: 1 / -1; }

  .cv2-card { padding: 20px; }
  .cv2-card-head, .cv2-receipt-head { gap: 12px; }
  .cv2-card-head h3, .cv2-receipt-head h3 { font-size: 1.25rem; line-height: 1.2; }
  .cv2-card-head p, .cv2-receipt-head p { font-size: 0.9375rem; line-height: 1.5; }
  .cv2-presets { gap: 10px; margin-top: 24px; }
  .cv2-chip { min-height: 100px; padding: 12px; justify-content: space-between; }
  .cv2-chip-label { align-items: flex-start; font-size: 0.9375rem; line-height: 1.25; }
  .cv2-chip.is-active .cv2-chip-label::before { margin-top: 3px; }
  .cv2-chip-meta { font: 400 0.8125rem/1.4 var(--font-body); }
  .cv2-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; padding-top: 20px; }
  .cv2-fields .calc-field-label { min-height: 2.5em; font-size: 0.9375rem; line-height: 1.25; }
  .cv2-fields .calc-field-control input { padding-inline: 14px; }
  .cv2-fields .calc-field-control--prefix > span { left: 14px; }
  .cv2-fields .calc-field-control--prefix input { padding-left: 36px; }
  .cv2-fields .calc-field-hint { font-size: 0.8125rem; line-height: 1.4; }
  .cv2-peek { margin-top: 20px; gap: 8px; }
  .cv2-peek-unit { font: 400 0.875rem/1.2 var(--font-body); }
  .cv2-peek-go { min-height: 28px; display: inline-flex; align-items: center; }
  .cv2-receipt-wrap { filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--ink) 12%, transparent)); }
  .cv2-receipt { --pad: 20px; }
  .cv2-receipt-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; font-family: var(--font-body); }
  .cv2-receipt-meta > div { display: grid; gap: 4px; }
  .cv2-receipt-meta dd { font: 650 1.0625rem/1.25 var(--font-display); overflow-wrap: anywhere; }
  .cv2-bill-fee { font-family: var(--font-display); font-weight: 680; letter-spacing: -0.035em; }
  .cv2-bill-unit { font: 400 1rem/1.2 var(--font-body); }
  .cv2-lines dt span { font-family: var(--font-body); line-height: 1.4; }
  .cv2-lines-total dd { font-size: 1.375rem; }
  .cv2-customer-line { padding: 16px; background: color-mix(in srgb, var(--go-ink) 5%, var(--surface)); border: 1px solid var(--line); font-size: 1rem; line-height: 1.5; }
  .cv2-customer-line b { font: 700 1rem/1.5 var(--font-body); }
  .cv2-customer-tag { display: table; margin-bottom: 8px; }
  .cv2-rank .result-rank { max-width: 100%; padding-block: 8px; font: 650 0.9375rem/1.3 var(--font-display); letter-spacing: 0; text-transform: none; }

  /* Phone: price and difference stay together beside the provider; a quiet bar shows scale. */
  .cv2-chart .provider-row {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main total" "main delta" "bar bar";
    column-gap: 14px; row-gap: 10px; align-items: start; padding: 18px 16px;
  }
  .cv2-chart .provider-main { gap: 6px; }
  .cv2-chart .provider-name, .cv2-chart .provider-row__rate { overflow-wrap: anywhere; }
  .cv2-chart .provider-row__rate { font: 400 0.8125rem/1.4 var(--font-body); }
  .cv2-chart .provider-total { padding-top: 1px; font-size: 1.25rem; }
  .cv2-chart .provider-delta { max-width: 8.5rem; justify-self: end; text-align: right; font: 400 0.8125rem/1.35 var(--font-body); }
  .cv2-chart .provider-bar { height: 5px; }
  .cv2-chart .provider-bar em { display: none; }
  .cv2-chart .provider-row--tabl .provider-total { font-size: 1.375rem; }
  .cv2-compare-head { gap: 16px; margin-bottom: 12px; }
  .cv2-compare-head h2 { font-size: 1.625rem; line-height: 1.18; }
  .cv2-compare-head p { font: 400 1rem/1.55 var(--font-body); color: var(--ink-2); }
  .cv2-adjust-link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 44px; font: 650 1rem/1.3 var(--font-display); }
  .cv2-adjust-link::after { content: "\2193"; content: "\2193" / ""; }
  .cv2-method[open] { padding-inline: 20px; }
  .cv2-method .results-footnote { font-size: 1rem; line-height: 1.55; }
  .cv2-method-source-links { gap: 4px 16px; }
  .cv2-method-source-links a { display: inline-flex; align-items: center; min-height: 44px; }

  .page-calculator .partners .section-header { margin-bottom: 24px; }
  .page-calculator .partners h2 { font-size: 1.625rem; line-height: 1.18; }
  .page-calculator .partner-card__link { grid-template-columns: 88px minmax(0, 1fr); gap: 10px 12px; padding: 16px; }
  .page-calculator .partner-card__logo { height: 64px; }
  .page-calculator .partner-card__kind { font: 600 0.8125rem/1.3 var(--font-display); letter-spacing: 0; text-transform: none; }
  .page-calculator .partner-card__name { font-size: 1.0625rem; }
  .page-calculator .partner-card__description { padding: 0; line-height: 1.55; }
  .page-calculator .closing { padding-block: 48px; }
  .page-calculator .closing-inner { gap: 28px; }
  .page-calculator .closing h2 { font-size: 2rem; line-height: 1.08; }
  .page-calculator .closing p { font-family: var(--font-body); }
  .page-calculator .footer-grid { row-gap: 32px; padding-top: 40px; }
  .page-calculator .footer-legal { margin-top: 16px; }
}

/* Narrow phones keep labels and numeric inputs comfortably readable in one column. */
@media (max-width: 359px) {
  .cv2-presets { grid-template-columns: minmax(0, 1fr); }
  .cv2-chip { min-height: 72px; }
  .cv2-fields { grid-template-columns: minmax(0, 1fr); }
  .cv2-fields .calc-field-label { min-height: 0; }
}
@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; }
}
