/* UIX Icons site v2: page-level CSS that the design system does not cover. Loads after ds.css.
   Colours come from --ux-* tokens only (they use light-dark()); no dark blocks here. */
.ux-answer { max-width: 44em; }
.ux-pagehead .ux-answer { margin-top: 18px; }
.pg-draft { margin: 0 0 14px; }
.pg-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.pg-kicker .ux-eyebrow { margin: 0; }
.pg-measure { max-width: 44em; }
.pg-note { margin-top: 12px; }
.pg-center { display: flex; justify-content: center; margin: 24px 0 0; }
.pg-cta-row { margin: 24px 0 0; }
.pg-block + .pg-block { margin-top: clamp(20px, 2vw, 32px); }
.pg-fig { margin: 0; }
.pg-fig .ux-hint { margin-top: 10px; max-width: 44em; }
.ux-section[id], .pg-sec[id], .pg-docs [id] { scroll-margin-top: calc(var(--ux-header-h) + 60px); }
.ux-section__head .ux-lede { margin-top: 12px; }
.ux-split > .ux-section__head { margin-bottom: 0; }
.pg-split-top { align-items: start; }
.pg-textsplit, .pg-faqsplit { align-items: start; }
.pg-block--bento, .pg-block--links, .pg-block--feature-grid { margin-top: 0; }
.pg-after { margin-top: clamp(32px, 4vw, 56px); }
.pg-stats { margin-top: 40px; }

/* inline next step inside a section: one quiet row, not a second card */
.pg-inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 18px 0 0; border-top: 1px solid var(--ux-line); }
.pg-inline-cta h3 { display: inline; margin: 0 8px 0 0; font: 600 1.0625rem/1.4 var(--ux-font-display); letter-spacing: -.01em; }
.pg-inline-cta p { display: inline; margin: 0; color: var(--ux-muted); }
.pg-inline-cta__act { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-block--bento + .pg-block--cta, .pg-block--steps + .pg-block--cta, .pg-block--story + .pg-block--cta { margin-top: 24px; }

/* bento helpers */
.pg-plates { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pg-tile-mock { display: block; max-height: 340px; padding: 16px 12px 0; }
.ux-tile--l .pg-tile-mock { max-height: none; }
.ux-tile--l .pg-mock { zoom: .85; width: calc(100% / .85); }
.pg-tile-mock::after { content: ""; position: absolute; inset: auto 0 0; height: 56px; background: linear-gradient(180deg, transparent, var(--ux-surface-2)); pointer-events: none; }
.pg-mock { zoom: .62; pointer-events: none; width: calc(100% / .62); }
.pg-wall-in { width: 100%; }
.pg-tile-plates { margin-top: auto; }
.pg-tile-plates .ux-tray { justify-content: flex-start; background: none; border: 0; padding: 0; box-shadow: none; }
.ux-tile--link h3 { margin-top: 2px; }
.ux-tile .ux-tile__corner svg { width: 16px; height: 16px; color: var(--ux-pro-ink); }
.ux-tile--media .ux-tile__more { margin-top: 6px; padding-top: 0; }
.ux-tile__foot .ux-tile__more { margin-top: 0; padding-top: 4px; }
.ux-tile--feature .ux-plate { align-self: flex-start; }

/* v3 shared hero (every page but /icons/ and /pricing/) */
.pg-hero { padding-block: clamp(28px, 1rem + 4vw, 88px) clamp(40px, 1rem + 4vw, 88px); overflow-x: clip; }
.pg-hero .ux-display { margin: 0 0 18px; font-size: clamp(2.5rem, 1.55rem + 3.4vw, 4.5rem); max-width: 12em; text-wrap: balance; }
.pg-hero .ux-eyebrow { margin: 0 0 18px; }
.pg-hero .ux-hero__lede { margin: 0 0 30px; max-width: 30em; text-wrap: pretty; }
.pg-hero .ux-hero__actions { align-items: center; gap: 8px 20px; }
.pg-hero .ux-crumbs { margin: 0 0 22px; font-size: .8125rem; }
.pg-hero .ux-crumbs ol { font-size: .8125rem; }
.pg-hero__link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 2px; color: var(--ux-text); font-weight: 600; text-decoration: none; }
.pg-hero__link:hover { color: var(--ux-accent); text-decoration: none; }
.pg-hero__link .ux-arrow svg { width: 16px; height: 16px; }
.pg-hero__vis { position: relative; isolation: isolate; min-width: 0; display: grid; place-items: center; }
.pg-hero__vis--stage { min-height: clamp(300px, 30vw, 440px); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--ux-line); border-radius: 28px; background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--ux-accent) 9%, transparent), transparent 70%), var(--ux-dots), var(--ux-surface-2); background-size: auto, 22px 22px, auto; }
.pg-hero__vis > .ux-stage { width: 100%; }
.pg-hero__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; }
/* v4: split heroes. The copy and the visual share the first screen; a warm offset layer sits behind the visual, which overlaps it. */
.pg-hero__grid .ux-display { font-size: clamp(2.5rem, 1.5rem + 2.9vw, 4.25rem); }
.pg-hero__grid .pg-hero__vis:not(.pg-hero__vis--stage)::before { content: ""; position: absolute; z-index: -1; inset: 8% -6% 8% 10%; border: 1px solid var(--pg-warm-line); border-radius: 36px;
  background: radial-gradient(60% 60% at 55% 45%, color-mix(in srgb, var(--ux-accent) 12%, transparent), transparent 72%), var(--ux-dots), var(--pg-warm); background-size: auto, 22px 22px, auto; }
.pg-hero--flip .pg-hero__grid .pg-hero__vis:not(.pg-hero__vis--stage)::before { inset: 8% 10% 8% -6%; }
.pg-hero__grid .pg-hero__vis::after { content: ""; position: absolute; z-index: -1; right: 14%; top: 4%; width: 64px; height: 2px; border-radius: 1px; background: var(--ux-gold); }
.pg-hero--flip .pg-hero__grid .pg-hero__vis::after { right: auto; left: 14%; }
.pg-hero__vis--styleMorph .vx-mo, .pg-hero__vis--industryRing .vx-ir { width: min(100%, 500px); }
.pg-hero__vis--studioCanvas { padding-block: 12px; } .pg-hero__vis--useCollage { width: 100%; }
.pg-hero--flip .pg-hero__vis { order: -1; }
.pg-hero--center { text-align: center; }
.pg-hero--center .pg-hero__copy { max-width: 820px; margin-inline: auto; }
.pg-hero--center .ux-display, .pg-hero--center .ux-hero__lede { margin-inline: auto; }
.pg-hero--center .ux-hero__actions { justify-content: center; }
.pg-hero--center .pg-hero__vis { margin: clamp(36px, 5vw, 64px) auto 0; max-width: 980px; }
.pg-hero--band .pg-hero__copy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "eb eb" "h1 sub" "h1 act"; column-gap: clamp(32px, 5vw, 80px); align-items: end; }
.pg-hero--band .ux-eyebrow { grid-area: eb; justify-self: start; }
.pg-hero--band .ux-display { grid-area: h1; margin: 0; align-self: end; }
.pg-hero--band .ux-hero__lede { grid-area: sub; margin-bottom: 20px; }
.pg-hero--band .ux-hero__actions { grid-area: act; }
.pg-hero--band .pg-hero__vis { margin-top: clamp(24px, 3vw, 40px); padding: clamp(20px, 4vw, 56px); border: 1px solid var(--ux-line); border-radius: 28px; background: var(--ux-dots), var(--ux-surface-2); background-size: 22px 22px, auto; overflow: hidden; }
.pg-hero--plain { padding-bottom: clamp(16px, 2vw, 32px); }
.pg-hero--plain .pg-hero__copy { max-width: 760px; }
.pg-hero--plain .ux-display { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem); }
.pg-draftnote { margin: 0 0 18px; }
.pg-draftnote .ux-badge { white-space: normal; height: auto; padding-block: 4px; }
.pg-hero .pg-proof { margin: -8px 0 28px; }
@media (max-width: 959px) {
  .pg-hero__vis--stage { min-height: clamp(300px, 30vw, 440px); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--ux-line); border-radius: 28px; background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--ux-accent) 9%, transparent), transparent 70%), var(--ux-dots), var(--ux-surface-2); background-size: auto, 22px 22px, auto; }
.pg-hero__vis > .ux-stage { width: 100%; }
.pg-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .pg-hero--flip .pg-hero__vis { order: 0; }
  .pg-hero__grid .pg-hero__vis { width: 100%; max-width: 560px; margin-inline: auto; }
  .pg-hero__grid .pg-hero__vis:not(.pg-hero__vis--stage)::before { inset: 6% 0 6% 0 !important; }
  .pg-hero--band .pg-hero__copy { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eb" "h1" "sub" "act"; }
  .pg-hero--band .ux-display { margin-bottom: 18px; }
}
/* home hero: centred headline, claim, the big search, style chips over the live field */
.pg-hero--home .ux-display { max-width: 15em; font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.75rem); }
.pg-claim { max-width: 36em !important; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem) !important; }
.pg-bigsearch { height: 64px; max-width: 760px; margin: 0 auto 16px; padding-right: 7px; text-align: left; }
.pg-bigsearch input { font-size: 1.125rem; }
.pg-bigsearch .ux-btn { flex: none; height: 50px; border-radius: 12px; }
.pg-hero__hint { margin: 0; color: var(--ux-muted); font-size: .9375rem; }
.pg-hero__hint .pg-hero__link { padding: 4px 0 4px 6px; }
.pg-hf { display: grid; justify-items: center; margin-top: clamp(36px, 5vw, 60px); }
.pg-hf .vx-hf { margin-top: clamp(20px, 3vw, 32px); }
@media (max-width: 639px) { .pg-bigsearch { height: 56px; } .pg-bigsearch .ux-btn { display: none; } }

/* home "Used in real products": snippet bento */
.pg-sn { margin: 0; }
.pg-snippets .pg-tall { --r: 2; }
.pg-snippets .ux-tile--l { --r: 1; }
.pg-sn > .ux-tile__media { border-width: 0; }
.pg-sn__cap { padding: 12px 18px 14px; border-top: 1px solid var(--ux-line); color: var(--ux-muted); font-size: .875rem; font-weight: 600; }
.pg-sn.ux-tile--dark .pg-sn__cap { color: var(--ux-text); }
/* desktop: fixed 124px rows and explicit placement so every band ends flush (heights follow the snippets' natural size) */
@media (min-width: 1200px) {
  .pg-snippets { grid-auto-rows: 124px; }
  .pg-snippets > :nth-child(1) { grid-area: 5 / 1 / span 3 / span 6; }
  .pg-snippets > :nth-child(2) { grid-area: 1 / 7 / span 4 / span 3; }
  .pg-snippets > :nth-child(3) { grid-area: 1 / 1 / span 4 / span 6; }
  .pg-snippets > :nth-child(4) { grid-area: 1 / 10 / span 2 / span 3; }
  .pg-snippets > :nth-child(5) { grid-area: 3 / 10 / span 2 / span 3; }
  .pg-snippets > :nth-child(6) { grid-area: 5 / 7 / span 3 / span 6; }
  .pg-snippets > :nth-child(7) { grid-area: 8 / 7 / span 3 / span 3; }
  .pg-snippets > :nth-child(8) { grid-area: 8 / 1 / span 3 / span 6; }
  .pg-snippets > :nth-child(9) { grid-area: 11 / 1 / span 3 / span 3; }
  .pg-snippets > :nth-child(10) { grid-area: 11 / 7 / span 3 / span 6; }
  .pg-snippets > :nth-child(11) { grid-area: 14 / 1 / span 3 / span 6; }
  .pg-snippets > :nth-child(12) { grid-area: 8 / 10 / span 3 / span 3; }
  .pg-snippets > :nth-child(13) { grid-area: 11 / 4 / span 3 / span 3; }
  .pg-snippets > :nth-child(14) { grid-area: 14 / 7 / span 3 / span 6; }
  .pg-snippets > :nth-child(15) { grid-area: 17 / 1 / span 3 / span 6; }
  .pg-snippets > :nth-child(16) { grid-area: 17 / 7 / span 3 / span 6; }
}
/* snippets need ~280 px: below 1200 the bento runs on 6 tracks (tablet sizes) */
@media (max-width: 1199px) and (min-width: 640px) {
  .pg-snippets { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pg-snippets .ux-tile--s, .pg-snippets .ux-tile--h { --c: 3; }
  .pg-snippets .ux-tile--l, .pg-snippets .ux-tile--full { --c: 6; --r: 1; }
}
/* phones: one column (a snippet needs ~280 px, a 2-up tile is ~165 px) and only the first 8 tiles, which keeps the section short */
@media (max-width: 639px) {
  .pg-snippets { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .pg-snippets .ux-tile { --c: 1; --r: 1; }
  .pg-snippets > :nth-child(n+9) { display: none; }
  .pg-snippets .ux-tile__media { max-height: 250px; overflow: hidden; }
}

/* home formats row */
.pg-formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.pg-format h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 6px; font: 600 1.0625rem/1.3 var(--ux-font-display); }
.pg-format p { margin: 0; color: var(--ux-muted); font-size: .9375rem; }

/* "About this page": the AEO answer, collapsed near the footer */
.pg-about { padding-block: 8px 28px; }
.pg-about__d { max-width: 760px; color: var(--ux-muted); font-size: .875rem; }
.pg-about__d summary { cursor: pointer; width: max-content; max-width: 100%; padding: 6px 0; font-weight: 600; }
.pg-about__d p { margin: 6px 0 0; line-height: 1.6; }

/* hero (v2 leftovers) */
.pg-hero-stage { width: 100%; max-width: 520px; margin-inline: auto; }
.pg-hero-stage svg { display: block; width: 100%; height: auto; }
.pg-herogrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; height: 100%; place-items: center; }
.pg-herogrid .ux-plate { --s: min(100%, 88px); }
.ux-hero__meta b { font-variant-numeric: tabular-nums; }
.ux-hero__copy > .ux-eyebrow { line-height: 1.35; text-align: left; }

/* showcases */
.pg-showcase { display: grid; gap: 20px; justify-items: center; }
.pg-showcase .ux-seg { max-width: 100%; flex-wrap: wrap; justify-content: center; }
.pg-showcase .ux-tabpanel { width: 100%; }
.pg-showcase-wide { display: grid; gap: 8px; }
.pg-ucstage { display: grid; place-items: center; padding-block: clamp(16px, 3vw, 32px); }
.pg-ucstage .ux-mockup, .pg-ucstage .vx-mock { margin-inline: auto; }
.pg-ucwrap .pg-ucstage { padding-block: clamp(24px, 4vw, 56px); }
.pg-jobicons { margin-top: clamp(24px, 3vw, 40px); }
.ux-flow__media { display: flex; }
.ux-flow .ux-eyebrow { margin: 0 0 6px; }

/* detail pages */
.pg-headplate { margin-bottom: 18px; }
.pg-proof { justify-content: flex-start; margin-top: 24px; }
.ux-pagehead .pg-proof, .ux-pagehead .ux-proof { justify-content: flex-start; }

/* tables and misc blocks */
.pg-channel h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pg-questions { display: grid; gap: 14px; margin: 0; }
.pg-questions > div { display: grid; gap: 10px; }
.pg-questions dt, .pg-questions dd { margin: 0; }
.pg-links { list-style: none; margin: 0; padding: 0; }
.pg-links .ux-card strong { font: 600 1.0625rem/1.3 var(--ux-font-display); }
.pg-links .ux-card p { margin: 6px 0 0; }
.pg-links .ux-card__more:empty::after { content: "\2192"; }
.pg-contact { font-size: 1.125rem; }
.ux-timeline { max-width: 44em; }

/* docs and legal prose */
.pg-sec { padding-block: clamp(20px, 2vw, 32px); }
.pg-sec + .pg-sec { border-top: 1px solid var(--ux-line); }
.pg-sec h2 { margin-bottom: .5em; }
.pg-sec > .ux-eyebrow { margin-bottom: 12px; }
.pg-prosewrap { padding-bottom: clamp(32px, 4vw, 64px); }
.pg-docs .pg-sec:first-child { padding-top: 0; }
.pg-docs .pg-fig { margin-block: 16px; }
.pg-docswrap { padding-top: clamp(8px, 2vw, 24px); padding-bottom: clamp(32px, 5vw, 80px); }
.pg-docswrap .ux-sidenav { position: sticky; top: calc(var(--ux-header-h) + 16px); align-self: start; }
.pg-docs .ux-card h3 { margin-top: 0; }

/* /styles/ playground */
.pg { --pg-size: 28px; --pg-sw: 1.5; display: grid; gap: 20px; margin-top: 8px; }
.pg-controls { display: grid; gap: 20px; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--ux-line); border-radius: var(--ux-r-tile); background: var(--ux-surface); box-shadow: var(--ux-e1); }
.pg-row { display: grid; gap: 20px 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.pg-styles { flex-wrap: wrap; }
.pg-stage { position: relative; padding: clamp(16px, 3vw, 32px); }
.pg-stage .pg-grid { width: 100%; }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px; justify-items: center; color: var(--ux-text); }
.pg-cell { margin: 0; display: grid; justify-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.pg-cell figcaption { font: 500 .6875rem/1.2 var(--ux-mono); color: var(--ux-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-grid .ux-plate { --s: calc(var(--pg-size) * 1.9 + 8px); }
.pg-grid .ux-plate svg { width: var(--pg-size); height: var(--pg-size); }
.pg-sw-on .pg-sk .ux-plate svg { stroke-width: var(--pg-sw); }
.pg-prolock { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border: 1px solid var(--ux-pro-edge); border-radius: var(--ux-r-pill); background: var(--ux-pro-bg); color: var(--ux-pro-ink); font-size: .8125rem; font-weight: 600; }
.pg-prolock[hidden] { display: none; }
.pg-prolock svg { width: 16px; height: 16px; }
.ux-output, .pg output { font-variant-numeric: tabular-nums; color: var(--ux-muted); font-weight: 500; }

@media (max-width: 639px) {
  .pg-herogrid { gap: 8px; }
  .pg-mock { zoom: .5; width: 200%; }
  .pg-inline-cta__act { width: 100%; }
}

/* QA: long button labels wrap instead of overflowing the column */
.ux-btn { max-width: 100%; white-space: normal; text-align: center; }

/* ================================================================== v4 polish */
:root { --pg-warm: light-dark(#F8F5EF, #16130F); --pg-warm-line: light-dark(#ECE4D5, #2A2419); --pg-ink: light-dark(#130B2E, #EEECF6); }

/* sub-nav: scroll-spy marks the section in view with aria-current; the active pill is solid ink */
.pg-subnav li > a[aria-current] { color: var(--ux-bg); background: var(--pg-ink); box-shadow: none; font-weight: 600; }
.pg-subnav li > a[aria-current]:hover { color: var(--ux-bg); background: var(--pg-ink); }
.pg-subnav li > a:focus-visible { outline: 2px solid var(--ux-focus); outline-offset: -2px; }
.ux-section[id] { scroll-margin-top: calc(var(--ux-header-h) + 68px); }

/* a section with its own visual beside the text (/how-we-draw/) */
.pg-vsplit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pg-vsplit--flip .pg-vsplit__vis { order: -1; }
.pg-vsplit__text > .ux-section__head { margin-bottom: 20px; }
.pg-vsplit__text .pg-block + .pg-block { margin-top: 20px; }
.pg-vsplit__vis { position: relative; display: grid; place-items: center; min-height: 340px; padding: clamp(24px, 3.5vw, 44px); border: 1px solid var(--pg-warm-line); border-radius: 28px;
  background: var(--ux-dots), var(--pg-warm); background-size: 22px 22px, auto; }
.pg-vsplit__vis::before { content: ""; position: absolute; left: 28px; top: -1px; width: 56px; height: 2px; border-radius: 0 0 2px 2px; background: var(--ux-gold); }
@media (max-width: 899px) { .pg-vsplit { grid-template-columns: minmax(0, 1fr); } .pg-vsplit--flip .pg-vsplit__vis { order: 0; } .pg-vsplit__vis { min-height: 0; } }
/* /how-we-draw/ steps: an icon on each step, the number as a small badge */
.pg-howsteps .ux-flow { --node: 52px; }
.pg-howsteps .ux-flow__media { position: absolute; top: 0; left: 0; margin: 0; }
.pg-howsteps .ux-flow__media .ux-plate { --s: 52px; }
.pg-howsteps .ux-flow > li::before { z-index: 2; top: -8px; left: 38px; width: 22px; height: 22px; border-radius: 99px; font-size: 11px; }

/* related pages: warm cards with a small cluster of real icons, a gold hairline that runs out on hover */
.pg-rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.pg-rel > li { min-width: 0; }
.pg-rel__card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; height: 100%; padding: 18px; overflow: hidden;
  border: 1px solid var(--pg-warm-line); border-radius: 20px; background: linear-gradient(180deg, var(--ux-surface), var(--pg-warm)); color: var(--ux-text); text-decoration: none;
  transition: transform var(--ux-dur) var(--ux-ease), box-shadow var(--ux-dur), border-color var(--ux-dur); }
.pg-rel__card::before { content: ""; position: absolute; left: 18px; top: 0; width: 40px; height: 2px; border-radius: 0 0 2px 2px; background: var(--ux-gold); transition: width .35s var(--ux-ease); }
.pg-rel__card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--ux-gold) 40%, var(--pg-warm-line)); box-shadow: var(--ux-e3); text-decoration: none; }
.pg-rel__card:hover::before { width: calc(100% - 36px); }
.pg-rel__card:focus-visible { outline: 2px solid var(--ux-focus); outline-offset: 3px; }
.pg-rel__art { position: relative; width: 66px; height: 56px; }
.pg-rel__art i { position: absolute; display: grid; place-items: center; border-radius: 12px; transition: translate .3s var(--ux-ease); }
.pg-rel__art i:nth-child(1) { z-index: 2; left: 0; top: 6px; width: 46px; height: 46px; color: #FFFFFF; border-radius: 14px;
  background: linear-gradient(160deg, light-dark(#2E2356, #2C2640), light-dark(#130B2E, #1A1626)); box-shadow: inset 0 -2px 0 var(--ux-gold), var(--ux-e2); }
.pg-rel__art i:nth-child(2) { z-index: 3; right: 0; top: 0; width: 30px; height: 30px; border: 1px solid var(--pg-warm-line); background: var(--ux-surface); color: var(--pg-ink); box-shadow: var(--ux-e1); }
.pg-rel__art i:nth-child(3) { z-index: 1; right: 6px; bottom: 0; width: 28px; height: 28px; border: 1px solid color-mix(in srgb, var(--ux-pro-edge) 45%, transparent); background: var(--ux-pro-bg); color: var(--ux-pro-ink); }
.pg-rel__art i:nth-child(n+2) svg { width: 16px; height: 16px; }
.pg-rel__card:hover .pg-rel__art i:nth-child(2) { translate: 3px -2px; } .pg-rel__card:hover .pg-rel__art i:nth-child(3) { translate: 2px 3px; }
.pg-rel__txt { display: grid; gap: 4px; min-width: 0; }
.pg-rel__txt strong { font: 600 1.0625rem/1.25 var(--ux-font-display); letter-spacing: -.01em; }
.pg-rel__txt span { color: var(--ux-muted); font-size: .875rem; line-height: 1.45; }
.pg-rel__go { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--pg-warm-line); border-radius: 50%; color: var(--pg-ink); transition: background var(--ux-dur), color var(--ux-dur), translate var(--ux-dur); }
.pg-rel__card:hover .pg-rel__go { border-color: transparent; background: var(--pg-ink); color: var(--ux-bg); translate: 2px 0; }
@media (prefers-reduced-motion: reduce) { .pg-rel__card, .pg-rel__card::before, .pg-rel__art i { transition: none; } }

/* link tiles (404, hubs): warm, not violet */
.ux-tile--link:not(.vx-hue) { border-color: var(--pg-warm-line); background: linear-gradient(180deg, var(--ux-surface), var(--pg-warm)); }
.ux-tile--link:not(.vx-hue) .ux-tile__more { color: var(--pg-ink); }

/* next-step band: deep ink with a gold line (brand violet stays for buttons and chrome) */
.ux-cta:not(.ux-cta--plain) { background: radial-gradient(60% 90% at 50% 0%, rgb(251 174 23 / .13), transparent 70%), radial-gradient(50% 70% at 100% 100%, rgb(99 1 228 / .22), transparent 70%), linear-gradient(160deg, #241A4A 0%, #130B2E 55%, #0B0719 100%);
  box-shadow: 0 30px 60px -30px rgb(19 11 46 / .55), inset 0 0 0 1px rgb(255 255 255 / .06); }
.ux-cta:not(.ux-cta--plain)::after { content: ""; position: absolute; left: 50%; top: 0; width: min(240px, 40%); height: 2px; translate: -50% 0; background: linear-gradient(90deg, transparent, var(--ux-gold), transparent); }
.ux-cta--plain { border-color: var(--pg-warm-line); background: var(--ux-dots), var(--pg-warm); background-size: 22px 22px, auto; }

/* home snippets and industry tiles wear their own colour (colors.json) */
.pg-sn.ux-tile--dark.vx-hue { background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--hue) 26%, transparent), transparent 60%), var(--ux-surface); }
.pg-sn.vx-hue .pg-sn__cap::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--hue); vertical-align: 1px; }
.pg-ind.vx-hue { border-color: color-mix(in srgb, var(--hue) 22%, var(--ux-line)); background: linear-gradient(180deg, color-mix(in srgb, var(--hue) 8%, var(--ux-surface)), var(--ux-surface) 55%); }
.pg-ind.vx-hue:hover { border-color: color-mix(in srgb, var(--hue) 45%, var(--ux-line)); }
.pg-ind .ux-tile__kicker, .pg-ind .ux-tile__more { color: var(--ux-accent); }
.pg-ind .ux-tile__icons > :hover { color: var(--ux-accent); }
.pg-indwall .ux-wall__cell:hover { color: var(--ux-accent); }
.pg-hero__vis.vx-hue::before { background: radial-gradient(60% 60% at 55% 45%, color-mix(in srgb, var(--hue) 16%, transparent), transparent 72%), var(--ux-dots), var(--pg-warm) !important; background-size: auto, 22px 22px, auto !important; }

/* /styles/ playground: custom colour through the shared picker */
.pg-cp { position: relative; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: conic-gradient(#E11D48, #EA580C, #FBAE17, #16A34A, #0891B2, #2563EB, #6301E4, #C026D3, #E11D48); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.pg-cp span { position: absolute; inset: 8px; border-radius: 50%; background: var(--ux-surface); box-shadow: 0 0 0 1px rgb(0 0 0 / .08); }
.pg-cp.is-on span { background: var(--cp-c, var(--ux-surface)); }
.pg-cp.is-on, .pg-cp[aria-expanded="true"] { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12), 0 0 0 3px var(--ux-bg), 0 0 0 5px var(--ux-text); }
.pg-cp:focus-visible { outline: 2px solid var(--ux-focus); outline-offset: 6px; }

/* v4.1: pictures for sections that were text only (owner: "no section may be text only") */
.pg-autovis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--ux-line); border-radius: 20px;
  background: radial-gradient(120% 90% at 50% 0%, var(--ux-accent-soft), transparent 70%), var(--ux-surface); }
.pg-autovis figure { margin: 0; display: grid; justify-items: center; gap: 8px; padding: 14px 8px; border-radius: 14px; background: color-mix(in srgb, var(--ux-surface) 70%, transparent); border: 1px solid color-mix(in srgb, var(--ux-line) 70%, transparent); color: var(--ux-accent); }
.pg-autovis figure:first-child { color: var(--ux-text); }
.pg-autovis figcaption { font: 500 11px/1.3 var(--uix-font-mono); color: var(--ux-muted); text-align: center; overflow-wrap: anywhere; }
.pg-cmp { display: grid; gap: 10px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--ux-line); border-radius: 20px; background: var(--ux-surface); }
.pg-cmp__label { margin: 6px 0 0; font: 600 12px/1 var(--uix-font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ux-muted); }
.pg-cmp__row { display: flex; gap: 12px; padding: 14px; border-radius: 14px; }
.pg-cmp__row span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--ux-surface); border: 1px solid var(--ux-line); color: var(--ux-text); }
.pg-cmp__row--bad { background: color-mix(in srgb, #E11D48 7%, var(--ux-surface)); }
.pg-cmp__row--bad span:nth-child(2) { transform: scale(.82); } .pg-cmp__row--bad span:nth-child(3) { transform: scale(1.1) rotate(-4deg); }
.pg-cmp__row--good { background: color-mix(in srgb, #059669 8%, var(--ux-surface)); }
@media (max-width: 480px) { .pg-cmp__row span { width: 48px; height: 48px; } }

/* v4.1 owner fix: round dials (styles, industries) sit fully inside their backing card, centred, no floating gold rule */
.pg-hero__grid .pg-hero__vis--styleMorph, .pg-hero__grid .pg-hero__vis--industryRing { padding: clamp(16px, 2.5vw, 28px); }
.pg-hero__grid .pg-hero__vis.pg-hero__vis--styleMorph::before, .pg-hero__grid .pg-hero__vis.pg-hero__vis--industryRing::before, /* (0,3,1): ties the <=959px inset rule above and comes later */
.pg-hero--flip .pg-hero__grid .pg-hero__vis--styleMorph::before, .pg-hero--flip .pg-hero__grid .pg-hero__vis--industryRing::before { inset: 0 !important; border-radius: 50% !important; }
.pg-hero__grid .pg-hero__vis--styleMorph::after, .pg-hero__grid .pg-hero__vis--industryRing::after { display: none; }
.pg-hero__vis--styleMorph .vx-mo, .pg-hero__vis--industryRing .vx-ir { width: min(100%, 460px); }
.pg-hero__vis--styleMorph .vx-mo__orbit { inset: 9%; }
