/* The pains of a job search (landing.html): the pain in the card is gray, the answer of the agent is white.
   The accent tokens of the cards live here, --accent and --green come from landing.css. */
:root { --checked: #ff692d; --applications: #4b9fff; --dialogues: #b58aff; --tile: #1a1a1a; }

.pains { --gap: 160px; position: relative; width: min(1168px, calc(100% - 48px)); margin: var(--gap) auto; scroll-margin-top: 88px; }

.pains-title { max-width: 900px; margin: 0 auto 44px; font-size: clamp(30px, 3.6vw, 48px); font-weight: 540; line-height: 1.1; letter-spacing: -.04em; text-align: center; text-wrap: balance; }
.pains .face { margin: 0; }
.pains-end { white-space: nowrap; }
.pains-end .face { margin-left: .14em; vertical-align: -.14em; }

/* «3 + 2»: three cards over two wide ones. The text takes what the icon badge leaves, so they never meet */
.pains-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.pain { display: flex; flex-direction: column; grid-column: span 2; min-width: 0; padding: 30px; border-radius: 28px; background: var(--tile); }
.pain:nth-child(n + 4) { grid-column: span 3; }
.pain-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.pain-body { flex: 1; min-width: 0; }

/* the badge: a fixed 44px box in the top right corner, an outline in the color of the card, no plate */
.pain-badge { display: grid; flex: none; place-items: center; width: 44px; height: 44px; }
.pain-badge svg { width: 28px; height: 28px; fill: none; stroke: var(--pain-accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* one sentence in two tones: the pain is gray and light enough to read, the answer is white, the size is the same */
.pain-said, .pain-fix { display: inline; font-size: clamp(20px, 1.85vw, 24px); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; text-wrap: pretty; }
.pain-said { color: #9b9b9b; }
.pain-said::after { content: "."; }
.pain-fix { color: var(--text); }

@media (max-width: 960px) {
  .pain, .pain:nth-child(n + 4) { grid-column: span 3; }
  .pain:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .pains { --gap: 96px; width: calc(100% - 32px); }
  .pains-title { margin-bottom: 28px; }
}

@media (max-width: 560px) {
  .pains-grid { grid-template-columns: minmax(0, 1fr); }
  .pain, .pain:nth-child(n + 4), .pain:first-child { grid-column: auto; padding: 24px 22px; }
  .pain-badge { width: 36px; height: 36px; }
}
