/* Taylor AI page: the animated chat demos, the mascot and the safety grid. Loaded after modules.css. */
.m-taylor{--pf1:#1e2756;--pf2:#121942;--pf3:#182047;--pfl:#0a0f2c;--pfs:rgba(10,15,44,.6)}

/* Chat window */
.tchat{display:flex;flex-direction:column;background:#f6f7fc;font-size:.93rem;line-height:1.45;text-align:left;color:var(--ink)}
.tc-head{display:flex;align-items:center;gap:11px;padding:12px 16px;background:#fff;border-bottom:1px solid var(--line)}
.tc-head .av{width:34px;height:34px;border-radius:50%;background:linear-gradient(160deg,#ffd9cb,var(--coral));overflow:hidden;display:block;flex:none}
.tc-head .av img{width:100%;height:100%;object-fit:cover;object-position:50% 20%;display:block}
.tc-head b{display:block;font-size:.95rem;font-weight:600;line-height:1.2}
.tc-head small{display:block;color:var(--ink-3);font-size:.78rem;line-height:1.2}
.tc-body{height:var(--h,420px);padding:16px;display:flex;flex-direction:column;justify-content:flex-end;gap:10px;overflow:hidden;transition:opacity .4s}
.tc-body.out{opacity:0}
.tc-m{max-width:86%;opacity:0;transform:translateY(8px);transition:opacity .35s var(--ease),transform .35s var(--ease)}
.tc-m.in{opacity:1;transform:none}
.tc-m p{margin:0}
.tc-m.u{align-self:flex-end;background:var(--navy);color:#fff;padding:10px 14px;border-radius:16px 16px 4px 16px;min-height:2.4em}
.tc-m.b{align-self:flex-start;background:#fff;padding:10px 14px;border-radius:16px 16px 16px 4px;box-shadow:inset 0 0 0 1px var(--line)}
.tc-m.b b{font-weight:600}
.dots{display:inline-flex;gap:4px;padding:5px 0}
.dots i{width:7px;height:7px;border-radius:50%;background:var(--ink-3);opacity:.35;animation:tdot 1s infinite}
.dots i:nth-child(2){animation-delay:.15s}.dots i:nth-child(3){animation-delay:.3s}
@keyframes tdot{0%,80%,100%{opacity:.3;transform:none}40%{opacity:1;transform:translateY(-3px)}}
.tc-m.chips{align-self:flex-start;display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
.tc-m.chips span{padding:7px 13px;border-radius:999px;background:#fff;color:var(--coral-deep);font-weight:600;font-size:.86rem;box-shadow:inset 0 0 0 1px rgba(184,67,31,.3)}
.tc-m.nudge{align-self:stretch;max-width:100%;display:flex;gap:11px;align-items:center;background:#fff;padding:11px 14px;border-radius:14px;box-shadow:inset 0 0 0 1px var(--line)}
.tc-m.nudge i{flex:none;width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:rgba(238,122,92,.16);color:var(--coral-deep)}
.tc-m.nudge i .i{width:15px;height:15px}
.tc-m.nudge.info i{background:rgba(111,152,255,.18);color:var(--d-ticketing)}
.tc-m.card{align-self:stretch;max-width:100%;background:#fff;border-radius:16px;box-shadow:inset 0 0 0 1px var(--line),0 12px 28px -18px rgba(20,24,58,.4);padding:14px 16px 14px;transition:opacity .35s var(--ease),transform .35s var(--ease),box-shadow .3s}
.tc-m.card h4{font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-3);font-weight:600;margin:0 0 10px}
.tc-m.card .st{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}
.tc-m.card .st div{background:var(--surface-2,#f1f3fb);border-radius:11px;padding:8px 10px}
.tc-m.card .st b{display:block;font-size:1.15rem;letter-spacing:-.02em;font-weight:600;line-height:1.2}
.tc-m.card .st small{color:var(--ink-3);font-size:.76rem}
.tc-m.card dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:5px 14px}
.tc-m.card dt{color:var(--ink-3);font-size:.86rem}
.tc-m.card dd{margin:0;font-weight:500;font-size:.9rem}
.tc-m.card .btns{display:flex;gap:8px;margin-top:13px}
.tc-m.card .btns span{padding:8px 15px;border-radius:10px;font-weight:600;font-size:.87rem;transition:transform .2s,background .2s}
.tc-m.card .pri{background:var(--coral);color:var(--navy)}
.tc-m.card .pri.press{transform:scale(.94);background:var(--coral-hi)}
.tc-m.card .sec{background:var(--surface-2,#f1f3fb);color:var(--ink-2)}
.tc-m.card .ok{display:inline-flex;align-items:center;gap:7px;padding:0;color:#1f7a45;background:none}
.tc-m.card .ok .i{width:17px;height:17px}
.tc-m.card.done{box-shadow:inset 0 0 0 1px rgba(31,122,69,.35),0 12px 28px -18px rgba(20,24,58,.3)}
.tc-in{display:flex;align-items:center;justify-content:space-between;margin:0 14px 14px;padding:9px 9px 9px 16px;border-radius:14px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);color:var(--ink-3);font-size:.9rem}
.tc-in i{width:30px;height:30px;border-radius:10px;background:var(--coral);color:var(--navy);display:grid;place-items:center}
.tc-in i .i{width:15px;height:15px}

/* Mascot */
.tmascot{position:absolute;z-index:3;pointer-events:none}
.tmascot img{display:block;width:100%;height:auto;-webkit-mask-image:linear-gradient(to bottom,#000 66%,transparent 99%);mask-image:linear-gradient(to bottom,#000 66%,transparent 99%)}
.chap-vis .tmascot{z-index:4}
/* Opaque down to the bottom edge of the chat window (--fs), then fade out over the page below it */
.chap-vis .tmascot img{-webkit-mask-image:linear-gradient(to bottom,#000 var(--fs,60%),transparent calc(var(--fs,60%) + 34%));mask-image:linear-gradient(to bottom,#000 var(--fs,60%),transparent calc(var(--fs,60%) + 34%))}
@media(max-width:900px){.chap-vis .tmascot{display:none}}

/* Prompt list beside the intro */
.tprompts{background:#fff;border-radius:26px;padding:30px 30px 26px;box-shadow:var(--shadow),inset 0 0 0 1px var(--line)}
.tprompts h3{font-size:1.4rem;letter-spacing:-.03em;font-weight:600;margin:0}
.tprompts .sub{color:var(--ink-3);margin:2px 0 18px;font-size:.92rem}
.tprompts ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.tprompts li{display:flex;align-items:center;gap:11px;padding:11px 15px;border-radius:14px;background:var(--surface-2,#f1f3fb);color:var(--ink);font-weight:500;font-size:.95rem}
.tprompts li .i{flex:none;width:17px;height:17px;color:var(--coral-deep)}

/* Safety grid (dark panel) */
#safe .floor-panel>.wrap,#safe .wrap,#till .wrap{display:block}
#together .wrap{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:48px;align-items:center}
#together .tsafe{grid-template-columns:repeat(2,1fr);margin-top:0}
@media(max-width:1000px){#together .wrap{grid-template-columns:1fr;gap:32px}}
.tsafe-h{max-width:40rem}
.tsafe{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:44px}
.tsafe>div{padding:24px 22px;border-radius:22px;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(238,241,255,.14)}
.tsafe i{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:rgba(238,122,92,.2);color:var(--coral);margin-bottom:16px}
.tsafe i .i{width:20px;height:20px}
.tsafe h3{color:#fff;font-size:1.08rem;letter-spacing:-.02em;font-weight:600;margin:0 0 8px}
.tsafe p{color:var(--navy-ink-2);font-size:.94rem;margin:0;line-height:1.5}
.tsafe-note{display:flex;align-items:center;gap:12px;margin:30px 0 0;color:var(--navy-ink);font-size:1rem}
.tsafe-note .i{flex:none;width:20px;height:20px;color:var(--coral)}
@media(max-width:1000px){.tsafe{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.tsafe{grid-template-columns:1fr}}

/* Final call to action */
.cta-panel .img.tfinal{margin-left:0;display:flex;align-items:flex-end;justify-content:center;overflow:hidden;padding:36px 20px 0;background:radial-gradient(55% 55% at 50% 70%,rgba(238,122,92,.5),rgba(238,122,92,0) 72%)}
.cta-panel .img.tfinal img{position:static;inset:auto;width:min(100%,420px);height:auto;max-height:none;object-fit:contain;-webkit-mask-image:none;mask-image:none;filter:drop-shadow(0 18px 24px rgba(10,15,44,.35))}
@media(max-width:1080px){.cta-panel .img.tfinal{height:auto;min-height:260px}.cta-panel .img.tfinal img{width:min(70%,260px);-webkit-mask-image:linear-gradient(to bottom,#000 78%,transparent 100%);mask-image:linear-gradient(to bottom,#000 78%,transparent 100%)}}

@media(prefers-reduced-motion:reduce){.tc-m,.tc-body{transition:none}.dots i{animation:none;opacity:.6}}

.hero .fit .chip{z-index:6}

/* Phones: messages wrap onto more lines, so give the chat more height and keep the start of the conversation in view */
@media(max-width:640px){
  .tchat{font-size:.88rem}
  .tc-body{height:calc(var(--h,420px) + 150px);padding:14px 12px}
  .tc-m{max-width:92%}
  .tprompts{padding:24px 20px 20px}
  /* the hero chat sits in a scaled canvas, so it keeps its desktop sizing */
  .fit .tchat{font-size:.93rem}
  .fit .tc-body{height:var(--h,420px);padding:16px}
  .fit .tc-m{max-width:86%}
}

/* Stock page: the delivery-to-gross-profit flow card */
.tflow{background:#fff;border-radius:26px;padding:30px 30px 26px;box-shadow:var(--shadow),inset 0 0 0 1px var(--line)}
.tflow h3{font-size:1.4rem;letter-spacing:-.03em;font-weight:600;margin:0}
.tflow .sub{color:var(--ink-3);margin:2px 0 20px;font-size:.92rem}
.tflow ol{list-style:none;margin:0;padding:0;display:grid;gap:0;position:relative}
.tflow li{display:flex;gap:16px;align-items:flex-start;padding:0 0 22px;position:relative}
.tflow li:last-child{padding-bottom:0}
.tflow li::before{content:"";position:absolute;left:17px;top:38px;bottom:2px;width:2px;background:var(--line)}
.tflow li:last-child::before{display:none}
.tflow li>i{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--stock);color:var(--navy);font-style:normal;font-weight:700;font-size:.95rem}
.tflow b{display:block;font-weight:600;font-size:1.02rem;letter-spacing:-.01em;line-height:1.3;padding-top:5px}
.tflow li span{display:block;color:var(--ink-2);font-size:.93rem;line-height:1.45;margin-top:2px}
@media(max-width:560px){#together .tsafe{grid-template-columns:1fr}}
