/* How it works */

.pd-hiw-tone-blue { background: #EEF1FF; color: #3B45FF; }
.pd-hiw-tone-indigo { background: #F0EEFF; color: #5B4BFF; }
.pd-hiw-tone-green { background: #E9F8F0; color: #12A15A; }
.pd-hiw-tone-orange { background: #FFF3E4; color: #F08A24; }
.pd-hiw-tone-red { background: #FFEFF1; color: #EF334E; }
.pd-hiw-tone-purple { background: #F3EEFF; color: #7A4DFF; }
.pd-hiw-tone-slate { background: #F1F4F9; color: #52617A; }

.pd-hiw-panel {
  background: #fff;
  border: 1px solid #E4EAF3;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 30, 80, .03), 0 8px 24px rgba(15, 30, 80, .03);
}
.pd-hiw-sub { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: #66758C; }
.pd-hiw-planned {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #F1F4F9;
  border: 1px solid #E3E9F3;
  color: #7B889E;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
  vertical-align: 1px;
  white-space: nowrap;
}
.pd-hiw-ghost {
  background: #fff;
  border: 1px solid #D7DEEA;
  color: var(--pd-ink) !important;
  font-weight: 600;
}
.pd-hiw-ghost:hover { border-color: #B7C2D6; background: #FAFBFE; }
.pd-hiw-hero .pd-btn:focus-visible, .pd-hiw-cta .pd-btn:focus-visible { outline: 2px solid var(--pd-blue); outline-offset: 2px; }

/* Hero */
.pd-hiw-hero {
  display: grid;
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  gap: 32px;
  align-items: center;
  padding-top: 40px;
}
.pd-hiw-eyebrow {
  margin: 0;
  color: var(--pd-blue);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pd-hiw-hero h1 {
  margin: 12px 0 0;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--pd-ink);
}
.pd-hiw-lead {
  margin: 16px 0 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.55;
  color: #52617A;
}
.pd-hiw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pd-hiw-actions .pd-btn { height: 44px; padding: 0 20px; }

/* Flow diagram */
.pd-hiw-flow {
  position: relative;
  margin: 0;
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr) 196px;
  grid-template-rows: auto auto;
  column-gap: 0;
  row-gap: 14px;
  padding: 10px 0 6px;
}
.pd-hiw-flow::before {
  content: "";
  position: absolute;
  inset: 8% 4% 0 10%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(226, 232, 255, .8), rgba(238, 242, 255, 0));
  pointer-events: none;
}
.pd-hiw-flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  fill: none;
  stroke: #C9D2FB;
  stroke-width: 1.3;
  stroke-dasharray: 3 4;
}
.pd-hiw-flow-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid #E2E8F5;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 30, 80, .04), 0 10px 24px rgba(40, 60, 140, .07);
  padding: 12px 12px 10px;
}
.pd-hiw-flow-title { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--pd-ink); }
.pd-hiw-flow-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pd-hiw-flow-card li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 500; color: #3A4860; }
.pd-hiw-flow-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex: none;
  background: #EEF1FF;
  color: var(--pd-blue);
}
.pd-hiw-flow-hf {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: none;
  background: #FFF7E0;
  font-size: 17px;
  line-height: 1;
}
.pd-hiw-flow-repos { grid-column: 1; grid-row: 1; align-self: center; }
.pd-hiw-flow-repos li.is-live strong { font-size: 12px; font-weight: 600; color: var(--pd-ink); }
.pd-hiw-flow-repos li:not(.is-live) { color: #66758C; }

.pd-hiw-flow-hub {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: center;
}
.pd-hiw-flow-arrow { color: #5A63FF; }
.pd-hiw-flow-logo {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #E2E8F5;
  box-shadow: 0 14px 30px rgba(59, 69, 255, .14), 0 2px 4px rgba(15, 30, 80, .05);
}
.pd-hiw-flow-logo img { width: 58px; height: 58px; display: block; }
.pd-hiw-flow-down { grid-column: 2; grid-row: 2; margin-top: 8px; color: #8C95B8; transform: rotate(90deg); }

.pd-hiw-flow-detect { grid-column: 3; grid-row: 1 / span 2; align-self: start; padding: 14px 14px 12px; }
.pd-hiw-flow-detect ul { gap: 9px; }

.pd-hiw-flow-evidence {
  grid-column: 2;
  grid-row: 2;
  margin: 0 -6px 0 -46px;
}
.pd-hiw-flow-evidence .pd-hiw-flow-title { text-align: center; }
.pd-hiw-flow-evidence ul { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pd-hiw-flow-evidence li { flex-direction: column; gap: 5px; text-align: center; font-size: 10.5px; color: #52617A; }
.pd-hiw-flow-evidence .pd-hiw-flow-ico { width: 26px; height: 26px; }

/* Method */
.pd-hiw-method { margin-top: 36px; padding: 24px 26px; }
.pd-hiw-method-list {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px;
}
.pd-hiw-method-list li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-top: 1px solid #EEF2F7; }
.pd-hiw-method-list h3 { margin: 4px 0 6px; font-size: 16px; font-weight: 750; letter-spacing: -0.01em; color: var(--pd-ink); }
.pd-hiw-method-list p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #5C6B84; }
.pd-hiw-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--pd-blue);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(59, 69, 255, .25);
}
.pd-hiw-panel > h2, .pd-hiw-separate h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* Technical signals */
.pd-hiw-signals { margin-top: 22px; padding: 24px 26px; }
.pd-hiw-signal-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 13.5px; }
.pd-hiw-signal-table thead th {
  padding: 8px 12px 8px 0; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #7B889E;
}
.pd-hiw-signal-table tbody th, .pd-hiw-signal-table td { padding: 14px 12px 14px 0; border-top: 1px solid #EEF2F7; vertical-align: top; text-align: left; }
.pd-hiw-signal-table tbody th { width: 30%; font-weight: 700; color: var(--pd-ink); white-space: nowrap; }
.pd-hiw-signal-table tbody th .pd-hiw-type-icon { display: inline-grid; margin-right: 10px; vertical-align: middle; }
.pd-hiw-signal-table td { line-height: 1.55; color: #52617A; }
.pd-hiw-type-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
}

/* Severity + separate concepts */
.pd-hiw-sev-row {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  gap: 20px;
  align-items: stretch;
}
.pd-hiw-sev { padding: 22px 22px 18px; }
.pd-hiw-separate {
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  padding: 24px 26px; background: #EEF2FF; border: 1px solid #DCE3FB; border-radius: 14px;
}
.pd-hiw-separate h2 { font-size: 20px; }
.pd-hiw-separate p { margin: 0; font-size: 14px; line-height: 1.55; color: #3A4860; }
.pd-hiw-separate .pd-link { align-self: flex-start; font-size: 14px; font-weight: 600; }

/* Limitations */
.pd-hiw-limits { margin-top: 22px; padding: 24px 26px; }
.pd-hiw-limits ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.pd-hiw-limits li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: #3A4860; }
.pd-hiw-limits li .icon { flex: none; margin-top: 2px; color: #7B889E; }
.pd-hiw-sev .pd-hiw-sub { max-width: 380px; }
.pd-hiw-sev-grid {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.pd-hiw-sev-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 128px;
  padding: 14px 12px;
  border: 1px solid;
  border-radius: 10px;
}
.pd-hiw-sev-card .icon { margin-bottom: 6px; }
.pd-hiw-sev-card strong { font-size: 14px; font-weight: 700; }
.pd-hiw-sev-card small { font-size: 11.5px; line-height: 1.4; color: #5C6B84; }
.pd-hiw-sev-card.is-critical { background: #FFF3F4; border-color: #FFD6DC; }
.pd-hiw-sev-card.is-critical .icon, .pd-hiw-sev-card.is-critical strong { color: #E5283F; }
.pd-hiw-sev-card.is-high { background: #FFF7EC; border-color: #FFE2BC; }
.pd-hiw-sev-card.is-high .icon, .pd-hiw-sev-card.is-high strong { color: #EA7A12; }
.pd-hiw-sev-card.is-medium { background: #F2F4FF; border-color: #D9DFFF; }
.pd-hiw-sev-card.is-medium .icon, .pd-hiw-sev-card.is-medium strong { color: #3B45FF; }
.pd-hiw-sev-card.is-low { background: #F5F7FA; border-color: #E3E9F3; }
.pd-hiw-sev-card.is-low .icon { color: #8B97AB; }
.pd-hiw-sev-card.is-low strong { color: #52617A; }
.pd-hiw-note { margin: 12px 0 0; font-size: 12px; line-height: 1.45; color: #7B889E; }

/* CTA */
.pd-hiw-cta {
  margin: 22px 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .95fr);
  overflow: hidden;
}
.pd-hiw-cta-copy { padding: 28px 10px 28px 28px; }
.pd-hiw-cta-eyebrow {
  margin: 0;
  color: var(--pd-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pd-hiw-cta h2 { margin: 8px 0 10px; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.025em; }
.pd-hiw-cta-copy > p { margin: 0; font-size: 14px; line-height: 1.5; color: #66758C; }
.pd-hiw-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pd-hiw-cta .pd-btn { height: 40px; padding: 0 16px; font-size: 13.5px; }

.pd-hiw-cta-stage {
  position: relative;
  margin: 14px;
  border-radius: 12px;
  background:
    radial-gradient(140px 90px at 85% 15%, rgba(255, 255, 255, .8), transparent 70%),
    linear-gradient(180deg, #F4F6FF 0%, #EDF1FF 100%);
  min-height: 220px;
  display: grid;
  place-items: center;
}
.pd-hiw-cta-screen {
  position: absolute;
  left: 12%;
  top: 14%;
  width: 52%;
  height: 46%;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #E1E7F8;
  box-shadow: 0 10px 24px rgba(40, 60, 140, .06);
  opacity: .8;
}
.pd-hiw-cta-cube {
  position: absolute;
  right: 10%;
  top: 9%;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #DCE2FF, #B9C3FF);
  transform: rotate(45deg);
  box-shadow: 0 8px 16px rgba(59, 69, 255, .15);
}
.pd-hiw-cta-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  width: calc(100% - 32px);
  max-width: 300px;
  margin-top: 30px;
  padding: 14px;
  background: #fff;
  border: 1px solid #E4EAF6;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(40, 60, 140, .1);
}
.pd-hiw-cta-card img { width: 52px; height: 52px; flex: none; }
.pd-hiw-cta-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.pd-hiw-cta-card li { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: #24324A; white-space: nowrap; }
.pd-hiw-cta-card li > span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #EEF1FF;
  color: var(--pd-blue);
}

/* Responsive */
@media (max-width: 1320px) {
  .pd-hiw-hero h1 { font-size: 42px; }
}

@media (max-width: 1180px) {
  .pd-hiw-hero h1 { font-size: 38px; }
  .pd-hiw-sev-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .pd-hiw-hero { grid-template-columns: 1fr; gap: 28px; }
  .pd-hiw-flow { max-width: 600px; }
}

@media (max-width: 760px) {
  .pd-hiw-hero { padding-top: 28px; }
  .pd-hiw-hero h1 { font-size: 32px; }
  .pd-hiw-hero h1 br { display: none; }
  .pd-hiw-lead { font-size: 15px; }
  .pd-hiw-method, .pd-hiw-signals, .pd-hiw-limits { padding: 20px 18px; }
  .pd-hiw-method-list, .pd-hiw-limits ul { grid-template-columns: 1fr; }
  .pd-hiw-signal-table thead { display: none; }
  .pd-hiw-signal-table tbody tr { display: grid; border-top: 1px solid #EEF2F7; padding: 12px 0; }
  .pd-hiw-signal-table tbody th, .pd-hiw-signal-table td { width: auto; padding: 4px 0; border-top: 0; white-space: normal; }
  .pd-hiw-sev-grid { grid-template-columns: 1fr 1fr; }
  .pd-hiw-cta { grid-template-columns: 1fr; }
  .pd-hiw-cta-copy { padding: 22px 20px 8px; }
}

@media (max-width: 560px) {
  .pd-hiw-flow { grid-template-columns: 1fr; row-gap: 12px; }
  .pd-hiw-flow-lines, .pd-hiw-flow::before { display: none; }
  .pd-hiw-flow-repos, .pd-hiw-flow-hub, .pd-hiw-flow-detect, .pd-hiw-flow-evidence { grid-column: 1; grid-row: auto; margin: 0; width: auto; justify-self: stretch; }
  .pd-hiw-flow-hub { grid-template-columns: auto; }
  .pd-hiw-flow-hub .pd-hiw-flow-arrow { transform: rotate(90deg); }
  .pd-hiw-flow-down { display: none; }
}
