/* Convera landing: content sections below the hero. */

/* Before and after */
.ba-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 28px;
	border-radius: 28px;
}

.ba-card h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
}

.ba-bad {
	background: var(--destructive-soft);
	border: 1px solid var(--destructive-border);
}

.ba-bad h3 {
	color: var(--destructive);
}

.ba-good {
	background: var(--primary-soft);
	border: 1px solid var(--primary-border);
}

.ba-good h3 {
	color: var(--primary);
}

.mess {
	position: relative;
	height: 330px;
}

.mess-bubble {
	position: absolute;
	max-width: 210px;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--card);
	border: 1px solid var(--border);
	box-shadow: 0 6px 16px rgb(0 0 0 / 0.06);
	font-size: 13px;
	line-height: 18px;
	animation: lb-bob 5s ease-in-out infinite;
	animation-delay: calc(var(--d, 0s) * -1);
}

.mess-src {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: var(--muted-foreground);
}

.mess-flag {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	font-weight: 700;
	color: var(--destructive);
	animation: lb-blink 1.6s steps(1) infinite;
}

.ba-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ba-list li {
	display: flex;
	gap: 8px;
	font-size: 15px;
	line-height: 22px;
}

.ba-x {
	color: var(--destructive);
	font-weight: 800;
}

.ba-check {
	display: flex;
	margin-top: 3px;
	color: var(--success);
}

.inbox {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 330px;
	justify-content: center;
}

.inbox-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--card);
	border: 1px solid var(--border);
}

.avatar {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	border-radius: 9999px;
	background: var(--primary-soft);
	color: var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
}

.inbox-main {
	flex-grow: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	font-size: 12px;
	line-height: 18px;
	color: var(--muted-foreground);
}

.inbox-main b {
	font-size: 14px;
	line-height: 22px;
	font-weight: 700;
	color: var(--foreground);
}

.inbox-main span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.inbox-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	font-size: 11px;
	line-height: 16px;
	color: var(--muted-foreground);
}

.inbox-meta b {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 700;
	color: var(--foreground);
}

/* Journey of one chat */
.lj-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.lj-list {
	/* Extra bottom room so the active card shadow is not clipped by the scroller. */
	margin: 0 0 -24px;
	padding: 0 0 28px;
	list-style: none;
	display: flex;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: none;
}

.lj-list > li {
	flex-shrink: 0;
}

.lj-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: transparent;
	text-align: left;
	font: inherit;
	color: var(--muted-foreground);
	cursor: pointer;
	transition:
		background 0.2s ease,
		transform 0.2s ease;
}

.lj-btn:not([aria-current]):hover {
	background: var(--background);
}

.lj-head {
	display: contents;
}

.lj-head .dot {
	width: 10px;
	height: 10px;
	opacity: 0.55;
}

.lj-time {
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.lj-tag,
.lj-desc,
.lj-bar {
	display: none;
}

.lj-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--foreground);
}

.lj-btn[aria-current] {
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	min-height: 0;
	padding: 12px 16px;
	border-color: transparent;
	border-radius: 20px;
	background: var(--card);
	box-shadow:
		inset 0 0 0 1px var(--border),
		0 16px 32px -20px rgb(7 8 155 / 0.35);
	color: var(--foreground);
}

.lj-btn[aria-current] .lj-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.lj-btn[aria-current] .lj-head .dot {
	width: 12px;
	height: 12px;
	opacity: 1;
}

.lj-btn[aria-current] .lj-time {
	font-weight: 800;
}

.lj-btn[aria-current] .lj-tag {
	display: inline;
	font-size: 12px;
	font-weight: 700;
	color: var(--muted-foreground);
}

.lj-btn[aria-current] .lj-title {
	font-size: 15px;
	line-height: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.lj-btn[aria-current] .lj-bar {
	display: block;
	position: relative;
	height: 4px;
	border-radius: 9999px;
	background: var(--border);
	overflow: hidden;
}

.lj-prog {
	position: absolute;
	inset: 0;
	border-radius: 9999px;
	background: var(--c);
	transform-origin: left;
	animation: lj-fill 5s linear both;
}

.lj-stage {
	padding: 28px;
	border-radius: 28px;
	background: var(--background);
	border: 1px solid var(--border);
}

.lj-panel {
	display: flex;
	flex-direction: column;
	gap: 20px;
	animation: lb-up 0.5s var(--ease-out) both;
}

.lj-panel[hidden] {
	display: none;
}

.lj-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 12px;
	font-weight: 700;
	color: var(--muted-foreground);
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 30px;
	padding: 0 12px;
	border-radius: 9999px;
	background: var(--card);
	border: 1px solid var(--border);
	font-size: 12px;
	font-weight: 800;
	color: var(--foreground);
}

.lj-mtext {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 15px;
	line-height: 23px;
	color: var(--muted-foreground);
}

.lj-mtext .lj-mtime {
	font-size: 13px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.lj-mtext b {
	font-size: 22px;
	line-height: 28px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--foreground);
}

.lj-seq {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 230px;
	justify-content: center;
}

.lj-item {
	animation: lb-pop 0.45s var(--ease-out) both;
	animation-delay: calc(var(--i, 0) * 0.45s + 0.15s);
}

.lj-typing-b {
	align-self: flex-end;
	padding: 12px 14px;
	border-radius: 14px 4px 14px 14px;
	background: var(--success-soft);
	border: 1px solid var(--success-border);
	animation: lj-type 1.3s ease 0.55s both;
}

.lj-typing-b + .lj-item {
	animation-delay: 1.85s;
}

.bubble {
	max-width: 85%;
	padding: 9px 13px;
	font-size: 14px;
	line-height: 20px;
}

.bubble-in {
	align-self: flex-start;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 4px 14px 14px 14px;
}

.bubble-ai {
	align-self: flex-end;
	background: var(--success-soft);
	border: 1px solid var(--success-border);
	border-radius: 14px 4px 14px 14px;
}

.bubble-ai b {
	display: block;
	font-size: 11px;
	color: var(--success);
}

.bubble-agent {
	align-self: flex-end;
	background: var(--primary);
	color: var(--primary-foreground);
	border-radius: 14px 4px 14px 14px;
}

.pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 30px;
	padding: 0 10px;
	border-radius: 9999px;
	background: var(--card);
	border: 1px solid var(--border);
	font-size: 12px;
	font-weight: 700;
	color: var(--muted-foreground);
}

.pill-channel {
	gap: 6px;
	height: 32px;
	padding: 0 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--foreground);
}

.pill-current {
	background: var(--sidebar);
	border-color: var(--sidebar);
	color: var(--sidebar-accent-foreground);
}

.lj-note {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted-foreground);
}

.lj-handoff {
	align-self: center;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 9999px;
	background: var(--card);
	border: 1px solid var(--border);
	font-size: 12px;
	font-weight: 700;
	color: var(--muted-foreground);
}

.mini-card {
	padding: 14px;
	border-radius: 14px;
	background: var(--card);
	border: 1px solid var(--border);
}

.broadcast {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
	line-height: 20px;
}

.broadcast-head {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--muted-foreground);
}

.kpis {
	display: flex;
	gap: 8px;
}

.kpi {
	flex: 1 1 0;
	padding: 10px;
	border-radius: 10px;
	background: var(--card);
	border: 1px solid var(--border);
	font-size: 12px;
	color: var(--muted-foreground);
}

.kpi b {
	display: block;
	font-size: 15px;
	color: var(--foreground);
}

.lj-draw {
	stroke-dasharray: 1;
	animation: lb-dash 1.2s ease 0.6s both;
}

.lb-pulse-svg {
	transform-box: fill-box;
	transform-origin: center;
	animation: lb-beat 1.6s ease-in-out infinite;
}

.lj-steps {
	display: flex;
	gap: 6px;
}

.lj-steps span {
	flex: 1 1 0;
	height: 4px;
	border-radius: 9999px;
	background: var(--c, var(--border));
}

/* Results */
.stats {
	padding: 96px 0;
	background: var(--primary);
	color: var(--primary-foreground);
}

.stats-grid {
	margin: 0 auto;
	gap: 32px;
}

.stat {
	display: flex;
	flex-direction: column-reverse;
	gap: 10px;
}

.stat dt {
	font-size: 16px;
	font-weight: 600;
	opacity: 0.85;
}

.stat dd {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.lb-bar {
	width: 48px;
	height: 6px;
	border-radius: 9999px;
	background: var(--c);
}

.lb-stat {
	font-size: 56px;
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.05em;
	font-variant-numeric: tabular-nums;
}

/* Testimonials */
.testi {
	margin: 0;
	display: flex;
	flex-direction: column;
	border-radius: 28px;
	background: var(--card);
	border: 1px solid var(--border);
	overflow: hidden;
}

.testi figcaption {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--border);
	font-size: 13px;
	color: var(--muted-foreground);
}

.testi figcaption .avatar {
	width: 44px;
	height: 44px;
	font-size: 15px;
	font-weight: 800;
}

.testi-who {
	display: flex;
	flex-direction: column;
}

.testi-who b {
	font-size: 15px;
	font-weight: 800;
	color: var(--foreground);
}

.testi-body {
	display: grid;
	padding: 24px 20px 28px;
	background: var(--background);
}

.lb-tq-typing,
.lb-tq {
	grid-area: 1 / 1;
	align-self: start;
	border-radius: 4px 20px 20px 20px;
	background: var(--card);
	border: 1px solid var(--border);
}

.lb-tq-typing {
	justify-self: start;
	padding: 14px 16px;
	opacity: 0;
}

.lb-tq {
	margin: 0;
	max-width: 92%;
	padding: 14px 18px;
	font-size: 20px;
	line-height: 30px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.lb-tq span {
	display: block;
	margin-top: 6px;
	text-align: right;
	font-size: 12px;
	font-weight: 500;
	color: var(--muted-foreground);
}
