@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light; --ink:#182824; --muted:#697670; --soft:#8b9690; --line:#e2e6df;
  --paper:#f4f3ee; --white:#fffefa; --green:#16765b; --green-dark:#0f5945;
  --green-wash:#eaf4ee; --amber:#b7791f; --amber-wash:#fff5df; --red:#a64940;
  --mono:"DM Mono","SFMono-Regular",Consolas,monospace;
  --sans:"DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --display:"Manrope",var(--sans);
}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}
button,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.shell{width:min(1240px,calc(100% - 56px));margin:0 auto}
.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe3dc}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font:800 17px var(--display);letter-spacing:-.05em}
.brand-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--green);color:white;font:800 20px var(--display);transform:rotate(-5deg)}
.topbar-right{display:flex;align-items:center;gap:25px}.demo-label,.api-link{font-size:12px;color:var(--muted);text-decoration:none}
.demo-label{display:inline-flex;align-items:center;gap:8px}.live-dot{width:7px;height:7px;background:#42a77d;border-radius:50%;box-shadow:0 0 0 3px #dcefe4}
.api-link{font-weight:600}.api-link span{margin-left:4px;color:var(--green)}
.intro{display:flex;justify-content:space-between;align-items:end;padding:63px 0 40px}
.eyebrow,.field-label{margin:0;color:var(--green);font:500 10px var(--mono);letter-spacing:.085em}
h1,h2,h3,p{margin-top:0}h1{margin:16px 0 14px;font:700 clamp(38px,5vw,58px)/1.08 var(--display);letter-spacing:-.06em}
h1 em{color:var(--green);font-style:normal}.intro-text{max-width:520px;margin:0;color:var(--muted);font-size:15px;line-height:1.65}
.dataset-note{display:flex;align-items:center;gap:13px;padding:12px 17px;border:1px solid #dce2d9;border-radius:13px;background:rgba(255,254,250,.5)}
.note-icon{display:grid;place-items:center;width:28px;height:28px;color:var(--green);background:var(--green-wash);border-radius:8px;font-size:19px}
.dataset-note p{margin:0;color:var(--muted);font-size:11px;line-height:1.65}.dataset-note strong{color:var(--ink);font-size:12px}
.benchmark-note{color:#4f7960;font-size:9px;font-weight:600}
.workbench{display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);gap:17px;align-items:start}
.panel{background:var(--white);border:1px solid #e1e4dc;border-radius:17px;box-shadow:0 9px 30px rgba(33,50,42,.035)}
.input-panel{padding:26px 26px 20px}.panel-heading{display:flex;justify-content:space-between;align-items:start;gap:10px}
.panel-heading h2{margin:8px 0 0;font:700 19px var(--display);letter-spacing:-.035em}
.input-count{color:var(--soft);font:10px var(--mono);padding-top:3px}
textarea{display:block;width:100%;height:146px;margin-top:21px;padding:16px;border:1px solid #dce2da;border-radius:11px;outline:none;resize:vertical;background:#fff;color:var(--ink);font:14px/1.6 var(--sans);transition:border .2s,box-shadow .2s}
textarea::placeholder{color:#a3aca5}textarea:focus{border-color:#65a78c;box-shadow:0 0 0 3px rgba(22,118,91,.1)}
.form-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px}.input-hint{color:var(--soft);font-size:11px}
.primary-button{display:inline-flex;align-items:center;gap:16px;border:0;border-radius:9px;padding:11px 13px 11px 16px;background:var(--green);color:white;font-size:12px;font-weight:700;box-shadow:0 4px 10px rgba(22,118,91,.14);transition:background .18s,transform .18s}
.primary-button:hover{background:var(--green-dark);transform:translateY(-1px)}.primary-button:disabled{cursor:wait;opacity:.65;transform:none}.button-arrow{font-size:16px;font-weight:400}
.examples{margin-top:28px}.examples .eyebrow{color:var(--soft);font-size:9px}.example-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}
.example-chip{border:1px solid #e1e5de;border-radius:7px;padding:7px 9px;color:#56645d;background:#fbfbf7;font-size:10px;transition:.15s}
.example-chip:hover{color:var(--green-dark);border-color:#a4cbb6;background:#f2f8f3}.example-chip small{margin-left:4px;color:#8d9a8e;font:8px var(--mono)}
.privacy-note{display:flex;align-items:center;gap:8px;margin-top:21px;padding-top:14px;border-top:1px solid #edf0e9;color:#849088;font-size:10px}
.privacy-note span{color:var(--green);font-size:15px}.result-panel{position:relative;padding:26px 26px 22px;min-height:445px}
.result-heading{align-items:center}.state-badge{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;border-radius:999px;padding:7px 10px;font-size:10px;font-weight:700}
.state-badge.idle{color:#78847d;background:#f1f2ec}.state-badge.routed{color:var(--green-dark);background:var(--green-wash)}
.state-badge.review{color:#8a5c16;background:var(--amber-wash)}.state-badge.error{color:#8f3d36;background:#fbefec}
.state-dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.empty-state{min-height:340px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}
.empty-state p{margin:17px 0 5px;color:#52615a;font-size:13px;font-weight:700}
.empty-state>span{max-width:240px;color:#939c95;font-size:10px;line-height:1.55}
.empty-graphic{width:150px;height:96px;position:relative}.empty-line{position:absolute;height:1px;background:#dce7dd;transform-origin:left}
.line-one{width:58px;left:31px;top:52px;transform:rotate(-32deg)}.line-two{width:58px;left:83px;top:31px;transform:rotate(35deg)}
.empty-node{position:absolute;width:16px;height:16px;border:4px solid #c9ded0;background:white;border-radius:50%}
.node-one{left:22px;top:46px}.node-two{left:76px;top:23px;border-color:#71ae8d;box-shadow:0 0 0 5px #eaf4ee}
.node-three{left:130px;top:56px}.node-four{left:64px;top:78px;width:11px;height:11px;border-width:3px}
.hidden{display:none!important}.result-content{margin-top:23px}
.decision-summary{display:flex;align-items:end;justify-content:space-between;gap:15px;padding-bottom:18px}
.field-label{display:block;color:#829087;font-size:9px}.intent-name{display:inline-block;margin-top:7px;color:var(--ink);font:600 16px var(--mono);letter-spacing:-.04em;overflow-wrap:anywhere}
.score-block{text-align:right}.score-value{display:block;margin-top:7px;color:var(--green-dark);font:500 15px var(--mono)}.gate-explanation{margin:-8px 0 16px;color:#78847d;font-size:10px;line-height:1.55}
.handoff-card{display:flex;align-items:center;gap:13px;padding:15px;border:1px solid #d8e8dc;border-radius:12px;background:#f0f7f1}
.handoff-icon{display:grid;flex:0 0 35px;place-items:center;width:35px;height:35px;border-radius:10px;background:white;color:var(--green);font-size:20px}
.handoff-card h3{margin:5px 0 3px;font:700 15px var(--display);letter-spacing:-.03em}.handoff-card p{margin:0;color:#67766e;font-size:10px;line-height:1.45}
.review-card{display:flex;align-items:start;gap:12px;padding:14px 15px;border:1px solid #f1dfb7;border-radius:12px;background:#fff8e8}
.review-icon{display:grid;flex:0 0 22px;place-items:center;width:22px;height:22px;border-radius:50%;color:#855811;background:#f7e7c5;font:700 13px var(--mono)}
.review-card strong{color:#714b11;font-size:12px}.review-card p{margin:4px 0 0;color:#8d7349;font-size:10px;line-height:1.5}
.section-divider{height:1px;margin:18px 0;background:#edf0e9}.detail-section+.detail-section{margin-top:19px}
.section-title-row{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:10px}
.section-title-row h3{margin:5px 0 0;font:700 13px var(--display);letter-spacing:-.025em}.small-note{color:#929d95;font-size:9px}
.candidate-list{display:grid;gap:7px}.candidate-row{padding:8px 9px;border:1px solid #edf0e9;border-radius:8px;background:#fff}.candidate-row.selected-candidate{border-color:#c9e0d0;background:#f5faf5}
.candidate-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.candidate-intent{color:#425149;font:10px var(--mono);overflow-wrap:anywhere}
.candidate-agent{margin-top:3px;color:#8a968f;font-size:9px}.candidate-score{color:#718078;font:10px var(--mono)}
.score-track{height:3px;margin-top:7px;background:#eff1eb;border-radius:99px;overflow:hidden}.score-fill{height:100%;background:#78b294;border-radius:inherit}
.evidence-list{display:flex;flex-wrap:wrap;gap:6px}.evidence-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #e2e9df;background:#f5f8f2;color:#4f6c59;border-radius:6px;padding:6px 8px;font:10px var(--mono)}
.evidence-chip small{color:#9aa69d;font:9px var(--mono)}.no-evidence{color:#929d95;font-size:10px}
.fine-print{margin:9px 0 0;color:#929d95;font-size:9px;line-height:1.5}
.route-comparison,.knowledge-result{margin-top:13px;padding:14px;border:1px solid #e2e8dc;border-radius:12px;background:#fbfcf8}.route-comparison .section-title-row,.knowledge-result .section-title-row{align-items:center}.route-comparison h3,.knowledge-result h3{font-size:13px}.comparison-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.comparison-grid>div{padding:10px;border:1px solid #e9ede7;border-radius:8px;background:#fff}.comparison-grid strong,.comparison-grid small{display:block;overflow-wrap:anywhere}.comparison-grid strong{margin-top:6px;color:#33483c;font-size:11px}.comparison-grid small{margin-top:4px;color:#89948d;font:9px var(--mono)}.comparison-result{margin:10px 0 0;color:#4d7358;font-size:10px;line-height:1.5}.comparison-result.comparison-mismatch{color:#986324}.knowledge-result>p{margin:8px 0;color:#66736b;font-size:10px;line-height:1.6}.prepared-response{margin-top:12px;padding:11px 12px;border-left:3px solid #78b294;border-radius:0 8px 8px 0;background:#f0f7f1}.prepared-response>p{margin:6px 0 0;color:#34493d;font-size:11px;line-height:1.55}.knowledge-result .article-scope{color:#8b7959;font-size:9px}.article-source{display:inline-block;margin-top:4px;color:var(--green-dark);font-size:10px;font-weight:700;text-decoration:none}.article-source:hover{text-decoration:underline}
.comparison-metrics{margin:9px 0 0;padding-top:8px;border-top:1px solid #e9ede7;color:#78867d;font-size:9px;line-height:1.5}
.demo-action{margin-top:13px;padding:14px;border:1px solid #e7d6b1;border-radius:12px;background:#fffaf0}.demo-action .section-title-row{align-items:center}.demo-action h3{font-size:13px}.simulation-pill{padding:5px 7px;border:1px solid #e9d3a8;border-radius:99px;background:#fff2d5;color:#8b631e;font:9px var(--mono);letter-spacing:.05em}.demo-account-line{margin:9px 0 5px;color:#3b4f43;font:10px var(--mono)}.demo-action-copy{margin:0;color:#887a5d;font-size:9px;line-height:1.5}.demo-action-buttons{display:flex;align-items:center;gap:12px;margin-top:12px}.secondary-button{border:1px solid #d7bd83;border-radius:8px;padding:9px 11px;background:#fff0cd;color:#6f5118;font-size:10px;font-weight:700}.secondary-button:hover{background:#f9e4b3}.secondary-button:disabled{cursor:default;opacity:.55}.text-button{border:0;padding:8px 0;background:transparent;color:#727c72;font-size:9px;text-decoration:underline}.demo-action-result{margin:8px 0 0;color:#3b7351;font-size:10px;font-weight:700}.demo-audit{display:grid;gap:4px;margin-top:9px;padding:9px;border-radius:7px;background:#f4f6ef;color:#68755f;font-size:9px}.demo-audit strong{color:#495c48}
.agent-activity{margin-top:13px;padding:15px;border:1px solid #e2e8dc;border-radius:12px;background:#fbfcf8}.agent-activity .section-title-row{align-items:center}.agent-activity h3{font-size:14px}.route-check{margin:9px 0;padding:8px 10px;border-radius:7px;background:#eaf4ec;color:#34734c;font-size:10px;font-weight:700}.route-check-mismatch{background:#fff2e3;color:#97631f}.model-details{position:relative;margin-top:17px;border-top:1px solid #edf0e9;padding-top:12px}.model-details summary,.trace-details summary{cursor:pointer;color:#617168;font-size:10px;font-weight:700}.score-explanation{margin-top:12px;padding:11px;border-radius:8px;background:#f5f6f1}.score-explanation strong{display:inline-block;margin-left:8px;color:#64766b;font:500 11px var(--mono)}.score-explanation p{margin:6px 0 0;color:#88938b;font-size:9px;line-height:1.5}.model-details .detail-section{margin-top:14px}.model-details[open],.trace-details[open]{z-index:20}.model-details-content,.trace-list{position:absolute;top:calc(100% + 8px);left:0;z-index:20;width:min(100%,580px);max-height:min(55vh,360px);overflow:auto;padding:14px;border:1px solid #dfe6dc;border-radius:11px;background:#fff;box-shadow:0 14px 36px rgba(34,53,41,.18)}.trace-details{position:relative}.trace-list{display:grid;gap:10px}.trace-event{display:grid;grid-template-columns:112px 1fr;gap:10px;padding-bottom:9px;border-bottom:1px solid #edf0e9}.trace-event:last-child{padding-bottom:0;border:0}.trace-label{color:#738178;font-size:9px;font-weight:700}.trace-detail{color:#3f5046;font-size:10px;line-height:1.5}
.process-strip{margin:17px 0 30px;padding:21px 24px;border:1px solid #e1e4dc;border-radius:15px;background:rgba(255,254,250,.68)}
.process-heading{display:flex;justify-content:space-between;align-items:center}.process-heading>span{color:#87928b;font-size:10px}
.process-steps{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);align-items:start;gap:10px;margin-top:19px}
.process-step{display:flex;align-items:flex-start;gap:11px;min-width:0}.step-number{display:grid;flex:0 0 29px;place-items:center;width:29px;height:29px;border:1px solid #d5e4d8;border-radius:8px;color:var(--green);background:#f1f7f1;font:10px var(--mono)}
.process-step strong,.process-step div span{display:block}.process-step strong{font-size:10px}.process-step div span{margin-top:3px;color:#89948d;font-size:9px}
.process-arrow{align-self:center;color:#b1bcb3;font-size:14px;line-height:1}.footer{display:flex;justify-content:space-between;gap:15px;padding:17px 0 24px;border-top:1px solid #dfe3dc;color:#929c94;font-size:9px}
.footer a{color:#587b65;text-decoration:none}.footer a:hover{text-decoration:underline}
.toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,12px);opacity:0;pointer-events:none;max-width:calc(100% - 32px);padding:10px 14px;border-radius:9px;color:white;background:#263a32;font-size:12px;box-shadow:0 8px 25px rgba(0,0,0,.15);transition:.2s;z-index:5}
.toast.show{opacity:1;transform:translate(-50%,0)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:850px){.intro{align-items:start;flex-direction:column;gap:23px;padding:48px 0 30px}.workbench{grid-template-columns:1fr}.result-panel{min-height:390px}.process-steps{grid-template-columns:minmax(0,1fr);gap:8px}.process-arrow{align-self:start;justify-self:start;padding-left:10px;transform:rotate(90deg)}.process-step::before{display:none}}
@media(max-width:560px){.shell{width:min(100% - 30px,500px)}.topbar{height:64px}.topbar-right{gap:12px}.demo-label,.api-link{font-size:10px}.intro{padding-top:37px}h1{font-size:39px}.intro-text{font-size:13px}.input-panel,.result-panel{padding:20px 17px}.panel-heading h2{font-size:17px}textarea{height:128px}.form-footer{align-items:start;flex-direction:column}.primary-button{align-self:stretch;justify-content:space-between}.result-panel{min-height:350px}.empty-state{min-height:280px}.process-strip{padding:18px}.process-heading{align-items:start;flex-direction:column;gap:7px}.footer{flex-direction:column}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* ---------- Portfolio polish ---------- */
.example-chip{position:relative;overflow:isolated}
.example-chip::after{content:"";position:absolute;inset:0;border-radius:9px;background:linear-gradient(rgba(255,255,255,.4),rgba(255,255,255,0));opacity:0;transition:opacity .2s}
.example-chip:hover::after{opacity:1}
.example-chip:active{transform:translateY(-1px)}

.primary-button{position:relative;overflow:isolated}
.primary-button::after{content:"";position:absolute;inset:0;border-radius:9px;background:linear-gradient(rgba(255,255,255,.25),rgba(255,255,255,0));opacity:0;transition:opacity .2s}
.primary-button:hover::after{opacity:1}

.secondary-button,.text-button{position:relative;overflow:isolated}
.secondary-button::after,.text-button::after{content:"";position:absolute;inset:0;border-radius:7px;background:linear-gradient(rgba(255,255,255,.35),rgba(255,255,255,0));opacity:0;transition:opacity .2s}
.secondary-button:hover::after,.text-button:hover::after{opacity:1}

.result-content{animation:fadeIn .28s ease-out}
@keyframes fadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}

.state-badge{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:20px;font:600 10px var(--mono);letter-spacing:.05em;transition:all .2s}
.state-badge.idle{background:#eef1ed;color:#738178}
.state-badge.routed{background:var(--green-wash);color:var(--green-dark)}
.state-badge.needs-review{background:var(--amber-wash);color:var(--amber)}
.state-badge.out-of-scope{background:#f5eef0;color:var(--red)}
.state-dot{width:6px;height:6px;border-radius:50%;background:currentColor}

.empty-graphic{display:flex;gap:8px;padding:14px 0}
.empty-line{height:3px;border-radius:2px;background:#dde4df;opacity:.6}
.line-one{width:34px}.line-two{width:22px}
.empty-node{width:9px;height:9px;border-radius:50%;background:#c6d2cc;opacity:.7}
.node-one{background:#bcd6c2}.node-two{background:#d5e4d8}.node-three{background:#c6d2cc}.node-four{background:#bcd6c2}

.decision-summary{margin-bottom:12px}
.intent-block{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;background:#f5f6f1}
.intent-name{font:700 13px var(--mono);color:var(--green-dark)}

.gate-explanation{color:var(--muted);font-size:11px;line-height:1.55;margin:8px 0 14px}

.handoff-card{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #dce2d9;border-radius:11px;background:#fbfdff}
.handoff-icon{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--green-wash);color:var(--green-dark);font:700 14px var(--sans)}
.handoff-card h3{font:700 13px var(--display);color:var(--ink);margin:0 0 2px}
.handoff-card p{margin:0;color:var(--muted);font-size:10px;line-height:1.45}

.review-card{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #ffe3c4;border-radius:11px;background:#fffbf3}
.review-icon{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--amber-wash);color:var(--amber);font:700 14px var(--sans)}
.review-card strong{font:700 11px var(--sans);color:var(--ink);display:block;margin-bottom:2px}
.review-card p{margin:0;color:var(--muted);font-size:10px;line-height:1.45}

.route-comparison{margin-top:16px;padding-top:14px;border-top:1px solid #edf0e9}
.comparison-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.comparison-grid>div{padding:10px 12px;border-radius:9px;background:#f5f6f1}
.comparison-grid span{display:block;color:var(--soft);font:600 9px var(--mono);letter-spacing:.08em}
.comparison-grid strong{display:block;color:var(--ink);font:700 12px var(--sans);margin-top:2px}
.comparison-grid small{color:var(--muted);font-size:9px}
.comparison-result{margin-top:10px;color:var(--muted);font-size:10px;line-height:1.5}
.comparison-metrics{margin-top:8px;color:#4f7960;font-size:9px;font-weight:600}

.demo-action{margin-top:16px;padding-top:14px;border-top:1px solid #edf0e9}
.simulation-pill{display:inline-flex;align-items:center;gap:6px;padding:3px 8px;border-radius:10px;background:#eef1ed;color:#738178;font:600 9px var(--mono);letter-spacing:.06em}
.demo-account-line{color:var(--muted);font-size:11px;margin:6px 0 4px}
.demo-action-copy{color:var(--soft);font-size:10px;line-height:1.5;margin:0 0 12px}
.demo-action-buttons{display:flex;gap:8px}
.demo-action-result{margin-top:10px;font-size:10px;color:var(--green-dark);font-weight:700;min-height:15px}
.demo-audit{margin-top:10px;padding:8px 10px;border-radius:8px;background:#f5f6f1}
.demo-audit strong{color:var(--ink);font:700 9px var(--mono);display:block;margin-bottom:2px}
.demo-audit span{color:var(--muted);font-size:9px;word-break:break-all}

.knowledge-result{margin-top:16px;padding-top:14px;border-top:1px solid #edf0e9}
.knowledge-result h3{font:700 13px var(--display);color:var(--ink);margin:0 0 2px}
.knowledge-result .small-note{font-size:9px;color:var(--soft)}

#agent-activity{margin-top:16px}
.route-check{margin:9px 0;padding:8px 10px;border-radius:7px;background:#eaf4ec;color:#34734c;font-size:10px;font-weight:700}

body{font-feature-settings:"kern" 1}

.model-details-content,.trace-list{position:static;display:block;width:100%;max-height:none;overflow:visible;margin-top:12px;padding:14px;border:1px solid #dfe6dc;border-radius:11px;background:#fff;box-shadow:none}
.trace-list{display:grid;gap:10px}
.technical-details{margin-top:16px;border-top:1px solid #edf0e9;padding-top:12px}
.technical-details>summary,.trace-details>summary,.model-details>summary{cursor:pointer;color:#617168;font-size:11px;font-weight:700}
.trace-mode{margin:10px 0;color:var(--muted);font-size:10px}
