/* Module, solution and feature pages (marketing/page.blade.php for kind solution and feature, marketing/module.blade.php). Classes start pg-. */

/* Hero: words on the left, a real screen on the right; on a phone the screen follows the button. */
.pg-hero { padding: 36px 0 24px; }
.pg-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.pg-hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.2vw, 4rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; margin: 10px 0 0; max-width: 16ch; }
.pg-hero .dz-lede { font-size: 1.2rem; max-width: 40ch; }
.pg-hero .ps-cta { margin-top: 26px; }
.pg-hero .dz-crumbs { margin-bottom: 4px; }

/* Frames: a light browser frame for desktop crops, a tablet and a phone for the device captures. Never a whole page shrunk. */
.pg-media { position: relative; margin: 0; }
.pg-frame { margin: 0; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 40px 80px -36px rgb(14 15 20 / .35); overflow: hidden; }
.pg-frame::before { content: ""; display: block; height: 26px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 16px 13px, #E5484D 4px, transparent 4.5px), radial-gradient(circle at 32px 13px, var(--y) 4px, transparent 4.5px), radial-gradient(circle at 48px 13px, #30A46C 4px, transparent 4.5px), var(--surface-2); }
.pg-frame img, .pg-tab img, .pg-phone img { display: block; width: 100%; height: auto; }
.pg-tab { margin: 0; padding: 12px; border-radius: 26px; background: #15161C; box-shadow: 0 40px 80px -36px rgb(14 15 20 / .45); }
.pg-tab img { border-radius: 14px; }
.pg-phone { margin: 0; width: 100%; max-width: 280px; padding: 9px; border-radius: 40px; background: #15161C; box-shadow: 0 40px 80px -30px rgb(14 15 20 / .5); }
.pg-phone img { border-radius: 32px; }
.pg-media.has-phone { padding: 0 96px 40px 0; }
.pg-media .sc-stat .sc-label { white-space: nowrap; }
.pg-media.has-phone > .pg-phone { position: absolute; right: 0; bottom: 0; width: 25%; max-width: 180px; padding: 6px; border-radius: 28px; }
.pg-media.has-phone > .pg-phone img { border-radius: 23px; }
.pg-media figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.pg-center { display: grid; justify-items: center; }

/* The live 3D kit in a hero (marketing/pg/kit3d, public/site/kit3d.js): a soft studio floor, the still until the 3D is drawn. */
.k3 { position: relative; padding-bottom: 56px; --k3-card: rgb(255 255 255 / .92); --k3-ink: #15161C; }
.k3-stage { position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: radial-gradient(38% 9% at 50% 90%, rgb(14 15 20 / .18), transparent 70%), radial-gradient(90% 80% at 50% 40%, var(--surface), var(--surface-2)); border: 1px solid var(--line); }
.k3-stage img, .k3-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.k3-stage img { object-fit: cover; transition: opacity .5s ease; }
.k3-stage canvas { opacity: 0; transition: opacity .5s ease; cursor: grab; touch-action: pan-y; }
.k3-stage canvas:active { cursor: grabbing; }
.k3-live .k3-stage canvas { opacity: 1; }
.k3-live .k3-stage img { opacity: 0; }
.k3-busy .k3-stage canvas { opacity: .55; }

/* Cards float over the corners of the stage, like a kit builder's panels; hidden until the 3D is live. */
.k3-card { position: absolute; z-index: 1; padding: 10px; border-radius: 16px; background: var(--k3-card); border: 1px solid var(--line); box-shadow: 0 18px 40px -22px rgb(14 15 20 / .45); backdrop-filter: blur(8px); }
.k3:not(.k3-live) .k3-card, .k3:not(.k3-live) .k3-foot { visibility: hidden; }
.k3-h { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.k3-row, .k3-col, .k3-grid { display: flex; gap: 6px; }
.k3-col { flex-direction: column; }
.k3-grid { display: grid; grid-template-columns: repeat(2, 38px); }
.k3-collar { top: 16px; left: 16px; }
.k3-pattern { top: 118px; left: 16px; }
.k3-colours { top: 16px; right: 16px; }
.k3-crest { bottom: 72px; right: 16px; }
.k3-player { bottom: 72px; left: 16px; }
.k3-opt { position: relative; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--k3-ink); cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.k3-opt:hover { transform: translateY(-1px); border-color: var(--muted); }
.k3-opt[aria-pressed="true"], .k3-own.k3-on { border: 2.5px solid var(--k3-ink); }
.k3-opt:focus-visible, .k3-own:focus-within { outline: 2px solid var(--c); outline-offset: 2px; }
.k3-opt svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.k3-crest .k3-opt svg path:not(.k3-off) { fill: currentColor; opacity: .85; }
.k3-sw { background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); }
.k3-own { overflow: hidden; background: conic-gradient(#E5484D, #F5C518, #30A46C, #2BB3E0, #C8157A, #E5484D); }
.k3-own input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.k3-own i { color: #fff; font-size: 16px; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .5)); pointer-events: none; }
.k3-pat { background-color: #14233F; }
.k3-pat-stripes { background-image: repeating-linear-gradient(45deg, #2A3F6B 0 5px, transparent 5px 10px); }
.k3-pat-hoops { background-image: repeating-linear-gradient(0deg, #2A3F6B 0 5px, transparent 5px 10px); }
.k3-pat-sash { background-image: linear-gradient(135deg, transparent 38%, #D4A017 38% 58%, transparent 58%); }
.k3-pat-fade { background-image: linear-gradient(0deg, #D4A017, #14233F 70%); }
.k3-fields { display: flex; gap: 6px; }
.k3-fields input { height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: inherit; padding: 0 10px; font: 600 15px/1 inherit; text-transform: uppercase; }
.k3-fields input[name="k3-name"] { width: 128px; }
.k3-fields input[name="k3-number"] { width: 52px; text-align: center; }
.k3-fields input:focus { outline: 2px solid var(--c); outline-offset: 1px; border-color: transparent; }
.k3-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.k3-faces { display: inline-flex; padding: 3px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); }
.k3-faces button { border: 0; background: none; padding: 7px 14px; border-radius: 99px; font: inherit; font-size: 14px; color: inherit; cursor: pointer; }
.k3-faces button:hover { background: var(--surface-2); }
.k3-roll { font-weight: 600; font-size: 15px; color: var(--c-text, var(--c)); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.k3-roll:hover { text-decoration: underline; }
.k3-ask { top: 16px; left: 50%; translate: -50% -8px; width: min(300px, 46%); display: grid; gap: 10px; padding: 14px; opacity: 0; pointer-events: none; transition: opacity .35s ease, translate .35s ease; }
.k3-ask p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.k3-ask strong { color: var(--text, inherit); }
.k3-ask .btn { justify-self: start; padding: 10px 16px; font-size: 14px; }
.k3.k3-tried .k3-ask { opacity: 1; translate: -50% 0; pointer-events: auto; }
.k3:not(.k3-tried) .k3-ask { visibility: hidden; }
@media (prefers-color-scheme: dark) { .k3 { --k3-card: rgb(28 29 36 / .9); --k3-ink: #fff; } }
/* Narrow: the stage first, the cards in a tidy grid below it, never over the shirt. */
@media (max-width: 1020px) {
    .k3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 0; }
    .k3-foot { position: static; }
    .k3-stage, .k3-foot, .k3-player, .k3-ask { grid-column: 1 / -1; }
    .k3-ask { width: auto; translate: none; order: 1; }
    .k3.k3-tried .k3-ask { translate: none; }
    .k3-card { position: static; backdrop-filter: none; }
    .k3-col { flex-direction: row; flex-wrap: wrap; }
    .k3-grid { display: flex; }
    .k3-fields { flex-wrap: wrap; }
    .k3-fields input[name="k3-name"] { flex: 1; width: auto; }
}

/* The printed roll (marketing/pg/roll): a dark band under the hero with the engine's real output, edge to edge like fabric. */
.pg-roll { padding: clamp(56px, 2rem + 3vw, 88px) 0; background: #15161C; color: #fff; }
.pg-roll .ps-kicker { color: #2BB3E0; }
.pg-roll h2 { color: #fff; max-width: 18ch; margin: 0; }
.pg-roll-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; }
.pg-roll-p { color: rgb(255 255 255 / .78); font-size: 1.12rem; margin: 0; max-width: 46ch; }
.pg-roll-fig { margin: 44px 0 0; }
.pg-step-n { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; color: #fff; }
.pg-step-n span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #2BB3E0; color: #15161C; font-size: 14px; font-weight: 700; }
.pg-steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; }
.pg-step { padding: 22px; border-radius: 20px; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .12); }
.pg-step:nth-child(2) .pg-step-n span { background: #E63D9A; color: #fff; }
.pg-roll-fig .pg-step-n span { background: #F5C518; }
.pg-files { display: grid; gap: 18px; }
.pg-files-kit { width: 100%; height: auto; border-radius: 14px; background: #fff; }
.pg-files ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pg-files li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; }
.pg-files i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgb(255 255 255 / .1); color: #2BB3E0; font-size: 19px; }
.pg-files span { font-size: 13.5px; line-height: 1.3; color: rgb(255 255 255 / .66); }
.pg-files strong { display: block; color: #fff; font-size: 14.5px; }
.pg-sheets { display: grid; gap: 12px; }
.pg-sheet { margin: 0; width: var(--w); padding: 10px 12px 12px; border-radius: 12px; background: #fff; color: #15161C; box-shadow: 0 20px 40px -24px rgb(0 0 0 / .7); }
.pg-sheet figcaption { font-size: 13px; color: #5b5f6b; margin-bottom: 6px; }
.pg-sheet figcaption b { display: inline-block; min-width: 34px; padding: 1px 7px; margin-right: 6px; border-radius: 6px; background: #15161C; color: #fff; text-align: center; }
.pg-sheet img { display: block; width: 100%; height: auto; }
.pg-roll-cta { margin-top: 36px; }
.pg-roll-detail { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.pg-roll-detail h3 { color: #fff; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 14px; }
.pg-roll-opt, .pg-roll-code { margin: 0; padding: 24px; border-radius: 20px; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .12); }
.pg-roll-opt ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pg-roll-opt li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.pg-roll-opt i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgb(245 197 24 / .14); color: #F5C518; font-size: 19px; }
.pg-roll-opt span { color: rgb(255 255 255 / .72); font-size: 15px; line-height: 1.45; }
.pg-roll-opt strong { color: #fff; }
.pg-roll-code > p { color: rgb(255 255 255 / .72); font-size: 15px; margin: 0 0 16px; }
.pg-loupe { position: relative; border-radius: 14px; overflow: hidden; border: 3px solid #F5C518; }
.pg-loupe img { display: block; width: 100%; height: auto; }
.pg-loupe-tag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 99px; background: #F5C518; color: #15161C; font-size: 12.5px; font-weight: 600; }
.pg-roll-code figcaption { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; color: rgb(255 255 255 / .62); font-size: 14px; }
.pg-roll-code code { font-family: ui-monospace, Consolas, monospace; color: #fff; background: rgb(255 255 255 / .1); padding: 2px 6px; border-radius: 6px; margin-right: 4px; }
@media (max-width: 1020px) { .pg-roll-detail { grid-template-columns: 1fr; } }
@media (max-width: 1020px) { .pg-steps { grid-template-columns: 1fr; } }
.pg-roll-sheet { border-radius: 10px; overflow: hidden; background: #fff; padding: 10px 0; box-shadow: 0 40px 90px -40px rgb(0 0 0 / .8); border-top: 4px dashed #E63D9A; border-bottom: 4px dashed #E63D9A; }
.pg-roll-sheet img { display: block; width: 100%; height: auto; }
.pg-roll figcaption { margin-top: 12px; color: rgb(255 255 255 / .62); font-size: .95rem; }
.pg-roll-facts { margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pg-roll-facts div { padding: 20px; border-radius: 16px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); }
.pg-roll-facts dt { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.pg-roll-facts div:nth-child(1) dt { color: #2BB3E0; }
.pg-roll-facts div:nth-child(2) dt { color: #E63D9A; }
.pg-roll-facts div:nth-child(3) dt { color: #F5C518; }
.pg-roll-facts dd { margin: 6px 0 0; color: rgb(255 255 255 / .72); font-size: 15px; }
@media (max-width: 820px) {
    .pg-roll-head { grid-template-columns: 1fr; }
    .pg-roll-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* on a phone the roll reads better as a taller slice than a thin strip */
    .pg-roll-sheet img { width: 200%; max-width: none; }
    .pg-roll-sheet { overflow-x: auto; }
}

/* The offer, one feature per scroll (marketing/pg/story, public/site/story.js). Without the script: a list of steps, each its
   words and its picture. .is-pinned (desktop, motion allowed): one stage, the steps stacked on it, the rail of titles beside. */
.ks { background: #0E0F14; color: #fff; padding: clamp(64px, 3rem + 3vw, 104px) 0 0; overflow: clip; }
.ks .ps-kicker { color: #2BB3E0; }
.ks-head h2 { color: #fff; max-width: 20ch; margin: 0; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.04; }
.ks-rail { display: none; }
.ks-steps { display: grid; gap: clamp(56px, 2rem + 4vw, 96px); margin-top: 48px; }
.ks-step { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.ks-n { margin: 0; font: 600 13px/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; color: #F5C518; }
.ks-n span { color: rgb(255 255 255 / .55); font-family: inherit; margin-left: 10px; letter-spacing: .04em; text-transform: uppercase; }
.ks-text h3 { font-size: clamp(1.8rem, 1.1rem + 2vw, 2.9rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; margin: 14px 0 0; color: #fff; }
.ks-text > p:not(.ks-n) { color: rgb(255 255 255 / .72); font-size: 1.12rem; line-height: 1.55; margin: 16px 0 0; max-width: 44ch; }
.ks-text ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ks-text li { display: flex; gap: 10px; align-items: center; color: rgb(255 255 255 / .86); font-size: 15.5px; }
.ks-text li i { color: #2BB3E0; font-size: 18px; }
.ks-vis { position: relative; min-height: 360px; display: grid; place-items: center; }
.ks-frame, .ks-card, .ks-roll, .ks-loupe { border-radius: 18px; overflow: hidden; background: #fff; color: #15161C; box-shadow: 0 50px 100px -40px rgb(0 0 0 / .9), 0 0 0 1px rgb(255 255 255 / .08); }
.ks-frame img, .ks-loupe img { display: block; width: 100%; height: auto; }
.ks-chip { position: absolute; padding: 9px 14px; border-radius: 99px; background: rgb(255 255 255 / .94); color: #15161C; font-size: 13.5px; box-shadow: 0 16px 30px -14px rgb(0 0 0 / .6); }
.ks-chip b { margin-left: 6px; }
.ks-chip-0 { left: -14px; top: 18%; }
.ks-chip-1 { right: -10px; bottom: 16%; }
.ks-table { width: min(100%, 440px); padding: 8px; font-size: 15px; }
.ks-tr { display: grid; grid-template-columns: 1fr 60px 60px; gap: 8px; padding: 9px 12px; border-radius: 10px; }
.ks-tr:nth-child(even) { background: #F4F4F1; }
.ks-th { font: 600 11px/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: #6b6f7b; background: none !important; }
.ks-tr b { display: inline-block; min-width: 38px; padding: 1px 6px; border-radius: 6px; background: #15161C; color: #fff; text-align: center; font-size: 13px; }
.ks-phone { width: min(46%, 250px); padding: 8px; border-radius: 38px; background: #2a2c35; box-shadow: 0 50px 90px -30px rgb(0 0 0 / .9); }
.ks-phone img { display: block; width: 100%; height: auto; border-radius: 31px; }
[data-vis="phone"] .ks-vis { min-height: 460px; }
.ks-tally { position: absolute; right: 2%; top: 22%; padding: 16px 18px; display: grid; grid-template-columns: auto auto; gap: 4px 18px; align-items: baseline; font-size: 13px; color: #6b6f7b; }
.ks-tally b { font-size: 2rem; color: #15161C; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ks-stamp { position: absolute; right: 12%; top: 34%; padding: 10px 20px; border: 4px solid #30A46C; border-radius: 12px; color: #30A46C; background: rgb(255 255 255 / .92); font: 800 1.6rem/1 "Archivo Black", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .06em; rotate: -10deg; }
.ks-sheets { width: 100%; display: grid; gap: 14px; }
.ks-sheet { margin: 0; width: var(--w); padding: 10px 12px 12px; border-radius: 14px; background: #fff; box-shadow: 0 40px 70px -40px rgb(0 0 0 / .9); }
.ks-sheet figcaption { font-size: 13px; color: #5b5f6b; margin-bottom: 6px; }
.ks-sheet figcaption b { display: inline-block; min-width: 36px; padding: 1px 7px; margin-right: 6px; border-radius: 6px; background: #15161C; color: #fff; text-align: center; }
.ks-sheet img { display: block; width: 100%; height: auto; }
.ks-roll { width: 100%; border-top: 4px dashed #E63D9A; border-bottom: 4px dashed #E63D9A; }
.ks-roll img { display: block; width: 100%; height: auto; }
.ks-facts { position: absolute; left: 50%; bottom: -24px; translate: -50% 0; display: flex; gap: 8px; }
.ks-facts span { padding: 8px 14px; border-radius: 99px; background: #F5C518; color: #15161C; font-size: 14px; white-space: nowrap; }
.ks-loupe { width: 100%; border: 4px solid #F5C518; }
.ks-code { position: absolute; bottom: 8%; left: 0; right: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 0; color: rgb(255 255 255 / .7); font-size: 14px; }
.ks-code code { font-family: ui-monospace, Consolas, monospace; color: #fff; background: rgb(255 255 255 / .12); padding: 3px 8px; border-radius: 7px; margin-right: 4px; }
.ks-pack { width: min(100%, 460px); padding: 10px; display: grid; gap: 6px; }
.ks-pk { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #F4F4F1; font-size: 14.5px; }
.ks-pk i { color: #30A46C; font-size: 20px; }
.ks-pk b { margin-right: 6px; }
.ks-pk em { font-style: normal; font: 600 12px/1 ui-monospace, Consolas, monospace; padding: 4px 7px; border-radius: 6px; background: #15161C; color: #fff; }
.ks-track { display: flex; gap: 8px; align-items: center; padding: 12px; border-radius: 10px; background: #15161C; color: #fff; font-size: 14.5px; }
.ks-track i { color: #2BB3E0; font-size: 20px; }
.ks-scene { width: 100%; }
.ks-after { padding: clamp(48px, 2rem + 3vw, 80px) 0 clamp(64px, 3rem + 3vw, 96px); }
.ks-after .ps-trust { color: rgb(255 255 255 / .7); }
.ks-after .ps-talk { color: #fff; }

/* pinned: the stage fills the screen under the header; the rail tracks the step */
.ks.is-pinned { padding-top: 0; }
.ks.is-pinned .ks-pin { height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 48px; padding-top: 112px; padding-bottom: 40px; box-sizing: border-box; }
.ks.is-pinned .ks-head { grid-column: 1 / -1; }
.ks.is-pinned .ks-head h2 { font-size: clamp(1.6rem, 1rem + 1.6vw, 2.4rem); max-width: none; }
.ks.is-pinned .ks-rail { display: grid; align-content: center; gap: 4px; list-style: none; padding: 0 0 0 18px; margin: 0; position: relative; }
.ks-rail li { font-size: 14px; line-height: 1.3; padding: 8px 0; color: rgb(255 255 255 / .4); transition: color .3s ease; display: flex; gap: 10px; }
.ks-rail li span { font: 600 12px/1.6 ui-monospace, Consolas, monospace; color: rgb(255 255 255 / .3); }
.ks-rail li.done { color: rgb(255 255 255 / .62); }
.ks-rail li.on { color: #fff; font-weight: 600; }
.ks-rail li.on span { color: #F5C518; }
.ks-rail .ks-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; padding: 0; background: rgb(255 255 255 / .12); }
.ks-rail .ks-bar i { display: block; height: 100%; background: linear-gradient(#2BB3E0, #E63D9A, #F5C518); transform-origin: top; transform: scaleY(0); }
.ks.is-pinned .ks-steps { position: relative; margin: 0; display: block; }
.ks.is-pinned .ks-step { position: absolute; inset: 0; }
.ks.is-pinned .ks-vis { height: 100%; min-height: 0; max-height: 62vh; }
.ks.is-pinned .ks-phone { width: auto; height: min(56vh, 520px); }
.ks.is-pinned .ks-phone img { width: auto; height: 100%; }
.ks.is-pinned .ks-roll { overflow: hidden; }
.ks.is-pinned .ks-roll img { width: 160%; max-width: none; }
@media (max-width: 1020px) {
    .ks-step { grid-template-columns: 1fr; gap: 28px; }
    .ks-chip-0 { left: 8px; } .ks-chip-1 { right: 8px; }
    [data-vis="phone"] .ks-vis { min-height: 0; }
    .ks-tally { right: 0; top: 10%; } .ks-stamp { right: 4%; }
    .ks-facts { position: static; translate: none; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
    .ks-roll ~ .ks-facts { grid-row: 2; }
    .ks-vis:has(.ks-facts) { display: grid; place-items: stretch; }
    .ks-code { position: static; margin-top: 14px; }
}

/* Where the designer sells (marketing/pg/sell). */
.pg-sell-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pg-sell-list li { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.pg-sell-list i { font-size: 30px; color: var(--c); }
.pg-sell-mark { width: auto; height: 32px; max-width: 120px; }
@media (prefers-color-scheme: dark) { .pg-sell-mark { filter: invert(1); } }
.pg-sell-list strong { font-size: 1.1rem; }
.pg-sell-list span { color: var(--muted); font-size: 15px; }

/* For shops on another kit customizer (marketing/pg/switch): two columns, ours in ink. */
.pg-switch-grid { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pg-switch-col { padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.pg-switch-col.is-us { background: #15161C; color: #fff; border-color: #15161C; box-shadow: 8px 8px 0 var(--m); }
.pg-switch-t { margin: 0 0 14px; font-weight: 700; font-size: 1.1rem; display: flex; gap: 10px; align-items: center; }
.pg-switch-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pg-switch-col li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 15.5px; }
.pg-switch-col li::before { content: "\00D7"; color: var(--muted); }
.pg-switch-col.is-us li::before { content: "\2713"; color: #2BB3E0; font-weight: 700; }
.pg-safe { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.pg-safe li { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 6px; align-content: start; }
.pg-safe i { font-size: 24px; color: var(--m); }
.pg-safe strong { font-size: 1.02rem; }
.pg-safe span { color: var(--muted); font-size: 14.5px; }
.pg-switch-more { margin: 20px 0 0; }
.pg-switch-more a { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 760px) { .pg-switch-grid { grid-template-columns: 1fr; } }

.pg-flow-cta { margin-top: 32px; }

/* The phone's sticky call to action (public/site/pages.js); never on a wide screen, where the header keeps one. */
.pg-sticky { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: none; }
.pg-sticky .btn { display: flex; justify-content: center; width: 100%; box-shadow: 0 14px 30px -12px rgb(14 15 20 / .5); }
@media (max-width: 820px) { .pg-sticky:not([hidden]) { display: block; } }

/* The long copy, folded (pg/landing "In detail"): one row to open, then readable prose with full-width headings. */
.pg-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.pg-more > summary::-webkit-details-marker { display: none; }
.pg-more > summary .ps-kicker { margin: 0; }
.pg-more-t { font-weight: 600; font-size: 1.15rem; }
.pg-more > summary i { margin-left: auto; font-size: 20px; transition: transform .2s ease; }
.pg-more[open] > summary i { transform: rotate(180deg); }
.pg-more > summary:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.pg-more .dz-prose { max-width: 72ch; margin-top: 28px; }
.pg-more .dz-prose h2 { max-width: none; font-size: clamp(1.3rem, 1rem + 0.8vw, 1.7rem); margin-top: 36px; }
.pg-more .dz-prose h2:first-child { margin-top: 0; }

/* Sections share home's spacing and type scale (dz-sec). */
.pg-sec { padding: clamp(56px, 2rem + 3vw, 84px) 0; border-top: 1.5px solid var(--line); }
.pg-sec h2 { max-width: 22ch; }
.pg-sec .dz-lede { margin-top: 14px; }
.pg-head { margin-bottom: 36px; }

/* The problem, in the shop's words. */
.pg-pains { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pg-pains li { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.pg-pains i { font-size: 26px; color: var(--m); }
.pg-pains strong { font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.3; }
.pg-pains span { color: var(--muted); font-size: 15.5px; }

/* How Dyenzo solves it: alternating rows of words and a screen. */
.pg-block { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding: 40px 0; }
.pg-block.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.pg-block.flip .pg-copy { order: 2; }
.pg-block h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
.pg-block p { color: var(--muted); font-size: 1.08rem; margin: 14px 0 0; max-width: 48ch; }
.pg-block .sc-solo { margin: 0; }
.pg-ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.pg-ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 15.5px; }
.pg-ticks i { color: var(--c); font-size: 18px; margin-top: 2px; }

/* One order, start to finish. */
.pg-flow { counter-reset: f; list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.pg-flow li { counter-increment: f; position: relative; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.pg-flow li::before { content: counter(f); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--k); color: var(--bg); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.pg-flow li:nth-child(4n+1)::before { background: var(--c); color: #fff; }
.pg-flow li:nth-child(4n+2)::before { background: var(--m); color: #fff; }
.pg-flow li:nth-child(4n+3)::before { background: var(--y); color: #15161C; }
.pg-flow strong { font-size: 1.04rem; line-height: 1.3; }
.pg-flow span { color: var(--muted); font-size: 14.5px; }

/* What's included. */
.pg-incl { list-style: none; padding: 0; margin: 32px 0 0; columns: 3 260px; column-gap: 32px; }
.pg-incl li { break-inside: avoid; display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.pg-incl i { color: var(--c); font-size: 18px; margin-top: 2px; }

/* Moving from another system. */
.pg-move { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.pg-move ol { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.pg-move ol li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: 15.5px; }
.pg-move ol b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft, var(--c-soft)); color: var(--text); font-size: 13px; }
.pg-move .sc-solo { margin: 0; }

/* The detail: the long copy, two narrow columns of reading on wide screens. */
.pg-detail .dz-prose { max-width: 820px; }
.pg-detail .dz-prose h2 { font-size: 1.4rem; }
.pg-detail .dz-prose > h2:first-child { margin-top: 0; }

/* Module pages: tablet and phone side by side, at a size you can read. */
.pg-devices { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 40px; margin-top: 36px; }
.pg-devices > .pg-media { flex: 0 1 270px; }
.pg-devices > .pg-media:has(.pg-tab) { flex: 1 1 600px; }

@media (max-width: 1020px) {
    .pg-hero-grid, .pg-block, .pg-block.flip, .pg-move { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .pg-block.flip .pg-copy { order: 0; }
    .pg-block { padding: 28px 0; }
}
@media (max-width: 640px) {
    .pg-hero { padding: 18px 0 8px; }
    .pg-hero h1 { font-size: 2.15rem; margin-top: 6px; }
    .pg-hero .dz-lede { font-size: 1.05rem; margin-top: 12px; }
    .pg-hero .dz-crumbs, .pg-hero .dz-eyebrow { display: none; }
    .pg-hero .ps-cta { margin-top: 18px; }
    .pg-hero .ps-trust { margin-top: 12px; font-size: 13.5px; gap: 4px 14px; }
    .pg-hero .ps-cta-row { gap: 10px 18px; }
    .pg-hero-grid { gap: 22px; }
    .pg-media.has-phone { padding: 0 64px 28px 0; }
    .pg-media.has-phone > .pg-phone { width: 27%; padding: 4px; border-radius: 18px; }
    .pg-media.has-phone > .pg-phone img { border-radius: 15px; }
    .pg-frame::before { height: 18px; background-size: auto; }
    .pg-devices { gap: 20px; }
    .pg-devices > .pg-media { flex-basis: 240px; }
    .pg-incl { columns: 1; }
}
@media (max-width: 640px) {
    .pg-pains li { grid-template-columns: 26px 1fr; gap: 2px 12px; padding: 16px; }
    .pg-pains i { grid-row: span 2; font-size: 22px; margin-top: 2px; }
    .pg-pains strong { font-size: 1.04rem; }
    .pg-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pg-flow li { padding: 14px; }
    .pg-sec { padding: 48px 0; }
    .pg-block p { font-size: 1rem; }
}
/* Module page hero on a phone: the screen shows above the fold too. */
@media (max-width: 640px) {
    .ps-mhero { padding-top: 16px; }
    .ps-mhero .eyebrow { display: none; }
    .ps-mhero h1 { font-size: 2.15rem; margin-bottom: .3em; }
    .ps-mhero .lead { font-size: 1.04rem; }
    .ps-mhero .ps-cta { margin-top: 18px; }
    .ps-mhero .ps-trust { margin-top: 12px; font-size: 13.5px; gap: 4px 14px; }
    .ps-mhero .ps-split { gap: 22px; }
}
