/* Home page: Enterprise AI solutions (template-parts/home/enterprise.php). Scoped to .es-section. */

.es-section {
	position: relative;
	overflow: hidden;
	padding: 100px 0 110px;
	color: #0b1437;
	font-size: 16px;
	line-height: 1.6;
	background:
		radial-gradient(820px 420px at 100% 0%, rgba(43, 71, 242, .07), transparent 62%),
		radial-gradient(700px 400px at 0% 100%, rgba(124, 58, 237, .06), transparent 62%),
		#fff;
}
.es-section *, .es-section *::before, .es-section *::after { box-sizing: border-box; }
.es-section h2, .es-section h3, .es-section p, .es-section ul, .es-section ol { margin: 0; padding: 0; }
.es-section ul, .es-section ol { list-style: none; }
.es-section svg { display: block; flex: none; }
.es-section button { font-family: inherit; }

/* 1358px box + 24px gutters = 1310px of content, the same width as the other home sections */
.es-wrap { width: 100%; max-width: 1358px; margin: 0 auto; padding: 0 24px; }

/* Heading */
.es-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.es-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
	font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
	color: #2b47f2; background: rgba(43, 71, 242, .08);
}
.es-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.es-section .es-head h2 { margin-top: 18px; font-size: clamp(1.9rem, 3.3vw, 2.7rem); line-height: 1.14; letter-spacing: -.015em; color: #0b1437; }
.es-section .es-head p { margin-top: 14px; font-size: 18px; color: #5b6485; }

/* Team picker: each pill fills with its colour over 3 seconds, then the next team starts */
.es-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 28px; }
.es-section .es-tab {
	position: relative; overflow: hidden; display: inline-flex; margin: 0; padding: 0; border-radius: 999px; cursor: pointer;
	font-family: inherit; color: #0b1437; background: #fff; border: 1.5px solid #e3e8f8;
	transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.es-tab__base, .es-tab__over {
	display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px 11px 12px; font-size: 16px; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.es-tab__base { color: #0b1437; }
.es-tab__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
	color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, #fff);
}
.es-tab__icon svg { width: 17px; height: 17px; }
/* the coloured copy of the pill that is revealed from left to right */
.es-tab__over { position: absolute; inset: 0; color: #fff; background: var(--accent); clip-path: inset(0 100% 0 0); }
.es-tab__over .es-tab__icon { color: var(--accent); background: #fff; }
.es-section .es-tab:hover { border-color: color-mix(in srgb, var(--accent) 45%, #e3e8f8); transform: translateY(-2px); }
.es-section .es-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.es-section .es-tab.is-active { border-color: var(--accent); box-shadow: 0 14px 28px -14px var(--accent); }
.es-autoplay .es-tab.is-active .es-tab__over { animation: es-fill 3s linear forwards; }
.es-autoplay.es-paused .es-tab.is-active .es-tab__over { animation-play-state: paused; }
.es-section:not(.es-autoplay) .es-tab.is-active .es-tab__over { clip-path: inset(0); }
@keyframes es-fill { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Panel: one calm card, same structure every time */
.es-panels { width: 100%; }
.es-panel {
	display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: 36px; align-items: stretch;
	padding: 36px; border-radius: 32px; background: #fff; border: 1px solid #e3e8f8;
	box-shadow: 0 30px 70px -44px rgba(18, 36, 120, .5);
}
.es-panel + .es-panel { margin-top: 24px; }
.es-js .es-panel + .es-panel { margin-top: 0; }

.es-panel__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 8px 0 8px 8px; }
.es-tag {
	padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff);
}
.es-section .es-panel__copy h3 { margin-top: 16px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.18; letter-spacing: -.015em; color: #0b1437; }
.es-section .es-list { display: grid; gap: 12px; margin-top: 24px; }
.es-list li { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 1.4; color: #2a3358; }
.es-list li svg { width: 22px; height: 22px; padding: 5px; border-radius: 50%; color: #fff; background: var(--accent); stroke-width: 3; }
.es-section a.es-btn {
	display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 14px 26px; border-radius: 999px;
	font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; color: #fff; background: #2b47f2;
	box-shadow: 0 14px 28px -14px #2b47f2; transition: background .25s ease, transform .25s ease;
}
.es-section a.es-btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.es-section a.es-btn:hover, .es-section a.es-btn:focus { color: #fff; background: #1f37d1; transform: translateY(-2px); }
.es-section a.es-btn:hover svg { transform: translateX(4px); }

/* Visual: a realistic product screen (sample data) */
.es-panel__visual {
	display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 26px 16px; border-radius: 24px;
	background:
		radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 64%),
		linear-gradient(145deg, color-mix(in srgb, var(--accent) 7%, #fff), #fff);
	border: 1px solid color-mix(in srgb, var(--accent) 14%, #e3e8f8);
}
.es-app {
	position: relative; width: 100%; max-width: 680px; color: #0b1437; font-size: 12px; line-height: 1.4;
	background: #fff; border: 1px solid #dde3f5; border-radius: 16px; box-shadow: 0 34px 64px -30px rgba(18, 36, 120, .55);
}
.es-app__chrome { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px; background: #f1f4fc; border-bottom: 1px solid #e3e8f8; border-radius: 16px 16px 0 0; }
.es-app__dots { display: inline-flex; gap: 6px; }
.es-app__dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.es-app__dots i:nth-child(2) { background: #febc2e; }
.es-app__dots i:nth-child(3) { background: #28c840; }
.es-app__url { flex: 1; max-width: 300px; margin: 0 auto; padding: 3px 12px; border-radius: 999px; font-size: 11px; color: #7b84a8; background: #fff; border: 1px solid #e3e8f8; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-app__body { display: grid; grid-template-columns: 64px minmax(0, 1fr); min-height: 392px; }

.es-app__nav { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; background: #fafbff; border-right: 1px solid #e8ecf8; border-radius: 0 0 0 16px; }
.es-app__logo { width: 28px; height: 28px; margin-bottom: 8px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #fff)); }
.es-app__navitem { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding: 6px 2px; border-radius: 9px; color: #8a93b4; }
.es-app__navitem svg { width: 16px; height: 16px; }
.es-app__navitem em { font-style: normal; font-size: 9px; font-weight: 600; }
.es-app__navitem.is-on { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); }

.es-app__main { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 14px; }
.es-app__top { display: flex; align-items: center; gap: 10px; }
.es-app__top b { font-size: 14px; color: #0b1437; white-space: nowrap; }
.es-app__search { flex: 1; max-width: 170px; margin-left: auto; padding: 6px 10px; border-radius: 8px; font-size: 11.5px; color: #8a93b4; background: #f3f5fb; }
.es-app__btn { padding: 6px 11px; border-radius: 8px; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--accent); white-space: nowrap; }

.es-pill { display: inline-block; padding: 2px 7px; border-radius: 999px; font-style: normal; font-size: 9.5px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); white-space: nowrap; }
.es-ai { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; font-style: normal; font-size: 9.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); white-space: nowrap; }
.es-ai svg { width: 9px; height: 9px; }
.es-av { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border-radius: 50%; font-size: 9px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, #fff); }
.es-ai-lbl { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.es-ai-lbl svg { width: 11px; height: 11px; }

/* tones used by status chips */
.es-tone { display: inline-block; padding: 2px 8px; border-radius: 999px; font-style: normal; font-size: 10px; font-weight: 600; white-space: nowrap; background: #eef1f8; color: #5b6485; }
.es-tone--warn { background: #fff3e0; color: #b45309; }
.es-tone--good { background: #e3f6ec; color: #0b7a57; }
.es-tone--done { background: #e8eefe; color: #3a55c9; }

/* board (sales, hiring) */
.es-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.es-col { display: grid; align-content: start; gap: 8px; padding: 8px; border-radius: 12px; background: #f5f7fc; }
.es-col__head { display: flex; align-items: center; gap: 6px; padding: 0 2px; }
.es-col__head b { font-size: 11.5px; color: #0b1437; }
.es-col__head span { padding: 0 6px; border-radius: 999px; font-size: 10px; font-weight: 700; color: #5b6485; background: #e3e8f8; }
.es-col__head em { margin-left: auto; font-style: normal; font-size: 10px; color: #7b84a8; }
.es-card { display: grid; gap: 3px; padding: 9px; border-radius: 10px; background: #fff; border: 1px solid #e6eaf6; box-shadow: 0 6px 14px -12px rgba(18, 36, 120, .4); }
.es-card__t { overflow: hidden; font-size: 11.5px; color: #0b1437; text-overflow: ellipsis; white-space: nowrap; }
.es-card__s { overflow: hidden; font-size: 10.5px; color: #7b84a8; text-overflow: ellipsis; white-space: nowrap; }
.es-card__v { font-size: 12.5px; color: #0b1437; }
.es-card__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 3px; }
.es-card__row .es-av { margin-left: auto; }

/* inbox (support) */
.es-inbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; }
.es-section .es-tix { display: grid; align-content: start; gap: 4px; }
.es-tix li { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; border: 1px solid transparent; }
.es-tix li.is-on { background: color-mix(in srgb, var(--accent) 8%, #fff); border-color: color-mix(in srgb, var(--accent) 25%, #fff); }
.es-tix__txt { display: grid; flex: 1; min-width: 0; }
.es-tix__txt b { overflow: hidden; font-size: 11.5px; color: #0b1437; text-overflow: ellipsis; white-space: nowrap; }
.es-tix__txt i { overflow: hidden; font-style: normal; font-size: 10.5px; color: #7b84a8; text-overflow: ellipsis; white-space: nowrap; }
.es-thread { display: grid; align-content: start; gap: 8px; padding: 10px; border-radius: 12px; background: #fafbff; border: 1px solid #e8ecf8; }
.es-thread__head { display: flex; align-items: center; gap: 8px; }
.es-thread__head b { font-size: 12px; color: #0b1437; }
.es-section .es-msg { margin: 0; padding: 8px 10px; border-radius: 10px; font-size: 11px; line-height: 1.5; color: #3d4670; }
.es-msg--in { background: #fff; border: 1px solid #e6eaf6; }
.es-msg--ai { display: grid; gap: 6px; background: color-mix(in srgb, var(--accent) 7%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 25%, #fff); }
.es-msg--ai p { margin: 0; }
.es-msg__actions { display: flex; justify-content: flex-end; gap: 6px; }
.es-msg__actions i { padding: 4px 11px; border-radius: 7px; font-style: normal; font-size: 10.5px; font-weight: 700; color: #5b6485; background: #fff; border: 1px solid #dde3f5; }
.es-msg__actions i.is-primary { color: #fff; background: var(--accent); border-color: var(--accent); }

/* table (finance, operations) */
.es-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.es-stats div { display: grid; gap: 2px; padding: 9px 11px; border-radius: 12px; background: #f5f7fc; }
.es-stats span { font-size: 10.5px; color: #7b84a8; }
.es-stats b { font-size: 17px; color: #0b1437; }
.es-table { overflow: hidden; border-radius: 12px; border: 1px solid #e6eaf6; }
.es-tr { display: grid; grid-template-columns: 1.3fr 1.3fr .9fr 1fr; align-items: center; gap: 8px; padding: 9px 11px; border-top: 1px solid #eef1f9; font-size: 11px; color: #3d4670; }
.es-tr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-tr--head { border-top: 0; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7b84a8; background: #f5f7fc; }
.es-tr__main { font-weight: 700; color: #0b1437; }

/* dashboard (marketing) */
.es-dash { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; }
.es-dash__chart { display: grid; align-content: start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #f5f7fc; color: var(--accent); }
.es-dash__lbl { font-size: 11px; font-weight: 700; color: #0b1437; }
.es-dash__chart svg { width: 100%; height: 150px; }
.es-dash__side { display: grid; align-content: start; gap: 8px; }
.es-section .es-seg { display: grid; gap: 6px; }
.es-seg li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 9px; border-radius: 10px; background: #f5f7fc; }
.es-seg b { font-size: 11px; color: #0b1437; }
.es-draft { display: grid; gap: 6px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 7%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff); }
.es-section .es-draft ol { display: grid; gap: 4px; margin: 0; padding-left: 16px; list-style: decimal; font-size: 10.5px; color: #3d4670; }

/* let grid children shrink instead of stretching the layout */
.es-panel > *, .es-app__main > *, .es-inbox > *, .es-dash > *, .es-board > *, .es-dash__side > * { min-width: 0; }

/* floating AI note and sample-data caption */
.es-app__chip {
	position: absolute; left: -14px; bottom: -16px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 11px; border-radius: 999px;
	font-size: 12px; font-weight: 600; color: #0b1437; background: #fff; border: 1px solid #e3e8f8; box-shadow: 0 16px 34px -14px rgba(10, 20, 80, .5);
}
.es-app__chip svg { width: 14px; height: 14px; color: var(--accent); }
.es-app__note { margin: 22px 0 0; font-size: 12px; color: #7b84a8; text-align: center; }

/* Gentle entrance, only when the panel appears (no looping motion) */
.es-js .es-panel[hidden] { display: none; }
.es-js .es-panels.is-in .es-panel.is-active { animation: es-fade .45s ease both; }
@keyframes es-fade { from { opacity: 0; } to { opacity: 1; } }

.es-js .es-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.es-js .es-reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
	.es-panel { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px; }
	.es-panel__copy { padding: 0; }
}
@media (max-width: 640px) {
	.es-section { padding: 76px 0 84px; }
	.es-wrap { padding: 0 18px; }
	.es-tabs { gap: 8px; }
	.es-tab__base, .es-tab__over { padding: 9px 16px 9px 9px; font-size: 14.5px; }
	.es-tab__icon { width: 28px; height: 28px; }
	.es-panel { padding: 22px 20px; border-radius: 26px; }
	.es-panel__visual { padding: 22px 12px 14px; }
	.es-app__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.es-app__nav, .es-app__search { display: none; }
	.es-app__main { padding: 12px; }
	.es-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.es-col:nth-child(n+3) { display: none; }
	.es-inbox { grid-template-columns: minmax(0, 1fr); }
	.es-tix li:nth-child(n+3) { display: none; }
	.es-dash { grid-template-columns: minmax(0, 1fr); }
	.es-tr { grid-template-columns: 1.4fr .9fr 1fr; }
	.es-tr span:nth-child(2) { display: none; }
	.es-app__chip { left: 8px; bottom: -18px; font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
	.es-js .es-panels.is-in .es-panel.is-active { animation: none; }
	.es-js .es-reveal { opacity: 1; transform: none; transition: none; }
	.es-section * { transition-duration: .01ms !important; }
}
