/* Physical Marketing Intelligence Center — resources hub + comparison pages */

.resources-page {
  --res-accent: var(--accent, #ff8a1f);
  --res-muted: var(--muted, rgba(245, 230, 207, 0.78));
  --res-panel: rgba(12, 10, 14, 0.72);
  --res-border: rgba(255, 170, 60, 0.22);
}

.resources-page .page {
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 70% 0%, rgba(255, 138, 31, 0.14), transparent 60%),
    radial-gradient(700px 420px at 10% 20%, rgba(255, 179, 77, 0.08), transparent 55%),
    var(--bg, #07060a);
}

.res-main {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 24px 20px 56px;
  overflow-x: hidden;
}

.res-hero {
  padding: 28px 0 32px;
  text-align: left;
}

.res-hero__kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--res-accent);
}

.res-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.12;
  font-weight: 700;
  color: rgba(245, 230, 207, 0.98);
  max-width: 900px;
}

.res-hero__sub {
  margin: 0 0 14px;
  max-width: 820px;
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  line-height: 1.65;
  color: rgba(245, 230, 207, 0.92);
}

.res-hero__body {
  margin: 0;
  max-width: 820px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--res-muted);
}

.res-section {
  margin: 40px 0;
  scroll-margin-top: 24px;
}

.res-section--alt {
  padding: 28px 24px;
  border-radius: var(--radius, 16px);
  border: 1px solid var(--res-border);
  background: var(--res-panel);
}

.res-section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.2;
  font-weight: 700;
  color: rgba(245, 230, 207, 0.98);
}

.res-section-intro {
  margin: 0 0 20px;
  max-width: 820px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--res-muted);
}

.res-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.res-card-link {
  display: block;
  min-height: 48px;
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.res-card-link:hover,
.res-card-link:focus-visible {
  border-color: rgba(255, 170, 60, 0.35);
  background: rgba(255, 138, 31, 0.08);
  outline: none;
}

.res-card-link h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: rgba(245, 230, 207, 0.98);
}

.res-card-link p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--res-muted);
}

.res-card-link .res-card-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--res-accent);
}

.res-card {
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
}

.res-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: rgba(245, 230, 207, 0.98);
}

.res-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--res-muted);
}

.res-coming-soon {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 170, 60, 0.28);
  background: rgba(255, 138, 31, 0.05);
  font-size: 14px;
  font-weight: 600;
  color: rgba(245, 230, 207, 0.9);
}

.res-back-link {
  display: inline-block;
  margin-bottom: 20px;
  min-height: 44px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 190, 120, 0.95);
  text-decoration: none;
}

.res-back-link:hover {
  color: #fff;
  text-decoration: underline;
}

.res-article {
  max-width: 820px;
}

.res-article .card {
  margin-top: 20px;
  padding: 22px 24px 26px;
}

.res-article .card p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--res-muted);
}

.res-article .card p:last-child {
  margin-bottom: 0;
}

@media (min-width: 600px) {
  .res-card-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .res-card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Full comparison article pages */

.res-compare {
  max-width: none;
}

.res-compare .res-hero__body + .res-hero__body {
  margin-top: 12px;
}

.res-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.res-hero__cta .btn {
  min-height: 48px;
  padding: 12px 20px;
}

.res-positioning {
  margin: 20px 0 0;
  padding: 16px 18px;
  max-width: 820px;
  border-radius: 12px;
  border: 1px solid rgba(255, 170, 60, 0.3);
  background: rgba(255, 138, 31, 0.08);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(245, 230, 207, 0.95);
}

.res-section h3 {
  margin: 18px 0 10px;
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 700;
  color: rgba(245, 230, 207, 0.96);
}

.res-section p,
.res-section li {
  margin: 0 0 12px;
  max-width: 820px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--res-muted);
}

.res-section ul {
  margin: 8px 0 16px;
  padding-left: 1.4rem;
  max-width: 820px;
}

.res-section li {
  margin-bottom: 6px;
}

.res-callout {
  margin: 18px 0 0;
  padding: 14px 16px;
  max-width: 820px;
  border-radius: 10px;
  border: 1px solid rgba(255, 170, 60, 0.28);
  background: rgba(255, 138, 31, 0.07);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: rgba(245, 230, 207, 0.95);
}

.res-cta {
  margin-top: 48px;
  padding: 32px 24px;
  border-radius: var(--radius, 16px);
  border: 1px solid var(--res-border);
  background: var(--res-panel);
  text-align: center;
}

.res-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  color: rgba(245, 230, 207, 0.98);
}

.res-cta p {
  margin: 0 auto 20px;
  max-width: 680px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--res-muted);
}

.res-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.res-cta__buttons .btn {
  min-height: 48px;
  padding: 12px 20px;
}

.res-cta__secondary {
  display: inline-block;
  min-height: 44px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 190, 120, 0.95);
  text-decoration: none;
}

.res-cta__secondary:hover {
  color: #fff;
  text-decoration: underline;
}

.res-section a:not(.btn) {
  color: rgba(255, 190, 120, 0.95);
  font-weight: 600;
}

.res-section a:not(.btn):hover {
  color: #fff;
}

/* Comparison table — desktop table, mobile stacked cards */

.res-cmp-table-wrap {
  margin-top: 20px;
  width: 100%;
}

.res-cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.res-cmp-table thead th {
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--res-accent);
  border-bottom: 2px solid var(--res-border);
}

.res-cmp-table thead th:first-child {
  width: 28%;
}

.res-cmp-table tbody th,
.res-cmp-table tbody td {
  padding: 12px 14px;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--res-muted);
}

.res-cmp-table tbody th {
  font-weight: 700;
  color: rgba(245, 230, 207, 0.96);
  text-align: left;
}

.res-cmp-table tbody td:last-child {
  color: rgba(245, 230, 207, 0.92);
  font-weight: 600;
}

@media (max-width: 767px) {
  .res-cmp-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .res-cmp-table,
  .res-cmp-table tbody,
  .res-cmp-table tr,
  .res-cmp-table th,
  .res-cmp-table td {
    display: block;
    width: 100%;
  }

  .res-cmp-table tbody tr {
    margin-bottom: 14px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.28);
  }

  .res-cmp-table tbody th {
    margin: 0 0 12px;
    padding: 0 0 10px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 170, 60, 0.2);
  }

  .res-cmp-table tbody td {
    padding: 10px 0 0;
    border-bottom: none;
  }

  .res-cmp-table tbody td::before {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--res-accent);
    content: attr(data-label);
  }

  .res-cmp-table tbody td + td {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.res-journey-label {
  margin: 48px 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--res-accent);
}

.res-link-cta {
  display: inline-block;
  margin-top: 16px;
  min-height: 44px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 190, 120, 0.95);
  text-decoration: none;
}

.res-link-cta:hover {
  color: #fff;
  text-decoration: underline;
}

.res-touchpoint-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 24px;
  margin: 12px 0 16px;
  padding-left: 1.2rem;
  max-width: 820px;
}

@media (min-width: 600px) {
  .res-touchpoint-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.res-touchpoint-grid li {
  margin-bottom: 4px;
}

/* Numbered workflow — QR limits section */

.res-workflow {
  list-style: none;
  counter-reset: workflow-step;
  margin: 20px 0 24px;
  padding: 0;
  max-width: 820px;
}

.res-workflow > li {
  position: relative;
  margin: 0;
  padding: 16px 16px 16px 56px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.res-workflow > li + li {
  margin-top: 28px;
}

.res-workflow > li + li::before {
  content: "↓";
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 700;
  color: var(--res-accent);
  line-height: 1;
}

.res-workflow > li::after {
  counter-increment: workflow-step;
  content: counter(workflow-step);
  position: absolute;
  left: 14px;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 170, 60, 0.35);
  background: rgba(255, 138, 31, 0.12);
  font-size: 14px;
  font-weight: 700;
  color: var(--res-accent);
}

.res-workflow > li > p {
  margin: 0;
  max-width: none;
  color: rgba(245, 230, 207, 0.94);
  font-weight: 600;
}

.res-workflow__examples-label {
  margin: 10px 0 6px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--res-muted) !important;
}

.res-workflow__examples {
  margin: 0;
  padding-left: 1.2rem;
  max-width: none;
}

.res-workflow__examples li {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 400;
  color: var(--res-muted);
}

.res-challenges {
  margin: 12px 0 16px;
  padding-left: 1.2rem;
  max-width: 820px;
}

.res-challenges li {
  margin-bottom: 10px;
}

/* Pit Stop inline terms + explainer modal */

.res-pitstop-term {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(245, 230, 207, 0.42);
  text-underline-offset: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.res-pitstop-term:hover,
.res-pitstop-term:focus-visible {
  text-decoration-color: rgba(245, 230, 207, 0.9);
  opacity: 0.92;
  outline: none;
}

.res-pitstop-modal .modal-box {
  max-width: 420px;
  margin: 10vh auto;
  padding: 24px 22px 22px;
}

.res-pitstop-modal h3 {
  margin: 0 28px 12px 0;
  font-size: 1.2rem;
  color: rgba(245, 230, 207, 0.98);
}

.res-pitstop-modal p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--res-muted);
}

.res-pitstop-modal__link {
  display: inline-block;
  margin-top: 8px;
  min-height: 44px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 190, 120, 0.95);
  text-decoration: none;
}

.res-pitstop-modal__link:hover {
  color: #fff;
  text-decoration: underline;
}

.res-pitstop-modal .close {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.res-section-cta {
  margin-top: 18px;
}

/* Pit Stop guide page */

.res-pitstop-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  margin: 20px 0 16px;
  max-width: 820px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: rgba(245, 230, 207, 0.92);
}

.res-pitstop-flow__arrow {
  color: var(--res-accent);
  font-weight: 700;
}

.res-pitstop-flow--outcomes {
  font-size: 12px;
  font-weight: 600;
  color: var(--res-muted);
}

.res-industry-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: rgba(245, 230, 207, 0.98);
}

.res-industry-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.res-industry-card li {
  margin-bottom: 4px;
  font-size: 14px;
}

.res-structure-flow {
  margin: 16px 0;
  padding: 16px 18px;
  max-width: 820px;
  border-radius: 12px;
  border: 1px solid rgba(255, 170, 60, 0.28);
  background: rgba(255, 138, 31, 0.07);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(245, 230, 207, 0.94);
}

.res-structure-flow .pit-stop-link {
  font-weight: 700;
}

.res-cmp-table tbody th .pit-stop-link {
  font-weight: 700;
}
