/* The whole pig (whole-pig.html): a check for pork producers who farm and slaughter.
   Layout: a farm sentence you fill in, a butcher's chart of the pig beside the panel for the chosen
   cut, then the verdict as one small document. js/page-pig.js colours every cut by status
   (.is-best / .is-close / .is-loss, or .is-whole when they sell half carcasses). */

.p-pig {
  --pz-best: #cde6d4; --pz-best-s: #9ccfab;
  --pz-close: #f0dfb9; --pz-close-s: #e2bf78;
  --pz-loss: #f2cbc4; --pz-loss-s: #e39b8e;
  --pz-whole: #e8e4da; --pz-whole-s: #d3cdbf;
  --pg-board: #fbfaf7; --pg-grid: rgba(18, 18, 17, .05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .p-pig {
    --pz-best: #1f3d2a; --pz-best-s: #2f6142;
    --pz-close: #3e3016; --pz-close-s: #6a4f1d;
    --pz-loss: #45211c; --pz-loss-s: #74322a;
    --pz-whole: #2a2926; --pz-whole-s: #3b3a35;
    --pg-board: #151514; --pg-grid: rgba(244, 243, 239, .05);
  }
}
:root[data-theme="dark"] .p-pig {
  --pz-best: #1f3d2a; --pz-best-s: #2f6142;
  --pz-close: #3e3016; --pz-close-s: #6a4f1d;
  --pz-loss: #45211c; --pz-loss-s: #74322a;
  --pz-whole: #2a2926; --pz-whole-s: #3b3a35;
  --pg-board: #151514; --pg-grid: rgba(244, 243, 239, .05);
}

/* ---------- Hero and the farm sentence ---------- */
.p-pig .pg-hero { padding-block: var(--space-16) var(--space-24); }
.p-pig .pg-hero .mb-eyebrow { margin-bottom: var(--space-6); }
.p-pig .pg-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-12); align-items: end; }
.p-pig .pg-hero__grid .lead { padding-bottom: 10px; }

.p-pig .pg-farm { margin-top: var(--space-16); max-width: 62ch; font-size: clamp(19px, 2vw, 25px); line-height: 1.75; letter-spacing: -0.01em; color: var(--ink); display: grid; gap: var(--space-2); }
.p-pig .pg-field { white-space: nowrap; color: var(--ink); position: relative; }
.p-pig .pg-in {
  font: 500 1em/1.2 var(--font-mono); color: var(--ink); background: transparent; border: 0; border-radius: 0;
  border-bottom: 2px solid var(--line-strong); width: calc(var(--w, 5ch) + .4ch); padding: 0 2px; margin: 0 2px;
  text-align: center; -moz-appearance: textfield; appearance: textfield; transition: border-color .15s ease;
  font-variant-numeric: tabular-nums;
}
.p-pig .pg-in::-webkit-inner-spin-button, .p-pig .pg-in::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.p-pig .pg-in:hover { border-bottom-color: var(--ink); }
.p-pig .pg-in:focus { outline: none; border-bottom-color: var(--carmine); }
.p-pig .pg-field--sel select {
  font: 600 1em/1.2 var(--font-sans); letter-spacing: -0.01em; color: var(--ink); background: transparent; border: 0; border-radius: 0;
  border-bottom: 2px solid var(--line-strong); padding: 0 1.1em 0 2px; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.p-pig .pg-field--sel::after { content: "▾"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: .6em; color: var(--muted); pointer-events: none; }
.p-pig .pg-field--sel select:hover { border-bottom-color: var(--ink); }
.p-pig .pg-field--sel select:focus-visible { outline: none; border-bottom-color: var(--carmine); }
.p-pig .pg-src { font: 400 13px/1 var(--font-mono); color: var(--muted); letter-spacing: 0; white-space: nowrap; }

/* ---------- The tool: the pig and the panel ---------- */
.p-pig .pg-tool { margin-top: var(--space-12); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.p-pig .pg-board {
  background-color: var(--pg-board); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-8) var(--space-6);
  background-image: radial-gradient(var(--pg-grid) 1px, transparent 1.2px); background-size: 18px 18px;
}
/* The illustration, with invisible cut shapes over it. The chosen cut lights up (a soft white wash and
   an outline); every cut carries a tag with its name and what it costs you. The illustration is printed
   on white, so its board stays white in both themes. */
.p-pig .pg-board { --pg-board: #fefefe; --pg-grid: transparent; }   /* the illustration's own paper */
.p-pig .pg-art { position: relative; margin: 0; }
.p-pig .pg-art img { width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
.p-pig .pg-pig { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-pig .pg-z { fill: #ffffff; fill-opacity: 0; stroke: #ffffff; stroke-opacity: 0; stroke-width: 5; stroke-linejoin: round; cursor: pointer; transition: fill-opacity .2s ease, stroke-opacity .2s ease; }
.p-pig .pg-z.is-hover { fill-opacity: .16; }
.p-pig .pg-z.is-sel { fill-opacity: .22; stroke-opacity: 1; }
/* the cuts already going the best way are shaded a transparent green */
/* (a colour blend keeps the drawing's light and shade; js/page-pig.js masks the overlay to the pig's outline) */
.p-pig .pg-z.is-best { fill: #1f9d55; fill-opacity: .4; mix-blend-mode: color; }
.p-pig .pg-z.is-best.is-hover { fill-opacity: .52; }
.p-pig .pg-z.is-best.is-sel { fill-opacity: .58; }
.p-pig .pg-pig.is-masked { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.p-pig .pg-tags { position: absolute; inset: 0; pointer-events: none; }
.p-pig .pg-tag {
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px 0 9px; border: 0; border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap;
  background: rgba(255, 255, 255, .92); color: #121211; font: 500 13px/1 var(--font-sans); letter-spacing: -0.005em;
  box-shadow: 0 1px 2px rgba(18, 18, 17, .12), 0 6px 16px -6px rgba(18, 18, 17, .3);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.p-pig .pg-tag i { width: 8px; height: 8px; border-radius: 50%; background: #c9c6bd; flex: none; }
.p-pig .pg-tag.is-best i { background: #1b6e40; } .p-pig .pg-tag.is-close i { background: #8a5200; } .p-pig .pg-tag.is-loss i { background: #b4271c; }
.p-pig .pg-tag__s { font: 500 12px/1 var(--font-mono); color: #6b6a64; font-variant-numeric: tabular-nums; }
.p-pig .pg-tag__s:empty { display: none; }
.p-pig .pg-tag.is-loss .pg-tag__s { color: #b4271c; } .p-pig .pg-tag.is-close .pg-tag__s { color: #8a5200; } .p-pig .pg-tag.is-best .pg-tag__s { color: #1b6e40; }
.p-pig .pg-tag:hover, .p-pig .pg-tag.is-hover { transform: translate(-50%, -50%) scale(1.06); }
.p-pig .pg-tag[aria-pressed="true"] { background: #121211; color: #f6f5f2; }
.p-pig .pg-tag[aria-pressed="true"] .pg-tag__s { color: #f6f5f2; }
.p-pig .pg-tag:focus-visible { outline: 2px solid #b4271c; outline-offset: 2px; }
.p-pig .pg-tag--sm { height: 26px; font-size: 12px; padding: 0 9px 0 8px; }

.p-pig .pg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-6); }
.p-pig .pg-chip {
  height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink-2); font: 400 13px/1 var(--font-sans); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.p-pig .pg-chip:hover, .p-pig .pg-chip.is-hover { border-color: var(--line-strong); color: var(--ink); }
.p-pig .pg-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.p-pig .pg-chip:focus-visible { outline: 2px solid var(--carmine); outline-offset: 2px; }
.p-pig .pg-chip i, .p-pig .pg-k { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.p-pig .is-best > i, .p-pig .pg-k--best { background: var(--ok); }
.p-pig .is-close > i, .p-pig .pg-k--close { background: var(--warn); }
.p-pig .is-loss > i, .p-pig .pg-k--loss { background: var(--carmine); }
.p-pig .pg-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: var(--space-4); font-size: 12.5px; color: var(--muted); }
.p-pig .pg-key span { display: inline-flex; align-items: center; gap: 7px; }

/* the panel for one part */
.p-pig .pg-side { display: grid; gap: var(--space-8); padding-top: var(--space-2); }
.p-pig .pg-part__k { display: flex; justify-content: space-between; gap: var(--space-3); font: 500 12px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.p-pig .pg-part__k > span:first-child { color: var(--carmine); }
.p-pig .pg-part__q { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.12; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); margin: var(--space-3) 0 var(--space-6); text-wrap: balance; }
.p-pig .pg-routes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.p-pig .pg-route {
  position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center;
  padding: 14px 8px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color .15s ease;
}
.p-pig .pg-route:hover { background: var(--surface-sunk); }
.p-pig .pg-route:has(input:checked) { background: var(--surface); }
.p-pig .pg-route input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.p-pig .pg-route__dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background-color .15s ease, border-color .15s ease; }
.p-pig .pg-route input:checked + .pg-route__dot { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--surface); }
.p-pig .pg-route input:focus-visible + .pg-route__dot { outline: 2px solid var(--carmine); outline-offset: 2px; }
.p-pig .pg-route__txt { display: grid; gap: 3px; min-width: 0; }
.p-pig .pg-route__name { font-size: 16px; line-height: 1.3; color: var(--ink); font-weight: 500; }
.p-pig .pg-route__meta { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.p-pig .pg-route__num { display: grid; justify-items: end; gap: 3px; text-align: right; font-variant-numeric: tabular-nums; }
.p-pig .pg-route__num b { font: 500 16px/1.2 var(--font-mono); color: var(--ink); }
.p-pig .pg-route__num small { font: 400 12px/1.2 var(--font-mono); color: var(--carmine); }
.p-pig .pg-route.is-close .pg-route__num small { color: var(--warn); }
.p-pig .pg-route__num .pg-route__best { display: none; font: 500 10.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ok); background: var(--ok-soft); padding: 4px 8px; border-radius: var(--radius-pill); }
.p-pig .pg-route.is-best .pg-route__best { display: inline-block; }
.p-pig .pg-part__note { margin-top: var(--space-4); font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 46ch; }

.p-pig .pg-tally { border-top: 2px solid var(--ink); padding-top: var(--space-4); display: grid; gap: 6px; }
.p-pig .pg-tally p { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); font-size: 15px; color: var(--ink-2); }
.p-pig .pg-tally b { font: 500 22px/1.1 var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.p-pig .pg-tally p:nth-child(2) b { color: var(--ok); }
.p-pig .pg-tally .pg-tally__s { font-size: 12.5px; color: var(--muted); }

/* ---------- The verdict: one small document ---------- */
.p-pig .pg-sec { padding-block: var(--space-24); }
.p-pig .pg-sec.section--tight { padding-top: 0; }
.p-pig .pg-doc {
  max-width: 980px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-window); padding: clamp(24px, 4vw, 52px);
}
.p-pig .pg-doc__head { display: flex; justify-content: space-between; gap: var(--space-4); font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); margin-bottom: var(--space-8); }
.p-pig .pg-doc__qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12); }
.p-pig .pg-q__k { font: 500 12px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.p-pig .pg-q__a { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); margin: var(--space-3) 0 var(--space-2); text-wrap: balance; }
.p-pig .pg-q__a b { font-weight: 600; font-variant-numeric: tabular-nums; }
.p-pig [data-v="win"] b { color: var(--ok); }
.p-pig [data-v="lose"] b, .p-pig [data-v="wrong"] b { color: var(--carmine); }
.p-pig [data-v="near"] b { color: var(--warn); }
.p-pig .pg-q__s { font-size: 15px; color: var(--muted); }
.p-pig .pg-q__s b { font: 500 15px/1 var(--font-mono); color: var(--ink); }

.p-pig .pg-bars { --lab: 130px; --val: 92px; position: relative; display: grid; gap: 10px; margin-top: var(--space-12); padding-bottom: 30px; }
.p-pig .pg-bar { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr) var(--val); gap: 14px; align-items: center; min-height: 30px; }
.p-pig .pg-bar__l { font-size: 14px; color: var(--ink-2); }
.p-pig .pg-bar__t { height: 16px; background: var(--surface-sunk); border-radius: 3px; overflow: hidden; }
.p-pig .pg-bar__t i { display: block; height: 100%; width: 0; background: var(--ink-2); border-radius: 3px; transition: width .5s cubic-bezier(.2, .8, .2, 1), background-color .3s ease; }
.p-pig .pg-bar[data-b="best"] .pg-bar__t i { background: var(--ok); }
.p-pig .pg-bar.is-under .pg-bar__t i { background: var(--carmine); }
.p-pig .pg-bar[data-b="best"].is-under .pg-bar__t i { background: var(--warn); }
.p-pig .pg-bar > b { font: 500 15px/1 var(--font-mono); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.p-pig .pg-cost { position: absolute; top: -8px; bottom: 0; left: calc(var(--lab) + 14px); right: calc(var(--val) + 14px); pointer-events: none; }
.p-pig .pg-cost__line { position: absolute; left: var(--cost, 90%); top: 0; bottom: 24px; border-left: 2px dashed var(--ink); transition: left .5s cubic-bezier(.2, .8, .2, 1); }
.p-pig .pg-cost__l { position: absolute; left: var(--cost, 90%); bottom: 0; transform: translateX(calc(-100% + 1px)); padding-right: 8px; white-space: nowrap; font: 400 12px/1.2 var(--font-mono); color: var(--ink-2); transition: left .5s cubic-bezier(.2, .8, .2, 1); }
.p-pig .pg-cost__l b { font-weight: 600; color: var(--ink); }
.p-pig .pg-doc__note { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--ink); font-size: 15px; }
.p-pig .pg-doc__note b { font-family: var(--font-mono); font-weight: 500; }

.p-pig .pg-doc__sec { border-top: 1px solid var(--line); margin-top: var(--space-8); padding-top: var(--space-6); }
.p-pig .pg-doc__h { font: 500 12px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-3); }
.p-pig .pg-moves { list-style: none; margin: 0; padding: 0; counter-reset: mv; }
.p-pig .pg-moves li { counter-increment: mv; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: var(--space-3); align-items: baseline; padding: 12px 6px; border-bottom: 1px dashed var(--line); cursor: pointer; border-radius: 4px; transition: background-color .15s ease; }
.p-pig .pg-moves li:hover { background: var(--surface-sunk); }
.p-pig .pg-moves li:focus-visible { outline: 2px solid var(--carmine); outline-offset: 1px; }
.p-pig .pg-moves li::before { content: counter(mv); font: 500 13px/1 var(--font-mono); color: var(--carmine); }
.p-pig .pg-move__what { font-size: 16px; color: var(--ink-2); min-width: 0; }
.p-pig .pg-move__what b { color: var(--ink); font-weight: 600; }
.p-pig .pg-move__what span:not(:empty)::before { content: " → "; color: var(--muted); }
.p-pig .pg-move__v { font: 500 15px/1 var(--font-mono); color: var(--ok); white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-pig .pg-moves__none { font-size: 16px; color: var(--ink-2); }
.p-pig .pg-bench { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.p-pig .pg-bench li { display: grid; grid-template-columns: 120px 76px minmax(0, 1fr); gap: var(--space-3); align-items: baseline; font-size: 15px; }
.p-pig .pg-bench li > span { color: var(--muted); }
.p-pig .pg-bench b { font: 500 15px/1 var(--font-mono); color: var(--ink); }
.p-pig .pg-bench em { font-style: normal; color: var(--ink-2); }
.p-pig .pg-bench em[data-low], .p-pig .pg-bench em[data-high] { color: var(--warn); }
.p-pig .pg-doc__foot { margin-top: var(--space-8); font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 72ch; }

/* ---------- Prices and how we count ---------- */
.p-pig .pg-box { border-top: 1px solid var(--line); max-width: 980px; }
.p-pig .pg-box:last-child { border-bottom: 1px solid var(--line); }
.p-pig .pg-box summary { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) 0; cursor: pointer; list-style: none; }
.p-pig .pg-box summary::-webkit-details-marker { display: none; }
.p-pig .pg-box summary::after { content: "+"; font: 400 24px/1 var(--font-mono); color: var(--muted); transition: transform .2s ease; }
.p-pig .pg-box[open] summary::after { transform: rotate(45deg); }
.p-pig .pg-box summary .title { flex: 1; }
.p-pig .pg-box__more { font: 400 12px/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
.p-pig .pg-box__in { padding-bottom: var(--space-8); display: grid; gap: var(--space-4); font-size: 15.5px; color: var(--ink-2); }
.p-pig .pg-box__in .pg-in { font-size: 15px; }
.p-pig .pg-tablebox { overflow-x: auto; margin-top: var(--space-2); }
.p-pig .pg-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.p-pig .pg-table th, .p-pig .pg-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.p-pig .pg-table thead th { font: 500 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.p-pig .pg-table tbody th { color: var(--ink); font-weight: 600; }
.p-pig .pg-table .pg-num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.p-pig .pg-in--t { width: 7ch; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 6px; background: var(--paper); font-size: 13.5px; text-align: right; }
.p-pig .pg-in--t:focus { border-color: var(--carmine); }
.p-pig .pg-reset { justify-self: start; margin-top: var(--space-2); }
.p-pig .pg-how p, .p-pig .pg-how ul { max-width: 72ch; }
.p-pig .pg-how ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.p-pig .pg-how h3 { font-size: 16px; color: var(--ink); margin-top: var(--space-2); }
.p-pig .pg-how a { color: var(--ink); }

/* ---------- Narrow screens ---------- */
/* the pig needs about 700px for its tags: below that width of column, the panel goes under it */
@media (max-width: 1240px) {
  .p-pig .pg-tool { grid-template-columns: minmax(0, 1fr); }
  .p-pig .pg-side { padding-top: 0; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; }
}
@media (max-width: 860px) {
  .p-pig .pg-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .p-pig .pg-hero { padding-block: var(--space-8) var(--space-16); }
  .p-pig .pg-hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .p-pig .pg-farm { margin-top: var(--space-8); }
  .p-pig .pg-board { padding: var(--space-4); }
  .p-pig .pg-doc__qs { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .p-pig .pg-bars { --lab: 92px; --val: 74px; }
  .p-pig .pg-bar { gap: 10px; }
  .p-pig .pg-bar__l { font-size: 13px; line-height: 1.2; }
  .p-pig .pg-cost { left: calc(var(--lab) + 10px); right: calc(var(--val) + 10px); }
  .p-pig .pg-bench li { grid-template-columns: 96px 64px minmax(0, 1fr); }
  .p-pig .pg-sec { padding-block: var(--space-16); }
}
@media (max-width: 700px) {
  .p-pig .pg-tags { display: none; }   /* too small to tap: the row of parts below does the job */
}
@media (max-width: 560px) {
  .p-pig .pg-route { padding-inline: 4px; }
  .p-pig .pg-route__meta { font-size: 12px; }
}
/* ---------- The email step (a dialog after 12 seconds) ---------- */
.pg-gate { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-float); overflow: auto; }
.pg-gate::backdrop { background: rgba(18, 18, 17, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pg-gate[open] { animation: pg-gate-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes pg-gate-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.pg-gate__in { display: grid; gap: var(--space-3); padding: clamp(24px, 5vw, 40px); }
.pg-gate__k { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--carmine); }
.pg-gate__h { font-size: clamp(26px, 4vw, 32px); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.pg-gate__lead { font-size: 16px; line-height: 1.5; margin-bottom: var(--space-2); }
.pg-gate__l { font-size: 13px; font-weight: 500; color: var(--ink); }
.pg-gate__in-email { height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--paper); color: var(--ink); font: 400 16px/1 var(--font-sans); }
.pg-gate__in-email:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--surface-sunk); }
.pg-gate__check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; margin-top: var(--space-2); }
.pg-gate__check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.pg-gate__err { font-size: 13px; color: var(--carmine); }
.pg-gate__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pg-gate__go { justify-self: start; margin-top: var(--space-2); }
.pg-gate__go:disabled { opacity: .6; cursor: progress; }
.pg-gate__fine { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.pg-gate__fine a { color: var(--ink-2); }
html.pg-gated { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .pg-gate[open] { animation: none; } }

.p-pig:not(.is-ready) .pg-z,.p-pig:not(.is-ready) .pg-bar__t i, .p-pig:not(.is-ready) .pg-cost__line, .p-pig:not(.is-ready) .pg-cost__l { transition: none; }   /* no fade on load */
@media (prefers-reduced-motion: reduce) {
  .p-pig .pg-z, .p-pig .pg-bar__t i, .p-pig .pg-cost__line, .p-pig .pg-cost__l { transition: none; }
}
