:root{
  /* Larauna palette (matches the marketing site + /admin + portal) */
  --accent:#FF5C2B; --accent-ink:#D6410F; --accent2:#FF4D6D;
  --bg:#FBFAF8; --surface:#FFFFFF; --soft:#F5F3EF;
  --line:#ECE7DF; --line-strong:#E3DDD2;
  --text:#17140F; --ink-2:#514B43; --muted:#8A8378;
  --good:#10B981; --warn:#B45309; --bad:#DC2626;
  /* Standard semantic trio names (§4.1) — shared across site/admin/portal/sandbox/guides. */
  --ok:#16A34A; --ok-tint:#F0FDF4; --ok-text:#15803D; --warn-tint:#FFFBEB; --warn-text:#B45309; --danger:#DC2626; --danger-tint:#FEF2F2; --danger-text:#B91C1C;
  --radius:14px;
  --font-d:'Space Grotesk',system-ui,sans-serif;
  --font-b:'DM Sans',system-ui,sans-serif;
  --shadow-sm:0 1px 2px rgba(23,20,15,.05), 0 2px 8px rgba(23,20,15,.04);
  --shadow:0 4px 14px rgba(23,20,15,.06), 0 12px 40px rgba(23,20,15,.07);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font-b); font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased;
}
.wrap{max-width:980px; margin:0 auto; padding:0 20px}
a{color:var(--accent-ink); text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{font-family:var(--font-d); line-height:1.12; margin:0; color:var(--text); letter-spacing:-.01em}
button{font-family:inherit; cursor:pointer}
::selection{background:rgba(255,92,43,.18)}

/* banner */
.demo-banner{
  position:relative; z-index:30; display:flex; align-items:center; gap:10px;
  justify-content:center; flex-wrap:wrap; padding:9px 16px;
  background:rgba(255,92,43,.09); border-bottom:1px solid var(--line);
  font-size:13.5px; color:var(--ink-2); backdrop-filter:blur(8px);
}
.demo-banner .dot{width:9px; height:9px; border-radius:50%; background:var(--good); box-shadow:0 0 0 4px rgba(16,185,129,.16)}
.demo-banner strong{font-weight:600; color:var(--text)}
.ghost{
  background:var(--surface); color:var(--ink-2); border:1px solid var(--line-strong);
  border-radius:999px; padding:4px 12px; font-size:12.5px; transition:.15s;
}
.ghost:hover{color:var(--accent-ink); border-color:var(--accent)}

/* journey strip — the live E2E spine, pinned to the top */
.journey{position:sticky; top:0; z-index:20; background:var(--bg); border-bottom:1px solid var(--line); box-shadow:0 2px 10px rgba(23,20,15,.05)}
.j-inner{padding:10px 20px 8px}
.j-head{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:2px}
.j-eyebrow{font-size:11px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--accent-ink); font-family:var(--font-d)}
.j-now{font-size:12px; color:var(--muted)} .j-now b{color:var(--accent-ink); font-weight:500}
.j-play{margin-left:auto; font-size:12.5px; font-weight:500; border-radius:999px; padding:5px 13px; border:1px solid var(--accent); background:rgba(255,92,43,.08); color:var(--accent-ink); cursor:pointer; transition:.15s}
.j-play:hover{background:rgba(255,92,43,.16)}
.j-track{position:relative; height:92px}
.j-rail{position:absolute; left:5%; right:6%; top:48px; height:4px; border-radius:2px; background:repeating-linear-gradient(90deg,var(--line-strong) 0 7px,transparent 7px 15px); background-size:15px 4px; animation:j-belt .7s linear infinite}
.j-stn{position:absolute; top:32px; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:5px; width:72px; background:none; border:none; padding:0; cursor:pointer}
.j-orb{position:relative; width:32px; height:32px; border-radius:50%; border:1.5px solid var(--line-strong); background:var(--surface); display:flex; align-items:center; justify-content:center; transition:.3s}
.j-spin{width:14px; height:14px; border-radius:50%; border:2px solid var(--accent); border-top-color:transparent; opacity:0}
.j-ck{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:700; color:#0f7a52; opacity:0}
.j-lbl{font-size:10.5px; color:var(--muted); white-space:nowrap; transition:.2s}
.j-stn:hover .j-lbl{color:var(--accent-ink)}
.j-stn.active .j-orb{border-color:var(--accent); background:rgba(255,92,43,.10)}
.j-stn.active .j-spin{opacity:1; animation:j-spin .8s linear infinite}
.j-stn.active .j-orb::after{content:""; position:absolute; inset:-5px; border-radius:50%; border:1.5px solid var(--accent); animation:j-ping 1.3s ease-out infinite}
.j-stn.active .j-lbl{color:var(--accent-ink); font-weight:500}
.j-stn.done .j-orb{border-color:#10B981; background:rgba(16,185,129,.12)}
.j-stn.done .j-spin{display:none}
.j-stn.done .j-ck{opacity:1}
.j-lead{position:absolute; top:0; left:5%; transform:translateX(-50%); display:flex; align-items:center; gap:6px; background:var(--surface); border:1.5px solid var(--accent); border-radius:999px; padding:3px 11px 3px 3px; font-size:11.5px; font-weight:500; color:var(--text); box-shadow:0 2px 8px rgba(216,90,48,.20); opacity:0; transition:left .8s cubic-bezier(.45,0,.2,1), opacity .3s; white-space:nowrap; z-index:3}
.j-lead .j-av{width:20px; height:20px; border-radius:50%; background:var(--accent); color:#fff; display:flex; align-items:center; justify-content:center; font-size:10px}
.crm-cta{margin-top:12px; width:100%; background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; border:none; border-radius:8px; padding:9px 12px; font-size:13px; font-weight:600; cursor:pointer; transition:.15s}
.crm-cta:hover{filter:brightness(1.06)}
.j-pop{position:absolute; z-index:40; background:var(--surface); border:0.5px solid var(--line-strong); border-radius:12px; box-shadow:var(--shadow); padding:12px 14px; font-size:12.5px; color:var(--ink-2); display:none; line-height:1.5}
.j-pop-h{display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px}
.j-pop-h b{font-size:13.5px; color:var(--text); font-family:var(--font-d); font-weight:600}
.j-pop-x{background:none; border:none; font-size:17px; line-height:1; color:var(--muted); cursor:pointer; padding:0 2px}
.j-pop-x:hover{color:var(--accent-ink)}
.j-pop-what{margin:0 0 7px}
.j-pop-do{margin:0 0 9px; color:var(--text)}
.j-pop-do span{color:var(--accent-ink); font-weight:500}
.j-pop-link{font-size:12px; color:var(--accent-ink); font-weight:500; text-decoration:none}
.j-pop-link:hover{text-decoration:underline}
.j-pop::before{content:""; position:absolute; top:-6px; left:var(--ax,24px); transform:translateX(-50%) rotate(45deg); width:11px; height:11px; background:var(--surface); border-left:0.5px solid var(--line-strong); border-top:0.5px solid var(--line-strong)}
@keyframes j-spin{to{transform:rotate(360deg)}}
@keyframes j-belt{to{background-position:15px 0}}
@keyframes j-ping{from{transform:scale(1); opacity:.7} to{transform:scale(1.7); opacity:0}}

/* hero */
.hero{padding:40px 0 24px; background:
  radial-gradient(720px 360px at 12% -12%, rgba(255,92,43,.12), transparent 60%),
  radial-gradient(640px 320px at 100% -4%, rgba(255,77,109,.10), transparent 55%);
}
.eyebrow{margin:0 0 12px; letter-spacing:.18em; text-transform:uppercase; font-size:12px; font-weight:600;
  font-family:var(--font-d); color:var(--accent-ink)}
.hero h1{font-size:clamp(28px,5vw,46px); font-weight:600; max-width:18ch}
.lede{margin:16px 0 0; max-width:62ch; color:var(--ink-2); font-size:17px}
.hero-nav{display:flex; gap:12px; flex-wrap:wrap; margin-top:26px}
.hero-nav a{
  display:flex; align-items:center; gap:8px; padding:11px 16px; border-radius:999px;
  background:var(--surface); border:1px solid var(--line-strong); color:var(--text); font-size:14px; font-weight:500;
  box-shadow:var(--shadow-sm);
}
.hero-nav a:hover{border-color:var(--accent); text-decoration:none}
.hero-nav a .n{color:var(--accent-ink); font-weight:600; font-family:var(--font-d)}

/* panels */
.panel{margin:40px 0; padding:28px; background:var(--surface); border:1px solid var(--line-strong); border-radius:18px; scroll-margin-top:60px; box-shadow:var(--shadow-sm)}
.panel-head h2{font-size:23px; font-weight:600; display:flex; align-items:center; gap:12px; flex-wrap:wrap}
.kicker{font-size:11px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--accent-ink);
  background:rgba(255,92,43,.08); border:1px solid var(--line-strong); border-radius:999px; padding:3px 10px}
.sub{color:var(--ink-2); margin:12px 0 0; max-width:70ch; font-size:15px}

/* council controls */
.controls{margin-top:22px}
.tasks{display:flex; gap:8px; flex-wrap:wrap}
.tasks button{
  background:var(--surface); color:var(--ink-2); border:1px solid var(--line-strong);
  border-radius:999px; padding:8px 16px; font-size:14px; font-weight:500; transition:.15s;
}
.tasks button:hover{color:var(--text); border-color:var(--accent)}
.tasks button[aria-selected="true"]{background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; border-color:transparent; box-shadow:0 4px 14px rgba(255,92,43,.28)}
.run-row{display:flex; gap:14px; align-items:flex-end; flex-wrap:wrap; margin-top:18px}
.field{display:flex; flex-direction:column; gap:6px; flex:1; min-width:240px}
.field span{font-size:12.5px; color:var(--muted)}
select, .chat-input input{
  background:var(--surface); color:var(--text); border:1px solid var(--line-strong); border-radius:10px;
  padding:11px 12px; font-size:16px; width:100%; appearance:none;
}
select:focus, .chat-input input:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(255,92,43,.18)}
.primary{
  background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; border:none;
  border-radius:10px; padding:12px 22px; font-size:15px; font-weight:600; transition:.15s; white-space:nowrap;
  box-shadow:0 6px 20px rgba(255,92,43,.30);
}
.primary:hover{filter:brightness(1.05)}
.primary:disabled{opacity:.55; cursor:not-allowed; filter:none; box-shadow:none}
.task-blurb{color:var(--ink-2); font-size:13.5px; margin:14px 0 0}

/* stage — agent reasoning */
.stage{margin-top:22px; display:flex; flex-direction:column; gap:12px}
.stage-empty{color:var(--muted); font-size:14px; border:1px dashed var(--line-strong); border-radius:var(--radius); padding:22px; text-align:center; background:var(--soft)}
.case-head{display:flex; align-items:center; gap:10px; flex-wrap:wrap; color:var(--muted); font-size:13px}
.case-head .pill{background:var(--soft); border:1px solid var(--line-strong); border-radius:999px; padding:2px 10px; color:var(--ink-2)}
.agent{
  display:flex; gap:14px; padding:14px 16px; border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); box-shadow:var(--shadow-sm);
  opacity:0; transform:translateY(6px); transition:opacity .35s, transform .35s, border-color .35s;
}
.agent.show{opacity:1; transform:none}
.agent .idx{
  flex:none; width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:600; font-family:var(--font-d); background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff;
}
.agent .body{flex:1; min-width:0}
.agent .name{font-weight:600; font-size:15px; font-family:var(--font-d); display:flex; align-items:center; gap:9px; flex-wrap:wrap}
.agent .role{font-size:11px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--accent-ink);
  background:rgba(255,92,43,.08); border:1px solid var(--line-strong); border-radius:999px; padding:2px 8px}
.agent .reason{font-size:12px; color:var(--muted); font-style:italic}
.agent .finding{margin:7px 0 0; font-size:14.5px; color:var(--text)}
.agent .detail{margin:5px 0 0; font-size:13px; color:var(--ink-2)}
.agent.thinking .name::after{content:"thinking…"; font-weight:400; font-size:12.5px; color:var(--muted); font-family:var(--font-b)}
.agent.skipped{opacity:.78; border-style:dashed; background:var(--soft); box-shadow:none}
.agent.skipped .idx{background:transparent; border:1px dashed var(--line-strong); color:var(--muted)}
.agent.skipped .role{background:transparent}

.info-btn{flex:none; align-self:flex-start; width:22px; height:22px; border-radius:50%; border:1px solid var(--line-strong);
  background:var(--surface); color:var(--ink-2); font-family:var(--font-d); font-style:italic; font-weight:600; font-size:13px;
  line-height:1; display:flex; align-items:center; justify-content:center; transition:.15s}
.info-btn:hover{color:var(--accent-ink); border-color:var(--accent)}
.info-btn[aria-expanded="true"]{background:var(--accent); color:#fff; border-color:transparent}
.agent-info{margin:10px 0 0; padding:11px 12px; background:var(--soft); border:1px solid var(--line); border-radius:10px; font-size:12.5px; color:var(--ink-2)}
.agent-info p{margin:0 0 6px} .agent-info p:last-child{margin:0}
.agent-info b{color:var(--text); font-weight:600}
.lead-link{margin:12px 0 0; font-size:12px; color:var(--muted)}
.lead-link-btn{margin-top:14px; background:none; border:none; color:var(--accent-ink); font-size:12.5px; font-weight:500; cursor:pointer; padding:0}
.lead-link-btn:hover{text-decoration:underline}
.pcard-wrap{margin-top:12px}
.pcard{border:1px solid var(--line-strong); border-radius:14px; background:var(--surface); box-shadow:var(--shadow); padding:16px 18px; max-width:560px}
.pc-hd{display:flex; align-items:center; gap:12px; margin-bottom:14px}
.pc-av{width:42px; height:42px; flex:none; border-radius:11px; background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:600; font-family:var(--font-d); font-size:15px}
.pc-id{flex:1; min-width:0}
.pc-name{font-weight:600; font-size:17px; font-family:var(--font-d); display:flex; align-items:center; gap:8px}
.pc-score{font-size:11px; font-weight:600; color:var(--accent-ink); background:rgba(255,92,43,.12); border-radius:999px; padding:1px 8px}
.pc-status{font-size:11px; font-weight:600; border-radius:999px; padding:1px 8px}
.pc-status.lost{color:var(--bad); background:rgba(220,38,38,.10)}
.pc-status.archived{color:var(--muted); background:var(--soft)}
.pc-sub{font-size:13px; color:var(--muted); margin-top:2px}
.pc-stepper{display:flex; align-items:flex-start; margin:6px 0 16px}
.pc-step{display:flex; flex-direction:column; align-items:center; gap:5px; flex:none}
.pc-dot{width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:600; border:1.5px solid var(--line-strong); background:var(--surface); color:var(--muted)}
.pc-slbl{font-size:10.5px; color:var(--muted)}
.pc-step.active .pc-dot{background:var(--accent); border-color:var(--accent); color:#fff}
.pc-step.active .pc-slbl{color:var(--accent-ink); font-weight:600}
.pc-step.done .pc-dot{background:var(--surface); border-color:var(--accent); color:var(--accent-ink)}
.pc-step.done .pc-slbl{color:var(--ink-2)}
.pc-conn{flex:1; height:2px; background:var(--line-strong); margin:13px 4px 0}
.pc-actions{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px}
.pc-btn{font-size:12.5px; font-weight:500; border-radius:8px; padding:7px 13px; border:1px solid var(--line-strong); background:var(--surface); color:var(--text); cursor:pointer}
.pc-btn.primary{background:var(--accent); border-color:var(--accent); color:#fff}
.pc-btn.ghost{color:var(--accent-ink)}
.pc-fields{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:16px}
.pc-f{background:var(--soft); border:1px solid var(--line); border-radius:9px; padding:8px 11px}
.pc-fk{font-size:10px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:2px}
.pc-fv{font-size:13.5px; font-weight:500; color:var(--text); word-break:break-word}
.pc-sec-h{font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); font-family:var(--font-d); margin:4px 0 9px}
.pc-noteinput{display:flex; align-items:center; justify-content:space-between; gap:10px; background:var(--surface); border:1px solid var(--line-strong); border-radius:9px; padding:9px 11px; margin-bottom:10px}
.pc-ni-ph{font-size:13px; color:var(--muted)}
.pc-addnote{font-size:12px; font-weight:500; color:#fff; background:var(--accent); border-radius:7px; padding:5px 11px; white-space:nowrap; cursor:pointer}
.pc-note{border:1px solid var(--line-strong); border-left:3px solid var(--accent); border-radius:8px; background:var(--soft); padding:10px 12px; margin-bottom:10px}
.pc-note-h{font-size:11.5px; color:var(--accent-ink); font-weight:600; margin-bottom:6px}
.pc-note pre{margin:0; white-space:pre-wrap; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px; line-height:1.5; color:var(--text)}
.pc-hnote{background:var(--soft); border:1px solid var(--line-strong); border-radius:8px; padding:10px 12px; margin-bottom:10px}
.pc-hnote-b{font-size:13px; color:var(--text); line-height:1.5}
.pc-hnote-m{font-size:11px; color:var(--muted); margin-top:5px}
.pc-empty{font-size:12.5px; color:var(--muted); margin-bottom:10px}
.pc-msg{max-width:88%; font-size:12.5px; padding:7px 11px; border-radius:11px; margin-bottom:7px}
.pc-msg.me{margin-left:auto; background:rgba(255,92,43,.10); border:1px solid var(--line-strong); color:var(--text)}
.pc-msg.bot{background:var(--soft); border:1px solid var(--line); color:var(--text)}
.pc-actlist{margin-top:2px}
.pc-act{display:flex; gap:10px; padding:5px 0}
.pc-act-dot{flex:none; width:9px; height:9px; border-radius:50%; background:var(--line-strong); margin-top:4px}
.pc-act-dot.hot{background:var(--accent)}
.pc-act-t{font-size:13px; color:var(--text)}
.pc-act-m{font-size:11px; color:var(--muted)}
.pc-demo-note{margin-top:14px; padding-top:10px; border-top:1px dashed var(--line-strong); font-size:11px; color:var(--muted); font-style:italic}

.decision{border:1.5px solid var(--accent); border-radius:var(--radius); padding:18px; background:rgba(255,92,43,.05)}
.decision .d-head{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap}
.decision h3{font-size:16px; font-weight:600}
.decision .conf{font-size:12.5px; color:var(--muted)}
.decision pre{
  margin:12px 0 0; white-space:pre-wrap; font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:13px; line-height:1.55; color:var(--text); background:var(--soft); border:1px solid var(--line); border-radius:10px; padding:13px;
}
.flags{display:flex; gap:8px; flex-wrap:wrap; margin-top:12px}
.flag{font-size:12px; background:rgba(220,38,38,.08); color:var(--bad); border:1px solid rgba(220,38,38,.28); border-radius:999px; padding:3px 10px}
.gate{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:14px; padding-top:14px; border-top:1px solid var(--line)}
.gate button{background:var(--soft); color:var(--ink-2); border:1px solid var(--line-strong); border-radius:10px; padding:9px 18px; font-size:14px; font-weight:600}
.gate .gate-note{font-size:12.5px; color:var(--ink-2)}
.gate .lock{color:var(--warn)}
.gate .approve-btn{background:var(--accent); color:#fff; border-color:var(--accent); cursor:pointer; transition:.15s}
.gate .approve-btn:hover{filter:brightness(1.06)}
.gate button.approved{background:rgba(16,185,129,.12); color:#0f7a52; border-color:#10B981}
.gate button.approved.won{background:rgba(255,92,43,.12); color:var(--accent-ink); border-color:var(--accent)}
.gate .won-btn{background:var(--surface); color:var(--accent-ink); border:1px solid var(--accent); border-radius:10px; padding:9px 16px; font-size:14px; font-weight:600; cursor:pointer; transition:.15s}
.gate .won-btn:hover{background:rgba(255,92,43,.08)}

/* concierge */
.concierge-grid{display:grid; grid-template-columns:1fr 280px; gap:18px; margin-top:22px}
.chat{display:flex; flex-direction:column; border:1px solid var(--line-strong); border-radius:var(--radius); background:var(--surface); min-height:360px; box-shadow:var(--shadow-sm)}
.chat-log{flex:1; padding:16px; display:flex; flex-direction:column; gap:10px; overflow-y:auto; max-height:420px}
.msg{max-width:84%; padding:10px 14px; border-radius:14px; font-size:14.5px}
.msg.bot{align-self:flex-start; background:var(--soft); border:1px solid var(--line)}
.msg.me{align-self:flex-end; background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff}
.msg.flagged{border-color:rgba(180,83,9,.4)}
.chips{display:flex; gap:8px; flex-wrap:wrap; padding:0 16px 12px}
.chips button{background:var(--surface); border:1px solid var(--line-strong); color:var(--ink-2); border-radius:999px; padding:6px 12px; font-size:12.5px}
.chips button:hover{color:var(--accent-ink); border-color:var(--accent)}
.chat-input{display:flex; gap:10px; padding:12px 16px; border-top:1px solid var(--line)}
.crm-card{border:1px solid var(--line-strong); border-radius:var(--radius); background:var(--surface); padding:18px; align-self:start; box-shadow:var(--shadow-sm)}
.crm-title{margin:0 0 12px; font-size:12px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--accent-ink); font-family:var(--font-d)}
.crm-empty{color:var(--muted); font-size:13.5px; margin:0}
.crm-row{display:flex; justify-content:space-between; gap:10px; font-size:13.5px; padding:7px 0; border-bottom:1px solid var(--line)}
.crm-row span:first-child{color:var(--muted)}
.score-bar{height:8px; border-radius:999px; background:var(--soft); border:1px solid var(--line); overflow:hidden; margin-top:6px}
.score-bar i{display:block; height:100%; background:linear-gradient(90deg,var(--accent),var(--accent2))}

/* care */
.care-flow{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:22px}
.care-step{border:1px solid var(--line-strong); border-radius:var(--radius); background:var(--surface); padding:16px; display:flex; flex-direction:column; gap:8px; box-shadow:var(--shadow-sm)}
.cstep-head{display:flex; align-items:center; justify-content:space-between; gap:8px}
.care-step .who{font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--accent-ink); font-family:var(--font-d)}
.care-step h3{font-size:15px; font-weight:600}
.care-step .ctext{font-size:13.5px; color:var(--text); white-space:pre-wrap}
.care-step .cnote{font-size:12.5px; color:var(--muted)}
.care-step pre{white-space:pre-wrap; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px; line-height:1.5; background:var(--soft); border:1px solid var(--line); border-radius:10px; padding:11px; margin:0; color:var(--text)}
.care-mini{font-size:12px; color:var(--ink-2)}
.care-mini b{color:var(--text); font-weight:600}

.foot{padding:30px 0 50px; color:var(--muted); font-size:13.5px; text-align:center}

@media (max-width:760px){
  .panel{padding:20px}
  .concierge-grid{grid-template-columns:1fr}
  .care-flow{grid-template-columns:1fr}
  .run-row{flex-direction:column; align-items:stretch}
  .primary{width:100%}
  .journey{position:relative}
  .j-stn{width:50px} .j-lbl{font-size:9px}
  .j-track{height:86px}
  .autonomy{flex-wrap:wrap}
  .autonomy .seg{width:100%}
}

/* ── Autonomy dial (demo: automation grows with confidence) ── */
.autonomy{display:flex; align-items:center; gap:12px; margin-top:16px; flex-wrap:wrap}
.autonomy-lbl{font-family:var(--font-d); font-weight:600; font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted)}
.seg{display:inline-flex; background:var(--soft); border:1px solid var(--line-strong); border-radius:999px; padding:3px}
.seg-btn{font-family:var(--font-b); font-weight:600; font-size:12.5px; color:var(--ink-2); background:transparent; border:0; border-radius:999px; padding:7px 14px; cursor:pointer; transition:all .15s ease; white-space:nowrap}
.seg-btn:hover{color:var(--text)}
.seg-btn.is-on{background:var(--surface); color:var(--accent-ink); box-shadow:var(--shadow-sm)}
.autonomy-hint{font-size:12.5px; color:var(--muted); flex:1; min-width:180px}
.gate.auto{background:rgba(16,185,129,.06); border-radius:10px; padding:10px 12px}
.auto-badge{display:inline-flex; align-items:center; gap:6px; font-family:var(--font-d); font-weight:600; font-size:13px; color:#0f7a52; background:rgba(16,185,129,.12); border:1px solid rgba(16,185,129,.4); border-radius:999px; padding:6px 13px}
.gate .lock.ok{color:var(--good)}
.run-closing{margin:14px 0 0; font-size:13px; color:var(--ink-2); text-align:center; line-height:1.5}
.run-closing b{color:var(--accent-ink)}


/* ═══ Story mode (§2.5) — visibility toggle + first-visit layer ═══ */
#story-root{display:none}
body.story-on #story-root{display:block}
body.story-on .demo-banner,
body.story-on #journey,
body.story-on .hero,
body.story-on main.wrap,
body.story-on .foot{display:none !important}
#story-root .sm-continue{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:120;display:none;align-items:center;gap:8px;font-weight:600;font-size:.9rem;padding:12px 22px;border-radius:999px;border:none;background:linear-gradient(135deg,#221b15,#15110d);color:#fff;box-shadow:0 6px 20px rgba(23,20,15,.3);cursor:pointer}
@media(prefers-reduced-motion:reduce){
  #story-root .j-stn.active .j-orb,#story-root .chip,#story-root .dial.spot,#story-root .narr .dot{animation:none !important}
}

/* ═══ Sandbox Story mode (§2.5) — scoped under #story-root ═══ */
#story-root .journey {position:sticky;top:0;z-index:50;background:rgba(251,250,248,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);padding:14px 0 18px}
#story-root .j-head {display:flex;align-items:center;gap:12px;font-size:.75rem;color:var(--muted);margin-bottom:12px}
#story-root .j-head .eyebrow {font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-ink)}
#story-root .j-now b {color:var(--ink)}
#story-root .j-exit {margin-left:auto;font-size:.75rem;color:var(--muted);text-decoration:underline;background:none;border:none}
#story-root .j-track {position:relative;height:44px}
#story-root .j-rail {position:absolute;left:2%;right:2%;top:12px;height:3px;background:var(--line-2);border-radius:3px}
#story-root .j-rail-fill {position:absolute;left:2%;top:12px;height:3px;width:0;background:linear-gradient(90deg,var(--accent),#FF4D6D);border-radius:3px;transition:width .9s var(--ease)}
#story-root .j-stn {position:absolute;top:4px;transform:translateX(-50%);background:none;border:none;text-align:center}
#story-root .j-orb {display:block;width:19px;height:19px;margin:0 auto;border-radius:50%;background:var(--surface);border:2px solid var(--line-2);transition:all .3s;position:relative}
#story-root .j-stn.active .j-orb {border-color:var(--accent);box-shadow:0 0 0 5px rgba(255,92,43,.15);animation:sm-pulse 1.6s infinite}
#story-root .j-stn.done .j-orb {background:var(--ok);border-color:var(--ok)}
#story-root .j-stn.done .j-orb::after {content:"✓";position:absolute;inset:0;color:#fff;font-size:.62rem;font-weight:800;display:grid;place-items:center}
@keyframes sm-sm-pulse{0%,100%{box-shadow:0 0 0 4px rgba(255,92,43,.16)}50%{box-shadow:0 0 0 8px rgba(255,92,43,.07)}}
#story-root .j-lbl {display:block;font-size:.66rem;font-weight:600;color:var(--muted);margin-top:4px;white-space:nowrap}
#story-root .j-stn.active .j-lbl, #story-root .j-stn.done .j-lbl {color:var(--ink)}
#story-root .j-lead {position:absolute;top:-8px;left:5%;transform:translateX(-50%);transition:left 1.1s var(--ease);z-index:2;pointer-events:none;opacity:0}
#story-root .j-lead.show {opacity:1}
#story-root .j-lead span {display:inline-block;background:var(--ink);color:#fff;font-size:.64rem;font-weight:700;padding:3px 9px;border-radius:999px;box-shadow:var(--shadow)}
#story-root section.panel {padding:44px 0;transition:opacity .5s,filter .5s}
#story-root section.panel.dim {opacity:.32;filter:saturate(.6);pointer-events:none}
#story-root .panel-card {background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:26px}
#story-root .kicker {font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-ink);display:block;margin-bottom:6px}
#story-root .panel h2 {font-size:1.3rem;margin-bottom:4px}
#story-root .panel .sub {font-size:.86rem;color:var(--ink-2);margin-bottom:18px}
#story-root .chat-grid {display:grid;grid-template-columns:1.4fr 1fr;gap:16px}
@media(max-width:760px){
  #story-root .chat-grid {grid-template-columns:1fr}
}
#story-root .chat-log {border:1px solid var(--line);border-radius:var(--radius);padding:14px;min-height:190px;display:flex;flex-direction:column;gap:9px;background:#FDFCFB}
#story-root .msg {max-width:85%;padding:9px 13px;border-radius:13px;font-size:.86rem;opacity:0;transform:translateY(6px);animation:sm-msgIn .35s forwards}
@keyframes sm-sm-msgIn{to{opacity:1;transform:none}}
#story-root .msg.bot {background:var(--surface);border:1px solid var(--line);align-self:flex-start}
#story-root .msg.user {background:var(--ink);color:#fff;align-self:flex-end}
#story-root .chip-hint {font-size:.74rem;font-weight:700;color:var(--accent-ink);margin-top:12px;display:flex;align-items:center;gap:6px}
#story-root .chip-hint::before {content:"👆"}
#story-root .chips {display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
#story-root .chip {border:1.5px solid var(--accent);background:var(--surface);border-radius:999px;padding:9px 16px;font-size:.84rem;font-weight:600;color:var(--accent-ink);transition:all .2s;animation:sm-chipPulse 1.8s infinite}
#story-root .chip:hover {background:var(--accent);color:#fff;animation:none}
@keyframes sm-sm-chipPulse{0%,100%{box-shadow:0 0 0 3px rgba(255,92,43,.14)}50%{box-shadow:0 0 0 8px rgba(255,92,43,.03)}}
#story-root .crm {border:1px solid var(--line);border-radius:var(--radius);padding:16px;background:var(--surface)}
#story-root .crm .t {font-family:var(--font-d);font-weight:600;font-size:.82rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:10px}
#story-root .crm .empty {font-size:.82rem;color:var(--muted)}
#story-root .crm .row {display:flex;justify-content:space-between;font-size:.84rem;padding:5px 0;border-bottom:1px dashed var(--line)}
#story-root .crm .row b {font-weight:600}
#story-root .score {display:inline-block;background:var(--ok-tint);color:var(--ok-text);font-weight:700;font-size:.78rem;padding:2px 10px;border-radius:999px}
#story-root .narr {display:flex;align-items:center;gap:10px;background:#17140F;color:#F5F3EF;border-radius:11px;padding:10px 16px;font-size:.85rem;margin-bottom:16px;min-height:42px}
#story-root .narr .dot {width:8px;height:8px;border-radius:50%;background:var(--accent);animation:sm-pulse 1.4s infinite;flex-shrink:0}
#story-root .agents {display:grid;gap:9px}
#story-root .agent {display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:12px 14px;opacity:0;transform:translateY(8px);transition:all .45s var(--ease);background:var(--surface)}
#story-root .agent.in {opacity:1;transform:none}
#story-root .agent.skip {opacity:.55;background:#FDFCFB}
#story-root .agent .av {width:32px;height:32px;border-radius:9px;display:grid;place-items:center;color:#fff;font-family:var(--font-d);font-weight:700;font-size:.78rem;flex-shrink:0}
#story-root .agent b {font-family:var(--font-d);font-size:.88rem;display:block}
#story-root .agent span {font-size:.8rem;color:var(--ink-2)}
#story-root .decision {border:2px solid var(--line-2);border-radius:var(--radius);padding:18px;margin-top:16px;display:none}
#story-root .decision.show {display:block;animation:sm-msgIn .4s forwards}
#story-root .decision .verdict {display:flex;align-items:center;gap:10px;font-family:var(--font-d);font-weight:600;margin-bottom:12px}
#story-root .dec-grid {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
@media(max-width:700px){
  #story-root .dec-grid {grid-template-columns:1fr}
}
#story-root .dec-cell {background:#FDFCFB;border:1px solid var(--line);border-radius:10px;padding:11px 13px}
#story-root .dc-l {display:block;font-family:var(--font-d);font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:5px}
#story-root .dc-v {font-size:.82rem;color:var(--ink-2);line-height:1.5}
#story-root .dc-v b {color:var(--ink)}
#story-root #smDocModal {position:fixed;inset:0;background:rgba(23,20,15,.5);z-index:300;display:none;align-items:center;justify-content:center;padding:18px}
#story-root #smDocModal.show {display:flex}
#story-root .doc {background:#fff;border-radius:16px;max-width:520px;width:100%;max-height:86vh;overflow:auto;box-shadow:var(--shadow)}
#story-root .doc-head {display:flex;align-items:center;gap:10px;padding:16px 22px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff}
#story-root .doc-head .mark {width:26px;height:26px;border-radius:7px;background:linear-gradient(135deg,#FF7A45,#FF4D6D);display:grid;place-items:center;color:#fff;font-family:var(--font-d);font-weight:700;font-size:.8rem}
#story-root .doc-head b {font-family:var(--font-d)}
#story-root .doc-head .dtag {margin-left:auto;font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--warn);background:var(--warn-tint);border:1px solid #d9770633;padding:3px 10px;border-radius:999px}
#story-root .doc-body {padding:26px 28px;font-size:.85rem;color:var(--ink-2)}
#story-root .letterhead {display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid var(--ink);padding-bottom:14px;margin-bottom:16px}
#story-root .lh-mark {display:inline-grid;place-items:center;width:26px;height:26px;border-radius:7px;background:linear-gradient(135deg,#FF7A45,#FF4D6D);color:#fff;font-family:var(--font-d);font-weight:700;font-size:.8rem;margin-right:8px;vertical-align:middle}
#story-root .lh-name {font-family:var(--font-d);font-weight:700;font-size:1.05rem;color:var(--ink);vertical-align:middle}
#story-root .lh-tag {display:block;font-size:.68rem;color:var(--muted);margin-top:4px}
#story-root .lh-meta {text-align:right;font-size:.7rem;color:var(--muted);line-height:1.6}
#story-root .doc-to {font-size:.8rem;margin-bottom:14px;line-height:1.5}
#story-root .doc-to b {color:var(--ink)}
#story-root .doc-to span {color:var(--muted)}
#story-root .doc-body h3 {font-size:1.1rem;color:var(--ink);margin-bottom:8px}
#story-root .doc-lede {margin-bottom:6px;line-height:1.6}
#story-root .doc-body h4 {font-family:var(--font-d);font-size:.78rem;text-transform:uppercase;letter-spacing:.07em;color:var(--ink);margin:16px 0 7px;border-bottom:1px solid var(--line);padding-bottom:4px}
#story-root .doc-body ul {margin:0 0 4px 18px}
#story-root .doc-body li {margin-bottom:5px;line-height:1.55}
#story-root .doc-p {line-height:1.6}
#story-root .doc-table {width:100%;border-collapse:collapse;font-size:.8rem;margin-top:4px}
#story-root .doc-table th {text-align:left;font-family:var(--font-d);font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding:6px 10px;border-bottom:1.5px solid var(--line-2)}
#story-root .doc-table td {padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:top}
#story-root .doc-fine {font-size:.72rem;color:var(--muted);margin-top:10px;line-height:1.55}
#story-root .doc-sign {display:flex;justify-content:space-between;align-items:flex-end;margin-top:20px;padding-top:14px;border-top:1px solid var(--line);font-size:.78rem;line-height:1.5}
#story-root .doc-sign .sig {font-family:'Space Grotesk';font-style:italic;font-size:1.25rem;color:var(--ink)}
#story-root .doc-sign b {color:var(--ink)}
#story-root .doc-stamp {border:2px solid var(--warn);color:var(--warn);font-family:var(--font-d);font-weight:700;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;text-align:center;padding:8px 14px;border-radius:8px;transform:rotate(-6deg);line-height:1.5}
#story-root .doc-foot {display:flex;gap:10px;align-items:center;padding:14px 22px;border-top:1px solid var(--line);position:sticky;bottom:0;background:#fff}
#story-root .btn-ghost {background:#fff;color:var(--ink);border:1px solid var(--line-2);border-radius:11px;padding:11px 18px;font-weight:600;font-size:.88rem}
#story-root .badge-ok {background:var(--ok-tint);color:var(--ok-text);font-size:.75rem;font-weight:700;padding:4px 12px;border-radius:999px}
#story-root .gate {display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:6px}
#story-root .btn {display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:.9rem;padding:11px 20px;border-radius:11px;border:1px solid transparent;background:linear-gradient(135deg,#221b15,#15110d);color:#fff;box-shadow:0 4px 14px rgba(23,20,15,.18),0 0 22px rgba(255,92,43,.3)}
#story-root .dial {display:flex;align-items:center;gap:8px;border:1px solid var(--line-2);border-radius:999px;padding:4px;position:relative}
#story-root .dial button {border:none;background:none;font-size:.78rem;font-weight:700;padding:7px 14px;border-radius:999px;color:var(--muted)}
#story-root .dial button.on {background:var(--ink);color:#fff}
#story-root .dial.sm-spot {animation:sm-spot 1.5s infinite;border-color:var(--indigo)}
@keyframes sm-sm-spot{0%,100%{box-shadow:0 0 0 4px rgba(79,70,229,.18)}50%{box-shadow:0 0 0 9px rgba(79,70,229,.06)}}
#story-root .dial-hint {font-size:.76rem;color:var(--indigo);font-weight:600}
#story-root .auto-badge {display:none;background:var(--ok-tint);color:var(--ok-text);border:1px solid #16a34a33;font-size:.78rem;font-weight:700;padding:6px 14px;border-radius:999px}
#story-root .ticket {border:1px solid var(--line);border-left:4px solid var(--warn);border-radius:10px;padding:13px 16px;font-size:.85rem;background:var(--warn-tint);margin-bottom:12px;opacity:0}
#story-root .ticket.in {animation:sm-msgIn .4s forwards}
#story-root .report {border:1px solid var(--line-2);border-radius:var(--radius);font-size:.85rem;display:none;overflow:hidden;background:var(--surface);box-shadow:var(--shadow-sm, 0 1px 2px rgba(23,20,15,.05))}
#story-root .report.show {display:block;animation:sm-msgIn .4s forwards}
#story-root .report-head {display:flex;align-items:center;gap:10px;padding:12px 16px;background:var(--warn-tint);border-bottom:1px solid #d9770633;font-family:var(--font-d);font-weight:600;font-size:.86rem}
#story-root .report-badge {margin-left:auto;font-size:.66rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--warn);border:1px solid #d9770655;background:#fff;padding:3px 10px;border-radius:999px;white-space:nowrap}
#story-root .report-body {padding:12px 14px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media(max-width:700px){
  #story-root .report-body {grid-template-columns:1fr}
}
#story-root .report-foot {display:flex;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid var(--line);flex-wrap:wrap}
#story-root .finale {background:#17140F;color:#F5F3EF;border-radius:var(--radius-lg);padding:34px 30px;text-align:center;display:none}
#story-root .finale.show {display:block;animation:sm-msgIn .5s forwards}
#story-root .finale h2 {color:#FBFAF8;font-size:1.5rem;margin-bottom:8px}
#story-root .finale p {color:#B8B0A4;font-size:.92rem;max-width:520px;margin:0 auto 18px}
#story-root .f-stats {display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-bottom:22px}
#story-root .f-stat {background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:12px 20px}
#story-root .f-stat b {font-family:var(--font-d);font-size:1.5rem;display:block;color:#FF8A5E}
#story-root .f-stat span {font-size:.74rem;color:#A79E90}
#story-root #smToasts {position:fixed;top:86px;right:18px;z-index:100;display:flex;flex-direction:column;gap:9px;max-width:320px}
#story-root .toast {background:var(--ink);color:#fff;border-radius:12px;padding:12px 16px;font-size:.84rem;box-shadow:var(--shadow);display:flex;gap:10px;align-items:flex-start;transform:translateX(120%);transition:transform .45s var(--ease)}
#story-root .toast.in {transform:none}
#story-root .toast .ic {flex-shrink:0}
#story-root .toast b {display:block;font-size:.84rem}
#story-root .toast span {font-size:.76rem;color:#C9C2B6}
#story-root .toast .tx {margin-left:auto;background:none;border:none;color:#8A8378;font-size:1rem;line-height:1;padding:0 0 0 6px;flex-shrink:0}
#story-root .toast .tx:hover {color:#fff}
#story-root #smCoach {position:fixed;inset:0;background:rgba(23,20,15,.45);z-index:200;display:flex;align-items:center;justify-content:center;padding:20px}
#story-root .coach-card {background:var(--surface);border-radius:var(--radius-lg);max-width:430px;padding:30px;text-align:center;box-shadow:var(--shadow)}
#story-root .coach-card h2 {font-size:1.25rem;margin-bottom:8px}
#story-root .coach-card p {font-size:.9rem;color:var(--ink-2);margin-bottom:20px}


/* ═══ Story mode + journey — inline styles moved to CSS (strict CSP, no inline style attrs) ═══ */
.j-stn[data-node="chat"]{left:5%}.j-stn[data-node="new"]{left:20%}.j-stn[data-node="qualified"]{left:35%}.j-stn[data-node="contacted"]{left:50%}.j-stn[data-node="proposal"]{left:65%}.j-stn[data-node="won"]{left:80%}.j-stn[data-node="care"]{left:94%}
#story-root .j-stn[data-s="0"]{left:5%}#story-root .j-stn[data-s="1"]{left:20%}#story-root .j-stn[data-s="2"]{left:35%}#story-root .j-stn[data-s="3"]{left:50%}#story-root .j-stn[data-s="4"]{left:65%}#story-root .j-stn[data-s="5"]{left:80%}#story-root .j-stn[data-s="6"]{left:94%}
#smAg1 .av{background:linear-gradient(135deg,#FF7A45,#FF4D6D)}
#smAg2 .av{background:#8A8378}
#smAg3 .av{background:linear-gradient(135deg,#2563EB,#7C3AED)}
#smCareNarr{display:none}
#smReport .report-body>.dec-cell:nth-child(3){grid-column:1/-1}
#story-root .j-head [data-sm="restart"]{margin-left:auto}
#story-root .j-head #smExplore{margin-left:12px}
#story-root .verdict>span:last-child{font-size:.85rem;color:var(--ink-2)}
#smDec>p{font-size:.74rem;color:var(--muted);margin-top:12px}
#story-root .doc-foot>span:last-child{margin-left:auto;font-size:.72rem;color:var(--muted)}
#story-root .j-head>span{font-size:.72rem;color:var(--muted)}
#story-root .finale>p:last-of-type{font-size:1rem;color:#F5F3EF}
