/* Dyenzo marketing site, presales layer (docs/marketing.md, docs/marketing/positioning.md): the early access line, mega menu items,
   the call to action block, device frames, the home sections, the feature chapters and list, module pages and the pricing
   calculator. Loaded on every page after motion.css. Classes start ps- (page parts) and dv- (device frames). */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Early access line: above the header in preview; it scrolls away and the header moves up to the top (motion.js sets .early-gone). */
.dz-early { position: absolute; top: 0; left: 0; right: 0; z-index: 51; display: flex; align-items: center; justify-content: center; gap: 10px; height: 36px; padding: 0 16px; background: #0B0C10; color: rgb(255 255 255 / .82); font-size: 14px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid rgb(255 255 255 / .08); }
.dz-early u { color: var(--y); text-underline-offset: 3px; }
.dz-early:hover u { text-decoration-thickness: 2px; }
.dz-early-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 4px rgb(245 197 24 / .18); flex: none; }
body.has-early:not(.early-gone) .dz-top { top: 36px; }
body.dz.has-early main { padding-top: 140px; }
body.dz.has-early.has-stage main { padding-top: 0; }
body.has-early .dz-hero .dz-wrap { padding-top: 156px; }
@media (max-width: 560px) { .dz-early { font-size: 12.5px; } .dz-early u { display: none; } }

/* Mega menu with the script (.dz-nav.js), owner 23 Nov 2026 ("it's just coming in"): the panel drops open like a blind
   (clip-path, about 550 ms on a long ease-out), the page behind dims and softens, and the links follow 40 ms apart once the panel
   is part-way down (--i, set by ui.js). Moving between menus (.swap) crossfades in place instead of opening again. */
.dz-nav.js .dz-mega { clip-path: inset(0 0 100% 0 round 0 0 20px 20px); opacity: 1; transform: translateY(-6px); transition: clip-path .55s cubic-bezier(.16, 1, .3, 1), transform .55s cubic-bezier(.16, 1, .3, 1), visibility 0s .55s; }
.dz-nav.js > li.open .dz-mega { clip-path: inset(0 0 0 0 round 0 0 20px 20px); transform: none; visibility: visible; transition: clip-path .55s cubic-bezier(.16, 1, .3, 1), transform .55s cubic-bezier(.16, 1, .3, 1), visibility 0s; }
.dz-nav.js .rise, .dz-nav.js .dz-mm-item { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--dz-ease), transform .45s var(--dz-ease); transition-delay: 0s; }
.dz-nav.js > li.open .rise, .dz-nav.js > li.open .dz-mm-item { transition-delay: calc(120ms + var(--i, 0) * 40ms); }
/* The page behind the open menu dims and softens (a layer of the fixed header, so it sits over the page and under the menu). */
.dz-top::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; background: rgb(10 11 15 / .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .45s var(--dz-ease); }
.dz-top:has(.dz-nav.js > li.open)::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .dz-nav.js .dz-mega, .dz-nav.js > li.open .dz-mega, .dz-nav.js .rise, .dz-nav.js .dz-mm-item, .dz-top::after { transition-duration: .01s; transition-delay: 0s; } }
@media (prefers-reduced-transparency: reduce) { .dz-top::after { -webkit-backdrop-filter: none; backdrop-filter: none; } }
.dz-nav.js > li.open .rise, .dz-nav.js > li.open .dz-mm-item { opacity: 1; transform: none; }
.dz-nav.js.swap .dz-mega { transform: none; transition-duration: .2s; }
.dz-nav.js.swap .rise, .dz-nav.js.swap .dz-mm-item { transform: none; transition-delay: 0s; }
.dz-nav > li.open > button::after { transform: scaleX(1); }
/* Phone menu accordions open smoothly where the browser can animate to auto height. */
@supports (interpolate-size: allow-keywords) {
  .dz-menu nav details { interpolate-size: allow-keywords; }
  .dz-menu nav details::details-content { height: 0; overflow: clip; transition: height .25s var(--dz-ease), content-visibility .25s allow-discrete; }
  .dz-menu nav details[open]::details-content { height: auto; }
}

/* Mega menu items: an icon in the module's ink, the name and one line. */
.dz-mm-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 22px; }
.dz-mm-h { margin: 0 0 6px; padding: 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dz-mm-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 16px; }
.dz-mm-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--text); transition: background-color .2s; }
.dz-mm-item:hover, .dz-mm-item:focus-visible { background: var(--surface-2); }
.dz-mm-item strong { display: block; font-size: 15px; }
.dz-mm-item span span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; margin-top: 2px; }
.dz-ico { flex: none; width: var(--tile-s); height: var(--tile-s); border-radius: var(--tile-r-s); display: inline-grid; place-items: center; font-size: var(--ico-s); background: var(--accent-soft); color: var(--accent-text); }
.dz-ico.sm { width: var(--tile-xs); height: var(--tile-xs); border-radius: var(--tile-r-xs); font-size: var(--ico-xs); }
.ink-y .dz-ico { color: #7A5F00; }
@media (prefers-color-scheme: dark) { .ink-y .dz-ico { color: var(--y); } }
@media (max-width: 1200px) { .dz-mm-groups, .dz-mm-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Phone menu: one accordion per menu. */
.dz-menu nav details { border-bottom: 1px solid var(--line); }
.dz-menu nav details summary { list-style: none; cursor: pointer; padding: 13px 0; font-weight: 600; display: flex; justify-content: space-between; color: var(--text); border: 0; border-radius: 0; font-size: 16px; }
.dz-menu nav details summary::after { content: "+"; font-weight: 400; }
.dz-menu nav details[open] summary::after { content: "\2212"; }
.dz-menu nav details a { padding: 10px 0 10px 14px; font-size: 15px; }
.dz-menu nav details a:last-child { border-bottom: 0; }
@media (max-width: 1020px) { .dz-menu[open] nav { max-height: calc(100dvh - 120px); overflow-y: auto; } }

/* The call to action block: one button, a quiet second way in, and the trust lines. */
.ps-cta { margin-top: 30px; }
.ps-cta-row { display: flex; gap: 14px 22px; flex-wrap: wrap; align-items: center; }
.ps-cta .btn.cta { min-height: 52px; padding: 0 26px; }
.ps-talk { font-weight: 600; color: var(--text); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.ps-talk:hover { text-decoration: underline; }
.ps-trust { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; color: var(--muted); }
.ps-trust li { display: inline-flex; gap: 6px; align-items: center; }
.ps-trust i { color: var(--c); font-size: 16px; }
.ps-cta.on-dark .ps-talk { color: #fff; }
.ps-cta.on-dark .ps-trust { color: rgb(255 255 255 / .72); }
.ps-cta.on-dark .ps-trust i { color: var(--y); }
.dz-sec .ps-cta:last-child { margin-top: 48px; }

/* Device frames: generic shapes in CSS, holding real captures. */
.dv { position: relative; }
.dv figure { margin: 0; }
.dv-screen { position: relative; overflow: hidden; background: #F4F3EE; }
.dv-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.dv-laptop .dv-screen { aspect-ratio: 16 / 10; border: 10px solid #1A1B21; border-bottom-width: 14px; border-radius: 16px 16px 4px 4px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .45); }
.dv-laptop .dv-base { height: 14px; margin: 0 -7%; border-radius: 0 0 14px 14px; background: linear-gradient(#C9CAC6, #8E9096); box-shadow: 0 18px 30px -12px rgb(0 0 0 / .35); position: relative; }
.dv-laptop .dv-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #7B7D83; }
.dv-tablet .dv-screen { aspect-ratio: 4 / 3; border: 12px solid #16171C; border-radius: 26px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .5), inset 0 0 0 1px rgb(255 255 255 / .06); }
.dv-phone .dv-screen { aspect-ratio: 9 / 19.5; border: 8px solid #16171C; border-radius: 34px; box-shadow: 0 40px 70px -25px rgb(0 0 0 / .55); }
.dv-phone .dv-screen::before { content: ""; position: absolute; z-index: 2; top: 8px; left: 50%; width: 30%; height: 16px; transform: translateX(-50%); border-radius: 10px; background: #16171C; }
.dv-cover { object-position: 18% top !important; }
/* The trio in the hero: laptop behind, tablet and phone in front. */
.dv-trio { min-height: 340px; }
.dv-trio .dv-laptop { width: 92%; margin-left: 8%; }
.dv-trio .dv-tablet { position: absolute; width: 46%; left: -4%; bottom: -6%; }
.dv-trio .dv-phone { position: absolute; width: 20%; right: -2%; bottom: -10%; }
.dv-row { display: grid; grid-template-columns: 1fr; position: relative; padding-bottom: 8%; }
.dv-row .dv-laptop { width: 86%; }
.dv-row .dv-tablet { position: absolute; width: 44%; right: 6%; bottom: 0; }
.dv-row .dv-phone { position: absolute; width: 17%; right: 0; bottom: -4%; }
.dv-row.wide { max-width: 1000px; margin: 40px auto 0; }
/* The drawn scan screen when no phone capture is there yet. */
.dv-app { position: absolute; inset: 0; display: flex; flex-direction: column; background: #0E0F14; color: #fff; font-size: 11px; }
.dv-app-top { display: flex; justify-content: space-between; padding: 30px 14px 10px; font-weight: 700; font-size: 13px; }
.dv-view { position: relative; flex: 1; margin: 6px 14px; border-radius: 14px; background: radial-gradient(circle at 50% 45%, #3A3C45, #1F2027); }
.dv-corner { position: absolute; width: 22px; height: 22px; border: 3px solid var(--y); }
.dv-corner.a { left: 16%; top: 30%; border-right: 0; border-bottom: 0; } .dv-corner.b { right: 16%; top: 30%; border-left: 0; border-bottom: 0; }
.dv-corner.c { left: 16%; bottom: 30%; border-right: 0; border-top: 0; } .dv-corner.d { right: 16%; bottom: 30%; border-left: 0; border-top: 0; }
.dv-bars { position: absolute; left: 24%; right: 24%; top: 40%; bottom: 40%; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 8px); opacity: .9; }
.dv-laser { position: absolute; left: 18%; right: 18%; top: 50%; height: 2px; background: var(--m-hi); box-shadow: 0 0 10px var(--m-hi); }
.dv-sheet { margin: 10px; padding: 12px; border-radius: 14px; background: #fff; color: #15161C; display: grid; gap: 3px; }
.dv-sheet strong { font-size: 12.5px; }
.dv-sheet span { color: #6B6E76; }
.dv-ok { color: #1F8A4C !important; font-weight: 700; display: flex; gap: 4px; align-items: center; }

/* Home: hero copy, facts, and section furniture. */
/* The hero: the line and the action on top, then two large, readable devices (a laptop and a phone). */
.ps-hero .dz-wrap { grid-template-columns: minmax(0, 1fr); gap: 64px; padding-bottom: 72px; }
.ps-hero-copy { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 24px 64px; align-items: end; }
.ps-hero h1 { font-size: clamp(2.6rem, 1.2rem + 4.2vw, 5.4rem); }
.ps-hero .sub { margin-top: 0; }
.dv-hero { width: 1040px; max-width: 100%; margin: 0 auto; min-height: 0; padding: 0 0 2%; }
.dv-hero .dv-laptop { width: 74.5%; margin: 0; }
.dv-hero .dv-phone { position: absolute; width: 25%; right: 0; bottom: -2%; left: auto; }
.dv-note { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--y); color: #15161C; font-size: 14px; font-weight: 700; letter-spacing: -.005em; white-space: nowrap; box-shadow: 0 14px 30px -10px rgb(0 0 0 / .5); }
.dv-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #15161C; }
.dv-laptop .dv-note { left: 34%; top: -16px; }
.dv-phone .dv-note { right: 72%; bottom: 22%; }
/* The phone's camera pill sits over a status bar, not over the page. */
.dv-phone .dv-screen img { box-sizing: border-box; padding-top: 11%; background: #fff; }
.ps-eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: rgb(255 255 255 / .62); max-width: 52ch; }
.ps-facts { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 12px 30px; }
.ps-facts li { display: grid; }
.ps-facts strong { font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ps-facts span { font-size: 13px; color: rgb(255 255 255 / .6); }
.ps-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ps-kicker span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--k); color: var(--bg); font-size: 12px; letter-spacing: 0; }
.ps-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.ps-more { margin-top: 24px; }
.ps-more a { font-weight: 600; }
.ps-fine { color: var(--muted); font-size: 13.5px; margin: 18px 0 0; }

/* The problem: the mess, drawn. */
.ps-pains { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ps-pains li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--muted); }
.ps-pains i { font-size: 22px; color: var(--m); }
.ps-pains strong { color: var(--text); }
.ps-mess { position: relative; min-height: 480px; border-radius: 28px; background: repeating-linear-gradient(0deg, transparent 0 31px, var(--line) 31px 32px), var(--surface-2); overflow: hidden; }
.ps-scrap { position: absolute; width: 230px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px rgb(14 15 20 / .12); display: grid; gap: 2px; font-size: 14px; }
.ps-scrap i { font-size: 22px; color: var(--muted); }
.ps-scrap strong { font-size: 15px; }
.ps-scrap span { color: var(--muted); }
.ps-scrap.s1 { left: 6%; top: 6%; transform: rotate(-5deg); } .ps-scrap.s2 { right: 4%; top: 10%; transform: rotate(4deg); }
.ps-scrap.s3 { left: 22%; top: 30%; transform: rotate(3deg); z-index: 2; } .ps-scrap.s4 { right: 10%; top: 40%; transform: rotate(-6deg); background: #FFFDF2; }
.ps-scrap.s5 { left: 3%; top: 58%; transform: rotate(6deg); } .ps-scrap.s6 { left: 38%; top: 66%; transform: rotate(-3deg); z-index: 2; }
.ps-scrap.s7 { right: 3%; bottom: 4%; transform: rotate(5deg); }
@media (prefers-color-scheme: dark) { .ps-scrap.s4 { background: var(--surface); } }

/* App grid. */
.ps-apps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1020px) { .ps-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ps-app { height: 100%; display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .35s var(--dz-ease), box-shadow .35s var(--dz-ease), border-color .35s; }
.ps-app:hover, .ps-app:focus-visible { transform: translateY(-4px); box-shadow: 0 24px 50px rgb(14 15 20 / .1); border-color: var(--accent); }
.ps-app strong { font-size: 1.15rem; margin-top: 6px; }
.ps-app > span:last-child { color: var(--muted); font-size: 15px; }
.ps-included { display: flex; gap: 10px; align-items: center; margin: 24px 0 0; font-weight: 600; }
.ps-included i { color: #1F8A4C; font-size: 22px; }

/* Department tabs. Without the script the panels stack. */
.ps-tabs { margin-top: 40px; }
.ps-tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.ps-tablist [role=tab] { font: inherit; font-size: 15px; font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.ps-tablist [role=tab][aria-selected=true] { background: var(--k); color: var(--bg); border-color: var(--k); }
.ps-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; padding: 32px; border-radius: 28px; background: var(--surface-2); }
.ps-panel[hidden] { display: none; }
.ps-tabs:not(.is-tabs) .ps-panel + .ps-panel { margin-top: 20px; }
.ps-panel h3 { font-size: 1.6rem; margin: 0; }
.ps-panel p { color: var(--muted); font-size: 1.08rem; }
.ps-mini-apps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ps-mini-apps a { display: inline-flex; gap: 12px; align-items: center; font-weight: 600; color: var(--text); text-decoration: none; }
.ps-mini-apps a:hover { text-decoration: underline; }
.ps-shot { margin: 0; }
.ps-shot img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 40px 80px -36px rgb(14 15 20 / .35); }
.ps-shot figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; }

/* One order, quote to cash. */
.ps-flow { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; position: relative; }
.ps-flow::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: linear-gradient(90deg, var(--c), var(--m), var(--y), var(--k)); transform-origin: left; }
.ps-flow li { position: relative; padding: 32px 14px 0 0; display: grid; gap: 4px; align-content: start; }
.ps-dot { position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.ps-flow time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ps-flow strong { font-size: 1.05rem; }
.ps-flow span { color: var(--muted); font-size: 14.5px; }
.ps-flow a { font-size: 13.5px; font-weight: 600; color: var(--accent-text); margin-top: 4px; }

/* Pillars and the lock card. */
.ps-pillar .sc-row { margin-top: 0; }
.ps-lockcard { padding: 30px; border-radius: 24px; background: var(--stage); color: #fff; display: grid; gap: 8px; box-shadow: 0 40px 80px -40px rgb(14 15 20 / .6); }
.ps-lockcard .sc-label { color: rgb(255 255 255 / .55); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ps-lockcard strong { font-size: 1.1rem; font-weight: 500; color: rgb(255 255 255 / .8); }
.ps-lockdate { display: flex; gap: 12px; align-items: center; font-size: clamp(1.8rem, 1rem + 2vw, 2.6rem); font-weight: 600; letter-spacing: -.03em; color: var(--y); }
.ps-lockcard .ps-fine { color: rgb(255 255 255 / .55); margin: 0; }

/* Shop types. */
.ps-typegrid { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ps-typegrid a { display: grid; gap: 6px; color: var(--text); text-decoration: none; }
.ps-typegrid img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; margin-bottom: 10px; transition: transform .5s var(--dz-ease); }
.ps-typegrid a:hover img { transform: scale(1.02); }
.ps-typegrid strong { font-size: 1.2rem; }
.ps-typegrid span { color: var(--muted); }

/* Works with. */
/* Categories flow in columns (masonry), so a short list never leaves a tall empty card. */
.ps-works { margin-top: 40px; columns: 4 260px; column-gap: 18px; }
.ps-works-cat { break-inside: avoid; margin: 0 0 18px; }
/* Pages showing only one to three groups (a module's own): the groups share the full width, never one narrow column beside empty space. */
.ps-works:has(> .ps-works-cat:only-child) { columns: auto; }
.ps-works:has(> .ps-works-cat:nth-child(2):last-child) { columns: 2 300px; }
.ps-works:has(> .ps-works-cat:nth-child(3):last-child) { columns: 3 260px; }
.ps-works-cat { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.ps-works-cat h3 { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ps-works-cat ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ps-works-cat li { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; background: var(--surface-2); }
.ps-works-cat li span { font-weight: 700; font-size: 14px; letter-spacing: -.01em; color: var(--text); opacity: .8; }
.ps-works-cat img { height: 20px; width: auto; filter: brightness(0); opacity: .72; }
@media (prefers-color-scheme: dark) { .ps-works-cat img { filter: brightness(0) invert(1); } }

/* Moving: four steps. */
.ps-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ps-steps li { padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.ps-steps li > span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--y); color: #15161C; font-weight: 700; }
.ps-steps strong { display: block; margin-top: 14px; font-size: 1.1rem; }
.ps-steps p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* Features page: module chapters. */
.ps-chapter { padding: 72px 0 24px; border-top: 1.5px solid var(--line); scroll-margin-top: 120px; }
.ps-chapter-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.ps-chapter-head .dz-ico { width: var(--tile-m); height: var(--tile-m); border-radius: var(--tile-r-m); font-size: var(--ico-m); }
.ps-chapter-head h2 { margin: 0; font-size: clamp(1.8rem, 1.1rem + 2vw, 2.8rem); letter-spacing: -.03em; line-height: 1.08; }
.ps-chapter-head .lead { margin-top: 12px; }
.ps-how { counter-reset: h; list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ps-how li { counter-increment: h; padding: 18px 20px; border-radius: 16px; background: var(--accent-soft); color: var(--text); font-size: 15.5px; }
.ps-how li::before { content: counter(h); display: block; font-weight: 700; color: var(--accent-text); margin-bottom: 4px; }
.ps-feature { border-top: 0; padding: 48px 0 8px; scroll-margin-top: 120px; }
.ps-feature-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.ps-feature-grid.nopic { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.ps-feature h3 { font-size: 1.5rem; margin: 0; letter-spacing: -.02em; }
.ps-problem-line { margin: 10px 0 0; color: var(--m-text); font-weight: 600; }
.ps-feature .lead { margin: 10px 0 18px; }
.ps-sig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.ps-sig-item h3 { margin: 0; font-size: 1.3rem; }
.ps-sig-item p { color: var(--muted); margin: 6px 0 18px; }

/* The full feature list. */
.ps-cat { margin-top: 32px; }
.ps-cat-tools { position: sticky; top: 96px; z-index: 5; padding: 14px; margin-bottom: 20px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); display: grid; gap: 12px; }
body.has-early .ps-cat-tools { top: 132px; }
.ps-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); }
.ps-search input { flex: 1; min-width: 0; min-height: 46px; border: 0; background: none; font: inherit; color: var(--text); outline: none; }
.ps-search:focus-within { border-color: var(--c); }
.ps-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-chips button { font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.ps-chips button[aria-pressed=true] { background: var(--k); color: var(--bg); border-color: var(--k); }
.ps-cat-count { margin: 0; color: var(--muted); font-size: 14px; }
.ps-cat-group { margin-top: 28px; }
.ps-cat-group h3 { display: flex; gap: 10px; align-items: baseline; margin: 0 0 12px; font-size: 1.2rem; }
.ps-cat-group h3 a { color: var(--text); text-decoration: none; }
.ps-cat-group h3 a:hover { text-decoration: underline; }
.ps-cat-group h3 span { font-size: 13px; color: var(--muted); font-weight: 600; }
.ps-cat-group ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.ps-cat-group li { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); display: grid; gap: 3px; }
.ps-cat-group li[hidden], .ps-cat-group[hidden] { display: none; }
.ps-cat-group li strong { font-size: 15px; }
.ps-cat-group li span { font-size: 14px; color: var(--muted); }

/* Modules directory and module pages. */
.ps-dir { padding: 48px 0 8px; }
.ps-dir h2 { margin: 0 0 20px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ps-dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.ps-dir-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 120px; }
.ps-dir-card h3 { margin: 4px 0 0; font-size: 1.35rem; font-weight: 500; }
.ps-dir-card h3 b { font-weight: 700; }
.ps-benefit { margin: 0; font-size: 1.05rem; font-weight: 600; }
.ps-dir-card .ticks { font-size: 15px; color: var(--muted); gap: 8px; }
.ps-dir-go { margin-top: auto; font-weight: 600; color: var(--accent-text); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.ps-dir-go:hover { text-decoration: underline; }
.ps-mhero .eyebrow { gap: 10px; }
.ps-mhero .ps-split { align-items: center; }
.ps-shot.big img { box-shadow: 0 50px 100px -40px rgb(14 15 20 / .45); }
.ps-msec { padding: 64px 0 8px; border-top: 1.5px solid var(--line); margin-top: 48px; }
.ps-msec h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); letter-spacing: -.03em; }
.ps-flows { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ps-flows a { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; height: 100%; }
.ps-flows a:hover { border-color: var(--accent); }
.ps-flows .dz-ico { grid-row: span 2; }
.ps-flows span:last-child { color: var(--muted); font-size: 14.5px; }

/* Pricing calculator. */
.ps-calcband { padding: 72px 0; }
.ps-calc { padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgb(14 15 20 / .35); }
.ps-calc[hidden] { display: none; }
.ps-calc fieldset { border: 0; padding: 0; margin: 0; }
.ps-calc legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.ps-calc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ps-calc-row label:first-child { display: flex; gap: 10px; align-items: center; }
.ps-calc-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--c); }
.ps-calc-cost { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.ps-calc-cost input, .ps-calc select { width: 96px; min-height: 40px; padding: 0 10px; font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; }
.ps-calc select { width: auto; max-width: 100%; }
.ps-calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.ps-calc-out div { padding: 16px; border-radius: 16px; background: var(--surface-2); display: grid; }
.ps-calc-out div.us { background: var(--stage); color: #fff; }
.ps-calc-out span { font-size: 13px; opacity: .7; }
.ps-calc-out strong { font-size: 1.9rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ps-calc-out small { opacity: .7; }

/* Small screens: one column, no sideways scroll. */
@media (max-width: 1020px) {
  .ps-hero .dz-wrap, .ps-split, .ps-panel, .ps-feature-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ps-flow { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ps-flow::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--c), var(--m), var(--y), var(--k)); }
  .ps-flow li { padding: 0 0 0 34px; }
  .ps-typegrid, .ps-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-how, .ps-sig { grid-template-columns: minmax(0, 1fr); }
  .dv-trio { margin: 10px 2% 20px; min-height: 0; padding-bottom: 18%; }
  .dv-trio .dv-laptop { width: 100%; margin-left: 0; }
  .dv-trio .dv-tablet { left: 0; bottom: 0; width: 48%; }
  .dv-trio .dv-phone { right: 2%; bottom: 0; width: 21%; }
  .ps-hero-copy { grid-template-columns: minmax(0, 1fr); }
  .dv-hero { padding-bottom: 6%; }
  .ps-hero .dz-wrap { padding-bottom: 40px; gap: 44px; }
  .dv-hero .dv-laptop { width: 82%; }
  .dv-hero .dv-phone { width: 27%; right: 0; bottom: 0; }
  .dv-note { font-size: 12.5px; padding: 6px 11px; }
}
@media (max-width: 640px) {
  .ps-typegrid, .ps-steps, .ps-calc-out { grid-template-columns: minmax(0, 1fr); }
  .ps-mess { min-height: 0; display: grid; gap: 10px; padding: 14px; }
  .ps-scrap { position: static; width: auto; transform: none !important; }
  .ps-panel { padding: 20px; }
  .ps-facts { gap: 10px 22px; }
  .ps-facts strong { font-size: 1.5rem; }
  .dv-note { display: none; }
  .ps-calc-row { flex-wrap: wrap; }
  .ps-apps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .ps-app { padding: 16px; }
  .ps-cat-group ul, .ps-dir-grid { grid-template-columns: minmax(0, 1fr); }
  .ps-works { columns: 1; }
  .ps-cat-tools { position: static; }
}
/* The drawn phone screen scales with its frame. */
.dv-phone .dv-screen { container-type: inline-size; }
.dv-app { font-size: 6.4cqw; }
.dv-app-top { padding: 18cqw 7cqw 4cqw; font-size: 7.5cqw; }
.dv-view { margin: 3cqw 7cqw; border-radius: 7cqw; }
.dv-corner { width: 10cqw; height: 10cqw; border-width: 1.6cqw; }
.dv-sheet { margin: 5cqw; padding: 6cqw; border-radius: 7cqw; gap: 1.5cqw; }
.dv-sheet strong { font-size: 7.2cqw; }
/* Films (public/site/video): the hero loop sits behind the copy; the tour plays on click with captions. */
.ps-hero-loop { position: absolute; inset: 0; background: center / cover no-repeat; opacity: .12; filter: blur(6px); pointer-events: none; } /* faint, so its screens never read as words behind the headline */
.ps-hero-loop video { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .ps-hero-loop video { display: none; } }
.ps-film { display: block; width: 100%; height: auto; margin-top: 36px; border-radius: 22px; background: #0E0F14; box-shadow: 0 50px 100px -40px rgb(14 15 20 / .5); }
/* Founding shops: a calm, premium band (partials/founding). */
.ps-foundband { padding: 40px 0 0; }
.ps-founding { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; padding: 36px; border-radius: 28px; background: var(--stage); color: #fff; box-shadow: 0 50px 100px -50px rgb(14 15 20 / .6); margin: 28px 0; }
.ps-founding .ps-kicker { display: flex; color: var(--y); }
.ps-founding-h { display: block; }
.ps-founding-h { margin: 0; font-size: clamp(1.6rem, 1rem + 1.8vw, 2.4rem) !important; letter-spacing: -.03em; color: #fff; }
.ps-founding p { color: rgb(255 255 255 / .74); margin: 10px 0 0; }
.ps-founding ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ps-founding li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: rgb(255 255 255 / .74); }
.ps-founding li i { color: var(--y); font-size: 22px; }
.ps-founding li strong { color: #fff; }
.ps-founding-mark { display: grid; grid-template-columns: 18px 18px; gap: 5px; }
.ps-founding-mark i { width: 18px; height: 18px; border-radius: 50%; }
.ps-founding-mark i:nth-child(1) { background: var(--c-hi); } .ps-founding-mark i:nth-child(2) { background: var(--m-hi); } .ps-founding-mark i:nth-child(3) { background: var(--y); } .ps-founding-mark i:nth-child(4) { background: #F4F4F1; }
@media (max-width: 640px) { .ps-founding { grid-template-columns: minmax(0, 1fr); padding: 24px; } }
.ps-works-cat li a { font-weight: 700; font-size: 14px; color: var(--text); text-decoration: none; }
.ps-works-cat li a:hover { text-decoration: underline; }
/* Works with marks: the brand shape in one muted ink (mask), or a neutral monogram tile where there is no file. */
.ps-works-cat li { gap: 8px; }
.ps-mark { width: 20px; height: 20px; flex: none; background: #000; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ps-mono { width: 20px; height: 20px; flex: none; display: inline-grid; place-items: center; border-radius: 5px; background: var(--line); color: var(--muted); font-size: 9.5px; font-weight: 800; letter-spacing: -.02em; }
@media (prefers-color-scheme: dark) { .ps-mark { background: #fff; } }
/* The hero film's pause button (WCAG 2.2.2). */
.ps-loop-toggle { position: absolute; z-index: 3; right: 20px; bottom: 20px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .35); background: rgb(14 15 20 / .6); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ps-loop-toggle:hover { border-color: #fff; }
@media (prefers-reduced-motion: reduce) { .ps-loop-toggle { display: none; } }
/* Brand site icons (logos/works-with/fav): the brand's own colours, one size, on a white tile. */
.ps-works-cat img.ps-fav, .ps-fav { filter: none; opacity: 1; height: 20px; width: 20px; height: 20px; flex: none; padding: 2px; box-sizing: content-box; border-radius: 6px; background: #fff; object-fit: contain; box-shadow: 0 0 0 1px rgb(14 15 20 / .08); }
.ps-dir-card { border-top: 4px solid var(--accent); }

/* Pricing, option A (pricing.blade.php): one product in three sizes, side doors, a size-only comparison table.
   .pm / .py are the monthly and yearly prices, switched by the Billing period radios with no script. */
.pz .py { display: none; }
.pz:has(#bill-y:checked) .py { display: inline; }
.pz:has(#bill-y:checked) .pm { display: none; }
.pz-head { text-align: center; margin-inline: auto; }
.pz-switches { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.pz-switches .currency { margin-top: 0; }
.pz-switches .currency label { min-height: 44px; }
.pz-founding-strip { display: flex; gap: 12px; align-items: flex-start; max-width: 860px; margin: 36px auto 0; padding: 14px 18px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--y, #F5C518) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--y, #F5C518) 55%, var(--line)); font-size: .95rem; }
.pz-founding-strip i { font-size: 22px; flex: none; margin-top: 1px; }
.pz-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; align-items: stretch; }
.pz-plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px 26px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pz-plan.pick { border-color: var(--text); box-shadow: 8px 8px 0 var(--m, #C8157A); }
.pz-tag { position: absolute; top: -13px; left: 24px; margin: 0; padding: 3px 12px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.pz-plan h2 { font-size: 1.35rem; margin: 0; }
.pz-plan h2 span { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; }
.pz-for { color: var(--muted); margin: 0; }
.pz-price { font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin: 14px 0 0; }
.pz-price small { font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.pz-list { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.pz-ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; border-top: 1px solid var(--line); padding-top: 18px; font-size: .95rem; }
.pz-ticks li { display: flex; gap: 10px; }
.pz-ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--c, #0A7EA4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pz-side { display: grid; gap: 12px; margin-top: 28px; }
.pz-door { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 18px 24px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.pz-door h2 { font-size: 1.1rem; margin: 0; }
.pz-door h2 span { font-weight: 500; color: var(--muted); font-size: .95rem; margin-left: 6px; }
.pz-door p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.pz-door .pz-door-price { margin: 0; text-align: right; font-size: 1.5rem; font-weight: 800; color: var(--text); flex: none; }
.pz-door-price small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.pz-door-list { display: block; font-weight: 500 !important; }
.pz-notes { margin-top: 24px; max-width: 860px; }
.pz-compare .lead { margin-top: 8px; }
.pz-table { margin-top: 24px; overflow-x: auto; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pz-table table { width: 100%; border-collapse: collapse; min-width: 520px; }
.pz-table th, .pz-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: center; font-size: .95rem; }
.pz-table th[scope=row], .pz-table thead th:first-child { text-align: left; font-weight: 600; }
.pz-table thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pz-table tr:last-child > * { border-bottom: 0; }
.pz-table td .ph-check { color: var(--c, #0A7EA4); font-size: 20px; }
.pz-table tr.pz-size > * { background: color-mix(in srgb, var(--line) 30%, transparent); }
@media (max-width: 900px) {
  .pz-plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .pz-door { flex-direction: column; align-items: flex-start; }
  .pz-door .pz-door-price { text-align: left; }
}

/* The answer block under a page's hero (partials/answer): one question, one short answer AI search can lift. */
.pz-answer { padding: 40px 0 8px; }
.pz-answer-in { max-width: 820px; margin-inline: auto; padding: 24px 28px; border-left: 4px solid var(--c, #0A7EA4); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.pz-answer h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 0 0 8px; }
.pz-answer p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--text); }
/* Pricing: the prices above the fold at 1440x900 (audit 23 Nov: the first price sat below it). */
.hero.pz { padding-top: 48px; }
.pz h1 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); line-height: 1.08; }
.pz-head .lead { margin-top: 12px; }
.pz-switches { margin-top: 18px; }
.pz-founding-strip { margin-top: 22px; }
.pz-plans { margin-top: 28px; }
