/* Homepage product scenes: Nokumi's existing world, with inspectable product surfaces. */
.product-story { --story-night: #0d2b52; --story-light: #eff5ff; --story-secondary: #bed1eb; }
.product-story .story-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; margin-bottom: 32px; }
.product-story .story-heading h2 { margin: 0 0 20px; max-width: 20ch; font-size: clamp(36px, 4vw, 56px); line-height: 1.12; letter-spacing: -.03em; }
.product-story .story-heading p { max-width: 65ch; margin: 0; font-size: 16px; line-height: 1.8; }
.product-story .story-demo-label { display: inline-block; flex-shrink: 0; background: var(--mint-soft); color: #236754; padding: 9px 13px; border-radius: 8px; font-size: 12px; font-weight: 800; }
.product-story .story-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); margin: 0 0 38px; }
.product-story .story-tabs button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 66px; padding: 14px; background: transparent; border: 0; border-bottom: 3px solid transparent; font-size: 16px; font-weight: 800; }
.product-story .story-tabs button > span { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border: 1px solid #8da6c5; border-radius: 50%; font-size: 12px; }
.product-story .story-tabs button[aria-selected="true"] { border-bottom-color: var(--red); color: var(--red); background: var(--blue-soft); }
.product-story .story-tabs button[aria-selected="true"] > span { color: white; background: var(--red); border-color: var(--red); }
.product-story .story-tabs button:hover { background: var(--blue-soft); }
.product-story .story-scene { display: grid; grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); gap: 48px; align-items: center; min-height: 570px; }
.product-story [hidden] { display: none !important; }
.product-story .story-copy h3 { margin: 0 0 22px; font-size: clamp(28px, 3vw, 39px); line-height: 1.16; letter-spacing: -.03em; }
.product-story .story-copy > p { font-size: 16px; line-height: 1.8; max-width: 44ch; margin: 0 0 24px; }
.product-story .story-copy .story-takeaway { font-weight: 800; color: var(--ink); }
.product-story .story-copy .story-small-note { font-size: 14px; }
.product-story .text-link { font-size: 14px; line-height: 1.5; min-height: 44px; }
.product-story .story-window { min-width: 0; overflow: hidden; border-radius: 16px; border: 1px solid #bdcfe8; background: #fff; }
.product-story .story-window-bar { min-height: 61px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 13px 22px; border-bottom: 1px solid #bdcfe8; font-size: 12px; }
.product-story .story-chat { background: var(--story-night); color: var(--story-light); border-color: var(--story-night); }
.product-story .story-chat .story-window-bar { border-color: #365475; color: var(--story-secondary); }
.product-story .story-client-picker { display: flex; gap: 5px; }
.product-story .story-client-picker button { min-height: 44px; padding: 9px 14px; border: 1px solid #6f8fb5; border-radius: 8px; background: transparent; color: var(--story-light); font-size: 14px; font-weight: 800; }
.product-story .story-client-picker button[aria-pressed="true"] { background: var(--story-light); border-color: var(--story-light); color: var(--story-night); }
.product-story .story-chat button:focus-visible, .product-story .story-chat summary:focus-visible { outline-color: var(--mint); }
.product-story .story-chat-body { padding: 28px; }
.product-story .story-speaker { display: block; margin-bottom: 8px; color: var(--story-secondary); font-size: 12px; font-weight: 800; }
.product-story .story-prompt { padding: 18px 20px; background: #1c416a; border-radius: 12px 12px 3px 12px; }
.product-story .story-chat-body p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--story-light); }
.product-story .story-reply { margin: 25px 0 20px; }
.product-story .story-reply .story-speaker { color: var(--mint); }
.product-story .story-tool { border-block: 1px solid #6f8fb5; }
.product-story .story-tool summary { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 17px 0; min-height: 52px; cursor: pointer; }
.product-story .story-disclosure-icon { margin-left: auto; width: 16px; height: 16px; flex-shrink: 0; stroke: var(--mint); stroke-width: 1.7; stroke-linecap: round; }
.product-story .story-tool[open] .story-disclosure-vertical { display: none; }
.product-story .story-tool summary::marker { content: ''; }
.product-story .story-tool summary::-webkit-details-marker { display: none; }
.product-story .story-tool code { font-size: 13px; overflow-wrap: anywhere; }
.product-story .story-tool-kind { color: var(--story-secondary); font: 12px 'Nunito Sans', sans-serif; }
.product-story .story-tool > div { padding: 0 0 20px; }
.product-story .story-tool > div p + p { color: var(--story-secondary); font-size: 13px; margin-top: 12px; }
.product-story .story-signal { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex-shrink: 0; }
.product-story .story-permission { display: flex; align-items: center; gap: 12px; padding-top: 21px; }
.product-story .story-permission img { flex-shrink: 0; object-fit: contain; }
.product-story .story-permission strong, .product-story .story-permission span { display: block; }
.product-story .story-permission strong { color: var(--mint); font-size: 14px; }
.product-story .story-permission span { font-size: 13px; line-height: 1.6; color: var(--story-secondary); margin-top: 5px; }
.product-story .story-dashboard-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 800; }
.product-story .story-dashboard-body, .product-story .story-runtime-body { padding: 23px; }
.product-story .story-screen-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 8px; }
.product-story .story-screen-title strong { font-size: 16px; }
.product-story .story-screen-title > span { font-size: 12px; color: var(--muted); }
.product-story .story-provider-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(155px, 190px); gap: 18px; align-items: center; border-bottom: 1px solid var(--line); padding: 15px 0; }
.product-story .story-provider { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; min-width: 0; }
.product-story .story-provider img { object-fit: contain; max-height: 29px; }
.product-story .story-provider > span, .product-story .story-provider div span { display: block; font-size: 12px; color: var(--muted); }
.product-story .story-provider div strong { display: block; font-size: 15px; }
.product-story .story-provider-row label { display: block; font-size: 12px; font-weight: 800; }
.product-story .story-provider-row select { width: 100%; max-width: 100%; margin-top: 6px; min-height: 44px; padding: 8px; border: 1px solid #8da6c5; border-radius: 8px; color: var(--ink); background: var(--paper); font-size: 16px; }
.product-story .story-account-note { font-size: 13px; line-height: 1.7; margin: 18px 0 10px; color: var(--muted); }
.product-story .story-account-details summary, .product-story .story-recovery summary { cursor: pointer; font-size: 13px; line-height: 1.6; font-weight: 800; min-height: 44px; padding: 11px 0; }
.product-story .story-account-details p, .product-story .story-recovery p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 5px 0 13px; }
.product-story .story-buyer { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; padding: 18px; background: var(--blue-soft); border-radius: 12px; }
.product-story .story-buyer-art { width: 66px; height: 72px; flex-shrink: 0; color: var(--red); }
.product-story .story-buyer-art svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 2; }
.product-story .story-buyer-art circle { fill: var(--mint-soft); }
.product-story .story-buyer > div:nth-child(2) { flex: 1; min-width: 170px; }
.product-story .story-buyer h4 { font-size: 18px; line-height: 1.3; margin: 7px 0; letter-spacing: -.02em; }
.product-story .story-buyer p { font-size: 13px; line-height: 1.6; margin: 0; }
.product-story .story-access-badge { background: var(--mint-soft); color: #236754; padding: 7px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; }
.product-story .story-execution { margin-top: 24px; }
.product-story .story-execution ol { list-style: none; padding: 0; margin: 8px 0 0; }
.product-story .story-execution li { display: flex; align-items: flex-start; gap: 11px; border-bottom: 1px solid var(--line); padding: 16px 0; }
.product-story .story-result-check { display: grid; place-content: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--mint-soft); color: #236754; font-size: 13px; font-weight: 900; }
.product-story .story-result-check svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.product-story .story-execution li > div { flex: 1; min-width: 0; }
.product-story .story-execution strong { display: block; font-size: 14px; line-height: 1.5; }
.product-story .story-execution li div > span { display: block; font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 3px; }
.product-story .story-result-state { color: #236754; font-size: 12px; padding-top: 2px; }
.product-story .story-usage { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 18px 0 9px; font-size: 12px; line-height: 1.7; }
.product-story .story-usage a { text-decoration: underline; text-underline-offset: 3px; }
.product-story .story-recovery { border-top: 1px solid var(--line); }
.product-story .story-recovery-line { display: flex; flex-direction: column; gap: 12px; }
.product-story .story-recovery-line > span { background: #fff0e6; color: #783d1b; padding: 12px; border-radius: 8px; font-size: 13px; line-height: 1.6; }
.product-story .story-recovery-line > span[data-recovered] { background: var(--mint-soft); color: #236754; }
.product-story .story-recovery button { min-height: 44px; padding: 11px 14px; border-radius: 8px; border: 1px solid #bdcfe8; color: var(--ink); background: var(--blue-soft); font-size: 13px; font-weight: 800; text-align: left; }
.product-story .story-recovery button:disabled { opacity: .7; cursor: default; }
.product-story .story-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 22px; }
.product-story .story-controls > p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.product-story .story-controls > div { display: flex; flex-wrap: wrap; gap: 8px; }
.product-story .story-controls button { min-height: 44px; background: var(--blue-soft); color: var(--ink); border: 1px solid #bdcfe8; border-radius: 8px; padding: 9px 13px; font-size: 13px; font-weight: 800; }
.product-story .story-controls button:hover, .product-story .story-recovery button:hover:not(:disabled) { background: #d9e7fd; }
.product-story .story-footer { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 15px 30px; padding-top: 22px; margin-top: 15px; border-top: 1px solid var(--line); }
.product-story .story-footer p { margin: 0; max-width: 62ch; font-size: 12px; line-height: 1.8; }
.product-story .story-footer .text-link { padding-top: 0; }
@media (max-width: 1100px) {
  .product-story .story-scene { gap: 28px; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
  .product-story .story-window-bar { padding-inline: 18px; }
  .product-story .story-chat-body { padding: 22px; }
  .product-story .story-dashboard-body, .product-story .story-runtime-body { padding: 18px; }
  .product-story .story-provider-row { grid-template-columns: minmax(0, 1fr) minmax(140px, 170px); gap: 12px; }
  .product-story .story-buyer-art { width: 50px; height: 54px; }
}
@media (max-width: 900px) {
  .product-story .story-scene { grid-template-columns: 1fr; gap: 25px; min-height: 0; }
  .product-story .story-copy > p { max-width: 65ch; }
  .product-story .story-copy .story-takeaway { margin-bottom: 15px; }
  .product-story .story-copy h3 br { display: none; }
}
@media (max-width: 600px) {
  .product-story .story-heading { display: block; margin-bottom: 24px; }
  .product-story .story-heading h2 { font-size: 34px; }
  .product-story .story-heading p { font-size: 15px; }
  .product-story .story-demo-label { margin-top: 18px; }
  .product-story .story-tabs { margin-bottom: 28px; }
  .product-story .story-tabs button { flex-direction: column; gap: 8px; padding: 12px 4px; font-size: 13px; line-height: 1.5; min-height: 86px; }
  .product-story .story-tabs button > span { width: 24px; height: 24px; }
  .product-story .story-copy h3 { font-size: 28px; margin-bottom: 15px; }
  .product-story .story-copy > p { font-size: 15px; margin-bottom: 18px; }
  .product-story .story-window { border-radius: 12px; }
  .product-story .story-window-bar { padding: 12px 15px; font-size: 11px; }
  .product-story .story-chat-body { padding: 19px 16px; }
  .product-story .story-prompt { padding: 15px; }
  .product-story .story-chat-body p { font-size: 14px; }
  .product-story .story-permission { gap: 8px; }
  .product-story .story-dashboard-body, .product-story .story-runtime-body { padding: 16px; }
  .product-story .story-screen-title { flex-wrap: wrap; gap: 5px; }
  .product-story .story-provider-row { grid-template-columns: 1fr; gap: 10px; }
  .product-story .story-provider-row label { max-width: 100%; }
  .product-story .story-provider { gap: 8px 13px; }
  .product-story .story-provider div { display: flex; align-items: baseline; gap: 10px; }
  .product-story .story-buyer { padding: 15px; gap: 12px; }
  .product-story .story-buyer > div:nth-child(2) { min-width: 125px; }
  .product-story .story-buyer-art { width: 44px; height: 48px; }
  .product-story .story-buyer h4 { font-size: 16px; }
  .product-story .story-execution li { flex-wrap: wrap; gap: 5px 9px; }
  .product-story .story-result-check svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.product-story .story-execution li > div { flex-basis: calc(100% - 31px); }
  .product-story .story-result-state { margin-left: 31px; }
  .product-story .story-controls { align-items: flex-start; }
  .product-story .story-controls > div { width: 100%; }
  .product-story .story-controls button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .product-story * { scroll-behavior: auto; } }
