/* The screen holds its place while the feature story passes beside it. */
.home #features { background: var(--lavender-soft); border-radius: 36px; padding: 40px; margin-bottom: 64px; }
.home #features .feature-card { animation: none; opacity: 1; scale: 1; background: transparent; border: 0; color: var(--text); --text: #191320; --text-muted: #62586e; }
.home #features .feature-card h2 { color: var(--text); font-size: clamp(36px,4.2vw,60px); font-weight: 750; line-height: 1.08; letter-spacing: -1.8px; margin-bottom: 0; text-wrap: balance; }
.home #features .feature-card p { font-size: clamp(36px,4.2vw,60px); font-weight: 350; line-height: 1.08; letter-spacing: -1.8px; max-width: none; color: var(--text); margin: 0; text-wrap: pretty; }
.home #features .exercise-disclosure summary { color: var(--brand); }
.home #features :focus-visible { outline-color: var(--brand); }
.home #features .feature-pin, .home #features .feature-controls { display: none; }
.home #features .feature-visual { height: auto; min-height: 0; }
.home #features .feature-visual picture { width: 230px; }
@media (min-width: 850px) {
  .home #features.story-enhanced .feature-story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .home #features.story-enhanced .feature-grid { display: block; min-width: 0; }
  .home #features.story-enhanced .feature-pin { display: grid; position: sticky; top: 112px; height: calc(100svh - 144px); max-height: 720px; min-height: 360px; align-items: center; }
  .home #features .feature-screen { grid-area: 1/1; margin: 0; display: flex; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 300ms ease, transform 300ms ease, visibility 300ms; }
  .home #features .feature-screen.is-active { opacity: 1; visibility: visible; transform: none; }
  .home #features .feature-screen picture { display: block; height: min(620px,calc(100svh - 188px)); max-width: 100%; }
  .home #features .feature-screen img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; border-radius: 14px; filter: drop-shadow(0 20px 30px rgba(37,8,75,.15)); }
  .home #features.story-enhanced .feature-card { display: flex; flex-direction: column; justify-content: center; min-height: 60svh; padding: 28px 0; opacity: 1; }
  .home #features.story-enhanced .feature-card.is-active, .home #features.story-enhanced .feature-card:focus-within { opacity: 1; }
  .home #features.story-enhanced .feature-card .feature-visual { display: none; }
}
@media (max-width: 849px) {
  .home #features { padding: 24px; border-radius: 28px; }
  .home #features.story-enhanced .feature-grid { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; position: relative; }
  .home #features.story-enhanced .feature-grid::-webkit-scrollbar { display: none; }
  .home #features.story-enhanced .feature-card { flex: 0 0 100%; min-width: 0; padding: 12px 4px; display: flex; flex-direction: column; gap: 24px; scroll-snap-align: start; scroll-snap-stop: always; }
  .home #features .feature-visual { order: -1; display: flex; justify-content: center; align-self: stretch; width: 100%; height: min(420px,48svh); }
  .home #features .feature-visual picture { width: fit-content; max-width: 100%; height: 100%; align-self: center; }
  .home #features .feature-visual img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
  .home #features .feature-summary { text-align: center; width: 100%; }
  .home #features .feature-card h2 { font-size: clamp(28px,6vw,40px); margin-bottom: 0; letter-spacing: -1px; }
  .home #features .feature-card p { font-size: clamp(28px,6vw,40px); letter-spacing: -1px; margin-inline: auto; }
  .home #features .exercise-preview { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .home #features .exercise-disclosure { text-align: left; }
  .home #features.story-enhanced .feature-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
  .home #features .feature-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; color: var(--brand); background: transparent; }
  .home #features .feature-controls .feature-dot::before { content: ''; width: 7px; height: 7px; border-radius: 99px; background: var(--brand); opacity: .3; transition: width 200ms, opacity 200ms; }
  .home #features .feature-controls .feature-dot[aria-current="true"]::before { width: 22px; opacity: 1; }
  .home #features .feature-controls button:disabled { opacity: .3; cursor: default; }
}
@media (max-width: 399px) {
  .home #features { padding: 20px 16px; }
  .home #features .feature-controls { gap: 0; margin-inline: -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .home #features .feature-screen, .home #features.story-enhanced .feature-card { transition: none; transform: none; }
  .home #features.story-enhanced .feature-card { opacity: 1; }
}
