:root {
  --ink: #17211c;
  --muted: #637068;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #dfe5df;
  --green: #1f5d45;
  --green-dark: #123c2d;
  --green-soft: #e7f1eb;
  --gold: #c89d48;
  --gold-soft: #f8eed9;
  --blue: #2f6280;
  --red: #a1453d;
  --shadow: 0 20px 60px rgba(23, 33, 28, .12);
  --radius: 20px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.25rem, 5vw, 4.7rem); line-height: .98; letter-spacing: -.05em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -.035em; }
h3 { font-size: 1.14rem; }

.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; }
.eyebrow { margin-bottom: .55rem; color: var(--green); font-weight: 800; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.lede, .hero-text { color: var(--muted); font-size: 1.15rem; line-height: 1.65; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 1px solid transparent; border-radius: 12px; padding: .82rem 1.1rem; background: var(--surface); color: var(--ink); font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover, .button:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(23, 33, 28, .12); }
.button-primary { color: white; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { color: var(--green-dark); background: var(--green-soft); border-color: #bdd2c4; }
.button-switch { color: white; background: var(--ink); }
.button-quiet { background: transparent; border-color: var(--line); }
.button-large { min-height: 50px; padding-inline: 1.35rem; }
.button-xl { min-height: 60px; padding-inline: 1.55rem; font-size: 1.02rem; }
.text-button { background: transparent; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }

.demo-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 4rem); background: rgba(251, 250, 246, .94); border-bottom: 1px solid rgba(223, 229, 223, .9); backdrop-filter: blur(18px); }
.brand-lockup { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-lockup span:last-child { display: grid; gap: .1rem; }
.brand-lockup small { color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: white; background: var(--green); font-weight: 900; letter-spacing: -.03em; }
.header-actions { display: flex; align-items: center; gap: .7rem; }
.preview-banner { padding: .7rem 1rem; text-align: center; background: var(--gold-soft); border-bottom: 1px solid #ead6ae; color: #674b18; font-size: .9rem; }
.demo-sequence { display: flex; justify-content: center; gap: .65rem; padding: .72rem 1rem; border-bottom: 1px solid #d7ded9; background: #eef2ee; }
.demo-sequence a, .demo-sequence span { padding: .58rem .85rem; border: 1px solid #cbd5ce; border-radius: 999px; color: #4d5d54; background: white; font-size: .82rem; font-weight: 850; text-decoration: none; }
.demo-sequence a:hover, .demo-sequence a:focus-visible { border-color: var(--green); color: var(--green-dark); }
.demo-sequence [aria-current="step"] { border-color: var(--green); color: white; background: var(--green); }
.demo-sequence .upcoming-step { color: #7b8780; background: #f7f8f7; }
.apc-demo-sequence { border-bottom-color: #c2cede; background: #edf2f8; }
.apc-demo-sequence [aria-current="step"] { border-color: #d7a63c; color: #17345d; background: #e1b54d; }

.website-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; min-height: 68vh; padding: clamp(4rem, 8vw, 8rem) clamp(1.2rem, 7vw, 7rem); background: radial-gradient(circle at 85% 25%, rgba(200,157,72,.24), transparent 30%), linear-gradient(135deg, #f6f8f4, #fbfaf6 65%); }
.hero-copy { max-width: 820px; }
.hero-copy .hero-text { max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.customization-card { position: relative; padding: 2rem; border: 1px solid #d8dfd9; border-radius: var(--radius); background: rgba(255,255,255,.84); box-shadow: var(--shadow); }
.customization-card p:last-child { color: var(--muted); line-height: 1.65; }
.custom-arrow { position: absolute; top: -24px; left: -20px; color: var(--gold); font-size: 2.4rem; transform: rotate(12deg); }

.focus-section, .expert-section, .memory-section { padding: clamp(4rem, 7vw, 7rem) clamp(1.2rem, 7vw, 7rem); }
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.section-heading > p:last-child { color: var(--muted); line-height: 1.6; }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.focus-grid article { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.focus-grid article p { color: var(--muted); line-height: 1.6; }
.icon-chip { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1.4rem; border-radius: 50%; color: var(--green-dark); background: var(--green-soft); font-weight: 900; }
.expert-section { background: #eef2ee; }
.expert-grid, .memory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.interaction-panel { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 38px rgba(23,33,28,.06); }
.panel-heading { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.3rem; }
.panel-heading h3, .panel-heading p { margin-bottom: .25rem; }
.panel-heading p { color: var(--muted); }
.step-number { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 50%; color: white; background: var(--green); font-weight: 900; }

.stack-form { display: grid; gap: 1rem; }
.stack-form label { display: grid; gap: .45rem; font-weight: 750; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
input, select, textarea { width: 100%; border: 1px solid #cfd8d1; border-radius: 11px; padding: .85rem .9rem; color: var(--ink); background: white; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(31,93,69,.15); border-color: var(--green); }
textarea { resize: vertical; }
.check-row { grid-template-columns: auto 1fr !important; align-items: flex-start; font-weight: 500 !important; line-height: 1.45; }
.check-row input { width: 20px; height: 20px; margin-top: .12rem; }
.form-message { min-height: 1.3rem; margin: 0; color: var(--green); font-weight: 750; }
.form-message.error, .error { color: var(--red); }

.quick-questions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.quick-questions button, .filter { border: 1px solid var(--line); border-radius: 999px; padding: .55rem .8rem; background: var(--paper); color: var(--ink); cursor: pointer; font-weight: 700; }
.chat-log { display: flex; flex-direction: column; gap: .75rem; min-height: 290px; max-height: 360px; overflow: auto; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #f7f8f6; }
.chat-log.compact { min-height: 190px; max-height: 260px; }
.chat-bubble { max-width: 86%; padding: .85rem 1rem; border-radius: 16px; line-height: 1.5; }
.chat-bubble.assistant { align-self: flex-start; background: white; border: 1px solid var(--line); }
.chat-bubble.user { align-self: flex-end; color: white; background: var(--green); }
.chat-composer { display: grid; grid-template-columns: 1fr auto; gap: .55rem; margin-top: .8rem; }
.scope-note, .privacy-note { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.demo-footer { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem clamp(1.2rem, 7vw, 7rem); color: var(--muted); border-top: 1px solid var(--line); background: white; }

.login-body { display: grid; place-items: center; background: radial-gradient(circle at top, #ecf4ef, #fbfaf6 55%); }
.login-shell { width: min(100%, 520px); padding: 1.2rem; }
.login-card { padding: clamp(2rem, 7vw, 4rem); border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: var(--shadow); }
.login-card .brand-mark { margin-bottom: 1.4rem; }

.portal-body { background: #f3f5f2; }
.portal-main { padding: 2rem clamp(1rem, 4vw, 3.5rem) 5rem; }
.portal-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: 1rem 0 2rem; }
.portal-intro h1 { max-width: 780px; font-size: clamp(2rem, 4vw, 3.8rem); }
.portal-intro p:last-child { color: var(--muted); }
.portal-top-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.inbox-story { display: grid; gap: 0; margin: 1.6rem 0 3.5rem; }
.example-inbox-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.story-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding: clamp(1.25rem, 3vw, 2rem); border-bottom: 1px solid var(--line); }
.story-heading h2 { max-width: 760px; margin-bottom: .6rem; }
.story-heading p:last-child { max-width: 780px; margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.story-count { flex: 0 0 auto; display: grid; min-width: 150px; padding: .85rem 1rem; border-radius: 14px; color: var(--green-dark); background: var(--green-soft); text-align: center; font-weight: 800; }
.story-count strong { font-size: 1.8rem; line-height: 1; }
.example-loading { padding: 2rem; color: var(--muted); text-align: center; }
.example-arrival-list { display: grid; }
.arrival-email { display: grid; grid-template-columns: 46px minmax(170px, .8fr) minmax(0, 2fr) auto; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.arrival-email:last-child { border-bottom: 0; }
.arrival-email:nth-child(even) { background: #fafbf9; }
.arrival-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); background: #eef1ee; font-size: .78rem; font-weight: 900; }
.arrival-sender, .arrival-content { display: grid; gap: .25rem; min-width: 0; }
.arrival-sender span { overflow: hidden; color: var(--muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.arrival-content strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arrival-content p { overflow: hidden; margin: 0; color: var(--muted); font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.arrival-email time { align-self: start; color: var(--muted); font-size: .82rem; font-weight: 750; }
.freedom-sort-bridge { display: grid; justify-items: center; gap: .45rem; padding: 1.1rem; text-align: center; }
.freedom-sort-bridge .sort-arrow { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: white; background: var(--green); font-size: 1.7rem; font-weight: 900; box-shadow: 0 10px 26px rgba(31,93,69,.23); }
.freedom-sort-bridge div { display: grid; gap: .2rem; }
.freedom-sort-bridge span:last-child { color: var(--muted); }
.organized-panel { border-color: #b8cec0; background: #f3f8f5; }
.queue-totals { flex: 0 0 min(100%, 290px); display: grid; gap: .45rem; }
.queue-totals span { display: flex; align-items: center; gap: .55rem; color: #45534b; font-size: .9rem; font-weight: 750; }
.queue-totals strong { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: white; background: var(--green); }
.example-organized-list { display: grid; gap: 1rem; padding: clamp(1rem, 2.5vw, 1.6rem); }
.queue-group { overflow: hidden; border: 1px solid var(--line); border-left: 7px solid var(--green); border-radius: 16px; background: white; }
.queue-review { border-left-color: var(--gold); }
.queue-archive { border-left-color: #8a938e; }
.queue-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.2rem; border-bottom: 1px solid var(--line); }
.queue-group-heading h3 { margin-bottom: .3rem; font-size: 1.35rem; }
.queue-group-heading p:last-child { margin: 0; color: var(--muted); }
.group-count { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 50%; color: white; background: var(--ink); font-weight: 900; }
.queue-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.queue-archive .queue-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.organized-email { min-width: 0; padding: 1.15rem; background: white; }
.organized-email-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .8rem; }
.queue-position { color: var(--green-dark); font-size: .76rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.queue-review .queue-position { color: #765513; }
.queue-archive .queue-position { color: #626d67; }
.queue-score { padding: .3rem .55rem; border-radius: 999px; color: white; background: var(--green); font-size: .75rem; font-weight: 900; }
.queue-review .queue-score { color: #5c410d; background: var(--gold-soft); }
.organized-email h4 { margin: 0 0 .35rem; font-size: 1.06rem; }
.organized-subject { min-height: 2.6em; margin-bottom: 1rem; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.organized-summary { display: grid; gap: .35rem; padding: .85rem; border-radius: 11px; background: #f3f6f3; font-size: .9rem; line-height: 1.45; }
.organized-summary strong, .organized-next strong, .archive-reason strong { color: var(--ink); }
.organized-summary span { color: #45534b; }
.organized-next, .archive-reason { margin: .8rem 0 0; color: #45534b; font-size: .88rem; line-height: 1.48; }
.archive-reason { color: #6a4b17; }
.saved-opportunities-heading { max-width: 820px; margin: 0 0 1.2rem; }
.saved-opportunities-heading h2 { margin-bottom: .55rem; }
.saved-opportunities-heading p:last-child { color: var(--muted); line-height: 1.55; }
.mail-shell { display: grid; grid-template-columns: minmax(260px, 350px) minmax(0, 1fr); min-height: 680px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.lead-sidebar { border-right: 1px solid var(--line); background: #fafbf9; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.2rem 1rem; }
.sidebar-heading h2 { font-size: 1.35rem; margin-bottom: 0; }
.count-badge { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 .6rem; border-radius: 999px; color: white; background: var(--green); font-weight: 900; }
.filter-row { display: flex; gap: .35rem; padding: 0 1rem 1rem; }
.filter.active { color: white; background: var(--green); }
.lead-list { border-top: 1px solid var(--line); }
.lead-item { display: grid; gap: .4rem; width: 100%; padding: 1rem 1.1rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.lead-item:hover, .lead-item.active { background: var(--green-soft); }
.lead-item-top { display: flex; justify-content: space-between; gap: .7rem; }
.lead-item p { margin: 0; color: var(--muted); font-size: .9rem; }
.stage-pill, .fit-pill { display: inline-flex; align-items: center; width: max-content; border-radius: 999px; padding: .3rem .6rem; font-size: .73rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.stage-pill { color: var(--green-dark); background: var(--green-soft); }
.fit-pill.strong-fit { color: #155233; background: #dff1e7; }
.fit-pill.review { color: #715014; background: #faedcd; }
.fit-pill.pass { color: #7d302d; background: #f7dfdd; }
.empty-list, .empty-detail { padding: 2rem; color: var(--muted); line-height: 1.6; }
.lead-detail { min-width: 0; }
.empty-detail { display: grid; place-items: center; align-content: center; min-height: 600px; text-align: center; }
.empty-icon { font-size: 3rem; color: var(--gold); }
.detail-shell { padding: clamp(1.2rem, 3vw, 2.4rem); }
.detail-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.detail-top h2 { margin-bottom: .35rem; }
.detail-top p { color: var(--muted); }
.detail-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.detail-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfa; }
.detail-card.full { grid-column: 1 / -1; }
.detail-card p, .detail-card li { color: #46534c; line-height: 1.55; }
.detail-card ul { padding-left: 1.2rem; }
.editable-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.editable-grid .full { grid-column: 1 / -1; }
.memory-section { margin-top: 2rem; padding-inline: 0; }
.knowledge-list { display: grid; gap: .65rem; margin-top: 1rem; }
.knowledge-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.knowledge-item p { margin: .2rem 0 0; color: var(--muted); }

.tour-layer { position: fixed; inset: 0; z-index: 100; background: rgba(10,20,15,.42); }
.tour-callout { position: fixed; z-index: 101; left: 50%; bottom: 2rem; transform: translateX(-50%); width: min(92vw, 620px); padding: 1.25rem; border: 2px solid var(--gold); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.tour-callout p { color: var(--muted); line-height: 1.55; }
.tour-controls { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1rem; }
.tour-highlight { outline: 5px solid var(--gold); outline-offset: 5px; border-radius: 14px; }

@media (max-width: 900px) {
  .website-hero, .expert-grid, .memory-grid, .focus-grid { grid-template-columns: 1fr; }
  .mail-shell { grid-template-columns: 1fr; }
  .lead-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .portal-intro { align-items: flex-start; flex-direction: column; }
  .story-heading { flex-direction: column; }
  .story-count, .queue-totals { width: 100%; }
  .story-count { grid-template-columns: auto 1fr; align-items: center; justify-content: center; gap: .55rem; }
  .arrival-email { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .arrival-content { grid-column: 2 / -1; }
  .queue-archive .queue-cards { grid-template-columns: 1fr; }
  .detail-grid, .editable-grid { grid-template-columns: 1fr; }
  .detail-card.full, .editable-grid .full { grid-column: auto; }
}

@media (max-width: 680px) {
  .demo-header { align-items: flex-start; flex-direction: column; }
  .header-actions { width: 100%; }
  .header-actions .button-switch { flex: 1; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions, .portal-top-actions { display: grid; width: 100%; }
  .button-xl { width: 100%; }
  .portal-main { padding-inline: .75rem; }
  .arrival-email { gap: .75rem; padding: .9rem; }
  .arrival-sender span { display: none; }
  .arrival-content strong, .arrival-content p { white-space: normal; }
  .queue-cards { grid-template-columns: 1fr; }
  .queue-group-heading { align-items: flex-start; }
}


/* Private Equity industry costume */
.text-link { color: var(--ink); font-weight: 750; text-decoration: none; }
.text-link:hover { color: var(--green); }
.opportunity-section { padding: clamp(4rem, 7vw, 7rem) clamp(1.2rem, 7vw, 7rem); background: #eef2ee; }
.opportunity-form { max-width: 980px; margin: 0 auto; }
.inline-link { color: var(--green-dark); font-weight: 900; }

.assistant-launcher { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 31; display: inline-flex; align-items: center; gap: .55rem; min-height: 54px; padding: .75rem 1rem; border: 0; border-radius: 999px; color: white; background: var(--green); box-shadow: var(--shadow); font-weight: 900; cursor: pointer; }
.web-assistant { position: fixed; right: 1.25rem; bottom: 5.6rem; z-index: 30; display: none; width: min(420px, calc(100vw - 2rem)); max-height: min(720px, calc(100vh - 8rem)); overflow: auto; padding: 1.2rem; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 26px 80px rgba(15, 28, 21, .24); }
.web-assistant.open { display: block; }
.assistant-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.assistant-heading h2 { margin-bottom: 1rem; font-size: 1.6rem; }
.assistant-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); font-size: 1.4rem; cursor: pointer; }

.plain-process { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1rem; align-items: center; margin-bottom: 1.3rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: white; }
.plain-process div { display: grid; gap: .35rem; }
.plain-process span { color: var(--muted); line-height: 1.45; }
.plain-process .process-arrow { color: var(--gold); font-size: 1.5rem; font-weight: 900; }

.empty-list { display: grid; gap: .45rem; }
.lead-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.lead-item-top span { color: var(--muted); font-size: .82rem; }
.fit-pill.ready-to-review { color: #155233; background: #dff1e7; }
.fit-pill.needs-information { color: #715014; background: #faedcd; }


/* All Pro Capital prospect costume: reviewed official navy, gold, and typography cues. */
body[data-page="website"] {
  --apc-navy: #1a3b68;
  --apc-navy-dark: #132b4d;
  --apc-navy-deep: #0f2240;
  --apc-gold: #cf9f3d;
  --apc-gold-dark: #b8872c;
  --apc-pale: #f4f6f9;
  --apc-ink: #243b55;
  --apc-muted: #4f5a68;
  --apc-line: #dde3ea;
  color: var(--apc-ink);
  background: #fff;
  font-family: "Open Sans", Arial, sans-serif;
}
body[data-page="website"] h1,
body[data-page="website"] h2 { font-family: "DM Serif Text", Georgia, serif; font-weight: 400; letter-spacing: normal; }
body[data-page="website"] h3,
body[data-page="website"] .apc-button,
body[data-page="website"] .apc-nav,
body[data-page="website"] .apc-login-link,
body[data-page="website"] .assistant-launcher { font-family: Montserrat, Arial, sans-serif; }

.apc-announcement { padding: .65rem 1rem; color: white; background: var(--apc-gold); text-align: center; font-family: Montserrat, Arial, sans-serif; font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.apc-announcement span { margin-left: .45rem; }
.apc-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; min-height: 78px; padding: .8rem clamp(1rem, 4vw, 3.5rem); color: white; background: var(--apc-navy); }
.apc-brand { display: flex; align-items: center; gap: .75rem; color: white; text-decoration: none; }
.apc-brand > span:last-child { display: grid; gap: .05rem; }
.apc-brand strong { font-family: "DM Serif Text", Georgia, serif; font-size: 1.1rem; font-weight: 400; }
.apc-brand small { color: #dbe4ee; font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; }
.apc-brand-symbol { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.55); color: white; font-family: "DM Serif Text", Georgia, serif; font-size: 1.25rem; }
.apc-brand-symbol span { color: var(--apc-gold); }
.apc-nav { display: flex; justify-content: center; gap: clamp(.8rem, 2vw, 1.8rem); }
.apc-nav a, .apc-login-link { color: white; font-size: .9rem; font-weight: 600; text-decoration: none; }
.apc-nav a:hover, .apc-login-link:hover { color: #f1d9a6; }
.apc-header-actions { display: flex; align-items: center; gap: 1rem; }

.apc-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.35rem; border: 2px solid transparent; border-radius: 0; font-size: .9rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.apc-button-gold { color: white; background: var(--apc-gold); border-color: var(--apc-gold); }
.apc-button-gold:hover, .apc-button-gold:focus-visible { background: var(--apc-gold-dark); border-color: var(--apc-gold-dark); }
.apc-button-outline { color: var(--apc-navy); background: transparent; border-color: var(--apc-navy); }
.apc-button-outline:hover, .apc-button-outline:focus-visible { color: white; background: var(--apc-navy); }
.apc-button-large { min-height: 56px; padding-inline: 1.75rem; }

.apc-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .78fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; min-height: 640px; padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 7vw, 7rem); background: white; }
.apc-hero-copy { max-width: 720px; }
.apc-kicker { margin: 0 0 .65rem; color: var(--apc-gold-dark); font-family: Montserrat, Arial, sans-serif; font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.apc-hero h1 { margin-bottom: 1.4rem; color: var(--apc-navy); font-size: clamp(3rem, 5.4vw, 5rem); line-height: 1.03; }
.apc-lead { max-width: 690px; color: var(--apc-muted); font-size: 1.22rem; line-height: 1.7; }
.apc-hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.apc-small-note { margin: 1.3rem 0 0; color: var(--apc-muted); font-size: .88rem; line-height: 1.55; }
.apc-facts-panel { padding: 2rem; color: #dbe4ee; background: var(--apc-navy); }
.apc-facts-panel h2 { margin-bottom: 1.2rem; color: white; font-size: 1.75rem; }
.apc-facts-panel ul { margin: 0; padding: 0; list-style: none; }
.apc-facts-panel li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.16); }
.apc-facts-panel li:first-child { border-top: 0; }
.apc-facts-panel li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--apc-gold); background: rgba(207,159,61,.16); font-weight: 900; }
.apc-facts-panel strong, .apc-facts-panel small { display: block; }
.apc-facts-panel strong { color: white; font-family: Montserrat, Arial, sans-serif; }
.apc-facts-panel small { margin-top: .25rem; line-height: 1.45; }

.apc-augmentation { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 2rem; align-items: center; padding: 2.2rem clamp(1.25rem, 7vw, 7rem); color: white; background: var(--apc-navy-deep); }
.apc-augmentation h2 { margin-bottom: .75rem; color: white; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.apc-augmentation p:last-child { margin-bottom: 0; color: #dbe4ee; line-height: 1.6; }
.apc-augmentation-note { display: grid; gap: .4rem; padding: 1.25rem; border-left: 4px solid var(--apc-gold); background: rgba(255,255,255,.07); }
.apc-augmentation-note span { color: #dbe4ee; line-height: 1.5; }

.apc-section { padding: clamp(4.5rem, 8vw, 7rem) clamp(1.25rem, 7vw, 7rem); }
.apc-pale { background: var(--apc-pale); }
.apc-section-heading { max-width: 800px; margin-bottom: 2.4rem; }
.apc-section-heading h2 { margin-bottom: 1rem; color: var(--apc-navy); font-size: clamp(2.35rem, 4vw, 3.7rem); }
.apc-section-heading > p:last-child { color: var(--apc-muted); font-size: 1.06rem; line-height: 1.7; }
.apc-fund-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; max-width: 1180px; }
.apc-fund-card { display: flex; flex-direction: column; min-height: 520px; padding: 2rem; border-top: 8px solid var(--apc-gold); background: white; box-shadow: 0 18px 45px rgba(26,59,104,.09); }
.apc-card-label { color: var(--apc-muted); font-size: .9rem; }
.apc-fund-card h3 { color: var(--apc-navy); font-size: 1.55rem; }
.apc-rate { display: flex; align-items: baseline; gap: .7rem; margin: 1.2rem 0; color: var(--apc-navy); }
.apc-rate strong { font-family: "DM Serif Text", Georgia, serif; font-size: 4.2rem; font-weight: 400; line-height: 1; }
.apc-rate span { font-weight: 700; }
.apc-rate-detail { min-height: 3.2em; color: var(--apc-muted); line-height: 1.55; }
.apc-fund-card dl { display: grid; margin: auto 0 1.5rem; }
.apc-fund-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--apc-line); }
.apc-fund-card dt { color: var(--apc-muted); }
.apc-fund-card dd { margin: 0; color: var(--apc-navy); font-weight: 800; text-align: right; }
.apc-text-action { align-self: flex-start; padding: .25rem 0; border: 0; border-bottom: 2px solid var(--apc-gold); color: var(--apc-navy); background: transparent; font-weight: 800; cursor: pointer; }
.apc-risk-note { max-width: 1180px; margin-top: 1.4rem; padding: 1rem 1.2rem; border-left: 4px solid var(--apc-gold); color: var(--apc-muted); background: white; font-size: .88rem; line-height: 1.55; }

.apc-process-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; background: var(--apc-line); list-style: none; }
.apc-process-grid li { min-height: 250px; padding: 1.5rem; background: white; }
.apc-process-grid li > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1.4rem; border-radius: 50%; color: white; background: var(--apc-gold); font-weight: 900; }
.apc-process-grid h3 { color: var(--apc-navy); }
.apc-process-grid p { color: var(--apc-muted); line-height: 1.6; }

.apc-navy-section { color: white; background: var(--apc-navy); }
.apc-navy-section .apc-section-heading h2 { color: white; }
.apc-navy-section .apc-section-heading > p:last-child { color: #dbe4ee; }
.apc-portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 2rem; background: rgba(255,255,255,.18); }
.apc-portfolio-grid article { min-height: 220px; padding: 1.7rem; background: var(--apc-navy-dark); }
.apc-portfolio-grid article > span { color: var(--apc-gold); font-weight: 900; }
.apc-portfolio-grid h3 { color: white; }
.apc-portfolio-grid p { color: #dbe4ee; line-height: 1.6; }

.apc-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; max-width: 1100px; background: var(--apc-line); }
.apc-faq-grid button { display: flex; justify-content: space-between; gap: 1rem; min-height: 74px; padding: 1.2rem 1.35rem; border: 0; color: var(--apc-navy); background: white; text-align: left; font-weight: 800; cursor: pointer; }
.apc-faq-grid button:hover { background: var(--apc-pale); }
.apc-faq-grid span { color: var(--apc-gold-dark); font-size: 1.4rem; }

.apc-closing, .apc-cross-solution { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 7vw, 7rem); }
.apc-closing { color: white; background: var(--apc-navy-deep); }
.apc-closing h2 { margin-bottom: .8rem; color: white; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.apc-closing p:last-child { max-width: 760px; margin-bottom: 0; color: #dbe4ee; line-height: 1.65; }
.apc-cross-solution { border-top: 1px solid var(--apc-line); background: var(--apc-pale); }
.apc-cross-solution h2 { margin-bottom: .7rem; color: var(--apc-navy); }
.apc-cross-solution p:last-child { max-width: 760px; margin-bottom: 0; color: var(--apc-muted); line-height: 1.6; }

body[data-page="website"] .assistant-launcher { border-radius: 0; color: white; background: var(--apc-gold); box-shadow: 0 14px 36px rgba(15,34,64,.25); }
body[data-page="website"] .web-assistant { width: min(450px, calc(100vw - 2rem)); border: 3px solid var(--apc-navy); border-radius: 0; box-shadow: 0 26px 80px rgba(15,34,64,.28); }
body[data-page="website"] .assistant-heading h2 { color: var(--apc-navy); font-family: "DM Serif Text", Georgia, serif; font-size: 1.85rem; }
body[data-page="website"] .assistant-close { border-color: var(--apc-line); border-radius: 0; color: var(--apc-navy); }
body[data-page="website"] .quick-questions button { border-color: #c7d0dc; border-radius: 0; color: var(--apc-navy); background: var(--apc-pale); }
body[data-page="website"] .chat-log { border-color: var(--apc-line); border-radius: 0; background: var(--apc-pale); }
body[data-page="website"] .chat-bubble { border-radius: 0; }
body[data-page="website"] .chat-bubble.user { background: var(--apc-navy); }
body[data-page="website"] input,
body[data-page="website"] select,
body[data-page="website"] textarea { border-color: #c7d0dc; border-radius: 0; }
body[data-page="website"] input:focus,
body[data-page="website"] select:focus,
body[data-page="website"] textarea:focus { outline-color: rgba(207,159,61,.24); border-color: var(--apc-gold); }
.apc-handoff-toggle { width: 100%; margin-top: .85rem; padding: .8rem; border: 1px solid var(--apc-gold); color: var(--apc-navy); background: white; font-weight: 900; cursor: pointer; }
.apc-interest-panel { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--apc-line); }
.apc-interest-panel h3 { color: var(--apc-navy); }
.apc-interest-panel > p { color: var(--apc-muted); font-size: .88rem; line-height: 1.5; }
body[data-page="website"] .form-message { color: var(--apc-navy); }
body[data-page="website"] .inline-link { color: var(--apc-navy); }
.apc-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem clamp(1.25rem, 7vw, 7rem); color: #dbe4ee; background: var(--apc-navy-deep); }
.apc-footer-button { border: 0; color: white; background: transparent; text-decoration: underline; cursor: pointer; }

@media (max-width: 1080px) {
  .apc-header { grid-template-columns: auto 1fr; }
  .apc-nav { display: none; }
  .apc-header-actions { justify-self: end; }
  .apc-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .apc-header { grid-template-columns: 1fr; gap: .75rem; }
  .apc-header-actions { justify-self: stretch; justify-content: space-between; }
  .apc-login-link { display: none; }
  .apc-header-actions .apc-button { width: 100%; }
  .apc-hero, .apc-augmentation, .apc-fund-grid, .apc-portfolio-grid, .apc-faq-grid { grid-template-columns: 1fr; }
  .apc-hero { min-height: auto; padding-top: 3.2rem; }
  .apc-hero-actions { display: grid; }
  .apc-process-grid { grid-template-columns: 1fr; }
  .apc-process-grid li { min-height: auto; }
  .apc-closing, .apc-cross-solution { align-items: flex-start; flex-direction: column; }
  .apc-closing .apc-button, .apc-cross-solution .apc-button { width: 100%; }
  body[data-page="website"] .web-assistant { right: .55rem; bottom: 5.1rem; width: calc(100vw - 1.1rem); max-height: calc(100vh - 7rem); }
  body[data-page="website"] .assistant-launcher { right: .55rem; bottom: .55rem; }
  .apc-footer { flex-direction: column; }
}

.email-message { padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.email-toolbar { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; color: var(--muted); font-size: .86rem; }
.email-label { color: var(--green-dark); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.email-meta { display: grid; gap: .35rem; margin: 1rem 0; }
.email-meta div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: .7rem; }
.email-meta dt { color: var(--muted); font-weight: 800; }
.email-meta dd { margin: 0; overflow-wrap: anywhere; }
.email-meta a { color: var(--green-dark); font-weight: 800; }
.original-message { margin-top: 1.2rem; padding: 1rem 1.1rem; border-left: 4px solid var(--gold); background: #faf8f2; }
.original-message p:last-child { margin-bottom: 0; color: #3f4d45; line-height: 1.65; white-space: pre-wrap; }

.assistant-result { padding: 1.5rem 0; }
.assistant-result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.assistant-result-heading h2 { margin-bottom: 0; }
.score-row { display: grid; grid-template-columns: minmax(220px, .55fr) 1fr; gap: 1rem; align-items: center; margin: 1.2rem 0; padding: 1rem; border-radius: 14px; color: white; background: var(--ink); }
.score-row div:first-child { display: grid; gap: .25rem; }
.score-row span { color: #d9e1dc; font-size: .88rem; }
.score-track { height: 12px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.18); }
.score-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #c55a4e 0%, #d7a64a 48%, #69b383 100%); }
.plain-answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.next-step-card { border-color: #c1d7c8; background: #f2f8f4; }
.review-form { margin-top: 0; border-color: #c4cec7; background: white; }

.guidance-drawer { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 12px 38px rgba(23,33,28,.05); }
.guidance-drawer > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; cursor: pointer; list-style: none; }
.guidance-drawer > summary::-webkit-details-marker { display: none; }
.guidance-drawer > summary span:first-child { display: grid; gap: .25rem; }
.guidance-drawer > summary small { color: var(--muted); font-weight: 500; }
.guidance-drawer[open] > summary { border-bottom: 1px solid var(--line); }
.guidance-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 1.2rem; }
.screening-rules { display: flex; flex-wrap: wrap; gap: .5rem; }
.screening-rules span { padding: .55rem .75rem; border-radius: 999px; color: var(--green-dark); background: var(--green-soft); font-size: .86rem; font-weight: 850; }
.guidance-drawer .knowledge-list { padding: 0 1.2rem 1.2rem; }

@media (max-width: 1050px) {
  .header-actions .text-link { display: none; }
  .guidance-body { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .plain-process { grid-template-columns: 1fr; }
  .plain-process .process-arrow { transform: rotate(90deg); justify-self: center; }
  .score-row { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .web-assistant { right: .75rem; bottom: 5rem; width: calc(100vw - 1.5rem); }
  .assistant-launcher { right: .75rem; bottom: .75rem; }
  .plain-answer-grid { grid-template-columns: 1fr; }
  .plain-answer-grid .full { grid-column: auto; }
  .email-meta div { grid-template-columns: 1fr; gap: .15rem; }
}


/* Standalone Private Equity Deal Sourcing AI demo */
.sourcing-body { min-height: 100vh; color: #172820; background: #f3f6f2; }
.sourcing-header { border-bottom: 3px solid #c99a3d; background: #122c3f; }
.sourcing-header .brand-lockup, .sourcing-header .brand-lockup small { color: white; }
.sourcing-header .brand-mark { color: #122c3f; background: #d4a84c; }
.sourcing-header .button-quiet { border-color: rgba(255,255,255,.38); color: white; background: transparent; }
.sourcing-header .button-switch { color: #122c3f; background: white; }
.sourcing-main { display: grid; gap: 1.5rem; width: min(1240px, calc(100% - 2rem)); margin: 0 auto; padding: 1.5rem 0 4rem; }
.sourcing-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 4.6rem); color: white; background: linear-gradient(132deg, #122c3f, #1e5c52); box-shadow: var(--shadow); }
.sourcing-hero h1 { max-width: 880px; margin-bottom: 1rem; color: white; font-size: clamp(2.35rem, 5vw, 4.7rem); line-height: .98; }
.sourcing-hero > div > p:last-child { max-width: 760px; margin-bottom: 0; color: #d9e7e1; font-size: 1.08rem; line-height: 1.7; }
.sourcing-hero .eyebrow { color: #e5bd68; }
.sourcing-promise { display: grid; gap: .8rem; padding: 1.4rem; border: 1px solid rgba(255,255,255,.24); background: rgba(7,24,30,.32); }
.sourcing-promise strong { color: #f1cc78; font-size: 1.12rem; }
.sourcing-promise span { padding-left: 1.2rem; color: #edf5f1; line-height: 1.45; position: relative; }
.sourcing-promise span::before { position: absolute; left: 0; color: #f1cc78; content: "✓"; }
.sourcing-search-panel, .sourcing-results-section, .saved-targets-section, .search-history-drawer { padding: clamp(1.25rem, 3vw, 2.2rem); border: 1px solid #ced8d1; background: white; box-shadow: 0 12px 36px rgba(20,50,40,.06); }
.compact-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.compact-heading > p { max-width: 540px; color: var(--muted); line-height: 1.55; }
.sourcing-form { display: grid; grid-template-columns: 1.25fr 1.25fr 1fr 1fr .72fr; gap: .9rem; align-items: end; }
.sourcing-form label, .sourcing-target-controls label { display: grid; gap: .4rem; color: #31453b; font-weight: 850; }
.sourcing-form input, .sourcing-form select, .sourcing-target-controls select, .sourcing-target-controls textarea { width: 100%; min-height: 48px; border: 1px solid #bfcac3; border-radius: 10px; background: white; }
.sourcing-submit { min-height: 48px; }
.sourcing-results, .sourcing-targets { display: grid; gap: 1rem; }
.sourcing-result-card, .sourcing-target-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 1rem; padding: 1.2rem; border: 1px solid #ced8d1; background: #fbfcfa; }
.sourcing-target-card { display: block; }
.sourcing-card-rank { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #122c3f; background: #e5bd68; font-size: 1.05rem; font-weight: 950; }
.sourcing-card-body { min-width: 0; }
.sourcing-card-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.sourcing-card-heading h3 { margin: .2rem 0 .55rem; font-size: 1.45rem; }
.readiness-score { flex: 0 0 auto; padding: .45rem .65rem; border-radius: 999px; color: #15523e; background: #dcefe6; font-size: .8rem; font-weight: 900; }
.sourcing-address { margin-bottom: .55rem; color: #43584e; }
.sourcing-contact-row, .sourcing-source-row { display: flex; flex-wrap: wrap; gap: .7rem 1rem; margin-bottom: .7rem; color: #52665c; }
.sourcing-gap { display: grid; gap: .35rem; margin: .9rem 0; padding: .9rem; border-left: 4px solid #d4a84c; background: #f8f3e8; }
.sourcing-gap span { color: #705b32; }
.sourcing-gap ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: .25rem 0 0; padding: 0; list-style: none; }
.sourcing-gap li { padding: .35rem .55rem; border-radius: 999px; color: #6f4b24; background: #f3dfb9; font-size: .78rem; font-weight: 800; }
.sourcing-target-controls { display: grid; grid-template-columns: .65fr 1.35fr; gap: 1rem; margin-top: 1rem; }
.target-save-row { display: flex; align-items: center; gap: 1rem; margin-top: .9rem; }
.search-history-drawer > summary { display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; }
.search-history-drawer > summary span:first-child { display: grid; gap: .25rem; }
.search-history-drawer small { color: var(--muted); font-weight: 500; }
.sourcing-history { display: grid; gap: .55rem; margin-top: 1rem; }
.sourcing-history article { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.sourcing-history span { color: var(--muted); }

@media (max-width: 1050px) {
  .sourcing-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sourcing-submit { width: 100%; }
}
@media (max-width: 760px) {
  .demo-sequence { overflow-x: auto; justify-content: flex-start; }
  .demo-sequence a, .demo-sequence span { flex: 0 0 auto; }
  .sourcing-hero, .sourcing-form, .sourcing-target-controls { grid-template-columns: 1fr; }
  .compact-heading, .sourcing-card-heading, .sourcing-history article { align-items: flex-start; flex-direction: column; }
  .sourcing-result-card { grid-template-columns: 1fr; }
}
