.home-problems {
  --problems-ink: #111b3e;
  --problems-muted: #425271;
  --problems-blue: #2248d9;
  --problems-line: #d4dfea;
  padding: clamp(3.9rem, 6.6vw, 6.75rem) clamp(1.15rem, 5vw, 4.5rem) clamp(3.65rem, 6vw, 6rem);
  background: #fbf8f3;
  color: var(--problems-ink);
  scroll-margin-top: 3.75rem;
}

.home-problems__inner {
  max-width: 82rem;
  margin-inline: auto;
}

.home-problems__intro {
  max-width: 72rem;
}

.home-problems__eyebrow {
  margin: 0;
  color: var(--problems-blue);
  font-size: clamp(0.68rem, 1.08vw, 0.91rem);
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.45;
  text-transform: uppercase;
}

.home-problems__title {
  max-width: 23ch;
  margin: 1.05rem 0 0;
  font: 700 clamp(2.3rem, 5.25vw, 4.75rem)/1.04 Inter, system-ui, sans-serif;
  letter-spacing: -0.062em;
  text-wrap: balance;
}

.home-problems__lead {
  max-width: 76ch;
  margin: clamp(1.05rem, 2.1vw, 1.65rem) 0 0;
  color: var(--problems-muted);
  font-size: clamp(1rem, 1.53vw, 1.3rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.home-problems__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.9rem, 2vw, 1.65rem);
  margin-top: clamp(1.9rem, 4.2vw, 3.75rem);
}

.home-problems__panel[data-animate] {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: clamp(1rem, 1.7vw, 1.55rem);
  padding: clamp(0.95rem, 2.15vw, 1.925rem);
  border: 1px solid var(--problems-line);
  border-radius: clamp(1.15rem, 2.7vw, 2rem);
  background: #fffefd;
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .home-problems__panel[data-animate].is-visible {
    animation: home-problems-reveal 380ms cubic-bezier(0.22, 0.72, 0.25, 1) both;
  }
}

@keyframes home-problems-reveal {
  from { opacity: 0.72; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-problems__copy {
  padding-inline: clamp(0.08rem, 0.25vw, 0.3rem);
}

.home-problems__copy h3 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.22rem, 2.24vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.048em;
  line-height: 1.14;
  text-wrap: pretty;
}

.home-problems__detail {
  margin: 0.65rem 0 0;
  color: var(--problems-muted);
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.home-problems__closing {
  max-width: 75ch;
  margin: clamp(1.5rem, 3.15vw, 2.75rem) 0 0;
  color: var(--problems-ink);
  font-size: clamp(1.02rem, 1.6vw, 1.34rem);
  font-weight: 700;
  line-height: 1.37;
  text-wrap: pretty;
}

.home-problems__visual {
  --vignette-gap: clamp(0.45rem, 1.1vw, 0.8rem);
  --vignette-radius: clamp(0.6rem, 1.3vw, 1rem);
  display: grid;
  min-width: 0;
  min-height: clamp(9rem, 13.7vw, 12.75rem);
  align-items: center;
  gap: var(--vignette-gap);
  padding: clamp(0.7rem, 1.8vw, 1.45rem);
  border-radius: clamp(0.86rem, 1.9vw, 1.7rem);
  background: #e8f6fd;
  color: #1b3258;
  font-size: clamp(0.69rem, 1.1vw, 0.94rem);
  line-height: 1.25;
}

.home-problems__visual--copy {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.home-problems__visual--cancellation {
  justify-items: center;
  background: #e8f7f0;
}

.home-problems__visual--cabinets {
  background: #e8f6fc;
}

.home-problems__visual--reminder {
  align-content: center;
  background: #eaf6fc;
}

.home-problems__calendar,
.home-problems__reminder-row {
  min-width: 0;
  border: 1px solid #d3e4f1;
  border-radius: var(--vignette-radius);
  background: #f8fcff;
  box-shadow: 0 8px 20px rgb(33 81 125 / 7%);
}

.home-problems__calendar {
  display: grid;
  align-content: center;
  gap: 0.54rem;
  padding: clamp(0.42rem, 1.14vw, 0.85rem);
}

.home-problems__calendar--stacked {
  width: min(100%, 26rem);
}

.home-problems__brand {
  display: flex;
  min-width: 0;
  min-height: 1.4rem;
  align-items: center;
  gap: 0.36rem;
  color: #132846;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.home-problems__brand img {
  width: clamp(1rem, 1.83vw, 1.45rem);
  height: auto;
  flex: 0 0 auto;
}

.home-problems__brand--doctolib img {
  width: clamp(3.6rem, 7.75vw, 6.6rem);
  max-width: 100%;
}

.home-problems__icon {
  display: grid;
  width: clamp(1.6rem, 3.2vw, 2.7rem);
  height: clamp(1.6rem, 3.2vw, 2.7rem);
  place-items: center;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 50%;
  background: #f5fbff;
}

.home-problems__icon img {
  width: clamp(0.87rem, 1.7vw, 1.35rem);
  height: auto;
  filter: invert(31%) sepia(99%) saturate(1700%) hue-rotate(205deg) brightness(93%) contrast(93%);
}

.home-problems__event {
  display: flex;
  min-width: 0;
  min-height: clamp(1.75rem, 3.4vw, 2.55rem);
  align-items: center;
  padding: 0.34rem clamp(0.4rem, 0.95vw, 0.8rem);
  border-radius: 0.52rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.home-problems__event--consultation {
  border-inline-start: 3px solid #278fed;
  background: #e2f1ff;
}

.home-problems__cancel-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(3.2rem, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--vignette-gap);
}

.home-problems__time {
  color: #425a7b;
  font-size: 0.88em;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.home-problems__event--cancelled {
  background: #fff0d0;
  color: #774610;
}

.home-problems__event--lingering {
  border: 1px dashed #a6b9cc;
  background: #f0f5fa;
  color: #405577;
}

.home-problems__timeline {
  --practice-column: minmax(4.25rem, 0.37fr);
  display: grid;
  min-width: 0;
  gap: 0.5rem;
}

.home-problems__timeline-head {
  display: grid;
  grid-template-columns: var(--practice-column) repeat(4, minmax(0, 0.25fr));
  color: #365075;
  font-size: 0.89em;
  font-weight: 650;
  text-align: center;
}

.home-problems__timeline-head::before {
  content: '';
}

.home-problems__timeline-row {
  display: grid;
  min-width: 0;
  grid-template-columns: var(--practice-column) minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid #fbfeff;
  border-radius: var(--vignette-radius);
  background: #f2f9fd;
}

.home-problems__timeline-row > span {
  display: grid;
  min-width: 0;
  align-items: center;
  padding: 0.45rem clamp(0.4rem, 1vw, 0.85rem);
  border-radius: inherit;
  background: #dcefff;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.home-problems__timeline-row:last-child > span {
  background: #d9f5e9;
}

.home-problems__timeline-track {
  position: relative;
  display: grid;
  min-height: 2.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-problems__timeline-tick {
  border-inline-start: 1px solid #dbe8f1;
}

.home-problems__timeline-event {
  position: absolute;
  inset: 22% 55% 22% 10%;
  border-radius: 0.42rem;
  background: #9acbf8;
}

.home-problems__timeline-row:last-child .home-problems__timeline-event {
  inset-inline: 51% 10%;
  background: #99e1cc;
}

.home-problems__reminder-row {
  display: grid;
  grid-template-columns: minmax(3.75rem, 0.38fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--vignette-gap);
  padding: clamp(0.42rem, 0.85vw, 0.68rem);
}

.home-problems__event--late {
  background: #fbe7e3;
  color: #633631;
}

.home-problems__event--rescheduled {
  background: #d9f4ea;
  color: #164d47;
}

@media (min-width: 49rem) {
  .home-problems__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 49rem) and (prefers-reduced-motion: no-preference) {
  .home-problems__panel[data-animate].is-visible:nth-child(even) {
    animation-delay: 75ms;
  }
}

@media (max-width: 26rem) {
  .home-problems__title {
    font-size: clamp(1.85rem, 8.4vw, 2.3rem);
  }

  .home-problems__visual {
    --vignette-gap: 0.4rem;
    padding: 0.55rem;
  }

  .home-problems__timeline {
    --practice-column: minmax(3.9rem, 0.37fr);
  }
}
