:root{--primary:#2c5a40;--accent:#2c5a40;--accent-soft:#b9cfae;--accent-dark:#203f2e;
--tint:#e7ede2;--ink:#1a211c;--muted:#5b655d;
--line:#dce1da;--bg:#f3f4f0;--surface:#fff;--err:#b3261e;--radius:14px}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%}
body{overflow-x:hidden;font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,sans-serif;
color:var(--ink);background:var(--bg);overscroll-behavior:none}

#app{width:100%;max-width:480px;margin:0 auto;height:100dvh;display:flex;flex-direction:column;
background:var(--surface);box-shadow:0 0 60px rgba(26,33,28,.12)}

header{background:var(--primary);color:#fff;padding:14px 16px 0;flex:none}
.hrow{display:flex;align-items:center;gap:11px}
#bizLogo{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.15);
display:grid;place-items:center;font-size:19px;flex:none}
#bizName{font-weight:650;font-size:15.5px;letter-spacing:-.01em}
#bizTag{font-size:12px;opacity:.7;margin-top:1px}
.live{margin-left:auto;font-size:11px;background:rgba(255,255,255,.14);color:var(--accent-soft);
padding:4px 9px;border-radius:99px;display:flex;align-items:center;gap:5px}
.live b{width:6px;height:6px;border-radius:50%;background:var(--accent-soft);
animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
#progress{display:flex;gap:3px;padding:12px 0 10px}
#progress i{flex:1;height:3px;border-radius:99px;background:rgba(255,255,255,.2);
transition:background .35s}
#progress i.on{background:var(--accent-soft)}

#scroll{flex:1;overflow-y:auto;overflow-x:hidden;padding:18px 16px 8px;
-webkit-overflow-scrolling:touch;display:flex;flex-direction:column}
#stream{margin-top:auto;width:100%}
.row{display:flex;gap:9px;margin-bottom:12px;align-items:flex-end}
.row.me{justify-content:flex-end}
.avatar{width:28px;height:28px;border-radius:50%;background:var(--bg);
display:grid;place-items:center;font-size:14px;flex:none}
.bubble{max-width:82%;padding:11px 14px;border-radius:var(--radius);
background:var(--bg);font-size:15px;animation:in .28s ease-out}
.row.me .bubble{background:var(--primary);color:#fff;border-bottom-right-radius:4px}
.row.bot .bubble{border-bottom-left-radius:4px}
@keyframes in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.typing{display:flex;gap:4px;padding:14px}
.typing span{width:6px;height:6px;border-radius:50%;background:#93a094;
animation:bounce 1.3s infinite}
.typing span:nth-child(2){animation-delay:.18s}
.typing span:nth-child(3){animation-delay:.36s}
@keyframes bounce{0%,60%,100%{transform:none;opacity:.4}30%{transform:translateY(-5px);opacity:1}}

.receipt{margin:10px 0 6px;border-top:1px solid var(--line);padding-top:8px}
.receipt div{display:flex;justify-content:space-between;gap:12px;padding:3px 0;font-size:14px}
.receipt span{color:var(--muted)}

#dock{flex:none;padding:10px 16px calc(14px + env(safe-area-inset-bottom));
border-top:1px solid var(--line);background:var(--surface)}
#dock:empty{padding:0;border:0}

.chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}
.chip{border:1.5px solid var(--line);background:var(--surface);border-radius:99px;
padding:9px 13px;font:inherit;font-size:14px;cursor:pointer;transition:.15s}
.chip.wide{width:100%;text-align:center}
.chip:active{transform:scale(.97)}
.chip.on{border-color:var(--accent);background:var(--tint);color:var(--accent-dark);font-weight:600}

.stack{display:flex;flex-direction:column;gap:8px}
.opt{display:flex;justify-content:space-between;align-items:center;gap:10px;
border:1.5px solid var(--line);background:var(--surface);border-radius:var(--radius);
padding:14px;font:inherit;font-size:15px;cursor:pointer;text-align:left}
.opt em{font-style:normal;font-size:12.5px;color:var(--muted);flex:none}
.opt:active{border-color:var(--accent);background:var(--tint)}

.in{width:100%;border:1.5px solid var(--line);border-radius:11px;padding:13px 14px;
font:inherit;font-size:16px;margin-bottom:8px;background:var(--surface)}
.in:focus{outline:0;border-color:var(--accent)}
.ta{resize:none}
.two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.two .in{margin-bottom:8px}

.cta{width:100%;background:var(--primary);color:#fff;border:0;border-radius:11px;
padding:15px;font:inherit;font-size:16px;font-weight:650;cursor:pointer}
.cta:disabled{opacity:.4}
.cta:active:not(:disabled){transform:scale(.99)}
.ghost{width:100%;background:none;border:0;color:var(--muted);font:inherit;
font-size:14px;padding:11px;cursor:pointer;text-decoration:underline}
.fine{font-size:11.5px;color:var(--muted);text-align:center;margin:8px 0 0}

.hero{border:2px solid var(--accent);background:var(--tint);border-radius:var(--radius);
padding:16px;cursor:pointer;position:relative;animation:in .3s}
.hero:active{transform:scale(.99)}
.tag{position:absolute;top:-10px;left:14px;background:var(--accent);color:#fff;
font-size:11px;font-weight:700;padding:3px 9px;border-radius:99px;letter-spacing:.02em}
.hd{font-size:13px;color:var(--accent-dark);font-weight:600;margin-top:3px}
.ht{font-size:26px;font-weight:700;letter-spacing:-.02em;margin:1px 0 10px}
.hcta{background:var(--primary);color:#fff;border-radius:9px;padding:12px;
text-align:center;font-weight:650;font-size:15px}
.or{text-align:center;color:var(--muted);font-size:12px;margin:12px 0 8px}
.slots{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.slot{border:1.5px solid var(--line);background:var(--surface);border-radius:11px;
padding:12px 10px;font:inherit;cursor:pointer;display:flex;flex-direction:column;gap:2px}
.slot:active{border-color:var(--accent)}
.slot .d{font-size:12px;color:var(--muted)}
.slot .t{font-size:16px;font-weight:650}

.shake{animation:shake .32s}
@keyframes shake{0%,100%{transform:none}25%{transform:translateX(-6px)}
75%{transform:translateX(6px)}}

footer{flex:none;text-align:center;font-size:11px;color:var(--muted);
padding:0 0 calc(8px + env(safe-area-inset-bottom))}

/* ===========================================================================
   BRAND MARK, CALL BUTTON, INLINE ERRORS
   =========================================================================== */
.mark{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
#bizLogo:has(.mark){background:transparent}
.avatar:has(.mark){background:transparent}

.callbtn{margin-left:auto;width:32px;height:32px;border-radius:50%;flex:none;
background:rgba(255,255,255,.14);color:#fff;display:grid;place-items:center;
text-decoration:none;transition:background .16s}
.callbtn+.live{margin-left:8px}
.live b.off{animation:none;background:var(--accent-soft);opacity:.55}

.err{color:var(--err);font-size:13.5px;font-weight:600;margin:0 0 8px;line-height:1.35}

/* ===========================================================================
   TABLET + DESKTOP
   Mobile keeps the full-bleed chat. From 768px up it becomes a centered
   app-card on a brand wash; from 1024px a value panel sits beside it.
   =========================================================================== */
#shell{width:100%}
#pitch{display:none}

@media (min-width:768px){
  html,body{height:auto}
  body{background:linear-gradient(180deg,var(--tint) 0%,#cbd2c9 100%);min-height:100dvh}
  #shell{min-height:100dvh;display:flex;align-items:center;justify-content:center;
  padding:28px 20px;gap:44px}
  /* margin:0 overrides the base `margin:0 auto`: on a flex item an auto
     margin eats ALL the free space, which pinned the value panel to the
     left edge instead of centering the pair. */
  #app{margin:0;height:min(100dvh - 56px,880px);max-width:520px;border-radius:20px;
  overflow:hidden;box-shadow:0 26px 70px rgba(26,33,28,.30)}
  header{padding-top:18px}
  #scroll{padding:22px 22px 8px}
  #dock{padding:12px 22px calc(16px + env(safe-area-inset-bottom))}
}

@media (min-width:1024px){
  #app{flex:none;width:480px;max-width:480px}
  #pitch{display:block;flex:0 1 430px;max-width:430px;color:var(--ink)}
  .pitch-logo{width:56px;height:56px;border-radius:14px;display:block;margin-bottom:20px}
  .pitch-eyebrow{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--accent-dark);margin:0 0 12px}
  .pitch-h1{font-size:40px;line-height:1.08;letter-spacing:-.02em;font-weight:750;margin:0 0 16px}
  .pitch-sub{font-size:16.5px;line-height:1.6;color:var(--muted);margin:0 0 22px;max-width:40ch}
  .pitch-list{list-style:none;padding:0;margin:0 0 22px;display:grid;gap:11px}
  .pitch-list li{position:relative;padding-left:28px;font-size:15.5px;line-height:1.45}
  .pitch-list li::before{content:"";position:absolute;left:0;top:6px;width:16px;height:16px;
  border-radius:50%;background:var(--accent);
  -webkit-mask:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat,
  linear-gradient(#000,#000);-webkit-mask-composite:destination-out;mask-composite:exclude}
  .pitch-call{font-size:15px;color:var(--muted);margin:0}
  .pitch-call a{color:var(--accent-dark);font-weight:700;text-decoration:none;
  border-bottom:2px solid var(--accent-soft)}
  .pitch-call a:hover{border-bottom-color:var(--accent)}
}

@media (min-width:1280px){
  #shell{gap:64px}
  .pitch-h1{font-size:46px}
}

/* ---------- pointer (desktop) affordances: the funnel had none ---------- */
@media (hover:hover) and (pointer:fine){
  .chip,.opt,.slot,.cta,.hero,.ghost,.callbtn{
  transition:background .16s,border-color .16s,box-shadow .18s,transform .16s,color .16s}
  .chip:hover{border-color:var(--accent);background:var(--tint)}
  .opt:hover{border-color:var(--accent);background:var(--tint)}
  .slot:hover{border-color:var(--accent);background:var(--tint)}
  .hero:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(44,90,64,.20)}
  .cta:hover:not(:disabled){background:var(--accent-dark)}
  .ghost:hover{color:var(--ink)}
  .callbtn:hover{background:rgba(255,255,255,.28)}
}

/* ---------- keyboard focus: desktop users could not see focus at all ---------- */
.chip:focus-visible,.opt:focus-visible,.slot:focus-visible,.cta:focus-visible,
.ghost:focus-visible,.hero:focus-visible,.in:focus-visible,.callbtn:focus-visible,
.pitch-call a:focus-visible{
outline:3px solid rgba(44,90,64,.5);outline-offset:2px;border-radius:8px}
header .callbtn:focus-visible{outline-color:rgba(255,255,255,.85)}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms !important;transition-duration:.01ms !important}
}
