/* Process, the page pass of 2026-10-11, at home's standard and Powder's
   measurements (powder-spec/SPEC.md). The steps are a calm timeline beside
   home's card in card, pricing is Powder's one shell with the raised glass
   column, the questions have Powder's topic pills. Markup in build.mjs
   (pdSec timeline with art or app, pricingCols, faqGrid with topics) */

body[data-page="how-we-work"] {
  --pc-shell: rgba(0, 0, 0, .85);
  --pc-glass: rgba(23, 23, 23, .85);
  --pc-glass-edge: rgba(255, 255, 255, .25);
  --pc-dot-ring: #000;
}
:root[data-theme="light"] body[data-page="how-we-work"] { --pc-shell: #fff; --pc-glass: rgba(241, 239, 233, .9); --pc-glass-edge: rgba(0, 0, 0, .16); --pc-dot-ring: var(--bg); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) body[data-page="how-we-work"] { --pc-shell: #fff; --pc-glass: rgba(241, 239, 233, .9); --pc-glass-edge: rgba(0, 0, 0, .16); --pc-dot-ring: var(--bg); } }

/* ---------- the steps, a quiet rail with a dot per step ---------- */
.pd-proc { position: relative; }
.pd-proc-rail { position: absolute; left: 3px; top: 12px; bottom: 0; width: 1px; background: linear-gradient(180deg, var(--pd-edge-2) 0, var(--pd-edge-2) 82%, transparent); }
.pd-proc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 80px; }
.pd-proc-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-left: 44px; }
.pd-proc-tx { position: relative; }
.pd-proc-dot { position: absolute; left: -44px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--pd-tx); box-shadow: 0 0 0 6px var(--pc-dot-ring); }
.pd-proc-when { display: flex; align-items: baseline; gap: 12px; margin: 0; color: var(--pd-dim); font-size: 14px; line-height: 21px; }
.pd-proc-when span { color: var(--pd-tx); font-variant-numeric: tabular-nums; }
.pd-proc-tx h3 { margin: 20px 0 0; color: var(--pd-tx); font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; line-height: 1.35; letter-spacing: -.03em; }
.pd-proc-ln { margin: 12px 0 0; max-width: 44ch; color: var(--pd-mid); font-size: 16px; line-height: 1.5; }
.pd-proc-tx .pd-ticks { margin-top: 28px; }

/* home's card in card, an 8px shell, the card, then the well */
.pd-proc-shell { padding: 8px; border-radius: 24px; background: var(--pc-shell); box-shadow: inset 0 0 0 1px var(--pd-edge); }
.pd-proc-card { padding: 8px; border-radius: 16px; background: var(--pd-card); border: 1px solid var(--pd-edge); }
.pd-proc-well { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--pd-well); box-shadow: inset 0 0 0 1px var(--pd-edge); }
.pd-proc-well .pd-iso { width: 100%; height: auto; }
/* the step that happens in the client app, the glass window on the dusk scene */
.pd-proc-scene { aspect-ratio: 4 / 3; min-height: 0; border-radius: 8px; }
.pd-proc-scene .pd-gwin { left: 8%; right: 8%; top: 16%; border-radius: 20px 20px 0 0; }

/* ---------- pricing, Powder's one shell around one card, the middle column raised as glass ---------- */
.pd-ssec .pd-plans { position: relative; align-items: stretch; margin-block: 16px; padding: 8px; border-radius: 24px; background: var(--pc-shell); box-shadow: inset 0 0 0 1px var(--pd-edge); }
.pd-ssec .pd-plans::after { content: ''; position: absolute; inset: 8px; z-index: 0; border-radius: 16px; background: var(--pd-card); box-shadow: inset 0 0 0 1px var(--pd-edge); pointer-events: none; }
.pd-ssec .pd-plan, .pd-ssec .pd-plan:first-child, .pd-ssec .pd-plan:last-child { z-index: 1; padding: 36px; border: 0; border-radius: 0; background: none; }
.pd-ssec .pd-plan:not(.hi)::before { display: none; }
.pd-ssec .pd-plan.hi { margin: -16px 0; padding-top: 52px; padding-bottom: 52px; border-radius: 12px; background: var(--pc-glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--pc-glass-edge); }
.pd-ssec .pd-plan-k { padding-bottom: 14px; color: var(--pd-dim); font-size: 12px; font-weight: 500; line-height: 18px; letter-spacing: .02em; }
.pd-ssec .pd-plan h3 { margin-top: 28px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.35; letter-spacing: -.03em; }
.pd-ssec .pd-plan-d { max-width: 30ch; color: var(--pd-mid); }
.pd-ssec .pd-plan li { min-height: 61px; color: var(--pd-mid); }
.pd-ssec .pd-plan li svg { width: 21px; height: 21px; background: var(--pd-f3); }
.pd-ssec .pd-plan li:last-child { padding-bottom: 0; }

/* ---------- the questions, topic pills that stay put, the card below them, the rows in a shell ---------- */
.pd-faq-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; padding: 4px; border-radius: 99px; background: var(--pc-shell); box-shadow: inset 0 0 0 1px var(--pd-edge); justify-self: start; }
.pd-faq-tabs button { position: relative; isolation: isolate; height: 36px; padding: 0 16px; border: 0; border-radius: 99px; background: none; color: var(--seg-tx); font: 400 14.5px/22px var(--sans); letter-spacing: -.01em; cursor: pointer; }
.pd-faq-tabs button::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(23, 23, 23, .85); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); opacity: 0; transition: opacity 200ms ease-out; }
.pd-faq-tabs button:hover { color: var(--seg-hov); }
.pd-faq-tabs button[aria-selected="true"] { color: #fff3f0; }
.pd-faq-tabs button[aria-selected="true"]::after { opacity: 1; }
.pd-faq-tabs button:focus-visible { outline: 2px solid var(--pd-tx); outline-offset: 2px; }
.pd-faq-panels .pd-faq-list + .pd-faq-list { margin-top: 0; }
.pd-faq-topic { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* the tab names the topic, read out for screen readers */
/* with script the pills switch the lists, without it every list shows under its topic */
html.js .pd-faq-panels > .pd-faq-list:not(.on) { display: none; }
html.js .pd-faq-panels .pd-faq-list + .pd-faq-list { margin-top: 0; }
html.js .pd-faq-topic { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.js) .pd-faq-tabs { display: none; }

@media (max-width: 1100px) and (min-width: 901px) {
  .pd-proc-step { gap: 40px; }
  .pd-faq-topics { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 900px) {
  .pd-proc-list { gap: 56px; }
  .pd-proc-step { gap: 32px; padding-left: 28px; }
  .pd-proc-dot { left: -28px; }
  .pd-proc-shell { padding: 6px; border-radius: 20px; }
  .pd-proc-card { padding: 6px; border-radius: 14px; }
  .pd-proc-scene .pd-gwin { left: 6%; right: 6%; top: 14%; border-radius: 16px 16px 0 0; }
  .pd-ssec .pd-plans { grid-template-columns: 1fr; gap: 0; padding: 6px; border-radius: 20px; margin-block: 0; }
  .pd-ssec .pd-plans::after { inset: 6px; border-radius: 14px; }
  .pd-ssec .pd-plan, .pd-ssec .pd-plan:first-child, .pd-ssec .pd-plan:last-child { padding: 28px 22px; }
  .pd-ssec .pd-plan.hi { margin: 0; padding: 28px 22px; border-radius: 12px; }
  .pd-ssec .pd-plan h3 { margin-top: 22px; }
  .pd-faq-topics { grid-template-columns: 1fr; gap: 16px; }
  .pd-faq-tabs { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 28px; }
  .pd-faq-tabs button { height: 44px; padding: 0 8px; text-align: center; font-size: 15px; }
}
@media (max-width: 700px) { .pd-proc-step { grid-template-columns: 1fr; gap: 28px; } }
@media (prefers-reduced-motion: reduce) { .pd-faq-tabs button, .pd-faq-tabs button::after { transition: none; } }

/* the timeline drawings answer a hover like home's Why cards (site.css why hover) */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .pd-proc-step:is(:hover, :focus-within) .pd-iso { --x-rd: hv-rd; --x-in: hv-in; --x-fl: hv-fl; --x-hop: hv-hop; --x-gl: hv-gl; --x-pl: hv-pl; }
  .pd-proc-step:is(:hover, :focus-within) .pd-iso :is(.hv, .hv-s) { --h: 1; transition: --h 650ms var(--hv-e) var(--hd, 0ms); }
}

/* the pricing columns carry no button of their own now, one Book a call sits under the row (critic W-P2-6,
   2026-10-15), so the list keeps the space the button held */
body[data-page="how-we-work"] .pd-plan-d + ul { margin-top: 30px; }
