/* Problem pages (/solutions and /solutions/[slug]). Uses the site's Poppins and theme plum. */

.problem-page,
.problem-backlinks {
  --problem-ink: var(--theme, #32013a);
  --problem-muted: #5d4a62;
  --problem-line: #eadde6;
  --problem-soft: #fff8f6;
  font-family: "Poppins", sans-serif;
  color: var(--problem-ink);
}

.problem-page.top-bar-spacing {
  margin-top: 140px;
}

.problem-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.problem-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  font-size: 0.85rem;
  color: var(--problem-muted);
}

.problem-breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
}

.problem-breadcrumb a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.problem-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--problem-muted);
  margin-bottom: 12px;
}

.problem-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.problem-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 20px;
  text-wrap: balance;
}

.problem-hero__line {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 34em;
}

.problem-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.problem-btn {
  display: inline-block;
  padding: 0.9em 1.6em;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--problem-ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.problem-btn--primary {
  background: var(--problem-ink);
  color: #fff;
}

.problem-btn--primary:hover {
  background: #4a0d55;
}

.problem-btn--ghost {
  color: var(--problem-ink);
}

.problem-btn:focus-visible,
.problem-proof__card:focus-visible {
  outline: 2px solid var(--problem-ink);
  outline-offset: 3px;
}

.problem-btn--ghost:hover {
  background: var(--problem-soft);
}

.problem-hero__img img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.problem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 56px 0 24px;
  padding: 32px 0;
  border-top: 1px solid var(--problem-line);
  border-bottom: 1px solid var(--problem-line);
}

.problem-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.problem-stat__value {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1;
}

.problem-stat__label {
  font-size: 0.95rem;
  color: var(--problem-muted);
}

.problem-stats__source {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--problem-muted);
}

.problem-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--problem-line);
}

.problem-section__label {
  margin: 0;
  font-family: "Poppins", sans-serif;
  line-height: 1.4;
  color: var(--problem-ink);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 6px;
}

.problem-section__body {
  min-width: 0;
  max-width: 44em;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
}

.problem-section__body p {
  margin: 0 0 16px;
}

.problem-section__body ul,
.problem-section__body ol {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.problem-section__body li {
  margin-bottom: 8px;
}

.problem-section__body a {
  color: var(--problem-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.problem-steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0 !important;
}

.problem-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin-bottom: 20px;
}

.problem-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--problem-ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 500;
}

.problem-steps h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 2px 0 6px;
}

.problem-steps p {
  margin: 0;
}

.problem-proof {
  display: grid;
  gap: 16px;
}

.problem-proof__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid var(--problem-line);
  color: var(--problem-ink) !important;
  text-decoration: none !important;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.problem-proof__card:hover {
  border-color: var(--problem-ink);
  background: var(--problem-soft);
}

.problem-proof__card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

.problem-proof__card p {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
}

.problem-proof__more {
  font-size: 0.9rem;
  font-weight: 500;
}

.problem-faq details {
  border-bottom: 1px solid var(--problem-line);
  padding: 14px 0;
}

.problem-faq details:first-child {
  padding-top: 0;
}

.problem-faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style-position: outside;
}

.problem-faq summary:focus-visible {
  outline: 2px solid var(--problem-ink);
  outline-offset: 4px;
}

.problem-faq details p {
  margin: 10px 0 0;
}

.problem-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  padding-top: 48px;
}

.problem-related__label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.problem-related__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--problem-ink);
  text-decoration: none;
}

.problem-related__card strong {
  font-weight: 500;
  font-size: 1.05rem;
}

.problem-related__card span {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--problem-muted);
}

.problem-related__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.problem-related__links a {
  color: var(--problem-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hub */
.problem-hub__header {
  max-width: 44em;
  margin-bottom: 40px;
}

.problem-hub__group {
  padding: 32px 0;
  border-top: 1px solid var(--problem-line);
}

.problem-hub__industry {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 18px;
}

.problem-hub__industry a {
  color: var(--problem-ink);
  text-decoration: none;
}

.problem-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* Links back to problem pages from industry, technology and case study pages */
.problem-backlinks {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 15px 0;
  font-family: "Poppins", sans-serif;
  color: var(--theme, #32013a);
}

.problem-backlinks__label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.problem-backlinks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.case-problem-link {
  font-size: 0.95rem;
  margin: 0 0 24px;
}

.case-problem-link a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

  .problem-section {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 0;
  }

  .problem-page.top-bar-spacing {
    margin-top: 110px;
  }
}

@media (max-width: 560px) {
  .problem-wrap {
    padding: 0 16px 64px;
  }

  .problem-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
