/* A native vertical scroll story: no wheel interception or forced scrolling. */
:root.has-problem-story { scroll-snap-type: none; }
.problem-story {
  --story-blue: #235de1;
  --story-ink: #101e36;
  --story-muted: #46566d;
  --story-paper: #f6f7fa;
  color: var(--story-ink);
  background: var(--story-paper);
  overflow: visible;
  scroll-snap-align: none;
}
.problem-viewport { overflow: clip; }
.problem-stage { position: relative; max-width: 1760px; margin-inline: auto; padding: 72px 24px; }
.problem-copy { position: relative; z-index: 4; margin: 0 auto 36px; max-width: 1060px; text-align: center; }
.problem-copy h2 { margin: 0; font-size: clamp(2rem, 4.3vw, 4.8rem); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.problem-copy p { max-width: 680px; margin: 20px auto 0; font-size: clamp(1rem, 1.5vw, 1.4rem); line-height: 1.5; text-wrap: balance; }
.problem-copy--chaos { margin-bottom: 64px; }
.problem-copy--gather { display: none; }
.problem-board { position: relative; z-index: 2; max-width: 1320px; margin: 0 auto; border: 1px solid #ced8e8; border-radius: 20px; background: #fff; box-shadow: 0 20px 48px -24px #19335a33; }
.problem-row { display: grid; grid-template-columns: minmax(130px, .75fr) minmax(230px, 1.1fr) minmax(200px, 1fr); align-items: center; gap: 20px; min-height: 98px; padding: 16px 24px; }
.problem-row + .problem-row { border-top: 1px solid #e1e7f0; }
.problem-row h3 { min-width: 0; margin: 0; color: var(--story-blue); font-size: clamp(1rem, 1.6vw, 1.4rem); line-height: 1.35; overflow-wrap: anywhere; }
.problem-row p { margin: 0; font-size: 1rem; color: var(--story-muted); }
.problem-story:not(.problem-story--motion) .problem-row { display: block; }
.problem-story:not(.problem-story--motion) .problem-row h3 { margin-bottom: 12px; }
.problem-story:not(.problem-story--motion) .problem-row p { margin-top: 12px; }
.problem-static-label { display: flex; align-items: center; gap: 14px; font-size: 1.1rem; }
.problem-static-label img { flex-shrink: 0; }
.problem-target { min-width: 0; }
.problem-fragments, .problem-emojis { display: none; pointer-events: none; }
.problem-cta { position: relative; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 20px; width: fit-content; max-width: 100%; min-height: 56px; margin: 28px auto 0; padding: 14px 24px; border: 2px solid var(--story-blue); border-radius: 12px; color: #fff; background: var(--story-blue); font-size: 1rem; text-align: center; text-decoration: none; }
.problem-cta:hover { background: #194fc9; }
.problem-cta:focus-visible { outline: 3px solid var(--story-ink); outline-offset: 5px; }
.problem-progress { display: none; }

.problem-story--motion { height: 310svh; min-height: max(2200px, var(--story-scroll-height, 0px)); }
.problem-story--motion .problem-viewport { position: sticky; top: var(--header-height); height: var(--story-height, calc(100svh - var(--header-height))); }
.problem-story--motion .problem-stage { height: 100%; padding: 0; }
.problem-story--motion .problem-copy { position: absolute; inset: var(--story-copy-top, 8%) 7% auto; margin: 0 auto; }
.problem-story--motion .problem-copy--chaos { inset: var(--story-chaos-top, 35%) 20% auto; }
.problem-story--motion .problem-copy--chaos h2 { font-size: clamp(2rem, 4.8vw, 5.1rem); }
.problem-story--motion .problem-copy--chaos p { max-width: 620px; }
.problem-story--motion .problem-copy--gather { display: block; }
.problem-story--motion .problem-board { position: absolute; inset: var(--story-board-top, 32%) 7% auto; }
.problem-story--motion .problem-row { min-height: clamp(76px, 11svh, 106px); }
.problem-story--motion .problem-static-label { opacity: 0; }
.problem-story--motion .problem-fragments { display: block; position: absolute; inset: 0 0 auto; height: var(--story-flight-height, 100%); z-index: 3; }
.problem-card { position: absolute; display: flex; align-items: center; gap: 14px; min-height: 74px; max-width: 28%; padding: 16px 20px; border-radius: 15px; font-size: clamp(1rem, 1.5vw, 1.35rem); line-height: 1.35; font-weight: 600; }
.problem-card-surface { position: absolute; z-index: -1; inset: 0; border: 1px solid #e2e8f1; border-radius: inherit; background: white; box-shadow: 0 18px 28px -12px #15264135; }
.problem-card img { width: 40px; height: 40px; flex-shrink: 0; }
.problem-card-label { min-width: 0; overflow-wrap: anywhere; }
.problem-card small { display: block; margin-top: 10px; font-size: 1rem; font-weight: 400; color: var(--story-muted); }
.problem-card--0 { left: 7%; top: 13%; }
.problem-card--1 { right: 6%; top: 16%; }
.problem-card--2 { left: 40%; top: 5%; }
.problem-card--3 { left: 3%; top: 43%; max-width: 19%; }
.problem-card--4 { right: 1%; top: 43%; flex-wrap: wrap; max-width: 20%; }
.problem-card--5 { left: 6%; top: 76%; }
.problem-card--6 { left: 30%; top: 85%; }
.problem-card--7 { right: 4%; top: 77%; }
.problem-card--8 { left: 59%; top: 82%; }
.problem-cells { width: 100%; height: 50px; background: repeating-linear-gradient(0deg, transparent 0 15px, #dce8df 15px 16px), repeating-linear-gradient(90deg, transparent 0 35px, #dce8df 35px 36px); }
.problem-story--motion .problem-cta { position: absolute; top: var(--story-cta-top, 83%); left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; }
.problem-story--motion .problem-progress { position: absolute; z-index: 5; left: 50%; bottom: 1%; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; color: var(--story-muted); font-size: 1rem; }
.problem-progress > div { display: flex; gap: 8px; }
.problem-progress i { display: block; width: 36px; height: 3px; border-radius: 4px; background: #b9c6d9; }
.problem-progress i.is-current { background: var(--story-blue); }
.problem-progress small { font-size: 1rem; white-space: nowrap; }
.problem-story--motion .problem-emojis { display: block; position: absolute; inset: 0; z-index: 1; overflow: clip; }
.problem-emoji { position: absolute; top: 0; left: 0; display: block; width: 66px; height: 66px; margin: -33px 0 0 -33px; font: 52px/1.2 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; text-align: center; will-change: transform, opacity; }

@media (max-width: 1100px) {
  .problem-row { grid-template-columns: minmax(120px, .65fr) minmax(210px, 1.2fr); gap: 6px 16px; padding: 12px 20px; }
  .problem-row p { grid-column: 2; }
  .problem-row h3 { grid-row: span 2; }
  .problem-story--motion .problem-board { top: var(--story-board-top, 31%); }
  .problem-story--motion .problem-target { grid-row: span 1; }
  .problem-story--motion .problem-row p { font-size: 1rem; }
  .problem-story--motion .problem-row { min-height: 11.5svh; }
  .problem-card { max-width: 33%; padding: 12px; gap: 10px; }
  .problem-card img { width: 30px; height: 30px; }
  .problem-card--3, .problem-card--4 { max-width: 22%; }
  .problem-copy h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
  .problem-progress small { display: none; }
}
@media (max-width: 759px) {
  .problem-stage { padding: 52px 16px; }
  .problem-copy { margin-bottom: 30px; }
  .problem-copy--chaos { margin-bottom: 48px; }
  .problem-row { display: block; padding: 20px; }
  .problem-row h3 { font-size: 1rem; margin-bottom: 12px; }
  .problem-row p { margin-top: 8px; }
  .problem-story--motion { height: 300svh; }
  .problem-story--motion .problem-copy { inset: var(--story-copy-top, 4%) 5% auto; }
  .problem-story--motion .problem-copy h2 { font-size: clamp(1.75rem, 6.6vw, 2.8rem); }
  .problem-story--motion .problem-copy p { margin-top: 14px; font-size: 1rem; }
  .problem-story--motion .problem-copy--chaos { inset: var(--story-chaos-top, 33%) 7% auto; }
  .problem-story--motion .problem-board { inset: var(--story-board-top, 24%) 5% auto; }
  .problem-story--motion .problem-row { display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 8px; min-height: calc((100svh - var(--header-height)) * .15); padding: 10px 14px; }
  .problem-story--motion .problem-row h3 { grid-row: auto; margin: 0; font-size: 1rem; line-height: 1.25; }
  .problem-story--motion .problem-target { min-height: 26px; align-content: center; }
  .problem-story--motion .problem-row p { grid-column: 1; margin: 0; font-size: 1rem; line-height: 1.25; }
  .problem-story--motion .problem-row .problem-static-label { font-size: 1rem; }
  .problem-card { min-height: 52px; max-width: 68%; gap: 8px; border-radius: 12px; padding: 10px 12px; font-size: 1rem; font-weight: 500; }
  .problem-card img { width: 26px; height: 26px; }
  .problem-card small, .problem-cells { display: none; }
  .problem-card--0 { left: 5%; top: 9%; }
  .problem-card--1 { right: 4%; top: 21%; }
  .problem-card--2 { left: 42%; top: 2%; max-width: 54%; }
  .problem-card--3 { left: 3%; top: 65%; max-width: 60%; }
  .problem-card--4 { right: 2%; top: 76%; max-width: 60%; }
  .problem-card--5 { left: 9%; top: 84%; max-width: 88%; }
  .problem-card--2, .problem-card--6, .problem-card--7, .problem-card--8 { display: none; }
  .problem-story--motion .problem-cta { top: var(--story-cta-top, 86%); max-width: 88%; width: max-content; white-space: normal; font-size: 1rem; padding: 10px 16px; gap: 8px; }
  .problem-story--motion .problem-progress { bottom: 1.5%; font-size: 1rem; }
  .problem-emoji { width: 40px; height: 40px; margin: -20px 0 0 -20px; font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .problem-fragments, .problem-emojis, .problem-progress { display: none !important; }
}
