@import url('./stories/runtime/assistant.css');

.story-section{padding-block:76px 40px;scroll-margin-top:18px;position:relative;isolation:isolate}
.story-heading{display:grid;grid-template-columns:1.06fr .94fr;gap:80px;align-items:end;margin-bottom:clamp(46px,4vw,62px)}
.story-kicker{font-family:var(--font-display);font-size:11px;letter-spacing:.16em;text-transform:uppercase;margin:0 0 18px;color:var(--color-muted)}
.story-heading h2{font-family:var(--font-display);font-size:clamp(34px,3.7vw,52px);line-height:1.3;letter-spacing:-.045em;margin:0;font-weight:400}
.story-heading h2 em,html[lang=en] .story-heading h2 em{font-family:inherit;font-size:inherit;font-weight:inherit;font-style:normal;letter-spacing:inherit;background:var(--mais-title-gradient);background-clip:text;-webkit-background-clip:text;color:transparent}
.story-lead{font-size:17px;line-height:1.85;max-width:470px;margin:0 0 3px;text-wrap:pretty;color:var(--color-copy)}
.companion-intro {
  display: grid;
  justify-items: center;
  gap: clamp(10px, 1.15vw, 18px);
  margin-block-end: clamp(16px, 3.8vw, 58px);
  text-align: center;
}
.companion-slogan {
  max-inline-size: 100%;
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(36px, 4.9vw, 68px);
  line-height: 1.18;
  text-wrap: balance;
}
.companion-slogan:lang(zh) > span { display: inline-block; }
.companion-slogan:lang(en) > .companion-slogan-accent { display: block; }
.companion-slogan-accent { color: #f2c37b; }
html[data-theme=light] .companion-slogan-accent { color: #8d5319; }
.companion-subtitle {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.35;
  text-wrap: balance;
}
.companion-subtitle em { font-style: normal; }
#ai-companion .story-lead {
  max-inline-size: 34em;
  margin: 0;
  text-wrap: balance;
}
.companion-playground{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:54px;align-items:stretch;min-height:650px;position:relative;border:0;background:none;overflow:visible}
.companion-stage{position:relative;min-width:0;padding:25px 0 16px;isolation:isolate;display:flex;flex-direction:column;justify-content:space-between;border:0;background:none}
.companion-stage::before{content:'';position:absolute;z-index:-1;inset:-100px -160px 55px calc(-50vw + 50%);pointer-events:none;background:radial-gradient(ellipse at 48% 48%,#b6a0e62a,transparent 64%),radial-gradient(ellipse at 26% 56%,#d2c0eb14,transparent 62%);border:0;mask-image:linear-gradient(to bottom,transparent,#000 16%,#000 55%,transparent 92%),linear-gradient(to right,transparent,#000 10%,#000 75%,transparent);mask-composite:intersect}
html[data-theme=dark] .companion-stage::before{background:radial-gradient(ellipse at 46% 48%,#a288d32c,transparent 66%),radial-gradient(ellipse at 26% 56%,#917bc912,transparent 62%)}
/* Keep the wash's size and falloff, with its main glow behind the actor. */
@media(min-width:781px){
 .companion-stage::before{left:50%;right:auto;width:calc(50vw + 50% + 160px);transform:translateX(-48%)}
 html[data-theme=dark] .companion-stage::before{transform:translateX(-46%)}
}
.companion-living-area{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:480px;flex:1;padding:74px 0 50px}
.companion-bubbles{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none;user-select:none}
.companion-word{position:absolute;display:block;width:max-content;white-space:nowrap;line-height:1.4;letter-spacing:.02em;font-weight:400;color:var(--color-ink);opacity:0;transform-origin:center;animation:companion-word var(--word-duration,3s) ease-out both}
.companion-word[hidden]{display:none}
@keyframes companion-word{0%{opacity:0;transform:translateY(5px) scale(.86) rotate(var(--word-tilt))}5%,22%{opacity:var(--word-alpha);transform:translateY(0) scale(1) rotate(var(--word-tilt))}100%{opacity:0;transform:translateY(-14px) scale(1.025) rotate(var(--word-tilt))}}
/* Shape, capsule backing and curved tail follow the app's shared tooltip.css. */
.companion-caption.mais-tooltip{--tooltip-surface:#fff;--tooltip-ink:#181818;position:absolute;top:38px;display:flex;align-items:center;width:max-content;max-width:calc(100% - 20px);min-height:32px;margin:0;padding:5px 18px;border:0;border-radius:20px;background:var(--tooltip-surface);color:var(--tooltip-ink);filter:drop-shadow(0 8px 14px rgb(0 0 0 /14%));font:400 13px/1.54 var(--font-content,Inter,sans-serif);text-align:center;pointer-events:none;z-index:3;visibility:hidden;opacity:0;transform:translateY(5px);transition:opacity 140ms ease,transform 140ms ease,visibility 140ms}
@media(hover:hover){.companion-living-area:hover .companion-caption{visibility:visible;opacity:1;transform:translateY(0)}}
.companion-caption .mais-tooltip-title{font-family:var(--font-display);font-weight:400;color:inherit}
.companion-caption::after{content:'';position:absolute;width:24px;height:16px;top:calc(100% - 1px);left:50%;transform:translateX(-50%);background:var(--tooltip-surface);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M0 0H24C20 0 17.5 7 14.5 13C13.4 15.3 10.6 15.3 9.5 13C6.5 7 4 0 0 0Z'/%3E%3C/svg%3E") center/100% 100% no-repeat}
html[data-theme=dark] .companion-caption.mais-tooltip{--tooltip-surface:#000;--tooltip-ink:#f5f5f5;filter:drop-shadow(0 8px 14px rgb(0 0 0 /24%))}
.companion-live{position:relative;z-index:2;width:280px;height:242px;margin:34px 0 25px;flex:none}
.companion-live>.companion-fallback{position:absolute;width:140%;height:162%;object-fit:contain;left:-20%;top:-31%}
.companion-live .cloud-assistant{width:100%;height:100%;filter:drop-shadow(0 15px 38px #e75a2912)}
.companion-live [hidden]{display:none!important}
.companion-role-picker{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));justify-content:center;align-items:start;gap:3px;padding-top:16px;margin-top:12px;border:0}
.companion-role-picker button,.companion-action-tray button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;background:transparent;border:0;border-radius:10px;box-shadow:none;padding:5px 1px 10px;cursor:pointer;min-width:0;font:inherit;font-size:11px;line-height:1.45;color:var(--color-ink)}
.companion-glyph{position:relative;display:block;width:66px;height:66px;flex:none;pointer-events:none;isolation:isolate}
.companion-glyph img{position:absolute;max-width:none;object-fit:contain;transform:none;pointer-events:none}
.companion-role-picker button:is([aria-pressed=true],:hover,:active),.companion-action-tray button:is(:hover,:active){background:transparent;box-shadow:none}
.companion-role-picker button[aria-pressed=true]{color:var(--ui-accent-ink)}
.companion-conversation{position:relative;min-width:0;align-self:stretch;padding:28px 8px 0;display:flex;flex-direction:column;justify-content:flex-end}
.companion-captures{display:grid;gap:44px;min-width:0;width:100%;max-width:400px;margin:auto;padding:22px 4px 24px}
.companion-capture{--capture-tilt:-4deg;--capture-inset:44px;position:relative;display:block;min-width:0;width:100%;margin:0;padding-inline:var(--capture-inset)}
.companion-capture:nth-child(2){--capture-tilt:3deg}
.companion-capture:nth-child(3){--capture-tilt:-3deg}
.companion-capture:last-child{--capture-tilt:3deg}
.companion-capture-content{display:flex;align-items:center;justify-content:center;aspect-ratio:600/154;min-width:0;transform:rotate(var(--capture-tilt));transform-origin:center;filter:drop-shadow(0 12px 20px #25133e12)}
.companion-control-cutout{display:block;width:75%;height:auto;overflow:hidden}
.companion-action-tray{width:100%;max-width:400px;margin:19px auto 0}
.companion-action-tray>p{font-size:11px;color:var(--color-muted);margin:0 0 14px;text-align:center}
.companion-action-tray>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:8px}
.companion-action-tray button{font-size:11px;gap:0;padding-block:0 8px;color:var(--color-ink)}
.story-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:38px;padding:32px 0 0}
.story-benefits p{margin:0;font-size:13px;line-height:1.8}
.story-benefits strong{display:block;font-size:15px;line-height:1.5;color:var(--color-ink);font-weight:500;margin-bottom:10px}
.story-benefits span{display:block;color:var(--color-copy)}

.panel-story{padding-top:100px}
.smart-panel-picker{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:9px;margin-inline:-5px;margin-block:44px 0}
.smart-panel-picker>button{display:flex;flex-direction:column;align-items:center;gap:5px;min-height:109px;min-width:0;border:0;border-radius:15px;background:transparent;font:inherit;color:var(--color-ink);font-size:12px;line-height:1.4;cursor:pointer;padding:7px 5px 12px;transition:color 200ms ease}
.smart-panel-glyph{display:block;width:74px;height:74px;flex:none;transition:transform 260ms cubic-bezier(.2,.8,.2,1);transform-origin:50% 57%;pointer-events:none}
.smart-panel-glyph img{display:block;width:100%;height:100%;object-fit:contain}
.smart-panel-picker>button:hover,.smart-panel-picker>button:focus-visible,.smart-panel-picker>button[aria-selected=true]{background:transparent}
.smart-panel-picker>button:hover .smart-panel-glyph,.smart-panel-picker>button:focus-visible .smart-panel-glyph{transform:scale(1.26)}
.smart-panel-picker>button[aria-selected=true]>span:last-child{color:var(--ui-accent-ink)}
.smart-panel-result{display:grid;grid-template-columns:.8fr 2fr;gap:47px;align-items:center;min-height:400px}
.smart-panel-copy{min-width:0;padding-right:4px}
.smart-panel-category{font-size:12px;color:var(--ui-accent-ink)}
.smart-panel-copy h3{font-size:28px;letter-spacing:-.04em;line-height:1.5;margin:15px 0 18px;font-weight:400;text-wrap:pretty;color:var(--color-ink)}
.smart-panel-copy>p{font-size:13px;line-height:1.9;margin:0 0 23px;color:var(--color-copy)}
.smart-panel-copy ol{list-style:none;padding:0;margin:0;display:grid;gap:11px}
.smart-panel-copy li{display:flex;align-items:baseline;gap:11px;font-size:12px;color:var(--color-copy)}
.smart-panel-copy li>span{font:400 10px/1.6 var(--font-display);font-variant-numeric:tabular-nums;color:var(--ui-accent-ink)}
.story-preview{position:relative;margin:0;overflow:hidden;min-width:0;aspect-ratio:16/9;border-radius:16px;box-shadow:0 24px 65px #00000012;border:1px solid color-mix(in srgb,var(--color-line) 65%,transparent);background:#f5f4f2}
.story-capture-poster{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;background:#f5f4f2}
.companion-role-picker button:focus-visible,.companion-action-tray button:focus-visible,.smart-panel-picker>button:focus-visible{outline:2px solid var(--ui-accent-ink);outline-offset:3px}
@media(max-width:1100px){.story-heading{gap:45px}.story-lead{font-size:15px}.companion-playground{gap:30px;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.companion-role-picker{gap:0}.companion-role-picker button{font-size:10px}.companion-glyph{zoom:.9}.smart-panel-result{gap:30px;grid-template-columns:.85fr 1.85fr}.smart-panel-copy h3{font-size:25px}}
@media(max-width:780px){.story-section{padding-top:66px}.story-heading{grid-template-columns:1fr;gap:18px;margin-bottom:36px}.story-heading h2{font-size:36px;line-height:1.4}.story-lead{font-size:14px;max-width:550px;margin:0}.story-kicker{font-size:10px;margin-bottom:13px}.companion-playground{grid-template-columns:1fr;gap:30px;min-height:0}.companion-stage{padding:20px 0 8px}.companion-stage::before{inset:-100px calc(0px - var(--page-gutter)) -50px}.companion-living-area{min-height:345px;padding-block:28px 8px}.companion-live{width:240px;height:208px;margin-top:43px}.companion-role-picker button{font-size:11px}.companion-glyph{zoom:1}.companion-conversation{width:min(100%,540px);margin:auto}.companion-native-chat{width:340px;max-width:100%}.companion-action-tray{max-width:390px}.story-benefits{gap:20px;padding-top:26px}.story-benefits p{font-size:12px}.story-benefits strong{font-size:13px}.panel-story{padding-top:82px}.smart-panel-picker{grid-template-columns:repeat(8,minmax(78px,1fr));overflow-x:auto;gap:6px;margin-inline:-4px;padding:4px 4px 11px;scrollbar-width:thin;scrollbar-color:var(--color-line) transparent;margin-block:29px 0}.smart-panel-picker>button{font-size:11px;min-height:102px}.smart-panel-glyph{width:68px;height:68px}.smart-panel-result{grid-template-columns:1fr;gap:32px;min-height:0}.smart-panel-copy h3{font-size:27px;margin:12px 0}.smart-panel-copy>p{font-size:13px;max-width:580px;margin-bottom:18px}.smart-panel-copy ol{display:flex;gap:18px;flex-wrap:wrap}.smart-panel-copy li{font-size:11px}.story-preview{border-radius:13px}}
@media(max-width:500px){.story-heading h2{font-size:32px}.story-lead{font-size:14px}.companion-caption.mais-tooltip{font-size:12px;padding-inline:16px}.companion-role-picker{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.companion-role-picker button{font-size:11px}.companion-live{width:226px;height:195px}.companion-action-tray button{font-size:10px}.companion-action-tray button>span:last-child{max-width:90px}.story-benefits{grid-template-columns:1fr;gap:17px}.story-benefits p{display:grid;grid-template-columns:112px 1fr;gap:14px;align-items:baseline;font-size:12px}.story-benefits strong{margin:0;font-size:12px}.smart-panel-copy h3{font-size:25px}.smart-panel-copy>p{font-size:12px}.smart-panel-copy ol{gap:14px}.smart-panel-copy li{font-size:10px}.story-preview{border-radius:10px}}
@media(prefers-reduced-motion:reduce){.companion-role-picker button,.companion-action-tray button,.smart-panel-picker>button,.smart-panel-glyph{transition:none}.smart-panel-picker>button:hover .smart-panel-glyph,.smart-panel-picker>button:focus-visible .smart-panel-glyph{transform:none}}
@media(max-width:780px){.companion-playground{grid-template-columns:minmax(0,1fr)}.companion-stage::before{inset:-45px calc(0px - var(--page-gutter)) 65px}.companion-living-area{min-height:clamp(420px,70vw,480px);padding-block:46px 38px}.companion-caption.mais-tooltip{top:20px}.companion-live{margin-top:34px}.companion-captures{gap:38px;padding-block:18px 26px}.companion-conversation{padding:8px 3px 0}.companion-capture{--capture-inset:34px}}
@media(prefers-reduced-motion:reduce){.companion-caption.mais-tooltip{transition:none}.companion-word{animation:none;display:none}}
