/* One compact presentation panel: context, takeaway, supporting facts, action. */
.tour-card{width:320px;padding:20px;display:flex;flex-direction:column;position:relative;z-index:3;color:#302a35;background:#fffdfb;border:1px solid #e6ddd3;border-radius:20px;box-shadow:0 12px 40px #3c2b1510;text-align:left;max-height:calc(100svh - 130px);overflow:hidden}
.tour-card[hidden],#tour-highlight[hidden],#tour-connector[hidden],#tour-card [hidden]{display:none!important}
.tour-top{display:flex;align-items:center;gap:8px;flex:0 0 auto;margin-bottom:20px}.tour-label{font-size:8px;letter-spacing:1.3px;color:#887b70;flex:1;font-weight:500}.tour-card button{font:inherit;cursor:pointer}.tour-top button{border:0;background:none;color:#74685e;font-size:10px;padding:4px;min-height:28px}.tour-top #tour-collapse{font-size:20px;min-width:28px;line-height:1}.tour-top #tour-end{white-space:nowrap}
#tour-content{display:flex;flex-direction:column;min-height:0;flex:1}#tour-message{min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1}
#tour-eyebrow{font-size:9px;line-height:1.5;letter-spacing:.8px;font-weight:500;color:#994600;text-transform:uppercase;margin:0 0 8px}
#tour-title{font-size:25px;line-height:1.25;font-weight:500;letter-spacing:-.7px;margin:0;color:#302a35;text-wrap:balance}
#tour-figures{margin:16px 0 0;padding:0;display:grid;gap:9px;font-size:11px;line-height:1.5}#tour-figures>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:baseline}#tour-figures dt{color:#796f67}#tour-figures dd{margin:0;text-align:right;color:#3d313e;font-size:13px;font-weight:500;max-width:180px;overflow-wrap:anywhere}
#tour-body{font-size:12px;line-height:1.6;color:#766b62;margin:13px 0 0}.tour-hint{font-size:11px;line-height:1.6;color:#995011;margin:16px 0 0;padding-top:12px;border-top:1px solid #efe6dc;flex:0 0 auto}
.tour-actions{display:flex;gap:8px;align-items:center;margin-top:14px;flex:0 0 auto}.tour-actions button{border:1px solid #ded4ca;border-radius:99px;padding:9px 14px;font-size:11px;min-height:38px;background:transparent;color:#675b51;white-space:nowrap}.tour-actions #tour-next{background:#f47400;border-color:#f47400;color:#24170b;font-weight:500;margin-left:auto}.tour-actions #tour-skip{border-color:transparent;padding-left:5px;padding-right:5px;color:#7c6e62;font-size:10px}.tour-card button:focus-visible,.demo-controls button:focus-visible{outline:2px solid #8327c6;outline-offset:2px}.tour-card button:disabled{opacity:.4;cursor:default}
#tour-highlight{display:none!important}#tour-connector{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:2}
@media(min-width:900px){.tour-open .device-stage{gap:50px}.tour-card{align-self:center}.tour-open .preview-caption,.tour-open .preview-help{transform:translateX(-185px)}}
@media(min-width:601px) and (max-width:899px){.tour-open{justify-content:flex-start;overflow-y:auto}.tour-open .device-stage{flex-direction:column;gap:16px;width:100%}.tour-card{width:320px;max-height:380px;padding:16px}.tour-top{margin-bottom:12px}#tour-title{font-size:23px}.tour-open .preview-help>span{display:none}#tour-connector{display:none}}
.tour-collapsed .tour-top{margin-bottom:0}
/* The user's physical phone supplies the frame. Keep app content at its natural size. */
@media(max-width:600px),(max-width:1200px) and (max-height:500px){
 html,body{height:100%;min-height:0}body,body.tour-open{height:var(--app-height,100dvh);padding:0;overflow:hidden;justify-content:flex-start;background:#fff;gap:0}.preview-caption,.preview-help{display:none}
 .device-stage,.tour-open .device-stage{flex:1 1 auto;min-height:0;width:100%;display:flex;flex-direction:column;align-items:stretch;gap:0;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}.device-wrap{flex:1 1 auto;min-height:0;width:100%!important;height:auto!important}.phone{width:100%;height:100%;padding:0;transform:none;box-shadow:none;border-radius:0;background:#fff}.phone:after,.side-button,.phone-status,.phone-home{display:none}.phone-screen{height:100%;border-radius:0}.phone iframe{width:100%;min-height:0;flex:1}
 .tour-card{align-self:stretch;flex:0 0 auto;width:100%;max-height:min(44dvh,304px);padding:10px 15px max(9px,env(safe-area-inset-bottom));border-radius:16px 16px 0 0;border:1px solid #eaded2;border-bottom:0;box-shadow:0 -5px 20px #3c2b150d;background:#fffcf8}
 .tour-top{position:absolute;top:5px;right:10px;gap:3px;margin:0}.tour-label{display:none}.tour-top button{min-height:32px;font-size:10px}.tour-top #tour-collapse{min-width:32px;font-size:20px}.tour-top #tour-end{padding-right:3px}
 #tour-eyebrow{font-size:8px;letter-spacing:.5px;min-height:28px;margin-bottom:3px;padding-right:120px;display:flex;align-items:center;line-height:1.4}#tour-title{font-size:21px;line-height:1.25;letter-spacing:-.5px;text-wrap:initial}#tour-figures{margin-top:10px;gap:5px;font-size:11px}#tour-figures dd{font-size:12px;max-width:180px}#tour-body{font-size:11px;line-height:1.5;margin-top:9px}.tour-hint{font-size:10px;line-height:1.5;margin-top:9px;padding-top:7px}.tour-actions{gap:8px;margin-top:8px}.tour-actions button{min-height:40px;min-width:60px;padding:7px 13px;font-size:12px}.tour-actions #tour-skip{font-size:11px;min-width:68px}
 #tour-connector{display:none}.tour-collapsed .tour-card{min-height:40px;padding-top:0;padding-bottom:0}.tour-collapsed .tour-top{position:static;justify-content:flex-end}.tour-collapsed .tour-label{display:block;margin-right:auto;font-size:8px}
}
@media(max-width:1200px) and (max-height:500px) and (orientation:landscape){.device-stage,.tour-open .device-stage{flex-direction:row}.tour-card{width:300px;max-width:39vw;max-height:100%;border-radius:0;border-top:0;border-left:1px solid #eaded2;box-shadow:-4px 0 15px #3c2b1508}.tour-collapsed .tour-card{width:116px;max-width:22vw}.tour-collapsed .tour-label{display:none}.tour-collapsed .tour-top{flex-wrap:wrap}#tour-eyebrow{padding-right:110px}#tour-title{font-size:20px}.tour-actions{gap:5px}.tour-actions button{padding:7px 10px}}
.demo-controls{position:fixed;top:16px;right:18px;z-index:5;display:flex;align-items:center;gap:12px}.demo-controls>span{font-size:10px;color:#8b7b6d}.demo-controls button{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#fffaf4;color:#8f4509;border:1px solid #e5c6a9;border-radius:99px;font:500 11px Poppins,Arial,sans-serif;padding:8px 13px;min-height:36px;cursor:pointer}.demo-controls button:disabled{opacity:.5;cursor:default}
@media(max-width:899px){.demo-controls>span{display:none}.demo-controls{top:8px;right:10px}}
@media(max-width:600px),(max-width:1200px) and (max-height:500px){.demo-controls{position:relative;top:auto;right:auto;flex:0 0 auto;align-self:stretch;min-height:42px;padding:max(3px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 3px max(12px,env(safe-area-inset-left));background:#fffcf8;border-bottom:1px solid #eee5db;justify-content:space-between;gap:8px}.demo-controls>span{display:block;font-size:9px}.demo-controls button{padding:5px 11px;min-height:34px;font-size:10px}}

/* Keep the saving and branded currency on two deliberate lines. */
.tour-card[data-step="amount"] #tour-title{white-space:pre-line;text-wrap:initial}
/* The physical phone gets the full storefront; its coachmarks live in the app document. */
html[data-mobile="true"] .demo-controls,html[data-mobile="true"] #tour-card{display:none!important}
html[data-mobile="true"] .device-stage{flex:1 1 auto;min-height:0}
html[data-mobile="true"] #tour-connector{display:none!important}

html[data-mobile="true"] .device-stage{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
