/* ============================================================
   FLAPP product pages — /products and /products/<slug>.
   Markup: apps/web/src/utils/productRender.ts. Colours are the
   cms-theme.css tokens, so dark, light and reading themes all work.
   Content never waits for JavaScript: motion is CSS-only, and moves
   things without hiding them.
   ============================================================ */

html[lang="ar"] [data-en],
html[lang="en"] [data-ar] { display: none !important; }

.pr, .pr-footer {
  font-family: var(--font-display);
  /* Brand red for small text: pulled toward the text colour, so it reads at AA on
     dark (lighter) and on light or reading paper (darker). */
  --pr-ink: color-mix(in srgb, hsl(var(--accent-glow)) 72%, hsl(var(--text)));
  /* Muted text on raised cards: text-muted alone falls under AA on reading paper. */
  --pr-sub: color-mix(in srgb, hsl(var(--text-muted)) 70%, hsl(var(--text)));
}
html[lang="en"] .pr, html[lang="en"] .pr-footer { font-family: var(--font-body); }
.pr { overflow-x: clip; }
/* Resets carry no specificity (:where), so every single-class rule below wins over them. */
:where(.pr, .pr-footer) *, :where(.pr, .pr-footer) *::before, :where(.pr, .pr-footer) *::after { box-sizing: border-box; }
:where(.pr) a { color: inherit; text-decoration: none; }
:where(.pr) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
:where(.pr) :where(ul, ol) { padding: 0; list-style: none; }
.pr :focus-visible { outline: 2px solid hsl(var(--accent-glow)); outline-offset: 3px; border-radius: 6px; }
.pr bdi em { font-style: normal; }

.pr-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 22px; height: 22px; }

/* Small labels. Arabic keeps the display font with no letter-spacing, because spacing
   breaks the joins between Arabic letters; English gets spaced monospace capitals. */
.pr-glance-title, .pr-size-label, .pr-measure > span:first-child, .pr-case-kicker {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--pr-ink);
}
html[lang="en"] :is(.pr-glance-title, .pr-size-label, .pr-measure > span:first-child, .pr-case-kicker) {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- buttons ---------- */
.pr-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.pr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  color: hsl(var(--text));
  background: hsl(var(--text) / .05);
  border: 1px solid hsl(var(--border-strong));
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.pr-btn:hover { transform: translateY(-2px); border-color: hsl(var(--accent)); background: hsl(var(--text) / .08); }
.pr-btn--primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, hsl(var(--accent-glow)) 0%, hsl(var(--accent)) 100%);
  box-shadow: 0 14px 34px -14px hsl(var(--accent-glow) / .9), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.pr-btn--primary:hover { background: linear-gradient(180deg, hsl(var(--accent-glow)) 0%, hsl(var(--accent)) 100%); box-shadow: 0 20px 40px -14px hsl(var(--accent-glow) / .95); }
.pr-arrow { width: 18px; height: 18px; transition: transform .2s ease; }
html[dir="rtl"] .pr-arrow { transform: scaleX(-1); }
.pr-btn:hover .pr-arrow, .pr-case:hover .pr-arrow, .pr-edition:hover .pr-arrow { transform: translateX(4px); }
html[dir="rtl"] .pr-btn:hover .pr-arrow,
html[dir="rtl"] .pr-case:hover .pr-arrow,
html[dir="rtl"] .pr-edition:hover .pr-arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- hero ---------- */
.pr-hero { position: relative; isolation: isolate; padding: 44px 0 36px; }
.pr-hero::before {
  content: "";
  position: absolute;
  inset: -120px 0 auto;
  height: 720px;
  z-index: -1;
  background:
    radial-gradient(42% 55% at 78% 18%, hsl(var(--accent) / .34), transparent 70%),
    radial-gradient(38% 50% at 12% 6%, hsl(var(--border-strong) / .45), transparent 72%);
  pointer-events: none;
}
.pr-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(hsl(var(--text) / .045) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--text) / .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 25%, #000 30%, transparent 75%);
  mask-image: radial-gradient(75% 65% at 50% 25%, #000 30%, transparent 75%);
  pointer-events: none;
}
.pr-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 13px; color: hsl(var(--text-muted)); }
.pr-crumbs a:hover { color: hsl(var(--text)); }
.pr-crumbs [aria-current] { color: hsl(var(--text-muted)); }

.pr-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 44px; align-items: start; }
.pr-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; max-width: 100%; }
.pr-hero-copy > * { animation: pr-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.pr-hero-copy > :nth-child(2) { animation-delay: .05s; }
.pr-hero-copy > :nth-child(3) { animation-delay: .1s; }
.pr-hero-copy > :nth-child(4) { animation-delay: .15s; }
.pr-hero-copy > :nth-child(5) { animation-delay: .2s; }
@keyframes pr-rise { from { transform: translateY(14px); } to { transform: none; } }

.pr-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: hsl(var(--text));
  background: hsl(var(--accent) / .12);
  border: 1px solid hsl(var(--accent) / .45);
}
.pr-chip-icon { width: 18px; height: 18px; color: hsl(var(--accent-glow)); }
.pr-title {
  font-family: 'Inter', var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 6.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -.025em;
  color: hsl(var(--text));
  max-width: 100%;
  overflow-wrap: break-word;
}
.pr-title em {
  background: linear-gradient(100deg, hsl(var(--accent-glow)) 10%, hsl(var(--accent)) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pr-title--hub { font-family: var(--font-display); font-size: clamp(34px, 5vw, 60px); line-height: 1.2; letter-spacing: 0; }
html[lang="en"] .pr-title--hub { font-family: 'Inter', var(--font-display); letter-spacing: -.02em; }
.pr-tagline { font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; line-height: 1.6; color: hsl(var(--text)); max-width: 40ch; }
.pr-lead { font-size: 16.5px; line-height: 1.95; color: hsl(var(--text-muted)); max-width: min(62ch, 100%); overflow-wrap: break-word; }
.pr-hero-copy--hub { max-width: 820px; }
.pr-hero--hub { padding-bottom: 56px; }

.pr-glance {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(160deg, hsl(var(--bg-elev-2) / .85), hsl(var(--bg-elev-1) / .75));
  border: 1px solid hsl(var(--border-strong) / .8);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: pr-rise .7s .1s cubic-bezier(.2, .8, .2, 1) both;
}
.pr-glance::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, hsl(var(--accent-glow) / .7), transparent 40%, transparent 70%, hsl(var(--accent) / .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.pr-glance-title { margin-bottom: 12px; }
.pr-glance dl { display: flex; flex-direction: column; }
.pr-glance dl > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid hsl(var(--border) / .8); }
.pr-glance dl > div:first-child { border-top: 0; }
.pr-glance dt { font-size: 13px; color: hsl(var(--text-muted)); }
.pr-glance dd { font-size: 14px; font-weight: 700; line-height: 1.6; color: hsl(var(--text)); }

/* The product's flow as numbered steps: wrapped on wide screens so every step shows,
   one swipeable row on phones. */
.pr-flowline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
  padding: 6px 2px 10px;
}
@media (max-width: 900px) {
  .pr-flowline { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pr-flowline::-webkit-scrollbar { display: none; }
}
.pr-flowline li {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  color: hsl(var(--text-muted));
  background: hsl(var(--bg-elev-1));
  border: 1px solid hsl(var(--border));
}
.pr-flow-n {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  background: hsl(var(--accent));
  box-shadow: 0 0 0 4px hsl(var(--accent) / .18);
}

/* ---------- section bar ---------- */
.pr-subnav {
  position: sticky;
  top: var(--site-nav-h);
  z-index: 40;
  background: hsl(var(--bg) / .82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-block: 1px solid hsl(var(--border) / .8);
}
.pr-subnav-inner {
  display: flex;
  gap: 4px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pr-subnav-inner::-webkit-scrollbar { display: none; }
.pr-subnav a {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: hsl(var(--text-muted));
  transition: color .2s ease, background .2s ease;
}
.pr-subnav a:hover { color: hsl(var(--text)); background: hsl(var(--text) / .06); }
.pr-subnav a[aria-current] { color: #fff; background: hsl(var(--accent)); box-shadow: 0 6px 18px -8px hsl(var(--accent-glow)); }

/* ---------- sections ---------- */
.pr-sec { padding: 80px 0; scroll-margin-top: calc(var(--site-nav-h) + 56px); }
.pr-sec--alt { background: hsl(var(--bg-elev-1) / .6); border-block: 1px solid hsl(var(--border) / .55); }
.pr-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 10px; align-items: center; margin-bottom: 34px; }
.pr-num {
  grid-row: span 2;
  align-self: start;
  padding: 8px 10px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: var(--pr-ink);
  background: hsl(var(--accent) / .1);
  border: 1px solid hsl(var(--accent) / .45);
}
.pr-h2 { font-weight: 900; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.25; color: hsl(var(--text)); }
.pr-intro { font-size: 16px; line-height: 1.9; color: hsl(var(--text-muted)); max-width: 760px; }
.pr-h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 38px 0 16px;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.4;
  color: hsl(var(--text));
}
.pr-h3::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: hsl(var(--accent)); flex: none; }
.pr-head + .pr-h3 { margin-top: 0; }

/* generic card */
.pr-segment, .pr-pillar, .pr-size, .pr-mod, .pr-lever, .pr-ai-card, .pr-rollout li, .pr-qa, .pr-edition, .pr-other, .pr-case {
  border-radius: 20px;
  background: hsl(var(--bg-elev-1) / .85);
  border: 1px solid hsl(var(--border) / .9);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.pr-segment:hover, .pr-pillar:hover, .pr-size:hover, .pr-mod:hover, .pr-lever:hover, .pr-ai-card:hover {
  border-color: hsl(var(--accent) / .55);
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -28px hsl(var(--accent-glow) / .55);
}

/* overview */
.pr-overview { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: start; }
.pr-prose { display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 2; color: hsl(var(--text-muted)); }
.pr-prose p:first-child { color: hsl(var(--text)); }
.pr-pillars { display: flex; flex-direction: column; gap: 12px; }
.pr-pillar { position: relative; padding: 20px 22px; overflow: hidden; }
/* A watermark: the digits come from data-n, so they are decoration, not page text. */
.pr-pillar-n::before { content: attr(data-n); position: absolute; inset-inline-end: 16px; top: 10px; font-family: var(--font-mono); font-weight: 700; font-size: 34px; color: hsl(var(--text) / .07); }
.pr-pillar h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; color: hsl(var(--text)); }
.pr-pillar p { font-size: 14.5px; line-height: 1.8; color: hsl(var(--text-muted)); }
.pr-quote {
  margin-top: 8px;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, hsl(var(--accent) / .16), transparent 70%);
  border-inline-start: 3px solid hsl(var(--accent));
}
.pr-quote p { font-size: 22px; font-weight: 800; line-height: 1.6; color: hsl(var(--text)); }
.pr-quote figcaption { margin-top: 8px; font-size: 13.5px; font-weight: 700; color: hsl(var(--text-muted)); }

/* who */
.pr-segments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pr-segment { padding: 20px; }
.pr-segment :is(h3, h4) { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; color: hsl(var(--text)); }
.pr-segment p { font-size: 14px; line-height: 1.85; color: hsl(var(--text-muted)); }
.pr-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pr-roles li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 16px;
  background: hsl(var(--bg) / .55);
  border: 1px solid hsl(var(--border) / .9);
}
.pr-roles strong { font-size: 15px; font-weight: 800; color: hsl(var(--text)); }
.pr-roles span { font-size: 14px; line-height: 1.8; color: hsl(var(--text-muted)); }

/* size */
.pr-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pr-size { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.pr-size-meter { display: flex; gap: 5px; margin-bottom: 6px; }
.pr-size-meter i { width: 26px; height: 6px; border-radius: 3px; background: hsl(var(--border-strong)); }
.pr-size--1 .pr-size-meter i:nth-child(-n+1),
.pr-size--2 .pr-size-meter i:nth-child(-n+2),
.pr-size--3 .pr-size-meter i:nth-child(-n+3) { background: hsl(var(--accent-glow)); box-shadow: 0 0 10px hsl(var(--accent-glow) / .5); }
.pr-size h3 { font-size: 20px; font-weight: 900; color: hsl(var(--text)); }
.pr-size-fit { font-size: 14.5px; line-height: 1.8; color: hsl(var(--text-muted)); }
.pr-size-label { margin-top: auto; padding-top: 12px; border-top: 1px dashed hsl(var(--border-strong)); }
.pr-size-start { font-size: 14.5px; line-height: 1.8; font-weight: 600; color: hsl(var(--text)); }

/* how it works: a timeline on the reading-start side */
.pr-steps { position: relative; display: flex; flex-direction: column; gap: 14px; max-width: 880px; }
.pr-steps::before {
  content: "";
  position: absolute;
  inset-inline-start: 23px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, hsl(var(--accent)), hsl(var(--border-strong)) 70%, transparent);
}
.pr-step { position: relative; display: flex; gap: 20px; align-items: flex-start; }
.pr-step-n {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: hsl(var(--text));
  background: hsl(var(--bg-elev-2));
  border: 1px solid hsl(var(--accent) / .6);
  box-shadow: 0 0 0 6px hsl(var(--bg) / .9);
}
.pr-step > div { flex: 1; padding: 14px 18px; border-radius: 16px; background: hsl(var(--bg) / .5); border: 1px solid hsl(var(--border) / .8); }
.pr-step h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; color: hsl(var(--text)); }
.pr-step p { font-size: 14.5px; line-height: 1.85; color: hsl(var(--text-muted)); }

/* modules */
.pr-modnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pr-modnav a {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: hsl(var(--text-muted));
  background: hsl(var(--text) / .04);
  border: 1px solid hsl(var(--border));
  transition: color .2s ease, border-color .2s ease;
}
.pr-modnav a:hover { color: hsl(var(--text)); border-color: hsl(var(--accent)); }
.pr-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pr-mod { display: flex; flex-direction: column; gap: 14px; padding: 22px; scroll-margin-top: calc(var(--site-nav-h) + 70px); }
.pr-mod--industry { background: linear-gradient(180deg, hsl(var(--accent) / .1), hsl(var(--bg-elev-1) / .85) 55%); border-color: hsl(var(--accent) / .35); }
.pr-mod-top { display: flex; gap: 14px; align-items: flex-start; }
.pr-mod-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: hsl(var(--text));
  background: hsl(var(--text) / .06);
  border: 1px solid hsl(var(--border-strong));
}
.pr-mod--industry .pr-mod-icon {
  background: linear-gradient(145deg, hsl(var(--accent) / .45), hsl(var(--accent) / .1));
  border-color: hsl(var(--accent) / .55);
  box-shadow: 0 10px 24px -12px hsl(var(--accent-glow) / .8);
}
.pr-mod-name { font-size: 17px; font-weight: 800; line-height: 1.45; color: hsl(var(--text)); }
.pr-mod-sum { margin-top: 3px; font-size: 13.5px; line-height: 1.7; color: hsl(var(--text-muted)); }
.pr-feats { display: flex; flex-direction: column; gap: 8px; }
.pr-feats li { position: relative; padding-inline-start: 22px; font-size: 14.5px; line-height: 1.75; color: hsl(var(--text-muted)); }
.pr-feats li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: .72em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: hsl(var(--accent-glow));
  box-shadow: 0 0 8px hsl(var(--accent-glow) / .6);
}

/* AI */
.pr-sec--ai {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(55% 70% at 88% 0%, hsl(var(--accent) / .24), transparent 62%),
    radial-gradient(45% 60% at 0% 100%, hsl(var(--accent-glow) / .12), transparent 62%),
    hsl(var(--bg-elev-1));
  border-block: 1px solid hsl(var(--accent) / .3);
}
.pr-ai { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pr-ai-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; background: hsl(var(--bg) / .6); }
.pr-ai--edition .pr-ai-card { background: linear-gradient(160deg, hsl(var(--accent) / .22), hsl(var(--bg) / .6) 60%); border-color: hsl(var(--accent) / .45); }
.pr-ai-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: hsl(var(--accent-glow));
  background: hsl(var(--accent) / .14);
  border: 1px solid hsl(var(--accent) / .4);
}
.pr-ai-card h4 { font-size: 16.5px; font-weight: 800; color: hsl(var(--text)); }
.pr-ai-card p { font-size: 14.5px; line-height: 1.85; color: hsl(var(--text-muted)); }
.pr-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.pr-principles li { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: hsl(var(--bg) / .45); border: 1px dashed hsl(var(--border-strong)); }
.pr-principles .ico { flex: none; width: 20px; height: 20px; color: hsl(var(--ok)); margin-top: 3px; }
.pr-principles strong { display: block; font-size: 14.5px; font-weight: 800; color: hsl(var(--text)); }
.pr-principles span { font-size: 13.5px; line-height: 1.7; color: hsl(var(--text-muted)); }

/* ROI */
.pr-roi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pr-lever { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.pr-lever h3 { font-size: 17px; font-weight: 800; color: hsl(var(--text)); }
.pr-lever > p { font-size: 14.5px; line-height: 1.85; color: hsl(var(--text-muted)); }
.pr-measure {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px dashed hsl(var(--border-strong));
  font-size: 14px;
  font-weight: 700;
  color: hsl(var(--text));
}
.pr-roi-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(120deg, hsl(var(--accent) / .16), hsl(var(--bg-elev-1)) 60%);
  border: 1px solid hsl(var(--accent) / .4);
}
.pr-roi-note p { flex: 1 1 320px; font-size: 15.5px; line-height: 1.85; font-weight: 600; color: hsl(var(--text)); }

/* getting started */
.pr-rollout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.pr-rollout li { position: relative; padding: 22px; }
.pr-rollout-n {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  background: hsl(var(--accent));
  box-shadow: 0 0 0 6px hsl(var(--accent) / .15);
}
.pr-rollout h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; color: hsl(var(--text)); }
.pr-rollout p { font-size: 14.5px; line-height: 1.85; color: hsl(var(--text-muted)); }

/* FAQ */
.pr-faq { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.pr-qa { padding: 0; overflow: hidden; }
.pr-qa summary {
  position: relative;
  display: block;
  padding: 18px 22px;
  padding-inline-end: 56px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
  color: hsl(var(--text));
  cursor: pointer;
  list-style: none;
}
.pr-qa summary::-webkit-details-marker { display: none; }
.pr-qa summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 20px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 700;
  color: hsl(var(--accent-glow));
  border: 1px solid hsl(var(--accent) / .5);
  transition: transform .2s ease;
}
.pr-qa[open] { border-color: hsl(var(--accent) / .45); }
.pr-qa[open] summary::after { transform: rotate(45deg); }
.pr-qa > p { padding: 0 22px 20px; font-size: 15px; line-height: 1.95; color: hsl(var(--text-muted)); }

/* final */
.pr-final { padding: 20px 0 90px; }
.pr-band {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px;
  border-radius: 28px;
  background:
    radial-gradient(70% 120% at 100% 0%, hsl(var(--accent) / .45), transparent 60%),
    linear-gradient(135deg, hsl(var(--bg-elev-2)), hsl(var(--bg-elev-1)));
  border: 1px solid hsl(var(--accent) / .45);
  box-shadow: 0 40px 80px -40px hsl(var(--accent-glow) / .6);
}
.pr-band > div:first-child { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.pr-band-title { font-size: clamp(22px, 3vw, 32px); font-weight: 900; line-height: 1.35; color: hsl(var(--text)); }
.pr-band p { font-size: 15.5px; line-height: 1.8; color: hsl(var(--text-muted)); }
.pr-case { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding: 22px 24px; }
.pr-case:hover { border-color: hsl(var(--accent) / .55); }

.pr-case strong { font-size: 18px; font-weight: 800; line-height: 1.5; color: hsl(var(--text)); }
.pr-case-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: hsl(var(--text-muted)); }
.pr-others .pr-h3 { margin-top: 40px; }
.pr-others-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pr-other { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.pr-other:hover { border-color: hsl(var(--accent) / .55); transform: translateY(-2px); }
.pr-other-icon, .pr-edition-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: hsl(var(--text));
  background: linear-gradient(145deg, hsl(var(--accent) / .42), hsl(var(--accent) / .08));
  border: 1px solid hsl(var(--accent) / .5);
}
.pr-other > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.pr-other bdi { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 14.5px; color: hsl(var(--text)); }
.pr-other-ind { font-size: 12.5px; color: hsl(var(--text-muted)); }

/* hub: editions + comparison */
.pr-editions { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.pr-edition { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; overflow: hidden; }
.pr-edition::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--accent) / .28), transparent 65%);
  opacity: .6;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.pr-edition:hover { border-color: hsl(var(--accent) / .6); transform: translateY(-4px); box-shadow: 0 30px 60px -34px hsl(var(--accent-glow) / .7); }
.pr-edition:hover::after { opacity: 1; transform: scale(1.1); }
.pr-edition-icon { width: 52px; height: 52px; border-radius: 16px; }
.pr-edition-icon .ico { width: 26px; height: 26px; }
.pr-edition-name { font-family: 'Inter', sans-serif; font-weight: 900; font-size: 24px; letter-spacing: -.01em; color: hsl(var(--text)); }
.pr-edition-ind { font-size: 13.5px; font-weight: 700; color: var(--pr-ink); }
.pr-edition-tag { font-size: 15px; line-height: 1.85; color: hsl(var(--text-muted)); }
.pr-edition-mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pr-edition-mods li, .pr-tags li { padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: hsl(var(--text-muted)); background: hsl(var(--text) / .05); border: 1px solid hsl(var(--border)); }
.pr-edition-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-weight: 800; font-size: 14.5px; color: hsl(var(--text)); }

.pr-table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid hsl(var(--border)); background: hsl(var(--bg-elev-1) / .7); }
.pr-compare { width: 100%; min-width: 1080px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.pr-compare th, .pr-compare td { padding: 16px; text-align: start; vertical-align: top; border-bottom: 1px solid hsl(var(--border) / .8); }
.pr-compare tbody tr:last-child > * { border-bottom: 0; }
.pr-compare thead th { background: hsl(var(--bg-elev-2) / .9); }
.pr-compare thead a { display: inline-flex; flex-direction: column; gap: 8px; font-family: 'Inter', sans-serif; font-weight: 800; font-size: 15px; color: hsl(var(--text)); }
.pr-compare thead a .ico { width: 26px; height: 26px; color: hsl(var(--accent-glow)); }
.pr-compare thead a:hover { color: hsl(var(--accent-glow)); }
.pr-compare th[scope="row"] {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  min-width: 170px;
  font-weight: 800;
  color: hsl(var(--text));
  background: hsl(var(--bg-elev-2));
}
.pr-compare td { color: hsl(var(--text-muted)); line-height: 1.7; }
.pr-compare td ul { display: flex; flex-direction: column; gap: 5px; }
.pr-compare td li { position: relative; padding-inline-start: 14px; }
.pr-compare td li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--accent-glow)); }
.pr-compare td a { color: hsl(var(--text)); text-decoration: underline; text-decoration-color: hsl(var(--accent)); text-underline-offset: 4px; }
.pr-yes { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: hsl(var(--text)); }
.pr-yes .ico { width: 18px; height: 18px; color: hsl(var(--ok)); }
.pr-none { color: hsl(var(--text-muted)); }

/* ---------- the custom build: entry tiles, /products/custom and its needs canvas ---------- */
/* "Another industry?" wherever editions are listed: featured in the accent, with a badge. */
.pr-other--custom, .pr-edition--custom {
  background:
    radial-gradient(60% 120% at 100% 0%, hsl(var(--accent) / .3), transparent 70%),
    linear-gradient(115deg, hsl(var(--accent) / .16), hsl(var(--bg-elev-1) / .9) 65%);
  border: 1px solid hsl(var(--accent) / .65);
  box-shadow: 0 26px 60px -34px hsl(var(--accent-glow) / .85);
}
.pr-other--custom:hover { border-color: hsl(var(--accent-glow)); }
.pr-other--custom .pr-other-icon, .pr-edition-icon--custom {
  color: #fff;
  background: linear-gradient(180deg, hsl(var(--accent-glow)), hsl(var(--accent)));
  border-color: transparent;
}
.pr-other strong { font-size: 14.5px; font-weight: 800; color: hsl(var(--text)); }
.pr-badge {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
  color: #fff;
  background: hsl(var(--accent));
}
.pr-other--custom .pr-badge { margin-bottom: 2px; }

/* The hub's custom card spans the whole grid and holds a small GET form. */
.pr-edition--custom { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 440px); align-items: center; gap: 18px 36px; padding: 30px; }
.pr-edition--custom:hover { transform: none; border-color: hsl(var(--accent-glow)); }
.pr-custom-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.pr-edition-name--custom { font-family: var(--font-display); letter-spacing: 0; }
html[lang="en"] .pr-edition-name--custom { font-family: 'Inter', var(--font-display); letter-spacing: -.01em; }
.pr-custom-form { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pr-custom-row { display: flex; gap: 10px; }
.pr-custom-row .pr-input { flex: 1; min-width: 0; }
.pr-custom-row .pr-btn { flex: none; }

/* Each edition page: the custom build under "How we get started". */
.pr-start-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 20px;
  background: hsl(var(--bg) / .5);
  border: 1px dashed hsl(var(--accent) / .55);
}
.pr-start-note p { flex: 1 1 300px; font-size: 15.5px; line-height: 1.85; font-weight: 600; color: hsl(var(--text)); }

/* Form controls */
.pr-label { display: flex; align-items: baseline; gap: 4px; font-size: 13.5px; font-weight: 700; line-height: 1.5; color: hsl(var(--text)); }
.pr-req { color: var(--pr-ink); }
.pr-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  color: hsl(var(--text));
  background: hsl(var(--bg) / .7);
  border: 1px solid hsl(var(--border-strong));
  transition: border-color .2s ease;
}
.pr-input::placeholder { color: hsl(var(--text-muted)); opacity: 1; }
.pr-input:focus { border-color: hsl(var(--accent-glow)); }
.pr-input[aria-invalid="true"] { border-color: hsl(var(--err)); }
textarea.pr-input { min-height: 92px; resize: vertical; line-height: 1.7; }
select.pr-input { cursor: pointer; }
select.pr-input option { color: hsl(var(--text)); background: hsl(var(--bg-elev-2)); }

/* Forms: the registration step of the needs canvas. */
.pr-form, .pr-form-done { display: flex; flex-direction: column; gap: 14px; }
.pr-form[hidden], .pr-form-done[hidden], .pr-form-error[hidden] { display: none; }
.pr-form-title { font-size: 20px; font-weight: 900; line-height: 1.45; color: hsl(var(--text)); }
.pr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pr-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pr-hp { display: none; }
.pr-form-error { font-size: 14px; font-weight: 700; line-height: 1.7; color: var(--pr-ink); }
.pr-form-submit { justify-content: center; width: 100%; }
.pr-form-submit:disabled { opacity: .7; cursor: progress; transform: none; }
.pr-form-note { font-size: 13px; line-height: 1.7; color: hsl(var(--text-muted)); }
.pr-form-done { align-items: flex-start; }
.pr-form-done p { font-size: 15px; line-height: 1.85; color: hsl(var(--text-muted)); }
.pr-form-done-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: hsl(var(--ok)); background: hsl(var(--ok) / .12); border: 1px solid hsl(var(--ok) / .45); }

.pr-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* The needs canvas: a palette of blocks beside a dotted board. Markup: productRender.ts
   needsCanvas(); behaviour: public/custom-builder.js. */
.cb-sec { padding-top: 8px; scroll-margin-top: calc(var(--site-nav-h, 68px) + 8px); }
.cb-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 20px; }
.cb-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 5px;
  padding-inline: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: hsl(var(--text-muted));
  background: hsl(var(--text) / .04);
  border: 1px solid hsl(var(--border));
}
.cb-steps-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 800; color: hsl(var(--text)); background: hsl(var(--text) / .08); }
.cb-steps li.is-active { color: hsl(var(--text)); border-color: hsl(var(--accent) / .7); background: hsl(var(--accent) / .12); }
.cb-steps li.is-active .cb-steps-n { color: #fff; background: hsl(var(--accent)); }
.cb-steps li.is-done .cb-steps-n { background: hsl(var(--ok) / .25); }

.cb {
  padding: 16px;
  border-radius: 26px;
  background: hsl(var(--bg-elev-1) / .85);
  border: 1px solid hsl(var(--border));
  box-shadow: 0 40px 90px -60px hsl(var(--accent-glow) / .7);
}
.cb-step[hidden] { display: none; }
.cb-board { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }

.cb-palette { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px; border-radius: 20px; background: hsl(var(--bg) / .6); border: 1px solid hsl(var(--border)); transition: border-color .2s ease; }
/* A board item dragged back over the palette is removed on drop. */
.cb-palette.is-over { border: 1px dashed hsl(var(--accent-glow)); }
.cb-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; }
.cb-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  color: hsl(var(--text-muted));
  background: transparent;
  border: 1px solid hsl(var(--border));
  cursor: pointer;
}
.cb-tab[aria-selected="true"] { color: hsl(var(--text)); background: hsl(var(--accent) / .14); border-color: hsl(var(--accent) / .7); }
.cb-tab-n { font-size: 12px; color: var(--pr-sub); }
.cb-group { display: flex; flex-direction: column; gap: 8px; max-height: 470px; overflow-y: auto; padding: 2px; overscroll-behavior: contain; }
.cb-group[hidden] { display: none; }
.cb-block {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  font: inherit;
  text-align: start;
  color: hsl(var(--text));
  background: hsl(var(--bg-elev-2) / .85);
  border: 1px solid hsl(var(--border));
  cursor: grab;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.cb-block:hover { transform: translateY(-1px); border-color: hsl(var(--accent) / .6); }
.cb-block:active { cursor: grabbing; }
.cb-block-icon, .cb-item-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: hsl(var(--text));
  background: linear-gradient(145deg, hsl(var(--accent) / .36), hsl(var(--accent) / .06));
  border: 1px solid hsl(var(--accent) / .45);
}
.cb-block-icon .ico, .cb-item-icon .ico { width: 19px; height: 19px; }
.cb-block-text { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }
.cb-block-text strong { font-size: 14px; font-weight: 800; line-height: 1.5; }
.cb-block-text small { font-size: 12.5px; line-height: 1.6; color: var(--pr-sub); }
.cb-block-state { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: hsl(var(--text-muted)); border: 1px dashed hsl(var(--border-strong)); }
.cb-block-state svg { width: 16px; height: 16px; }
.cb-ico-done { display: none; }
.cb-block[aria-pressed="true"] { background: hsl(var(--accent) / .1); border-color: hsl(var(--accent) / .55); }
.cb-block[aria-pressed="true"] .cb-block-state { color: #fff; background: hsl(var(--accent)); border: 1px solid transparent; }
.cb-block[aria-pressed="true"] .cb-ico-add { display: none; }
.cb-block[aria-pressed="true"] .cb-ico-done { display: block; }
.cb-group--own { gap: 10px; }
.cb-own-intro, .cb-hint { font-size: 13.5px; line-height: 1.8; color: hsl(var(--text-muted)); }

.cb-canvas-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cb-canvas-head { display: flex; align-items: center; gap: 12px; }
.cb-canvas-head .pr-label { flex: none; font-size: 15px; font-weight: 800; }
.cb-industry { flex: 1; min-width: 0; font-weight: 700; }
.cb-canvas {
  position: relative;
  min-height: 440px;
  padding: 16px;
  border-radius: 22px;
  background-color: hsl(var(--bg) / .55);
  background-image: radial-gradient(hsl(var(--text) / .14) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  border: 2px dashed hsl(var(--border-strong));
  transition: border-color .2s ease, background-color .2s ease;
}
.cb-canvas.has-items { border-style: solid; border-color: hsl(var(--border)); }
.cb-canvas.is-over { border-style: dashed; border-color: hsl(var(--accent-glow)); background-color: hsl(var(--accent) / .08); }
.cb-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.cb-empty[hidden] { display: none; }
.cb-empty-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; color: hsl(var(--accent-glow)); background: hsl(var(--accent) / .12); border: 1px dashed hsl(var(--accent) / .6); }
.cb-empty strong { font-size: 19px; font-weight: 900; color: hsl(var(--text)); }
.cb-empty p { max-width: 380px; font-size: 14.5px; line-height: 1.8; color: hsl(var(--text-muted)); }
.cb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: hsl(var(--bg-elev-2));
  border: 1px solid hsl(var(--border));
  border-inline-start: 3px solid hsl(var(--border-strong));
  box-shadow: 0 14px 30px -24px hsl(var(--text) / .6);
  cursor: grab;
  animation: cb-pop .28s cubic-bezier(.2, .9, .3, 1.2) both;
}
.cb-item[data-priority="must"] { border-inline-start-color: hsl(var(--accent-glow)); }
.cb-item.is-dragging, .cb-block.is-dragging { opacity: .5; }
.cb-item--own .cb-item-icon { border-style: dashed; }
.cb-item-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; line-height: 1.5; color: hsl(var(--text)); overflow-wrap: anywhere; }
.cb-prio {
  flex: none;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  color: hsl(var(--text-muted));
  background: transparent;
  border: 1px solid hsl(var(--border-strong));
  cursor: pointer;
}
.cb-prio[aria-pressed="true"] { color: #fff; background: hsl(var(--accent)); border-color: transparent; }
.cb-prio[aria-pressed="true"] .cb-prio-later, .cb-prio[aria-pressed="false"] .cb-prio-must { display: none; }
.cb-remove {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: hsl(var(--text-muted));
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}
.cb-remove svg { width: 16px; height: 16px; transform: rotate(45deg); }
.cb-remove:hover { color: hsl(var(--text)); border-color: hsl(var(--border-strong)); }
@keyframes cb-pop { from { transform: scale(.9); } to { transform: none; } }

.cb-bar {
  position: sticky;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: hsl(var(--bg-elev-2) / .94);
  border: 1px solid hsl(var(--border));
  box-shadow: 0 18px 40px -28px hsl(var(--text) / .5);
}
.cb-count { font-size: 14px; font-weight: 700; color: hsl(var(--text)); }
.cb-bar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cb-link {
  padding: 6px 2px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: hsl(var(--text-muted));
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.cb-link:hover { color: hsl(var(--text)); }

.cb-register { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: 22px; align-items: start; }
.cb-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border-radius: 20px; background: hsl(var(--bg) / .6); border: 1px solid hsl(var(--border)); }
.cb-summary-industry { font-size: 20px; font-weight: 900; line-height: 1.5; color: hsl(var(--text)); overflow-wrap: anywhere; }
.cb-summary .pr-tags li.is-must { color: hsl(var(--text)); background: hsl(var(--accent) / .12); border-color: hsl(var(--accent) / .6); }
.cb-form { padding: 4px; }
.cb-done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 640px; padding: 24px; }
.cb-done[hidden] { display: none; }
.cb-done p { font-size: 15.5px; line-height: 1.9; color: hsl(var(--text-muted)); }
.pr-shape .pr-ai-icon { margin-bottom: 12px; }
.pr-shape p { font-size: 14px; line-height: 1.85; color: hsl(var(--text-muted)); }
.pr-origins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pr-origins .pr-case { margin-top: 0; }
.pr-case-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-family: 'Inter', sans-serif; font-weight: 800; font-size: 14.5px; color: hsl(var(--text)); }

/* footer */
.pr-footer { padding: 40px 0 48px; border-top: 1px solid hsl(var(--border)); color: hsl(var(--text-muted)); }
.pr-footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.pr-footer-brand { display: flex; flex-direction: column; gap: 6px; max-width: 360px; }
.pr-footer-brand p { margin: 0; font-size: 14px; line-height: 1.8; }
.pr-footer-logo { font-family: 'Cairo', sans-serif; font-weight: 900; font-size: 22px; letter-spacing: 1.5px; color: hsl(var(--text)); text-decoration: none; }
.pr-footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pr-footer-links a { font-size: 14px; font-weight: 600; color: hsl(var(--text-muted)); text-decoration: none; }
.pr-footer-links a:hover { color: hsl(var(--text)); }
.pr-footer-copy { width: 100%; margin: 8px 0 0; font-family: var(--font-mono); font-size: 12px; color: hsl(var(--text-muted)); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .pr-segments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-ai, .pr-roi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-principles, .pr-rollout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-others-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pr-hero-grid, .pr-overview { grid-template-columns: 1fr; }
  .pr-sizes, .pr-origins, .pr-edition--custom { grid-template-columns: 1fr; }
  .cb-board, .cb-register { grid-template-columns: 1fr; }
  .cb-group { max-height: 340px; }
  .cb-canvas { min-height: 300px; }
  .pr-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pr-wrap { padding: 0 16px; }
  .pr-subnav-inner { padding: 8px 16px; }
  .pr-hero { padding-top: 28px; }
  .pr-sec { padding: 56px 0; }
  .pr-segments, .pr-roles, .pr-ai, .pr-roi, .pr-principles, .pr-rollout, .pr-others-grid { grid-template-columns: 1fr; }
  .pr-mods, .pr-editions { grid-template-columns: 1fr; }
  .pr-form-row { grid-template-columns: 1fr; }
  .pr-edition--custom { padding: 22px 18px; }
  .cb { padding: 10px; border-radius: 20px; }
  .cb-palette { padding: 12px; }
  .cb-canvas { padding: 12px; }
  .cb-canvas-head { flex-direction: column; align-items: stretch; gap: 6px; }
  .cb-list { grid-template-columns: 1fr; }
  .cb-bar { bottom: 8px; }
  .cb-bar-actions { width: 100%; justify-content: space-between; }
  .pr-glance dl > div { grid-template-columns: 96px 1fr; }
  .pr-band { padding: 26px 20px; }
  .pr-btn { height: 46px; padding: 0 18px; }
  .pr-quote p { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .pr *, .pr *::before, .pr *::after { animation: none !important; transition: none !important; }
}

@media print {
  .pr-subnav, .pr-ctas, .pr-final { display: none; }
  .pr-sec { padding: 24px 0; }
}
