/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 */
/* Santiago · audience: private-school admissions teams · use: understand and request a demo · tone: precise and warm */
:root {
  --paper: #f5f4ef;
  --surface: #ffffff;
  --surface-soft: #eeeee9;
  --ink: #172035;
  --ink-soft: #4f5969;
  --ink-faint: #697384;
  --line: #dcdedc;
  --blue: #173dcd;
  --blue-soft: #e8edff;
  --blue-deep: #102e9d;
  --mint: #d9f1e2;
  --mint-ink: #206044;
  --amber: #fff0ce;
  --amber-ink: #815c0c;
  --blue-line: #bfccff;
  --night-muted: #c1c8d5;
  --night-blue: #a9bdff;
  --closing-muted: #d7dfff;
  --closing-label: #bac8ff;
  --workspace: #f1f4f7;
  --workspace-line: #dce1e6;
  --workspace-rule: #d7dce2;
  --workspace-chat: #f8f9fa;
  --header-glass: rgba(245,244,239,.94);
  --hover-shadow: 0 8px 20px rgba(23,32,53,.12);
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow: 0 18px 56px rgba(23, 32, 53, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); overflow-x: clip; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip-link { position: absolute; top: -60px; left: 12px; z-index: 100; background: var(--surface); padding: 12px; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: var(--header-glass); backdrop-filter: blur(12px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font-weight: 750; font-size: 20px; letter-spacing: -.045em; }
.brand img { display: block; }
.header-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.header-nav a { font-size: 13px; font-weight: 600; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.header-nav a:hover, .text-link:hover { color: var(--blue); }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 13px 20px; text-decoration: none; text-align: center; border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: var(--hover-shadow); }
.button-small { min-height: 39px; padding: 9px 14px; }
.button-outline { background: transparent; border-color: var(--ink); }
.button-primary { background: var(--blue); color: var(--surface); }
.button-primary:hover { background: var(--blue-deep); }
.button-dark { background: var(--ink); color: var(--surface); }
.button-light { background: var(--surface); color: var(--ink); }
.text-link { font-size: 13px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); align-items: center; gap: clamp(32px, 6vw, 90px); padding-block: clamp(72px, 9vw, 132px); }
.eyebrow, .section-number { margin: 0; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow-line { width: 28px; height: 1px; background: var(--blue); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.045em; }
h1 { max-width: 12ch; margin: 24px 0 24px; font-size: clamp(48px, 5.3vw, 79px); line-height: 1.015; }
h1 em { color: var(--blue); font-weight: 400; }
.hero-lede { max-width: 51ch; margin: 0; color: var(--ink-soft); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.68; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.hero-note, .small-note { max-width: 50ch; color: var(--ink-faint); font-size: 11px; line-height: 1.55; }
.hero-note { margin-top: 20px; }
.hero-visual { position: relative; padding: 23px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.visual-rail { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 17px; color: var(--ink-faint); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.message-card { display: flex; align-items: flex-start; gap: 13px; padding: 22px 0 6px; }
.message-icon { width: 29px; height: 29px; display: grid; place-items: center; flex: none; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-weight: 800; }
.message-card p { max-width: 33ch; margin: 3px 0 0; font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); line-height: 1.26; }
.flow-line { height: 31px; margin-left: 13px; border-left: 1px dashed var(--blue); }
.santiago-card { margin-left: 30px; padding: 17px 19px; border: 1px solid var(--blue-line); border-radius: 6px; background: var(--blue-soft); }
.santiago-card-head { display: flex; align-items: center; gap: 9px; }
.santiago-card-head strong { font-size: 14px; }
.santiago-card-head span { margin-left: auto; padding: 5px 8px; border-radius: 3px; background: var(--surface); color: var(--blue); font-size: 10px; font-weight: 800; }
.santiago-card p { margin: 12px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.santiago-card + .flow-line { margin-left: 43px; }
.task-card { display: flex; justify-content: space-between; gap: 14px; margin-left: 30px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.task-card small, .preview-next small { display: block; margin-bottom: 8px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.task-card strong { display: block; max-width: 34ch; font-size: 12px; line-height: 1.4; }
.task-card > span { color: var(--blue); }
.visual-caption { margin-top: 16px; text-align: right; color: var(--ink-faint); font-size: 10px; }
.statement { background: var(--ink); color: var(--surface); }
.statement-inner { display: grid; grid-template-columns: 180px minmax(0, 1.45fr) minmax(0, .8fr); gap: 36px; align-items: start; padding-block: 75px; }
.statement .section-number { color: var(--night-blue); }
.statement h2 { margin: 0; font-size: clamp(34px, 3.4vw, 50px); line-height: 1.13; }
.statement p:last-child { margin: 5px 0 0; color: var(--night-muted); font-size: 14px; line-height: 1.68; }
.section { padding-block: 110px; }
.section-heading { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 36px; align-items: start; margin-bottom: 48px; }
.section-heading h2, .implementation h2, .product-copy h2, .closing h2 { max-width: 16ch; margin: 0; font-size: clamp(38px, 4.2vw, 58px); line-height: 1.1; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.step { display: flex; flex-direction: column; min-height: 245px; justify-content: space-between; padding: 24px 30px 0 0; }
.step + .step { padding-left: 30px; border-left: 1px solid var(--line); }
.step-index { color: var(--blue); font-family: var(--font-display); font-size: 32px; }
.step h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: -.03em; }
.step p { max-width: 33ch; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.product-section { padding-block: 96px; background: var(--surface-soft); }
.product-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 72px); align-items: center; }
.product-copy h2 { margin-top: 19px; }
.product-copy > p:not(.section-number):not(.small-note) { max-width: 52ch; margin: 22px 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.check-list { display: grid; gap: 11px; margin: 28px 0 32px; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 11px; align-items: center; font-size: 13px; font-weight: 600; }
.check-list li::before { content: '↗'; display: grid; place-items: center; width: 19px; height: 19px; flex: none; color: var(--blue); background: var(--blue-soft); border-radius: 50%; font-size: 11px; }
.product-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.preview-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 17px; border-bottom: 1px solid var(--line); }
.preview-brand { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; }
.preview-demo { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .07em; }
.preview-body { display: grid; grid-template-columns: 126px minmax(0, 1fr); min-height: 360px; }
.preview-sidebar { display: flex; flex-direction: column; gap: 5px; border-right: 1px solid var(--line); padding: 19px 10px; color: var(--ink-faint); font-size: 11px; }
.preview-sidebar span { padding: 9px 7px; white-space: nowrap; }
.preview-sidebar .preview-active { border-radius: 4px; color: var(--blue); background: var(--blue-soft); font-weight: 700; }
.preview-main { padding: 25px 23px; }
.preview-main > small { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.preview-main h3 { margin: 8px 0 22px; font-family: var(--font-display); font-size: 27px; font-weight: 400; }
.preview-person { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-block: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 39px; height: 39px; flex: none; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 800; }
.preview-person div { display: grid; gap: 3px; min-width: 0; }
.preview-person strong { font-size: 12px; }
.preview-person small { color: var(--ink-faint); font-size: 10px; }
.preview-tag { margin-left: auto; padding: 5px 6px; border-radius: 3px; color: var(--amber-ink); background: var(--amber); font-size: 9px; font-weight: 700; white-space: nowrap; }
.preview-quote { margin: 20px 0; max-width: 35ch; font-family: var(--font-display); font-size: 21px; line-height: 1.35; }
.preview-next { padding: 13px 15px; border-left: 3px solid var(--blue); background: var(--blue-soft); }
.preview-next strong { font-size: 11px; }
.small-note { margin-top: 13px; }
.implementation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(40px, 8vw, 120px); }
.implementation h2 { margin-top: 18px; }
.implementation > div:last-child { padding-top: 32px; }
.implementation > div:last-child p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.75; }
.implementation .text-link { display: inline-block; margin-top: 10px; }
.closing { background: var(--blue); color: var(--surface); }
.closing-inner { display: flex; align-items: end; justify-content: space-between; gap: 50px; padding-block: 75px; }
.closing .section-number { color: var(--closing-label); }
.closing h2 { max-width: 16ch; margin-top: 18px; }
.closing p:last-child { color: var(--closing-muted); font-size: 14px; line-height: 1.6; }
.closing-actions { display: grid; gap: 18px; justify-items: start; flex: none; }
.closing-actions > a:last-child { color: var(--surface); font-size: 12px; font-weight: 700; }
.site-footer { padding-block: 28px; background: var(--surface); }
.footer-inner { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--ink-faint); }
.footer-inner .brand { color: var(--ink); font-size: 17px; }
.footer-inner a:not(.brand) { margin-left: auto; color: var(--ink); }
.footer-inner small { width: 100%; font-size: 10px; }

/* Interactive sales demo */
.demo-page { min-height: 100vh; background: var(--surface-soft); }
.demo-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.demo-header-inner { min-height: 68px; display: flex; align-items: center; gap: 24px; }
.demo-header-inner .back-link { margin-left: auto; color: var(--blue); text-decoration: none; font-size: 12px; font-weight: 700; white-space: nowrap; }
.demo-banner { padding: 10px 24px; text-align: center; background: var(--blue-soft); color: var(--blue-deep); font-size: 11px; line-height: 1.5; font-weight: 650; }
.demo-shell { width: min(1420px, 100%); min-height: calc(100vh - 104px); display: grid; grid-template-columns: 210px minmax(0, 1fr); margin-inline: auto; background: var(--surface); }
.demo-side { border-right: 1px solid var(--line); padding: 31px 17px; }
.demo-side p { margin: 0 0 22px; padding-left: 12px; color: var(--ink-faint); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.demo-nav { display: grid; gap: 6px; }
.demo-nav button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 5px; padding: 12px; background: transparent; color: var(--ink-soft); text-align: left; font-size: 12px; font-weight: 650; }
.demo-nav button:hover { background: var(--paper); }
.demo-nav button[aria-selected="true"] { color: var(--blue); background: var(--blue-soft); }
.demo-nav button span:first-child { width: 18px; font-size: 15px; text-align: center; }
.demo-side-note { margin: 40px 10px 0; padding: 14px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 11px; line-height: 1.5; }
.demo-main { min-width: 0; padding: 34px clamp(18px, 4vw, 58px) 70px; }
.demo-title-row { display: flex; justify-content: space-between; align-items: start; gap: 24px; margin-bottom: 27px; }
.demo-title-row .section-number { margin-bottom: 10px; }
.demo-title-row h1 { max-width: none; margin: 0; font-size: clamp(33px, 3.2vw, 46px); }
.demo-title-row p:last-child { margin: 10px 0 0; color: var(--ink-faint); font-size: 13px; }
.demo-pill { flex: none; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-faint); font-size: 10px; font-weight: 750; letter-spacing: .07em; }
.demo-view[hidden] { display: none; }
.inbox { display: grid; grid-template-columns: minmax(220px, .42fr) minmax(0, .58fr); min-height: 580px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.inbox-list { border-right: 1px solid var(--line); }
.search-wrap { display: block; padding: 14px; border-bottom: 1px solid var(--line); }
.search-wrap input { width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 10px 11px; color: var(--ink); background: var(--paper); font-size: 12px; }
.lead-list { display: grid; align-content: start; }
.lead-row { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; border: 0; border-bottom: 1px solid var(--line); padding: 16px 14px; background: var(--surface); text-align: left; }
.lead-row:hover { background: var(--paper); }
.lead-row[aria-selected="true"] { background: var(--blue-soft); box-shadow: inset 3px 0 var(--blue); }
.lead-row .avatar { width: 36px; height: 36px; }
.lead-row-main { min-width: 0; }
.lead-row strong, .lead-row small, .lead-row em { display: block; }
.lead-row strong { font-size: 12px; }
.lead-row small { overflow: hidden; margin-top: 3px; color: var(--ink-faint); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.lead-row em { margin-top: 8px; color: var(--blue); font-size: 10px; font-style: normal; font-weight: 750; }
.empty-search { padding: 20px; color: var(--ink-faint); font-size: 12px; }
.lead-detail { min-width: 0; display: flex; flex-direction: column; }
.detail-head { display: flex; align-items: center; gap: 12px; padding: 19px 23px; border-bottom: 1px solid var(--line); }
.detail-head strong { font-size: 14px; }
.detail-head small { display: block; margin-top: 4px; color: var(--ink-faint); font-size: 11px; }
.status-chip { margin-left: auto; padding: 6px 8px; border-radius: 3px; background: var(--amber); color: var(--amber-ink); font-size: 10px; font-weight: 750; white-space: nowrap; }
.status-chip.done { background: var(--mint); color: var(--mint-ink); }
.conversation { display: grid; align-content: start; gap: 13px; flex: 1; padding: 27px 23px; background: var(--paper); }
.chat-bubble { max-width: min(82%, 430px); padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 12px; line-height: 1.6; }
.chat-bubble.assistant { justify-self: end; border-color: var(--blue-line); background: var(--blue-soft); }
.chat-bubble b { display: block; margin-bottom: 4px; color: var(--blue); font-size: 10px; }
.detail-bottom { padding: 19px 23px; border-top: 1px solid var(--line); }
.detail-bottom small { display: block; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.detail-bottom strong { display: block; margin: 7px 0 14px; font-size: 13px; line-height: 1.5; }
.demo-action { border: 0; border-radius: 5px; padding: 10px 13px; background: var(--blue); color: var(--surface); font-size: 11px; font-weight: 750; }
.demo-action:hover { background: var(--blue-deep); }
.demo-action:disabled { background: var(--surface-soft); color: var(--ink-faint); cursor: default; }
.demo-reset { margin-left: 12px; border: 0; background: transparent; color: var(--ink-faint); font-size: 11px; text-decoration: underline; }
.demo-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.demo-card { min-height: 190px; border: 1px solid var(--line); border-radius: 6px; padding: 23px; background: var(--surface); }
.demo-card small { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.demo-card h2 { margin: 17px 0 10px; font-size: 26px; }
.demo-card p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.demo-disclaimer { margin-top: 24px; color: var(--ink-faint); font-size: 11px; }

@media (max-width: 1050px) {
  .header-nav { display: none; }
  .statement-inner { grid-template-columns: 140px minmax(0, 1fr); }
  .statement-inner p:last-child { grid-column: 2; }
  .demo-shell { grid-template-columns: 170px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wrap { width: min(1180px, calc(100% - 32px)); }
  .header-inner { min-height: 64px; }
  .hero, .product-grid, .implementation { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 68px; }
  h1 { max-width: 15ch; }
  .hero-visual { max-width: 580px; }
  .statement-inner, .section-heading { display: block; }
  .statement-inner { padding-block: 54px; }
  .statement h2, .section-heading h2 { margin-top: 17px; }
  .statement p:last-child { margin-top: 20px; }
  .section { padding-block: 72px; }
  .steps { display: block; }
  .step, .step + .step { min-height: 0; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .step p { max-width: 60ch; }
  .product-section { padding-block: 70px; }
  .implementation > div:last-child { padding-top: 0; }
  .closing-inner { display: block; padding-block: 58px; }
  .closing-actions { margin-top: 30px; }
  .demo-shell { display: block; }
  .demo-side { padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-side > p, .demo-side-note { display: none; }
  .demo-nav { display: flex; overflow-x: auto; }
  .demo-nav button { width: auto; white-space: nowrap; }
  .demo-main { padding: 27px 16px 60px; }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox-list { border-right: 0; }
  .lead-list { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .lead-row { grid-template-columns: minmax(0, 1fr); }
  .lead-detail { min-height: 500px; }
}
@media (max-width: 480px) {
  .brand { font-size: 18px; }
  .header-inner .button { min-height: 36px; padding: 8px 10px; font-size: 11px; }
  .hero { padding-block: 56px; }
  h1 { font-size: 46px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 19px; }
  .hero-visual { padding: 15px; }
  .visual-rail { flex-wrap: wrap; font-size: 8px; }
  .statement h2, .section-heading h2, .product-copy h2, .implementation h2, .closing h2 { font-size: 36px; }
  .preview-body { grid-template-columns: 88px minmax(0, 1fr); }
  .preview-top { flex-wrap: wrap; }
  .preview-demo { width: 100%; }
  .preview-sidebar { padding: 14px 4px; font-size: 9px; }
  .preview-main { padding: 20px 12px; }
  .preview-person { flex-wrap: wrap; }
  .preview-tag { margin-left: 0; }
  .footer-inner a:not(.brand) { margin-left: 0; }
  .demo-header-inner { gap: 10px; }
  .demo-header-inner .back-link { font-size: 10px; }
  .demo-title-row { display: block; }
  .demo-pill { display: inline-block; margin-top: 17px; }
  .lead-list { grid-template-columns: minmax(0, 1fr); max-height: 250px; overflow-y: auto; }
  .lead-row { grid-template-columns: 36px minmax(0, 1fr); padding: 11px 14px; }
  .lead-row em { margin-top: 5px; }
  .conversation { padding: 18px 13px; }
  .detail-head, .detail-bottom { padding-inline: 14px; }
  .demo-card-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }

/* The demo follows the structure of Santiago's working panel: top bar,
   horizontal sections, light workspace and conversation-first content. */
.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; }
.demo-page { background: var(--workspace); }
.demo-header-inner { width: min(1360px, calc(100% - 48px)); }
.demo-header-sub { color: var(--ink-faint); font-size: 11px; }
.demo-banner { padding-block: 9px; }
.demo-shell { display: block; min-height: calc(100vh - 104px); background: transparent; }
.demo-side { width: 100%; padding: 8px max(24px, calc((100% - 1270px)/2)); border-right: 0; border-bottom: 1px solid var(--workspace-rule); background: var(--surface); }
.demo-side > p { display: none; }
.demo-nav { display: flex; align-items: center; gap: 7px; overflow-x: auto; }
.demo-nav button { width: auto; min-height: 38px; padding: 9px 16px; border-radius: 999px; white-space: nowrap; }
.demo-nav button[aria-selected="true"] { color: var(--surface); background: var(--ink); }
.demo-main { width: min(1270px, 100%); padding: 43px 24px 75px; margin-inline: auto; }
.demo-title-row .section-number { color: var(--blue); }
.inbox { min-height: 560px; border: 0; border-radius: 0; overflow: visible; gap: 16px; background: transparent; }
.inbox-list, .lead-detail { min-width: 0; border: 1px solid var(--workspace-line); border-radius: 15px; overflow: hidden; background: var(--surface); }
.search-wrap { padding: 15px; }
.search-wrap input { min-height: 42px; border-radius: 999px; padding-inline: 15px; background: var(--surface); }
.lead-row { min-height: 91px; }
.lead-row[aria-selected="true"] { box-shadow: inset 4px 0 var(--blue); }
.detail-head { min-height: 76px; }
.conversation { min-height: 310px; background: var(--workspace-chat); }
.task-focus { max-width: 700px; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.task-focus-label { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.task-focus-person { display: flex; align-items: center; gap: 16px; padding-block: 30px; }
.task-focus-person .avatar { width: 54px; height: 54px; }
.task-focus-person h2 { margin: 0 0 5px; font-size: 30px; }
.task-focus-person p { margin: 0; color: var(--ink-faint); font-size: 13px; }
.task-focus-next { padding: 19px; margin-bottom: 24px; border-left: 3px solid var(--blue); background: var(--blue-soft); }
.task-focus-next small { display: block; margin-bottom: 8px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.task-focus-next strong { font-size: 14px; }
.demo-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 35px; padding-top: 28px; border-top: 1px solid var(--line); }
.demo-cta > span { font-size: 14px; font-weight: 700; }
@media (max-width: 760px) {
  .demo-header-inner { width: calc(100% - 32px); }
  .demo-side { padding-inline: 16px; }
  .demo-main { padding: 30px 16px 60px; }
  .inbox { display: block; }
  .inbox-list { margin-bottom: 12px; }
  .lead-detail { min-height: 500px; }
  .demo-cta { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .demo-header-sub { display: none; }
  .demo-nav { gap: 3px; }
  .demo-nav button { padding: 9px 7px; font-size: 11px; }
  .demo-nav button span:first-child { display: none; }
}

/* Full commercial panel demo */
.demo-header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.demo-header-actions .back-link { margin-left: 8px; }
.role-label { color: var(--ink-faint); font-size: 11px; font-weight: 700; }
.demo-header-actions select, .demo-reset-all { min-height: 35px; border: 1px solid var(--workspace-line); border-radius: 6px; padding: 6px 10px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 650; }
.full-demo-nav { overflow-x: auto; border-bottom: 1px solid var(--workspace-line); background: var(--surface); }
.full-demo-nav-inner { width: min(1360px, calc(100% - 48px)); display: flex; gap: 4px; margin: auto; }
.full-demo-nav button { flex: none; min-height: 48px; border: 0; border-bottom: 3px solid transparent; padding: 12px 13px 9px; background: transparent; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.full-demo-nav button:hover, .full-demo-nav button[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.full-demo-nav button[aria-current="page"] { border-bottom-color: var(--blue); }
.full-demo-main { width: min(1360px, calc(100% - 48px)); min-height: calc(100vh - 190px); margin: auto; padding: 38px 0 70px; }
.full-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.full-head h1 { max-width: none; margin: 8px 0; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.1; }
.full-head p:last-child { max-width: 68ch; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.fd-button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--workspace-line); border-radius: 6px; padding: 8px 12px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 750; text-align: center; }
.fd-button:hover, .fd-button.active { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.fd-button.primary { border-color: var(--blue); color: var(--surface); background: var(--blue); }
.fd-button.primary:hover { background: var(--blue-deep); }
.fd-card { min-width: 0; border: 1px solid var(--workspace-line); border-radius: 12px; background: var(--surface); box-shadow: 0 6px 20px rgba(23,32,53,.035); }
.fd-card h2 { margin: 0 0 14px; font-size: 24px; line-height: 1.2; }
.fd-card p { color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.fd-task-grid { display: grid; grid-template-columns: minmax(280px, .84fr) minmax(0, 1.16fr); gap: 18px; }
.fd-task-grid > aside { padding: 25px; }
.fd-context h3 { margin: 0 0 16px; font-size: 16px; }
.fd-context dl, .fd-definition { display: grid; grid-template-columns: minmax(85px, .4fr) minmax(0, 1fr); gap: 10px 14px; margin: 0; font-size: 12px; }
.fd-context dt, .fd-definition dt { color: var(--ink-faint); }
.fd-context dd, .fd-definition dd { margin: 0; font-weight: 650; }
.fd-obstacle { margin: 20px 0; border-left: 3px solid var(--blue); padding: 10px 14px; background: var(--blue-soft); }
.fd-obstacle small, .fd-task-action small { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.fd-obstacle p { margin: 6px 0 0; }
.fd-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.fd-task-action { margin-top: 24px; padding-top: 21px; border-top: 1px solid var(--workspace-line); }
.fd-task-action strong { display: block; margin-top: 7px; font-size: 15px; line-height: 1.45; }
.fd-chat { display: flex; flex-direction: column; overflow: hidden; }
.fd-chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--workspace-line); }
.fd-chat-head strong, .fd-chat-head span { display: block; }
.fd-chat-head strong { font-size: 14px; }
.fd-chat-head span { margin-top: 3px; color: var(--ink-faint); font-size: 11px; }
.fd-messages { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 250px; padding: 20px; background: var(--workspace-chat); }
.fd-bubble { width: fit-content; max-width: min(82%, 460px); border: 1px solid var(--workspace-line); border-radius: 9px; padding: 11px 13px; background: var(--surface); font-size: 12px; line-height: 1.55; }
.fd-bubble.from-team { align-self: flex-end; border-color: var(--blue-line); background: var(--blue-soft); }
.fd-bubble b, .fd-bubble span { display: block; }
.fd-bubble b { margin-bottom: 4px; color: var(--blue); font-size: 10px; }
.fd-chat-foot { padding: 15px 20px; border-top: 1px solid var(--workspace-line); }
.fd-inbox { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 14px; min-height: 630px; }
.fd-inbox-list, .fd-chat-panel { min-width: 0; overflow: hidden; border: 1px solid var(--workspace-line); border-radius: 12px; background: var(--surface); }
.fd-inbox-list input { width: calc(100% - 26px); min-height: 39px; margin: 13px; border: 1px solid var(--workspace-line); border-radius: 6px; padding: 8px 10px; font-size: 12px; }
.fd-lead { width: 100%; display: flex; align-items: start; gap: 10px; border: 0; border-top: 1px solid var(--workspace-line); padding: 14px; background: var(--surface); text-align: left; }
.fd-lead:hover, .fd-lead.active { background: var(--blue-soft); }
.fd-lead > span:last-child { min-width: 0; }
.fd-lead strong, .fd-lead small, .fd-lead em { display: block; }
.fd-lead strong { font-size: 12px; }
.fd-lead small { margin-top: 4px; color: var(--ink-faint); font-size: 11px; line-height: 1.4; }
.fd-lead em { margin-top: 7px; color: var(--blue); font-size: 10px; font-style: normal; font-weight: 750; }
.fd-chat-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 570px; }
.fd-chat-body > aside { min-width: 0; padding: 19px; border-right: 1px solid var(--workspace-line); }
.fd-tool-list { display: grid; gap: 7px; margin-top: 20px; }
.fd-chat-thread { min-width: 0; display: flex; flex-direction: column; }
.fd-chat-thread .fd-messages { min-height: 340px; }
.fd-composer { padding: 14px; border-top: 1px solid var(--workspace-line); }
.fd-composer textarea { width: 100%; min-height: 65px; resize: vertical; border: 1px solid var(--workspace-line); border-radius: 6px; padding: 10px; font: inherit; font-size: 12px; }
.fd-composer > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.fd-composer small { color: var(--ink-faint); font-size: 10px; }
.fd-stat-grid, .fd-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.fd-stat, .fd-media, .fd-team-card, .fd-list-block { padding: 22px; }
.fd-stat small, .fd-media > small, .fd-card-top > small, .fd-campaign-header small { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.fd-stat strong { display: block; margin-top: 11px; font-family: var(--font-display); font-size: 40px; font-weight: 400; }
.fd-stat p { margin: 4px 0 0; }
.fd-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.fd-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--workspace-line); }
.fd-line > span:first-child { min-width: 0; }
.fd-line b, .fd-line small { display: block; }
.fd-line b { font-size: 12px; }
.fd-line small { margin-top: 3px; color: var(--ink-faint); font-size: 11px; line-height: 1.45; }
.fd-line > strong { font-size: 15px; }
.fd-status { display: inline-block; flex: none; border-radius: 99px; padding: 5px 8px; background: var(--surface-soft); color: var(--ink-soft); font-size: 10px; font-weight: 750; }
.fd-status.good { background: var(--mint); color: var(--mint-ink); }
.fd-status.pending { background: var(--amber); color: var(--amber-ink); }
.fd-media-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 24px; }
.fd-media h2 { margin-top: 10px; }
.fd-media .fd-button { margin-top: 10px; }
.fd-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.fd-toolbar > div { display: flex; flex-wrap: wrap; gap: 5px; }
.fd-toolbar strong { text-transform: capitalize; font-size: 14px; }
.fd-calendar { overflow-x: auto; border: 1px solid var(--workspace-line); border-radius: 12px; background: var(--surface); }
.fd-cal-week, .fd-cal-grid { min-width: 680px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.fd-cal-week span { padding: 12px; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 750; }
.fd-cal-cell { min-height: 105px; border-top: 1px solid var(--workspace-line); border-right: 1px solid var(--workspace-line); padding: 9px; }
.fd-cal-cell b { display: block; margin-bottom: 8px; font-size: 11px; }
.fd-cal-cell button { width: 100%; border: 0; border-radius: 4px; padding: 5px; background: var(--blue-soft); color: var(--blue); font-size: 10px; text-align: left; }
.fd-cal-cell.muted { background: var(--workspace-chat); }
.fd-bar-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 24px; align-items: center; gap: 10px; padding: 8px 0; font-size: 11px; }
.fd-bar-row > div { height: 7px; border-radius: 99px; background: var(--workspace); }
.fd-bar-row i { display: block; height: 7px; border-radius: 99px; background: var(--blue); }
.fd-pipeline { display: grid; grid-template-columns: repeat(5, minmax(160px, 1fr)); gap: 12px; overflow-x: auto; margin-bottom: 18px; }
.fd-pipeline-col { min-height: 190px; border: 1px solid var(--workspace-line); border-radius: 10px; padding: 13px; background: var(--surface); }
.fd-pipeline-col h2 { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 13px; font-family: var(--font-body); font-size: 12px; font-weight: 800; }
.fd-pipeline-col h2 span { color: var(--blue); }
.fd-pipeline-col > button { width: 100%; display: block; margin-top: 8px; border: 1px solid var(--workspace-line); border-radius: 6px; padding: 10px; background: var(--workspace-chat); text-align: left; }
.fd-pipeline-col > button strong, .fd-pipeline-col > button small { display: block; }
.fd-pipeline-col > button strong { font-size: 11px; }
.fd-pipeline-col > button small { margin-top: 5px; color: var(--ink-faint); font-size: 10px; }
.fd-pipeline-col p { color: var(--ink-faint); font-size: 11px; }
.fd-team-card .avatar { margin-bottom: 13px; }
.fd-team-card p { margin: 0 0 15px; }
.fd-team-facts { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 15px; font-size: 11px; }
.fd-toggle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.fd-toggle-grid button { border: 1px solid var(--workspace-line); border-radius: 6px; padding: 10px; background: var(--workspace-chat); font-size: 11px; font-weight: 700; }
.fd-toggle-grid button[aria-pressed="true"] { border-color: var(--blue-line); background: var(--blue-soft); color: var(--blue); }
.fd-toggle-grid small { display: block; margin-top: 5px; font-size: 9px; font-weight: 500; }
.fd-control-row { min-height: 67px; }
.fd-switch { flex: none; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; font-size: 10px; font-weight: 700; }
.fd-switch i { position: relative; width: 33px; height: 19px; border-radius: 99px; background: var(--workspace-rule); }
.fd-switch i:after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); content: ''; }
.fd-switch.on i { background: var(--blue); }
.fd-switch.on i:after { left: 17px; }
.fd-note { color: var(--ink-faint); font-size: 11px; line-height: 1.5; }
.fd-empty { padding: 25px; border: 1px dashed var(--workspace-line); border-radius: 8px; color: var(--ink-faint); font-size: 12px; }
.fd-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fd-campaign-header { display: flex; justify-content: space-between; gap: 14px; padding: 20px; margin-bottom: 14px; }
.fd-campaign-header h2 { margin: 8px 0 3px; }
.fd-campaign-header p { margin: 0; }
.fd-step-nav { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.fd-step-nav button { border: 1px solid var(--workspace-line); border-radius: 6px; padding: 10px 14px; background: var(--surface); color: var(--ink-soft); font-size: 11px; font-weight: 750; }
.fd-step-nav button[aria-current="step"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.fd-list-block blockquote { margin: 14px 0; border-left: 3px solid var(--blue); padding-left: 15px; color: var(--ink); font-family: var(--font-display); font-size: 20px; }
.full-demo-dialog { width: min(520px, calc(100% - 24px)); max-height: min(80vh, 780px); overflow-y: auto; border: 1px solid var(--workspace-line); border-radius: 12px; padding: 0 22px 22px; box-shadow: var(--shadow); }
.full-demo-dialog::backdrop { background: rgba(23,32,53,.5); }
.dialog-header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 0 12px; background: var(--surface); }
.dialog-header h2 { margin: 0; font-size: 26px; }
.dialog-header button { border: 0; padding: 5px; background: transparent; font-size: 18px; }
.full-demo-dialog p, .full-demo-dialog li { color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.fd-dialog-form, .fd-dialog-choices { display: grid; gap: 13px; margin-top: 16px; }
.fd-dialog-form label { display: grid; gap: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.fd-dialog-form input, .fd-dialog-form select, .fd-dialog-form textarea { width: 100%; min-height: 39px; border: 1px solid var(--workspace-line); border-radius: 5px; padding: 8px 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; }
.fd-dialog-form textarea { min-height: 85px; resize: vertical; }
.fd-dialog-form > button { justify-self: start; margin-top: 4px; }
.demo-toast { position: fixed; right: 16px; bottom: 16px; z-index: 100; max-width: min(420px, calc(100% - 32px)); border-radius: 7px; padding: 12px 15px; background: var(--ink); color: var(--surface); box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.demo-toast.show { opacity: 1; transform: none; }
@media (max-width: 920px) {
  .fd-task-grid, .fd-two-col { grid-template-columns: minmax(0, 1fr); }
  .fd-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-inbox { grid-template-columns: 220px minmax(0, 1fr); }
  .fd-chat-body { grid-template-columns: minmax(0, 1fr); }
  .fd-chat-body > aside { border-right: 0; border-bottom: 1px solid var(--workspace-line); }
}
@media (max-width: 620px) {
  .demo-header-inner { flex-wrap: wrap; padding-block: 10px; }
  .demo-header-actions { width: 100%; justify-content: space-between; gap: 7px; }
  .demo-header-actions .back-link { margin-left: auto; }
  .full-demo-nav-inner, .full-demo-main { width: calc(100% - 28px); }
  .full-demo-main { padding-top: 25px; }
  .full-head { display: block; }
  .full-head > .fd-button { margin-top: 15px; }
  .fd-inbox, .fd-task-grid, .fd-stat-grid, .fd-card-grid { grid-template-columns: minmax(0, 1fr); }
  .fd-inbox { gap: 10px; }
  .fd-leads { display: flex; overflow-x: auto; }
  .fd-lead { flex: 0 0 190px; border-top: 0; border-right: 1px solid var(--workspace-line); }
  .fd-toggle-grid { grid-template-columns: minmax(0, 1fr); }
  .fd-line { align-items: start; }
  .fd-line > .fd-button { flex: none; }
}
@media (max-width: 360px) {
  .demo-header-actions { flex-wrap: wrap; }
  .demo-header-actions .back-link { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .demo-toast { transition: none; } }
