/* REV3 direct-reading layer: conclusion, bullets, proof, action. */
.section-head .count.r3-priority-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  background: #ededed;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .75px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 1;
}

.section-head .count.r3-priority-pill.r3-priority-critical { color: #951a1d; border-color: #d7a7a9; }
.section-head .count.r3-priority-pill.r3-priority-high { color: #e30613; border-color: #e5a8ad; }
.section-head .count.r3-priority-pill.r3-priority-medium { color: #d66b00; border-color: #e8bf91; }
.section-head .count.r3-priority-pill.r3-priority-low { color: #27834b; border-color: #a7ceb6; }
.section-head .count.r3-priority-pill.r3-priority-neutral { color: #3f3f3f; }

.r3-direct-lead {
  margin: 0 0 18px;
  max-width: 920px;
  font: 700 23px/1.35 'Arimo', Arial, sans-serif;
  color: #171717;
}

.r3-direct-panel {
  margin: 18px 0 22px;
  padding: 24px 28px;
  border-radius: 10px;
  background: #242424;
  color: #f7f7f7;
}

.r3-direct-panel h3,
.r3-direct-panel strong {
  color: #fff;
}

.r3-direct-panel h3,
.r3-direct-block h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.r3-checked-date {
  display: inline-block;
  margin-left: 10px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1px;
  color: #bdbdbd;
  vertical-align: middle;
}

.r3-direct-panel ul,
.r3-direct-block ul,
.r3-direct-block ol {
  margin: 0;
  padding-left: 25px;
}

.r3-direct-panel li,
.r3-direct-block li {
  margin: 8px 0;
  padding-left: 4px;
  font-size: 16px;
  line-height: 1.45;
}

.r3-direct-block {
  margin: 18px 0 22px;
  padding: 20px 24px;
  border: 1px solid #dedede;
  border-left: 5px solid var(--wp-red);
  border-radius: 8px;
  background: #fff;
}

.r3-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 22px;
}

.r3-score-card {
  padding: 16px 18px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
}

.r3-score-card h4 {
  margin: 0 0 12px;
  font-size: 14px;
}

.r3-score-ring-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.r3-score-ring {
  width: 84px;
  text-align: center;
}

.r3-score-ring .ring {
  width: 64px;
  height: 64px;
  margin: 0 auto 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 6px solid var(--wp-red);
  font: 800 17px/1 'Arimo', Arial, sans-serif;
}

.r3-score-ring.good .ring { border-color: #1b7a3d; color: #1b7a3d; }
.r3-score-ring.mid .ring { border-color: #b8860b; color: #8a6d00; }
.r3-score-ring.bad .ring { border-color: var(--wp-red); color: var(--wp-red); }

.r3-score-ring span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: #555;
}

.r3-score-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #666;
}

.r3-score-callout {
  margin: 14px 0 22px;
  padding: 14px 18px;
  border-left: 4px solid var(--wp-red);
  border-radius: 6px;
  background: #fdf3f3;
  font-size: 14px;
  line-height: 1.55;
  color: #3a3a3a;
}

.r3-score-callout strong {
  color: #171717;
}

.r3-direct-block.action {
  background: #fafafa;
}

.r3-purpose-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}

.r3-purpose-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid #dedede;
  border-radius: 9px;
  background: #fff;
}

.r3-purpose-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--wp-red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.r3-purpose-card p {
  margin: 5px 0 0;
  color: #222;
  font-size: 16px;
  line-height: 1.45;
}

.r3-step-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}

.r3-step-card {
  min-height: 112px;
  padding: 22px 24px;
  border: 1px solid #dedede;
  border-top: 6px solid var(--wp-red);
  border-radius: 9px;
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
}

.r3-step-card strong {
  display: block;
  margin-bottom: 7px;
  color: #111;
  font-size: 18px;
}

.r3-step-card ul {
  margin: 0;
  padding-left: 18px;
}

.r3-step-card li {
  margin-bottom: 4px;
}

.r3-step-card li:last-child {
  margin-bottom: 0;
}

.r3-step-card:nth-child(2) { border-top-color: #d66b00; }
.r3-step-card:nth-child(3) { border-top-color: #4d657a; }
.r3-step-card:nth-child(4) { border-top-color: #27834b; }

.r3-solution-card-grid .r3-step-card:nth-child(1) { border-top-color: #27834b; }
.r3-solution-card-grid .r3-step-card:nth-child(2) { border-top-color: var(--wp-red); }
.r3-solution-card-grid .r3-step-card:nth-child(3) { border-top-color: #d66b00; }
.r3-solution-card-grid .r3-step-card:nth-child(4) { border-top-color: #4d657a; }

.r3-competitor-card-grid .r3-step-card:nth-child(1) { border-top-color: #4d657a; }
.r3-competitor-card-grid .r3-step-card:nth-child(2) { border-top-color: #1f6e8c; }
.r3-competitor-card-grid .r3-step-card:nth-child(3) { border-top-color: #d66b00; }
.r3-competitor-card-grid .r3-step-card:nth-child(4) { border-top-color: var(--wp-red); }

.r3-roadmap-card-grid .r3-step-card:nth-child(1) { border-top-color: var(--wp-red); }
.r3-roadmap-card-grid .r3-step-card:nth-child(2) { border-top-color: #d66b00; }
.r3-roadmap-card-grid .r3-step-card:nth-child(3) { border-top-color: #4d657a; }
.r3-roadmap-card-grid .r3-step-card:nth-child(4) { border-top-color: #27834b; }

.r3-roadmap-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.r3-growth-card-grid .r3-step-card:nth-child(1) { border-top-color: #27834b; }
.r3-growth-card-grid .r3-step-card:nth-child(2) { border-top-color: #4d657a; }
.r3-growth-card-grid .r3-step-card:nth-child(3) { border-top-color: #d66b00; }
.r3-growth-card-grid .r3-step-card:nth-child(4) { border-top-color: #3f3f3f; }

.r3-final-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.r3-final-card-grid .r3-step-card:nth-child(1) { border-top-color: var(--wp-red); }
.r3-final-card-grid .r3-step-card:nth-child(2) { border-top-color: #d66b00; }
.r3-final-card-grid .r3-step-card:nth-child(3) { border-top-color: #4d657a; }
.r3-final-card-grid .r3-step-card:nth-child(4) { border-top-color: #3f3f3f; }
.r3-final-card-grid .r3-step-card:nth-child(5) { border-top-color: #27834b; }
.r3-final-card-grid .r3-step-card:nth-child(6) { border-top-color: #4d657a; }
.r3-final-card-grid .r3-step-card:nth-child(7) {
  grid-column: 1 / -1;
  min-height: 0;
  border-top-color: var(--wp-red);
  background: #fafafa;
}

.r3-action-flow-wrap {
  margin: 24px 0 22px;
  padding: 22px 24px 26px;
  border: 1px solid #dedede;
  border-radius: 9px;
  background: #fafafa;
}

.r3-action-flow-wrap h3 {
  margin: 0 0 18px;
  font-size: 18px;
}

.r3-action-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 44px;
}

.r3-action-step {
  position: relative;
  min-width: 0;
  padding: 18px;
  border: 1px solid #d9d9d9;
  border-top: 5px solid var(--wp-red);
  border-radius: 8px;
  background: #fff;
}

.r3-action-step:nth-child(2) { border-top-color: #d66b00; }
.r3-action-step:nth-child(3) { border-top-color: #4d657a; }
.r3-action-step:nth-child(4) { border-top-color: #27834b; }
.r3-action-step:nth-child(5) { border-top-color: #3f3f3f; }

.r3-action-flow-count-4 .r3-action-step:nth-child(4),
.r3-action-flow-count-5 .r3-action-step:nth-child(4),
.r3-action-flow-count-6 .r3-action-step:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}

.r3-action-flow-count-5 .r3-action-step:nth-child(5),
.r3-action-flow-count-6 .r3-action-step:nth-child(5) {
  grid-column: 2;
  grid-row: 2;
}

.r3-action-flow-count-6 .r3-action-step:nth-child(6) {
  grid-column: 1;
  grid-row: 2;
}

.r3-action-step:not(:last-child)::after {
  content: '\2192';
  position: absolute;
  top: 50%;
  right: -28px;
  transform: translateY(-50%);
  color: var(--wp-red);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.r3-action-flow-count-4 .r3-action-step:nth-child(3)::after,
.r3-action-flow-count-5 .r3-action-step:nth-child(3)::after,
.r3-action-flow-count-6 .r3-action-step:nth-child(3)::after {
  content: '\2935';
  top: auto;
  right: 50%;
  bottom: -40px;
  transform: translateX(50%);
  font-size: 29px;
}

.r3-action-flow-count-5 .r3-action-step:nth-child(4)::after,
.r3-action-flow-count-6 .r3-action-step:nth-child(4)::after,
.r3-action-flow-count-6 .r3-action-step:nth-child(5)::after {
  content: '\2190';
  right: auto;
  left: -32px;
}

.r3-action-step span {
  display: block;
  margin-bottom: 8px;
  color: var(--wp-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.r3-action-step p {
  margin: 0;
  color: #222;
  font-size: 14px;
  line-height: 1.45;
}

.r3-comparison-wrap {
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 9px;
  background: #fff;
}

.r3-comparison-heading {
  padding: 20px 22px 16px;
  border-bottom: 1px solid #dedede;
  background: #fafafa;
}

.r3-comparison-heading h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.r3-comparison-heading p {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.45;
}

.r3-table-scroll {
  overflow-x: auto;
}

.r3-comparison-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  color: #222;
  font-size: 13px;
}

.r3-comparison-table th,
.r3-comparison-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #e2e2e2;
  text-align: left;
  vertical-align: middle;
}

.r3-comparison-table th {
  background: #242424;
  color: #fff;
  font-size: 12px;
}

.r3-comparison-table th:first-child,
.r3-comparison-table td:first-child {
  width: 52%;
  padding-left: 16px;
  padding-right: 12px;
}

.r3-comparison-table th:nth-child(2),
.r3-comparison-table th:nth-child(3),
.r3-comparison-table th:nth-child(4),
.r3-comparison-table th:nth-child(5),
.r3-comparison-table td:nth-child(2),
.r3-comparison-table td:nth-child(3),
.r3-comparison-table td:nth-child(4),
.r3-comparison-table td:nth-child(5) {
  width: 12%;
  text-align: center;
}

.r3-comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.r3-comparison-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.r3-status {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
}

.r3-status-yes { color: #1f7a42; background: #eaf6ee; }
.r3-status-partial { color: #b55b00; background: #fff1df; }
.r3-status-no { color: #b42028; background: #fdebed; }

.r3-comparison-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 14px 20px 4px;
  border-top: 1px solid #e2e2e2;
  color: #555;
  font-size: 12px;
}

.r3-comparison-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.r3-comparison-legend b {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
}

.r3-comparison-wrap > .r3-direct-note {
  margin: 8px 20px 17px;
}

.r3-direct-proof img,
#tab-screenshots .evidence-item img {
  cursor: zoom-in;
  transition: opacity .15s ease, box-shadow .15s ease;
}

.r3-direct-proof img:hover,
#tab-screenshots .evidence-item img:hover {
  opacity: .9;
}

.r3-direct-proof img:focus-visible,
#tab-screenshots .evidence-item img:focus-visible {
  outline: 4px solid rgba(227, 6, 19, .35);
  outline-offset: -4px;
}

body.r3-lightbox-open {
  overflow: hidden;
}

.r3-lightbox[hidden] {
  display: none;
}

.r3-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow: auto;
  padding: 72px 24px 28px;
  background: rgba(14, 14, 14, .94);
  cursor: zoom-out;
}

.r3-lightbox-content {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  cursor: default;
}

.r3-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
  border-radius: 5px;
  background: #fff;
  object-fit: contain;
  object-position: center top;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .45);
}

.r3-lightbox-caption {
  max-width: 1100px;
  margin: 13px auto 0;
  padding: 12px 15px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
}

.r3-lightbox-close {
  position: fixed;
  top: 17px;
  right: 21px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-size: 29px;
  line-height: 1;
}

.r3-lightbox-close:hover,
.r3-lightbox-close:focus-visible {
  background: var(--wp-red);
  color: #fff;
  outline: none;
}

.r3-direct-answer {
  margin: 18px 0 22px;
  padding: 17px 20px;
  border-left: 5px solid var(--wp-red);
  background: #f3f3f3;
  font-size: 17px;
  line-height: 1.45;
}

.r3-direct-answer strong {
  color: #111;
}

.r3-direct-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 10px;
}

.r3-direct-metric {
  padding: 14px 8px;
  border: 1px solid #dedede;
  border-radius: 8px;
  text-align: center;
  background: #fff;
}

.r3-direct-metric strong {
  display: block;
  color: var(--wp-red);
  font-size: 24px;
  line-height: 1.1;
}

.r3-direct-metric span {
  display: block;
  margin-top: 5px;
  color: #555;
  font-size: 11px;
}

.r3-direct-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}

.r3-direct-proof {
  margin: 0;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 9px;
  background: #fafafa;
}

.r3-direct-proof img {
  display: block;
  width: 100%;
  height: 310px;
  object-fit: contain;
  object-position: top;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.r3-mobile-product-proof img {
  object-fit: cover;
  object-position: center 29%;
}

.r3-direct-proof figcaption {
  padding: 12px 14px;
  color: #444;
  font-size: 12px;
  line-height: 1.4;
}

.r3-direct-proof figcaption strong {
  display: block;
  margin-bottom: 3px;
  color: #111;
  font-size: 13px;
}

.r3-direct-note {
  margin: 10px 0 18px;
  color: #666;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .r3-direct-proof-grid { grid-template-columns: 1fr; }
  .r3-direct-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r3-purpose-card-grid { grid-template-columns: 1fr; }
  .r3-step-card-grid { grid-template-columns: 1fr; }
  .r3-score-grid { grid-template-columns: 1fr; }
  .r3-action-flow { grid-template-columns: 1fr; gap: 34px; }
  .r3-action-flow .r3-action-step {
    grid-column: auto;
    grid-row: auto;
  }
  .r3-action-flow[class*="r3-action-flow-count-"] .r3-action-step:not(:last-child)::after {
    content: '\2193';
    top: auto;
    right: 50%;
    left: auto;
    bottom: -29px;
    transform: translateX(50%);
    font-size: 25px;
  }
  .r3-direct-proof img { height: auto; max-height: 420px; }
}

@media (max-width: 560px) {
  .r3-comparison-table {
    min-width: 680px;
    table-layout: auto;
  }
  .r3-comparison-table th:first-child,
  .r3-comparison-table td:first-child { width: auto; }
  .r3-comparison-table th:nth-child(n+2),
  .r3-comparison-table td:nth-child(n+2) { width: 76px; }
  .r3-direct-panel,
  .r3-direct-block { padding: 18px; }
  .r3-direct-lead { font-size: 20px; }
  .r3-direct-panel li,
  .r3-direct-block li { font-size: 15px; }
  .r3-checked-date {
    display: block;
    margin: 4px 0 0;
  }
}
