/* Kustomer mockups. Drawn at a fixed size inside .mock-c and scaled to fit (see ks.js). */
:root {
  --bg: #070708; --tx: #F4F4F2; --tx3: #6E6C68; --mono: 'Geist Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.4, .5, 1);
  --navy: #12325A; --navy2: #0D2747; --navy3: #0A1F3A; --rail: #15335A;
  --ink: #2E3440; --ink2: #6B7280; --ink3: #A0A7B4; --line: #E6E9EE; --soft: #F6F7F9;
  --blue: #2F8FEA; --coral: #F25F5C; --amber: #F5B400; --green: #1DBF73; --teal: #1FA88F; --purple: #8E5CE6;
  --chart-g: #19C46A; --chart-b: #4DA3FF; --chart-r: #FF6157; --chart-gray: #D9DDE3;
  --ks: 'Lato', system-ui, sans-serif;
}
.mock { position: relative; width: 100%; }
.mock-c { position: absolute; left: 0; top: 0; transform-origin: 0 0; font-family: var(--ks); color: var(--ink); font-size: 14px; line-height: 1.4; -webkit-font-smoothing: antialiased; text-align: left; }
.mock-c *, .mock-c *::before, .mock-c *::after { box-sizing: border-box; }
.mock-c img { display: block; }
.mock-c h3, .mock-c h4, .mock-c p { margin: 0; }
.i { width: 16px; height: 16px; flex: none; }
.stage { position: relative; width: 100%; height: 100%; overflow: hidden; }
.stage > * { position: absolute; }

/* ---------- workspace ---------- */
.ws { display: grid; grid-template-columns: 60px 300px 1fr 300px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(10, 30, 60, .45), 0 0 0 1px rgba(10, 30, 60, .06); }
.ws-rail { background: var(--rail); display: flex; flex-direction: column; align-items: center; gap: 26px; padding-top: 16px; color: rgba(255, 255, 255, .55); }
.ws-rail .logo { width: 30px; height: 30px; border-radius: 9px; background: #FFE34D; display: grid; place-items: center; color: #12325A; }
.ws-rail .logo svg { width: 18px; height: 18px; }
.ws-rail .on { color: #fff; position: relative; }
.ws-rail .on::before { content: ''; position: absolute; left: -17px; top: -6px; bottom: -6px; width: 3px; background: var(--coral); }
.ws-in { background: var(--soft); border-right: 1px solid var(--line); padding: 14px 12px; overflow: hidden; }
.ws-h { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--ink2); margin: 2px 4px 12px; }
.cv { display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 12px; margin-bottom: 8px; transition: border-color .3s, box-shadow .3s; }
.cv.sel { border-color: #A9CBF2; box-shadow: inset 3px 0 0 var(--blue); background: #F4F9FF; }
.cv.new { animation: slin .7s var(--ease) both; }
.av { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; }
.cv b { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.cv p { font-size: 12.5px; color: var(--ink2); line-height: 1.35; margin-top: 3px; height: 34px; overflow: hidden; }
.cv small { display: block; font-size: 11px; color: var(--ink3); margin-top: 5px; }
.pill { display: inline-grid; place-items: center; height: 20px; padding: 0 8px; border-radius: 3px; font-size: 11px; font-weight: 700; color: #fff; }
.pill.open { background: var(--coral); } .pill.snz { background: var(--amber); } .pill.done { background: var(--green); }
.ws-mid { display: flex; flex-direction: column; min-width: 0; }
.ws-top { height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.ws-top b { font-size: 15px; }
.ws-top span.sub { font-size: 12.5px; color: var(--ink2); }
.ws-top .pill { margin-left: auto; }
.thread { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; background: #FBFCFD; }
.ev { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink3); }
.ev i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #EEF2F7; color: var(--ink2); font-style: normal; font-size: 12px; }
.msg { max-width: 76%; padding: 10px 13px; border-radius: 6px; font-size: 13.5px; line-height: 1.45; }
.msg.in { background: #fff; border: 1px solid var(--line); }
.msg.out { align-self: flex-end; background: #1F8A78; color: #fff; }
.msg small { display: block; margin-top: 4px; font-size: 10.5px; opacity: .7; }
.comp { position: relative; margin: 0 20px 18px; border: 1px solid #CBD2DC; border-radius: 6px; background: #fff; padding: 12px 44px 40px 14px; font-size: 14px; min-height: 92px; }
.comp .tools { position: absolute; left: 12px; right: 12px; bottom: 8px; display: flex; align-items: center; gap: 14px; color: var(--ink3); font-size: 12px; }
.comp .tools .send { margin-left: auto; height: 28px; padding: 0 14px; border-radius: 4px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; }
.comp .br { position: absolute; right: 12px; top: 10px; font: 600 12px var(--mono); color: var(--ink2); }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 3px; font-size: 13px; margin: 0 2px; vertical-align: 1px; animation: pop .45s var(--spring) both; }
.chip.dyn { background: #FFF1D6; color: #C77A00; box-shadow: inset 0 0 0 1px #F5B400; }
.chip.dyn em { font-style: italic; opacity: .7; margin-left: 4px; padding-left: 4px; border-left: 1px solid #F0C36B; }
.chip.snip { background: #F1E8FF; color: #7B45D9; box-shadow: inset 0 0 0 1px #B38CF2; }
.caret { display: inline-block; width: 1.5px; height: 1.1em; margin-bottom: -.2em; background: var(--ink); animation: blink 1s steps(2) infinite; }
.pop { position: absolute; width: 240px; background: #fff; border: 1px solid #D5DBE3; border-radius: 6px; box-shadow: 0 16px 40px -14px rgba(10, 30, 60, .35); padding: 8px; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .35s var(--ease); z-index: 5; }
.pop.on { opacity: 1; transform: none; }
.pop .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 8px; }
.pop .tabs span { height: 30px; display: grid; place-items: center; font-size: 10.5px; font-weight: 900; letter-spacing: .06em; color: var(--ink2); border-radius: 3px; }
.pop .tabs span.on { background: #F1E8FF; color: #6A3FC1; }
.pop .s { height: 30px; border-radius: 3px; background: var(--soft); display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 12.5px; color: var(--ink3); margin-bottom: 6px; }
.pop .it { height: 29px; display: flex; align-items: center; padding: 0 8px; font-size: 13px; border-radius: 3px; }
.pop .it.hl { background: #F4F9FF; color: var(--blue); }
.ws-r { border-left: 1px solid var(--line); padding: 16px 18px; overflow: hidden; }
.ws-r h5 { margin: 0 0 10px; font-size: 13.5px; }
.kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink2); }
.kv b { color: var(--ink); font-weight: 400; }
.tsk { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 12.5px; }
.tsk i { width: 15px; height: 15px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px #C5CCD6; flex: none; }
.tsk.ok i { background: var(--green); box-shadow: none; }
.tsk.ok span { color: var(--ink3); text-decoration: line-through; }
.jira { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.jira small { display: flex; gap: 6px; align-items: center; margin-top: 3px; font-size: 10.5px; color: var(--ink3); }
.jira small em { font-style: normal; font-weight: 700; color: var(--blue); border: 1px solid var(--blue); border-radius: 2px; padding: 0 4px; font-size: 9.5px; }

/* ---------- dashboard ---------- */
.dash { background: var(--navy); color: #fff; padding: 26px 30px; border-radius: 10px; display: grid; grid-template-columns: 1fr 330px; grid-template-rows: auto 1fr; gap: 16px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); }
.dash-h { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; font-size: 16px; }
.dash-h b { font-weight: 700; }
.dash-h span { color: rgba(255, 255, 255, .7); }
.dash-h .live { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: rgba(255, 255, 255, .7); }
.dash-h .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--chart-g); box-shadow: 0 0 0 4px rgba(25, 196, 106, .2); animation: pulse 1.6s ease-in-out infinite; }
.dl { display: grid; grid-template-rows: 1fr auto auto; gap: 14px; min-height: 0; }
.panel { background: var(--navy3); border-radius: 3px; padding: 16px 18px; min-height: 0; position: relative; }
.ph5 { font-size: 10.5px; font-weight: 900; letter-spacing: .06em; color: rgba(255, 255, 255, .85); margin-bottom: 12px; }
.chart { display: flex; flex-direction: column; }
.chart svg { width: 100%; flex: 1; min-height: 120px; overflow: visible; }
.chart .grid line { stroke: rgba(255, 255, 255, .12); stroke-dasharray: 2 4; }
.chart .ln { fill: none; stroke-width: 2.2; stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.mock.in .chart .ln { animation: draw 1.8s var(--ease) .3s forwards; }
.mock.static .chart .ln { stroke-dashoffset: 0; }
.chart .ar { opacity: 0; transition: opacity 1s ease 1.2s; }
.mock.in .chart .ar, .mock.static .chart .ar { opacity: 1; }
.legend { display: flex; gap: 26px; font-size: 10.5px; font-weight: 900; letter-spacing: .05em; margin-top: 6px; }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
.tiles { display: grid; gap: 1px; background: rgba(255, 255, 255, .06); border-radius: 3px; overflow: hidden; }
.tiles .panel { border-radius: 0; }
.big { font-size: 40px; font-weight: 700; letter-spacing: -.01em; line-height: 1; font-variant-numeric: tabular-nums; }
.big small { font-size: 18px; font-weight: 400; margin-left: 6px; }
.dn { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; color: var(--chart-r); }
.dn::before { content: ''; border: 5px solid transparent; border-top: 7px solid currentColor; margin-top: 6px; }
.big.tick { animation: tick .5s var(--spring); }
.dr { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; min-height: 0; }
.donut { display: flex; align-items: center; gap: 18px; }
.donut ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.donut li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .9); }
.donut li b { font-size: 15px; font-variant-numeric: tabular-nums; }
.donut svg { width: 140px; height: 140px; transform: rotate(-90deg); flex: none; }
.donut circle { fill: none; stroke-width: 26; transition: stroke-dasharray 1s var(--ease); }
.dash-f { grid-column: 1 / -1; display: flex; gap: 26px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .55); }

/* ---------- homepage card ---------- */
.hc { background: radial-gradient(70% 70% at 70% 10%, #1C4A80, transparent 70%), linear-gradient(180deg, #0E2949, #0A1F3A); }
.hc .float { will-change: translate; }

.kpat { background: #12325A; }
/* t-snip: a dock of channels; the yellow disc slides to the next one and its message lands at the bottom of the thread */
.kpat .cthread { height: 172px; flex: none; justify-content: flex-end; padding: 14px 18px; gap: 9px;
  -webkit-mask-image: linear-gradient(transparent, #000 46px); mask-image: linear-gradient(transparent, #000 46px); }
.kpat .cm { max-width: 88%; flex: none; padding: 8px 12px; font-size: 13px; }
.kpat .cm small { margin-top: 2px; }
.kpat .via { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.kpat img.av { object-fit: cover; }
.kpat .via svg { width: 12px; height: 12px; }
.kpat .cm.new { animation: land .6s var(--spring) both; }
.kpat .cm.new .via { animation: via 2.4s ease-out both; }
.kpat .dock { left: 132px; top: 444px; display: flex; gap: 10px; padding: 8px; border-radius: 40px;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.kpat .dock .dot { position: absolute; left: 8px; top: 8px; width: 56px; height: 56px; border-radius: 50%; background: #F2D530;
  box-shadow: 0 8px 24px -6px rgba(242, 213, 48, .55); transform: translateX(calc(var(--x) * 66px)); transition: transform .5s var(--ease); }
.kpat .dock span { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: rgba(255, 255, 255, .85); transition: color .3s; }
.kpat .dock span.on { color: #12325A; }
.kpat .dock svg { width: 27px; height: 27px; stroke-width: 1.8; }
.kpat .dock-l { left: 0; right: 0; top: 530px; text-align: center; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: rgba(255, 255, 255, .6); }
@keyframes land { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes via { 0%, 40% { color: #A88A00; } }

/* reveal + keyframes */
.rv { opacity: 0; transform: translateY(14px); }
.mock.in .rv { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 100ms); }
.mock.static .rv { opacity: 1; transform: none; animation: none !important; }
.mock.static * { transition: none !important; }
.mock.static .chip { animation: none; }
.mock.in .float { animation: bob 7s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes slin { from { opacity: 0; transform: translateY(-14px); } }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(25, 196, 106, 0); } }
@keyframes tick { 40% { transform: scale(1.08); color: #9FE6C0; } }
@media (prefers-reduced-motion: reduce) { .mock * { animation: none !important; transition: none !important; } .rv { opacity: 1; transform: none; } .chart .ln { stroke-dashoffset: 0; } }
