/* AI Engine interactive tour: demo bar, step card, highlight ring, modal. The page frame and the
   panel bring their own styles. */
:root{--tb-h:46px;--ink:#10203F;--gold:#ECD27A;--gold-ink:#3b2c00;--hi:#9A6E06}
html,body{margin:0;height:100%;overflow:hidden;background:#f3f3f3}
#app{min-height:0}
#tb{position:fixed;top:0;left:0;right:0;height:var(--tb-h);z-index:2000;background:var(--ink);color:#fff;display:flex;align-items:center;gap:14px;padding:0 14px;font:500 13px/1 'DM Sans',system-ui,sans-serif;box-sizing:border-box}
#tb .tb-brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;flex:none}
#tb .tb-brand img{height:22px;width:auto;background:#fff;border-radius:6px;padding:3px 6px}
#tb .tb-brand b{font-weight:700;letter-spacing:.02em;color:var(--gold)}
#tb .tb-badge{border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:6px 10px;font-size:11.5px;letter-spacing:.04em;color:#dfe6f5;white-space:nowrap;flex:none}
#tb .tb-prog{margin:0 auto;display:flex;align-items:center;gap:12px;white-space:nowrap;color:#dfe6f5}
#tb .tb-dots{display:flex;gap:5px}
#tb .tb-dots i{width:18px;height:4px;border-radius:2px;background:rgba(255,255,255,.22)}
#tb .tb-dots i.d{background:var(--gold)}
#tb .tb-dots i.c{background:#fff}
#tb .tb-right{display:flex;align-items:center;gap:6px;flex:none}
#tb .tb-link{background:none;border:0;color:#dfe6f5;font:inherit;cursor:pointer;padding:8px 10px;border-radius:8px;text-decoration:none;white-space:nowrap}
#tb .tb-link:hover{background:rgba(255,255,255,.1);color:#fff}
#tb .tb-cta{background:var(--gold);color:var(--gold-ink);font-weight:700;padding:9px 14px;border-radius:999px;text-decoration:none;white-space:nowrap}
#tb .tb-cta:hover{filter:brightness(1.05)}
#tb .tb-free{color:var(--gold);font-weight:700}

/* The frame sits under the demo bar. */
.lx{height:calc(100vh - var(--tb-h))!important;margin-top:var(--tb-h)}
.lx-panel{height:calc(100vh - var(--tb-h) - 140px)!important;max-width:calc(100vw - 24px);left:auto!important;right:12px}
.lx-tab,.lx-util span#util-ai,.lx-panel-head{cursor:pointer}
.lx-tab:focus-visible,#util-ai:focus-visible{outline:2px solid #0176d3;outline-offset:-2px}
.lx-util span#util-ai:not(.on){border-top:3px solid transparent;background:none}

#tring{position:fixed;z-index:1500;pointer-events:none;border-radius:12px;opacity:0;transition:opacity .2s ease;box-shadow:0 0 0 3px #F5A623,0 0 0 9px rgba(245,166,35,.28);animation:tpulse 1.6s ease-in-out infinite}
@keyframes tpulse{0%,100%{box-shadow:0 0 0 3px #F5A623,0 0 0 7px rgba(245,166,35,.30)}50%{box-shadow:0 0 0 3px #F5A623,0 0 0 15px rgba(245,166,35,.08)}}
#tcard{position:fixed;z-index:1600;width:320px;box-sizing:border-box;background:#fff;color:var(--ink);border-radius:14px;padding:16px 18px 12px;box-shadow:0 2px 6px rgba(16,32,63,.12),0 24px 60px -18px rgba(16,32,63,.5);border:1px solid #e3e7f0;font:400 14px/1.5 'DM Sans',system-ui,sans-serif;transition:left .18s ease,top .18s ease}
#tcard .tc-num{font:700 11px/1 'DM Sans',sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--hi);margin-bottom:8px}
#tcard h2{font:700 18px/1.25 'DM Sans',sans-serif;margin:0 0 6px}
#tcard p{margin:0 0 10px;color:#3b4a66}
#tcard .tc-chip{display:block;width:100%;text-align:left;background:#F3F6FC;border:1px dashed #9db0d3;border-radius:10px;padding:10px 12px;font:600 13.5px/1.35 'DM Sans',sans-serif;color:var(--ink);cursor:pointer;margin:0 0 10px}
#tcard .tc-chip:hover{background:#e9effa;border-style:solid}
#tcard .tc-send{background:#FFF4D6;border:1px solid #F0C75A;border-radius:10px;padding:10px 12px;font:700 13.5px/1.35 'DM Sans',sans-serif;color:#5a4300;margin:0 0 10px}
#tcard .tc-send[hidden],#tcard .tc-chip[hidden]{display:none}
#tcard .tc-skip{background:none;border:0;padding:4px 0;font:500 12.5px/1 'DM Sans',sans-serif;color:#6b7896;cursor:pointer;text-decoration:underline}
#tcard[data-side="r"]::after{content:'';position:absolute;right:-7px;top:var(--caret-y,50%);width:12px;height:12px;margin-top:-6px;background:#fff;border-top:1px solid #e3e7f0;border-right:1px solid #e3e7f0;transform:rotate(45deg)}
#tcard.ok{border-color:#2e9e5b}
#tcard.ok h2::before{content:'\2713  ';color:#2e9e5b}
#ttoast{position:fixed;left:50%;bottom:64px;transform:translateX(-50%);z-index:2100;background:var(--ink);color:#fff;font:500 13.5px/1.4 'DM Sans',sans-serif;padding:11px 16px;border-radius:10px;box-shadow:0 12px 30px rgba(16,32,63,.35);max-width:min(92vw,460px);text-align:center}
#tmodal{position:fixed;inset:0;z-index:3000;background:rgba(11,18,38,.55);display:flex;align-items:center;justify-content:center;padding:20px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
#tmodal[hidden],#tcard[hidden],#ttoast[hidden]{display:none}
#tmodal .tm-box{background:#fff;color:var(--ink);border-radius:18px;max-width:520px;width:100%;padding:30px 30px 26px;box-shadow:0 40px 100px -30px rgba(0,0,0,.6);font:400 16px/1.55 'DM Sans',system-ui,sans-serif;box-sizing:border-box}
#tmodal .tm-eye{font:700 11.5px/1 'DM Sans',sans-serif;letter-spacing:.16em;text-transform:uppercase;color:var(--hi)}
#tmodal h1{font:600 30px/1.15 'Fraunces','DM Sans',serif;margin:12px 0 10px}
#tmodal p{margin:0 0 12px;color:#3b4a66}
#tmodal .tm-note{font-size:13.5px;color:#6b7896}
#tmodal .tm-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
#tmodal .tm-p,#tmodal .tm-s{font:700 15px/1 'DM Sans',sans-serif;border-radius:999px;padding:14px 22px;cursor:pointer;text-decoration:none;border:1px solid transparent}
#tmodal .tm-p{background:var(--gold);color:var(--gold-ink)}
#tmodal .tm-s{background:#fff;color:var(--ink);border-color:#d5dbe8}
#tmodal .tm-p:hover{filter:brightness(1.05)}#tmodal .tm-s:hover{border-color:var(--ink)}

@media(max-width:1100px){#tb .tb-badge{display:none}}
@media(max-width:900px){
  :root{--tb-h:44px}
  #tb{gap:8px;padding:0 10px}
  #tb .tb-brand img,#tb .tb-exit,#tb #tb-restart{display:none}
  #tb .tb-prog span:first-child{display:none}
  #tb .tb-cta{padding:8px 10px;font-size:12px}
  #tb .tb-dots{gap:3px}
  #tb .tb-dots i{width:11px}
  #tb .tb-prog{margin:0 auto 0 4px;gap:6px}
  #tb .tb-free{font-size:12px}
  /* Phone and tablet: the record page stacks, the panel covers the screen like the Salesforce mobile app. */
  .lx-global .lx-search,.lx-icons i,.lx-actions,.lx-waffle{display:none!important}
  .lx-global{height:42px!important}
  .lx-nav{overflow-x:auto;overflow-y:hidden}
  .lx-appname{font-size:15px!important;margin-right:10px!important}
  .lx-body{overflow:auto!important;padding:8px!important;min-height:0}
  .lx-keys{flex-wrap:wrap;gap:10px 22px!important;padding-left:0!important}
  .lx-main{display:block!important}
  .lx-main>.lx-card,.lx-right>*{margin-bottom:8px}
  .lx-right{overflow:visible!important}
  .lx-fields{grid-template-columns:1fr!important}
  .lx-pathwrap{display:none}
  .lx-panel{left:0!important;right:0!important;width:100%!important;max-width:none;height:calc(100vh - var(--tb-h) - 40px)!important;border-radius:0!important}
  #tcard::after{display:none}
  #tcard{left:8px!important;right:8px;top:calc(var(--tb-h) + 6px)!important;width:auto;padding:11px 14px 8px;font-size:13px}
  #tcard.bot{top:auto!important;bottom:48px}
  #tcard h2{font-size:15.5px;margin-bottom:3px}
  #tcard p{margin-bottom:7px}
  #tcard .tc-num{margin-bottom:5px}
  #tmodal h1{font-size:25px}
  #tmodal .tm-box{padding:24px 20px 20px}
}
@media(prefers-reduced-motion:reduce){#tring{animation:none}#tcard,#tring{transition:none}}

#tcard .tc-note{background:#F1F8F4;border-left:3px solid #2E9E6B;border-radius:6px;padding:9px 11px;font:500 12.5px/1.45 'DM Sans',sans-serif;color:#234a39;margin:0 0 10px}
#tcard .tc-note b{display:block;font:700 10.5px/1 'DM Sans',sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#2E9E6B;margin-bottom:5px}

/* Phones: 100vh includes the area under the browser's own bars, which cut off the bottom of the page.
   tour.js measures the visible height into --vh, and everything is placed from the top. */
.lx{height:calc(var(--vh,100vh) - var(--tb-h))!important}
.lx-panel{height:calc(var(--vh,100vh) - var(--tb-h) - 140px)!important}
#tmodal{bottom:auto;height:var(--vh,100vh)}
#ttoast{bottom:auto;top:calc(var(--vh,100vh) - 64px);transform:translate(-50%,-100%)}
@media(max-width:900px){
  .lx-panel{top:var(--tb-h)!important;bottom:auto!important;height:calc(var(--vh,100vh) - var(--tb-h) - 40px)!important}
  #tcard.bot{top:calc(var(--vh,100vh) - 48px)!important;bottom:auto;transform:translateY(-100%)}
}
@media(max-width:900px){
  #tmodal{padding:12px}
  #tcard .tc-note{font-size:11.5px;line-height:1.4;padding:7px 9px;margin-bottom:6px}
  #tcard .tc-note b{display:none}
  .lx-util{position:relative;z-index:70}
  .lx-util #util-ai{font-weight:700;padding:0 18px}
}
#tcard .tc-done{display:flex;align-items:center;gap:12px;justify-content:space-between}
#tcard .tc-done span{font:600 13px/1.35 'DM Sans',sans-serif;color:#234a39}
#tcard .tc-next{flex:none;background:var(--gold);color:var(--gold-ink);border:0;border-radius:999px;padding:12px 18px;font:700 14px/1 'DM Sans',sans-serif;cursor:pointer}
@media(max-width:900px){
  .lx-nav{flex-wrap:nowrap!important}
  .lx-tab{white-space:nowrap;flex:none}
  .lx-appname{display:none!important}
  .lx-nav .lx-tab:first-of-type{display:none}
  #tcard.ok{padding:10px 12px}
}
/* The page itself never scrolls: on a phone a scrolled document pushed the top of the welcome screen out of view. */
html,body{height:var(--vh,100%)}
body{position:fixed;top:0;left:0;right:0;overscroll-behavior:none}
@media(max-width:760px){
  #tmodal{align-items:flex-start;padding:10px}
}
/* Welcome and end screens: the same plain, light look as the website. */
#tmodal .tm-hero{max-width:780px;padding:44px 48px 32px;border-top:4px solid var(--gold);max-height:calc(var(--vh,100vh) - 24px);overflow-y:auto}
#tmodal .tm-hero .tm-eye{color:#5A6B86;font-size:12px;letter-spacing:.2em}
#tmodal .tm-hero h1{font:600 46px/1.04 'Fraunces',serif;margin:16px 0 14px;max-width:640px}
#tmodal .tm-hero .tm-lead{font-size:18px;line-height:1.55;color:#5A6B86;max-width:600px;margin:0 0 6px}
#tmodal .tm-list{list-style:none;counter-reset:s;margin:24px 0 26px;padding:0;border-top:1px solid #e3e8f2;display:grid;grid-template-columns:1fr 1fr;column-gap:40px}
#tmodal .tm-list li{counter-increment:s;display:grid;grid-template-columns:38px 1fr;row-gap:2px;padding:14px 0;border-bottom:1px solid #e3e8f2}
#tmodal .tm-list li::before{content:counter(s,decimal-leading-zero);font:600 16px/1.3 'Fraunces',serif;color:var(--hi);grid-row:span 2}
#tmodal .tm-list b{font:700 15px/1.3 'DM Sans',sans-serif;color:var(--ink)}
#tmodal .tm-list span{font:400 13.5px/1.45 'DM Sans',sans-serif;color:#5A6B86}
#tmodal .tm-hero .tm-btns{align-items:center;margin-top:0}
#tmodal .tm-hero .tm-p{font-size:16px;padding:16px 28px}
#tmodal .tm-mins{font:500 13px/1.3 'DM Sans',sans-serif;color:#5A6B86;margin-left:6px}
#tmodal .tm-phone{font:500 13px/1.45 'DM Sans',sans-serif;color:var(--hi);margin:14px 0 0}
#tmodal .tm-trust{list-style:none;display:flex;flex-wrap:wrap;gap:6px 22px;margin:26px 0 10px;padding:16px 0 0;border-top:1px solid #e3e8f2}
#tmodal .tm-trust li{font:600 12.5px/1.3 'DM Sans',sans-serif;color:var(--ink);padding-left:18px;position:relative}
#tmodal .tm-trust li::before{content:'';position:absolute;left:0;top:5px;width:8px;height:4px;border-left:2px solid #2E9E6B;border-bottom:2px solid #2E9E6B;transform:rotate(-45deg)}
#tmodal .tm-hero .tm-note{font-size:12px;line-height:1.45;color:#7b88a1;margin:0}
#tmodal .tm-legal{font:400 11px/1.45 'DM Sans',sans-serif;color:#8b96ab;margin:12px 0 0}
#tmodal .tm-end{max-width:640px}
#tmodal .tm-end h1{font-size:38px}
#tmodal .tm-end .tm-lead{margin-bottom:14px}
#tmodal .tm-end .tm-lead b{color:var(--ink);font-weight:600}
#tmodal .tm-end .tm-more{font-size:15px;border-left:3px solid var(--gold);padding-left:14px}
#tmodal .tm-end .tm-btns{margin-top:8px}
#tmodal .tm-end .tm-phone{margin:0 0 14px}
@media(max-width:760px){
  #tmodal .tm-hero{padding:24px 20px 18px;max-height:calc(var(--vh,100vh) - 20px)}
  #tmodal .tm-hero .tm-eye{font-size:10.5px;letter-spacing:.14em;line-height:1.4;display:block}
  #tmodal .tm-hero h1{font-size:30px;margin:12px 0 10px}
  #tmodal .tm-hero .tm-lead{font-size:15px;line-height:1.45}
  #tmodal .tm-list{grid-template-columns:1fr;margin:16px 0 18px}
  #tmodal .tm-list li{padding:10px 0;grid-template-columns:32px 1fr}
  #tmodal .tm-list b{font-size:14.5px}
  #tmodal .tm-list span{font-size:13px}
  #tmodal .tm-hero .tm-p{padding:14px 22px;font-size:15px}
  #tmodal .tm-mins{width:100%;margin:4px 0 0}
  #tmodal .tm-trust{margin:16px 0 8px;padding-top:12px}
  #tmodal .tm-end h1{font-size:28px}
}
/* Contact form */
#tmodal .tm-ask{font:500 13px/1.4 'DM Sans',sans-serif;color:#5A6B86;margin:12px 0 0}
#tmodal .tm-link{background:none;border:0;padding:0;font:700 13px/1.4 'DM Sans',sans-serif;color:var(--ink);text-decoration:underline;cursor:pointer}
#tmodal .tm-form{margin-top:18px}
#tmodal .tm-form .tm-hp{position:absolute;left:-9999px;height:0;overflow:hidden}
#tmodal .tm-form .tm-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#tmodal .tm-form label{display:block;font:600 12.5px/1.3 'DM Sans',sans-serif;color:var(--ink);margin-bottom:12px}
#tmodal .tm-form input,#tmodal .tm-form textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;border:1px solid #cfd7e6;border-radius:10px;padding:11px 12px;font:400 16px/1.4 'DM Sans',sans-serif;color:var(--ink);background:#fff}
#tmodal .tm-form textarea{resize:vertical;min-height:84px}
#tmodal .tm-form input:focus,#tmodal .tm-form textarea:focus{outline:2px solid var(--gold);outline-offset:1px;border-color:var(--ink)}
#tmodal .tm-form.bad input:invalid{border-color:#c0392b}
#tmodal .tm-form .tm-err{background:#fdecea;border:1px solid #f1b5ae;border-radius:10px;padding:10px 12px;font:500 13.5px/1.4 'DM Sans',sans-serif;color:#8a231a;margin:0 0 12px}
#tmodal .tm-form .tm-err[hidden]{display:none}
#tmodal .tm-form .tm-btns{margin-top:6px}
#tmodal .tm-form .tm-p:disabled{opacity:.6;cursor:default}
#tmodal .tm-form .tm-note{margin-top:14px}
#tmodal .tm-form .tm-note a{color:inherit}
@media(max-width:760px){#tmodal .tm-form .tm-row{grid-template-columns:1fr;gap:0}}
#tmodal .tm-role{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:22px;padding-top:16px;border-top:1px solid #e3e8f2}
#tmodal .tm-role span{font:500 13px/1.4 'DM Sans',sans-serif;color:#5A6B86;width:100%}
#tmodal .tm-role button{background:#fff;border:1px solid #cfd7e6;border-radius:999px;padding:8px 14px;font:600 13px/1 'DM Sans',sans-serif;color:var(--ink);cursor:pointer}
#tmodal .tm-role button:hover{border-color:var(--ink)}
/* What the page shows before the demo has loaded, and to anything that does not run scripts. */
.demo-fallback{max-width:640px;margin:calc(var(--tb-h) + 40px) auto 0;padding:0 24px;font:400 16px/1.6 'DM Sans',system-ui,sans-serif;color:var(--ink)}
.demo-fallback h1{font:600 34px/1.1 'Fraunces',serif;margin:8px 0 12px}.demo-fallback h2{font:700 15px/1.3 'DM Sans',sans-serif;margin:22px 0 8px}
.demo-fallback .df-load{font:600 12px/1 'DM Sans',sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#5A6B86}.demo-fallback ul{padding-left:20px;margin:0 0 16px}.demo-fallback a{color:var(--ink)}
/* Phones and tablets: the step card is dark, so it reads as the guide and not as part of the Salesforce page under it. */
@media(max-width:900px){
  #tcard{background:var(--ink);color:#fff;border:1px solid rgba(236,210,122,.55);border-top:3px solid var(--gold);box-shadow:0 18px 44px -10px rgba(8,14,32,.75)}
  #tcard .tc-num{color:var(--gold)}
  #tcard h2{color:#fff}
  #tcard p{color:#c9d4ea}
  #tcard .tc-chip{background:rgba(255,255,255,.08);border:1px dashed rgba(236,210,122,.7);color:#fff}
  #tcard .tc-chip:hover{background:rgba(255,255,255,.14)}
  #tcard .tc-note{background:rgba(94,211,160,.12);border-left-color:#5ED3A0;color:#d6f1e4}
  #tcard .tc-skip{color:#9fb0d0}
  #tcard.ok{border-color:#5ED3A0;border-top-color:#5ED3A0}
  #tcard.ok h2::before{color:#5ED3A0}
  #tcard .tc-done span{color:#fff}
}
/* Contact is on every screen, next to the booking button. */
#tb .tb-contact{background:transparent;border:1px solid rgba(255,255,255,.45);color:#fff;font:700 13px/1 'DM Sans',sans-serif;padding:9px 14px;border-radius:999px;cursor:pointer;white-space:nowrap}
#tb .tb-contact:hover{border-color:#fff;background:rgba(255,255,255,.08)}
#tb .tb-short{display:none}
@media(max-width:900px){
  #tb .tb-brand{display:none}
  #tb .tb-prog{margin:0 auto 0 0}
  #tb .tb-right{display:flex;align-items:center;gap:6px}
  #tb .tb-contact{padding:8px 10px;font-size:12px}
  #tb .tb-long{display:none}
  #tb .tb-short{display:inline}
}
@media(max-width:380px){#tb .tb-dots i{width:8px}#tb .tb-contact,#tb .tb-cta{padding:8px 8px}}

/* The first screen: one card per path. A card starts its path with one click. */
#tmodal .tm-pick{max-width:860px}
#tmodal .tm-pick h1{font-size:40px;margin:14px 0 10px}
#tmodal .tm-paths{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0 12px}
#tmodal .tm-path{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;background:#fff;border:1px solid #d9dfec;border-radius:14px;padding:16px 16px 14px;cursor:pointer;color:var(--ink);font:400 13.5px/1.45 'DM Sans',system-ui,sans-serif;transition:border-color .15s,box-shadow .15s,transform .15s}
#tmodal .tm-path:hover,#tmodal .tm-path:focus-visible{border-color:var(--ink);box-shadow:0 10px 26px -14px rgba(16,32,63,.55);transform:translateY(-1px);outline:none}
#tmodal .tm-path b{font:700 15.5px/1.3 'DM Sans',sans-serif;color:var(--ink)}
#tmodal .tm-path span{color:#5A6B86;flex:1}
#tmodal .tm-path i{font:600 12px/1.2 'DM Sans',sans-serif;font-style:normal;color:var(--hi);margin-top:2px}
#tmodal .tm-path i::after{content:' \2192'}
#tmodal .tm-all{width:100%;flex-direction:row;align-items:center;gap:14px;background:var(--gold);border-color:var(--gold);padding:14px 18px}
#tmodal .tm-all b{font-size:16px;white-space:nowrap}
#tmodal .tm-all span{color:var(--gold-ink)}
#tmodal .tm-all i{color:var(--gold-ink);white-space:nowrap;margin:0}
#tmodal .tm-all:hover,#tmodal .tm-all:focus-visible{border-color:var(--ink)}
#tmodal .tm-pick .tm-ask{margin:14px 0 0;font-size:14px;color:#5A6B86}
#tmodal .tm-pick .tm-trust{margin-top:18px}
#tmodal .tm-sub{font:700 11.5px/1 'DM Sans',sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#5A6B86;margin:26px 0 0;padding-top:18px;border-top:1px solid #e3e8f2}
#tmodal .tm-paths-s{margin:12px 0 4px}
#tmodal .tm-paths-s .tm-path{padding:12px 14px 11px}
#tmodal .tm-paths-s .tm-path span{display:none}
#tmodal .tm-paths-s .tm-path b{font-size:14px}
#tmodal .tm-list1{grid-template-columns:1fr;margin:18px 0 14px}
@media (max-width:899px){
  #tmodal .tm-pick h1{font-size:28px;margin:10px 0 8px}
  #tmodal .tm-paths{grid-template-columns:1fr;gap:8px;margin:14px 0 8px}
  #tmodal .tm-path{padding:12px 14px 11px;gap:3px}
  #tmodal .tm-path b{font-size:15px}
  #tmodal .tm-path span{font-size:13px}
  #tmodal .tm-all{flex-direction:column;align-items:flex-start;gap:3px}
  #tmodal .tm-all b{white-space:normal}
  #tmodal .tm-paths-s{grid-template-columns:1fr 1fr}
  #tmodal .tm-sub{margin-top:18px;padding-top:14px}
}
@media (min-width:900px) and (max-width:1080px){#tmodal .tm-paths{grid-template-columns:repeat(2,1fr)}}
/* A scored lead card is taller than the column, so the column scrolls and the tour can bring its buttons into view. */
@media (min-width:900px){.lx-right{overflow-y:auto!important;scrollbar-width:thin}}

/* The first screen, simple: one question, one box, a row of tiles. */
#tmodal .tm-pick:not(.tm-end){max-width:680px;padding:46px 48px 30px;text-align:center}
#tmodal .tm-pick:not(.tm-end) h1{font-size:38px;line-height:1.1;margin:16px auto 26px;max-width:520px}
#tmodal .tm-askbox{display:flex;gap:8px;background:#fff;border:2px solid var(--ink);border-radius:16px;padding:6px;box-shadow:0 14px 34px -18px rgba(16,32,63,.55)}
#tmodal .tm-askbox:focus-within{border-color:var(--hi)}
#tmodal .tm-askbox input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:500 17px/1.3 'DM Sans',system-ui,sans-serif;color:var(--ink);padding:12px 14px}
#tmodal .tm-askbox input::placeholder{color:#8a96ad;font-weight:400}
#tmodal .tm-askbox .tm-p{font-size:15px;padding:12px 20px;border-radius:11px;white-space:nowrap}
#tmodal .tm-hit{min-height:0}
#tmodal .tm-hitbtn{display:flex;align-items:center;gap:12px;width:100%;margin-top:10px;text-align:left;background:#F3F6FC;border:1px solid #cfd8ea;border-radius:12px;padding:12px 16px;cursor:pointer;color:var(--ink);font:400 14px/1.3 'DM Sans',sans-serif}
#tmodal .tm-hitbtn:hover{border-color:var(--ink)}
#tmodal .tm-hitbtn small{font:700 10.5px/1 'DM Sans',sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--hi);white-space:nowrap}
#tmodal .tm-hitbtn b{flex:1;font-weight:700;font-size:15px}
#tmodal .tm-hitbtn i{font-style:normal;font-weight:600;font-size:12.5px;color:#5A6B86;white-space:nowrap}
#tmodal .tm-hitbtn i::after{content:' \2192'}
#tmodal .tm-or{font:600 11.5px/1 'DM Sans',sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#8a96ad;margin:26px 0 12px}
#tmodal .tm-tiles{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
#tmodal .tm-tile{background:#fff;border:1px solid #d5dbe8;border-radius:999px;padding:10px 16px;font:600 14.5px/1.2 'DM Sans',sans-serif;color:var(--ink);cursor:pointer;transition:border-color .15s,background .15s}
#tmodal .tm-tile:hover,#tmodal .tm-tile:focus-visible,#tmodal .tm-tile.on{border-color:var(--ink);background:#F3F6FC;outline:none}
#tmodal .tm-tile-all{background:var(--gold);border-color:var(--gold);color:var(--gold-ink)}
#tmodal .tm-tile-all:hover,#tmodal .tm-tile-all:focus-visible{background:var(--gold);border-color:var(--ink)}
#tmodal .tm-foot{font:500 13px/1.5 'DM Sans',sans-serif;color:#5A6B86;margin:26px 0 8px}
#tmodal .tm-pick:not(.tm-end) .tm-legal{margin-top:6px}
@media (max-width:899px){
  #tmodal .tm-pick:not(.tm-end){padding:26px 18px 18px}
  #tmodal .tm-pick:not(.tm-end) h1{font-size:27px;margin:12px auto 18px}
  #tmodal .tm-askbox{flex-direction:column;gap:6px;padding:6px}
  #tmodal .tm-askbox input{font-size:16px;padding:12px}
  #tmodal .tm-askbox .tm-p{width:100%}
  #tmodal .tm-hitbtn{flex-wrap:wrap;gap:4px 10px}
  #tmodal .tm-hitbtn b{flex-basis:100%;order:2}
  #tmodal .tm-hitbtn i{order:3}
  #tmodal .tm-or{margin:20px 0 10px}
  #tmodal .tm-tile{padding:10px 14px;font-size:14px}
  #tmodal .tm-foot{margin-top:20px}
}
#tmodal .tm-pick:not(.tm-end) h1{margin-bottom:10px}
#tmodal .tm-picks{font:400 17px/1.45 'DM Sans',system-ui,sans-serif;color:#5A6B86;margin:0 0 24px}
#tmodal .tm-desc{min-height:42px;margin:14px auto 0;max-width:520px;font:400 13.5px/1.5 'DM Sans',sans-serif;color:#8a96ad}
#tmodal .tm-desc.on{color:#5A6B86}
#tmodal .tm-desc b{font-weight:600;color:var(--ink)}
#tmodal .tm-foot{margin-top:12px}
@media (max-width:899px){
  #tmodal .tm-picks{font-size:15px;margin-bottom:16px}
  #tmodal .tm-desc{display:none}
  #tmodal .tm-foot{margin-top:20px}
}

/* The screen between the choice and the first step. */
#tmodal .tm-intro{max-width:600px;padding:42px 46px 34px}
#tmodal .tm-intro h1{font-size:36px;line-height:1.1;margin:14px 0 12px}
#tmodal .tm-intro .tm-lead{font-size:17px;margin:0 0 6px}
#tmodal .tm-will{list-style:none;margin:14px 0 26px;padding:0}
#tmodal .tm-will li{position:relative;padding:11px 0 11px 34px;border-bottom:1px solid #e3e8f2;font:500 16px/1.4 'DM Sans',system-ui,sans-serif;color:var(--ink)}
#tmodal .tm-will li:first-child{border-top:1px solid #e3e8f2}
#tmodal .tm-will li::before{content:'';position:absolute;left:6px;top:17px;width:11px;height:6px;border-left:2.5px solid #2E9E6B;border-bottom:2.5px solid #2E9E6B;transform:rotate(-45deg)}
@media (max-width:899px){
  #tmodal .tm-intro{padding:26px 20px 20px}
  #tmodal .tm-intro h1{font-size:27px}
  #tmodal .tm-will li{font-size:15px;padding:10px 0 10px 32px}
  #tmodal .tm-intro .tm-mins{flex-basis:100%;margin:2px 0 0}
}

/* Where to click: a stronger ring, a "Click here" tag on every click target, and a dimmed page for a path's first click. */
#tring{box-shadow:0 0 0 3px #F5A623,0 0 0 10px rgba(245,166,35,.35),0 0 26px 10px rgba(245,166,35,.45)}
/* the dim is on a pseudo-element because the ring's own shadow is animated */
#tring.spot::after{content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:0 0 0 9999px rgba(11,18,38,.45)}
#tlabel{position:fixed;z-index:1650;pointer-events:none;opacity:0;transition:opacity .2s ease;background:#F5A623;color:#2b1c00;font:700 13px/1 'DM Sans',system-ui,sans-serif;padding:8px 12px;border-radius:999px;white-space:nowrap;box-shadow:0 8px 20px -6px rgba(11,18,38,.5);animation:tbob 1.1s ease-in-out infinite}
#tlabel::after{content:'';position:absolute;left:var(--tip-x,50%);bottom:-6px;width:12px;height:12px;margin-left:-6px;background:#F5A623;transform:rotate(45deg)}
#tlabel.below{animation-name:tbobup}
#tlabel.below::after{bottom:auto;top:-6px}
@keyframes tbob{0%,100%{transform:translateY(0)}50%{transform:translateY(5px)}}
@keyframes tbobup{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media(prefers-reduced-motion:reduce){#tlabel{animation:none}}

/* Watch mode: a pointer that moves and clicks by itself, and a card that explains. */
#tcur{position:fixed;left:0;top:0;z-index:1700;width:26px;height:26px;margin:-3px 0 0 -5px;pointer-events:none;opacity:0;transition:transform .75s cubic-bezier(.5,0,.2,1),opacity .25s ease;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M5 3l15 9.5-6.6 1.5 3.8 7.2-2.9 1.5-3.8-7.3L5 20.5z' fill='%2310203F' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;filter:drop-shadow(0 3px 5px rgba(11,18,38,.35))}
#tcur.on{opacity:1}
#tcur::after{content:'';position:absolute;left:5px;top:3px;width:0;height:0;border-radius:50%;background:rgba(245,166,35,.55);transform:translate(-50%,-50%)}
#tcur.click::after{animation:tclick .38s ease-out}
@keyframes tclick{0%{width:0;height:0;opacity:1}100%{width:46px;height:46px;opacity:0}}
#tcard.auto{border-top:3px solid var(--gold)}
#tcard .tc-auto{display:flex;gap:8px;margin-top:12px}
#tcard .tc-auto button{background:#fff;border:1px solid #d5dbe8;border-radius:999px;padding:7px 13px;font:600 12.5px/1 'DM Sans',sans-serif;color:var(--ink);cursor:pointer}
#tcard .tc-auto button:hover{border-color:var(--ink)}
@media (max-width:899px){#tcard.auto .tc-auto button{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.35);color:#fff}}
@media(prefers-reduced-motion:reduce){#tcur{transition:opacity .2s ease}}

/* narrator switch */
#tcard .tc-auto .tc-snd{margin-left:auto;padding:5px 10px;font-size:15px}
#tcard .tc-auto .tc-cap{font:700 12px/1 'DM Sans',sans-serif;letter-spacing:.06em;padding:8px 10px}
#tcard .tc-auto .tc-cap+.tc-snd{margin-left:0}
#tcard .tc-auto .tc-cap.off{opacity:.5;text-decoration:line-through}
/* subtitles for the narrated tour: what the narrator is saying, readable with the sound off */
#tcap{position:fixed;z-index:1700;left:50%;bottom:48px;transform:translateX(-50%);box-sizing:border-box;max-width:min(780px,calc(100vw - 32px));background:rgba(8,14,32,.92);color:#fff;font:600 19px/1.4 'DM Sans',system-ui,sans-serif;padding:10px 20px;border-radius:10px;text-align:center;pointer-events:none;box-shadow:0 10px 28px -10px rgba(0,0,0,.7)}
#tcap[hidden]{display:none}
@media (max-width:899px){#tcap{display:none}#tcard.auto p span{transition:color .2s ease}#tcard.auto p .cap-on{color:#fff;font-weight:600;background:rgba(236,210,122,.18);border-radius:4px;box-shadow:0 0 0 3px rgba(236,210,122,.18)}#tcard.auto.cap-title h2{color:var(--gold)}}
.tm-snd{display:inline-flex;align-items:center;gap:6px;margin-right:12px;background:#fff;border:1px solid #d5dbe8;border-radius:999px;padding:6px 12px;font:600 12.5px/1 'DM Sans',sans-serif;color:var(--ink);cursor:pointer}
.tm-snd[aria-pressed="false"]{color:#6b7385}
.tm-snd:hover{border-color:var(--ink)}

/* watch mode: the light glides from one thing to the next, and the rest of the page is dimmed */
#tring.glide{transition:opacity .25s ease,left .45s cubic-bezier(.2,.7,.2,1),top .45s cubic-bezier(.2,.7,.2,1),width .45s cubic-bezier(.2,.7,.2,1),height .45s cubic-bezier(.2,.7,.2,1)}
#tring.glide.spot::after{box-shadow:0 0 0 9999px rgba(11,18,38,.55)}
@media(prefers-reduced-motion:reduce){#tring.glide{transition:none}}

/* watch mode: the problem each step answers, and on a wide screen a slide beside the screen */
#tcard .tc-pb{background:#FFF5F3;border-left:3px solid #D9534F;border-radius:6px;padding:9px 11px;margin:0 0 10px;font:500 13px/1.4 'DM Sans',sans-serif;color:#5a2522}
#tcard .tc-pb b{display:block;font:700 10.5px/1 'DM Sans',sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#C5443F;margin-bottom:5px}
#tcard.slide{width:470px;padding:26px 30px 20px;border-radius:18px;transition:none}
#tcard.slide .tc-num{margin-bottom:14px}
#tcard.slide .tc-pb{font-size:15.5px;padding:12px 14px;margin-bottom:18px}
#tcard.slide h2{font:400 30px/1.15 'Fraunces','DM Serif Display',Georgia,serif;margin:0 0 10px}
#tcard.slide p{font-size:15.5px;line-height:1.5;margin-bottom:16px}
#tcard .tc-with b{display:block;font:700 10.5px/1 'DM Sans',sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#2E9E6B;margin-bottom:8px}
#tcard .tc-with ul{list-style:none;margin:0;padding:0}
#tcard.slide .tc-with li{position:relative;padding:8px 0 8px 26px;border-top:1px solid #e8ecf3;font:600 15px/1.35 'DM Sans',sans-serif;color:var(--ink)}
#tcard.slide .tc-with li::before{content:'\2713';position:absolute;left:2px;color:#2E9E6B;font-weight:700}
#tcard.slide .tc-auto{margin-top:16px}
@media (max-width:899px){#tcard .tc-pb{background:rgba(255,255,255,.08);border-left-color:#F2A29E;color:#fff;font-size:12.5px;padding:7px 10px;margin-bottom:8px}#tcard .tc-pb b{color:#F2A29E}}
#tcard.rich{width:370px}
#tcard .tc-with{margin:0 0 12px}
#tcard .tc-with li{position:relative;padding:6px 0 6px 22px;border-top:1px solid #e8ecf3;font:600 13.5px/1.35 'DM Sans',sans-serif;color:var(--ink)}
#tcard .tc-with li::before{content:'\2713';position:absolute;left:1px;color:#2E9E6B;font-weight:700}
#tcard.slide{width:470px}
#tcard.slide .tc-with{margin:0}

/* problem and its answer read as one block: red on top, green right under it, then the step that proves it */
#tcard .tc-pb{margin-bottom:0;border-radius:6px 6px 0 0}
#tcard .tc-sol{background:#F1F8F4;border-left:3px solid #2E9E6B;border-radius:0 0 6px 6px;padding:9px 11px;margin:0 0 12px}
#tcard .tc-sol b{display:block;font:700 10.5px/1 'DM Sans',sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#2E9E6B;margin-bottom:6px}
#tcard .tc-sol ul{list-style:none;margin:0;padding:0}
#tcard .tc-sol li{position:relative;padding:2px 0 2px 20px;font:600 13.5px/1.35 'DM Sans',sans-serif;color:#17382b}
#tcard .tc-sol li::before{content:'\2713';position:absolute;left:1px;color:#2E9E6B;font-weight:700}
#tcard .tc-kick{font:700 10.5px/1 'DM Sans',sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#6b7896;margin:0 0 6px}
#tcard.slide .tc-pb{margin-bottom:0}
#tcard.slide .tc-sol{padding:12px 14px;margin-bottom:20px}
#tcard.slide .tc-sol li{font-size:15.5px;padding:3px 0 3px 24px}
#tcard.slide p{margin-bottom:4px}
@media (max-width:899px){
  #tcard .tc-pb{margin-bottom:0}
  #tcard .tc-sol{background:rgba(46,158,107,.16);border-left-color:#6FD3A4;padding:7px 10px;margin-bottom:9px}
  #tcard .tc-sol b{color:#6FD3A4}
  #tcard .tc-sol li{color:#fff;font-size:12.5px}
  #tcard .tc-sol li::before{color:#6FD3A4}
  #tcard .tc-kick{color:rgba(255,255,255,.6);margin-bottom:4px}
}

/* which part of the company profile an answer leans on, and the button of a look-only step */
#tcard .tc-from{margin-top:7px;padding-top:7px;border-top:1px dashed rgba(46,158,107,.4);font:500 12.5px/1.35 'DM Sans',sans-serif;color:#2c5a45}
#tcard .tc-from b{display:inline;font:700 12.5px/1.35 'DM Sans',sans-serif;letter-spacing:0;text-transform:none;color:#17382b;margin:0}
#tcard.slide .tc-from,#tcard.slide .tc-from b{font-size:14.5px}
#tcard .tc-look{display:block;margin:0 0 10px}
@media (max-width:899px){#tcard .tc-from{color:rgba(255,255,255,.8)}#tcard .tc-from b{color:#fff}}

/* the silent loop shown in the home page's hero: no controls, nothing to click */
html.live #tcard .tc-auto{display:none}
html.live,html.live body{pointer-events:none}
html.live .tb-right{visibility:hidden}
html.live #tring.glide.spot::after{box-shadow:0 0 0 9999px rgba(11,18,38,.24)}   /* lighter dim: the frame is small and must stay bright */
