:root{
  color-scheme:light;
  --ink:#1e2b24;--muted:#4d5f54;--top:#244d40;--deep:#214e3e;
  --accent:#1c664f;--paper:#fff;--line:#d4ddd5;--room:#f0ede3;--you:#dceccf;--wash:#edf3ec;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:#e6ebe5;color:var(--ink);font:1rem/1.5 system-ui,-apple-system,BlinkMacSystemFont,sans-serif}
button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}
a,button,input{touch-action:manipulation}
:focus-visible{outline:3px solid #1b755a;outline-offset:3px}
.top :focus-visible{outline-color:#e4f3d9}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.shell{min-height:100vh;min-height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr);isolation:isolate}
.top{
  min-width:0;display:flex;align-items:center;justify-content:space-between;gap:.5rem;
  background:var(--top);color:#fff;
  padding:calc(clamp(.55rem,2vw,.75rem) + env(safe-area-inset-top,0px)) max(1rem,env(safe-area-inset-right,0px)) clamp(.55rem,2vw,.75rem) max(1rem,env(safe-area-inset-left,0px));
  box-shadow:0 1px 0 #143929
}
.brand{display:flex;align-items:center;gap:.7rem;min-width:0;line-height:1.2}
.brand p{margin:.2rem 0 0;color:#e3ede5;font-size:.875rem}
.brand .brand-name{margin:0;color:#fff;font-size:1.16rem;font-weight:750;letter-spacing:-.015em}
.mark{display:grid;place-items:center; flex:0 0 44px; border-radius:50%;background:#43644b}
.reset{display:flex;align-items:center;justify-content:center;gap:.4rem;min-width:44px;min-height:44px;padding:.35rem .5rem;border:0;border-radius:999px;background:none;color:#fff;font-weight:650;font-size:.875rem;white-space:nowrap}
.reset:hover{background:#ffffff18}.reset span{display:none}
.chat{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;min-width:0;min-height:0}
.chatbar{
  display:flex;justify-content:space-between;align-items:center;gap:.35rem;background:#f8faf6;
  border-bottom:1px solid #d4ddd3;
  padding:.42rem max(.75rem,env(safe-area-inset-right,0px)) .42rem max(.75rem,env(safe-area-inset-left,0px))
}
.chat-context{min-width:0}
.chat-context h2{width:fit-content;margin:0 0 .12rem;font-size:1rem;font-weight:770;line-height:1.2;letter-spacing:-.015em}
.current-step{margin:0;color:var(--muted);font-size:.875rem;line-height:1.25;text-wrap:pretty}
.calc{
  display:inline-flex;align-items:center;gap:.25rem;flex:none;min-height:44px;padding:.25rem .5rem;
  border:1px solid #d4ddd5;border-radius:.65rem;background:#fff;color:var(--deep);font-weight:700;font-size:.875rem;white-space:nowrap
}
.calc:hover{background:#e4eee5}
.log{
  min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;
  padding:1rem max(clamp(.75rem,3vw,1.6rem),env(safe-area-inset-right,0px)) 1rem max(clamp(.75rem,3vw,1.6rem),env(safe-area-inset-left,0px));
  background-color:var(--room);background-image:radial-gradient(circle,#61766216 .75px,transparent 1.25px);background-size:16px 16px
}
.log:focus-visible{outline-offset:-3px}
.day{display:table;margin:.15rem auto 1rem;padding:.2rem .65rem;border-radius:7px;background:#fbfaf5;color:#506056;font-size:.8125rem;font-weight:660;box-shadow:0 1px 2px #253d2d12}
.bubble{
  width:fit-content;max-width:min(88%,32rem);margin:0 0 .65rem;padding:.65rem .8rem .42rem;
  background:var(--paper);box-shadow:0 1px 2px #283d2e21;border-radius:3px 11px 11px 11px;
  overflow-wrap:anywhere;overflow:hidden
}
.bubble.you{margin-left:auto;border-radius:11px 3px 11px 11px;background:var(--you)}
.bubble-body{white-space:pre-line}.bubble time{display:block;text-align:right;color:#495b50;font-size:.75rem;margin:.15rem 0 0;line-height:1.15}
.bubble.quote{width:min(94%,25rem);max-width:94%}
.quote-img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:7px}
.file{display:inline-flex;align-items:center;min-height:40px;color:var(--deep);font-size:.875rem;font-weight:650;text-underline-offset:2px}
.composer-area{padding:.55rem max(.75rem,env(safe-area-inset-right,0px)) calc(.55rem + env(safe-area-inset-bottom,0px)) max(.75rem,env(safe-area-inset-left,0px));background:#f7f9f5;border-top:1px solid #d9dfd7}
.actions{display:grid;grid-template-columns:minmax(0,1fr);gap:.2rem;padding:.15rem .05rem .35rem}
.action-title{font-size:.875rem;font-weight:700;color:var(--muted);padding-inline:.35rem}
.action-options{display:flex;flex-wrap:wrap;gap:.4rem;padding:.15rem .15rem}
.actions:empty{display:none}
.actions button{flex:none;min-height:44px;padding:.25rem .67rem;border:1px solid #c7d8cb;border-radius:999px;background:#fff;color:var(--deep);font-size:.875rem;font-weight:650;max-width:100%;text-align:left;text-wrap:pretty}
.actions button:hover{background:#eaf2e9}
#composer{margin:0}.compose{display:flex;align-items:center;gap:.45rem}
.compose input{
  min-width:0;flex:1;min-height:46px;padding:.5rem .9rem;border:1px solid #c5d4c9;
  border-radius:999px;color:var(--ink);background:white
}
.compose input::placeholder{color:#55635b}
.compose button{
  display:grid;place-items:center;flex:0 0 46px;height:46px;border:0;border-radius:50%;padding:0;
  color:#fff;background:var(--accent)
}
.compose button:hover:not(:disabled){background:#205943}
#chat-help,.send-status{margin:.4rem .25rem 0;color:var(--muted);font-size:.8125rem;line-height:1.3}
.send-status,.message-delivery{color:#69501a}
.send-status:empty{margin:0}
.message-delivery{display:block;font-size:.8125rem;font-weight:650;line-height:1.25}
.progress{
  position:fixed;inset:auto 0 0;width:100%;max-width:100%;max-height:min(86vh,45rem);max-height:min(86dvh,45rem);
  margin:0;padding:0;border:1px solid var(--line);border-radius:16px 16px 0 0;background:#f8faf6;color:var(--ink);
  overflow:auto;overscroll-behavior:contain;box-shadow:0 -12px 40px #12291f29
}
.progress::backdrop{background:#10241ac4}
.progress .sectionhead{
  position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;gap:.5rem;z-index:1;
  padding:.65rem 1rem;border-bottom:1px solid var(--line);background:#f8faf6
}
.sectionhead h2{margin:0;font-size:1.08rem;line-height:1.3}
.detail-subtitle{color:var(--muted);font-size:.875rem;margin:.12rem 0 0}
.close{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--deep)}
.close:hover{background:var(--wash)}
h3{margin:0;font-size:1rem}
#steps{list-style:none;margin:0;padding:.65rem 1rem;counter-reset:steps;display:grid;gap:.4rem}
#steps li{display:flex;align-items:center;gap:.55rem;counter-increment:steps;color:var(--muted);font-size:.875rem}
#steps li::before{content:counter(steps);display:grid;place-items:center;flex:0 0 1.65rem;height:1.65rem;border-radius:50%;background:#e7eee7;font-size:.85rem;font-weight:700}
#steps li.done::before{content:"✓";background:#dbeedc;color:var(--deep)}
#steps li.current{color:var(--ink);font-weight:730}
#steps li.current::before{background:var(--accent);color:#fff}
.trace-panel{background:#243e33;color:#fff;padding:.8rem;margin:0 .8rem .8rem;border-radius:11px}
.trace-help{margin:.2rem 0 .65rem;color:#dcebe0;font-size:.875rem}
#traces{list-style:none;margin:0;padding:0;display:grid;gap:.38rem}
#traces li{padding:.45rem .55rem;border:1px solid #688578;border-radius:7px;font-size:.875rem;background:#305046;color:#fff;overflow-wrap:anywhere}
#traces li strong{display:block;color:#e1f3df}
#traces li span{display:block;margin:.1rem 0 0;font-variant-numeric:tabular-nums}
#traces li.trace-total{border-color:#afdbb9;background:#3b5b46}
#traces li.trace-change{background:#3f5048}
#traces li.trace-held{border-color:#edcf7c;color:#fff1c0}
#traces li.trace-held strong{color:#fff1c0}
@media(prefers-reduced-motion:no-preference){.trace-enter{animation:reveal .23s ease-out}@keyframes reveal{from{opacity:.4;transform:translateY(3px)}to{opacity:1;transform:none}}}
.catalog,.summary{margin:0 .8rem .8rem;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 .65rem}
.catalog summary{min-height:44px;padding:.55rem 0;cursor:pointer;color:var(--deep);font-weight:690}
.catalog dl,.summary dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.3rem .55rem;margin:0 0 .65rem;font-size:.875rem}
.catalog dd,.summary dd{margin:0;text-align:right;font-weight:650;overflow-wrap:anywhere}
.summary{padding:.55rem .65rem}.summary dl{margin:.35rem 0 0}.summary p{margin:.25rem 0 0;color:var(--muted)}
.note{margin:0 .8rem .8rem;background:#fff6da;color:#5b4617;padding:.5rem .6rem;border-radius:7px;font-size:.875rem}
@media(min-width:480px){
  .reset span{display:inline}
  .enter-chat{width:auto}
  .composer-area{padding-inline:max(1rem,env(safe-area-inset-left,0px)) max(1rem,env(safe-area-inset-right,0px))}
}
@media(min-width:720px){
  .progress{inset:0;width:min(calc(100% - 2rem),36rem);margin:auto;border-radius:16px}
  #steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .chatbar{padding-inline:1rem}
}
.progress:not([open]){display:none}
.progress.fallback-open{z-index:3;box-shadow:0 0 0 100vmax #10241ac4}

@media(max-width:420px){
  .action-options{gap:.3rem}
  .actions button{padding-inline:.55rem}
  .scenario-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .scenario-options button{border-radius:.6rem;line-height:1.25}
}
@media(max-width:719px) and (max-height:570px){
  .welcome{padding-top:1.1rem;gap:1rem}
  .welcome-lead{margin-block:.65rem 1rem}
}
@media(max-height:460px){.chat{overflow:auto;grid-template-rows:auto minmax(6rem,1fr) auto}}
@media(prefers-reduced-motion:reduce){.typing-dots i{animation:none}}

.actions button.confirm-quote{background:var(--accent);color:#fff;border-color:var(--accent)}
.actions button.confirm-quote:hover{background:var(--deep);border-color:var(--deep)}

.example-picker{border:1px solid #cad9ce;border-radius:.7rem;background:#fff;margin-inline:.15rem;color:var(--deep)}
.example-picker summary{min-height:44px;padding:.55rem .7rem;font-size:.875rem;font-weight:700;cursor:pointer}
.example-picker[open] summary{border-bottom:1px solid var(--line)}
.example-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(10rem,100%),1fr));gap:.3rem;padding:.45rem;max-height:min(11rem,28vh);overflow:auto;overscroll-behavior:contain}
.example-options button{border-radius:.55rem;text-align:left;white-space:normal;color:var(--deep)}
.catalog .catalog-help{color:var(--muted)}



/* The demo sits beside the pitch on desktop and follows it immediately on phones. */
:root {
  --ink:#192c23; --muted:#486052; --top:#163b2b; --deep:#174633;
  --accent:#176449; --line:#d6e2d7; --room:#eef4ed; --you:#d8eddb;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
}
body{background:#f8faf6;color:var(--ink);font:1rem/1.5 "Aptos","Segoe UI",system-ui,sans-serif}
.shell{
  width:min(100% - 3rem,77rem);min-height:100dvh;margin-inline:auto;
  grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);grid-template-rows:auto auto auto auto 1fr;
  align-items:start;column-gap:1.65rem;row-gap:1rem;padding-bottom:1rem;
}
.top{
  grid-column:1/-1;background:transparent;color:var(--ink);box-shadow:none;border-bottom:1px solid var(--line);
  padding:calc(.65rem + env(safe-area-inset-top,0px)) .1rem .65rem;
}
.top :focus-visible{outline-color:#1b755a}
.brand .brand-name{color:#143b2b;font-size:1.55rem;font-weight:800;letter-spacing:-.02em}
.brand p,.reset{color:var(--muted)}
.mark{border-radius:.8rem;background:#285b43}
.reset{border-radius:.55rem}.reset:hover{background:#e4efe4}
.welcome{
  grid-column:1;min-width:0;padding:clamp(1.1rem,3vw,2.1rem);
  background:#e4f0e1;border:1px solid #d6e6d6;border-radius:1.15rem;color:var(--ink)
}
.kicker{margin:0 0 .65rem;color:#2d6145;font-size:.875rem;font-weight:750}
.welcome h1{margin:0;font-size:clamp(2rem,4.5vw,3.9rem);line-height:1.05;letter-spacing:-.04em;text-wrap:balance}
.welcome h1 em{font-style:normal;color:#176449}
.welcome-lead{max-width:25rem;margin:.8rem 0 1.15rem;color:#2d4b3a;line-height:1.5;text-wrap:pretty}
.enter-chat,.sales-return summary,.sales-return button{
  min-height:44px;border-radius:.65rem;padding:.6rem .9rem;font-weight:750
}
.enter-chat{display:inline-flex;align-items:center;background:var(--accent);color:#fff;text-decoration:none}
.enter-chat:hover{background:#134f3a}
.chat{
  grid-column:2;grid-row:2/6;width:100%;min-height:clamp(32rem,calc(100dvh - 8rem),45rem);
  grid-template-rows:auto minmax(11rem,1fr) auto;
  border:1px solid #c5d7c9;border-radius:1.15rem;overflow:clip;background:white;
  box-shadow:0 12px 30px #1838230b
}
.chatbar{background:#fff;color:var(--ink);padding:.65rem .9rem;gap:.65rem}
.chat-avatar{display:grid;place-items:center;flex:0 0 2.5rem;min-height:2.5rem;border-radius:50%;background:#dceedd;color:#174633;font-weight:800;font-size:.875rem}
.chat-context{flex:1}.chat-context h2{font-size:1.1rem}.current-step{font-size:.8125rem}
.calc{border-color:#d3e0d3;background:#f7faf6}
.log{max-height:clamp(15rem,48dvh,33rem);background-image:none}
.day{background:transparent;box-shadow:none;margin:0 auto .7rem}
.bubble{max-width:min(94%,32rem);border:1px solid #e0e9e0;box-shadow:none;border-radius:.25rem .9rem .9rem}
.bubble.you{border-color:#cee4d0;border-radius:.9rem .25rem .9rem .9rem}
.composer-area{background:#fff}
.compose input{border-radius:.7rem;font-size:max(1rem,1em);min-height:48px;scroll-margin-block:2rem}
.compose button{border-radius:.7rem;min-width:48px;min-height:48px}
#chat-help,.send-status{margin:.35rem 0;color:var(--muted)}
.actions{margin-top:.55rem;padding:0}
.action-title,.action-options{padding-inline:0}
.example-picker{margin-inline:0;background:#f6faf5;border-color:#d8e6d8}
.actions button{border-radius:.6rem}
.sales-return{grid-column:1;min-width:0;border:1px solid #d4e3d4;border-radius:.8rem;background:#fff}
.sales-return summary{cursor:pointer;background:#e4f0e1;color:var(--deep)}
.sales-return summary:hover{background:#d9ead8}
.sales-return[open] summary{border-bottom:1px solid var(--line);border-radius:.8rem .8rem 0 0}
.sales-return p{margin:.65rem .9rem;color:var(--muted)}
.sales-return p:empty{display:none}
.sales-return button{margin:0 .9rem .75rem;border:0;background:var(--accent);color:white}
.demo-scope{grid-column:1;margin:0;color:var(--muted);font-size:.875rem}

@media(max-width:800px){
  .shell{
    width:min(100% - 1.25rem,36rem);grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto;row-gap:.6rem;padding-bottom:max(.75rem,env(safe-area-inset-bottom,0px))
  }
  .top{padding-bottom:.45rem}.brand{gap:.55rem}.brand p{font-size:.8125rem}.brand .brand-name{font-size:1.35rem}
  .reset span{display:none}.mark{flex-basis:2.35rem}.mark svg{width:2.35rem;height:2.35rem}
  .welcome{padding:.38rem .15rem .2rem;background:none;border:0}
  .kicker{margin:0 0 .24rem;font-size:.8125rem}
  .welcome h1{font-size:clamp(1.65rem,6.5vw,2.65rem);letter-spacing:-.035em;text-wrap:initial}
  .welcome-lead{margin:.35rem 0 0;line-height:1.4}
  .enter-chat{display:none}
  .chat{grid-column:1;grid-row:auto;min-height:0;grid-template-rows:auto minmax(8rem,1fr) auto;border-radius:.9rem}
  .chatbar{padding:.42rem .55rem;gap:.45rem}.chat-avatar{flex-basis:2rem;min-height:2rem}
  .chat-context h2{font-size:1rem}.calc{padding-inline:.4rem}
  .log{max-height:clamp(9rem,30dvh,16rem);min-height:8rem;padding:.55rem}
  .day{margin:0 auto .25rem;padding:0 .4rem}.bubble{padding:.45rem .55rem .35rem;margin-bottom:.35rem}
  .composer-area{padding:.5rem}.actions{margin-top:.42rem}
  .scenario-options{display:flex;flex-wrap:wrap}
  .scenario-options button{min-width:0;flex:1 1 9rem;line-height:1.25}
  .example-options{max-height:min(11rem,26dvh)}
  .demo-scope{padding-inline:.15rem}
}
