/* Theme tokens copied from the trades demo. Mobile first: base rules are the phone layout, desktop starts at 900px. */
:root{--ink:#17221f;--muted:#6b7570;--line:#dce3df;--paper:#f6f8f5;--white:#fff;--green:#177d57;--green-soft:#e3f3eb;--blue:#336bdb;--amber:#c88616;--red:#ca513f;--bar-h:64px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;overflow-wrap:anywhere}
body.started{padding-bottom:calc(var(--bar-h) + env(safe-area-inset-bottom))}
button{font:inherit;color:inherit}
.hidden,[hidden]{display:none!important}

.shell{max-width:1320px;margin:auto;padding:16px 16px 22px}
.topbar{display:flex;justify-content:space-between;align-items:center}
.brand{display:flex;align-items:center;gap:10px;font-size:13px;letter-spacing:.18em;font-weight:800}
.brand-mark{display:grid;place-items:center;width:28px;height:28px;background:var(--ink);color:#fff;border-radius:50%;font:700 15px Georgia}
.demo-badge{font-size:11px;letter-spacing:.13em;color:var(--green);font-weight:800}
.pulse{display:inline-block;width:7px;height:7px;background:#47ad7d;border-radius:50%;margin-right:7px;box-shadow:0 0 0 4px #d9eee3;animation:pulse 2s ease-in-out infinite}
@keyframes pulse{50%{box-shadow:0 0 0 7px #d9eee300}}

/* Hero: short on phones, collapses once the demo is playing. */
.hero{padding:30px 0 20px}
.eyebrow{color:var(--green);font-size:12px;letter-spacing:.18em;font-weight:800;margin:0 0 12px}
.hero h1{font:500 36px/1.02 Georgia,serif;letter-spacing:-.04em;margin:0 0 14px}
.lede{color:var(--muted);font-size:16px;margin:0}
.hero-note{display:none}
body.started .hero{display:none}

/* Job picker */
.controls{margin:0 0 14px}
.controls-label{margin:0 0 8px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#55615b}
.chips{display:grid;gap:8px}
.chip{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-height:56px;padding:9px 14px;text-align:left;background:var(--white);border:1px solid var(--line);border-radius:12px;cursor:pointer}
.chip b{font-size:16px}
.chip span{font-size:15px;color:var(--muted)}
.chip[aria-checked=true]{border-color:var(--green);background:var(--green-soft);box-shadow:0 0 0 1px var(--green) inset}
.chip[aria-disabled=true]{opacity:.55;cursor:default}
.actions{display:flex;gap:10px;margin-top:12px}
.play{flex:1;display:flex;justify-content:center;align-items:center;gap:10px;min-height:56px;border:1px solid;border-radius:12px;font-size:18px;font-weight:700;cursor:pointer}
.primary{background:var(--green);color:#fff;border-color:var(--green)}
.primary:hover{background:#126b49}
.secondary{background:var(--white);color:#56635d;border:1px solid var(--line);border-radius:10px;min-height:44px;padding:0 16px;font-weight:700;cursor:pointer}
button:disabled{opacity:.5;cursor:not-allowed}
button:focus-visible{outline:3px solid #8cc9ac;outline-offset:2px}
.reset-desktop{display:none}
.play-note{margin:10px 0 0;text-align:center;color:var(--muted);font-size:15px}
body.started .controls{margin-bottom:10px}
body.started .play-note,body.started .controls-label{display:none}
body.started .chips{grid-template-columns:repeat(3,1fr)}
body.started .chip{min-height:44px;padding:6px 8px}
body.started .chip span{display:none}
body.started .chip b{font-size:15px}

/* Workspace: one column on phones */
.workspace{display:none;flex-direction:column;gap:12px}
body.started .workspace{display:flex}
.panel{background:var(--white);border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 25px #1b39200a;min-width:0;scroll-margin:12px 0 calc(var(--bar-h) + 16px)}
.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:15px 16px 12px;text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:800;color:#55615b;border-bottom:1px solid #eef2ef}
.status{font-size:11px;letter-spacing:.12em;padding:5px 9px;border-radius:20px}
.status.idle{background:#eef2ef;color:#6b7570}
.status.live{background:#e3f3eb;color:var(--green)}
.status.done{background:#e8f0ff;color:#416cc5}
.tag{background:var(--green-soft);color:var(--green);padding:4px 9px;border-radius:5px;font-size:11px;letter-spacing:.1em;font-weight:800}
.tag.quoted{background:#e8f0ff;color:#416cc5}
.tag.callback{background:#fff3dc;color:#9a6508}

/* 1. The call */
.call-meta{display:flex;align-items:center;gap:11px;padding:14px 16px}
.avatar{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:#e8eee9;color:var(--green);font-size:13px;font-weight:800}
.call-meta b,.call-meta small{display:block}
.call-meta small{font-size:15px;color:var(--muted);margin-top:2px}
.timer{margin-left:auto;font:15px ui-monospace,SFMono-Regular,monospace;color:var(--muted)}
.transcript{margin:0 16px 16px;min-height:160px;border:1px solid #edf1ee;border-radius:10px;background:#fbfcfb;padding:14px}
.empty-state{min-height:130px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;color:var(--muted);text-align:center;font-size:15px}
.empty-state b{color:var(--ink);font-size:16px}
.phone-glyph{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--green-soft);color:var(--green);font-size:22px;margin-bottom:6px}
.utterance{display:flex;margin-bottom:12px;animation:rise .25s ease}
.utterance:last-child{margin-bottom:0}
.utterance{scroll-margin-bottom:calc(var(--bar-h) + 16px)}
.utterance.caller{flex-direction:row-reverse}
.bubble{max-width:88%;padding:10px 13px;border-radius:12px;background:#edf4ef;font-size:15px}
.caller .bubble{background:#eef1f6}
.bubble small{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.1em;margin-bottom:3px}
@keyframes rise{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}

/* 2. Customer screens: stacked cards on phones, one at a time in a frame on desktop */
.phone{padding:12px 16px 16px;display:flex;flex-direction:column;gap:14px}
.phone-notch{display:none}
.phone-empty{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;color:var(--muted);padding:22px 0;font-size:15px}
.phone-empty b{color:var(--ink);font-size:16px}
.phone.has-screens .phone-empty{display:none}
.screen{display:none;animation:rise .3s ease;scroll-margin:12px 0 calc(var(--bar-h) + 16px)}
.screen.reached{display:block}
.screen-cap{margin:0 0 6px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#55615b}
.sms{background:#eef1f6;border-radius:14px;padding:12px 14px}
.sms small{display:block;font-size:15px;font-weight:800;color:#55615b;margin-bottom:4px}
.sms p{margin:0;font-size:16px}
.upload,.quote{border:1px solid var(--line);border-radius:14px;padding:16px;background:#fff}
.upload-biz,.quote-biz{margin:0 0 4px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:var(--green)}
.upload h2{font:500 26px/1.1 Georgia,serif;letter-spacing:-.02em;margin:0 0 4px}
.upload-help{margin:0 0 12px;color:var(--muted);font-size:15px}
.drop{position:relative;aspect-ratio:4/3;border:2px dashed #b9c7bf;border-radius:12px;background:#fbfcfb;display:grid;place-items:center;overflow:hidden}
.drop-empty{color:var(--muted);font-size:15px}
.drop img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.drop.has-photo{border-style:solid;border-color:var(--line)}
.drop.has-photo .drop-empty{display:none}
.drop img.drop-in{animation:dropin .7s cubic-bezier(.2,.8,.2,1)}
@keyframes dropin{from{opacity:0;transform:translateY(-40px) scale(.96)}to{opacity:1;transform:none}}
.checking{display:flex;align-items:center;gap:10px;margin:12px 0 0;font-size:16px;font-weight:600}
.spinner{width:18px;height:18px;border:3px solid var(--green-soft);border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.tags{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.tags li{background:var(--green-soft);color:#0f6244;border-radius:20px;padding:6px 12px;font-size:15px;font-weight:600;animation:rise .25s ease}
.lines{list-style:none;margin:6px 0 0;padding:0}
.lines li{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #eef2ef;font-size:16px;animation:rise .25s ease}
.lines li span:first-child small{display:block;color:var(--muted);font-size:15px}
.lines li b{white-space:nowrap}
.total{display:flex;justify-content:space-between;align-items:baseline;padding:12px 0 2px}
.total span{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#55615b}
.total b{font:500 40px/1 Georgia,serif;letter-spacing:-.03em}
.quote-note{margin:4px 0 14px;color:var(--muted);font-size:15px}
.quote-actions{display:grid;gap:10px}
.big{min-height:52px;font-size:17px;border-radius:12px}
.quote-actions .secondary{min-height:52px}
.fakebtn{display:flex;align-items:center;justify-content:center;border:1px solid;text-align:center;font-weight:700;cursor:default;user-select:none;-webkit-user-select:none;pointer-events:none;transition:transform .15s}
.fakebtn.secondary{border-color:var(--line)}
.pressed{transform:scale(.97);box-shadow:0 0 0 4px #bfe3d0}
.slots{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.slot{min-height:44px;padding:0 16px;border:1px solid var(--line);background:#fff;border-radius:22px;font-weight:700;font-size:16px}
.slot.picked{background:var(--green);border-color:var(--green);color:#fff}
.confirm{display:flex;align-items:center;gap:12px;margin-top:12px;padding:12px 14px;background:var(--green-soft);border-radius:12px}
.confirm p{margin:0;font-size:17px;font-weight:700;color:#0f6244}
.confirm.callback{background:#fff3dc}
.confirm.callback p{color:#7d5206}
.tick{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:var(--green);color:#fff;font-weight:800}
.confirm.callback .tick{background:var(--amber)}
.prefer{margin:12px 0 0;font-size:15px;color:var(--muted)}
.linkbtn{background:none;border:0;padding:10px 4px;min-height:44px;color:var(--green);font-weight:700;text-decoration:underline;cursor:pointer}

/* 3. Job card */
.job-body{padding:14px 16px 16px}
.job-biz{margin:0 0 10px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:var(--green)}
.job-photo{display:grid;place-items:center;aspect-ratio:16/7;border-radius:10px;background:#f1f4f2;color:#8a958f;font-size:15px;overflow:hidden;margin-bottom:6px;position:relative}
.job-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.fields{margin:0}
.fields>div{padding:9px 0;border-bottom:1px solid #eef2ef}
.fields dt{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.12em}
.fields dd{margin:2px 0 0;font-size:16px;font-weight:700;color:#aab3ae}
.fields .filled dd{color:var(--ink);animation:rise .3s ease}
.fields .filled.flash dd{background:linear-gradient(90deg,var(--green-soft),transparent);border-radius:4px}
.pill{display:inline-block;padding:3px 10px;border-radius:6px;font-size:15px;background:var(--green-soft);color:var(--green)}
.pill.quoted{background:#e8f0ff;color:#416cc5}
.pill.callback{background:#fff3dc;color:#9a6508}
.chips-admin{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.chips-admin li{padding:9px 12px;border-radius:10px;background:#f1f4f2;font-size:15px;animation:rise .3s ease}
.chips-admin li::before{content:"✓ ";color:var(--green);font-weight:800}

.disclaimer{text-align:center;color:#6b7570;font-size:15px;margin:18px 0 12px}
footer{display:block;color:#6b7570;font-size:15px;letter-spacing:.02em;padding:8px 2px 0}
footer span{display:block;margin-top:6px}
footer a{color:inherit;text-decoration:underline;display:inline-flex;align-items:center;min-height:44px}

/* Sticky bottom bar: phones and tablets, only while a demo is open. */
.bar{display:none}
body.started .bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:20;align-items:center;gap:12px;min-height:var(--bar-h);padding:8px 16px calc(8px + env(safe-area-inset-bottom));background:#fffffff2;border-top:1px solid var(--line);box-shadow:0 -6px 20px #1b39200f;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.bar-step b{display:block;font-size:16px;line-height:1.1}
.bar-step span{font-size:15px;color:var(--green);font-weight:700}
.bar-dots{display:flex;gap:6px;margin-left:auto}
.bar-dots i{width:9px;height:9px;border-radius:50%;background:#dce3df}
.bar-dots i.on{background:var(--green)}
.bar .secondary{min-width:76px}

/* Tablet-ish: still one column, but keep it readable */
@media(min-width:600px){
  .shell{padding:22px 24px}
  .chips{grid-template-columns:repeat(3,1fr)}
  .workspace,.controls{max-width:680px;margin-left:auto;margin-right:auto}
  .hero{max-width:680px;margin:0 auto}
  .hero h1{font-size:46px}
}

/* Desktop: three panels side by side, customer screens inside a phone frame */
@media(min-width:900px){
  body.started{padding-bottom:0}
  .shell{padding:28px 34px 20px}
  .demo-badge{font-size:11px}
  .hero{display:flex;justify-content:space-between;gap:40px;padding:56px 0 32px;max-width:1060px;margin:0}
  body.started .hero{display:flex}
  .hero h1{font-size:clamp(40px,5vw,64px);line-height:.98;max-width:710px;margin-bottom:20px}
  .lede{max-width:570px}
  .hero-note{display:block;width:240px;border-left:1px solid #b9c7bf;padding:12px 0 12px 24px;align-self:end}
  .quote-mark{color:var(--green);font:48px Georgia;line-height:.5}
  .hero-note p{font:22px/1.08 Georgia,serif;margin:16px 0 20px}
  .hero-note small{color:var(--muted);font-size:12px}
  .controls{max-width:none;margin:0 0 18px;display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px}
  .controls-label{margin:0}
  .chips{display:flex;gap:10px}
  .chip{min-width:190px}
  .actions{margin:0}
  .play{flex:none;padding:0 28px;min-height:52px;font-size:16px}
  .reset-desktop{display:block}
  .play-note{margin:0;text-align:left}
  body.started .play-note,body.started .controls-label{display:block}
  body.started .chips{display:flex}
  body.started .chip{min-height:56px;padding:9px 14px}
  body.started .chip span{display:block}
  body.started .chip b{font-size:16px}
  .workspace,body.started .workspace{display:grid;grid-template-columns:minmax(0,1.15fr) 310px minmax(0,.95fr);gap:14px;align-items:stretch;max-width:none;margin:0}
  .panel{scroll-margin:0}
  .call .transcript{height:360px;overflow:auto;margin-bottom:18px}
  .empty-state{height:100%}
  .customer{display:flex;flex-direction:column}
  .phone{flex:1;position:relative;margin:16px auto 18px;width:262px;min-height:500px;padding:34px 12px 16px;border:7px solid #1d2a26;border-radius:34px;background:#fff;display:block;overflow:hidden}
  .phone-notch{display:block;position:absolute;top:0;left:50%;transform:translateX(-50%);width:92px;height:20px;background:#1d2a26;border-radius:0 0 14px 14px}
  .phone-empty{padding:90px 6px 0;font-size:14px}
  .screen{scroll-margin:0}
  .screen.reached{display:none}
  .screen.current{display:block}
  .screen-cap{display:none}
  .sms p{font-size:14px}
  .upload,.quote{border:0;padding:0}
  .upload h2{font-size:22px}
  .upload-help{font-size:13px}
  .drop-empty{font-size:13px}
  .checking,.tags li{font-size:14px}
  .lines li{font-size:14px;padding:8px 0}
  .lines li span:first-child small{font-size:12px}
  .total b{font-size:34px}
  .quote-note{font-size:12px}
  .big,.quote-actions .secondary{min-height:46px;font-size:15px}
  .slot{font-size:14px;padding:0 13px}
  .confirm p{font-size:15px}
  .prefer{font-size:13px}
  .bar,body.started .bar{display:none}
  .fields>div{display:grid;grid-template-columns:84px 1fr;gap:8px;align-items:baseline}
  .fields dd{margin:0}
  .job-photo{aspect-ratio:16/8}
}

@media(min-width:1180px){.phone{width:268px}}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
