:root {
  color-scheme: light;
  --canvas: #f6f7f2;
  --paper: #ffffff;
  --ink: #182d27;
  --muted: #64716a;
  --line: #e1e5dc;
  --green: #254e40;
  --lime: #d9ecae;
  --tint: #eef2e8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button { color: inherit; }
button, a, textarea, summary, pre { -webkit-tap-highlight-color: transparent; }
button, a, textarea, summary, pre { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--green); }
button:disabled, textarea:disabled { cursor: not-allowed; }
button:disabled { opacity: 1; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, h4, p { margin: 0; }
.page-width { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.eyebrow { font-size: .75rem; font-weight: 650; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; }
.small-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; background: var(--green); border-radius: 50%; vertical-align: 1px; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 10; padding: 1rem; background: var(--paper); }

.site-header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; letter-spacing: -.03em; }
.brand strong { font-weight: 650; }
.brand-mark { flex-shrink: 0; display: grid; grid-template-columns: repeat(2, 9px); gap: 3px; transform: rotate(-10deg); }
.brand-mark span { width: 9px; height: 9px; border-radius: 2px; background: var(--green); }
.brand-mark span:last-child { background: #a2ba7d; border-radius: 2px 2px 7px 2px; }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: .78rem; font-weight: 550; }
.site-header nav > a:first-child { color: var(--muted); }
.nav-cta { padding: 11px 16px; border: 1px solid #cbd3c3; border-radius: 8px; }
.nav-cta > span[aria-hidden] { margin-left: 14px; }
.site-header a:hover, .text-link:hover { color: #527658; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.language-switch { display: inline-flex; flex-shrink: 0; gap: 2px; padding: 3px; border: 1px solid #d5ddce; border-radius: 8px; background: #eef2e8; }
.language-switch button { min-width: 34px; min-height: 32px; padding: 5px 7px; border: 0; border-radius: 5px; background: transparent; font-size: .75rem; color: #5b6d50; cursor: pointer; }
.language-switch button[aria-pressed="true"] { background: var(--paper); color: var(--green); box-shadow: 0 1px 3px #254e4014; font-weight: 650; }
.language-switch button:disabled { cursor: default; }
.language-status { margin-top: 14px; font-size: .8rem; color: #8b452f; }
.hero { padding-block: 84px 72px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 64px; align-items: center; }
.hero h1 { margin-block: 23px; font-size: clamp(2.6rem, 4.55vw, 4.25rem); font-weight: 550; letter-spacing: -.06em; line-height: 1.1; }
.hero h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; color: #4b6650; }
.hero-description { max-width: 470px; font-size: .98rem; line-height: 1.8; color: var(--muted); }
.hero-actions { margin-top: 28px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; min-height: 46px; padding: 13px 18px; border-radius: 8px; font-size: .78rem; font-weight: 550; }
.button-primary { background: var(--green); color: var(--paper); transition: background .15s; }
.button-primary:hover { background: #35634d; }
.text-link { font-size: .75rem; line-height: 1.6; }
.text-link span { margin-left: 6px; }
.hero-benefits { display: flex; flex-wrap: wrap; column-gap: 17px; row-gap: 9px; padding: 0; margin: 28px 0 0; list-style: none; font-size: .75rem; color: var(--muted); }
.hero-benefits li::before { content: "✓"; margin-right: 5px; color: var(--green); }
.process-card { padding: 26px 28px 21px; border: 1px solid #dce3d2; border-radius: 16px; background: #edf1e5; }
.process-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.process-card-heading .eyebrow { font-size: .75rem; color: #627359; }
.process-symbol { font-size: 1.2rem; }
.process-card h2 { margin-top: 23px; font-family: Georgia, "Times New Roman", serif; font-size: 1.9rem; font-weight: 400; letter-spacing: -.035em; line-height: 1.15; }
.process-steps { margin: 26px 0 22px; padding: 0; list-style: none; }
.process-steps li { display: flex; align-items: flex-start; gap: 13px; margin-top: 20px; }
.step-number { display: grid; place-items: center; flex: 0 0 25px; height: 25px; border: 1px solid #cbd6be; border-radius: 50%; font-size: .75rem; color: #5d7452; }
.process-steps h3 { font-size: .75rem; font-weight: 600; line-height: 1.7; }
.process-steps p { margin-top: 2px; font-size: .75rem; color: var(--muted); line-height: 1.6; }
.process-footnote { padding-top: 16px; border-top: 1px solid #d6dfcb; font-size: .75rem; color: #627359; }

.demo-section { padding-top: 40px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; }
.section-heading h2 { margin-top: 13px; font-size: clamp(1.8rem, 3vw, 2.55rem); font-weight: 500; line-height: 1.2; letter-spacing: -.045em; }
.muted-heading { color: #7c897a; }
.section-heading > p { max-width: 290px; padding-bottom: 2px; font-size: .78rem; line-height: 1.8; color: var(--muted); }
.preview-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-block: 25px 13px; font-size: .75rem; line-height: 1.6; color: var(--muted); }
.preview-label { padding: 3px 7px; background: #e7ecdf; border-radius: 4px; color: #4a6045; font-size: .75rem; font-weight: 600; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); overflow: hidden; border: 1px solid #d8dfd2; border-radius: 15px; background: var(--paper); box-shadow: 0 12px 35px -22px #1d38242b; }
.workspace > section { min-width: 0; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 82px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.panel-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.panel-title h3 { font-size: .8rem; font-weight: 600; letter-spacing: -.01em; }
.panel-title p { margin-top: 5px; font-size: .75rem; color: var(--muted); line-height: 1.5; }
.assistant-avatar { display: flex; align-items: center; justify-content: center; gap: 1px; flex: 0 0 35px; height: 35px; background: var(--green); border-radius: 11px; color: var(--lime); font-family: Georgia, serif; font-size: 1.4rem; letter-spacing: -.08em; }
.assistant-avatar span { font-style: italic; }
.icon-button { display: grid; place-items: center; width: 32px; height: 32px; background: none; border: 1px solid var(--line); border-radius: 7px; color: #889486; }
.icon-button svg { width: 15px; height: 15px; }
.chat-panel { display: flex; flex-direction: column; }
.messages { flex: 1; min-height: 330px; padding: 24px; overflow-wrap: anywhere; }
.conversation-marker { margin-bottom: 27px; text-align: center; font-size: .75rem; color: #66765e; line-height: 1.6; }
.message { max-width: 86%; padding: 15px 17px; border-radius: 0 12px 12px 12px; font-size: .81rem; line-height: 1.75; }
.message-assistant { background: #f0f3eb; border: 1px solid #e7ecde; }
.message-author { margin-bottom: 5px; color: #617557; font-size: .75rem; font-weight: 650; }
.message-user { margin-left: auto; background: var(--green); color: var(--paper); border-radius: 12px 0 12px 12px; }
.conversation-empty { display: grid; justify-items: center; gap: 13px; padding-top: 41px; text-align: center; color: #7b8b72; }
.conversation-glyph { display: grid; place-items: center; width: 41px; height: 41px; background: #f4f6f0; border: 1px solid #e7ecdf; border-radius: 12px; font-size: 1.4rem; color: #849675; }
.conversation-empty p { font-family: Georgia, "Times New Roman", serif; font-size: .97rem; line-height: 1.5; }
.composer { padding: 0 24px 20px; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.quick-replies button { min-height: 32px; padding: 7px 10px; background: var(--paper); border: 1px solid #dfe5d7; border-radius: 6px; font-size: .75rem; color: #6b7b60; }
.quick-replies button span { margin-left: 7px; }
.input-wrap { display: flex; gap: 10px; align-items: flex-end; padding: 12px; background: #f9faf6; border: 1px solid #dfe5d8; border-radius: 10px; }
textarea { display: block; flex: 1; min-width: 0; resize: vertical; max-height: 160px; min-height: 44px; padding: 0; border: 0; background: none; font-size: .76rem; line-height: 1.7; color: var(--ink); }
textarea::placeholder { color: #71816a; opacity: 1; }
textarea:disabled { -webkit-text-fill-color: #71816a; opacity: 1; }
.send-button { display: grid; place-items: center; flex: 0 0 31px; height: 31px; border: 0; border-radius: 7px; background: #dbe6cc; color: #6b805b; }
.send-button svg { width: 18px; height: 18px; }
.composer-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: .75rem; color: #617057; line-height: 1.7; }
#character-count { white-space: nowrap; }

.inspector-panel { background: #f9faf6; border-left: 1px solid var(--line); }
.code-icon { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border: 1px solid #dce4d3; border-radius: 8px; background: #eff3e9; color: #58724b; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85rem; }
.state-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid #e0e5d8; border-radius: 5px; font-size: .75rem; color: #617057; white-space: nowrap; }
.state-badge > span:first-child { width: 4px; height: 4px; background: #95a284; border-radius: 50%; }
.inspector-content { padding: 21px 24px 18px; }
.intent-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 19px; }
.field-label { font-size: .75rem; font-weight: 550; color: #627259; }
.intent-value { padding: 5px 9px; background: #edf1e5; border: 1px solid #dfe7d4; border-radius: 5px; font-size: .75rem; color: #667e54; }
.lead-card { padding: 17px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.card-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.card-heading h4 { font-size: .75rem; font-weight: 600; }
.quiet-label { font-size: .75rem; color: var(--muted); }
.lead-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 13px; margin: 20px 0 0; }
.lead-fields .full-row { grid-column: 1 / -1; }
.lead-fields dt { margin-bottom: 5px; font-size: .75rem; color: #65735f; }
.lead-fields dd { margin: 0; min-height: 14px; font-size: .75rem; color: #526648; overflow-wrap: anywhere; }
.cost-section { margin-top: 19px; }
.cost-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.cost-grid > div { padding: 12px; border-radius: 7px; border: 1px solid #e0e7d7; background: #f0f4e9; }
.cost-label { font-size: .75rem; color: #697d5c; }
.cost-grid p { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cost-grid strong { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.12rem; font-weight: 500; letter-spacing: -.06em; }
.currency { font-size: .75rem; color: #728465; }
.cost-note { margin-top: 8px; font-size: .75rem; color: #617057; line-height: 1.65; }
.json-panel { margin-top: 19px; border: 1px solid #dce3d5; border-radius: 8px; background: #f1f4eb; overflow: hidden; }
.json-panel pre { max-height: 220px; overflow: auto; padding: 14px 12px 18px; margin: 0; border-top: 1px solid #e2e8da; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .75rem; line-height: 1.8; color: #6c7d5f; }
.json-panel code { font: inherit; }
.inspector-footnote { margin-top: 13px; font-size: .75rem; line-height: 1.7; color: #65735f; }

.scenarios-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-block: 29px 15px; }
.scenarios-heading h3 { font-size: .83rem; font-weight: 550; letter-spacing: -.015em; }
.scenarios-heading p { font-size: .75rem; color: var(--muted); }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.scenario-card { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 0; padding: 20px; border: 1px solid #dce2d5; border-radius: 10px; background: #f2f4ec; text-align: left; }
.scenario-top { display: flex; justify-content: space-between; align-items: center; }
.scenario-icon { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #dce4d2; border-radius: 8px; color: #648055; background: #ebf0e1; }
.scenario-icon svg { width: 17px; height: 17px; }
.scenario-number { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .75rem; color: #617057; }
.scenario-card > strong { margin-top: 3px; font-size: .83rem; font-weight: 550; letter-spacing: -.025em; }
.scenario-card > span:not(.scenario-top):not(.scenario-action) { max-width: 260px; font-size: .75rem; line-height: 1.75; color: #6a7b60; }
.scenario-action { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; font-size: .75rem; color: #4f6c40; }
.owner-channels { margin-top: 68px; padding-top: 36px; border-top: 1px solid var(--line); }
.owner-channels .section-heading > p { max-width: 390px; }
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 25px; }
.channel-card { min-width: 0; padding: 23px; background: #eef2e8; border: 1px solid #dce3d3; border-radius: 12px; }
.channel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.channel-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #d7e0cd; border-radius: 9px; background: #e5ecda; color: #526e43; }
.planned-badge { padding: 4px 7px; border: 1px solid #d5deca; border-radius: 5px; font-size: .7rem; color: #5c704c; }
.channel-card h3 { margin-top: 20px; font-size: .92rem; font-weight: 550; letter-spacing: -.025em; }
.channel-card p { margin-top: 10px; font-size: .8rem; line-height: 1.8; color: #627259; }
.channels-note { margin-top: 15px; max-width: 830px; font-size: .75rem; line-height: 1.8; color: var(--muted); }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 72px; padding-block: 38px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.closing h2 { margin-top: 13px; font-family: Georgia, "Times New Roman", serif; font-size: 1.9rem; font-weight: 400; letter-spacing: -.03em; line-height: 1.25; }
.closing .button { flex-shrink: 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding-block: 27px 35px; font-size: .75rem; color: #6c7b62; }
.site-footer > span { color: var(--green); font-weight: 600; }
.site-footer p { font-size: .75rem; }

@media (min-width: 1500px) { .hero h1 { font-size: 4.25rem; } }
@media (max-width: 1100px) {
  .page-width { width: calc(100% - 64px); }
  .hero { gap: 32px; }
  .hero h1 { font-size: 3.3rem; }
  .process-card { padding: 23px; }
  .hero-actions { gap: 17px; }
  .panel-header { padding-inline: 18px; }
  .messages { padding-inline: 18px; }
  .composer, .inspector-content { padding-inline: 18px; }
  .quick-replies button { font-size: .75rem; padding-inline: 8px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-block: 58px 45px; gap: 35px; }
  .hero h1 { font-size: clamp(2.6rem, 7vw, 4rem); }
  .hero-description { max-width: 540px; }
  .process-card { max-width: none; }
  .process-card h2 br { display: none; }
  .process-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-block: 5px 22px; }
  .process-steps li { flex-direction: column; gap: 10px; }
  .step-number { flex-basis: auto; width: 25px; }
  .workspace { grid-template-columns: 1fr; }
  .inspector-panel { border-left: 0; border-top: 1px solid var(--line); }
  .messages { min-height: 340px; }
  .conversation-empty { padding-top: 35px; }
  .inspector-content { padding-block: 23px; }
  .panel-header, .messages, .composer, .inspector-content { padding-inline: 24px; }
  .lead-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-fields .full-row { grid-column: auto; }
  .section-heading { align-items: flex-start; }
  .section-heading > p { max-width: 230px; }
  .scenario-card { padding: 17px; }
}
@media (max-width: 600px) {
  .page-width { width: calc(100% - 36px); }
  .site-header { min-height: 76px; gap: 12px; }
  .brand { font-size: .79rem; gap: 8px; }
  .brand-mark { grid-template-columns: repeat(2, 7px); gap: 2px; }
  .brand-mark span { width: 7px; height: 7px; }
  .site-header nav { display: none; }
  .header-actions { gap: 0; }
  .language-switch button { min-height: 38px; }
  .site-header nav > a:first-child { display: none; }
  .nav-cta { padding: 9px; }
  .nav-cta span { margin-left: 5px; }
  .hero { padding-top: 39px; }
  .hero h1 { margin-block: 19px; font-size: clamp(2.2rem, 8.8vw, 3.3rem); }
  .hero-description { font-size: .88rem; line-height: 1.8; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-benefits { font-size: .75rem; row-gap: 10px; column-gap: 12px; margin-top: 25px; }
  .process-card { padding: 22px; }
  .process-card h2 { font-size: 1.6rem; margin-top: 17px; }
  .process-steps { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
  .process-steps li { flex-direction: row; gap: 12px; margin-top: 17px; }
  .step-number { flex: 0 0 25px; }
  .demo-section { padding-top: 30px; }
  .section-heading { flex-direction: column; gap: 15px; }
  .section-heading h2 { font-size: 1.95rem; }
  .section-heading > p { max-width: 320px; font-size: .75rem; }
  .preview-notice { margin-top: 20px; font-size: .75rem; }
  .workspace { border-radius: 12px; }
  .panel-header { min-height: 76px; padding: 16px; }
  .panel-title { gap: 9px; }
  .panel-title h3 { font-size: .75rem; }
  .panel-title p { font-size: .75rem; }
  .messages { padding: 22px 16px; min-height: 315px; }
  .message { max-width: 93%; font-size: .78rem; }
  .conversation-marker { font-size: .75rem; margin-bottom: 23px; }
  .conversation-empty { padding-top: 29px; }
  .composer { padding-inline: 16px; padding-bottom: 17px; }
  .quick-replies { gap: 5px; }
  .quick-replies button { padding-inline: 8px; font-size: .75rem; }
  .quick-replies button span { margin-left: 3px; }
  .composer-meta { font-size: .75rem; }
  .inspector-content { padding: 18px 16px; }
  .lead-fields .full-row { grid-column: 1 / -1; }
  .lead-card { padding: 15px; }
  .cost-grid strong { font-size: 1.05rem; }
  .scenarios-heading { margin-top: 25px; gap: 7px; }
  .scenario-grid { grid-template-columns: 1fr; gap: 10px; }
  .owner-channels { margin-top: 43px; padding-top: 29px; }
  .channel-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
  .channel-card { padding: 20px; }
  .scenario-card { padding: 20px; }
  .scenario-card > span:not(.scenario-top):not(.scenario-action) { max-width: none; }
  .closing { flex-direction: column; align-items: flex-start; margin-top: 43px; padding-block: 29px; gap: 23px; }
  .closing h2 { font-size: 1.65rem; }
  .site-footer { align-items: flex-start; padding-top: 22px; column-gap: 18px; row-gap: 13px; }
  .site-footer > span { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* Keep a long conversation within the demo instead of stretching both panels. */
.messages { flex: 1 1 390px; max-height: 480px; overflow-y: auto; overscroll-behavior: contain; }
.message + .message { margin-top: 14px; }
.message p:last-child { white-space: pre-wrap; }
.message-user .message-author { color: #d9ecae; }
[hidden] { display: none !important; }
.icon-button:enabled, .send-button:enabled, .quick-replies button:enabled { cursor: pointer; }
.send-button:enabled { background: var(--green); color: var(--paper); }
.quick-replies button:enabled:hover { background: #edf1e5; border-color: #aabb9a; }
.quick-replies button:disabled, .send-button:disabled { opacity: .6; }
textarea[aria-invalid="true"] { color: #8b452f; }
.state-badge[data-state="pending"] > span:first-child { background: #a17827; }
.state-badge[data-state="closed"] > span:first-child { background: #8b452f; }
@media (max-width: 600px) { .messages { flex-basis: 320px; max-height: 420px; } }

.scenarios-note { margin: -3px 0 16px; max-width: 830px; font-size: .75rem; color: var(--muted); line-height: 1.8; }
.scenario-card:enabled { cursor: pointer; transition: background .15s, border-color .15s; }
.scenario-card:enabled:hover, .scenario-card[aria-expanded="true"] { background: #eaf0df; border-color: #adbe99; }
.scenario-card:disabled { opacity: .6; }
.scenario-panel { margin-top: 18px; padding: 25px; border: 1px solid #cfdac3; border-radius: 12px; background: #fff; }
.scenario-panel-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 17px; }
.scenario-panel-header .eyebrow { font-size: .7rem; color: #617557; }
.scenario-panel-header h3 { margin-top: 8px; font-size: 1.2rem; font-weight: 550; letter-spacing: -.025em; }
.scenario-panel-header .icon-button { flex-shrink: 0; font-size: 1.2rem; }
.scenario-intro, .scenario-footnote { max-width: 850px; font-size: .8rem; line-height: 1.8; color: var(--muted); }
.scenario-footnote { margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); }
.call-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0; margin: 22px 0 0; list-style: none; }
.call-flow li { padding: 18px; border: 1px solid #e0e7d8; border-radius: 9px; background: #f3f6ed; }
.call-flow h4, .sample-email h4 { margin-top: 15px; font-size: .8rem; font-weight: 600; }
.call-flow p { margin-top: 9px; font-size: .78rem; line-height: 1.8; color: #627259; }
.sample-email { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: #f4f6ef; }
.sample-email h4 { margin-top: 0; }
.sample-email p { margin-top: 12px; font-size: .83rem; line-height: 1.85; overflow-wrap: anywhere; }
.time-calculator { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 34px; margin-top: 24px; align-items: start; }
.time-sliders { display: grid; gap: 23px; }
.slider-field > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: .8rem; line-height: 1.6; }
.slider-field label { color: #53654b; }
.slider-field output { flex-shrink: 0; font-weight: 600; color: var(--green); }
.slider-field input { display: block; width: 100%; min-height: 30px; margin: 8px 0 0; accent-color: var(--green); cursor: pointer; }
.time-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.time-results > div { padding: 20px; border: 1px solid #dce5d1; border-radius: 9px; background: #edf3e5; }
.time-results span { display: block; font-size: .75rem; line-height: 1.7; color: #617557; }
.time-results strong { display: block; margin-top: 12px; font-size: 1.45rem; font-weight: 500; letter-spacing: -.04em; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .call-flow { grid-template-columns: 1fr; }
  .call-flow li { display: flex; align-items: flex-start; gap: 15px; }
  .call-flow h4 { margin-top: 0; }
  .time-calculator { grid-template-columns: 1fr; gap: 25px; }
}
@media (max-width: 600px) {
  .scenario-panel { padding: 20px 16px; }
  .scenario-panel-header h3 { font-size: 1.05rem; }
  .call-flow li { padding: 16px; }
  .time-results { gap: 8px; }
  .time-results > div { padding: 14px; }
  .time-results strong { font-size: 1.15rem; }
  .slider-field > div { gap: 10px; }
}

.industry-picker { margin-bottom: 19px; padding: 19px 21px; border: 1px solid var(--line); border-radius: 12px; background: #eef2e8; }
.industry-picker > p:first-child { font-size: .83rem; font-weight: 600; }
.industry-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.industry-options button { min-width: 0; min-height: 40px; padding: 9px 15px; border: 1px solid #d3ddca; border-radius: 7px; background: var(--paper); text-align: center; font-size: .78rem; line-height: 1.5; cursor: pointer; }
.industry-options button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--paper); }
.industry-options button:enabled:hover { border-color: #7d966b; }
.industry-options button:disabled { cursor: not-allowed; opacity: .65; }
.industry-note, .industry-summary { margin-top: 12px; font-size: .75rem; line-height: 1.7; color: var(--muted); }
.industry-summary { margin-top: 5px; color: #425e37; }
@media (max-width: 600px) {
  .industry-picker { padding: 17px 15px; }
  .industry-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry-options button { padding-inline: 8px; overflow-wrap: anywhere; }
}

.chat-status-line { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.typing-indicator { align-items: center; flex: 0 0 auto; height: 20px; }
.typing-indicator:not([hidden]) { display: inline-flex; }
.typing-dots { display: inline-flex; align-items: center; flex-shrink: 0; gap: 4px; height: 18px; }
.typing-dots > span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); opacity: .7; animation: typing-wave 1.2s ease-in-out infinite; }
.typing-dots > span:nth-child(2) { animation-delay: .15s; }
.typing-dots > span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-wave {
  0%, 60%, 100% { transform: translateY(0); opacity: .7; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .typing-dots > span { animation: none; opacity: 1; }
}

/* The visitor plays both roles in one session; this is not an admin console. */
.owner-demo { margin-top: 19px; padding: 17px; border: 1px solid #d2dfcb; border-radius: 9px; background: #f0f4eb; }
.owner-mode { padding: 4px 7px; border-radius: 5px; background: #e2ead8; color: #3c5e39; font-size: .75rem; }
.owner-mode[data-mode="human"] { background: #f5e5c9; color: #755120; }
.owner-demo-note, .owner-status { margin-top: 10px; font-size: .75rem; line-height: 1.7; color: #54674b; overflow-wrap: anywhere; }
.owner-escalation { margin-top: 12px; padding: 11px; border-left: 3px solid #b79048; border-radius: 4px; background: #faf4e8; font-size: .75rem; line-height: 1.7; overflow-wrap: anywhere; }
.owner-escalation > p:first-child { font-weight: 650; color: #765723; }
.owner-escalation > p + p { margin-top: 4px; }
.owner-actions { margin-top: 12px; }
.owner-button { min-height: 40px; padding: 9px 12px; border: 1px solid #365e46; border-radius: 7px; background: var(--green); color: var(--paper); font-size: .75rem; line-height: 1.5; }
.owner-button:enabled { cursor: pointer; }
.owner-button:enabled:hover { background: #35634d; }
.owner-button:disabled { opacity: .55; }
#owner-form { margin-top: 15px; }
#owner-form label { display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 600; }
#owner-reply { width: 100%; min-height: 90px; padding: 10px; border: 1px solid #ccd9c2; border-radius: 7px; background: var(--paper); }
.owner-reply-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-top: 9px; }
#owner-character-count { font-size: .75rem; color: #54674b; white-space: nowrap; }
.message-owner { background: #fbf3e4; border: 1px solid #ead6b1; }
.message-owner .message-author { color: #755120; }

/* Keep customer chat alongside the longer owner panel on wide screens. */
.workspace { overflow: clip; }
@media (min-width: 901px) {
  .chat-panel { position: sticky; top: 12px; align-self: start; }
}

/* Optional diagnostic information stays out of the main sales/demo flow. */
.demo-details { margin-top: 19px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.demo-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 12px; list-style: none; cursor: pointer; font-size: .75rem; color: #586d4b; }
.demo-details > summary::-webkit-details-marker { display: none; }
.demo-details > summary svg { width: 12px; height: 12px; flex-shrink: 0; }
.demo-details:not([open]) > summary svg { transform: rotate(-90deg); }
.demo-details-content { padding: 0 12px 14px; border-top: 1px solid var(--line); }
.demo-details .cost-section { margin-top: 14px; }
.cost-scope { margin-top: 8px; font-size: .75rem; line-height: 1.65; color: #617057; }
.json-panel h4 { padding: 10px 12px; font-size: .75rem; font-weight: 550; color: #586d4b; }
@media (max-width: 600px) {
  .demo-details .cost-grid { grid-template-columns: 1fr; }
}


/* Approval proposals stay in the owner panel until explicitly sent. */
.reply-mode-options { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.reply-mode-button { flex: 1 1 125px; min-height: 42px; padding: 8px 10px; border: 1px solid #acbca0; border-radius: 7px; background: var(--paper); color: #3c5e39; font: inherit; font-size: .75rem; line-height: 1.5; }
.reply-mode-button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--paper); }
.reply-mode-button:enabled { cursor: pointer; }
.reply-mode-button:disabled { opacity: .55; }
.owner-mode[data-mode="review"] { background: #e5e8fa; color: #444d7b; }
.owner-secondary { margin-top: 12px; background: transparent; color: #365e46; }
.owner-secondary:enabled:hover { background: #e2ead8; }
.owner-demo .card-heading { flex-wrap: wrap; }
#review-details-note { color: #725823; }

/* Owner knowledge stays collapsed until the visitor chooses to explore it. */
.context-panel { margin-top: 16px; border-top: 1px solid #ccd9c2; }
.context-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px 0; cursor: pointer; list-style: none; font-size: .78rem; font-weight: 600; }
.context-panel > summary::-webkit-details-marker { display: none; }
.context-panel > summary svg { width: 12px; height: 12px; flex-shrink: 0; }
.context-panel:not([open]) > summary svg { transform: rotate(-90deg); }
.context-panel-content { min-width: 0; }

#save-context { margin-top: 14px; }
.context-note-meta { margin-top: 7px; font-size: .72rem; line-height: 1.6; color: #54674b; overflow-wrap: anywhere; }
.context-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.context-toolbar .owner-secondary { margin-top: 0; }
#context-list { list-style: none; margin: 12px 0 0; padding: 0; }
#context-list > li { padding: 12px 0; border-top: 1px solid #d2dfcb; }
.context-note-text { white-space: pre-wrap; font-size: .78rem; line-height: 1.7; overflow-wrap: anywhere; }


/* Public baseline facts are independent of the conversation's collected details. */
.business-knowledge { margin: 0 0 24px; padding: 0 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.business-knowledge > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 14px 0; cursor: pointer; list-style: none; font-size: .9rem; font-weight: 600; }
.business-knowledge > summary::-webkit-details-marker { display: none; }
.business-knowledge > summary svg { width: 14px; height: 14px; }
.business-knowledge:not([open]) > summary svg { transform: rotate(-90deg); }
.business-knowledge-content { padding-bottom: 18px; }
.knowledge-company { margin-bottom: 8px; color: var(--green); font-size: .8rem; font-weight: 600; }
.knowledge-note, .knowledge-status { color: var(--muted); font-size: .76rem; line-height: 1.65; }
.knowledge-status { margin-top: 12px; }
.business-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 42px; row-gap: 10px; margin: 16px 0 0; padding-left: 22px; }
.business-facts[hidden] { display: none; }
.business-facts li { padding-left: 4px; font-size: .78rem; line-height: 1.65; overflow-wrap: anywhere; }
.business-facts li::marker { color: var(--green); font-weight: 650; }
@media (max-width: 680px) {
  .business-knowledge { padding-inline: 16px; }
  .business-facts { grid-template-columns: minmax(0, 1fr); }
}

/* Three independently editable owner facts beside the seven public facts. */
.context-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.context-slot { min-width: 0; padding: 16px; border: 1px solid #ccd9c2; border-radius: 9px; background: #f6f8f3; }
.context-slot label { display: block; min-height: 2.8em; font-size: .78rem; font-weight: 600; }
.context-slot textarea { display: block; box-sizing: border-box; width: 100%; min-height: 125px; max-height: 300px; resize: vertical; padding: 10px; border: 1px solid #ccd9c2; border-radius: 7px; background: var(--paper); color: var(--ink); font: inherit; font-size: .78rem; }
.context-slot textarea[aria-invalid="true"] { border-color: #9b6049; }
.context-slot-state { margin-top: 8px; font-size: .72rem; line-height: 1.6; color: #687361; }
.context-slot-state[data-state="active"] { color: #326133; font-weight: 600; }
.context-slot-state[data-state="edited"] { color: #8d5b30; }
.context-slot-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.context-slot-actions .owner-secondary { margin-top: 0; }
.context-active-copy { margin-top: 8px; padding: 8px; background: #eaf0e3; border-radius: 5px; }
.knowledge-override { display: block; width: fit-content; margin-top: 7px; padding: 3px 7px; border-radius: 4px; background: #e2ecd7; font-size: .7rem; font-weight: 600; }
@media (max-width: 800px) { .context-slots { grid-template-columns: 1fr; } .context-slot label { min-height: auto; margin-bottom: 8px; } }

.context-preview { margin-top: 14px; padding: 12px; border: 1px solid #9eb28d; border-radius: 7px; background: #eaf0e3; }
.context-preview label { min-height: auto; margin-bottom: 8px; }
.context-preview .context-slot-actions { flex-direction: column; align-items: stretch; }
.context-slot-actions button { overflow-wrap: anywhere; }

.context-consistency { margin-top: 12px; padding-top: 10px; border-top: 1px solid #c3d0b6; font-size: .75rem; line-height: 1.6; overflow-wrap: anywhere; }
.context-consistency [data-state="warning"], .context-consistency [data-state="outdated"], .context-consistency [data-state="unavailable"] { color: #805522; }
.context-consistency [data-state="checked"] { color: #326133; }
.context-warnings { padding-left: 17px; margin: 7px 0; }
.context-warnings li { margin: 7px 0; }
.context-consistency .owner-secondary { width: 100%; margin-top: 8px; }

.assistant-identity { margin: 0; padding: 11px 22px; background: #eff3e9; color: #42553d; font-size: .78rem; line-height: 1.6; border-bottom: 1px solid var(--line); }
.message[data-message-kind="disclosure"] { background: #f1f3ec; border: 1px solid #d5ddcd; }

/* Reveal one capability at a time; the conversation remains beside each view. */
.demo-journey { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.demo-journey button { padding: 12px 17px; min-height: 44px; border: 1px solid #cbd6c4; border-radius: 9px; background: var(--paper); color: var(--green); font-size: .9rem; cursor: pointer; }
.demo-journey button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--paper); }
.demo-journey button:hover { border-color: var(--green); }
.journey-attention { display: block; margin: 0 0 16px; padding: 14px 18px; width: 100%; border: 1px solid #a8bd94; border-radius: 9px; background: #e6efdb; color: var(--green); font-size: .9rem; text-align: left; cursor: pointer; }
.journey-view { min-width: 0; }
.journey-view > h4 { font-size: 1.2rem; line-height: 1.4; letter-spacing: -.025em; }
.journey-view .journey-description, .journey-welcome > p:not(.eyebrow) { margin-top: 14px; font-size: 1rem; line-height: 1.7; color: var(--muted); }
.journey-welcome { padding-block: 16px 24px; }
.journey-welcome > h4 { margin-top: 14px; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.2; }
.journey-discovery { margin-top: 28px; padding: 22px; border: 1px solid #d9e3ce; border-radius: 12px; background: #eff4e8; }
.journey-discovery > p:first-child { font-size: 1rem; font-weight: 600; line-height: 1.5; }
.journey-discovery > p + p { margin-top: 10px; font-size: 1rem; line-height: 1.7; color: var(--muted); }
.journey-discovery > button { margin-top: 20px; }
.journey-welcome > .journey-reassurance { margin-top: 22px; font-size: .875rem; }
.journey-next { margin-top: 20px; }
.journey-view .owner-button { font-size: .875rem; min-height: 44px; }
.journey-view .owner-demo-note, .journey-view .owner-status, .journey-view .knowledge-note, .journey-view .knowledge-status { font-size: .875rem; }
.journey-view .business-knowledge { margin: 20px 0 0; padding-inline: 16px; }
.journey-view .business-facts, .journey-view .context-slots { grid-template-columns: minmax(0, 1fr); }
.journey-view .business-facts li, .journey-view .context-slot label, .journey-view .context-slot textarea { font-size: .875rem; }
.journey-view .context-slot label { min-height: auto; margin-bottom: 8px; }
.journey-view .owner-demo { margin-top: 20px; }
.journey-view .intent-row { margin-top: 20px; }
@media (max-width: 600px) {
  .demo-journey { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-journey button { padding: 11px 9px; font-size: .875rem; }
  .journey-welcome { padding-block: 4px 12px; }
  .journey-discovery { padding: 18px; }
}

.application-picker { margin-block: 24px; }
.application-picker > h3 { font-size: 1.1rem; margin-bottom: 14px; }
.application-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.application-options button { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border: 1px solid #cbd6c4; border-radius: 12px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; }
.application-options button strong { font-size: 1.1rem; }
.application-options button > span { font-size: 1rem; line-height: 1.6; color: var(--muted); }
.application-options button[aria-pressed="true"] { border-color: var(--green); background: #eaf0e2; box-shadow: inset 0 0 0 1px var(--green); }
.application-options button:disabled { cursor: wait; }
.application-note { margin-top: 10px; font-size: .875rem; line-height: 1.6; color: var(--muted); }
.employee-example { margin-bottom: 22px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: #eef2e8; }
.employee-example h3 { font-size: 1rem; }
.employee-example p { margin-top: 8px; color: var(--muted); font-size: .875rem; line-height: 1.7; }
.employee-summary > section { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.employee-summary h4 { font-size: 1rem; line-height: 1.5; }
.employee-summary ol, .employee-summary ul { padding-left: 22px; margin-block: 12px 0; }
.employee-summary li { margin-top: 10px; line-height: 1.7; overflow-wrap: anywhere; font-size: 1rem; }
.employee-summary p { margin-top: 12px; font-size: .875rem; line-height: 1.7; color: var(--muted); }
.employee-examples .scenario-card { min-height: 190px; }
@media (max-width: 600px) {
  .application-options { grid-template-columns: 1fr; }
  .application-options button { padding: 18px; }
  .employee-example { padding: 16px; }
}
