/* /for-trades ("PlanWatch for business"): page layouts. Tokens only.
   Needs tokens, base, chrome, drawings, product, workspace and sections. Everything here is scoped to the page
   classes below, so the trade sub-pages that still use the older shell are untouched. */

/* ---------- Stacked hero: headline, then the workspace standing on the site plan ---------- */
.hero--stack { padding: calc(var(--nav-clear) + clamp(16px, 3vw, 40px)) 0 clamp(72px, 8vw, 120px); position: relative; overflow: hidden; isolation: isolate; background: var(--paper-2); }
.hero--stack::before { display: none; }
.hero-bg-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg { position: absolute; left: -4%; right: -4%; top: -6%; height: 118%; will-change: transform; }
.hero-bg svg { width: 100%; height: 100%; }
.hero--stack::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(62% 42% at 50% 20%, rgba(247, 245, 240, .97) 0%, rgba(247, 245, 240, .9) 42%, rgba(247, 245, 240, 0) 78%),
              linear-gradient(rgba(247, 245, 240, .55), rgba(247, 245, 240, 0) 30%); }
.hero-top, .hero-stage { position: relative; z-index: 2; }
.hero-top { display: grid; justify-items: center; text-align: center; gap: 20px; max-width: 1100px; }
.hero-top .h1 { font-size: clamp(44px, 5.7vw, 84px); max-width: 21ch; }
.hero-top .lead { max-width: 660px; color: var(--ink-2); }
.hero-top .btn-row { justify-content: center; }
.hero-top .hero-proof { grid-template-columns: repeat(3, auto); justify-content: center; gap: 0 44px; border-top: 0; padding-top: 4px; margin: 0; }
.hero-top .hero-proof div { display: flex; align-items: baseline; gap: 8px; }
.hero-top .hero-proof dd { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; order: 0; }
.hero-top .hero-proof dt { order: 1; font: 500 15px/1.3 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--ink-3); white-space: nowrap; }
.hero-stage { margin-top: clamp(32px, 3.4vw, 48px); max-width: calc(1120px + var(--gutter) * 2); }
.hero-stage .sample-note { position: static; text-align: center; margin-top: 16px; color: var(--ink-3); }
/* The workspace is drawn by script: its height is reserved here so nothing moves when it arrives. */
.hero-app { min-height: clamp(560px, 46vw, 680px); }
.hero-app .wx { height: clamp(560px, 46vw, 680px); --wx-side: 220px; }
.hero-app .wx-tr.pre { opacity: 0; transform: translateY(8px); }
.hero-app .wx-tr { transition: opacity var(--dur-enter) var(--ease-out), transform calc(var(--dur-enter) * 1.4) var(--ease-out), background-color var(--dur-quick); }
@media (max-width: 900px) {
  .hero-top .hero-proof { grid-template-columns: 1fr; gap: 6px; }
  .hero-app, .hero-app .wx { height: 560px; min-height: 560px; }
}
@media (max-width: 640px) {
  .hero-top { text-align: left; justify-items: start; }
  .hero-top .btn-row { justify-content: flex-start; }
  .hero-top .hero-proof { justify-content: start; }
  .hero-top .hero-proof div { flex-wrap: wrap; }
  .hero-top .h1 { font-size: 44px; }
  .hero--stack::after { background: linear-gradient(rgba(247, 245, 240, .96), rgba(247, 245, 240, .9) 55%, rgba(247, 245, 240, .2) 80%); }
  .hero-app, .hero-app .wx { height: 540px; min-height: 540px; }
}
@media (max-width: 420px) {
  .hero-top .btn-row .btn { width: 100%; }
  .hero-top .hero-proof dt { white-space: normal; }
}

/* floating application pins around the workspace (two: the calm hero) */
.hero-pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hpin { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 9px; border-radius: 14px; background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(17, 18, 20, .06), 0 10px 26px -10px rgba(17, 18, 20, .28); white-space: nowrap; max-width: 320px;
  opacity: 0; transform: translateY(14px) scale(.9); transition: opacity 420ms var(--ease-out), transform 620ms var(--ease-spring); }
.hpin.on { opacity: 1; transform: none; animation: hfloat 6s ease-in-out calc(var(--d) * -1.1s) infinite alternate; }
.hpin b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.hpin small { display: block; font-size: 12px; color: var(--ink-3); }
.hpin > span { min-width: 0; }
.hpin-site { flex: none; width: 26px; height: 26px; border-radius: 7px; position: relative; background: var(--amber-soft); }
.hpin-site::before { content: ""; position: absolute; inset: 6px 7px 7px 6px; border: 2px solid var(--site-red); border-radius: 2px; }
.hpin-site::after { content: ""; position: absolute; right: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(245, 158, 11, .55); animation: hping 2.4s ease-out infinite; }
@keyframes hfloat { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes hping { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(245, 158, 11, 0); } }
@media (max-width: 1180px) { .hero-pins { display: none; } }
@media (prefers-reduced-motion: reduce) { .hpin { transition: none; } .hpin.on { animation: none; } .hpin-site::after { animation: none; } }

/* ---------- Trade picker ---------- */
.pick-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.pick-copy { display: grid; gap: 22px; }
.trade-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.trade-chip {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--rule-2); background: var(--sheet); white-space: nowrap;
  transition: background-color var(--dur-instant), color var(--dur-instant), box-shadow var(--dur-instant);
}
.trade-chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
.trade-chip[aria-pressed="true"], .trade-chip[aria-current="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.trade-chip:focus-visible { box-shadow: var(--focus), inset 0 0 0 1px var(--ink-3); }
@media (max-width: 640px) {
  .trade-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); }
  .trade-chips::-webkit-scrollbar { display: none; }
  .trade-chip { flex: none; }
}
.pick-result { background: var(--sheet); border-radius: var(--r-xl); box-shadow: var(--sh-2); padding: 28px 30px; display: grid; gap: 10px; align-content: start; }
.pick-result .big { font-family: var(--font-display); font-weight: var(--w-num); font-size: clamp(72px, 8vw, 120px); line-height: .9; letter-spacing: -0.04em; color: var(--ink); }
.pick-result .big[hidden] { display: none; }
.pick-result .link-arrow { margin-top: 6px; color: var(--ink); }
.pick-result .link-arrow svg { stroke: currentColor; fill: none; stroke-width: 1.6; }
.share { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin: 6px 0 4px; }
.share i { display: block; height: 100%; width: 5%; background: var(--amber); border-radius: inherit; transition: width 600ms var(--ease-out); }

/* ---------- Story (pinned stage) ---------- */
.story { position: relative; padding: clamp(80px, 9vw, 140px) 0 40px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.story-head { display: grid; gap: 18px; max-width: 760px; padding-bottom: 2vh; }
.story-head .h2 { font-size: clamp(34px, 4vw, 58px); }
.step { min-height: min(62vh, 760px); display: grid; align-content: center; gap: 16px; padding: 3vh 0; opacity: .28; transition: opacity 220ms var(--ease-out); }
.step:last-child { min-height: min(72vh, 880px); }
.step.is-on { opacity: 1; }
.step-n { font-size: 12px; color: var(--amber-ink); letter-spacing: .04em; }
.step .h3 { font-size: clamp(26px, 2.4vw, 34px); }
.step .fact { font-size: 12.5px; color: var(--ink-3); padding-top: 14px; border-top: 1px solid var(--rule); }
.step .fact b { font-weight: 500; color: var(--ink); }
.step .fact b.red { color: var(--amber-ink); }
.step .link-arrow svg { stroke: currentColor; fill: none; stroke-width: 1.6; }
.story-stage-col { position: relative; }
.story-stage { position: sticky; top: calc(50vh - 316px + 32px); height: 632px; container-type: inline-size; }
.stage-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0 0 14px; padding: 0; }
.stage-rail li { font: 500 11px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding-top: 10px; position: relative; transition: color var(--dur-quick); }
.stage-rail li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--rule); }
.stage-rail li::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; border-radius: 2px; background: var(--amber); width: 0; transition: width var(--dur-enter) var(--ease-out); }
.stage-rail li.done { color: var(--ink-2); }
.stage-rail li.done::after { width: 100%; }
.stage-rail li.on { color: var(--ink); }
.stage-rail li.on::after { width: var(--railp, 0%); transition: none; }
.stage-app { min-height: 580px; }
.stage-app .wx { height: 580px; --wx-side: 196px; transition: filter var(--dur-enter); }
.stage-app .wx-tr.pre { opacity: 0; transform: translateY(10px); }
.stage-app .wx-tr { transition: opacity var(--dur-enter) var(--ease-out), transform calc(var(--dur-enter) * 1.4) var(--ease-out), background-color var(--dur-quick); }
.stage-letter { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
/* Step 04: the letter top-right; two closed envelopes to its left over the stat tiles, clear of the
   "Send this month's letters" card, its Download CSV button and the toast. */
.stage-letter { --ls: .74; --lw: calc(300px * var(--ls)); --fr: calc(3% + var(--lw) - 20px); }
.stage-letter .letter { right: 3%; top: 44px; transform-origin: 100% 0; transform: translate(40px, 60px) rotate(6deg) scale(var(--ls)); opacity: 0; transition: transform 380ms var(--ease-out), opacity 160ms; }
.stage-letter .env { position: absolute; z-index: 5; height: auto; filter: drop-shadow(0 10px 14px rgba(17, 18, 20, .16)); opacity: 0; transition: transform 420ms var(--ease-out), opacity 160ms; }
.stage-letter .env-back { width: 152px; right: calc(var(--fr) + 112px); top: 250px; transform: translate(36px, 34px) rotate(-16deg); }
.stage-letter .env-front { z-index: 7; width: 164px; right: var(--fr); top: 254px; transform: translate(36px, 34px) rotate(-6deg); }
.story[data-step="3"] .stage-letter .letter { opacity: 1; transform: rotate(-2.5deg) scale(var(--ls)); }
.story[data-step="3"] .stage-letter .env { opacity: 1; }
.story[data-step="3"] .stage-letter .env-back { transform: rotate(-7deg); transition-delay: 60ms; }
.story[data-step="3"] .stage-letter .env-front { transform: rotate(3deg); transition-delay: 120ms; }
@media (prefers-reduced-motion: reduce) { .stage-letter .letter, .stage-letter .env { transition: opacity 160ms; } }
@container (max-width: 760px) {
  .stage-letter { --ls: .66; }
  .stage-letter .env-back { display: none; }
  .stage-letter .env-front { width: 138px; top: 200px; }
}
.stage-campaign { position: absolute; left: 5%; right: 5%; top: 120px; z-index: 7; background: var(--sheet); border-radius: var(--r-xl); box-shadow: var(--sh-3); opacity: 0; transform: translateY(24px) scale(.98); transition: opacity 220ms var(--ease-out), transform 380ms var(--ease-out); pointer-events: none; }
.story[data-step="4"] .stage-campaign { opacity: 1; transform: none; }
.story[data-step="4"] .stage-app .wx { filter: saturate(.6); }

/* Story, tabs mode (phones and tablets): tabs that play themselves */
.story--tabs { padding-bottom: clamp(56px, 8vw, 120px); }
.story--tabs .story-grid { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: start; margin-top: 40px; }
.story--tabs .step { min-height: 0; padding: 18px 0; opacity: .45; border-top: 1px solid var(--rule); cursor: default; }
.story--tabs .step:last-child { min-height: 0; }
.story--tabs .step.is-on { opacity: 1; }
.story--tabs .step .body, .story--tabs .step .fact, .story--tabs .step .link-arrow { display: none; }
.story--tabs .step.is-on .body, .story--tabs .step.is-on .fact { display: block; animation: tabIn 225ms cubic-bezier(.4, 0, .2, 1); }
.story--tabs .step.is-on .link-arrow { display: inline-flex; animation: tabIn 225ms cubic-bezier(.4, 0, .2, 1); }
.story--tabs .step .h3 { font-size: clamp(22px, 2vw, 28px); }
.story--tabs .story-stage { position: relative; top: 0; height: auto; }
.story--tabs .stage-rail li { cursor: pointer; }
.story--tabs .stage-rail li:focus-visible { border-radius: 4px; }
.story--tabs .stage-rail li::after { transition: none; }
@keyframes tabIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .story--tabs .step.is-on .body, .story--tabs .step.is-on .fact, .story--tabs .step.is-on .link-arrow { animation: none; } }
@media (max-width: 900px) {
  .story--tabs .story-grid { grid-template-columns: 1fr; margin-top: 28px; gap: 18px; }
  .story--tabs .story-stage-col { order: -1; }
  .story--tabs .step { display: none; border-top: 0; padding: 4px 0 0; }
  .story--tabs .step.is-on { display: grid; animation: tabIn 225ms cubic-bezier(.4, 0, .2, 1); }
  .story--tabs .stage-app, .story--tabs .stage-app .wx { height: 520px; min-height: 520px; }
  .story--tabs .stage-rail li { font-size: 10px; letter-spacing: .04em; padding-top: 12px; padding-bottom: 6px; }
  .stage-campaign { top: 60px; left: 0; right: 0; }
}
/* Phone-sized stage only: a narrow letter, no envelopes. */
@container (max-width: 480px) {
  .stage-letter { --ls: 1; }
  .stage-letter .letter { width: 52%; min-width: 180px; right: 3%; top: 58px; font-size: 6.6px; padding: 12px; gap: 6px; }
  .stage-letter .letter h6 { font-size: 10.5px; }
  .stage-letter .letter .qr { width: 36px; height: 36px; }
  .stage-letter .env { display: none; }
}

/* ---------- Why the register ---------- */
.mech-slot { aspect-ratio: 640 / 430; }
.mech-slot svg { width: 100%; height: 100%; }

/* ---------- Case study (amber field) ---------- */
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.case-copy { display: grid; gap: 28px; }
.case-copy .h2 { font-size: clamp(36px, 4.2vw, 62px); }
.case-quote { margin: 0; padding-left: 20px; border-left: 2px solid #111214; }
.case-quote blockquote { margin: 0; }
.case-quote blockquote p { font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 25px); line-height: 1.35; color: var(--ink); font-weight: var(--w-quote); letter-spacing: -0.01em; text-wrap: pretty; }
.case-quote blockquote p::before { content: "\201C"; }
.case-quote blockquote p::after { content: "\201D"; }
.case-client { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.case-client a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.case-client .case-logo { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 10px; background: #FFFFFF; box-shadow: 0 6px 18px -10px rgba(17, 18, 20, .4); text-decoration: none; }
.case-client .case-logo img { height: 20px; width: auto; }
.case-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.case-stats div { padding: 16px 14px 16px 0; display: flex; flex-direction: column; }
.case-stats dt { font: 500 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.case-stats dd { margin: 10px 0 0; font-family: var(--font-display); font-size: clamp(26px, 2.3vw, 36px); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; font-weight: 500; }
.case-stats dd em { font-style: normal; }
.case.theme-amber .case-stats dd.red { color: #111214; }
.case-copy > .body strong { color: var(--ink); font-weight: 600; }
.case-visual { display: grid; gap: 28px; }
.case-waffle { margin: 0; background: #FFFFFF; border-radius: var(--r-xl); box-shadow: 0 30px 60px -30px rgba(17, 18, 20, .35); padding: 22px; }
.case-waffle .grid { display: grid; grid-template-columns: repeat(25, 1fr); gap: 4px; }
.case-waffle .grid i { aspect-ratio: 1; border-radius: 2px; background: #F3E9CC; transition: background-color 420ms var(--ease-out), transform 420ms var(--ease-out); }
.case-waffle .grid i.hit { background: #111214; transform: scale(1.08); }
.case-waffle figcaption { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; font-size: 12px; color: #4A4C50; }
.case-waffle .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: #F3E9CC; margin-right: 8px; vertical-align: -1px; }
.case-waffle .sw.hit { background: #111214; }
.case-method { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.case-method li { border-top: 1px solid var(--rule); padding-top: 14px; }
.case-method .mono { font-size: 12px; color: #111214; }
.case-method h3 { font-weight: 600; margin: 6px 0 4px; font-size: 15px; letter-spacing: -0.01em; }
.case-method p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.case.theme-amber .label { color: #111214; }
.case.theme-amber .label::before { background: #111214; box-shadow: 0 0 0 4px rgba(17, 18, 20, .12); }

/* ---------- Done for you ---------- */
.dfy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.dfy-list li { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; gap: 18px; padding: 14px 0; border-top: 1px solid var(--rule); }
.dfy-list li:last-child { border-bottom: 1px solid var(--rule); }
.dfy-list b { font-family: var(--font-display); font-weight: var(--w-num); font-size: 36px; letter-spacing: -0.02em; line-height: 1; }
.dfy-list span { color: var(--ink-2); }
.sieve { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--sheet); border-radius: var(--r-xl); box-shadow: var(--sh-2); padding: 20px; min-height: 470px; }
.sieve-col { display: grid; align-content: start; gap: 10px; }
.sieve-col > .mono { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.sieve ul { display: grid; gap: 6px; }
.sieve li { font-size: 13px; line-height: 1.35; padding: 8px 10px; border-radius: 8px; background: var(--paper-2); position: relative; transition: opacity 220ms var(--ease-out), transform 240ms var(--ease-out), background-color 200ms; }
.sieve li small { display: block; font: 11px/1.3 var(--font-mono); color: var(--ink-3); margin-top: 2px; }
.sieve .raw li.pre { opacity: 0; transform: translateY(6px); }
.sieve .raw li.out { color: var(--ink-3); opacity: .55; }
.sieve .raw li::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; background: var(--amber-deep); transform-origin: left; transform: scaleX(0); transition: transform 220ms var(--ease-out); }
.sieve .raw li.out::after { transform: scaleX(1); }
.sieve .raw li.kept { background: var(--amber-wash); }
.sieve .clean li { background: var(--amber-wash); }
.sieve .clean li.pre { opacity: 0; transform: translateX(-14px); }
.sieve .clean li b { font-weight: 500; }

/* ---------- Patch check: the real widget (views/for-trades/_patch-check.ejs) on the Site Plan ---------- */
.check-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.check-copy { display: grid; gap: 20px; position: sticky; top: 120px; }
.pc .patch-note { font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.pc .check-card { background: var(--sheet); border-radius: var(--r-xl); box-shadow: var(--sh-2); padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 18px; min-width: 0; }
.pc [hidden] { display: none !important; }
.pc .field { display: grid; gap: 7px; }
.pc label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.pc label small { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; color: var(--ink-3); line-height: 1.5; }
.pc input[type=text], .pc input[type=email], .pc input[type=tel], .pc select {
  height: 48px; width: 100%; padding: 0 14px; border-radius: var(--r-md); background: var(--sheet); color: var(--ink);
  border: 1px solid var(--rule-2); font-size: 16px; transition: border-color var(--dur-instant), box-shadow var(--dur-instant);
}
.pc input::placeholder { color: var(--ink-3); }
.pc input:focus, .pc select:focus { outline: none; border-color: var(--amber-deep); box-shadow: var(--focus); }
.pc #patchBtn, .pc #leadBtn, .pc .pc-use {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 14px;
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 17px; line-height: 1; letter-spacing: -0.01em; justify-self: start;
  transition: background-color var(--dur-instant) var(--ease-out), transform var(--dur-instant) var(--ease-out);
}
.pc #patchBtn:hover, .pc #leadBtn:hover, .pc .pc-use:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.pc #patchBtn:active, .pc #leadBtn:active { transform: translateY(1px); }
.pc #patchBtn:disabled, .pc #leadBtn:disabled { opacity: .6; cursor: default; }
.pc .pc-use { height: 46px; font-size: 15px; padding: 0 20px; margin-top: 4px; }
/* the result */
.pc .patch-out { display: grid; gap: 12px; min-width: 0; }
.pc .patch-out:empty { display: none; }
.pc .patch-out > p { color: var(--ink-2); }
.pc .patch-total { font-family: var(--font-display); font-weight: var(--w-num); font-size: clamp(44px, 5vw, 56px); line-height: .98; letter-spacing: -0.03em; color: var(--ink) !important; text-wrap: balance; }
.pc .patch-total em { font-style: normal; color: var(--amber-deep); font-size: .5em; letter-spacing: -0.02em; }
.pc .patch-firstlist { font-weight: 600; color: var(--ink) !important; font-size: 18px; }
.pc .patch-err { background: var(--amber-wash); color: var(--amber-ink); box-shadow: inset 0 0 0 1px var(--amber-soft); padding: 12px 14px; border-radius: var(--r-md); font-size: 15px; }
.pc .patch-empty { background: var(--paper-2); border-radius: var(--r-lg); padding: 18px 20px; display: grid; gap: 8px; }
.pc .patch-empty strong { font-weight: 600; color: var(--ink); }
.pc .patch-empty p { color: var(--ink-2); font-size: 15px; }
.pc .patch-out a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pc .patch-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pc .patch-cols .card { background: var(--paper-2); border-radius: var(--r-lg); padding: 16px 18px; min-width: 0; }
.pc .patch-cols .card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.pc .patch-cols .card small { color: var(--ink-3); font-size: 14px; }
.pc .patch-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.pc .patch-list li:first-child { border-top: 0; }
.pc .patch-list strong { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
/* what each area word matched (council names, or nothing) */
.pc .patch-areas { background: var(--paper-2); border-radius: var(--r-lg); padding: 16px 18px; min-width: 0; }
.pc .patch-areas h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.pc .patch-areas li strong { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.pc .patch-areas li.is-unmatched strong { color: var(--amber-ink); }
.pc .patch-areas-warn { display: grid; gap: 6px; }
/* the specimen file: the real export format, addresses masked */
.pc .specimen { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); background: var(--sheet); min-width: 0; }
.pc .specimen-head { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; align-items: baseline; padding: 12px 16px; background: #111214; color: #FFFFFF; }
.pc .specimen-file { font: 13px/1.4 var(--font-mono); }
.pc .specimen-meta { color: rgba(255, 255, 255, .7); font-size: 12.5px; }
.pc .specimen .scroll { overflow-x: auto; }
.pc .specimen-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pc .specimen-table th, .pc .specimen-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.pc .specimen-table th { background: var(--paper-2); color: var(--ink-3); font: 500 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.pc .specimen-mask { color: var(--ink-4); letter-spacing: .06em; }
.pc .tag { display: inline-block; margin-left: 6px; background: var(--amber-soft); color: var(--amber-ink); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pc .specimen-note { margin: 0; padding: 12px 16px; color: var(--ink-3) !important; font-size: 13px; }
/* "What do you do?" chips */
.pc .niche-out:empty { display: none; }
.pc .niche-out { display: grid; gap: 8px; }
.pc .niche-note { color: var(--ink-3); font-size: 13.5px; line-height: 1.5; }
.pc .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pc .chips .chip { height: 32px; padding: 0 6px 0 12px; border-radius: 10px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 13.5px; font-weight: 500; color: var(--ink); gap: 4px; }
.pc .chips .chip::before { display: none; }
.pc .chip-x { width: 24px; height: 24px; border-radius: 7px; color: var(--ink-3); font-size: 17px; line-height: 1; }
.pc .chip-x:hover { background: var(--paper-2); color: var(--ink); }
/* lead capture under the count */
.pc .lead-box { display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid var(--rule); }
.pc .lead-box h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.pc .lead-lede { color: var(--ink-2); }
.pc .lead-excl { background: var(--amber-wash); border-radius: var(--r-md); padding: 10px 14px; font-size: 14.5px; color: var(--ink-2); }
.pc .lead-excl strong { color: var(--ink); font-weight: 600; }
.pc .lead-excl .lead-excl-available { color: var(--green-ink); }
.pc .lead-form { display: grid; gap: 14px; }
.pc .lead-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pc .lead-opt { display: inline; margin: 0 0 0 4px; font-weight: 400; color: var(--ink-3); }
.pc .lead-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pc .lead-consent { color: var(--ink-3); font-size: 13.5px; }
.pc .lead-done { font-size: 18px; font-weight: 600; color: var(--green-ink); }
@media (max-width: 640px) { .pc .lead-grid { grid-template-columns: 1fr; } .pc #patchBtn, .pc #leadBtn { width: 100%; } }

/* Soft Select (public/assets/soft-select.js), on the Site Plan */
.page-trades .soft-select { position: relative; }
.page-trades select.ss-native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; }
.page-trades .ss-trigger { width: 100%; height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; background: var(--sheet); color: var(--ink);
  border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 16px; text-align: left; transition: box-shadow var(--dur-instant); }
.page-trades .ss-trigger:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.page-trades .ss-trigger:focus-visible { box-shadow: inset 0 0 0 1px var(--amber-deep), var(--focus); }
.page-trades .soft-select.is-open .ss-trigger { box-shadow: inset 0 0 0 1px var(--amber-deep), var(--focus); }
.page-trades .ss-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-trades .ss-value.is-placeholder { color: var(--ink-3); }
.page-trades .ss-chevron { flex: 0 0 auto; color: var(--ink-3); transition: transform var(--dur-quick) var(--ease-out); }
.page-trades .soft-select.is-open .ss-chevron { transform: rotate(180deg); }
.page-trades .ss-panel { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; right: 0; background: var(--sheet); border-radius: 16px; box-shadow: var(--sh-3); overflow: hidden; animation: ssIn .16s var(--ease-out); }
@keyframes ssIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.page-trades .ss-list { margin: 0; padding: 6px; max-height: 320px; overflow-y: auto; outline: none; overscroll-behavior: contain; scrollbar-width: thin; }
.page-trades .ss-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; line-height: 1.4; color: var(--ink); }
.page-trades .ss-option.is-active { background: var(--amber-wash); }
.page-trades .ss-option.is-selected { font-weight: 600; }
.page-trades .ss-option.is-placeholder { color: var(--ink-3); }
.page-trades .ss-label { flex: 1 1 auto; }
.page-trades .ss-hint { flex: 0 0 auto; color: var(--ink-3); font-size: 13px; }
.page-trades .ss-check { flex: 0 0 auto; color: var(--amber-ink); opacity: 0; }
.page-trades .ss-option.is-selected .ss-check { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .page-trades .ss-panel { animation: none; } }

/* ---------- Rules ---------- */
.rule-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rule-cards article { background: var(--sheet); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 28px; display: grid; gap: 10px; align-content: start; }
.rule-cards .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.rule-cards .ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rule-cards h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.rule-cards p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.rule-cards article[data-tone="amber"] .ico { background: var(--amber-soft); color: var(--amber-ink); }
.rule-cards article[data-tone="blue"] .ico { background: var(--blue-wash); color: var(--blue-ink); }
.rule-cards article[data-tone="green"] .ico { background: var(--green-wash); color: var(--green-ink); }

/* ---------- Price + the claim form ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.price-grid .section-head { margin-bottom: 0; }
.pc-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 16px; color: var(--ink-2); }
.pc-list li:last-child { border-bottom: 1px solid var(--rule); }
.pc-list li > span { flex: none; width: 16px; }
.pc-list li > span svg { width: 16px; height: 16px; stroke: var(--amber-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 4px; }
.price-card { background: var(--sheet); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: clamp(22px, 2.6vw, 32px); display: grid; gap: 18px; min-width: 0; }
.pc-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.pc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.pc-price b { font-family: var(--font-display); font-weight: var(--w-num); font-size: clamp(64px, 6vw, 88px); line-height: .9; letter-spacing: -0.04em; }
.pc-price span { color: var(--ink-3); }
.pc-form { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--rule); }
.pc-form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.pc-form label small { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; color: var(--ink-3); line-height: 1.5; }
.pc-form input[type=text], .pc-form input[type=email], .pc-form select {
  height: 48px; width: 100%; padding: 0 14px; border-radius: var(--r-md); background: var(--sheet); color: var(--ink);
  border: 1px solid var(--rule-2); font-size: 16px; transition: border-color var(--dur-instant), box-shadow var(--dur-instant);
}
.pc-form input::placeholder { color: var(--ink-3); }
.pc-form input:focus, .pc-form select:focus { outline: none; border-color: var(--amber-deep); box-shadow: var(--focus); }
.pc-form .row { display: flex; gap: 10px; align-items: flex-start; }
.pc-form .row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #111214; flex: none; }
.pc-form .row label { font-weight: 500; color: var(--ink-2); }
.pc-form .row label em { font-style: normal; color: var(--ink); font-weight: 600; }
.pc-form button[type=submit] { width: 100%; white-space: normal; text-align: center; }
.pc-form button[type=submit]:disabled { opacity: .6; cursor: default; }
.pc-form .msg { display: none; padding: 12px 14px; border-radius: var(--r-md); font-size: 15px; }
.pc-form .msg.ok { display: block; background: var(--green-wash); color: var(--green-ink); }
.pc-form .msg.err { display: block; background: var(--amber-wash); color: var(--amber-ink); box-shadow: inset 0 0 0 1px var(--amber-soft); }
.pc-pending { padding: 10px 12px; border-radius: var(--r-md); background: var(--paper-2); }
.pc-links { margin-top: -4px; }

/* ---------- Talk to us (night band) ---------- */
.call-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.call-grid > div:first-child { display: grid; gap: 22px; }
.call-ways { display: grid; gap: 14px; justify-items: start; margin-top: 6px; }
.call-line { display: inline-flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: 15px; }
.call-line:hover { color: var(--ink); }
.call-line svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.call-card { background: var(--sheet); border-radius: var(--r-xl); box-shadow: var(--sh-2); padding: 24px; display: grid; gap: 16px; }
.slots-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.slots-head b { font-weight: 600; }
.call-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); }
.call-steps .mono { color: var(--amber-ink); font-size: 12px; padding-top: 3px; }
.call-steps b { font-weight: 600; display: block; }
.call-steps p { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq-list summary h3 { font: inherit; letter-spacing: inherit; color: var(--ink); margin: 0; }
.faq-list summary:focus-visible { border-radius: 6px; }
.faq .section-head .small .link { white-space: nowrap; }

/* ---------- Close (amber field) ---------- */
.close.theme-amber { border-top: 0; }
.close.theme-amber .h2 { font-size: clamp(40px, 5.4vw, 80px); max-width: 15ch; }
.close.theme-amber .btn--ghost { box-shadow: inset 0 0 0 1.5px rgba(17, 18, 20, .5); }
.close.theme-amber .btn--ghost:hover { background: rgba(255, 255, 255, .35); }
.close .lead { max-width: 36em; }
.close-foot { max-width: 60ch; color: var(--ink-2); margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .story-grid { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .pick-grid, .case-grid, .dfy-grid, .check-grid, .price-grid, .call-grid { grid-template-columns: 1fr; }
  .check-copy { position: static; }
  .rule-cards { grid-template-columns: 1fr; }
  .case-method { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .case-stats { grid-template-columns: 1fr 1fr; }
  .dfy-list li { grid-template-columns: 72px 1fr; }
  .dfy-list b { font-size: 30px; }
  .sieve { grid-template-columns: 1fr; min-height: 0; }
  .case-waffle { padding: 14px; }
  .case-waffle .grid { gap: 3px; }
}

/* ---------- Dark theme (opt-in on the site) ---------- */
:root[data-theme="dark"] .hero--stack::after { background: radial-gradient(62% 42% at 50% 20%, rgba(22, 24, 27, .97) 0%, rgba(22, 24, 27, .9) 42%, rgba(22, 24, 27, 0) 78%), linear-gradient(rgba(22, 24, 27, .55), rgba(22, 24, 27, 0) 30%); }
:root[data-theme="dark"] .hpin { background: var(--sheet); }

/* Static mode (motion-gate.ejs: crawlers, very tall viewports, reduced motion): the story is a plain list with every
   step's words on show and the product in its last state beside it; nothing pinned, so the page keeps its length. */
.pw-static .hpin { transition: none; } .pw-static .hpin.on { animation: none; } .pw-static .hpin-site::after { animation: none; }
.pw-static .page-trades .ss-panel { animation: none; }
.story--static .step, .story--static .step:last-child { min-height: 0; opacity: 1; padding: 20px 0; transition: none; }
.story--static .story-stage { position: relative; top: 0; }
@media (max-width: 900px) {
  .story--static .story-grid { grid-template-columns: 1fr; gap: 18px; }
  .story--static .story-stage-col { order: -1; }
  .story--static .stage-app, .story--static .stage-app .wx { height: 520px; min-height: 520px; }
}

/* ---------- Close: the work that fills a patch (existing in ink, proposed in amber, trees green) ---------- */
.fill { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px clamp(12px, 1.8vw, 24px); margin: clamp(14px, 2vw, 28px) 0 clamp(8px, 1.2vw, 16px); }
.fill li { display: grid; justify-items: center; align-content: start; gap: 11px; width: 96px; }
.fill-t { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: var(--r-lg); background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(17, 18, 20, .06), 0 16px 32px -16px rgba(17, 18, 20, .45); }
.fill-t svg { width: 50px; height: 50px; fill: none; stroke: #111214; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.fill-t .p { fill: var(--amber-field); }
.fill-t .p--tree { fill: rgba(22, 163, 74, .2); stroke: #15803D; }
.fill-t::after { content: "new"; position: absolute; top: -9px; right: -12px; padding: 5px 7px; border-radius: var(--r-pill);
  font: 500 10px/1 var(--font-mono); letter-spacing: .02em; background: #111214; color: #FFBE3B; }
.fill small { font: 12.5px/1.25 var(--font-mono); color: var(--ink-2); text-align: center; }
/* Motion mode only: each tile drops in, its proposed work fills, then its tag lands; a flick past skips it all (.instant). */
.fill li.rv { transition-delay: calc(var(--i, 0) * 70ms); transition-timing-function: var(--ease-out), var(--ease-spring), var(--ease-out); }
.fill li.rv-wait:not(.in) { opacity: 0; transform: translateY(-18px) scale(.9); filter: blur(2px); }
.pw-motion .fill li.in:not(.instant) .fill-t::after { animation: fill-tag 380ms var(--ease-spring) calc(var(--i, 0) * 70ms + 300ms) both; }
.pw-motion .fill li.in:not(.instant) .p { animation: fill-hatch 460ms var(--ease-out) calc(var(--i, 0) * 70ms + 160ms) both; }
@keyframes fill-tag { from { opacity: 0; transform: scale(.2) translateY(6px); } }
@keyframes fill-hatch { from { fill-opacity: 0; } }
@media (max-width: 640px) {
  .fill { gap: 18px 6px; max-width: 360px; margin-left: auto; margin-right: auto; }
  .fill li { width: 78px; }
  .fill-t { width: 64px; height: 64px; border-radius: 16px; }
  .fill-t svg { width: 40px; height: 40px; }
  .fill-t::after { right: -8px; }
}

/* Talk to us: the steps sit under the copy now the form has the right-hand column */
.call-grid { align-items: start; }
.call-copy { display: grid; gap: 22px; align-content: start; }
.call-copy .call-steps { margin-top: 4px; max-width: 520px; }
.call-copy .call-steps li:last-child { border-bottom: 1px solid var(--rule); }
.call-card.cf-card { padding: clamp(20px, 2.6vw, 30px); gap: 20px; }

/* ---------- Construction leads by council (links to the area hubs) ---------- */
.hub-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 2.5vw, 32px); }
.hub-links a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; color: var(--ink-2); }
.hub-links a:hover { color: var(--ink); }
.hub-links .num { color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .hub-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hub-links { grid-template-columns: minmax(0, 1fr); } }
