@font-face{font-family:Inter; font-style:normal; font-weight:400 600; font-display:swap; src:url(assets/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Inter; font-style:normal; font-weight:400 600; font-display:swap; src:url(assets/fonts/inter-latin.woff2) format('woff2'); unicode-range:U+0-FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{color-scheme:dark;--ink:#eff1ef;--muted:#a6afb8;--line:#ffffff1c;--green:#91dbad;--brand-gradient:linear-gradient(105deg,#f6fbfff0 0%,#a8d7f7e8 50%,#ffdda8ed 100%);--ease:cubic-bezier(.16,1,.3,1)}
*{box-sizing:border-box}
body{margin:0;background:#000;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;-webkit-font-smoothing:antialiased}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.demo-page{position:relative;z-index:1;min-height:100svh;width:100%;max-width:1600px;margin:auto;padding:60px;display:flex;flex-direction:column;justify-content:center}
.demo-frame{--demo-panel-height:220px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding:0;border:0;background:transparent}
.demo-card{position:relative;flex:1 1 0%;min-width:0;display:flex;flex-direction:column;padding:36px 32px 32px;background:transparent;border:0;border-radius:32px;overflow:hidden}
.product-heading{display:flex;align-items:center;gap:10px;margin-bottom:18px;min-height:24px}
.product-label{width:fit-content;color:#fff;font-size:11px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase}
.product-icon{display:block;flex:0 0 24px;width:24px;height:24px;background:#fff;-webkit-mask:var(--service-icon) center/contain no-repeat;mask:var(--service-icon) center/contain no-repeat;mask-mode:alpha}
.product-icon--voice{--service-icon:url(assets/icons/service-voice.svg)}
.product-icon--email{--service-icon:url(assets/icons/service-email.svg)}
.product-icon--chat{--service-icon:url(assets/icons/service-chat.svg)}
.product-icon--admin{--service-icon:url(assets/icons/service-admin.svg)}
h2{font-size:clamp(22px,2vw,28px);line-height:1.2;letter-spacing:-.025em;font-weight:600;margin:0 0 26px}
@supports (background-clip:text) or (-webkit-background-clip:text){
  .demo-card > h2{background:var(--brand-gradient);-webkit-background-clip:text;background-clip:text;color:transparent}
}
.nowrap{white-space:nowrap}
.demo-panel{margin-top:auto;min-width:0;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#030609c9;overflow:hidden}
/* One shared frame size; each demo lays out its own content inside it. */
.demo-frame > .demo-card > .demo-panel{height:var(--demo-panel-height);flex:0 0 var(--demo-panel-height)}
.voice-panel{height:202px}
.demo-frame .voice-panel{display:flex;flex-direction:column}
.demo-frame .voice-panel .panel-header{flex:none}
.demo-frame #voice-conversation{flex:1;min-height:0}
.demo-frame #voice-wave{flex-shrink:0}
.panel-header{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px;font-weight:500;white-space:nowrap;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:10px;min-width:0;line-height:12px}
.call-dot{width:5px;height:5px;flex:0 0 5px;background:#22c55e;border-radius:50%}
#call-type{flex-shrink:0}
#call-number{overflow:hidden;text-overflow:ellipsis;min-width:0;margin-left:4px}
#call-timer{margin-left:auto;flex-shrink:0;font-variant-numeric:tabular-nums}
#voice-conversation{height:88px;overflow:hidden;position:relative;margin-bottom:11px;display:flex;flex-direction:column;scroll-behavior:auto;overflow-anchor:none}
.voice-message{font-size:10.5px;line-height:1.45;margin-bottom:5px;flex-shrink:0}
.voice-role{display:inline-block;vertical-align:baseline;border-radius:8px;font-size:9px;font-weight:500;line-height:13px;padding:0 5px;margin-right:5px;background:#d6e4ed;color:#10161b;text-transform:uppercase}
.voice-role[data-speaker=caller]{color:#c2cbd3;background:#ffffff10}
#voice-wave{display:block;width:calc(100% + 32px);height:40px;margin-left:-16px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}
.email-panel{height:248px}
.mail-header{justify-content:space-between}
.inbox-label{font-size:9px;letter-spacing:1.1px}
#mail-count{font-weight:600;color:#e7edf2;font-variant-numeric:tabular-nums}
#mail-list{position:relative;height:155px;overflow:hidden}
.mail-row{position:absolute;inset:0 0 auto;height:38px;display:flex;align-items:center;gap:7px;padding-bottom:7px;border-bottom:1px solid var(--line);white-space:nowrap}
.mail-name{font-size:11px;font-weight:600;flex-shrink:0}
.mail-subject{font-size:11px;color:var(--muted);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.mail-approval-note{margin:9px 0 0;font-size:9px;line-height:1.4;color:#bac4cc}
.mail-badge{height:15px;display:inline-flex;align-items:center;gap:4px;flex-shrink:0;border-radius:999px;padding:0 6px;font-size:9px;font-weight:600;letter-spacing:.03em}
.mail-badge::before,#workflow-status::before{content:'';width:4px;height:4px;background:currentColor;border-radius:50%;flex-shrink:0}
.mail-badge.replied{background:#70d29b18;color:#91dbad}
.mail-badge.flagged{background:#ffdda816;color:#f0c58f}
.workflow-panel{height:202px;display:flex;flex-direction:column}
.workflow-header{display:flex;align-items:center;gap:7px;padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid var(--line);font-size:10px;font-weight:600;min-width:0;line-height:15px}
#workflow-name{font-size:10px;font-weight:500;color:#bdc8d1;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#workflow-count{color:#94a0ac;font-weight:400;font-variant-numeric:tabular-nums;flex-shrink:0}
#workflow-status{display:inline-flex;align-items:center;gap:4px;flex-shrink:0;padding:0 7px;font-size:9px;font-weight:600;letter-spacing:.03em;border-radius:999px;background:#ffffff0d;color:#bac4cc;transition:background-color .3s,color .3s}
#workflow-status[data-state=complete]{background:#70d29b18;color:#91dbad}
#workflow-rows{height:140px;overflow:hidden}
.workflow-row{height:25px;display:flex;align-items:center;gap:7px;margin-bottom:3px;padding:0 7px;border-radius:7px;background:#ffffff06;min-width:0}
.workflow-icon{width:13px;height:13px;display:grid;place-items:center;flex-shrink:0}
.workflow-check{display:grid;place-items:center;width:13px;height:13px;border-radius:50%;background:#8ad9a8;color:#082016;font-size:10px;font-weight:600;line-height:1}
.workflow-spinner{width:11px;height:11px;border:1.5px solid #ffffff26;border-top-color:#c8dfed;border-radius:50%;animation:spin .8s linear infinite}
.workflow-label{flex:1;min-width:0;font-size:10.5px;color:#b8c2cb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workflow-value{font:600 9.5px 'SF Mono','Fira Code','Courier New',monospace;flex-shrink:0;color:#e0e7ed}
.animations-paused .workflow-spinner,[data-animation-paused=true] .workflow-spinner,.animations-paused .chat-typing span,[data-animation-paused=true] .chat-typing span{animation-play-state:paused}
.noscript-note{font-size:14px;text-align:center;color:var(--muted)}
@keyframes spin{to{transform:rotate(360deg)}}
.chat-panel{height:240px;display:flex;flex-direction:column}
.chat-header{flex-shrink:0;gap:7px}
.chat-symbol{width:14px;height:14px;flex-shrink:0;color:#b9d3e2}
#chat-channel{overflow:hidden;text-overflow:ellipsis}
.chat-online{margin-left:auto;display:flex;align-items:center;gap:4px;font-size:9px;flex-shrink:0;color:#a8bbb0}
.chat-online i{height:4px;width:4px;border-radius:50%;background:#91dbad}
#chat-conversation{height:144px;flex:1;min-height:0;overflow:hidden;scroll-behavior:auto;overflow-anchor:none}
#chat-messages{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:2px 0 4px}
.chat-bubble{max-width:92%;flex-shrink:0;border-radius:10px 10px 10px 3px;padding:7px 9px;background:#ffffff0c;color:#e0e6eb;font-size:10.5px;line-height:1.45;overflow-wrap:anywhere}
.chat-bubble.is-customer{align-self:flex-end;border-radius:10px 10px 3px 10px;background:#a8d7f71c;color:#d8e9f3}
.chat-bubble.is-assistant{align-self:flex-start}
.chat-role{display:inline-block;vertical-align:baseline;margin-right:5px;padding:0 5px;border-radius:5px;background:#ffffff15;color:#d7dfe6;font-size:9px;font-weight:600;line-height:14px;white-space:nowrap}
.is-assistant .chat-role{background:var(--brand-gradient);color:#111820}
.chat-typing .chat-role{margin-right:4px}
.chat-typing{display:inline-flex;align-items:center;gap:3px;min-height:27px;padding:9px 11px;background:#ffffff0c;border-radius:10px 10px 10px 3px;flex-shrink:0}
.chat-typing span{width:3px;height:3px;border-radius:50%;background:#b9c8d2;animation:chat-typing 1.2s ease-in-out infinite}
.chat-typing span:nth-of-type(2){animation-delay:.15s}
.chat-typing span:nth-of-type(3){animation-delay:.3s}
#chat-context{border-top:1px solid var(--line);padding-top:8px;margin-top:8px;min-height:21px;flex-shrink:0;display:flex;align-items:center;gap:5px;font-size:9px;line-height:12px;color:#a6afb8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#chat-context::before{content:'';flex-shrink:0;display:block;width:4px;height:4px;border-radius:50%;background:#b7ccda}
#chat-context[data-state=done]{color:#91dbad}
#chat-context[data-state=done]::before{background:currentColor}
@keyframes chat-typing{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}
@media(max-width:1439px){
  .demo-page{max-width:1120px;padding:40px}
  .demo-frame{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1080px){
  .demo-page{padding:24px}
  .demo-frame{gap:16px}
  .demo-card{flex:auto}
  h2{font-size:22px}
}
/* Longer approved copy must not stretch every desktop card in the grid. */
@media(min-width:721px){
  .demo-frame > .demo-card > h2{font-size:22px;margin-bottom:20px}
}
@media(max-width:360px){
  .demo-page{padding:16px}
  .demo-card{padding:28px 20px 24px}
  .demo-panel{padding-inline:12px}
  #voice-wave{width:calc(100% + 24px);margin-left:-12px}
  .mail-name{max-width:80px;overflow:hidden;text-overflow:ellipsis}
  .mail-row{gap:5px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* The native workflow content sits above copies of the header's exact
   GlassSurface. Inner demo panels deliberately have no second backdrop filter. */
#study-stars{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.demo-card > [data-demo-glass]{position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:inherit}
.demo-card > :not([data-demo-glass]){position:relative;z-index:1}
.demo-glass-surface > .glass-surface__content{padding:0}
[data-demo-glass]:empty{border:1px solid #ffffff2b;background:#ffffff05;box-shadow:inset 0 1px 0 #ffffff38,inset 0 0 14px #ffffff0c;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
/* Light stays on the decorative glass layer, below every label and demo. */
@media(hover:hover) and (pointer:fine){
  .demo-card > [data-demo-glass]::before{content:'';position:absolute;z-index:1;pointer-events:none;opacity:0}
  .demo-card > [data-demo-glass]::before{
    inset:0;border-radius:inherit;padding:1px;
    background:linear-gradient(125deg,#f6fbff99 0%,#a8d7f74d 26%,transparent 48%,#ffdda84d 77%,#f6fbff66 100%);
    -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    -webkit-mask-composite:xor;mask-composite:exclude;
    transition:opacity .32s ease-out;
  }
  .demo-card:hover > [data-demo-glass]::before{opacity:1}
}
