/* ============================================================
   Demo call flow — "Talk to your new assistant"
   Overlay modal, injected by demo.js on every page.
   Design: Figma nodes 2370:8688 / 8717 / 8769 / 8833 / 8877,
   2367:8064 / 8106 / 8148 / 8190, 2380:9023.
   ============================================================ */

.demo-backdrop{
  position:fixed;inset:0;z-index:1000;
  display:none;align-items:flex-start;justify-content:center;
  background:rgba(12,12,13,.45);
  overflow-y:auto;padding:48px 16px;
  -webkit-overflow-scrolling:touch;
}
.demo-backdrop.open{display:flex}
body.demo-lock{overflow:hidden}

.demo-card{
  position:relative;width:100%;max-width:617px;margin:auto;
  background:#fff;border:1px solid rgba(0,0,0,.18);border-radius:18px;
  padding:38px 44px 30px;
  box-shadow:0 24px 70px rgba(12,12,13,.28);
}

.demo-close{
  position:absolute;top:12px;right:14px;
  width:34px;height:34px;border:0;border-radius:8px;background:transparent;
  cursor:pointer;color:var(--navy);display:flex;align-items:center;justify-content:center;
  transition:background .15s;
}
.demo-close:hover{background:rgba(12,12,13,.06)}
.demo-close svg{width:18px;height:18px;display:block}

.demo-logo{display:block;height:28px;width:auto;margin:2px auto 18px}

.demo-h{
  font-family:var(--body,'Inter',sans-serif);
  font-size:clamp(24px,3vw,32px);font-weight:600;line-height:1.3;
  color:var(--navy);text-align:center;margin:0 0 8px;
}
.demo-sub{
  font-size:15px;line-height:1.6;color:var(--gray);
  text-align:center;margin:0 auto 22px;max-width:470px;
}

/* ---- form ---- */
.demo-field{margin-bottom:14px}
.demo-label{display:block;font-size:15px;font-weight:700;color:#707070;margin-bottom:6px}
.demo-input{
  width:100%;height:46px;box-sizing:border-box;
  border:1px solid #dee2e6;border-radius:6px;padding:0 12px;
  font-family:inherit;font-size:17px;color:var(--ink);background:#fff;
}
.demo-input::placeholder{color:#c0c0c0}
.demo-input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(43,127,253,.15)}
.demo-input[aria-invalid="true"]{border-color:#d64545}

.demo-btn{
  width:100%;height:49px;box-sizing:border-box;border:0;border-radius:6px;
  background:var(--blue);color:#fff;font-family:inherit;font-size:18px;font-weight:500;
  cursor:pointer;margin-top:6px;transition:opacity .15s,background .15s;
}
.demo-btn:hover{background:#1f6fe6}
.demo-btn:disabled{opacity:.55;cursor:not-allowed}
.demo-btn--ghost{background:transparent;color:var(--blue);border:1px solid var(--blue)}
.demo-btn--ghost:hover{background:rgba(43,127,253,.06)}
.demo-btn--yellow{background:var(--yellow);color:var(--navy)}
.demo-btn--yellow:hover{background:#eab00c}

.demo-spinner{
  display:inline-block;width:16px;height:16px;vertical-align:-2px;margin-right:8px;
  border:2px solid rgba(255,255,255,.5);border-top-color:#fff;border-radius:50%;
  animation:demo-spin .7s linear infinite;
}
@keyframes demo-spin{to{transform:rotate(360deg)}}

.demo-disclosure{font-size:11px;line-height:1.55;color:#787888;margin-top:14px}
.demo-disclosure a{color:var(--blue);text-decoration:none}
.demo-disclosure a:hover{text-decoration:underline}

.demo-help{text-align:center;font-size:14px;color:rgba(33,37,41,.75);margin-top:22px}
.demo-help a{color:var(--blue);text-decoration:none;cursor:pointer}
.demo-help a:hover{text-decoration:underline}

.demo-error{color:#d64545;font-size:13.5px;line-height:1.45;margin:4px 2px 0}
.demo-note{color:var(--gray);font-size:13.5px;line-height:1.45;margin:4px 2px 10px;text-align:center}

/* ---- passcode ---- */
.demo-code{display:flex;gap:10px;justify-content:space-between;margin:10px 0 6px}
.demo-code input{
  width:100%;max-width:64px;height:58px;box-sizing:border-box;
  border:1px solid #828282;border-radius:6px;background:#fff;
  text-align:center;font-family:inherit;font-size:28px;color:var(--navy);
  -moz-appearance:textfield;
}
.demo-code input::-webkit-outer-spin-button,
.demo-code input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.demo-code input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(43,127,253,.15)}
.demo-code.err input{border-color:#d64545}
.demo-code input:disabled{background:#f5f6f7;color:var(--gray)}

.demo-resend{text-align:center;margin-top:14px;font-size:14px;color:var(--gray)}
.demo-resend button{background:none;border:0;padding:0;color:var(--blue);cursor:pointer;font:inherit;font-weight:600}
.demo-resend button:disabled{color:var(--gray);cursor:default;font-weight:400}

/* ---- success / status ---- */
.demo-expect{background:#f9fbff;border:1px solid #eef2f9;border-radius:12px;padding:20px 22px;margin-top:20px;text-align:left}
.demo-expect h4{margin:0 0 10px;font-size:15px;font-weight:700;color:var(--navy)}
.demo-expect ul{margin:0;padding-left:18px}
.demo-expect li{font-size:14.5px;line-height:1.55;color:#3a3a45;margin-bottom:6px}
.demo-expect li:last-child{margin-bottom:0}

.demo-ring{
  width:56px;height:56px;margin:4px auto 16px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(43,127,253,.1);color:var(--blue);
}
.demo-ring svg{width:28px;height:28px}
.demo-ring--ok{background:rgba(34,170,102,.12);color:#22aa66}

/* ---- recap (completed call) — Figma 2370:8784 ---- */
.demo-recap{position:relative;text-align:center}
.demo-recap::before{
  content:"";position:absolute;inset:-30px -44px;z-index:0;pointer-events:none;
  background:url('assets/demo-checker.svg') center top/cover no-repeat;opacity:.05;
}
.demo-recap>*{position:relative;z-index:1}

.demo-recap-title{
  font-family:'Permanent Marker',cursive;font-weight:400;
  font-size:clamp(28px,4.6vw,38px);line-height:1.05;letter-spacing:.4px;
  color:#0a0a0a;margin:2px 0 10px;
}
.demo-recap-sub{font-size:16px;line-height:1.28;color:#707070;max-width:453px;margin:0 auto 16px}
.demo-recap-sub .hl{color:var(--navy)}

.demo-transcript{
  position:relative;text-align:left;background:#fbfbfe;
  border:1px solid #e6e5ee;border-radius:18px;box-shadow:0 1px 4px rgba(12,12,13,.08);
  padding:18px;max-height:300px;overflow-y:auto;margin:0 0 22px;
}
.demo-turn{display:flex;gap:9px;align-items:flex-start;margin-bottom:12px}
.demo-turn:last-child{margin-bottom:0}
.demo-turn__icon{flex:0 0 19px;width:19px;height:19px;margin-top:2px}
.demo-turn__icon img{width:100%;height:100%;display:block}
.demo-turn__text{font-size:14.5px;line-height:1.4;color:#787888;word-break:break-word}
.demo-turn__text b{font-weight:700}
.demo-turn--caller .demo-turn__text{color:var(--navy)}
.demo-transcript__empty{font-size:14px;color:var(--gray);text-align:center;padding:14px 8px;margin:0}

.demo-nomore{display:flex;align-items:flex-start;justify-content:center;gap:16px;margin:2px 0 16px}
.demo-nomore__list{text-align:left;font-size:18px;line-height:1.25;color:#839393}
.demo-nomore__list p{margin:0 0 8px}
.demo-nomore__list p:last-child{margin:0}
.demo-nomore__more{font-family:'Permanent Marker',cursive;font-weight:400;color:var(--navy);font-size:26px;margin-right:10px}
.demo-nomore__list .hl{color:var(--navy)}
.demo-nomore__money{flex:0 0 auto;width:74px;height:auto}
.demo-nomore__vec{display:none}

.demo-recap-value{font-size:16px;line-height:1.28;color:#707070;max-width:428px;margin:0 auto 14px}
.demo-recap-value .hl{color:var(--navy)}

.demo-recap-cta{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:4px}
.demo-recap-cta .demo-btn{margin-top:0}
.demo-recap-cta__arrows{display:flex;flex-direction:column;gap:6px;flex:0 0 auto;align-items:center}
.demo-ar{display:block;height:auto;opacity:.92}
.demo-ar--l1{width:44px;transform:scaleX(-1)}
.demo-ar--l2{width:40px;transform:scaleX(-1)}
.demo-ar--r1{width:40px}
.demo-ar--r2{width:38px;transform:scaleY(-1)}
.demo-mar{display:block;height:auto;opacity:.92}
.demo-recap-value.demo-recap-value--m{font-family:'Permanent Marker',cursive;font-weight:400;font-size:23px;line-height:1.1;color:var(--navy)}
.demo-free{font-weight:500}
.demo-sub-sm{font-size:.9em;color:#707070}
.demo-recap-btn{display:flex;align-items:center;justify-content:center;text-decoration:none;max-width:280px;margin:0 auto}
.demo-mk{font-family:'Permanent Marker',cursive;font-weight:400}


/* ---- assistant mascot icon + heading (phone entry 2387:9076) ---- */
.demo-h--icon{display:flex;align-items:center;justify-content:center;gap:10px}
.demo-assist{position:relative;display:inline-block;width:52px;height:52px;flex:0 0 auto;transform:rotate(15deg)}
.demo-assist img{position:absolute;inset:0;width:100%;height:100%;display:block}
.demo-assist .demo-assist__g{inset:1.67%}

/* ---- in-call (2370:8769) ---- */
.demo-incall{position:relative}
.demo-incall::before{content:"";position:absolute;inset:-30px -44px;z-index:0;pointer-events:none;background:url('assets/demo-checker.svg') center top/cover no-repeat;opacity:.05}
.demo-incall>*{position:relative;z-index:1}
.demo-incall__head{display:flex;align-items:center;gap:12px;margin:6px 0 26px}
.demo-incall__head .demo-assist{transform:rotate(-12deg);margin-top:0}
.demo-incall__title{font-size:clamp(20px,2.6vw,26px);line-height:1.25;color:var(--navy);margin:0;font-weight:400}
.demo-incall__expect{font-family:'Permanent Marker',cursive;font-weight:400;font-size:28px;color:#0a0a0a;margin:0 0 14px;transform:rotate(-0.3deg)}
.demo-incall__list{margin:0;padding-left:34px;color:#839393;font-size:20px;line-height:1.3;list-style:decimal}
.demo-incall__list li{margin-bottom:10px}
.demo-incall__list li:last-child{margin-bottom:0}

/* ---- demo limit inline message (2370:8877) ---- */
.demo-limitmsg{color:#d64545;font-size:14px;line-height:1.5;text-align:center;margin:2px 2px 8px}
.demo-limitmsg__link{color:var(--blue);text-decoration:none;font-weight:600}
.demo-limitmsg__link:hover{text-decoration:underline}

/* ---- mobile ---- */
@media (max-width:768px){
  .demo-backdrop{padding:16px 10px;align-items:flex-start}
  .demo-card{padding:22px 18px 16px;border-radius:14px}
  .demo-h{font-size:24px}
  .demo-code{gap:7px}
  .demo-code input{height:50px;font-size:24px}
  .demo-input{font-size:16px}
  .demo-logo{height:26px;margin:0 auto 16px}
  .demo-recap-title{font-size:22px;margin:0 0 14px;letter-spacing:0;line-height:1.05;white-space:nowrap}
  .demo-recap-sub{font-size:16px;line-height:1.35;margin:0 auto 20px;max-width:none}
  .demo-sub-l1{white-space:nowrap;font-size:clamp(10.5px,3.4vw,16px)}
  .demo-sub-sm{font-size:clamp(9.5px,2.9vw,14px)}
  .demo-transcript{max-height:246px;padding:16px;margin:0 0 24px;border-radius:16px}
  .demo-turn{gap:9px;margin-bottom:12px}
  .demo-turn__text{font-size:14.5px;line-height:1.4}
  .demo-nomore{display:block;position:relative;margin:0 0 16px}
  .demo-nomore__vec{display:block;position:absolute;left:50%;top:48%;width:115px;height:115px;transform:translate(-50%,-50%) rotate(28deg);opacity:.15;pointer-events:none;z-index:0}
  .demo-nomore__vec img{position:absolute;inset:0;width:100%;height:100%;display:block}
  .demo-nomore__list{position:relative;z-index:1;font-size:18px;text-align:center;line-height:1.3}
  .demo-nomore__list p{margin:0 0 7px}
  .demo-nomore__more{font-size:23px;margin-right:8px;color:#000}
  .demo-recap-value{font-size:16px;margin:0 auto 16px}
  .demo-recap-cta{gap:6px}
  .demo-recap-cta__arrows{display:flex;gap:5px}
  .demo-mar--lu{width:34px}
  .demo-mar--ll{width:30px}
  .demo-mar--ru{width:24px;transform:rotate(-19.64deg) scaleY(-1)}
  .demo-mar--rl{width:26px;transform:rotate(-19.64deg)}
  .demo-recap-btn{max-width:250px;font-size:17px}
  .demo-assist{width:44px;height:44px}
  .demo-incall__title{font-size:20px}
  .demo-incall__expect{font-size:24px}
  .demo-incall__list{font-size:17px;padding-left:28px}
}
