/* public/clankford-site/pricing.css, Pricing only (loaded by lib/clankford-site.js for "/pricing"),
 * round 18 P2 "Add a job, watch the price", picked by Michal on 15 Oct 2026.
 * Ported from the mockup at /home/studio/clankford-ie-samples/round18/p2-add-a-job (scripts/parts/page.css).
 * site.css stays the base: header, footer, type, buttons, .holo, .kicker, the close band and the shared
 * question block (.qa). No home.css rule is reused. Prefix pp- for everything new.
 * Round 26 (Michal approved 15 to 20 Oct 2026, mockup round24/pages/pricing): below the top, "Before you book
 * a call" (the .qa block, .qa--under), "We set it up and keep it running" with a Clank Floor picture
 * (pp-run, the box the picture's own shape, never cropped), and the close with Emmet's photo (pp-close).
 * The picture is a stack: Clankford is the ground floor, each job a floor on top, a height mark per
 * discount tier that snaps on when the stack reaches it, and two big totals beside it.
 * Front door: vault/Workspaces/clank-websmith/projects/clankford-ie/PROJECT.md */

/* the mockup's type scale for this page, as home.css and how.css have it (same specificity as site.css, which loads first) */
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.08rem, 1.3vw, 1.18rem); }
.btn-row { gap: 12px 16px; }

.pp-icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.pp .ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pp-stage .bot { flex: none; --bot-alpha: 1; --bot-lit: #7cc6f0; --bot-eye: #e6f7ff; } /* design-check-ignore: V2 HUD colour, as home.css .demo .bot */

/* ── page head, kept short: the picture is the hero (inner page template, as How it works .hw__head) ── */
.pp { padding: clamp(24px, 2.6vw, 34px) 0 clamp(48px, 6vw, 80px); }
.pp__head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 6px clamp(28px, 4vw, 64px); }
.pp__head .kicker { grid-column: 1 / -1; margin: 0 0 4px; }
.pp__head h1 { font-size: clamp(2.5rem, 4.2vw, 3.9rem); max-width: 13.5em; }
.pp-nb { white-space: nowrap; }
.pp-h1b { display: block; }
.pp__sub { max-width: 36ch; padding-bottom: 0.45em; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.45; color: var(--hud-dim); }

/* ── the stage: one big panel, three columns at desktop (tray, stack, price) ── */
.pp-stage {
  --fh: 48px;   /* floor height */
  --fg: 6px;    /* gap between floors */
  --lab: 136px; /* the column for the mark labels, right of the floors */
  display: grid;
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr) minmax(280px, 340px);
  grid-template-areas: "tray tower price" "tray tower typical" "tray tower acts";
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(28px, 3vw, 44px);
  margin-top: clamp(18px, 2vw, 26px);
  padding: clamp(20px, 2.1vw, 30px) clamp(20px, 2.4vw, 34px);
}
.pp-label { margin: 0; font-size: 0.75rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hud); }

/* the price */
.pp-price { grid-area: price; min-width: 0; }
.pp-price__top .pp-label { letter-spacing: 0.15em; }
.pp-price__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hud-soft); }
.pp-vat { margin: 0; font-size: 0.9rem; color: var(--hud-dim); }
.pp-sums { display: grid; gap: 16px; margin-top: 16px; }
.pp-sum { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.pp-sum__label { font-size: 0.95rem; font-weight: 600; line-height: 1.3; color: var(--hud-dim); }
.pp-sum__fig { font-family: var(--display); font-weight: 600; line-height: 0.95; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; transition: color 0.4s var(--ease); }
.pp-sum--month .pp-sum__fig { font-size: clamp(3.6rem, 6.2vw, 6.2rem); }
.pp-sum--setup .pp-sum__fig { font-size: clamp(2.4rem, 3.5vw, 3.5rem); }
.pp-sum__fig small { margin-right: 0.3em; font-family: var(--body); font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--hud-dim); }
.pp-sum--setup .pp-sum__fig { min-height: calc(clamp(2.4rem, 3.5vw, 3.5rem) * 0.95); }
.pp-sum__fig.is-none { display: flex; align-items: flex-end; font-family: var(--body); font-size: 1.05rem; font-weight: 500; line-height: 1.3; letter-spacing: 0; white-space: normal; color: var(--hud-dim); }
.pp-price.is-bump .pp-sum__fig { color: var(--hud-bright); transition-duration: 0.05s; }
.pp-hint { margin: 14px 0 0; font-size: 1rem; line-height: 1.45; color: var(--hud-dim); }
.pp-hint b { font-weight: 600; color: var(--hud-text); }

/* the stack */
.pp-tower { grid-area: tower; position: relative; align-self: end; height: calc(var(--floors, 8) * var(--fh) + (var(--floors, 8) - 1) * var(--fg)); margin: 24px 0 10px; }
.pp-tower::after { content: ""; position: absolute; left: -14px; right: calc(var(--lab) - 14px); bottom: -10px; height: 2px; border-radius: 1px; background: var(--hud-soft); }
.pp-slots i, .pp-floor { position: absolute; left: 0; right: var(--lab); height: var(--fh); bottom: calc(var(--i) * (var(--fh) + var(--fg))); }
.pp-slots i { border: 1px dashed var(--hud-steel); border-radius: 6px; }
.pp-stack { margin: 0; padding: 0; list-style: none; }
.pp-floor {
  display: flex; align-items: center; gap: 12px; padding: 0 16px 0 18px;
  border: 1px solid var(--hud-soft); border-radius: 6px; background: var(--hud-shell);
  transition: bottom 0.24s var(--ease), opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.pp-floor::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; border-radius: 6px 0 0 6px; background: var(--hud); }
.pp-floor__name { flex: 1 1 auto; min-width: 0; font-size: 1.04rem; font-weight: 600; line-height: 1.15; }
.pp-floor__fee { flex: none; font-size: 1.04rem; font-weight: 600; line-height: 1.15; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-floor__fee small { font-size: 0.85rem; font-weight: 500; color: var(--hud-dim); }
.pp-floor__fee--word { font-size: 0.92rem; font-weight: 500; color: var(--hud-dim); }
.pp-floor--core { padding-left: 10px; border: 2px solid var(--hud); background: var(--hud-bg); }
.pp-floor--core::before { display: none; }
.pp-floor--core .pp-floor__fee { color: var(--hud); }
.pp-floor.is-new { animation: pp-drop 0.26s var(--ease) both; }
.pp-floor.is-out { opacity: 0; transform: scale(0.94); }
@keyframes pp-drop { from { transform: translateY(-40px); opacity: 0; } }

/* the bracket that groups the discounted floors */
.pp-brace {
  position: absolute; right: calc(var(--lab) - 14px); width: 8px;
  bottom: calc(var(--fh) + var(--fg)); height: calc(var(--n, 0) * (var(--fh) + var(--fg)) - var(--fg));
  border: 2px solid var(--hud); border-left: 0; border-radius: 0 4px 4px 0;
  opacity: 0; transition: opacity 0.2s var(--ease), height 0.24s var(--ease);
}
.pp-brace.is-on { opacity: 1; }

/* the two height marks: a line across the stack at 3 and 5 jobs, the label in the column on the right */
.pp-mark {
  position: absolute; left: -14px; right: 0; margin: 0;
  bottom: calc(var(--at) * (var(--fh) + var(--fg)) + var(--fh) + var(--fg) / 2 - 1px);
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 0 0 7px calc(100% - var(--lab) + 38px);
  border-bottom: 2px dashed var(--hud-steel);
}
.pp-mark__at { font-size: 0.75rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hud-dim); }
.pp-mark__off { font-family: var(--display); font-size: clamp(1.4rem, 1.8vw, 1.7rem); font-weight: 600; line-height: 1.05; color: var(--hud-dim); white-space: nowrap; transform-origin: left bottom; }
.pp-mark.is-past { border-bottom-style: solid; border-bottom-color: var(--hud-soft); }
.pp-mark.is-on { border-bottom-style: solid; border-bottom-color: var(--hud); }
.pp-mark.is-past .pp-mark__off, .pp-mark.is-past .pp-mark__at { opacity: 0.72; }
.pp-mark.is-on .pp-mark__at { color: var(--hud-text); }
.pp-mark.is-on .pp-mark__off { color: var(--hud); }
.pp-mark.is-snap .pp-mark__off { animation: pp-snap 0.22s var(--ease) both; }
.pp-mark.is-snap { animation: pp-line 0.22s var(--ease) both; }
@keyframes pp-snap { from { transform: translateX(-10px) scale(1.35); opacity: 0.3; } }
@keyframes pp-line { from { border-bottom-color: var(--hud-bright); } }

/* the tray: tap to add, tap again to take off */
.pp-tray { grid-area: tray; min-width: 0; }
.pp-tray__list { display: grid; gap: 7px; margin: 14px 0 0 -10px; }
.pp-add {
  position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-areas: "ic name" "ic fees";
  align-items: center; gap: 1px 12px; width: 100%; min-height: 54px; padding: 7px 14px 7px 10px;
  border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--hud-text);
  font: inherit; text-align: left; cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.pp-add__ic { grid-area: ic; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--hud-soft); border-radius: 6px; color: var(--hud); }
.pp-add__ic .ic { transition: transform 0.2s var(--ease); }
.pp-add__name { grid-area: name; font-size: 1rem; font-weight: 600; line-height: 1.25; }
.pp-add__fees { grid-area: fees; font-size: 0.86rem; line-height: 1.3; color: var(--hud-dim); font-variant-numeric: tabular-nums; }
.pp-add:hover { border-color: var(--hud-soft); background: var(--hud-wash); }
.pp-add:focus-visible { outline: 2px solid var(--hud); outline-offset: 2px; }
.pp-add[aria-pressed="true"] { border-color: var(--hud); background: var(--hud-wash); }
.pp-add[aria-pressed="true"] .pp-add__ic { border-color: var(--hud); background: var(--hud); color: var(--ink); }
.pp-add[aria-pressed="true"] .pp-add__ic .ic { transform: rotate(45deg); }
.pp-tray__undo { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 0 -10px; }
.pp-quiet {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 6px; background: none; color: var(--hud-text); font: 600 0.95rem/1 var(--body); cursor: pointer;
}
.pp-quiet .ic { color: var(--hud); }
.pp-quiet:hover { background: var(--hud-wash); }
.pp-quiet[aria-disabled="true"] { opacity: 0.5; cursor: default; background: none; }

.pp-typical { grid-area: typical; align-self: end; margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--hud-faint); font-size: 0.95rem; line-height: 1.5; color: var(--hud-dim); }
.pp-acts { grid-area: acts; align-self: end; display: grid; gap: 10px; margin-top: 18px; }

/* under the stage: the typical business, large connections, VAT */
.pp-fine { display: flex; flex-wrap: wrap; gap: 6px 36px; margin-top: 18px; font-size: 1rem; line-height: 1.5; color: var(--hud-dim); }
.pp-fine p { margin: 0; }

/* ── We set it up and keep it running: a Clank Floor picture at the left edge, the yes line big.
   The picture's box is the picture's own shape and the picture is contained, never cropped. ── */
.pp-run {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--band);
  border-top: 1px solid var(--hud-faint);
}
.pp-run__photo { position: relative; align-self: center; margin: 0; aspect-ratio: 1200 / 1000; background: var(--hud-shell-far); }
.pp-run__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pp-run__say {
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  /* the right edge lines up with the page's content edge, however wide the screen */
  padding: clamp(56px, 7vw, 104px) calc(var(--gutter) + max(0px, (100vw - var(--wrap) - 2 * var(--gutter)) / 2)) clamp(56px, 7vw, 104px) clamp(36px, 5vw, 96px);
}
.pp-run h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); max-width: 12em; margin-bottom: 8px; }
.pp-run__line { font-size: clamp(1.12rem, 1.45vw, 1.32rem); line-height: 1.45; color: var(--hud-dim); max-width: 44ch; }
.pp-run__yes {
  margin-top: clamp(14px, 2.2vw, 32px);
  font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: 1;
  color: var(--hud-text); max-width: 16ch; text-wrap: balance;
}
.pp-run__yes span { color: var(--hud); }

/* ── the close: the panel keeps its look, a photo takes its left side ── */
.pp-close {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr) minmax(0, 0.85fr);
  gap: 0 clamp(28px, 3.5vw, 56px);
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}
.pp-close__photo { position: relative; min-height: 340px; margin: 0; }
.pp-close__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.pp-close .closer__say { align-self: center; padding: clamp(32px, 4vw, 56px) 0; }
.pp-close .closer__do { align-self: center; padding: clamp(32px, 4vw, 56px) clamp(28px, 3.5vw, 56px) clamp(32px, 4vw, 56px) 0; }

/* no script: the stack shows Clankford alone and the tray is a plain price list */
html:not(.js) .pp-tray__undo, html:not(.js) .pp-add__ic, html:not(.js) .pp-hint, html:not(.js) .pp-acts [data-pp-ask] { display: none; }
html:not(.js) .pp-add { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "fees"; cursor: default; pointer-events: none; }

@media (max-width: 1180px) {
  .pp__head { grid-template-columns: minmax(0, 1fr); }
  .pp__sub { padding-bottom: 0; }
}
@media (max-width: 1099px) {
  .pp-stage { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "price price" "tower tray" "typical typical" "acts acts"; grid-template-rows: auto auto auto auto; }
  .pp-sums { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .pp-tray { margin-top: 24px; }
  .pp-tray__list { margin-left: 0; }
  .pp-tray__undo { margin-left: -12px; }
  .pp-add { border-color: var(--hud-soft); }
  .pp-acts { grid-template-columns: repeat(2, max-content); }
  .pp-close { grid-template-columns: minmax(0, 1fr); }
  .pp-close__photo { min-height: 0; aspect-ratio: 16 / 9; }
  .pp-close .closer__say { padding: 28px clamp(20px, 4vw, 40px) 0; }
  .pp-close .closer__do { padding: 22px clamp(20px, 4vw, 40px) 32px; }
}
@media (max-width: 900px) {
  .pp-run { grid-template-columns: minmax(0, 1fr); }
  .pp-run__say { padding: 36px var(--gutter) 52px; }
}
@media (max-width: 760px) {
  .pp-stage {
    --fh: 36px; --fg: 4px; --lab: 112px;
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "price" "tower" "tray" "typical" "acts";
    padding: 16px 14px 18px;
  }
  .pp-price__top { padding-bottom: 8px; }
  .pp-price__top .pp-label { letter-spacing: 0.13em; }
  .pp-sums { gap: 12px; margin-top: 10px; align-items: start; }
  .pp-sum__label { font-size: 0.85rem; }
  .pp-sum--month .pp-sum__fig { font-size: 2.9rem; }
  .pp-sum--setup .pp-sum__fig { font-size: 2.3rem; min-height: calc(2.3rem * 0.95); }
  .pp-sum__fig.is-none { font-size: 0.95rem; }
  .pp-sum__fig small { font-size: 0.85rem; }
  .pp-hint { margin-top: 8px; font-size: 0.95rem; }
  .pp-tower { margin: 18px 0 14px; }
  .pp-floor { gap: 8px; padding: 0 8px 0 12px; }
  .pp-floor--core { padding-left: 4px; }
  .pp-floor--core .bot { width: 24px; height: 24px; }
  .pp-floor__name { font-size: 0.9rem; line-height: 1.05; }
  .pp-floor__fee { font-size: 0.9rem; line-height: 1.05; }
  .pp-floor__fee .pp-per { display: block; font-size: 0.75rem; }
  .pp-floor__fee--word { font-size: 0.8rem; }
  .pp-mark { padding-left: calc(100% - var(--lab) + 30px); padding-bottom: 4px; }
  .pp-mark__at { font-size: 0.75rem; letter-spacing: 0.1em; }
  .pp-mark__off { font-size: 1.08rem; }
  .pp-brace { right: calc(var(--lab) - 12px); width: 6px; }
  .pp-tray { margin-top: 10px; }
  /* One job per row on a phone, so each price has somewhere to sit. Two columns
     only fitted by dropping the price, which left a pricing page where a phone
     visitor could not see what a job cost until they had already added it. */
  .pp-tray__list { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 10px; }
  .pp-add { grid-template-columns: 22px minmax(0, 1fr); grid-template-areas: "ic name" "ic fees"; gap: 1px 8px; min-height: 48px; padding: 5px 8px 5px 8px; }
  .pp-add__ic { width: 22px; height: 22px; }
  .pp-add__ic .ic { width: 14px; height: 14px; }
  .pp-add__name { font-size: 0.92rem; line-height: 1.15; }
  .pp-add__fees { font-size: 0.8rem; line-height: 1.25; }
  .pp-tray__undo { margin-top: 4px; }
  .pp-typical { margin-top: 14px; padding-top: 10px; font-size: 0.92rem; }
  .pp-acts { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
  .pp-fine { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  .pp__head h1 { font-size: 2.35rem; }
  .pp__sub { font-size: 1.02rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pp-floor, .pp-brace, .pp-sum__fig { transition: none; }
  .pp-floor.is-new, .pp-mark.is-snap, .pp-mark.is-snap .pp-mark__off { animation: none; }
}
