/* Native-inspired examples. These styles are loaded after the page stylesheet. */
.feature:has(.story-help),
.feature:has(.story-live) { gap: clamp(42px, 6vw, 86px); }
.feature:has(.story-help) .eyebrow,
.feature:has(.story-live) .eyebrow,
.story-closing .eyebrow { font-size: 14px; letter-spacing: 1.3px; }
.feature:has(.story-help) .feature-link,
.feature:has(.story-live) .feature-link,
.feature:has(.story-live) .pill { font-size: 15px; min-height: 44px; }
.story-help,
.story-live {
  border: 1px solid #ffffffd9;
  border-radius: 27px;
  box-shadow: inset 0 0 0 1px #4454470a, 0 18px 44px -31px #283b2c38;
}
.story-help::before,
.story-live::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: -15%;
  background: linear-gradient(117deg, transparent 24%, #fffce740 42%, #ffffff66 49%, transparent 69%);
  transform: translateX(-5%);
  opacity: .55;
  animation: story-window-light 16s cubic-bezier(.77, 0, .175, 1) infinite alternate;
  animation-play-state: paused;
}
.story-help[data-story-motion="running"]::before,
.story-live[data-story-motion="running"]::before { animation-play-state: running; }
@keyframes story-window-light {
  to { transform: translateX(6%); opacity: .85; }
}
.story-help {
  min-height: 400px;
  background: linear-gradient(115deg, #e8ece6b0 30%, #e3e9e33b), url('/assets/playground-botanical.png') 70% 43% / cover;
}
.story-help .inspector-demo {
  position: relative;
  z-index: 2;
  min-width: 0;
  margin: 35px 68px 58px 24px;
  padding: 20px 18px 17px;
  border-radius: 19px;
  background: linear-gradient(135deg, #ffffffdc, #f5f8f1c9);
  border: 1px solid #fffffff2;
  box-shadow: 0 16px 29px -16px #35473d52, inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(17px) saturate(1.15);
  backdrop-filter: blur(17px) saturate(1.15);
}
.story-help .inspector-head { font-size: 15px; font-weight: 550; margin-bottom: 17px; }
.story-help .inspector-head span { font-size: 14px; font-weight: 400; color: #58665c; }
.story-help .format-toolbar { gap: 4px; }
.story-help .format-toolbar select,
.story-help .inspector-row select { font-size: 14px; background-color: #ffffff9e; box-shadow: inset 0 1px 0 #fff; border-color: #657a6730; }
.story-help .inspector-row { font-size: 14px; margin-top: 11px; }
.story-help .inspector-row select { min-width: 144px; }
.story-help .select-wrap select { padding-left: 36px; }
.story-help .example-text { font-size: 15px; line-height: 1.5; padding-top: 16px; margin-top: 20px; }
.story-help .scene-caption,
.story-live .scene-caption { font-size: 14px; letter-spacing: 0; color: #46594e; bottom: 16px; }
.story-guidance-halo { position: absolute; pointer-events: none; inset: -4px; border: 1.5px solid #5889bd; border-radius: 13px; opacity: 0; transform-origin: center; }
.story-help .select-wrap:focus-within .story-guidance-halo { opacity: 1; }
.story-help .help-pointer { z-index: 4; }
.story-help .help-pointer span { font-size: 14px; background: #fffffff2; border-color: #fff; padding: 11px 14px; box-shadow: 0 7px 18px -6px #24372836; }
.story-help .help-pointer svg { width: 30px; height: 30px; }
.story-help[data-story-guide="off"] .help-pointer span { visibility: hidden; }
.story-live {
  min-height: 440px;
  background: linear-gradient(125deg, #eaf0e0a8, #d3e1d427), url('/assets/playground-botanical.png') 88% 51% / cover;
}
.story-live .voice-line { font-size: 15px; border-radius: 24px; padding: 13px 19px; box-shadow: 0 8px 19px -9px #2e453748, inset 0 1px 0 #fff; }
.story-live .voice-user { top: 23px; right: 24px; background: #fffffff0; }
.story-live .voice-reply {
  top: 90px;
  right: 71px;
  min-height: 54px;
  max-width: 360px;
  border-radius: 29px;
  padding: 9px 17px 9px 10px;
  gap: 10px;
  color: #f4f7f8;
  border: 1px solid #414b57;
  background: linear-gradient(140deg, #26313d, #0e1720);
  box-shadow: 0 7px 18px -6px #23374c80, inset 0 1px 0 #ffffff24;
}
.story-live .voice-reply .emble-orb { width: 32px; height: 32px; flex: 0 0 32px; }
.story-live[data-story-phase="idle"] .voice-reply,
.story-live[data-story-phase="request"] .voice-reply { opacity: 0; visibility: hidden; }
.story-live[data-story-phase="speaking"] .voice-user,
.story-live[data-story-phase="result"] .voice-user,
.story-live[data-story-phase="complete"] .voice-user { opacity: .65; }
.story-live .voice-user { transition: opacity 240ms ease; }
.story-voice-wave { width: 32px; height: 18px; display: flex; align-items: center; gap: 3px; flex: 0 0 32px; }
.story-voice-wave i { display: block; background: #b5d1ef; width: 3px; height: 12px; border-radius: 4px; transform: scaleY(.48); }
.story-voice-wave i:nth-child(2), .story-voice-wave i:nth-child(4) { height: 17px; }
.story-voice-wave i:nth-child(3) { height: 20px; }
.story-live[data-story-phase="speaking"] .story-voice-wave i { transform: scaleY(.72); }
.story-live .mac-note {
  position: relative;
  margin: 165px 24px 52px;
  border-radius: 17px;
  background: linear-gradient(140deg, #fffefde8, #f5f7f0db);
  border: 1px solid #fff;
  box-shadow: 0 17px 33px -17px #30473459, inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}
.story-live .mac-titlebar { position: relative; height: 43px; background: #f4f5ef8f; border-color: #56644b1a; font-size: 14px; color: #657060; }
.story-live .mac-titlebar i { width: 10px; height: 10px; }
.story-live .mac-note-content { position: relative; padding: 21px 24px 21px; }
.story-live .mac-note-content h3 { font-size: 24px; line-height: 1.25; margin-bottom: 15px; transition: color 220ms ease; }
.story-live .mac-note-content label { font-size: 15px; min-height: 44px; gap: 11px; }
.story-live .mac-note-content input { width: 18px; height: 18px; }
.story-color-proof { position: absolute; pointer-events: none; left: 24px; right: 24px; top: 55px; height: 2px; border-radius: 4px; background: #71a0ca; transform-origin: left; opacity: 0; }
.story-live .scene-caption { right: 20px; bottom: 15px; }
.story-live:not([data-story-motion="running"]) .orb-light,
.story-live:not([data-story-motion="running"]) .orb-sheen,
.story-closing:not([data-story-motion="running"]) .orb-light,
.story-closing:not([data-story-motion="running"]) .orb-sheen { animation-play-state: paused; }
.story-closing { gap: clamp(48px, 7vw, 110px); align-items: center; padding-top: 60px; }
.story-closing > div:first-child { min-width: 0; }
.story-closing .questions { padding-top: 0; }
.story-closing .questions summary,
.story-closing .questions details p,
.story-closing .questions .text-button,
.story-closing .release-caption { font-size: 14px !important; }
.story-return-link { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; margin-top: 12px; font-size: 14px; color: #38564a; }
.story-return-link img { width: 16px; height: 16px; }
.story-return-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.story-closing-vignette { position: relative; width: min(330px, 100%); height: 133px; margin: -5px 0 25px; isolation: isolate; pointer-events: none; }
.story-closing-vignette > .emble-orb { position: absolute; z-index: 3; width: 49px; height: 49px; left: 8px; top: 45px; box-shadow: 0 9px 14px -8px #45749891; }
.story-mini-focus,
.story-mini-note { position: absolute; border: 1px solid #ffffffeb; border-radius: 17px; background: linear-gradient(140deg, #edf3eada, #f9fbf4bb); box-shadow: 0 9px 20px -13px #28432a69, inset 0 0 0 .6px #c1d2bc69; }
.story-mini-focus { left: 80px; top: 15px; width: 100px; padding: 12px 14px 13px; transform: rotate(-4deg); }
.story-mini-focus span,
.story-mini-note span { display: block; font-size: 14px; color: #4b5d50; white-space: nowrap; }
.story-mini-focus strong { display: block; font-size: 23px; line-height: 1.25; font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: -.6px; color: #1e3430; margin: 4px 0 9px; }
.story-mini-focus > i { display: block; width: 100%; height: 3px; border-radius: 3px; background: #83a6c8; }
.story-mini-note { left: 187px; top: 37px; width: 133px; padding: 13px 13px 16px; transform: rotate(4deg); }
.story-mini-note i { display: block; height: 3px; border-radius: 3px; background: #7e967e36; margin-top: 11px; width: 94%; }
.story-mini-note i:last-child { width: 62%; }
.story-horizon { position: absolute; z-index: -1; bottom: 8px; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, #a7bba24a 20%, #a7bba24a 70%, transparent); }
@media (max-width: 1100px) and (min-width: 900px) {
  .story-help .inspector-demo { margin-left: 18px; margin-right: 32px; padding: 18px 15px; }
  .story-help .inspector-head span { display: none; }
  .story-help .inspector-row select { min-width: 133px; }
}
@media (max-width: 899px) {
  .feature:has(.story-help), .feature:has(.story-live) { gap: 35px; }
  .story-help .inspector-demo { margin: 28px 38px 57px 22px; max-width: 355px; }
  .story-help .help-pointer span { top: calc(8px - var(--pointer-y)); font-size: 14px; }
  .story-live .voice-reply { right: 60px; }
  .story-closing-vignette { margin-top: 0; }
}
@media (max-width: 650px) {
  .story-help, .story-live { border-radius: 22px; }
  .story-help { min-height: 405px; }
  .story-help .inspector-demo { margin: 35px 19px 65px; padding: 19px 15px 16px; max-width: none; }
  .story-help .inspector-head span { display: none; }
  .story-help .inspector-row select { min-width: 142px; }
  .story-help .format-toolbar select:first-of-type { min-width: 64px; }
  .story-help .format-toolbar select:nth-of-type(2) { width: 54px; min-width: 54px; padding-left: 6px; }
  .story-help .format-toolbar { gap: 2px; }
  .story-help .help-pointer span { left: auto; right: 24px; padding: 8px 11px; font-size: 14px; }
  .story-help .scene-caption { left: 20px; }
  .story-live { min-height: 440px; }
  .story-live .voice-user { top: 22px; right: 17px; }
  .story-live .voice-reply { top: 91px; right: 36px; }
  .story-live .mac-note { margin: 163px 16px 53px; }
  .story-live .mac-note-content { padding: 19px 18px; }
  .story-live .mac-note-content h3 { font-size: 23px; }
  .story-live .scene-caption { right: 18px; }
  .story-closing { padding-top: 45px; }
  .story-closing .eyebrow { max-width: 29ch; }
  .story-closing-vignette { width: min(312px, 100%); margin-bottom: 24px; }
  .story-mini-focus { left: 65px; }
  .story-mini-note { left: 172px; width: 124px; }
}
@media (max-width: 380px) {
  .story-help .inspector-demo { margin-left: 13px; margin-right: 13px; padding-left: 13px; padding-right: 13px; }
  .story-help .format-toolbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 13px; }
  .story-help .format-toolbar select { grid-column: span 2; width: 100% !important; max-width: none; min-width: 0 !important; }
  .story-help .format-toolbar button { width: 44px; }
  .story-help .inspector-row select { min-width: 128px; width: 128px; padding-right: 6px; }
  .story-help .inspector-row { gap: 6px; }
  .story-help .example-text { font-size: 14px; }
  .story-live .voice-reply { right: 18px; }
  .story-live .mac-note { margin-left: 12px; margin-right: 12px; }
  .story-live .mac-note-content { padding-left: 15px; padding-right: 15px; }
  .story-closing-vignette { height: 129px; }
  .story-closing-vignette > .emble-orb { left: 0; width: 42px; height: 42px; }
  .story-mini-focus { left: 52px; width: 92px; padding-left: 11px; padding-right: 11px; }
  .story-mini-note { left: 150px; width: 110px; padding-left: 10px; padding-right: 10px; }
  .story-mini-note span { font-size: 14px; white-space: normal; line-height: 1.2; }
}
@media (prefers-reduced-motion: reduce) {
  .story-help *, .story-live *, .story-closing-vignette * { animation: none !important; transition: none !important; }
  .story-help::before, .story-live::before { animation: none; transform: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .story-help .inspector-demo, .story-live .mac-note { background: #f8faf5; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: #87988a; }
  .story-mini-focus, .story-mini-note { background: #eff4eb; }
}

/* Examples inhabit the page: one window edge, without a second card frame. */
.story-help,.story-live {
  border:0;border-radius:0;box-shadow:none;
  background:radial-gradient(ellipse at 50% 60%,#e3e9df99,transparent 72%);
}
.story-help .inspector-demo {
  width:340px;max-width:calc(100% - 68px);margin:40px auto 58px;
  border-radius:14px;background:linear-gradient(140deg,#ffffffcc,#f0f4ec99);
  border-color:#ffffffd9;box-shadow:0 15px 30px -24px #213a316b,0 0 0 1px #334b4012;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
.story-help .inspector-head {padding-bottom:13px;border-bottom:1px solid #49584d14;}
.story-help .inspector-head span {font-size:12px;}
.story-help .example-text {font-size:14px;border-color:#49584d14;}
.story-help .scene-caption {left:50%;transform:translateX(-50%);white-space:nowrap;font-size:12px;}
.story-live .mac-note {
  width:390px;max-width:calc(100% - 56px);margin:156px auto 45px;
  border-radius:13px;background:linear-gradient(140deg,#fffefdd9,#f5f7f0aa);
  border-color:#ffffffdd;box-shadow:0 16px 28px -20px #213a3155,0 0 0 1px #334b4012;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
.story-live .mac-titlebar {height:38px;font-size:13px;background:#f1f3ed99;}
.story-live .mac-titlebar i {width:12px;height:12px;}
.story-live .mac-note-content {padding:18px 22px;}
.story-live .mac-note-content h3 {font-size:21px;font-weight:550;}
.story-live .voice-user {right:40px;top:21px;box-shadow:0 5px 15px -10px #263c3660;border:1px solid #31493810;font-size:14px;}
.story-live .voice-reply {top:84px;right:76px;min-height:48px;padding-block:6px;font-size:14px;}
.story-live .scene-caption {right:50%;transform:translateX(50%);font-size:12px;white-space:nowrap;}
@media(max-width:899px) {
  .story-help .inspector-demo {width:340px;max-width:calc(100% - 36px);}
  .story-live .mac-note {max-width:calc(100% - 32px);}
}
@media(max-width:650px) {
  .story-help .inspector-demo {width:auto;margin:35px 16px 62px;max-width:none;}
  .story-live .voice-user {right:17px;}
  .story-live .voice-reply {right:35px;}
  .story-live .mac-note {width:auto;margin:154px 14px 52px;max-width:none;}
  .story-help .help-pointer span {right:24px;}
}
@media(max-width:380px) {
  .story-help .inspector-demo {margin-inline:12px;}
  .story-live .voice-reply {right:20px;}
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) {
  .story-help .inspector-demo,.story-live .mac-note {background:#f8faf5;backdrop-filter:none;-webkit-backdrop-filter:none;border-color:#87988a;}
}
@media(min-width:900px) {
  .story-help .help-pointer span {left:auto;right:8px;top:auto;bottom:36px;}
  .story-help .help-pointer span::before {left:auto;right:16px;}
}

/* Each loop explains one interaction, then leaves its result readable. */
.story-help#help-scene[data-guidance-phase] .help-pointer,
.story-help#help-scene[data-guidance-phase] .story-guidance-halo { animation: none; }
.story-help#help-scene[data-guidance-phase="target"] .story-guidance-halo,
.story-help#help-scene[data-guidance-phase="choices"] .story-guidance-halo {
  opacity: .85; transform: scale(1);
}
.story-guidance-halo { transition: opacity 220ms ease; }
.story-guidance-swatches {
  position: absolute; z-index: 6; top: calc(100% + 7px); right: 0;
  display: flex; align-items: center; justify-content: space-evenly; gap: 13px;
  width: 144px; padding: 12px; border-radius: 12px;
  border: 1px solid #ffffff; background: #fcfcf7;
  box-shadow: 0 9px 24px -9px #233b485c, 0 0 0 1px #31483e1a;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform-origin: top right; transition: opacity 180ms ease, visibility 180ms;
}
.story-help .story-guidance-swatches i { position: static; flex: 0 0 24px; width: 24px; height: 24px; transform: none; border: 1px solid #23352626; border-radius: 50%; background: #becdad; }
.story-help .story-guidance-swatches i:nth-child(2) { background: #adc8e3; }
.story-help .story-guidance-swatches i:nth-child(3) { background: #ddbac7; }
.story-help[data-guidance-phase="choices"] .story-guidance-swatches,
.story-help[data-guidance-phase="result"] .story-guidance-swatches { opacity: 1; visibility: visible; }
.story-help[data-guidance-phase="result"] .story-guidance-swatches .chosen {
  outline: 2px solid #6591bb; outline-offset: 3px;
}
.story-help#help-scene .example-text { position: relative; min-height: 48px; }
.story-help .example-text::after {
  content: ""; position: absolute; bottom: -5px; left: 0; height: 2px; width: 38%;
  border-radius: 2px; background: #87a9c8; transform: scaleX(0); transform-origin: left;
  transition: transform 500ms cubic-bezier(.23,1,.32,1), opacity 240ms ease; opacity: 0;
}
.story-help[data-guidance-phase="result"] .example-text::after,
.story-help[data-guidance-phase="rest"] .example-text::after { opacity: .7; transform: scaleX(1); }
.story-help[data-guide-owned] .story-guidance-swatches { display: none; }
.story-live .voice-user img { animation: story-request-wave 800ms ease infinite alternate; animation-play-state: paused; }
.story-live[data-story-motion="running"][data-story-phase="request"] .voice-user img { animation-play-state: running; }
@keyframes story-request-wave { from { transform: scaleY(.55); opacity: .55; } to { transform: scaleY(1); opacity: 1; } }
.story-live[data-story-phase="complete"] .voice-reply { opacity: .72; }
.story-live .voice-reply { transition: opacity 240ms ease; }
.story-help .scene-caption.sr-only, .story-live .scene-caption.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media(prefers-reduced-motion:reduce) {
  .story-help .example-text::after { transition: none; }
  .story-guidance-swatches { display: none; }
}
.story-live[data-story-phase="manual"] .voice-line { opacity: 0; visibility: hidden; }
