/* Autoplay walkthrough inside the existing phone. */
#tour .app-perspective.device-stage{grid-template-columns:minmax(0,1fr) 280px;column-gap:38px;row-gap:18px;width:min(1380px,100%,calc((100svh - 300px)*1.78 + 318px))}
.crm-device-phone.phone-demo{width:280px;--pd-font:12px}
.phone-demo .crm-phone-screen{padding:0 0 12px;background:#fff}
.phone-demo .crm-phone-status{padding:0 18px;height:32px;background:#f7f7f2;position:relative;z-index:10}
.phone-demo .crm-phone-home{z-index:12;bottom:5px}
.phone-demo .pd-content{position:relative;color:#252820;font-family:Arial,sans-serif;--pd-progress:0}
.phone-demo .pd-viewport{height:398px;position:relative;overflow:hidden;background:#fff}
.phone-demo .pd-view{position:absolute;inset:0;display:flex;flex-direction:column;animation:pd-view-in .45s both;background:#fff;overflow:hidden}
.phone-demo .pd-view[hidden]{display:none!important}
.phone-demo .pd-view p{font-size:var(--pd-font);line-height:1.55;max-width:none;margin:0;color:inherit}
.phone-demo .pd-avatar{font:500 20px/1 Arial,sans-serif;display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:4px;background:#157134;color:#fff;font-style:normal}
.phone-demo .pd-view h3,.phone-demo .pd-view h4{font-family:Arial,sans-serif;font-weight:600;letter-spacing:-.3px;margin:0}
.phone-demo .pd-mail-search{display:flex;align-items:center;gap:12px;background:#eef2f7;border-radius:20px;margin:10px 10px 0;padding:9px 12px;font-size:11px;color:#576273}
.phone-demo .pd-mail-search>i{font:normal 12px Arial;margin-left:auto;background:#9f744e;color:#fff;padding:5px;border-radius:50%}
.phone-demo .pd-inbox-label{display:flex;justify-content:space-between;padding:20px 14px 12px;font-size:9px;letter-spacing:1px;color:#6e7469}
.phone-demo .pd-inbox-label>span{color:#7e663b;letter-spacing:0;font-size:10px}
.phone-demo .pd-inbox-message{display:flex;position:relative;align-items:start;gap:9px;padding:16px 12px;background:#f2f5fb;animation:pd-mail-arrive .65s 1s both}
.phone-demo .pd-inbox-message>div{min-width:0;flex:1}
.phone-demo .pd-inbox-message strong{display:flex;justify-content:space-between;gap:5px;font-size:12px}
.phone-demo .pd-inbox-message time{font-size:9px;color:#636c7b;font-weight:400}
.phone-demo .pd-inbox-message b{display:block;font-size:11px;margin:5px 0}
.phone-demo .pd-inbox-message p{font-size:10px;line-height:1.5;color:#70776c}
.phone-demo .pd-unread-dot{position:absolute;right:12px;bottom:13px;width:5px;height:5px;background:#ab7e3d;border-radius:50%}
.phone-demo .pd-inbox-placeholder{position:relative;padding:22px 15px 22px 54px;border-bottom:1px solid #f3f4ef;opacity:.6}
.phone-demo .pd-inbox-placeholder>i{position:absolute;width:28px;height:28px;left:15px;top:17px;background:#e9ebe4;border-radius:50%}
.phone-demo .pd-inbox-placeholder>span{display:block;width:70%;height:5px;background:#e4e7dd;border-radius:4px}
.phone-demo .pd-inbox-placeholder>span+span{width:90%;margin-top:10px}
.phone-demo .pd-inbox-note{margin:auto 15px 25px;font:400 22px/1.15 CRMSerif,Georgia,serif;color:#8b6a38}
.phone-demo .pd-email-tools{display:flex;justify-content:space-between;padding:8px 12px;color:#62675c;font-size:17px;background:#f4f5f1;flex:none}
.phone-demo .pd-email>h3{font-size:14px;line-height:1.4;padding:9px 12px 0;flex:none}
.phone-demo .pd-email>h3 small{font:9px Arial;letter-spacing:0;background:#eceee7;padding:2px 4px;margin-left:4px;color:#646a60}
.phone-demo .pd-mail-from{display:flex;align-items:center;gap:8px;padding:10px 12px;font-size:11px;flex:none}
.phone-demo .pd-mail-from>div{flex:1}
.phone-demo .pd-mail-from strong{font-size:11px;color:#222}
.phone-demo .pd-mail-from small{display:block;font-size:9px;margin-top:4px;color:#777}
.phone-demo .pd-mail-from>span{font-size:19px;color:#888}
.phone-demo .pd-email-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;background:#f2ede4;padding:12px 8px;scrollbar-width:none}
.phone-demo .pd-email-scroll::-webkit-scrollbar{display:none}
.phone-demo .pd-email-card{border:1px solid #e9dfd0;border-radius:11px;background:#fffdf9;overflow:hidden}
.phone-demo .pd-email-card>header{display:flex;align-items:center;gap:8px;padding:15px 12px;border-bottom:1px solid #eee5d6}
.phone-demo .pd-email-card>header>span{font:400 20px/1 CRMSerif,Georgia,serif;color:#19180f}
.phone-demo .pd-email-card>header>small{font-size:7px;letter-spacing:.5px;color:#a07b3f}
.phone-demo .pd-email-body{padding:15px 12px}
.phone-demo .pd-email-body>p{font-size:var(--pd-font);line-height:1.65;margin:0 0 12px;color:#252820}
.phone-demo .pd-email-body dl{margin:12px 0 16px;border-block:1px solid #eee5d6;padding:5px 0}
.phone-demo .pd-email-body dl>div{display:grid;grid-template-columns:37% 1fr;gap:8px;padding:7px 0;font-size:calc(var(--pd-font) - 1px);line-height:1.5}
.phone-demo .pd-email-body dt{font-size:calc(var(--pd-font) - 2px);color:#847459}
.phone-demo .pd-email-body dd{margin:0;font-weight:600}
.phone-demo .pd-email-help{border-left:2px solid #b28c50;border-radius:6px;padding:12px;background:#f8f3e9;font-size:11px;line-height:1.55}
.phone-demo .pd-email-help p{font-size:11px;line-height:1.6;margin:5px 0 10px}
.phone-demo .pd-email-help>span{display:block;text-align:center;background:#29281e;color:#fff8e8;border-radius:4px;padding:8px 5px;font-size:10px;font-weight:600}
.phone-demo .pd-email-body>p.pd-email-test{font-size:9px;color:#90816c;line-height:1.6;margin:13px 0 0}
.phone-demo .pd-whatsapp{background:#ece5d7}
.phone-demo .pd-wa-header{display:flex;gap:8px;align-items:center;padding:10px 9px;background:#085c4f;color:#fff;flex:none}
.phone-demo .pd-wa-header>span{font-size:25px;line-height:1}
.phone-demo .pd-wa-header>.pd-avatar{background:#f8f4e9;color:#6b613f;border-radius:50%;width:29px;height:29px;font:23px CRMSerif,Georgia,serif}
.phone-demo .pd-wa-header>div{flex:1}
.phone-demo .pd-wa-header strong{font-size:12px;display:block}
.phone-demo .pd-wa-header small{font-size:9px;display:block;margin-top:3px;opacity:.8}
.phone-demo .pd-wa-header>svg{width:19px;height:19px}
.phone-demo .pd-chat{flex:1;min-height:0;padding:12px 11px;overflow-y:auto;scrollbar-width:none;background-image:radial-gradient(#c7bcaa60 .7px,transparent .7px);background-size:14px 14px;overscroll-behavior:contain}
.phone-demo .pd-chat-date{display:table;margin:0 auto 10px;padding:5px 8px;border-radius:6px;background:#fff9;font-size:9px;color:#697066;box-shadow:0 1px 2px #27312613}
.phone-demo .pd-chat-privacy{background:#fff1c5;padding:7px 10px;border-radius:6px;text-align:center;font-size:9px;line-height:1.5;color:#686044;margin-bottom:13px}
.phone-demo .pd-message{position:relative;background:#fff;border-radius:0 8px 8px 8px;padding:12px 11px 9px;margin-right:7px;box-shadow:0 2px 2px #253f2317;opacity:0;transform:translateY(18px) scale(.97);transition:opacity .5s,transform .5s}
.phone-demo .pd-message:before{content:'';position:absolute;left:-7px;top:0;border-top:9px solid #fff;border-left:8px solid transparent}
.phone-demo.pd-message-visible .pd-message{opacity:1;transform:none}
.phone-demo .pd-message-title{font-size:14px;display:block;line-height:1.35;color:#195b46;margin-bottom:7px}
.phone-demo .pd-message p{font-size:var(--pd-font);line-height:1.55}
.phone-demo .pd-message dl{margin:11px 0;font-size:11px;line-height:1.5}
.phone-demo .pd-message dl>div{margin:6px 0}
.phone-demo .pd-message dt{display:inline;color:#647468}
.phone-demo .pd-message dt:after{content:': '}
.phone-demo .pd-message dd{display:inline;margin:0;font-weight:600}
.phone-demo .pd-message-link{display:block;border-top:1px solid #e5eee4;padding:9px 0 3px;margin-top:11px;font-size:10px;color:#147a53;font-weight:600}
.phone-demo .pd-message>time{font-size:8px;display:block;text-align:right;color:#7c887d;margin-top:4px}
.phone-demo .pd-message>time>span{color:#547b6c;margin-left:3px}
.phone-demo .pd-wa-typing{display:flex;width:45px;gap:4px;background:#fff;border-radius:8px;padding:12px 10px;margin-bottom:9px}
.phone-demo .pd-wa-typing i{width:4px;height:4px;border-radius:50%;background:#839b88;animation:pd-dot .8s infinite alternate}
.phone-demo .pd-wa-typing i:nth-child(2){animation-delay:.15s}.phone-demo .pd-wa-typing i:nth-child(3){animation-delay:.3s}
.phone-demo.pd-message-visible .pd-wa-typing{display:none}
.phone-demo .pd-compose{display:flex;align-items:center;gap:10px;margin:7px 9px;padding:9px 12px;border-radius:24px;background:#fff;color:#788579;font-size:13px;flex:none}
.phone-demo .pd-compose span:nth-child(2){flex:1;font-size:11px}
.phone-demo .pd-app-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:#211f18;color:#ead8b7;flex:none}
.phone-demo .pd-app-header>span{font-size:11px;letter-spacing:2px;font-weight:600}
.phone-demo .pd-app-header>svg{width:18px;height:18px}
.phone-demo .pd-app-body{padding:18px 13px;background:#f7f5ed;flex:1;min-height:0;overflow:auto;scrollbar-width:none;overscroll-behavior:contain}
.phone-demo .pd-app-eyebrow{font-size:8px;color:#9b7e4f;letter-spacing:1.3px}
.phone-demo .pd-app-body h3{font:400 29px/1.2 CRMSerif,Georgia,serif;margin:7px 0 4px}
.phone-demo .pd-app-subtitle{font-size:10px!important;color:#7c796b!important;margin-bottom:16px!important}
.phone-demo .pd-app-alert{border:1px solid #d6bc8e;padding:13px;background:#fff;border-radius:14px;box-shadow:0 6px 20px #7563480d}
.phone-demo .pd-app-tag{font-size:7px;letter-spacing:1px;color:#8b6a38}
.phone-demo .pd-app-bell{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#f2e7d3;color:#9a7740;margin:14px 0 12px;animation:pd-bell 2s .4s both}
.phone-demo .pd-app-bell svg{width:19px;height:19px}
.phone-demo .pd-app-alert h4{font-size:18px;margin:0 0 9px}
.phone-demo .pd-app-alert p{font-size:11px;color:#777463;line-height:1.6;margin:0 0 9px}
.phone-demo .pd-app-alert>strong{font-size:13px;display:block}
.phone-demo .pd-app-client{font-size:9px;display:block;color:#807c6b;margin-top:6px}
.phone-demo .pd-app-due{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:13px 0;border-top:1px solid #eee8db;margin-top:15px;font-size:9px;color:#7a705c}
.phone-demo .pd-app-due>b{color:#8b6a38;font-size:10px}
.phone-demo .pd-app-link{display:flex;justify-content:space-between;padding:10px;background:#2a281f;border-radius:6px;color:#f9efdc;font-size:10px}
.phone-demo .pd-app-link i{font-style:normal}
.phone-demo .pd-toast{position:absolute;left:7px;right:7px;top:7px;z-index:20;display:flex;gap:7px;align-items:start;padding:10px;background:#fffffff5;border:1px solid #e1e3da;border-radius:14px;box-shadow:0 8px 28px #17201130;opacity:0;transform:translateY(-130%);transition:transform .55s cubic-bezier(.2,.8,.2,1),opacity .35s;pointer-events:none}
.phone-demo .pd-toast.is-visible{opacity:1;transform:none;animation:pd-toast-in .6s both}
.phone-demo .pd-toast-icon{width:25px;height:25px;flex:none;display:grid;place-items:center;border-radius:7px;background:#f5f6ef;color:#91713e}
.phone-demo .pd-toast-icon svg{width:20px;height:20px}
.phone-demo .pd-toast[data-channel="1"] .pd-toast-icon{background:#25d366;color:#fff}
.phone-demo .pd-toast>div{min-width:0;flex:1}
.phone-demo .pd-toast small{font-size:7px;letter-spacing:.8px;color:#818476;display:block;margin-bottom:3px}
.phone-demo .pd-toast strong{font-size:11px;display:block}
.phone-demo .pd-toast p{font-size:10px;line-height:1.5;color:#656a5d;margin:4px 0 0;max-width:none}
.phone-demo .pd-toast>time{font-size:8px;color:#929686;position:absolute;right:12px;top:10px}
.phone-demo .pd-controls{display:flex;align-items:center;gap:1px;padding:5px 7px 2px;background:#fff;border-top:1px solid #e8e9e0}
.phone-demo .pd-controls>button{min-height:32px;flex:1;padding:4px 2px;border:0;border-radius:6px;background:none;font-size:9px;font-weight:500;color:#777b6d;line-height:1.2}
.phone-demo .pd-controls>button[aria-pressed="true"]:not(.pd-play){background:#eee6d6;color:#6e5126;font-weight:700}
.phone-demo .pd-controls>button.pd-play{flex:0 0 29px;color:#775b33;font-size:14px;background:#f4f3ed}
.phone-demo .pd-controls>button:focus-visible{outline:2px solid #91713e;outline-offset:-2px}
.phone-demo .pd-progress{height:2px;background:#e8e8df;margin:0 10px;overflow:hidden}
.phone-demo .pd-progress>i{display:block;height:100%;background:#a48147;transform:scaleX(var(--pd-progress));transform-origin:left}
.phone-demo .pd-example{font:7px/1.4 Arial,sans-serif;letter-spacing:.7px;color:#888977;text-align:center;padding:6px 2px 2px;margin:0;max-width:none}
.phone-demo.pd-paused *,.phone-demo.pd-paused *:before,.phone-demo.pd-paused *:after{animation-play-state:paused!important}
@keyframes pd-view-in{from{opacity:.3;transform:translateX(12px)}to{opacity:1;transform:none}}
@keyframes pd-toast-in{from{opacity:0;transform:translateY(-130%)}to{opacity:1;transform:none}}
@keyframes pd-mail-arrive{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:none}}
@keyframes pd-dot{to{opacity:.3;transform:translateY(-3px)}}
@keyframes pd-bell{15%,45%{transform:rotate(12deg)}30%,60%{transform:rotate(-12deg)}75%{transform:none}}
@media(max-width:1050px),(max-height:760px){
 #tour .app-perspective.device-stage{display:block;width:min(1100px,96%,calc((100svh - 270px)*1.7143))}
 .crm-mobile-notifications .crm-device-phone.phone-demo{width:310px;--pd-font:13px}
 .crm-mobile-notifications .phone-demo .pd-viewport{height:470px}
 .crm-mobile-notifications .phone-demo .pd-example{font-size:8px;line-height:1.4;color:#888977;margin:0;max-width:none}
 .crm-mobile-notifications .phone-demo .pd-controls>button{font-size:10px;min-height:36px}
 .crm-mobile-notifications .phone-demo .pd-email-help p{font-size:12px}
 .crm-mobile-notifications .phone-demo .pd-message dl{font-size:12px}
}
@media(max-width:750px){#tour .app-perspective.device-stage{width:100%}.crm-mobile-notifications .crm-device-phone.phone-demo{width:min(310px,100%)}}
@media(prefers-reduced-motion:reduce){.phone-demo *{animation:none!important;transition:none!important}}

.phone-demo.pd-paused .pd-view,.phone-demo.pd-paused .pd-inbox-message,.phone-demo.pd-paused .pd-toast.is-visible,.phone-demo.pd-paused .pd-app-bell{animation:none!important}

/* Scroll-driven phone story: no timed playback or nested scrolling. */
.phone-demo.pd-scroll-driven .pd-view,
.phone-demo.pd-scroll-driven .pd-inbox-message,
.phone-demo.pd-scroll-driven .pd-toast,
.phone-demo.pd-scroll-driven .pd-app-bell,
.phone-demo.pd-scroll-driven .pd-wa-typing i{animation:none!important}
.phone-demo.pd-scroll-driven .pd-email-scroll,
.phone-demo.pd-scroll-driven .pd-chat,
.phone-demo.pd-scroll-driven .pd-app-body{overflow:hidden;overscroll-behavior:auto;touch-action:pan-y}
.phone-demo .pd-scroll-hint{display:flex;justify-content:center;gap:7px;align-items:center;font:7px/1.4 Arial,sans-serif;letter-spacing:1px;color:#8b744d;padding:3px 4px 4px;background:#fff}
.phone-demo .pd-scroll-hint span{font-size:10px}
.phone-demo.pd-scroll-driven .pd-controls{padding-bottom:0}
.phone-story-pin{min-width:0}
@media(max-width:1050px),(max-height:760px){
 .crm-mobile-notifications.phone-scroll-story{display:block;height:400svh;padding:0;position:relative}
 .phone-story-pin{position:sticky;top:0;height:100svh;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:35px;padding:20px 7%;background:#fafaf7}
 .phone-story-pin>.crm-device-phone.phone-demo{margin:0;justify-self:center}
 .phone-story-pin>.crm-device-phone.phone-demo .pd-viewport{height:clamp(230px,calc(100svh - 160px),470px)}
}
@media(max-width:750px){
 .phone-story-pin{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:12px 7%}
 .phone-story-pin>div{width:100%;max-width:400px}
 .phone-story-pin>div>.eyebrow{font-size:8px}
 .phone-scroll-story .phone-story-pin h2{font-size:32px;line-height:1.04;margin:10px 0;letter-spacing:-.8px}
 .phone-scroll-story .phone-story-pin>div>p{font-size:13px;line-height:1.55;margin:0;max-width:400px}
 .phone-story-pin>.crm-device-phone.phone-demo{flex:none;align-self:center}
 .phone-story-pin>.crm-device-phone.phone-demo .pd-viewport{height:clamp(230px,calc(100svh - 335px),470px)}
}
@media(max-width:750px) and (max-height:740px){
 .phone-scroll-story .phone-story-pin>div>p{display:none}
 .phone-scroll-story .phone-story-pin h2{font-size:28px;margin:6px 0}
 .phone-story-pin{gap:12px;padding-top:10px;padding-bottom:10px}
 .phone-story-pin>.crm-device-phone.phone-demo .pd-viewport{height:clamp(180px,calc(100svh - 270px),470px)}
}
@media(max-width:750px) and (max-height:500px){
 .phone-story-pin{display:grid;grid-template-columns:1fr 220px;gap:20px;padding:5px 5%}
 .phone-story-pin>.crm-device-phone.phone-demo{width:220px;--pd-font:11px}
 .phone-story-pin>.crm-device-phone.phone-demo .pd-viewport{height:calc(100svh - 145px)}
}
