.feature-story { padding: 0 24px 84px; scroll-margin-top: 110px; }
.feature-story-shell { max-width: 1100px; margin: 0 auto; border: 1px solid #e3ddd5; border-radius: 24px; background: #fff; box-shadow: 0 22px 70px -48px #1c191745; overflow: hidden; }
.feature-story-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 28px; border-bottom: 1px solid #eee9e3; }
.feature-story-top p { margin: 0; font-size: 14px; color: #57534e; }
.feature-story-top p strong { color: #1c1917; }
.feature-story-top button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; background: #faf8f5; border: 1px solid #e7e2dc; border-radius: 50%; padding: 0; color: #1c1917; cursor: pointer; }
.feature-story-top button svg { width: 17px; height: 17px; grid-area: 1 / 1; }
.feature-story-top button .story-pause-icon { display: none; }
.feature-story-top button[aria-pressed="true"] .story-pause-icon { display: block; }
.feature-story-top button[aria-pressed="true"] .story-play-icon { display: none; }
.feature-story-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 18px 24px 0; }
.feature-story-tabs button { display: flex; gap: 12px; align-items: center; text-align: left; padding: 16px; border: 1px solid transparent; background: transparent; border-radius: 12px; font: inherit; color: #57534e; cursor: pointer; transition: background 220ms ease, border-color 220ms ease; }
.feature-story-tabs button > span { font-size: 12px; color: #78716c; }
.feature-story-tabs button strong { font-size: 15px; font-weight: 600; }
.feature-story-tabs button[aria-selected="true"] { background: #f2effc; color: #342b59; border-color: #e6e0f6; }
.feature-story-tabs button:hover { background: #f6f3ee; }
.feature-story button:focus-visible, .feature-story a:focus-visible { outline: 3px solid #7ba7c9; outline-offset: 3px; }
.feature-story-panel { min-height: 450px; padding: 28px 40px 30px; }
.feature-story-panel[hidden] { display: none; }
.feature-story-heading { display: flex; align-items: start; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.feature-story-heading h2 { max-width: 460px; margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -.035em; }
.feature-story-heading > p { max-width: 360px; margin: 0; font-size: 15px; line-height: 1.6; color: #57534e; }
.story-network { display: grid; grid-template-columns: 1fr 150px 1fr; align-items: center; gap: 24px; min-height: 212px; }
.story-sources { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.story-source { display: flex; align-items: center; gap: 9px; padding: 15px 12px; border: 1px solid #e7e2dc; border-radius: 12px; background: #faf8f5; font-size: 14px; color: #44403c; }
.story-source svg { flex: 0 0 auto; width: 20px; height: 20px; }
.story-brain { position: relative; display: grid; place-items: center; gap: 12px; font-size: 14px; font-weight: 600; text-align: center; }
.story-brain::before, .story-brain::after { content: ''; position: absolute; top: 45px; height: 1px; width: 28px; background: #d4cbec; }
.story-brain::before { right: calc(100% - 12px); }
.story-brain::after { left: calc(100% - 12px); }
.story-brain img { width: 88px; height: 88px; padding: 23px; background: #ede7fa; border: 1px solid #dfd5f3; border-radius: 24px; box-shadow: 0 8px 28px -14px #9b8fe8; }
.story-result { padding: 24px; border: 1px solid #dde8da; border-radius: 16px; background: #f4f8f1; }
.story-result small, .story-prompt small { display: block; color: #5b6c53; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 10px; }
.story-result h3 { font-size: 21px; letter-spacing: -.025em; margin: 0 0 12px; }
.story-result p { font-size: 15px; line-height: 1.6; margin: 0; color: #475440; }
.story-note { margin: 24px 0 0; font-size: 13px; line-height: 1.6; color: #78716c; }
.story-note a { color: #57534e; text-decoration: underline; text-underline-offset: 3px; }
.story-setup summary { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; color: #57534e; font-size: .875rem; cursor: pointer; list-style: none; }
.story-setup summary::-webkit-details-marker { display: none; }
.story-setup summary::after { content: ''; width: 6px; height: 6px; margin: -3px 3px 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.story-setup[open] summary::after { margin-top: 3px; transform: rotate(225deg); }
.story-setup summary:focus-visible { outline: 3px solid #7ba7c9; outline-offset: 3px; }
.story-setup p { max-width: 760px; margin: 4px 0 12px; color: #57534e; font-size: .875rem; line-height: 1.6; }
.story-conversation { display: grid; grid-template-columns: 1fr 1.08fr; gap: 24px; align-items: stretch; }
.story-prompt { padding: 24px; background: #faf8f5; border: 1px solid #e7e2dc; border-radius: 16px; }
.story-prompt small { color: #78716c; }
.story-prompt blockquote { margin: 0 0 18px; font-size: 19px; line-height: 1.5; letter-spacing: -.02em; color: #1c1917; }
.story-prompt blockquote b { color: #7360a9; font-weight: 500; }
.story-files { display: flex; gap: 7px; flex-wrap: wrap; }
.story-files span { font-size: 12px; padding: 5px 8px; border: 1px solid #e3ddd5; border-radius: 6px; background: #fff; color: #57534e; }
.story-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.story-checks li { display: flex; gap: 10px; align-items: baseline; color: #475440; font-size: 14px; line-height: 1.45; }
.story-checks strong { min-width: 78px; color: #273e26; }
.story-schedule { display: grid; grid-template-columns: 1fr 46px 1fr; gap: 14px; align-items: center; }
.story-schedule > svg { width: 36px; height: 36px; color: #aaa095; }
.story-time { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.story-time > strong { font-size: 38px; line-height: 1; letter-spacing: -.05em; font-weight: 500; }
.story-time span { font-size: 13px; line-height: 1.5; color: #78716c; }
.story-prompt > p { font-size: 15px; color: #57534e; line-height: 1.6; margin: 0; }
.story-week { display: flex; gap: 6px; margin-top: 18px; }
.story-week span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 7px; background: #eee9e3; color: #78716c; font-size: 12px; }
.story-week span:first-child { color: #fff; background: #7360a9; }
.feature-story-footer { display: flex; justify-content: space-between; gap: 20px; padding: 17px 28px; background: #faf8f5; border-top: 1px solid #eee9e3; font-size: 13px; color: #78716c; }
.feature-story-footer a { color: #44403c; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .feature-story-panel:not([hidden]) { animation: story-panel-in 440ms cubic-bezier(.22, 1, .36, 1) both; }
  .feature-story-panel:not([hidden]) .story-prompt { animation: story-panel-in 500ms 150ms ease both; }
  .feature-story-panel:not([hidden]) .story-result { animation: story-panel-in 600ms 900ms cubic-bezier(.22, 1, .36, 1) both; }
  .feature-story-panel:not([hidden]) .story-source { animation: story-panel-in 500ms 100ms cubic-bezier(.22, 1, .36, 1) both; }
  .feature-story-panel:not([hidden]) .story-source:nth-child(2n) { animation-delay: 250ms; }
  .feature-story-panel:not([hidden]) .story-source:nth-child(n+3) { animation-delay: 400ms; }
  .feature-story-panel:not([hidden]) .story-brain { animation: story-panel-in 600ms 650ms cubic-bezier(.22, 1, .36, 1) both; }
  .feature-story-panel:not([hidden]) .story-network .story-result { animation-delay: 1250ms; }
  .feature-story-panel:not([hidden]) .story-checks li { animation: story-panel-in 450ms 1400ms ease both; }
  .feature-story-panel:not([hidden]) .story-checks li:nth-child(2) { animation-delay: 1750ms; }
  .feature-story-panel:not([hidden]) .story-checks li:nth-child(3) { animation-delay: 2100ms; }
  .feature-story-panel:not([hidden]) .story-brain::after { transform-origin: left; animation: story-connection 650ms 1000ms both; }
  .feature-story-panel:not([hidden]) .story-schedule > svg { animation: story-signal-in 500ms 600ms ease both; }
  .is-playing .feature-story-tabs button[aria-selected="true"] { background-image: linear-gradient(#e7e0f6, #e7e0f6); background-repeat: no-repeat; background-position: left bottom; background-size: 0 3px; animation: story-progress 7s linear both; }
  .is-paused .feature-story-panel, .is-paused .feature-story-panel *, .is-paused .feature-story-panel *::after, .is-paused .feature-story-tabs button { animation-play-state: paused !important; }
}
@keyframes story-panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes story-connection { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes story-signal-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes story-progress { to { background-size: 100% 3px; } }
@media (max-width: 800px) {
  .feature-story-panel { padding: 25px; }
  .feature-story-heading { flex-direction: column; gap: 14px; }
  .feature-story-heading > p { max-width: none; }
  .story-network { grid-template-columns: 1fr 100px 1fr; gap: 15px; }
  .story-sources { grid-template-columns: 1fr; }
  .story-result { padding: 20px; }
}
@media (max-width: 580px) {
  .feature-story { padding: 0 12px 55px; }
  .feature-story-shell { border-radius: 18px; }
  .feature-story-top { padding: 16px; gap: 12px; }
  .feature-story-top p { font-size: 14px; }
  .feature-story-tabs { padding: 12px 12px 0; gap: 4px; }
  .feature-story-tabs button { flex-direction: column; align-items: start; gap: 6px; padding: 12px 10px; }
  .feature-story-tabs button strong { font-size: 13px; }
  .feature-story-panel { padding: 24px 18px; min-height: 660px; }
  .story-network, .story-conversation, .story-schedule { grid-template-columns: 1fr; gap: 16px; }
  .story-sources { grid-template-columns: 1fr 1fr; }
  .story-brain { display: flex; justify-content: center; }
  .story-brain img { width: 46px; height: 46px; padding: 12px; border-radius: 14px; }
  .story-brain::before, .story-brain::after { display: none; }
  .story-schedule > svg { width: 24px; height: 24px; transform: rotate(90deg); margin: 0 auto; }
  .feature-story-footer { padding: 16px; flex-direction: column; gap: 8px; }
}
