/* 24Sales: the approved cream, petrol, copper and sage identity across every route. */
:root {
  --petrol: #1d3031; --petrol-deep: #152526; --deep: #152526; --cream: #f7f3ea;
  --copper: #b9452a; --orange: #f0734f; --sage: #d9e7df; --line: #dce3d8;
  --surface: #fffefa; --muted: #596c65; --soft-shadow: 0 16px 40px #1d30310b;
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif; color: var(--petrol);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--cream); color: var(--petrol); font-family: "Avenir Next", "Segoe UI", Arial, sans-serif; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .035em; text-transform: none; }
.skip, .skip-link { position: absolute; top: -100px; left: 16px; z-index: 50; padding: 12px; background: white; color: var(--petrol); }
.skip:focus, .skip-link:focus { top: 12px; }
.header, .client-header, .site-header { background: var(--cream); color: var(--petrol); box-shadow: none; border-bottom: 1px solid #1d303112; }
.header-inner { border: 0; }
.logo, .client-brand, .brand { color: var(--petrol); font-weight: 750; letter-spacing: -.04em; text-decoration: none; }
.logo small, .client-brand small { color: var(--muted); letter-spacing: .02em; font-weight: 500; }
.header-login { border: 0; color: var(--petrol); border-radius: 10px; font-size: .85rem; font-weight: 600; }
.header-login span { color: inherit; }
.header-login:hover { background: #e9ede3; transform: none; }
.header-cta { background: var(--petrol); color: var(--cream); border-radius: 10px; }
.header-cta:hover { background: #2c4544; }
.site-nav a { text-transform: none; letter-spacing: 0; font-weight: 600; }
.intro h2, .services h2, .dashboard-copy h2, .demo h2, .pilot h2 { font-family: inherit; font-weight: 700; letter-spacing: -.065em; line-height: 1.08; font-size: clamp(2.6rem, 5.6vw, 5.8rem); text-wrap: balance; }
.intro h2 span { color: var(--petrol); }
.services-grid article { border: 1px solid #cbd8c9; border-radius: 18px; padding: 28px; }
.services-grid h3 { font-size: 1.8rem; font-weight: 650; }
.service-icon { font-size: 4rem; }
.dashboard-art { border: 1px solid #d5ded2; border-radius: 18px; overflow: hidden; box-shadow: var(--soft-shadow); }
.dash-head { background: var(--surface); color: var(--petrol); border-bottom: 1px solid var(--line); letter-spacing: .02em; }
.dash-title { border-bottom: 1px solid var(--line); font-weight: 650; }
.dash-action { border-radius: 10px; font-weight: 600; }
.demo .chat-box, .demo .lead-box { border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--soft-shadow); }
.demo .chat-title { background: var(--surface); color: var(--petrol); }
.demo .chat-title small { color: var(--muted); }
.demo .chat-avatar { background: var(--sage); color: var(--petrol); border-radius: 9px; }
.demo-controls select, .demo-controls button, .demo .chat-form input, .demo .chat-form button { border-radius: 10px; }
.demo-suggestions button { border-radius: 8px; }
.pilot-inner a { border-radius: 12px; font-weight: 650; font-size: .85rem; }
.page-footer { background: var(--cream); color: var(--muted); border-top: 1px solid var(--line); }
.page-footer small { opacity: 1; }

/* Access: one calm form, paired with the same conversation illustration as the homepage. */
.auth-main { min-height: calc(100dvh - 82px); max-width: 1440px; margin: auto; grid-template-columns: 1fr 1fr; align-items: center; }
.auth-art { background: var(--cream); color: var(--petrol); overflow: visible; }
.auth-art::after { width: 230px; height: 200px; border: 0; background: #cbdccd; border-radius: 42%; right: 12%; top: auto; bottom: 8%; transform: rotate(-20deg); z-index: 0; }
.auth-art-inner { width: min(550px, calc(100% - 80px)); padding: 70px 0; }
.auth-art .eyebrow { color: #566d63; }
.auth-art h1 { font-family: inherit; font-size: clamp(3.3rem, 5vw, 5.9rem); font-weight: 700; letter-spacing: -.072em; line-height: 1.05; margin: 24px 0; animation: surface-enter .65s cubic-bezier(.22,1,.36,1) both; }
.auth-art h1 span { color: var(--petrol); }
.auth-art-inner > p:last-of-type { font-size: 1rem; color: var(--muted); line-height: 1.65; }
.auth-content { padding: 60px 36px; background: transparent; }
.auth-card { width: min(470px,100%); background: var(--surface); padding: 36px; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--soft-shadow); animation: surface-enter .65s .1s cubic-bezier(.22,1,.36,1) both; }
.auth-card h2 { font-family: inherit; font-size: clamp(2.1rem,3vw,3.2rem); font-weight: 700; letter-spacing: -.055em; line-height: 1.1; margin: 20px 0 16px; }
.auth-card .eyebrow { color: var(--muted); }
.auth-intro { max-width: none; margin-bottom: 27px; }
#login-form label, #cloud-auth-form label { font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
#login-form > input, .password-field input, #cloud-auth-form input { border: 1px solid #bac8b9; border-radius: 10px; background: white; min-height: 52px; }
.password-field input { padding-right: 100px; }
.password-field button { font-size: .72rem; font-weight: 600; min-height: 34px; }
.login-submit { border-radius: 11px; font-weight: 650; letter-spacing: 0; }
.auth-notice { border-color: var(--line); font-size: .76rem; }
.auth-preview { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--soft-shadow); transform: rotate(-2deg); min-height: auto; margin-top: 34px; padding: 23px; }
.auth-preview > span { border-bottom: 1px solid var(--line); letter-spacing: 0; font-weight: 600; }
.auth-preview strong { font-size: 2.5rem; font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.auth-preview > .access-flow:nth-child(2) { display: grid; gap: 12px; margin-top: 20px; font-size: .85rem; }
.access-flow p { width: 85%; padding: 12px 15px; border-radius: 11px; margin: 0; background: #f1f0e9; }
.access-flow p:last-of-type { justify-self: end; background: #dfeadc; }
.access-flow small { font-weight: 500; font-size: .72rem; }

/* Workspace: preserve stable reading and editing, with soft entrances and tactile controls. */
.client-header { height: 80px; }
.client-header-inner { max-width: 1560px; padding-inline: 30px; }
.client-brand { font-size: 1.15rem; }
.client-brand small { font-size: .6rem; }
.client-mark { border-color: var(--copper); color: var(--copper); border-radius: 9px; }
.environment-pill { background: #e8eee2; border: 0; border-radius: 8px; color: #50654f; font-size: .7rem; letter-spacing: 0; font-weight: 600; padding: 9px 12px; }
.client-user { font-weight: 500; }
#logout { border-radius: 10px; background: var(--petrol); color: white; font-size: .8rem; font-weight: 600; }
#logout:hover { background: #2c4544; }
.workspace { max-width: 1560px; grid-template-columns: 230px minmax(0,1fr); min-height: calc(100dvh - 80px); }
.sidebar { background: #f0f1e8; color: var(--petrol); border-right: 1px solid var(--line); }
.sidebar-inner { top: 80px; min-height: calc(100dvh - 80px); padding: 32px 15px; }
.sidebar-label { color: #687768; font-size: .7rem; font-weight: 600; letter-spacing: .025em; }
.panel-nav button { border-radius: 11px; font-weight: 600; font-size: .85rem; color: #596b60; }
.panel-nav button span { color: #6d8272; }
.panel-nav button b { background: #e0e6d9; color: #4d624e; font-weight: 600; }
.panel-nav button:hover { background: #e6eade; }
.panel-nav button.active { background: var(--petrol); color: white; }
.panel-nav button.active span { color: #d9e7df; }
.panel-nav button.active b { background: #3e5350; }
.sidebar-bottom { border-color: #d4ddcf; }
.sidebar-bottom p { color: var(--muted); font-size: .75rem; line-height: 1.6; }
.sidebar-bottom strong { font-weight: 600; line-height: 1.2; }
.sidebar-orb { color: var(--copper); }
.panel-main { padding: 48px clamp(24px,4vw,56px) 80px; }
.page-top { align-items: center; margin-bottom: 30px; }
.page-top h1, .detail-hero h1 { font-family: inherit; font-weight: 700; font-size: clamp(2.6rem,4vw,4.5rem); line-height: 1.08; letter-spacing: -.065em; margin-bottom: 16px; }
.page-top h1 span { color: var(--petrol); }
.page-top .eyebrow, .detail-hero .eyebrow { color: var(--muted); margin-bottom: 14px; }
.page-top p:last-child { max-width: 640px; line-height: 1.6; font-size: .95rem; }
.panel-view:not([hidden]) .page-top { animation: surface-enter .45s cubic-bezier(.22,1,.36,1) both; }
.demo-banner, .agent-notice { background: #e8eee2; border: 1px solid #d5dfce; border-radius: 13px; color: #496048; padding: 17px 20px; }
.demo-banner strong, .agent-state { font-weight: 650; letter-spacing: 0; font-size: .75rem; }
.metric-grid { gap: 16px; margin-bottom: 26px; }
.metric-grid article { border: 1px solid var(--line); border-radius: 17px; background: var(--surface); padding: 24px; min-height: 170px; box-shadow: 0 5px 18px #1d303104; }
.metric-grid article:nth-child(n) { border-top: 1px solid var(--line); }
.metric-grid article:nth-child(3) { background: #f1e6da; border-color: #e3d4c3; }
.metric-grid span { letter-spacing: 0; font-size: .78rem; font-weight: 600; color: #597060; }
.metric-grid strong { font-family: inherit; font-weight: 650; font-size: 3.5rem; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.metric-grid small { line-height: 1.4; color: #65776c; }
.panel-view:not([hidden]) .metric-grid article { animation: surface-enter .55s cubic-bezier(.22,1,.36,1) both; }
.metric-grid article:nth-child(2) { animation-delay: .05s; }.metric-grid article:nth-child(3) { animation-delay: .1s; }.metric-grid article:nth-child(4) { animation-delay: .15s; }
.panel-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 6px 22px #1d303105; }
.card-head { border-color: var(--line); }
.card-head .eyebrow { color: var(--muted); font-size: .67rem; letter-spacing: .02em; }
.card-head h2, .settings-card h2, .settings-next h2, .conversation-stage-head h2, .lead-dialog h2 { font-family: inherit; font-weight: 650; letter-spacing: -.04em; line-height: 1.2; }
.card-head > span { font-weight: 500; color: #65776c; }
.refresh-button, .outline-button, #create-lead, #agent-refresh { min-height: 44px; border: 1px solid #bdcaba; border-radius: 10px; font-size: .8rem; font-weight: 600; background: var(--surface); }
.refresh-button:hover, .outline-button:hover { background: #e6ecdf; color: var(--petrol); }
.pipeline-track { height: 9px; border-radius: 6px; background: #edf0e6; }
.pipeline-track i { border-radius: inherit; transition: none; }
.attention-item { border-radius: 11px; background: #f2f4eb; font-weight: 500; }
.attention-item strong { font-weight: 600; }
.table-wrap { border-radius: 10px; }
th { font-size: .69rem; letter-spacing: .025em; font-weight: 600; padding-bottom: 14px; }
td { padding-block: 18px; font-size: .83rem; }
td:first-child { font-weight: 600; }
.status-pill { font-weight: 600; font-size: .7rem; border-radius: 8px; }
.lead-toolbar input, .lead-toolbar select { border-color: #bac8b9; border-radius: 10px; font-size: .86rem; min-width: 0; }
.lead-toolbar label, .onboarding-field label, .lead-fields label, #status-form label { font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .8rem; }
.onboarding-field input, .onboarding-field textarea, .lead-fields input, .lead-fields textarea, .lead-fields select, #status-form select { border: 1px solid #bac8b9; border-radius: 10px; background: white; }
.onboarding-progress span { border: 1px solid var(--line); border-radius: 9px; font-weight: 600; font-size: .72rem; }
.onboarding-progress span.done { border-color: #b6cbb5; }
.onboarding-actions button, #save-lead, #save-onboarding, #submit-onboarding, #status-form button { border-radius: 10px; font-size: .8rem; font-weight: 600; }
.settings-card dd { font-weight: 600; }
.settings-next { border-radius: 18px; background: #e0e9da; color: var(--petrol); }
.settings-next .eyebrow, .settings-next > span { color: #59765e; }
.conversation-layout { grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr); }
.conversation-list > input { border-radius: 10px; border-color: #bac8b9; }
.conversation-stage { background: #f2f4eb; }
.conversation-stage-head { background: var(--surface); }
.conversation-topic, .message-meta strong { text-transform: none; letter-spacing: 0; font-weight: 600; }
.conversation-item-top strong { font-weight: 600; }
.message-bubble { border-radius: 13px; box-shadow: none; background: white; }
.message-agent { border-bottom-right-radius: 4px; }
.message-thread, .agent-thread { scroll-behavior: auto; }
.detail-navigation > span, .back-button { letter-spacing: 0; font-weight: 600; font-size: .75rem; }
.detail-grid { grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr); }
.lead-dialog, #new-lead-dialog { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 25px 70px #15252630; }
.dialog-actions button, #new-lead-form input { border-radius: 10px; }
.agent-controls label, #agent-form label { font-size: .78rem; font-weight: 600; letter-spacing: 0; }
.agent-controls select, #agent-form textarea { border-radius: 10px; border-color: #bac8b9; }
.agent-controls strong, .agent-inspector summary, #agent-benchmark summary { font-weight: 600; letter-spacing: 0; }
.agent-scenarios button { border-radius: 9px; }
.agent-thread { border-radius: 12px; background: #f1f3e9; }
.agent-bubble small { font-weight: 600; letter-spacing: 0; }
#agent-send { background: var(--copper); border-radius: 10px; font-weight: 600; font-size: .82rem; }
.agent-layout :is(button,input,select,textarea):focus-visible { outline-color: var(--copper); }
.agent-base-preview { border-left: 0; border-radius: 10px; background: #eef2e7; }
.agent-empty { color: var(--muted); }
.agent-notice small { display: block; max-width: 900px; }
#agent-benchmark { margin-top: 24px; padding: 24px; overflow-wrap: anywhere; }
#agent-benchmark button { border: 1px solid #b9c9b5; border-radius: 9px; padding: 12px; background: #eef2e7; color: var(--petrol); margin: 7px 7px 7px 0; }
.text-link, .back-button { font-weight: 600; font-size: .78rem; }
.panel-alert { border-radius: 11px; border-left-width: 3px; }
input, select, textarea { max-width: 100%; }
button { transition: background .25s ease, color .25s ease, transform .3s cubic-bezier(.22,1,.36,1); }
button:active:not(:disabled) { transform: translateY(1px); }
@keyframes surface-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Pages index, legacy prototype and useful missing-page state. */
.pages-main { padding-block: 70px 90px; }
.pages-main h1, .missing-main h1, .panel-heading h1 { font-size: clamp(2.8rem,6vw,5.6rem); line-height: 1.05; letter-spacing: -.07em; font-weight: 700; margin: 20px 0; }
.pages-intro { max-width: 680px; line-height: 1.7; color: var(--muted); }
.pages-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 38px; }
.page-tile { padding: 27px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); text-decoration: none; min-height: 170px; transition: transform .3s cubic-bezier(.22,1,.36,1), background .25s ease; }
.page-tile:hover { transform: translateY(-5px); background: #e7eee0; }
.page-tile h2 { font-weight: 650; letter-spacing: -.035em; font-size: 1.4rem; margin: 0 0 15px; }
.page-tile p { font-size: .87rem; line-height: 1.6; color: var(--muted); }
.page-tile span { color: var(--copper); font-size: .85rem; }
.missing-main { max-width: 750px; min-height: 70dvh; display: grid; align-content: center; text-align: center; margin: auto; padding: 70px 24px; }
.missing-main p { line-height: 1.65; color: var(--muted); }
.missing-main .button { justify-self: center; margin-top: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 19px; border-radius: 11px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; background: var(--surface); color: var(--petrol); }
.button-primary { background: var(--copper); color: white; border-color: var(--copper); }
.panel-page .site-header .header-inner { display: flex; justify-content: space-between; align-items: center; padding-block: 23px; }
.panel-page .brand { display: flex; align-items: center; gap: 9px; }
.panel-page .brand small { display: none; }
.panel-page .brand-mark { color: var(--copper); }
.panel-page .panel-main { max-width: 1200px; margin: auto; padding-inline: 0; }
.panel-page .panel-card, .panel-page .chat-window, .panel-page .cost-hero { border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--soft-shadow); }
.panel-page .warning-box { border: 1px solid #d9dfce; border-radius: 13px; background: #e8eee2; color: #4a604a; }
.panel-page .panel-tab { border-radius: 10px; font-weight: 600; }
.panel-page .panel-tab.active { background: var(--petrol); color: white; }
.panel-page .field input, .panel-page .field textarea, .panel-page .chat-compose input { border-radius: 10px; border: 1px solid #bac8b9; }
.panel-page .cost-hero { background: var(--petrol); color: var(--cream); }
.panel-page .site-footer { border-top: 1px solid var(--line); padding: 25px; }
@media (max-width: 1100px) { .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.overview-grid, .detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .auth-art-inner { width: calc(100% - 48px); }.auth-content { padding: 40px 24px; }.auth-card { padding: 27px; }.auth-art h1 { font-size: clamp(2.9rem,5vw,4.5rem); } }
@media (max-width: 850px) { .workspace { display: block; }.sidebar { border-right: 0; border-bottom: 1px solid var(--line); }.sidebar-inner { position: static; min-height: 0; padding: 10px 16px; }.panel-nav { display: flex; overflow-x: auto; }.panel-main { padding: 34px 24px 65px; }.conversation-layout { grid-template-columns: 1fr; }.pages-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 650px) {
  .shell { width: calc(100% - 32px); }.header-inner { gap: 10px; }.header-login { font-size: .78rem; }.logo small { font-size: .5rem; }
  .intro h2, .services h2, .dashboard-copy h2, .demo h2, .pilot h2 { font-size: clamp(2.4rem,10vw,4rem); }
  .services-grid article { padding: 24px; }.services-grid h3 { font-size: 1.65rem; }
  .auth-main { display: block; }.auth-art-inner { padding: 38px 0 10px; }.auth-art h1 { font-size: clamp(2.9rem,10vw,4.5rem); margin: 18px 0; }.auth-art-inner > p:last-of-type { font-size: .9rem; }.auth-art::after, .auth-preview { display: none; }
  .auth-content { padding: 26px 16px 50px; }.auth-card { padding: 26px 23px; }.auth-card h2 { font-size: 2.3rem; }.auth-page .auth-back { font-size: .75rem; }
  .client-header { height: 72px; }.client-header-inner { padding-inline: 16px; }.client-brand { font-size: 1rem; }.client-brand small { font-size: .5rem; }
  .panel-main { padding: 30px 16px 60px; }.page-top h1, .detail-hero h1 { font-size: clamp(2.35rem,9vw,3.3rem); }.metric-grid { gap: 10px; }.metric-grid article { padding: 17px; min-height: 155px; }.metric-grid strong { font-size: 3rem; }
  .demo-banner { padding: 15px; }.page-top { display: block; }.page-top > button { margin-top: 20px; }.card-head { flex-wrap: wrap; }
  .agent-layout { grid-template-columns: 1fr; gap: 16px; }.agent-controls,.agent-chat { padding: 20px; }.agent-compose-bottom { flex-direction: column; align-items: stretch; }
  .pages-grid { grid-template-columns: 1fr; }.pages-main { padding-top: 40px; }.pages-main h1 { font-size: 3rem; }.panel-page .panel-main { width: calc(100% - 32px); }.panel-page .panel-header-label { font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
  .panel-view:not([hidden]) .page-top, .panel-view:not([hidden]) .metric-grid article, .auth-art h1, .auth-card { opacity: 1; transform: none; }
}

.panel-page .panel-header-label { color: var(--muted); }
.panel-page .cost-hero strong { color: var(--sage); }
.panel-page .chat-title { display: flex; gap: 12px; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.panel-page .chat-title span:last-child { display: grid; gap: 4px; }.panel-page .chat-title small { color: var(--muted); font-size: .75rem; }
.panel-page .chat-avatar { background: var(--sage); color: var(--petrol); border-radius: 10px; padding: 12px; font-weight: 600; }
.panel-page .chat-messages { overflow-y: auto; padding: 22px; background: #f1f3e9; }.panel-page .chat-compose { display: flex; padding: 16px; gap: 10px; background: var(--surface); }
.panel-page .chat-compose input { flex: 1; min-width: 0; padding: 12px; }.panel-page .chat-compose button { border: 0; border-radius: 10px; padding: 12px 16px; background: var(--copper); color: white; }
.panel-page .message { padding: 13px 16px; background: white; border-radius: 12px; max-width: 90%; margin-bottom: 12px; line-height: 1.5; font-size: .85rem; }.panel-page .message.user { margin-left: auto; background: var(--sage); }
.panel-page .status-pill { padding: 7px 10px; background: var(--sage); }.panel-page .footer-inner { display: flex; gap: 20px; justify-content: space-between; font-size: .8rem; }.panel-page .footer-inner small { display: none; }
.pages-page .header-inner, .missing-page .header-inner { display: flex; align-items: center; justify-content: space-between; padding: 23px 0; gap: 20px; }.pages-page .logo, .missing-page .logo { display: flex; gap: 10px; align-items: center; font-size: 1.35rem; }.pages-page .logo img, .missing-page .logo img { width: 32px; height: 32px; }.pages-page .header-login, .missing-page .header-login { text-decoration: none; }.page-tile { color: var(--petrol); }

.logo-mark { border: 0; background: url("./brand.svg") center/contain no-repeat; }.logo-mark::before,.logo-mark::after { display: none; }

body.panel-page { background: var(--cream); }.panel-page .button-outline { color: var(--petrol); }.panel-page .prototype-badge { color: #46644c; background: #e5edde; border-color: #c6d5bf; }.panel-page .message.visitor { background: var(--petrol); color: white; }.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
