/* Growth OS website styles. Built pages link this file; edit here, not in the pages. */

*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #080E1C; --navy-card: #0F1828; --indigo: #4F6EF7; --indigo-soft: #818CF8; --indigo-deep: #3A52D8;
  --ice: #F0F4FF; --slate: #8B9EC7; --ink: #0F172A; --ink-muted: #64748B; --border: #E2E8F0; --paper: #F7F9FC;
  --green: #16A34A; --radius: 12px;
  --display: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--body); background: #fff; color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--indigo-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--indigo-soft); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; text-wrap: balance; }
section { padding: 88px 5%; }
.wrap { max-width: 1080px; margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; }
.label { display: inline-block; color: var(--indigo); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.sub { color: var(--ink-muted); font-size: 1.06rem; line-height: 1.7; max-width: 62ch; }
.alt { background: var(--paper); }
.btn { display: inline-block; background: var(--indigo); color: #fff; padding: 15px 28px; border-radius: 10px; font-size: 1rem; font-weight: 700; text-decoration: none; transition: transform 0.15s, opacity 0.2s; }
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

nav.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(8,14,28,0.97); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 0 5%; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cpa-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.05rem; font-weight: 800; letter-spacing: -0.3px; color: var(--ice); text-decoration: none; white-space: nowrap; }
.cpa-logo svg { width: 28px; height: 26px; flex-shrink: 0; }
.cpa-logo em { font-style: normal; color: var(--indigo-soft); }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--slate); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ice); }
.nav-cta { background: var(--indigo); color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }

.hero-band { background: var(--navy); color: var(--ice); padding: 80px 5% 92px; }
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero.solo { grid-template-columns: 1fr; max-width: 860px; }
.eyebrow { display: inline-block; background: rgba(79,110,247,0.14); color: var(--indigo-soft); border: 1px solid rgba(79,110,247,0.28); font-size: 0.8rem; font-weight: 600; padding: 6px 14px; border-radius: 100px; margin-bottom: 22px; }
.hero-band h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 800; line-height: 1.08; }
.hero-band h1 em { font-style: normal; color: var(--indigo-soft); }
.lead { color: var(--slate); font-size: clamp(1.02rem, 1.6vw, 1.15rem); line-height: 1.7; margin: 20px 0 30px; max-width: 56ch; }
.lead strong { color: var(--ice); font-weight: 600; }
.note { color: var(--slate); font-size: 0.88rem; margin-top: 14px; }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 30px 80px rgba(0,0,0,0.45); background: #F0F4FF; }
.shot img { display: block; width: 100%; height: auto; }
.cap { color: var(--slate); font-size: 0.82rem; margin-top: 10px; }
.alt .cap, section .cap.dark { color: var(--ink-muted); }

/* Two doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.door { display: grid; gap: 10px; align-content: start; background: #fff; border: 1.5px solid var(--border); border-radius: 16px; padding: 30px 28px; text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s; }
.door:hover { border-color: var(--indigo); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .door { transition: none; } .door:hover { transform: none; } }
.door .k { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--indigo); }
.door h3 { font-size: 1.4rem; }
.door p { color: var(--ink-muted); }
.door .go { font-weight: 700; color: var(--indigo-deep); margin-top: 6px; }

/* The team chart */
.chart { margin-top: 40px; display: grid; justify-items: center; gap: 0; }
.node { background: #fff; border: 1.5px solid var(--border); border-radius: 14px; padding: 16px 20px; text-align: center; width: min(100%, 320px); }
.node b { display: block; font-family: var(--display); font-size: 1.02rem; letter-spacing: -0.01em; }
.node span { color: var(--ink-muted); font-size: 0.9rem; }
.node.you { background: var(--navy); border-color: var(--navy); color: var(--ice); }
.node.you span { color: var(--slate); }
.node.lead-node { border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(79,110,247,0.12); }
.stem { width: 2px; height: 26px; background: var(--border); }
.roles { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; width: 100%; margin-top: 0; padding-top: 26px; border-top: 2px solid var(--border); }
.role { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 18px 20px; display: grid; gap: 6px; align-content: start; }
.role b { font-family: var(--display); font-size: 1rem; letter-spacing: -0.01em; }
.role p { color: var(--ink-muted); font-size: 0.93rem; line-height: 1.55; }
.switch { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: 100px; padding: 4px; margin-top: 26px; }
.switch button { font: inherit; font-weight: 600; font-size: 0.92rem; border: 0; background: transparent; color: var(--ink-muted); padding: 9px 18px; border-radius: 100px; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--navy); color: var(--ice); }
.team[hidden] { display: none; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips span { border: 1px solid var(--border); background: #fff; border-radius: 100px; padding: 6px 14px; font-size: 0.88rem; font-weight: 600; color: var(--ink); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; counter-reset: s; list-style: none; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; }
.steps li::before { content: counter(s); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--ice); font-weight: 800; align-items: center; justify-content: center; margin-bottom: 16px; font-family: var(--display); }
.steps h3 { font-size: 1.12rem; margin-bottom: 6px; }
.steps p { color: var(--ink-muted); font-size: 0.97rem; }

/* Two columns with a picture */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.ticks li { padding-left: 30px; position: relative; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px; border-radius: 50%; background: rgba(79,110,247,0.16); box-shadow: inset 0 0 0 5px var(--indigo); }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shots .shot { border-color: var(--border); box-shadow: 0 16px 40px rgba(8,14,28,0.10); }

/* Testimonial */
.quote { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; margin-top: 8px; }
.quote .mark { font-family: var(--display); font-size: 5rem; line-height: 0.8; color: var(--indigo); }
blockquote { font-size: clamp(1.05rem, 2vw, 1.22rem); line-height: 1.65; color: var(--ink); font-weight: 500; }
.who { margin-top: 16px; color: var(--ink-muted); }
.who strong { color: var(--ink); }
.who a { margin-left: 6px; font-weight: 600; }

/* Callout */
.callout { border: 1px solid var(--border); border-left: 4px solid var(--indigo); border-radius: 12px; padding: 26px 28px; background: #fff; }
.callout h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.callout p { color: var(--ink-muted); max-width: 66ch; }

/* Pricing */
.plan { margin-top: 36px; border: 2px solid var(--indigo); border-radius: 16px; background: #fff; display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; }
.plan-head { padding: 32px 30px; display: grid; gap: 6px; align-content: start; }
.plan .tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo); }
.plan h3 { font-size: 1.4rem; }
.price { display: flex; flex-wrap: wrap; gap: 8px 34px; margin: 12px 0 6px; font-variant-numeric: tabular-nums; }
.price > div { display: grid; }
.price .now { display: flex; align-items: baseline; gap: 10px; }
.price b { font-family: var(--display); font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.price s { color: var(--ink-muted); font-size: 1.25rem; font-weight: 600; text-decoration-thickness: 2px; text-decoration-color: #DC2626; }
.price > div > span:last-child { color: var(--ink-muted); font-size: 0.88rem; }
.plan .keep { color: var(--ink); font-weight: 600; font-size: 1rem; margin-top: 6px; }
.includes { background: var(--paper); padding: 28px 30px; display: grid; gap: 18px; align-content: center; }
.includes h3 { font-size: 1rem; margin-bottom: 4px; }
.includes p { color: var(--ink-muted); font-size: 0.95rem; }
.terms { margin-top: 18px; color: var(--ink-muted); font-size: 0.95rem; }

/* FAQ */
.faq { margin-top: 32px; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.faq summary { font-weight: 700; cursor: pointer; font-family: var(--display); letter-spacing: -0.01em; }
.faq p { color: var(--ink-muted); margin-top: 10px; }

#final { background: var(--navy); color: var(--ice); text-align: center; }
#final h2 { color: var(--ice); }
#final .sub { color: var(--slate); margin: 0 auto 28px; }
footer { background: var(--navy); color: var(--slate); padding: 28px 5%; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; font-size: 0.88rem; border-top: 1px solid rgba(255,255,255,0.06); }
footer a { color: var(--slate); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 900px) {
  .hero, .split { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
  .steps.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: 64px 16px; }
  .hero-band { padding: 52px 16px 64px; }
  nav.top { padding: 0 16px; }
  .doors, .steps, .steps.four, .plan, .shots { grid-template-columns: 1fr; }
  .plan-head, .includes { padding: 24px 20px; }
  .quote { grid-template-columns: 1fr; gap: 0; }
  .quote .mark { font-size: 3.5rem; }
  .callout { padding: 22px 20px; }
  footer { padding: 24px 16px; }
  .switch { display: flex; }
  .switch button { flex: 1; padding: 9px 10px; }
}
@media (max-width: 440px) { .cpa-logo .w { display: none; } }

/* ===== Live product mock-ups (Growth OS v3) ===== */
.rot { display: inline-block; transition: opacity .3s, transform .3s; }
.rot.out { opacity: 0; transform: translateY(8px); }
.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; background: currentColor; margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 70% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }

.t-shop { --a: #C8781A; --a2: #E9A23B; --wash: #FCF1DE; --bg: #FBF7F0; --line: #EDE3D2; --tx: #2B2118; --mut: #8A7963; --side: #F6EFE3; --bar: #fff; --bar-tx: #2B2118; }
.t-b2b { --a: #4F6EF7; --a2: #818CF8; --wash: #EEF1FE; --bg: #F7F9FC; --line: #E2E8F0; --tx: #0F172A; --mut: #64748B; --side: #fff; --bar: #080E1C; --bar-tx: #F0F4FF; }

/* Hero over a product window */
.hero-c { text-align: center; max-width: 900px; margin: 0 auto; }
.hero-c .lead { margin-left: auto; margin-right: auto; }
.hero-c h1 .rot { color: var(--indigo-soft); }
.stage { max-width: 1180px; margin: 46px auto 0; }
.stage-top { display: flex; justify-content: center; margin-bottom: 18px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 100px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.seg button { font: inherit; font-size: .9rem; font-weight: 600; border: 0; background: transparent; color: var(--slate); padding: 9px 18px; border-radius: 100px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--ice); color: var(--navy); }
.light .seg { background: #fff; border-color: var(--border); }
[data-for][hidden] { display: none !important; }
.audience { flex-direction: column; align-items: center; gap: 12px; }
.audience .who { font-weight: 700; color: var(--ice); font-size: 1.05rem; }
.seg button[aria-pressed="true"] { background: var(--ice); color: var(--navy); }
.audience .seg button { font-size: 1rem; padding: 12px 22px; }
.more { margin-top: 22px; text-align: center; }
.more a { font-weight: 700; color: var(--indigo-deep); }
@media (max-width: 560px) { .audience .seg { flex-direction: column; border-radius: 18px; width: 100%; } .audience .seg button { border-radius: 14px; padding: 12px 16px; } }
.light .seg button[aria-selected="true"] { background: var(--navy); color: var(--ice); }

/* App window */
.app { background: var(--bg); color: var(--tx); border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 100px rgba(0,0,0,.45); text-align: left; font-size: .9rem; line-height: 1.45; }
.light .app, section .app { border-color: var(--border); box-shadow: 0 24px 60px rgba(8,14,28,.14); }
.app-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: var(--bar); color: var(--bar-tx); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #E5E7EB; }
.t-b2b .dots i { background: rgba(255,255,255,.18); }
.app-bar .ttl { font-weight: 700; font-family: var(--display); letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-bar .ttl small { font-weight: 500; color: var(--mut); font-family: var(--body); }
.t-b2b .app-bar .ttl small { color: var(--slate); }
.demo { margin-left: auto; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 100px; background: var(--wash); color: var(--a); white-space: nowrap; }
.t-b2b .demo { background: rgba(129,140,248,.18); color: var(--a2); }
.mark-s { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--a2), var(--a)); flex-shrink: 0; }
.app-body { display: grid; grid-template-columns: 214px 1fr; min-height: 560px; }
.side { background: var(--side); border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 14px; }
.side nav { display: grid; gap: 2px; }
.side nav button { font: inherit; font-size: .88rem; font-weight: 600; text-align: left; border: 0; background: transparent; color: var(--mut); padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 9px; }
.side nav button svg { width: 16px; height: 16px; flex-shrink: 0; }
.side nav button:hover { color: var(--tx); }
.side nav button[aria-selected="true"] { background: var(--wash); color: var(--a); }
.side nav .badge { margin-left: auto; font-size: .7rem; background: var(--a); color: #fff; border-radius: 100px; padding: 1px 7px; }
.side h4 { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mut); padding: 0 10px; font-family: var(--body); }
.crew { list-style: none; display: grid; gap: 2px; }
.crew li { display: grid; grid-template-columns: 8px 1fr; gap: 3px 9px; align-items: center; padding: 6px 10px; border-radius: 8px; }
.crew .dot { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; animation: pulse 2s infinite; }
.crew li:nth-child(2n) .dot { animation-delay: .6s; }
.crew li:nth-child(3n) .dot { animation-delay: 1.2s; }
.crew b { font-size: .82rem; font-weight: 600; color: var(--tx); }
.crew span[data-status] { grid-column: 2; font-size: .74rem; color: var(--mut); transition: opacity .25s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crew span.out { opacity: 0; }
.main { padding: 22px 24px; min-width: 0; }
.main[hidden] { display: none; }
.hello { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.hello h3 { font-size: 1.2rem; color: var(--tx); }
.hello .when { font-size: .78rem; color: var(--mut); white-space: nowrap; }
.summary { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--a); border-radius: 10px; padding: 12px 14px; color: var(--tx); margin-bottom: 14px; min-height: 66px; }
.summary b { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--a); margin-bottom: 4px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.tile span { display: block; font-size: .74rem; color: var(--mut); }
.tile b { display: block; font-family: var(--display); font-size: 1.35rem; letter-spacing: -.02em; color: var(--tx); font-variant-numeric: tabular-nums; }
.tile em { font-style: normal; font-size: .74rem; font-weight: 600; color: #16A34A; }
.cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-width: 0; }
.box + .box { margin-top: 12px; }
.box h5 { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; font-family: var(--body); }
.box h5 .live { margin-left: auto; color: #16A34A; text-transform: none; letter-spacing: 0; display: inline-flex; align-items: center; gap: 5px; }
.box h5 .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #16A34A; animation: pulse 2s infinite; }
.spark { width: 100%; height: 120px; display: block; }
.spark .draw { fill: none; stroke: var(--a); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spark .area { fill: var(--wash); }
[data-draw] .draw { transition: stroke-dashoffset 1.8s ease-out; }
[data-draw].drawn .draw { stroke-dashoffset: 0 !important; }
[data-draw] .area { opacity: 0; transition: opacity .8s 1s; }
[data-draw].drawn .area { opacity: 1; }
@media (prefers-reduced-motion: reduce) { [data-draw] .area { opacity: 1; } }

/* Approval queue */
.queue { display: grid; gap: 8px; }
.card { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: background .3s, opacity .4s, transform .4s; }
.card .th { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--wash); display: grid; place-items: center; color: var(--a); font-weight: 800; font-size: .8rem; }
.card b { display: block; font-size: .84rem; color: var(--tx); }
.card small { display: block; font-size: .74rem; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card > div { min-width: 0; }
.ok, .no { font: inherit; font-size: .78rem; font-weight: 700; border-radius: 8px; padding: 7px 12px; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.ok { background: var(--a); color: #fff; }
.no { background: #fff; color: var(--mut); border-color: var(--line); }
.ok.pressed { background: #16A34A; }
.card.done { background: #F0FDF4; border-color: #BBF7D0; }
.card.gone { opacity: 0; transform: translateX(30px); }

/* Feed */
.feed { list-style: none; display: grid; gap: 9px; }
.feed-item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; font-size: .8rem; color: var(--tx); transition: opacity .45s, transform .45s; }
.feed-item.enter { opacity: 0; transform: translateY(-10px); }
.feed-item b { font-weight: 700; }
.feed-item time { display: block; font-size: .7rem; color: var(--mut); }
.av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; background: var(--a, #C8781A); flex-shrink: 0; }
.av-b { background: #4F6EF7; } .av-c { background: #16A34A; } .av-d { background: #DB2777; } .av-e { background: #0D9488; } .av-f { background: #7C3AED; } .av-g { background: #EA580C; } .av-y { background: var(--navy); }

/* Social posts */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.post img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.post div { padding: 8px 10px; font-size: .76rem; color: var(--mut); }
.post p { color: var(--tx); font-size: .8rem; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pill { display: inline-block; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; background: var(--wash); color: var(--a); }
.pill.g { background: #DCFCE7; color: #15803D; }
.pill.r { background: #FEE2E2; color: #B91C1C; }
.pill.s { background: #F1F5F9; color: #475569; }
.tip { margin-top: 12px; display: flex; gap: 10px; align-items: center; background: var(--wash); border-radius: 10px; padding: 10px 12px; font-size: .82rem; color: var(--tx); }
.tip .ok { margin-left: auto; }

/* Email */
.mail { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mail-h { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--mut); }
.mail-h b { color: var(--tx); display: block; font-size: .88rem; }
.mail img { width: 100%; height: 130px; object-fit: cover; display: block; }
.mail-b { padding: 12px 14px; font-size: .82rem; color: var(--tx); }
.mail-b .fake-btn { display: inline-block; margin-top: 10px; background: var(--tx); color: #fff; border-radius: 6px; padding: 6px 12px; font-weight: 700; font-size: .76rem; }
.flows { display: grid; gap: 8px; }
.flowrow { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.flowrow b { font-size: .84rem; }
.flowrow small { grid-column: 1; font-size: .74rem; color: var(--mut); }
.flowrow .pill { grid-row: 1 / span 2; grid-column: 2; }

/* Reviews and search */
.stars { color: #F59E0B; letter-spacing: 1px; font-size: .9rem; }
.rev { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: .82rem; }
.rev .by { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rev .by b { font-size: .84rem; }
.reply { margin-top: 10px; border-left: 3px solid var(--a); background: var(--bg); padding: 9px 11px; border-radius: 0 8px 8px 0; }
.reply small { display: block; color: var(--a); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.ask { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: .82rem; }
.ask .q { background: var(--bg); border-radius: 100px; padding: 7px 12px; color: var(--tx); margin-bottom: 10px; display: inline-block; }
.ask mark { background: var(--wash); color: var(--a); font-weight: 700; padding: 0 3px; border-radius: 4px; }

/* DM / chat bubbles */
.dm { display: grid; gap: 8px; font-size: .82rem; }
.bub { max-width: 82%; padding: 8px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.bub.out { justify-self: end; background: var(--wash); border-color: transparent; }
.bub small { display: block; font-size: .68rem; color: var(--mut); margin-top: 2px; }

/* B2B pieces */
.mails { display: grid; gap: 6px; }
.mrow { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.mrow.new { border-color: var(--a2); box-shadow: 0 0 0 3px var(--wash); }
.mrow b { font-size: .84rem; display: block; }
.mrow small { font-size: .74rem; color: var(--mut); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow > div { min-width: 0; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.col { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px; min-width: 0; }
.col h6 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); display: flex; justify-content: space-between; margin-bottom: 8px; font-family: var(--body); }
.col ul { list-style: none; display: grid; gap: 7px; min-height: 60px; align-content: start; }
.col li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; font-size: .78rem; transition: opacity .38s, transform .38s; }
.col li b { display: block; font-size: .8rem; }
.col li small { color: var(--mut); font-size: .72rem; }
.col li.leaving { opacity: 0; transform: translateX(24px); }
.col li.arrive { opacity: 0; transform: translateX(-24px); }
.sig { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.sig + .sig { margin-top: 8px; }
.sig .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--wash); color: var(--a); font-weight: 800; font-size: .8rem; }
.sig b { font-size: .84rem; display: block; }
.sig small { font-size: .74rem; color: var(--mut); }
.cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; font-size: .7rem; text-align: center; }
.cal span { padding: 6px 2px; border-radius: 6px; background: var(--bg); color: var(--mut); }
.cal span.bk { background: var(--a); color: #fff; font-weight: 700; }
.brief { font-size: .8rem; display: grid; gap: 6px; }
.brief div { display: grid; grid-template-columns: 84px 1fr; gap: 8px; }
.brief dt, .brief div > span:first-child { color: var(--mut); }
.tl { list-style: none; display: grid; gap: 0; font-size: .78rem; }
.tl li { padding: 0 0 10px 18px; border-left: 2px solid var(--line); position: relative; }
.tl li::before { content: ""; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--a); }
.tl li small { color: var(--mut); display: block; }
.li-post { background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: .82rem; overflow: hidden; }
.li-post .hd { display: flex; gap: 9px; align-items: center; padding: 10px 12px 6px; }
.li-post .hd b { display: block; font-size: .82rem; }
.li-post .hd small { color: var(--mut); font-size: .7rem; }
.li-post p { padding: 0 12px 10px; }
.li-post img.img { width: 100%; height: 150px; object-fit: cover; padding: 0; }
.li-post .img { height: 110px; background: linear-gradient(135deg, #1E2A4A, #3A52D8); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.05rem; padding: 0 20px; text-align: center; }

/* Prospecting chain: one signal followed to a call task */
.chain { list-style: none; display: grid; gap: 0; }
.chain li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 0 0 12px; position: relative; font-size: .8rem; }
.chain li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.chain .n { width: 26px; height: 26px; border-radius: 50%; background: var(--a); color: #fff; font-weight: 700; font-size: .74rem; display: grid; place-items: center; }
.chain b { font-size: .84rem; }
.chain small { display: block; color: var(--mut); font-size: .76rem; margin-top: 2px; overflow-wrap: anywhere; }
.chain .src { display: inline-block; font-size: .64rem; font-weight: 700; padding: 1px 7px; border-radius: 100px; background: var(--wash); color: var(--a); vertical-align: 1px; }
.chain .ok-t { color: #15803D; font-weight: 700; }
.task { margin-top: 12px; }

/* Role tabs */
.roletabs { display: grid; grid-template-columns: 290px 1fr; gap: 22px; margin-top: 34px; align-items: start; }
.rlist { display: grid; gap: 6px; }
.rlist button { font: inherit; text-align: left; border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 12px 14px; cursor: pointer; display: grid; grid-template-columns: 10px 1fr; gap: 2px 11px; align-items: center; color: var(--ink); }
.rlist button .dot { width: 9px; height: 9px; border-radius: 50%; background: #16A34A; animation: pulse 2s infinite; }
.rlist button b { font-family: var(--display); font-size: .98rem; letter-spacing: -.01em; }
.rlist button small { grid-column: 2; color: var(--ink-muted); font-size: .8rem; }
.rlist button[aria-selected="true"] { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79,110,247,.14); }
.t-shop .rlist button[aria-selected="true"] { border-color: var(--a); box-shadow: 0 0 0 3px var(--wash); }
.rpanel { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 22px; color: var(--tx); min-width: 0; }
.rpanel[hidden] { display: none; }
.rpanel > h3 { font-size: 1.25rem; margin-bottom: 4px; }
.rpanel > p { color: var(--mut); margin-bottom: 16px; max-width: 62ch; }
.rpanel .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Compare */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.vs > div { border-radius: 16px; padding: 22px; border: 1px solid var(--border); background: #fff; }
.vs .them { background: #F8FAFC; }
.vs h3 { font-size: 1.1rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.vs .them .bub { background: #fff; font-size: .9rem; }
.vs .them .dm { gap: 10px; }
.vs .them .gray { color: var(--ink-muted); font-size: .9rem; margin-top: 14px; }
.done-list { list-style: none; display: grid; gap: 10px; }
.done-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; opacity: .35; transition: opacity .4s; font-size: .95rem; }
.done-list li.on { opacity: 1; }
.done-list li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #E2E8F0; color: #fff; font-size: .8rem; font-weight: 800; transition: background .4s; }
.done-list li.on::before { background: #16A34A; }
.done-list small { display: block; color: var(--ink-muted); font-size: .82rem; }

/* Control chat */
.chatwin { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(8,14,28,.12); }
.chatwin .app-bar { background: #fff; color: var(--ink); border-color: var(--border); }
.chatbox { padding: 18px; display: grid; gap: 14px; min-height: 330px; align-content: start; font-size: .92rem; }
.msg { display: grid; grid-template-columns: 30px 1fr; gap: 10px; transition: opacity .4s, transform .4s; }
.msg.enter { opacity: 0; transform: translateY(10px); }
.msg .av { width: 30px; height: 30px; }
.msg b { font-size: .84rem; }
.msg p { color: var(--ink); margin-top: 2px; }
.msg .btns { display: flex; gap: 8px; margin-top: 8px; }
.msg .ok { background: var(--indigo); }
.msg .ok.pressed { background: #16A34A; }

/* Enquiry to meeting flow */
.steps-flow { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 36px; position: relative; }
.steps-flow li { background: #fff; border: 1.5px solid var(--border); border-radius: 14px; padding: 14px; opacity: .45; transform: translateY(6px); transition: opacity .45s, transform .45s, border-color .45s, box-shadow .45s; font-size: .86rem; min-width: 0; }
.steps-flow li.on { opacity: 1; transform: none; border-color: var(--indigo); box-shadow: 0 10px 30px rgba(79,110,247,.15); }
.steps-flow time { font-size: .74rem; font-weight: 700; color: var(--indigo); display: block; }
.steps-flow b { display: block; font-family: var(--display); font-size: .98rem; margin: 2px 0 8px; }
.steps-flow .mini { background: var(--paper); border-radius: 8px; padding: 8px 10px; font-size: .78rem; color: var(--ink-muted); }

/* Tool chips that look connected */
.chips.live span { display: inline-flex; align-items: center; gap: 7px; }
.chips.live span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #16A34A; }

/* Door cards with a mini preview */
.door .peek { margin-top: 8px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.door .peek .app { box-shadow: none; border: 0; border-radius: 0; font-size: .8rem; }

/* Mobile */
@media (max-width: 980px) {
  .app-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; gap: 0; }
  .side nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .side nav::-webkit-scrollbar { display: none; }
  .side nav button { white-space: nowrap; flex-shrink: 0; }
  .side h4, .crew { display: none; }
  .cols, .rpanel .two { grid-template-columns: minmax(0, 1fr); }
  .roletabs { grid-template-columns: 1fr; }
  .rlist { grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; padding-bottom: 4px; }
  .steps-flow { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .main { padding: 14px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .posts { grid-template-columns: 1fr 1fr; }
  .posts .post:nth-child(3) { display: none; }
  .vs { grid-template-columns: 1fr; }
  .card { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; }
  .card .th { width: 36px; height: 36px; }
  .hello { flex-direction: column; gap: 2px; }
  .app-bar .ttl small { display: none; }
  .seg button { padding: 8px 12px; font-size: .84rem; }
  .rpanel { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .crew .dot, .rlist button .dot, .box h5 .live::before { animation: none; }
  .rot, .feed-item, .card, .msg, .col li, .steps-flow li, .done-list li { transition: none; }
}
.split > *, .wrap > * { min-width: 0; }
.hero-band:has(.stage) { padding-top: 56px; }

/* Testimonial video (loads YouTube only on click) */
.story { display: grid; grid-template-columns: 290px 1fr; gap: 48px; align-items: center; }
.video-wrap { width: min(290px, 100%); margin: 0 auto; }
.video-slot { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--navy); box-shadow: 0 24px 60px rgba(8,14,28,.18); }
.video-slot button { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; background-size: cover; background-position: center; color: #fff; font: inherit; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.video-slot button::before { content: ""; width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%234F6EF7'/%3E%3C/svg%3E") center / 30px no-repeat; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .2s; }
.video-slot button:hover::before { transform: scale(1.06); }
.video-slot button span { text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.video-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-wrap .cap { text-align: center; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; gap: 32px; } }
@media (prefers-reduced-motion: reduce) { .video-slot button::before { transition: none; } }

/* Guided tour */
.tour .app { position: relative; }
.app-body { position: relative; transform-origin: 0 0; transition: transform .9s cubic-bezier(.65,0,.35,1); }
.app-view { overflow: hidden; }
.app.touring .app-view { height: 600px; }
.app.touring .app-body { min-height: 600px; }
.app.touring .main { overflow: visible; }
.spot { position: relative; z-index: 2; box-shadow: 0 0 0 3px var(--a), 0 0 0 9px var(--wash), 0 18px 40px rgba(8,14,28,.18) !important; border-radius: 10px; transition: box-shadow .4s; }
.tour-cap { position: absolute; left: 18px; bottom: 18px; z-index: 5; width: min(380px, calc(100% - 36px)); background: var(--navy); color: var(--ice); border-radius: 14px; padding: 14px 16px 16px; box-shadow: 0 20px 50px rgba(8,14,28,.35); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .45s .35s, transform .45s .35s; }
.tour-cap.show { opacity: 1; transform: none; }
.tour-cap .n { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--a2); }
.tour-cap b { display: block; font-family: var(--display); font-size: 1.08rem; margin: 2px 0 4px; letter-spacing: -.01em; }
.tour-cap p { color: #C7D2EE; font-size: .9rem; line-height: 1.5; }
.tour-nav { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.tour-play { font: inherit; font-size: .82rem; font-weight: 700; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: var(--ice); border-radius: 100px; padding: 8px 14px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; }
.tour-play::before { content: ""; width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.tour.playing .tour-play::before { width: 8px; height: 10px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.tour-play .t2, .tour.playing .tour-play .t1 { display: none; }
.tour.playing .tour-play .t2 { display: inline; }
.tour-steps { list-style: none; display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.tour-steps::-webkit-scrollbar { display: none; }
.tour-steps li { flex: 1 0 auto; }
.tour-steps button { position: relative; width: 100%; font: inherit; font-size: .78rem; font-weight: 600; color: var(--slate); background: rgba(255,255,255,.05); border: 0; border-radius: 8px; padding: 9px 10px 11px; cursor: pointer; overflow: hidden; white-space: nowrap; }
.tour-steps button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--indigo-soft); }
.tour-steps button.past::after { width: 100%; opacity: .45; }
.tour-steps button.on { color: var(--ice); background: rgba(255,255,255,.1); }
.tour.playing .tour-steps button.on::after { animation: fill var(--step, 6500ms) linear forwards; }
.tour:not(.playing) .tour-steps button.on::after { width: 100%; }
@keyframes fill { to { width: 100%; } }
@media (max-width: 760px) {
  .app.touring .app-view { height: 470px; }
  .app.touring .app-body { min-height: 470px; }
  .tour-cap { position: static; width: auto; margin: 0; border-radius: 0; transform: none; box-shadow: none; transition: opacity .3s; display: none; }
  .app.touring .tour-cap { display: block; }
  .tour-nav { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .app-body, .tour-cap { transition: none; } .tour.playing .tour-steps button.on::after { animation: none; width: 100%; } }
.tour-cap.right { left: auto; right: 18px; }
.tour-steps { position: relative; }
