/* ============================================================
   CRM Lab — brand tokens (v2: calm, product-led)
   Graphite   #1D1D1F  – text, dark sections
   White      #FFFFFF  – page background
   Cloud      #F5F5F7  – alternate sections, cards on white
   Slate      #6E6E73  – secondary text
   Harbour    #0066CC  – the single accent: links, primary buttons
   Hairline   #D2D2D7  – borders
   ============================================================ */
:root {
  --ink: #1D1D1F;
  --ink-2: #2C2C2E;
  --bg: #FFFFFF;
  --cloud: #F5F5F7;
  --slate: #6E6E73;
  --line: #D2D2D7;
  --accent: #0066CC;
  --accent-dark: #0055AA;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 600; line-height: 1.07; letter-spacing: -0.03em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.hidden { display: none; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }

.eyebrow { font-size: 1rem; font-weight: 600; color: var(--slate); margin-bottom: .6rem; letter-spacing: -0.01em; }
.eyebrow--light { color: #A1A1A6; }
.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--slate); max-width: 40ch; line-height: 1.4; letter-spacing: -0.015em; }
.section--dark .lead { color: #A1A1A6; }
.hl { color: var(--slate); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .8em 1.4em; border-radius: 980px; background: var(--accent); color: #fff; font: 500 1rem var(--font); letter-spacing: -0.01em; border: 0; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn--sm { padding: .45em 1em; font-size: .85rem; }
.btn--ghost { background: transparent; color: var(--accent); padding-inline: .4em; }
.btn--ghost:hover { background: transparent; text-decoration: underline; }
.btn--accent { background: #fff; color: var(--ink); }
.btn--accent:hover { background: #E8E8ED; }
.btn--ghost-light { background: transparent; color: #2997FF; padding-inline: 0; margin-top: .4rem; }
.btn--ghost-light:hover { background: transparent; text-decoration: underline; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: rgba(0,0,0,.08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.03em; }
.logo:hover { text-decoration: none; }
.logo b { font-weight: 400; color: var(--slate); }
.logo--light { color: #F5F5F7; }
.logo--light b { color: #A1A1A6; }
.nav__menu { display: flex; align-items: center; gap: 1.8rem; }
.nav__menu a:not(.btn) { color: var(--ink); font-size: .85rem; opacity: .85; }
.nav__menu a:not(.btn):hover { opacity: 1; text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 7px; }
.nav__toggle span { display: block; height: 1.5px; background: var(--ink); }

/* Replace strip */
.replace { background: var(--cloud); padding: 1.3rem 0; text-align: center; }
.replace .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 2rem; }
.replace p { margin: 0; font-size: .85rem; color: var(--slate); }
.replace ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; }
.replace li { font-size: 1.05rem; font-weight: 500; color: #86868B; text-decoration: line-through; text-decoration-color: #A1A1A6; text-decoration-thickness: 1px; }

/* Sections */
.section { padding: clamp(3.2rem, 6vw, 4.8rem) 0; }
.section--alt { background: var(--cloud); }
.section--dark { background: #000; color: #F5F5F7; }
.section__head { max-width: 700px; margin: 0 auto 2.2rem; text-align: center; }
.section__head p:last-child:not(.eyebrow) { color: var(--slate); font-size: 1.2rem; line-height: 1.45; }

.grid { display: grid; gap: 1.2rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid > * { min-width: 0; }

.card { background: var(--cloud); border-radius: var(--radius); padding: 1.5rem; }
.section--alt .card { background: #fff; }
.card p { color: var(--slate); font-size: .97rem; margin: 0; }
.card h3 { margin-bottom: .5rem; }
.card__icon { display: block; width: 28px; height: 28px; color: var(--ink); margin-bottom: 1.2rem; }
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card--feature { display: flex; flex-direction: column; gap: .5rem; }
.card--feature h3 { margin: 0; }
.card--feature small { color: var(--slate); font-size: .82rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.card--feature .from { font-weight: 600; color: var(--ink); margin: 0; }

/* AI */
.ai { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.ai > * { min-width: 0; }
.ai h2 { color: #F5F5F7; }
.ai__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ai__list li { padding: 1.1rem 0; border-bottom: 1px solid #333336; }
.ai__list li:first-child { border-top: 1px solid #333336; }
.ai__list b { display: block; color: #F5F5F7; font-weight: 500; margin-bottom: .15rem; }
.ai__list span { color: #86868B; font-size: .95rem; }

/* Compare */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { text-align: left; padding: 1.1rem 1rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
.compare thead th { font-weight: 600; font-size: .9rem; color: var(--slate); }
.compare tbody th { font-weight: 600; width: 22%; }
.compare td { color: var(--slate); }
.compare .us { color: var(--ink); font-weight: 500; }
.compare thead .us { color: var(--ink); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.calc > * { min-width: 0; }
.calc h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.calc p { color: var(--slate); }
.calc__form { display: flex; flex-direction: column; gap: 1.8rem; margin-top: 2rem; }
.calc__form label { display: grid; grid-template-columns: 1fr auto; gap: .6rem 1rem; font-weight: 500; font-size: .95rem; }
.calc__form input { grid-column: 1 / -1; accent-color: var(--ink); width: 100%; }
.calc__form output { font-weight: 600; grid-row: 1; grid-column: 2; }
.calc__result { background: #fff; border-radius: 24px; padding: 2.5rem; display: flex; flex-direction: column; gap: 1.4rem; }
.calc__result small { display: block; color: var(--slate); font-size: .9rem; }
.calc__result strong { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -0.04em; }
.calc__note { color: var(--slate); font-size: .92rem; margin: 0; }
.calc__result .btn { align-self: flex-start; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; }
.steps > * { min-width: 0; }
.steps li { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.steps span { font-size: .85rem; color: var(--slate); font-variant-numeric: tabular-nums; }
.steps h3 { margin: .5rem 0; }
.steps p { color: var(--slate); font-size: .95rem; margin: 0; }

/* Payments */
.payments { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.payments div { background: #fff; border-radius: var(--radius); padding: 1.6rem 2rem; }
.payments strong { display: block; font-size: 2.6rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.payments span { color: var(--slate); }

/* Pricing */
.founding { text-align: center; color: var(--slate); margin: -2rem auto 2.5rem; max-width: 640px; font-size: .97rem; }
.founding strong, .founding b { color: var(--ink); font-weight: 600; }
.price { display: flex; flex-direction: column; gap: .8rem; position: relative; }
.price__amt { font-size: 2rem !important; font-weight: 600; letter-spacing: -0.03em; color: var(--ink) !important; }
.price ul { list-style: none; padding: 1rem 0 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .5rem; font-size: .95rem; border-top: 1px solid var(--line); }
.price li::before { content: "✓"; margin-right: .6em; }
.price .btn { margin-top: auto; align-self: flex-start; }
.price .btn--ghost { padding-inline: 0; }
.price--pop { background: var(--ink) !important; color: #F5F5F7; }
.price--pop p, .price--pop li { color: #A1A1A6; }
.price--pop .price__amt { color: #F5F5F7 !important; }
.price--pop ul { border-color: #333336; }
.price--pop .btn { background: #fff; color: var(--ink); }
.badge { font-size: .8rem; font-weight: 600; color: #FF9F0A; }
.pricing__foot { text-align: center; color: var(--slate); margin-top: 2.5rem; }
.pricing__foot strong { color: var(--ink); }

/* Tags */
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; max-width: 820px; margin: 0 auto; }
.tags span { background: var(--cloud); padding: .65em 1.2em; border-radius: 980px; font-size: .95rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.about > * { min-width: 0; }
.about h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.about p { color: var(--slate); font-size: 1.1rem; }
.facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.facts strong { display: block; font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; }
.facts span { color: var(--slate); font-size: .9rem; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 1.3rem 0; }
summary { cursor: pointer; font-size: 1.15rem; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 300; font-size: 1.5rem; line-height: 1; color: var(--slate); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--slate); margin: .8rem 0 0; max-width: 62ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact > * { min-width: 0; }
.contact h2 { color: #F5F5F7; }
.contact__email { color: #A1A1A6; }
.contact__email a { color: #2997FF; }
.form { background: #1D1D1F; border-radius: 24px; padding: 2.2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.form label { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; color: #A1A1A6; }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; padding: .8em 1em; border: 1px solid #424245; border-radius: 12px; background: #000; color: #F5F5F7; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: #2997FF; box-shadow: 0 0 0 3px rgba(41,151,255,.25); }
.form small { color: #86868B; }
.form small a { color: #2997FF; }
.form .btn { align-self: stretch; margin-top: .4rem; }

/* Footer */
.footer { background: var(--cloud); color: var(--slate); padding: 2.5rem 0 2rem; font-size: .85rem; }
.footer .logo--light { color: var(--ink); }
.footer .logo--light b { color: var(--slate); }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer__inner p { margin: .4rem 0 0; }
.footer__tag { color: var(--ink); }
.footer nav { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-items: center; }
.footer nav a { color: var(--slate); }
.footer nav a:hover { color: var(--ink); }
.footer__legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .78rem; color: #86868B; }
.footer__legal p { margin: 0 0 .4rem; }
.footer__legal a { color: inherit; }

/* Simple pages */
.page { padding: 4rem 0 6rem; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.page p, .page li { color: #424245; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__menu { position: absolute; top: 56px; left: 0; right: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(20px); flex-direction: column; align-items: stretch; padding: .5rem 16px 1.5rem; gap: 0; border-bottom: 1px solid var(--line); display: none; }
  .nav__menu.open { display: flex; }
  .nav__menu a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__menu .btn { margin-top: 1rem; }
  .ai, .calc, .contact, .about { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid--3, .payments { grid-template-columns: 1fr; }
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--4, .steps, .facts { grid-template-columns: 1fr; }
  .mock__kpis { grid-template-columns: 1fr 1fr; }
  .mock__kpis div:last-child { display: none; }
  .card { padding: 1.6rem; }
  .form { padding: 1.5rem; }
}


/* ================= v3: hero system, builder, chat, CTAs ================= */

/* Hero — copy left, live system right */
.hero { padding: clamp(2.2rem, 5vw, 3.6rem) 0 clamp(2.4rem, 5vw, 3.6rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); max-width: 13ch; }
.hero .lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 38ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; margin: 1.4rem 0 1.1rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; color: var(--slate); font-size: .88rem; }
.ticks li::before { content: "✓"; margin-right: .4em; color: var(--ink); }
.ticks--light { flex-direction: column; color: #A1A1A6; margin: 1.2rem 0; }
.ticks--light li::before { color: #F5F5F7; }

/* Window chrome shared */
.sys, .builder, .chat { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 60px -24px rgba(0,0,0,.18); overflow: hidden; font-size: 13px; letter-spacing: -0.005em; }
.sys__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--cloud); border-bottom: 1px solid var(--line); }
.sys__bar i { width: 10px; height: 10px; border-radius: 50%; background: #D2D2D7; }
.sys__bar span { margin-left: 8px; color: var(--slate); font-size: 12px; flex: 1; }
.sys__live { font-style: normal; font-size: 11px; font-weight: 600; color: #1E8E3E; display: inline-flex; align-items: center; gap: 5px; }
.sys__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34C759; }

/* System body */
.sys__body { display: grid; grid-template-columns: 128px minmax(0,1fr); height: 440px; }
.sys__nav { background: var(--cloud); border-right: 1px solid var(--line); padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.sys__nav button { all: unset; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--ink); cursor: pointer; font-size: 13px; transition: background .25s; }
.sys__nav button:hover { background: #EAEAEF; }
.sys__nav button.on { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); font-weight: 600; }
.sys__nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sys__main { display: flex; flex-direction: column; min-width: 0; padding: 14px; gap: 10px; }
.sys__scenes { flex: 1; display: grid; min-height: 0; }
.scene { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; min-width: 0; }
.scene.on { opacity: 1; transform: none; pointer-events: auto; }
.scene__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.scene__head b { font-size: 15px; letter-spacing: -0.02em; }
.scene__head small { color: var(--slate); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.panel { background: var(--cloud); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 6px; }
.panel__head b { font-size: 12.5px; }
.panel__head span { color: var(--slate); font-size: 11px; }
.legend { display: inline-flex; align-items: center; gap: 4px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; margin-left: 6px; }
.l1 { background: var(--accent); } .l2 { background: #A1A1A6; } .l3 { background: repeating-linear-gradient(90deg, var(--accent) 0 3px, transparent 3px 5px); } .l4 { background: #D2D2D7; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.kpis div { background: var(--cloud); border-radius: 12px; padding: 9px 11px; min-width: 0; }
.kpis small { display: block; color: var(--slate); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.kpis em { font-style: normal; font-size: 11px; color: var(--slate); }
.kpis em.up { color: #1E8E3E; }

/* Line chart */
.scene:first-child .panel { flex: 1; display: flex; flex-direction: column; }
.linechart { width: 100%; flex: 1; min-height: 120px; overflow: visible; }
.linechart .grid-l { stroke: #E3E3E8; stroke-width: 1; vector-effect: non-scaling-stroke; }
.linechart .target { fill: none; stroke: #A1A1A6; stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.linechart .actual { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.linechart .forecast { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; stroke-linecap: round; opacity: .8; }
.linechart .area { fill: url(#areaGrad); }
.linechart .pt { fill: #fff; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* Kanban */
.kanban { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; min-height: 0; }
.col { background: var(--cloud); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.col p { margin: 0 0 2px; font-size: 11.5px; font-weight: 600; color: var(--slate); display: flex; justify-content: space-between; }
.col p span { font-weight: 500; }
.col--won p { color: #1E8E3E; }
.deal { background: #fff; border-radius: 8px; padding: 7px 8px; box-shadow: 0 1px 2px rgba(0,0,0,.06); min-width: 0; }
.deal b { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal small { color: var(--slate); font-size: 10.5px; }
.deal--leave, .deal--arrive, .deal--new { transition: opacity .5s, transform .5s, max-height .5s, padding .5s, margin .5s; max-height: 60px; }
.deal--arrive { opacity: 0; transform: translateX(-24px); max-height: 0; padding-block: 0; margin-top: -6px; }
.deal--new { opacity: 0; transform: translateY(-8px); max-height: 0; padding-block: 0; margin-top: -6px; }
.scene.go .deal--leave { opacity: 0; transform: translateX(24px); max-height: 0; padding-block: 0; margin-top: -6px; }
.scene.go .deal--arrive { opacity: 1; transform: none; max-height: 60px; padding-block: 7px; margin-top: 0; outline: 2px solid #34C759; }
.scene.go2 .deal--new { opacity: 1; transform: none; max-height: 60px; padding-block: 7px; margin-top: 0; }

/* Ops meters */
.ops, .fin { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-height: 0; }
.meter { display: grid; grid-template-columns: minmax(0,1fr) 34px; grid-template-rows: auto auto; column-gap: 8px; margin: 8px 0 0; }
.meter span { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter small { grid-row: 1 / 3; grid-column: 2; align-self: center; text-align: right; font-size: 11px; color: var(--slate); font-variant-numeric: tabular-nums; }
.track { height: 6px; border-radius: 3px; background: #E3E3E8; overflow: hidden; margin-top: 4px; }
.track i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--ink); transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.scene.on .track i { width: var(--w); }
.meter--risk .track i { background: #FF9F0A; }
.meter--risk small { color: #C93400; font-weight: 600; }

/* Finance */
.cashbars { display: flex; align-items: flex-end; gap: 6px; height: calc(100% - 26px); min-height: 110px; padding-top: 4px; }
.cashbars div { flex: 1; display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.cashbars i { flex: 1; border-radius: 3px 3px 1px 1px; height: 0; transition: height .9s cubic-bezier(.2,.7,.2,1); }
.cashbars i:first-child { background: var(--accent); }
.cashbars i:last-child { background: #D2D2D7; }
.scene.on .cashbars i { height: var(--h); }
.inv { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 6px; align-items: center; padding: 7px 0; border-bottom: 1px solid #E3E3E8; font-size: 11.5px; }
.inv:last-child { border-bottom: 0; }
.inv span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv b { font-weight: 600; font-variant-numeric: tabular-nums; }
.st { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 980px; background: #FFE9D6; color: #C93400; transition: background .4s, color .4s; min-width: 52px; text-align: center; }
.st--paid { background: #E3F5E8; color: #1E8E3E; }
.st--chased { background: #E5F0FF; color: var(--accent); }

/* AI toast */
.ai-toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #F5F5F7; border-radius: 12px; padding: 10px 12px; min-height: 52px; }
.ai-toast__tag { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; background: var(--accent); color: #fff; border-radius: 6px; padding: 3px 6px; }
.ai-toast p { margin: 0; font-size: 12.5px; line-height: 1.35; flex: 1; transition: opacity .3s; }
.ai-toast button { all: unset; flex: none; font-size: 12px; font-weight: 600; background: #fff; color: var(--ink); border-radius: 980px; padding: 5px 12px; transition: background .3s, color .3s, transform .15s; }
.ai-toast button.press { transform: scale(.94); }
.ai-toast button.done { background: #34C759; color: #fff; }
.ai-toast.swap p { opacity: 0; }

/* Process + builder */
.process { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.steps--v { grid-template-columns: 1fr; gap: 0; }
.steps--v li { display: grid; grid-template-columns: 2.4rem 1fr; column-gap: .6rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.steps--v li > span { grid-row: 1 / 3; padding-top: .15rem; }
.steps--v h3 { margin: 0 0 .2rem; font-size: 1.08rem; }
.steps--v li.active h3 { color: var(--accent); }
.builder__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 400px; }
.builder__prompt { background: var(--cloud); border-radius: 12px; padding: 12px 14px; }
.builder__prompt small { color: var(--slate); font-size: 11px; }
.builder__prompt p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; min-height: 3em; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.builder__quote { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; opacity: 0; transform: translateY(6px); transition: .5s; }
.builder__quote.show { opacity: 1; transform: none; }
.builder__quote span { color: var(--slate); }
.builder__quote b { font-size: 18px; letter-spacing: -0.03em; }
.builder__mods { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; min-height: 108px; align-content: start; }
.mod { border-radius: 10px; padding: 9px 10px; background: var(--cloud); opacity: 0; transform: scale(.92); transition: opacity .35s, transform .35s cubic-bezier(.3,1.4,.5,1); min-width: 0; }
.mod.show { opacity: 1; transform: none; }
.mod b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod small { font-size: 10.5px; color: var(--slate); }
.mod small::before { content: "✓ "; color: #1E8E3E; font-weight: 700; }
.mod--ai { background: var(--ink); color: #fff; }
.mod--ai small { color: #A1A1A6; }
.builder__tl ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); font-size: 11.5px; font-weight: 600; }
.builder__tl small { color: var(--slate); font-weight: 400; }
.builder__track { height: 6px; background: #E3E3E8; border-radius: 3px; overflow: hidden; }
.builder__track i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .6s ease; }
.builder__done { text-align: center; font-weight: 600; color: #1E8E3E; background: #E3F5E8; border-radius: 10px; padding: 9px; opacity: 0; transition: opacity .5s; }
.builder__done.show { opacity: 1; }

/* AI chat */
.ai { grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); }
.chat { background: #1D1D1F; border-color: #333336; color: #F5F5F7; box-shadow: none; }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #333336; }
.chat__head b { display: block; font-size: 14px; }
.chat__head small { color: #86868B; font-size: 11.5px; }
.chat__avatar { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); position: relative; }
.chat__avatar::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 2px solid #fff; }
.chat__body { height: 300px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; overflow: hidden; }
.msg { max-width: 86%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; animation: msgIn .35s ease both; }
.msg--me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.msg--ai { align-self: flex-start; background: #2C2C2E; border-bottom-left-radius: 5px; }
.msg--ai .act { display: inline-block; margin-top: 7px; font-size: 11.5px; font-weight: 600; color: #34C759; }
.msg--typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: #86868B; animation: dot 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat__input { margin: 0 12px 12px; display: flex; align-items: center; justify-content: space-between; background: #2C2C2E; border-radius: 980px; padding: 9px 9px 9px 16px; font-size: 13px; color: #86868B; }
.chat__input i { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); flex: none; }

/* Inline CTA strips */
.cta-strip { margin-top: 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; background: var(--cloud); border-radius: var(--radius); padding: 1rem 1rem 1rem 1.5rem; }
.section--alt .cta-strip { background: #fff; }
.cta-strip p { margin: 0; color: var(--slate); }
.cta-strip p b { color: var(--ink); font-weight: 600; }
.cta-strip > div { display: flex; align-items: center; gap: .4rem 1rem; flex-wrap: wrap; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; align-items: center; justify-content: space-between; gap: 1rem; background: rgba(29,29,31,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #F5F5F7; border-radius: 16px; padding: 10px 10px 10px 16px; font-size: .9rem; font-weight: 500; transform: translateY(140%); transition: transform .35s ease; }
.sticky-cta.show { transform: none; }

@media (max-width: 1000px) {
  .hero__grid, .process { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
}
@media (max-width: 860px) {
  .sticky-cta { display: flex; }
  .footer { padding-bottom: 6rem; }
}
@media (max-width: 640px) {
  .sys__body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 560px; }
  .sys__nav { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px; overflow-x: auto; }
  .sys__nav button { padding: 6px 9px; font-size: 12px; }
  .sys__nav svg { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .kanban { grid-template-columns: repeat(2, minmax(0,1fr)); overflow: hidden; }
  .ops, .fin { grid-template-columns: 1fr; }
  .builder__mods { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cta-strip { padding: 1.1rem; }
  .cta-strip > div, .cta-strip .btn:not(.btn--ghost) { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .mod, .builder__quote, .track i, .cashbars i { transition: none !important; }
}

/* Logo — wordmark "crm lab." */
.logo { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.045em; gap: 0; }
.logo__dot { color: var(--accent); }
.deal small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv--total { font-weight: 600; border-top: 1px solid #D2D2D7; }
.inv--total span { color: var(--ink); }

/* Mobile fixes for live system */
.sys__main, .sys__scenes, .scene { min-height: 0; overflow: hidden; }
.col { overflow: hidden; }
@media (max-width: 640px) {
  .sys__body { grid-template-rows: 46px minmax(0, 1fr); height: 600px; }
  .sys__nav { align-items: center; gap: 4px; }
  .sys__nav button { flex: none; }
  .sys__main { padding: 10px; }
  .scene__head small { display: none; }
  .col .deal:nth-of-type(n+3):not(.deal--arrive):not(.deal--new) { display: none; }
  .kanban { grid-template-rows: 1fr 1fr; }
  .meter:nth-of-type(n+5) { display: none; }
  .cashbars { min-height: 90px; height: 100px; }
  .inv:nth-of-type(n+4):not(.inv--total) { display: none; }
  .linechart { min-height: 140px; }
}

/* Self-hosted font (no third-party requests) */
@font-face { font-family: "Inter"; src: url("fonts/inter-var-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* Legal footer + legal pages */
.footer__legalnav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-bottom: .8rem; }
.footer__legalnav a { color: var(--slate); }
.legal { padding: 3rem 0 5rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .3rem; }
.legal .updated { color: var(--slate); margin-bottom: 2rem; }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; }
.legal h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
.legal p, .legal li, .legal td { color: #424245; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .35rem; }
.legal table { width: 100%; border-collapse: collapse; margin: .8rem 0 1.2rem; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; background: var(--cloud); }
.legal .table-wrap { overflow-x: auto; }
.legal .toc { background: var(--cloud); border-radius: 14px; padding: 1rem 1.4rem; margin-bottom: 1.5rem; }
.legal .toc ol { margin: .4rem 0 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
@media (max-width: 560px) { .legal .toc ol { columns: 1; } }
.notfound { text-align: center; padding: 6rem 0 7rem; }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
