* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: #f3f6f4;
  color: #2b3a45;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

:root {
  --bg: #f3f6f4;
  --bg-2: #eef2f0;
  --paper: #ffffff;
  --ink: #15202a;
  --ink-2: #2b3a45;
  --muted: #5c6b78;
  --faint: #8c99a4;
  --line: #e3e9e6;
  --line-soft: #eef2f0;
  --brand: #2563eb;
  --brand-ink: #1d4ed8;
  --brand-tint: #eaf1ff;
  --ok: #16845d;
  --ok-ink: #0e6044;
  --ok-tint: #e7f5ee;
  --amber: #c97700;
  --amber-ink: #8a5100;
  --amber-tint: #fbf0dd;
  --red: #c43b35;
  --red-ink: #9b2620;
  --red-tint: #fcebe9;
  --canvas-bg: #fcfdfc;
  --canvas-dot: #d4ddd7;
  --edge: #94a3b8;
  --radius-sm: 7px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 45, 32, 0.05), 0 1px 3px rgba(20, 45, 32, 0.05);
  --shadow: 0 10px 30px rgba(20, 45, 32, 0.09);
  --shadow-lg: 0 20px 50px rgba(20, 45, 32, 0.13);
  --shadow-brand: 0 6px 16px rgba(37, 99, 235, 0.22);
  --pm-maxw: 1840px;
  --pm-gutter: clamp(20px, 2.4vw, 56px);
  --pm-shell: calc(var(--pm-maxw) + 2 * var(--pm-gutter));
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.pm-root {
  min-height: 100vh;
  overflow-x: clip;
}

.pm-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.1);
}

.pm-topbar-in {
  max-width: var(--pm-shell);
  margin: 0 auto;
  padding: 11px var(--pm-gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}

.pm-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.pm-brand img {
  display: block;
  width: 205px;
  height: auto;
}

.pm-nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 22px;
  justify-self: center;
  align-items: center;
}

.pm-nav a {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.14s ease;
}

.pm-nav a:hover {
  color: var(--ink);
}

.pm-topbar-cta {
  justify-self: end;
  display: flex;
  gap: 8px;
  align-items: center;
}

.pm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.pm-btn:hover {
  transform: translateY(-1px);
}

.pm-btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.pm-btn-primary:hover {
  background: var(--brand-ink);
}

.pm-btn-secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.pm-btn-secondary:hover,
.pm-btn-ghost:hover {
  background: var(--bg-2);
}

.pm-btn-ghost {
  color: var(--ink);
  background: transparent;
}

.pm-btn-lg {
  min-height: 46px;
  padding: 12px 20px;
}

.pm-hero {
  padding: 96px var(--pm-gutter) 88px;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--brand-tint) 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(120% 70% at 80% -15%, var(--brand-tint), transparent 58%);
  border-bottom: 1px solid var(--line);
}

.pm-hero-grid {
  max-width: var(--pm-maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1fr);
  gap: clamp(36px, 4.5vw, 130px);
  align-items: center;
}

.pm-hero-copy,
.pm-hero-visual {
  min-width: 0;
}

.pm-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.pm-h1 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 58px;
  line-height: 1.04;
  font-weight: 850;
  letter-spacing: 0;
}

.pm-h1 span {
  display: block;
}

.pm-h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: 0;
  text-wrap: balance;
}

.pm-lead {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.pm-hero-sub {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  white-space: pre-line;
}

.pm-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.pm-trust {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 650;
}

.pm-trust-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-tint);
}

.pm-shot {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 30px 70px -28px rgba(20, 45, 32, 0.42), var(--shadow);
}

.pm-shot-chrome,
.pm-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.pm-shot-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.pm-shot-dot-r {
  background: #e1564b;
}

.pm-shot-dot-y {
  background: #e3a82b;
}

.pm-shot-dot-g {
  background: #46b160;
}

.pm-shot-url,
.pm-browser-url {
  flex: 1;
  min-width: 0;
  max-width: 360px;
  margin-left: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-shot-view {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--bg);
}

.pm-shot-fade {
  position: absolute;
  inset: auto 0 0;
  height: 48px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(243, 246, 244, 0), var(--bg));
}

.pm-ov {
  min-width: 1120px;
  padding: 16px 18px;
}

.pm-ov-eyebrow {
  font-family: var(--mono);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}

.pm-ov-title {
  margin: 6px 0 12px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.15;
}

.pm-ov-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.pm-widget {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.pm-widget span,
.pm-loss-rail span,
.pm-tile-h span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.pm-widget b {
  display: block;
  margin: 5px 0 3px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1.05;
}

.pm-widget small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.pm-widget-red b {
  color: var(--red);
}

.pm-widget-brand b {
  color: var(--brand);
}

.pm-ov-grid {
  display: grid;
  grid-template-columns: 2.25fr 1fr;
  gap: 14px;
  align-items: start;
}

.pm-ov-mapcard,
.pm-ov-side,
.pm-tile,
.pm-loss-card,
.pm-auth-card,
.pm-criteria article,
.pm-audience article,
.pm-steps li {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.pm-ov-mapcard {
  padding: 14px;
}

.pm-ov-cardtitle {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.pm-detail-map {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.pm-map-toolbar {
  display: flex;
  gap: 4px;
  padding: 10px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.pm-map-toolbar span {
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.pm-map-toolbar .is-active {
  background: var(--brand);
  color: #fff;
}

.pm-map-canvas {
  position: relative;
  height: 780px;
  overflow: hidden;
  background: radial-gradient(var(--canvas-dot) 1.1px, transparent 1.1px) 0 0 / 22px 22px, var(--canvas-bg);
}

.pm-flow-svg {
  position: absolute;
  inset: 0;
  width: 620px;
  height: 780px;
  overflow: visible;
}

.pm-flow-edge {
  fill: none;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-dasharray: 6 7;
  animation: pm-dash 1.4s linear infinite;
}

.pm-flow-main {
  stroke: var(--edge);
}

.pm-flow-bad {
  stroke: var(--red);
  stroke-width: 2.2px;
  animation-duration: 1.15s;
}

.pm-flow-return {
  stroke: var(--amber);
  stroke-dasharray: 5 6;
  animation-duration: 0.9s;
}

@keyframes pm-dash {
  to {
    stroke-dashoffset: -44px;
  }
}

.pm-node,
.pm-map-node,
.pm-edge-num,
.pm-return-box {
  position: absolute;
  transform: translate(-50%, -50%);
}

.pm-node {
  padding: 10px 15px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--shadow-brand);
}

.pm-node-start {
  left: 270px;
  top: 42px;
}

.pm-node-end {
  left: 270px;
  top: 724px;
}

.pm-map-node {
  width: 232px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.pm-map-node b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.pm-map-node span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.pm-map-node.warn {
  border-color: #ebcb95;
}

.pm-map-node.bad {
  border-color: #e6b1ac;
  background: var(--red-tint);
}

.n1 {
  left: 270px;
  top: 148px;
}

.n2 {
  left: 270px;
  top: 258px;
}

.n3 {
  left: 270px;
  top: 368px;
}

.n4 {
  left: 270px;
  top: 478px;
}

.n5 {
  left: 270px;
  top: 588px;
}

.n6 {
  left: 270px;
  top: 650px;
}

.pm-edge-num {
  padding: 0 3px;
  border-radius: 4px;
  background: rgba(252, 253, 252, 0.88);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}

.pm-edge-num.bad {
  color: var(--red);
}

.e1 {
  left: 292px;
  top: 96px;
}

.e2 {
  left: 292px;
  top: 206px;
}

.e3 {
  left: 292px;
  top: 316px;
}

.e4 {
  left: 292px;
  top: 426px;
}

.e5 {
  left: 292px;
  top: 536px;
}

.pm-return-box {
  padding: 3px 7px;
  border: 1px solid #e7c489;
  border-radius: 6px;
  background: #fff;
  color: var(--amber-ink);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.r1 {
  left: 508px;
  top: 356px;
}

.r2 {
  left: 526px;
  top: 468px;
}

.pm-map-legend {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.pm-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.pm-map-legend i {
  width: 17px;
  border-top: 2px dashed var(--edge);
}

.pm-map-legend .ret i {
  border-color: var(--amber);
}

.pm-map-legend .bad i {
  border-color: var(--red);
}

.pm-ov-side {
  display: grid;
  gap: 11px;
  align-content: start;
  padding: 18px;
}

.pm-ov-side > p {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.pm-finding {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.pm-finding span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.pm-finding b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.pm-finding p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pm-finding.bad {
  border-left-color: var(--red);
}

.pm-finding.warn {
  border-left-color: var(--amber);
}

.pm-finding.ok {
  border-left-color: var(--ok);
}

.pm-integ {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.pm-integ-in {
  max-width: var(--pm-shell);
  margin: 0 auto;
  padding: 26px var(--pm-gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.pm-integ-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.pm-integ-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pm-integ-row span {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.pm-sec {
  max-width: var(--pm-shell);
  margin: 0 auto;
  padding: 88px var(--pm-gutter);
}

.pm-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.pm-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.pm-head-center .pm-lead {
  margin-left: auto;
  margin-right: auto;
}

.pm-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pm-tile {
  min-width: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pm-tile:hover {
  border-color: #bcd3ff;
  box-shadow: var(--shadow);
}

.pm-tile-lg {
  grid-row: span 2;
}

.pm-tile-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pm-tile-h em {
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--red-tint);
  color: var(--red-ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.pm-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.pm-tile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pm-stat b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 34px;
  line-height: 1;
}

.pm-stat small {
  margin-left: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 750;
}

.pm-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.pm-stat-red b {
  color: var(--red);
}

.pm-donut {
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: conic-gradient(var(--amber) calc(var(--value) * 1%), var(--line) 0);
  position: relative;
}

.pm-donut::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--paper);
}

.pm-donut span,
.pm-donut small {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--mono);
}

.pm-donut span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.pm-donut small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.pm-bars {
  display: grid;
  gap: 12px;
}

.pm-bars div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.pm-bars span {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 650;
}

.pm-bars b {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.pm-bars i {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 7px;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--red) var(--w), var(--line-soft) 0);
}

.pm-bento-map {
  flex: 1;
  min-height: 230px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(var(--canvas-dot) 1px, transparent 1px) 0 0 / 18px 18px, var(--canvas-bg);
}

.bm-node {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.bm-node-bad {
  border-color: #e6b1ac;
  background: var(--red-tint);
  color: var(--red);
}

.pm-bento-map > i {
  height: 28px;
  border-left: 2px dashed var(--edge);
  animation: pm-dash 1.4s linear infinite;
}

.pm-bento-map > b {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 8px;
  border: 1px solid #e7c489;
  border-radius: 6px;
  background: #fff;
  color: var(--amber-ink);
  font-family: var(--mono);
  font-size: 10px;
  box-shadow: var(--shadow-sm);
}

.pm-band {
  background: var(--ink);
  color: #fff;
}

.pm-band-in {
  max-width: var(--pm-shell);
  margin: 0 auto;
  padding: 58px var(--pm-gutter);
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 40px;
  align-items: center;
}

.pm-band p {
  max-width: 38ch;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13.5px;
}

.pm-eyebrow-dark {
  color: #93b4fb;
}

.pm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.pm-kpi {
  padding-left: 16px;
  border-left: 2px solid rgba(255, 255, 255, 0.14);
}

.pm-kpi b {
  color: #fff;
  font-family: var(--mono);
  font-size: 42px;
  line-height: 1;
}

.pm-kpi small {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 750;
}

.pm-kpi span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12.5px;
}

.pm-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pm-steps li {
  padding: 20px;
}

.pm-steps span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 800;
}

.pm-steps b,
.pm-audience b,
.pm-criteria b {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.pm-steps p,
.pm-audience p,
.pm-criteria p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Карточки семи шагов и критериев процессов — крупнее остальных списков (запрос 2026-06-11). */
.pm-steps span {
  font-size: 20px;
}

.pm-steps b,
.pm-criteria b {
  font-size: 19px;
}

.pm-steps p,
.pm-criteria p {
  font-size: 15px;
  line-height: 1.45;
}

.pm-demo-sec {
  padding-top: 72px;
}

.pm-demo-head {
  margin-bottom: 26px;
}

.pm-demo-head .pm-head {
  margin-bottom: 0;
}

.pm-browser {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.pm-browser-body {
  padding: 22px;
  background: var(--bg);
}

.pm-loss-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.pm-loss-rail div {
  padding: 16px 18px;
  border: 1px solid #ecd6a8;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--amber-tint), var(--paper) 70%);
}

.pm-loss-rail b {
  display: block;
  margin: 8px 0 5px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 30px;
  line-height: 1;
}

.pm-loss-rail small {
  color: var(--muted);
  font-size: 12px;
}

.pm-loss-cols {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 14px;
  align-items: start;
}

.pm-loss-card {
  padding: 22px;
}

.pm-loss-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 19px;
}

.pm-loss-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.pm-loss-donut {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.pm-donut3 {
  width: 168px;
  height: 168px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: conic-gradient(var(--ok) 0 8%, var(--red) 8% 64%, var(--amber) 64% 100%);
  position: relative;
}

.pm-donut3::after {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background: var(--paper);
}

.pm-donut3 span,
.pm-donut3 small {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--mono);
}

.pm-donut3 span {
  color: var(--ink);
  font-size: 34px;
  font-weight: 800;
}

.pm-donut3 small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.pm-donut-legend {
  display: grid;
  gap: 11px;
}

.pm-donut-legend span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
}

.pm-donut-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.pm-donut-legend .ok {
  background: var(--ok);
}

.pm-donut-legend .red {
  background: var(--red);
}

.pm-donut-legend .amber {
  background: var(--amber);
}

.pm-loss-table {
  display: grid;
}

.pm-loss-table .head,
.pm-loss-table > div:not(.head) {
  display: grid;
  grid-template-columns: 1.35fr 1.15fr 1.25fr;
  gap: 14px;
  align-items: center;
}

.pm-loss-table .head {
  padding: 0 0 10px 13px;
  border-bottom: 1px solid var(--line);
}

.pm-loss-table .head span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}

.pm-loss-table > div:not(.head) {
  padding: 14px 0 14px 13px;
  border-bottom: 1px solid var(--line-soft);
  border-left: 3px solid var(--amber);
}

.pm-loss-table > div.red {
  border-left-color: var(--red);
}

.pm-loss-table b {
  color: var(--ink);
  font-size: 14px;
}

.pm-loss-table span {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 750;
}

.pm-loss-table small {
  color: var(--muted);
  font-size: 12px;
}

.pm-audience {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pm-audience article {
  padding: 22px 20px;
}

.pm-audience article > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-size: 18px;
  font-weight: 800;
}

.pm-process-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.pm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.pm-chips span {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 650;
}

.pm-criteria {
  display: grid;
  gap: 14px;
}

.pm-criteria article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  padding: 16px 18px;
}

.pm-criteria article > span,
.pm-cta-copy li span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--ok-tint);
  color: var(--ok-ink);
  font-weight: 800;
}

.pm-criteria b,
.pm-criteria p {
  grid-column: 2;
}

.pm-cta {
  max-width: var(--pm-shell);
  margin: 0 auto;
  padding: 20px var(--pm-gutter) 96px;
  scroll-margin-top: 90px;
}

.pm-cta-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: radial-gradient(120% 90% at 0% 0%, var(--brand-tint), transparent 55%), var(--paper);
  box-shadow: var(--shadow);
}

.pm-cta-copy ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.pm-cta-copy li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 650;
}

.pm-auth-card {
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.pm-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  margin-bottom: 22px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}

.pm-auth-tab {
  appearance: none;
  border: 0;
  border-radius: 6px;
  padding: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 750;
  cursor: pointer;
}

.pm-auth-tab.is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.pm-auth-panel[hidden] {
  display: none;
}

.pm-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pm-field span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.pm-field small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 400;
}

.pm-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.pm-input::placeholder {
  color: var(--faint);
}

.pm-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

.pm-submit {
  width: 100%;
  min-height: 43px;
  margin-top: 4px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: background 0.14s ease, transform 0.14s ease;
}

.pm-submit:hover {
  background: var(--brand-ink);
  transform: translateY(-1px);
}

.pm-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.pm-form-error,
.pm-google-hint {
  min-height: 18px;
  margin: 4px 0 0;
  color: var(--red);
  font-size: 13px;
}

.pm-auth-div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 14px;
  color: var(--faint);
  font-size: 11px;
  text-transform: uppercase;
}

.pm-auth-div::before,
.pm-auth-div::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.pm-google {
  width: 100%;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
}

.pm-google:hover {
  background: var(--bg);
}

.pm-auth-foot {
  margin: 8px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 11.5px;
  line-height: 1.5;
}

.pm-auth-foot a {
  color: var(--muted);
  text-decoration: underline;
}

.pm-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.pm-footer-in {
  max-width: var(--pm-shell);
  margin: 0 auto;
  padding: 26px var(--pm-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pm-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.pm-footer-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 12.5px;
}

.pm-footer-meta a:hover {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 1280px) {
  .pm-h1 {
    font-size: 48px;
  }

  .pm-h2 {
    font-size: 34px;
  }

  .pm-hero-grid {
    gap: 42px;
  }
}

@media (max-width: 1600px) and (min-width: 1001px) {
  .pm-h1 {
    font-size: 42px;
  }
}

@media (max-width: 1280px) and (min-width: 1001px) {
  .pm-h1 {
    font-size: 38px;
  }
}

@media (max-width: 1000px) {
  .pm-topbar-in {
    grid-template-columns: 1fr auto;
  }

  .pm-nav {
    display: none;
  }

  .pm-hero {
    padding-top: 56px;
  }

  .pm-hero-grid {
    grid-template-columns: 1fr;
  }

  .pm-hero-visual {
    max-width: 680px;
  }

  .pm-shot-view {
    height: 480px;
  }

  .pm-bento,
  .pm-steps,
  .pm-audience,
  .pm-loss-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-band-in,
  .pm-process-grid,
  .pm-cta-grid,
  .pm-loss-cols {
    grid-template-columns: 1fr;
  }

  .pm-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-loss-table .head,
  .pm-loss-table > div:not(.head) {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 14px;
  }

  .pm-topbar-in {
    padding: 10px 16px;
  }

  .pm-brand img {
    width: 174px;
  }

  .pm-topbar-cta {
    gap: 4px;
  }

  .pm-topbar-cta .pm-btn {
    padding: 8px 10px;
    font-size: 13px;
  }

  .pm-topbar-cta .pm-btn-ghost {
    display: none;
  }

  .pm-hero,
  .pm-sec {
    padding-left: 18px;
    padding-right: 18px;
  }

  .pm-h1 {
    font-size: 31px;
    line-height: 1.14;
  }

  .pm-h1 span {
    display: inline;
  }

  .pm-h1 span + span::before {
    content: " ";
  }

  .pm-h2 {
    font-size: 28px;
  }

  .pm-hero-sub {
    white-space: normal;
  }

  .pm-hero-actions {
    display: grid;
  }

  .pm-hero-actions .pm-btn {
    width: auto;
    white-space: normal;
    text-align: center;
  }

  .pm-shot-view {
    height: 390px;
  }

  .pm-ov {
    transform: scale(0.78);
    transform-origin: top left;
  }

  .pm-bento,
  .pm-steps,
  .pm-audience,
  .pm-loss-rail,
  .pm-kpi-grid {
    grid-template-columns: 1fr;
  }

  .pm-browser-body {
    padding: 14px;
  }

  .pm-cta-grid {
    padding: 26px 20px;
  }

  .pm-footer-in {
    flex-direction: column;
    align-items: flex-start;
  }

  .pm-footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .pm-flow-edge,
  .pm-bento-map > i {
    animation: none;
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
