/* Pricing guide (draft, 2026-12-02). The receipt hero: copy | page and add-on keycaps | a printed estimate that feeds out
   of a printer slot as lines are added. Shares the hero, keycaps and section styles of ../website-redesign/redesign.css and
   the dark cards and rows of ../website-care/care.css. Copy: COPY.md. Motion: cost.js header. */

/* ================= hero: key groups ================= */
.cr-group + .cr-group { margin-top: var(--space-lg); }
.cr-group h3 { margin: 0 0 var(--space-sm); font: 400 var(--text-2xs)/1 var(--font-mono); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--color-dim); }
.cr-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.cr-keys .key { grid-template-columns: 3.1rem 1fr auto; }
.cr-key-price { font: 400 var(--text-2xs)/1 var(--font-mono); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--color-mute); white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.key[aria-pressed="true"] .cr-key-price { color: var(--color-accent); }

/* ================= hero: the receipt =================
   The column keeps the height of the longest estimate, so the printer never moves as the paper grows and the grid
   doesn't re-centre the keys. */
.rc { position: relative; width: 100%; max-width: 400px; min-height: 42rem; justify-self: center; align-self: center; }
.rc-printer { position: relative; z-index: 2; height: 2.6rem; border-radius: 0.9rem 0.9rem 0.5rem 0.5rem; background: var(--color-night-2);
  box-shadow: inset 0 0 0 1px var(--color-rule-dark), 0 0.6rem 1.2rem oklch(0% 0 0 / 0.5); }
.rc-printer::after { content: ""; position: absolute; left: 1.2rem; right: 1.2rem; bottom: 0.7rem; height: 0.32rem; border-radius: 99px; background: oklch(8% 0.003 265); }
.rc-printer span { position: absolute; top: 0.85rem; left: 1.3rem; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--color-lilac); }
.rc-mouth { position: relative; margin: -0.85rem 2rem 0; overflow: clip; padding-bottom: 1.5rem; }   /* hides the paper above the slot */
.rc-paper { position: relative; padding: 1.6rem 1.4rem 2rem; background: var(--color-snow); color: var(--color-ink); font: 400 var(--text-xs)/1.45 var(--font-mono);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 9px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 9px repeat-x;
  box-shadow: 0 1rem 2rem oklch(0% 0 0 / 0.45); }
/* first print: with JS, the empty paper waits above the slot until cost.js feeds it out (never with reduced motion) */
@media (prefers-reduced-motion: no-preference) { .js .rc-roll:not(.is-fed) .rc-paper { transform: translateY(-100%); } }
.rc-paper ::selection { background: var(--color-lilac); color: var(--color-ink); }
.rc-head { text-align: center; letter-spacing: 0.12em; text-transform: uppercase; }
.rc-head b { display: block; font: 800 1.5rem/1 var(--font-display); letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.rc-head small { display: block; font-size: var(--text-2xs); color: oklch(45% 0.005 265); }
.rc-rule { border: 0; border-top: 1.5px dashed oklch(70% 0.006 265); margin: 1rem 0; }
.rc-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; min-height: 2.9rem; }
.rc-line { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; }
.rc-line b { font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; }
.rc-line i { font-style: normal; text-align: right; white-space: nowrap; }
.rc-line small { grid-column: 1 / -1; font-size: var(--text-2xs); color: oklch(42% 0.005 265); }
.rc-line.is-new, .rc-total .mo.is-new { animation: rc-in 360ms var(--ease-out) both; }
@keyframes rc-in { from { opacity: 0; transform: translateY(-6px); } }
.rc-empty { color: oklch(50% 0.005 265); }
.rc-total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.35rem 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.rc-total .big { font: 800 1.35rem/1 var(--font-display); letter-spacing: 0.02em; text-align: right; }
.rc-total .big.is-q { font-size: 0.95rem; line-height: 1.15; max-width: 12ch; }
.rc-total .mo { color: oklch(42% 0.005 265); }
.rc-total #mo-v { text-align: right; }
.rc-foot { margin: 1rem 0 0; text-align: center; font-size: var(--text-2xs); color: oklch(42% 0.005 265); }
.rc-cta { display: flex; justify-content: center; margin-top: var(--space-sm); }
.rc-flash { animation: rc-flash 420ms var(--ease-out); }
@keyframes rc-flash { 0% { color: oklch(62% 0.2 350); } 100% { color: inherit; } }

/* ================= our prices: three cards ================= */
.pr .rr-title { color: var(--color-snow); }
.pr-card { min-height: 100%; }
.pr-kicker { margin: 0; font: 400 var(--text-xs)/1.4 var(--font-mono); letter-spacing: var(--tracking-mono); text-transform: uppercase; opacity: 0.75; }
.pr-card .rr-name { margin-top: var(--space-xs); }
.pr-price { margin: var(--space-md) 0 var(--space-xs); font: 800 clamp(3rem, 5.2vw, 4.8rem)/0.9 var(--font-display); font-variation-settings: "wdth" var(--display-wdth); letter-spacing: var(--tracking-display); }
.pr-price span { font: 400 var(--text-xs)/1 var(--font-mono); letter-spacing: var(--tracking-mono); text-transform: uppercase; vertical-align: 0.4em; margin-left: 0.4em; }
.pr-price-q { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1; text-transform: uppercase; }

/* ================= included + paid separately ================= */
.inc { padding: 0 clamp(var(--space-sm), 5vw, var(--space-3xl)) clamp(5rem, 13svh, 8.5rem); background: var(--color-night); color: var(--color-snow); }
.inc ::selection { background: var(--color-lilac); color: var(--color-ink); }
.inc-in { max-width: 78rem; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) clamp(var(--space-lg), 6vw, var(--space-3xl)); }
.inc-col { padding-top: clamp(3rem, 8svh, 5rem); border-top: 1px solid var(--color-rule-dark); }
.inc-title { margin: 0 0 var(--space-lg); font: 800 clamp(1.8rem, 3.4vw, 3.2rem)/0.95 var(--font-display); text-transform: uppercase; font-variation-settings: "wdth" var(--display-wdth); letter-spacing: var(--tracking-display); word-spacing: var(--wordspace-display); }
.inc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.inc-list li { display: grid; grid-template-columns: 1.6rem 1fr; gap: var(--space-xs); font: 400 clamp(1.05rem, 1.35vw, 1.25rem)/1.45 var(--font-serif); color: oklch(86% 0.006 265); }
.inc-list li::before { content: ""; width: 0.8rem; height: 0.42rem; margin: 0.42em 0 0 0.2rem; border: solid var(--color-lilac); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.inc-body { margin: 0; max-width: 46ch; font: 400 clamp(1.05rem, 1.35vw, 1.25rem)/1.5 var(--font-serif); color: oklch(80% 0.006 265); }

/* ================= already have a site? ================= */
.ws-more { max-width: 78rem; margin: var(--space-lg) auto 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }

/* ================= small screens =================
   The receipt sits straight under the page keys, so picking a site and its price show together; the add-ons follow it
   and add their lines to the bottom of the estimate, just above them. "Ask about this site" moves below the add-ons. */
@media (max-width: 1000px) {
  .cr { grid-template-columns: 1fr; min-height: 0; }
  .cr-keys .cr-pages { order: 2; }
  .cr-keys .cr-adds { order: 4; margin-top: 0; }
  .rc { display: contents; }
  .rc-roll { order: 3; justify-self: center; width: 100%; max-width: 400px; margin-block: var(--space-xs); }
  .rc-cta { order: 5; justify-content: flex-start; margin-top: var(--space-xs); }
}
@media (max-width: 900px) {
  .inc-in { grid-template-columns: 1fr; gap: 0; }
  .inc-col + .inc-col { border-top: 0; padding-top: var(--space-xl); }
}

/* reduced motion: lines still appear and the total still changes, without the slide or the pink flash */
@media (prefers-reduced-motion: reduce) {
  .rc-line.is-new, .rc-total .mo.is-new { animation-name: rc-fade; }
  .rc-flash { animation: none; }
  .cr-key-price { transition: none; }
}
@keyframes rc-fade { from { opacity: 0; } }
