/* =========================================================================
   Afritech Global Theme: design system.
   Phase 3: the complete token set, component library, header/footer and
   animation system that Phases 4 to 7 compose their pages from.
   Phase 4 adds the homepage compositions (section 22), Phase 5 the service
   pages (23), Phase 6 the Work page (24), Phase 7 About/Contact/Insights
   (25), Phase 8 booking and forms (26), Phase 9 the AI assistant (27).

   Contents
   1.  Tokens                8.  Cards and grids       15. Forms
   2.  Reset and base        9.  Stats                 16. Tables
   3.  Typography           10.  Feature split         17. Media frames
   4.  Icons                11.  Process steps         18. CTA band, funnel ends
   5.  Buttons, badges      12.  Testimonials          19. Prose, insights, 404
   6.  Topbar and header    13.  Logo wall, marquee    20. Footer, WhatsApp float
   7.  Hero and sections    14.  Pricing, FAQ, tabs    21. Animations, utilities
                                                       22. Homepage compositions
                                                       23. Service compositions
                                                       24. Work compositions
                                                       25. About/Contact/Insights
                                                       26. Booking and forms
                                                       27. AI assistant widget
   ====================================================================== */

/* ---- 1. Tokens (blueprint section 3) ------------------------------------ */

:root {
	--ag-blue: #1743B0;
	--ag-blue-deep: #0E2A73;
	--ag-blue-bright: #3B6BE8;
	--ag-navy: #0A1633;
	--ag-gold: #FFC907;
	--ag-sky: #EAF0FB;
	--ag-bg: #FFFFFF;
	--ag-surface: #F7F9FD;
	--ag-line: #E3E8F2;
	--ag-ink: #0A1633;
	--ag-muted: #4A5670;
	--ag-green: #16A34A;
	--ag-red: #DC2626;
	--ag-grad-hero: linear-gradient(135deg, var(--ag-blue), var(--ag-blue-bright));
	--ag-grad-text: linear-gradient(110deg, var(--ag-blue) 10%, var(--ag-blue-bright) 55%, var(--ag-blue) 100%);

	--ag-font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
	--ag-font-text: "Inter", ui-sans-serif, system-ui, sans-serif;

	--ag-container: 1200px;
	--ag-radius-sm: 10px;
	--ag-radius: 16px;
	--ag-radius-lg: 24px;
	--ag-shadow-sm: 0 1px 2px rgba(10, 22, 51, .06), 0 4px 12px -6px rgba(10, 22, 51, .10);
	--ag-shadow: 0 2px 4px rgba(10, 22, 51, .06), 0 16px 40px -20px rgba(10, 22, 51, .25);
	--ag-shadow-lg: 0 4px 8px rgba(10, 22, 51, .05), 0 32px 72px -32px rgba(10, 22, 51, .35);
	--ag-ease: cubic-bezier(.22, .61, .21, 1);
}

/* ---- 2. Reset and base --------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ag-bg);
	color: var(--ag-ink);
	font-family: var(--ag-font-text);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--ag-blue); text-decoration: none; }
a:hover { color: var(--ag-blue-deep); }

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--ag-blue-bright);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Anchored sections land clear of the sticky header. */
[id] { scroll-margin-top: 96px; }

.ag-container {
	width: 100%;
	max-width: var(--ag-container);
	margin: 0 auto;
	padding: 0 24px;
}

.ag-container-narrow { max-width: 800px; }
.ag-container-wide { max-width: 1360px; }

.ag-section { padding: 84px 0; }
.ag-section-sm { padding: 56px 0; }

/* Section surface variants. */
.ag-section-tint { background: var(--ag-surface); }
.ag-section-sky { background: var(--ag-sky); }

.ag-section-dark {
	background:
		radial-gradient(70% 120% at 85% -20%, rgba(59, 107, 232, .28), transparent 60%),
		radial-gradient(50% 90% at 5% 110%, rgba(23, 67, 176, .35), transparent 55%),
		var(--ag-navy);
	color: rgba(255, 255, 255, .82);
}

.ag-section-dark .ag-h1, .ag-section-dark .ag-h2, .ag-section-dark .ag-h3 { color: #fff; }
.ag-section-dark .ag-sub { color: rgba(255, 255, 255, .78); }
.ag-section-dark .ag-kicker { background: rgba(255, 255, 255, .1); color: var(--ag-gold); }

@media (max-width: 679px) {
	.ag-section { padding: 64px 0; }
	.ag-section-sm { padding: 44px 0; }
}

/* ---- 3. Typography ------------------------------------------------------- */

.ag-h1, .ag-h2, .ag-h3 {
	font-family: var(--ag-font-display);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.02em;
	margin: 0 0 16px;
	color: var(--ag-ink);
}

.ag-h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.ag-h1-xl { font-size: clamp(2.4rem, 5.6vw, 4.1rem); letter-spacing: -.025em; }
.ag-h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.ag-h3 { font-size: 1.25rem; }

/* Gradient highlight inside a heading: <span class="ag-grad-text">. */
.ag-grad-text {
	background: var(--ag-grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Gold underline stroke inside a heading on dark bands. */
.ag-gold-text { color: var(--ag-gold); }

.ag-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--ag-sky);
	color: var(--ag-blue);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.ag-sub {
	margin: 0 0 24px;
	color: var(--ag-muted);
	font-size: 1.12rem;
	max-width: 680px;
}

.ag-note { color: var(--ag-muted); font-size: .92rem; margin: 0 0 20px; }

/* Standard section header: kicker + title + sub, optionally centered. */
.ag-section-head { max-width: 780px; margin-bottom: 40px; }
.ag-section-head .ag-sub { margin-bottom: 0; }

.ag-section-head-center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.ag-section-head-center .ag-sub { margin-left: auto; margin-right: auto; }

/* Split header: title left, action right. */
.ag-section-head-split {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	max-width: none;
}

.ag-section-head-split > div { max-width: 680px; }

@media (max-width: 679px) {
	.ag-section-head-split { flex-direction: column; align-items: flex-start; }
}

/* ---- 4. Icons ------------------------------------------------------------ */

.ag-icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; vertical-align: -.22em; }

.ag-icon-badge {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--ag-sky);
	color: var(--ag-blue);
}

.ag-icon-badge .ag-icon { width: 24px; height: 24px; }

.ag-icon-badge-lg { width: 68px; height: 68px; border-radius: 20px; }
.ag-icon-badge-lg .ag-icon { width: 32px; height: 32px; }

.ag-icon-badge-gold { background: rgba(255, 201, 7, .18); color: #B8900A; }
.ag-icon-badge-navy { background: var(--ag-navy); color: var(--ag-gold); }
.ag-icon-badge-grad { background: var(--ag-grad-hero); color: #fff; }

.ag-section-dark .ag-icon-badge { background: rgba(255, 255, 255, .1); color: var(--ag-gold); }

/* ---- 5. Buttons, badges, chips, alerts ----------------------------------- */

.ag-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 999px;
	font-family: var(--ag-font-text);
	font-size: .98rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: transform .18s var(--ag-ease), box-shadow .18s var(--ag-ease), background .18s var(--ag-ease), color .18s var(--ag-ease), border-color .18s var(--ag-ease);
}

.ag-btn:hover { transform: translateY(-2px); }

.ag-btn-primary {
	background: var(--ag-grad-hero);
	color: #fff;
	box-shadow: 0 10px 24px -12px rgba(23, 67, 176, .55);
}

.ag-btn-primary:hover { color: #fff; box-shadow: 0 14px 30px -12px rgba(23, 67, 176, .6); }

.ag-btn-gold {
	background: var(--ag-gold);
	color: var(--ag-navy);
	box-shadow: 0 10px 24px -12px rgba(255, 201, 7, .6);
}

.ag-btn-gold:hover { color: var(--ag-navy); }

.ag-btn-ghost {
	background: transparent;
	border-color: var(--ag-line);
	color: var(--ag-ink);
}

.ag-btn-ghost:hover { border-color: var(--ag-blue); color: var(--ag-blue); }

.ag-btn-ghost-light {
	background: transparent;
	border-color: rgba(255, 255, 255, .35);
	color: #fff;
}

.ag-btn-ghost-light:hover { border-color: #fff; color: #fff; }

.ag-btn-white { background: #fff; color: var(--ag-blue); box-shadow: 0 10px 24px -14px rgba(10, 22, 51, .5); }
.ag-btn-white:hover { color: var(--ag-blue-deep); }

.ag-btn-sm { padding: 10px 20px; font-size: .9rem; }
.ag-btn-lg { padding: 16px 32px; font-size: 1.05rem; }

.ag-btn[disabled], .ag-btn.is-loading { opacity: .65; pointer-events: none; }

/* Text link with arrow. */
.ag-link-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ag-blue);
	font-weight: 600;
	font-size: .97rem;
}

.ag-link-more .ag-icon { transition: transform .18s var(--ag-ease); }
.ag-link-more:hover .ag-icon { transform: translateX(3px); }

/* Badges and chips. */
.ag-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 600;
	background: var(--ag-sky);
	color: var(--ag-blue);
}

.ag-badge-gold { background: rgba(255, 201, 7, .2); color: #8A6D00; }
.ag-badge-green { background: rgba(22, 163, 74, .12); color: var(--ag-green); }
.ag-badge-navy { background: var(--ag-navy); color: var(--ag-gold); }
.ag-badge-outline { background: transparent; border: 1px solid var(--ag-line); color: var(--ag-muted); }

.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.ag-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid var(--ag-line);
	background: #fff;
	color: var(--ag-muted);
	font-size: .88rem;
	font-weight: 500;
}

.ag-chip .ag-icon { color: var(--ag-blue); }

.ag-section-dark .ag-chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .85); }

/* Inline alerts (form feedback and notices). */
.ag-alert {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 14px 18px;
	border-radius: var(--ag-radius-sm);
	font-size: .95rem;
	border: 1px solid var(--ag-line);
	background: var(--ag-surface);
	color: var(--ag-ink);
}

.ag-alert .ag-icon { margin-top: 3px; }
.ag-alert-info { background: var(--ag-sky); border-color: rgba(23, 67, 176, .25); color: var(--ag-blue-deep); }
.ag-alert-success { background: rgba(22, 163, 74, .08); border-color: rgba(22, 163, 74, .3); color: #14532D; }
.ag-alert-error { background: rgba(220, 38, 38, .07); border-color: rgba(220, 38, 38, .3); color: #7F1D1D; }

/* ---- 6. Topbar and header ------------------------------------------------ */

.ag-topbar {
	background: var(--ag-navy);
	color: rgba(255, 255, 255, .92);
	font-size: .86rem;
}

.ag-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	flex-wrap: wrap;
	padding-top: 8px;
	padding-bottom: 8px;
}

.ag-topbar-text { display: inline-flex; align-items: center; gap: 8px; }
.ag-topbar-text .ag-icon { color: var(--ag-gold); }

.ag-topbar-link { color: var(--ag-gold); font-weight: 600; }
.ag-topbar-link:hover { color: #fff; }

.ag-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .88);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s var(--ag-ease), box-shadow .2s var(--ag-ease);
}

.ag-header.is-stuck {
	border-bottom-color: var(--ag-line);
	box-shadow: 0 6px 24px -18px rgba(10, 22, 51, .3);
}

.ag-header-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.ag-logo { display: inline-flex; align-items: center; gap: 12px; }

.ag-logo-img { height: 44px; width: auto; }

.ag-logo-text { display: flex; flex-direction: column; line-height: 1.15; }

.ag-logo-name {
	font-family: var(--ag-font-display);
	font-weight: 700;
	font-size: 1.06rem;
	color: var(--ag-ink);
	letter-spacing: -.01em;
}

.ag-logo-tagline { font-size: .72rem; color: var(--ag-muted); letter-spacing: .02em; }

.ag-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }

.ag-nav-list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ag-nav-list a {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--ag-ink);
	font-weight: 500;
	font-size: .97rem;
	transition: background .15s var(--ag-ease), color .15s var(--ag-ease);
}

.ag-nav-list a:hover { background: var(--ag-sky); color: var(--ag-blue); }
.ag-nav-list a.ag-current,
.ag-nav-list .current-menu-item > a,
.ag-nav-list .current-menu-ancestor > a { color: var(--ag-blue); font-weight: 600; }

/* Dropdown submenus (WP menus, depth 2). */
.ag-nav-list li { position: relative; }

.ag-nav-list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px;
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 240px;
	background: #fff;
	border: 1px solid var(--ag-line);
	border-radius: var(--ag-radius-sm);
	box-shadow: var(--ag-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s var(--ag-ease), transform .18s var(--ag-ease), visibility .18s;
	z-index: 110;
}

.ag-nav-list li:hover > .sub-menu,
.ag-nav-list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.ag-nav-list .sub-menu a {
	display: block;
	padding: 9px 14px;
	border-radius: 8px;
	font-size: .93rem;
}

.ag-nav-list .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	margin-left: 7px;
	width: 7px;
	height: 7px;
	border-right: 1.7px solid currentColor;
	border-bottom: 1.7px solid currentColor;
	transform: rotate(45deg) translateY(-3px);
}

.ag-nav-cta { display: flex; align-items: center; gap: 10px; }
.ag-nav-cta .ag-btn { padding: 11px 22px; font-size: .92rem; }

.ag-nav-toggle {
	display: none;
	margin-left: auto;
	width: 44px;
	height: 44px;
	border: 1px solid var(--ag-line);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.ag-nav-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: var(--ag-ink);
	transition: transform .2s var(--ag-ease), opacity .2s var(--ag-ease);
}

.ag-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ag-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ag-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
	.ag-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		background: #fff;
		border-bottom: 1px solid var(--ag-line);
		box-shadow: 0 24px 40px -24px rgba(10, 22, 51, .3);
		padding: 16px 24px 22px;
		max-height: calc(100vh - 80px);
		overflow-y: auto;
	}

	.ag-nav.is-open { display: flex; }

	.ag-nav-list { flex-direction: column; align-items: stretch; }
	.ag-nav-list a { display: block; padding: 12px 14px; }
	.ag-nav-cta { flex-direction: column; align-items: stretch; }
	.ag-nav-cta .ag-btn { justify-content: center; }
	.ag-nav-toggle { display: flex; }

	/* Submenus render inline, indented, always visible. */
	.ag-nav-list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		border-left: 2px solid var(--ag-line);
		border-radius: 0;
		margin: 0 0 4px 16px;
		padding: 0 0 0 6px;
		min-width: 0;
	}

	.ag-nav-list .menu-item-has-children > a::after { display: none; }
}

/* ---- 7. Hero and ornaments ---------------------------------------------- */

.ag-hero {
	position: relative;
	padding: 96px 0 84px;
	background:
		radial-gradient(60% 90% at 85% -10%, rgba(59, 107, 232, .14), transparent 60%),
		radial-gradient(50% 80% at 10% 0%, rgba(255, 201, 7, .10), transparent 55%),
		var(--ag-surface);
	overflow: hidden;
}

.ag-hero-slim { padding: 68px 0 56px; }

.ag-hero-inner { position: relative; }

.ag-hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Two-column hero: copy left, visual right. */
.ag-hero-cols {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	gap: 48px;
	align-items: center;
}

@media (max-width: 1023px) { .ag-hero-cols { grid-template-columns: minmax(0, 1fr); } }

/* Trust strip under hero actions: avatars + rating + micro copy. */
.ag-hero-trust {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 26px;
	color: var(--ag-muted);
	font-size: .92rem;
}

/* Dark hero (navy) variant. */
.ag-hero-dark {
	background:
		radial-gradient(70% 120% at 80% -20%, rgba(59, 107, 232, .32), transparent 60%),
		radial-gradient(40% 70% at 8% 8%, rgba(255, 201, 7, .12), transparent 55%),
		var(--ag-navy);
	color: rgba(255, 255, 255, .85);
}

.ag-hero-dark .ag-h1, .ag-hero-dark .ag-h2 { color: #fff; }
.ag-hero-dark .ag-sub { color: rgba(255, 255, 255, .78); }
.ag-hero-dark .ag-kicker { background: rgba(255, 255, 255, .1); color: var(--ag-gold); }
.ag-hero-dark .ag-hero-trust { color: rgba(255, 255, 255, .7); }

/* Floating ornament dots/shapes (decorative only). */
.ag-orb {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	filter: blur(2px);
	opacity: .55;
	animation: ag-float 7s ease-in-out infinite;
}

.ag-orb-blue { background: radial-gradient(circle at 30% 30%, var(--ag-blue-bright), var(--ag-blue)); }
.ag-orb-gold { background: radial-gradient(circle at 30% 30%, #FFE070, var(--ag-gold)); animation-delay: -3.5s; }

@keyframes ag-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-16px); }
}

/* ---- 8. Cards and grids -------------------------------------------------- */

.ag-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.ag-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.ag-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

@media (max-width: 1023px) {
	.ag-grid-3, .ag-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 679px) {
	.ag-grid-2, .ag-grid-3, .ag-grid-4 { grid-template-columns: minmax(0, 1fr); }
}

.ag-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--ag-line);
	border-radius: var(--ag-radius);
	box-shadow: var(--ag-shadow-sm);
	transition: transform .2s var(--ag-ease), box-shadow .2s var(--ag-ease), border-color .2s var(--ag-ease);
}

a.ag-card { color: inherit; }

a.ag-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ag-shadow);
	border-color: rgba(23, 67, 176, .35);
}

.ag-card-center { align-items: center; text-align: center; }

.ag-card-title {
	font-family: var(--ag-font-display);
	font-weight: 600;
	font-size: 1.12rem;
	color: var(--ag-ink);
	letter-spacing: -.01em;
}

.ag-card-text { color: var(--ag-muted); font-size: .97rem; }

.ag-card-more {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ag-blue);
	font-weight: 600;
	font-size: .93rem;
}

a.ag-card:hover .ag-card-more .ag-icon { transform: translateX(3px); }
.ag-card-more .ag-icon { transition: transform .18s var(--ag-ease); }

/* Highlighted card: gradient top border. */
.ag-card-featured {
	border-color: rgba(23, 67, 176, .4);
	box-shadow: var(--ag-shadow);
	position: relative;
	overflow: hidden;
}

.ag-card-featured::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--ag-grad-hero);
}

/* Dark card for navy bands. */
.ag-section-dark .ag-card {
	background: rgba(255, 255, 255, .05);
	border-color: rgba(255, 255, 255, .12);
	box-shadow: none;
}

.ag-section-dark .ag-card-title { color: #fff; }
.ag-section-dark .ag-card-text { color: rgba(255, 255, 255, .72); }

/* ---- 9. Stats ------------------------------------------------------------ */

.ag-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	text-align: center;
}

.ag-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1023px) { .ag-stats, .ag-stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .ag-stats, .ag-stats-3 { grid-template-columns: minmax(0, 1fr); } }

.ag-stat { display: flex; flex-direction: column; gap: 4px; }

.ag-stat-value {
	font-family: var(--ag-font-display);
	font-weight: 800;
	font-size: clamp(1.9rem, 3.6vw, 2.7rem);
	letter-spacing: -.02em;
	color: var(--ag-ink);
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
}

.ag-stat-value .ag-stat-suffix { color: var(--ag-blue); }

.ag-stat-label { color: var(--ag-muted); font-size: .95rem; font-weight: 500; }

.ag-section-dark .ag-stat-value { color: #fff; }
.ag-section-dark .ag-stat-value .ag-stat-suffix { color: var(--ag-gold); }
.ag-section-dark .ag-stat-label { color: rgba(255, 255, 255, .7); }

/* ---- 10. Feature split (media + copy, alternating) ----------------------- */

.ag-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 56px;
	align-items: center;
}

.ag-split + .ag-split { margin-top: 84px; }

.ag-split-reverse .ag-split-media { order: 2; }

@media (max-width: 1023px) {
	.ag-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.ag-split-reverse .ag-split-media { order: 0; }
	.ag-split + .ag-split { margin-top: 56px; }
}

.ag-split-media { position: relative; }

.ag-split-media img {
	width: 100%;
	border-radius: var(--ag-radius-lg);
	box-shadow: var(--ag-shadow-lg);
}

/* Checklist inside split copy. */
.ag-checklist { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.ag-checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ag-ink); }

.ag-checklist .ag-icon { color: var(--ag-green); margin-top: 4px; width: 1.3em; height: 1.3em; }

.ag-checklist strong { font-weight: 600; }
.ag-checklist span { display: block; color: var(--ag-muted); font-size: .95rem; }

.ag-section-dark .ag-checklist li { color: rgba(255, 255, 255, .88); }
.ag-section-dark .ag-checklist .ag-icon { color: var(--ag-gold); }
.ag-section-dark .ag-checklist span { color: rgba(255, 255, 255, .65); }

/* ---- 11. Process steps --------------------------------------------------- */

.ag-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	counter-reset: ag-step;
}

.ag-steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1023px) { .ag-steps, .ag-steps-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 679px) { .ag-steps, .ag-steps-3 { grid-template-columns: minmax(0, 1fr); } }

.ag-step {
	position: relative;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--ag-line);
	border-radius: var(--ag-radius);
	box-shadow: var(--ag-shadow-sm);
	counter-increment: ag-step;
}

.ag-step-num {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: var(--ag-grad-hero);
	color: #fff;
	font-family: var(--ag-font-display);
	font-weight: 700;
	font-size: 1.05rem;
}

.ag-step-num::before { content: counter(ag-step, decimal-leading-zero); }

.ag-step-title {
	font-family: var(--ag-font-display);
	font-weight: 600;
	font-size: 1.08rem;
	margin: 0 0 6px;
	color: var(--ag-ink);
}

.ag-step-text { color: var(--ag-muted); font-size: .95rem; margin: 0; }

/* Vertical timeline variant. */
.ag-timeline { position: relative; padding-left: 34px; counter-reset: ag-step; }

.ag-timeline::before {
	content: "";
	position: absolute;
	left: 10px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: linear-gradient(var(--ag-blue-bright), rgba(23, 67, 176, .1));
	border-radius: 2px;
}

.ag-timeline-item { position: relative; padding-bottom: 28px; }
.ag-timeline-item:last-child { padding-bottom: 0; }

.ag-timeline-item::before {
	content: "";
	position: absolute;
	left: -30px;
	top: 7px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--ag-blue-bright);
	box-shadow: 0 0 0 4px var(--ag-sky);
}

/* ---- 12. Testimonials ---------------------------------------------------- */

.ag-quote-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 30px;
	background: #fff;
	border: 1px solid var(--ag-line);
	border-radius: var(--ag-radius);
	box-shadow: var(--ag-shadow-sm);
}

.ag-quote-text { margin: 0; color: var(--ag-ink); font-size: 1.02rem; line-height: 1.7; }
.ag-quote-text::before { content: "\201C"; color: var(--ag-blue-bright); font-family: var(--ag-font-display); font-weight: 700; }
.ag-quote-text::after { content: "\201D"; color: var(--ag-blue-bright); font-family: var(--ag-font-display); font-weight: 700; }

.ag-quote-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }

.ag-quote-name { font-weight: 600; color: var(--ag-ink); font-size: .97rem; display: block; line-height: 1.3; }
.ag-quote-role { color: var(--ag-muted); font-size: .86rem; }

/* Star rating. */
.ag-stars { display: inline-flex; gap: 2px; color: var(--ag-gold); }
.ag-stars .ag-icon { width: 1em; height: 1em; fill: currentColor; stroke: none; }

/* Avatars. */
.ag-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.ag-avatar-sm { width: 38px; height: 38px; }
.ag-avatar-lg { width: 64px; height: 64px; }

.ag-avatar-fallback {
	display: inline-grid;
	place-items: center;
	background: var(--ag-sky);
	color: var(--ag-blue);
	font-weight: 600;
	font-size: .9rem;
}

.ag-avatar-stack { display: flex; }
.ag-avatar-stack .ag-avatar { border: 2px solid #fff; margin-left: -10px; }
.ag-avatar-stack .ag-avatar:first-child { margin-left: 0; }

/* ---- 13. Logo wall and marquee ------------------------------------------- */

.ag-logo-wall {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 18px 44px;
}

.ag-logo-wall img,
.ag-logo-item {
	height: 34px;
	width: auto;
	opacity: .6;
	filter: grayscale(1);
	transition: opacity .2s var(--ag-ease), filter .2s var(--ag-ease);
}

.ag-logo-wall img:hover, .ag-logo-item:hover { opacity: 1; filter: none; }

/* Marquee: [data-ag-marquee] wraps one .ag-marquee-track; JS clones the
   track for a seamless loop. Falls back to a static wrapped row. */
.ag-marquee {
	display: flex;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ag-marquee-track {
	display: flex;
	align-items: center;
	gap: 56px;
	padding-right: 56px;
	flex: 0 0 auto;
	min-width: 100%;
	justify-content: space-around;
}

.ag-marquee.is-animated .ag-marquee-track { animation: ag-marquee 32s linear infinite; justify-content: flex-start; }
.ag-marquee:hover .ag-marquee-track { animation-play-state: paused; }

@keyframes ag-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-100%); }
}

/* ---- 14. Pricing, FAQ accordion, tabs ------------------------------------ */

.ag-price-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 32px;
	background: #fff;
	border: 1px solid var(--ag-line);
	border-radius: var(--ag-radius-lg);
	box-shadow: var(--ag-shadow-sm);
	position: relative;
}

.ag-price-card-featured {
	border-color: rgba(23, 67, 176, .45);
	box-shadow: var(--ag-shadow-lg);
}

.ag-price-flag {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	background: var(--ag-gold);
	color: var(--ag-navy);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 999px;
	box-shadow: 0 6px 16px -8px rgba(255, 201, 7, .8);
}

.ag-price-amount {
	font-family: var(--ag-font-display);
	font-weight: 800;
	font-size: 2.3rem;
	letter-spacing: -.02em;
	color: var(--ag-ink);
	line-height: 1;
}

.ag-price-prefix { display: block; font-size: .88rem; font-weight: 500; color: var(--ag-muted); margin-bottom: 6px; }
.ag-price-period { font-size: 1rem; font-weight: 500; color: var(--ag-muted); letter-spacing: 0; }

.ag-price-card .ag-checklist { margin-bottom: 8px; }
.ag-price-card .ag-btn { justify-content: center; }

/* FAQ accordion: <div data-ag-accordion><details class="ag-acc-item">... */
.ag-accordion { display: flex; flex-direction: column; gap: 12px; }

.ag-acc-item {
	background: #fff;
	border: 1px solid var(--ag-line);
	border-radius: var(--ag-radius-sm);
	overflow: hidden;
	transition: border-color .2s var(--ag-ease), box-shadow .2s var(--ag-ease);
}

.ag-acc-item[open] { border-color: rgba(23, 67, 176, .35); box-shadow: var(--ag-shadow-sm); }

.ag-acc-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	font-family: var(--ag-font-display);
	font-size: 1.02rem;
	color: var(--ag-ink);
}

.ag-acc-item summary::-webkit-details-marker { display: none; }

.ag-acc-item summary::after {
	content: "";
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--ag-blue);
	border-bottom: 2px solid var(--ag-blue);
	transform: rotate(45deg);
	transition: transform .2s var(--ag-ease);
	margin-top: -4px;
}

.ag-acc-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }

.ag-acc-body { padding: 0 22px 20px; color: var(--ag-muted); }
.ag-acc-body p { margin: 0 0 .8em; }
.ag-acc-body p:last-child { margin-bottom: 0; }

/* Tabs: [data-ag-tabs] > .ag-tab-list buttons + .ag-tab-panel siblings. */
.ag-tab-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 26px;
}

.ag-tab-btn {
	padding: 10px 20px;
	border-radius: 999px;
	border: 1px solid var(--ag-line);
	background: #fff;
	color: var(--ag-muted);
	font-family: var(--ag-font-text);
	font-size: .93rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s var(--ag-ease), color .15s var(--ag-ease), border-color .15s var(--ag-ease);
}

.ag-tab-btn:hover { border-color: var(--ag-blue); color: var(--ag-blue); }

.ag-tab-btn[aria-selected="true"] {
	background: var(--ag-blue);
	border-color: var(--ag-blue);
	color: #fff;
}

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

/* ---- 15. Forms ------------------------------------------------------------ */

.ag-form { display: flex; flex-direction: column; gap: 18px; }

.ag-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

@media (max-width: 679px) { .ag-form-row { grid-template-columns: minmax(0, 1fr); } }

.ag-field { display: flex; flex-direction: column; gap: 7px; }

.ag-field label {
	font-weight: 600;
	font-size: .92rem;
	color: var(--ag-ink);
}

.ag-field .ag-req { color: var(--ag-red); }

.ag-input, .ag-select, .ag-textarea {
	width: 100%;
	padding: 13px 16px;
	border: 1.5px solid var(--ag-line);
	border-radius: var(--ag-radius-sm);
	background: #fff;
	color: var(--ag-ink);
	font-family: var(--ag-font-text);
	font-size: .98rem;
	line-height: 1.4;
	transition: border-color .15s var(--ag-ease), box-shadow .15s var(--ag-ease);
	appearance: none;
}

.ag-textarea { min-height: 130px; resize: vertical; }

.ag-input::placeholder, .ag-textarea::placeholder { color: #9AA3B8; }

.ag-input:focus, .ag-select:focus, .ag-textarea:focus {
	outline: none;
	border-color: var(--ag-blue-bright);
	box-shadow: 0 0 0 4px rgba(59, 107, 232, .14);
}

.ag-input[aria-invalid="true"], .ag-textarea[aria-invalid="true"] {
	border-color: var(--ag-red);
}

.ag-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='m1 1.5 5 5 5-5' stroke='%234A5670' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 42px;
}

.ag-field-hint { color: var(--ag-muted); font-size: .85rem; }

.ag-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: .93rem;
	color: var(--ag-muted);
	font-weight: 400;
}

.ag-check input {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	accent-color: var(--ag-blue);
	flex: 0 0 auto;
}

/* Honeypot field: visually hidden, still in the DOM for bots. */
.ag-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Forms sitting on dark bands. */
.ag-section-dark .ag-field label { color: #fff; }
.ag-section-dark .ag-field-hint, .ag-section-dark .ag-check { color: rgba(255, 255, 255, .65); }

/* Form panel: the framed white box a form usually sits in. */
.ag-panel {
	background: #fff;
	border: 1px solid var(--ag-line);
	border-radius: var(--ag-radius-lg);
	box-shadow: var(--ag-shadow);
	padding: 36px;
}

@media (max-width: 679px) { .ag-panel { padding: 24px; } }

/* ---- 16. Tables ----------------------------------------------------------- */

.ag-table-wrap { overflow-x: auto; border: 1px solid var(--ag-line); border-radius: var(--ag-radius-sm); }

.ag-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }

.ag-table th, .ag-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--ag-line); }

.ag-table thead th {
	background: var(--ag-surface);
	font-family: var(--ag-font-display);
	font-weight: 600;
	font-size: .88rem;
	color: var(--ag-ink);
	white-space: nowrap;
}

.ag-table tbody tr:last-child td { border-bottom: 0; }
.ag-table tbody tr:hover { background: var(--ag-surface); }

.ag-table .ag-icon-yes { color: var(--ag-green); }
.ag-table .ag-icon-no { color: #C3CAD9; }

/* ---- 17. Media frames ----------------------------------------------------- */

/* Simple framed image. */
.ag-frame { border-radius: var(--ag-radius-lg); overflow: hidden; box-shadow: var(--ag-shadow-lg); }
.ag-frame img { display: block; width: 100%; }

/* Browser chrome mockup for portfolio screenshots. */
.ag-browser {
	border-radius: var(--ag-radius);
	overflow: hidden;
	border: 1px solid var(--ag-line);
	box-shadow: var(--ag-shadow-lg);
	background: #fff;
}

.ag-browser-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	background: var(--ag-surface);
	border-bottom: 1px solid var(--ag-line);
}

.ag-browser-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ag-line); }
.ag-browser-dot:nth-child(1) { background: #F87171; }
.ag-browser-dot:nth-child(2) { background: #FBBF24; }
.ag-browser-dot:nth-child(3) { background: #34D399; }

.ag-browser-url {
	margin-left: 10px;
	flex: 1;
	padding: 4px 12px;
	background: #fff;
	border: 1px solid var(--ag-line);
	border-radius: 999px;
	color: var(--ag-muted);
	font-size: .76rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ag-browser img { display: block; width: 100%; }

/* Video thumb with play button (opens the real video). */
.ag-video {
	position: relative;
	display: block;
	border-radius: var(--ag-radius);
	overflow: hidden;
	box-shadow: var(--ag-shadow-lg);
}

.ag-video img { display: block; width: 100%; transition: transform .3s var(--ag-ease); }
.ag-video:hover img { transform: scale(1.03); }

.ag-video::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(10, 22, 51, .05), rgba(10, 22, 51, .35));
}

.ag-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .95);
	color: var(--ag-blue);
	box-shadow: 0 16px 40px -12px rgba(10, 22, 51, .6);
	transition: transform .2s var(--ag-ease);
}

.ag-video:hover .ag-video-play { transform: translate(-50%, -50%) scale(1.08); }
.ag-video-play .ag-icon { width: 30px; height: 30px; margin-left: 3px; }

/* ---- 18. CTA band and funnel-end pages ------------------------------------ */

.ag-cta-band {
	background:
		radial-gradient(70% 120% at 80% -20%, rgba(59, 107, 232, .35), transparent 60%),
		var(--ag-navy);
	color: #fff;
}

.ag-cta-band-inner { text-align: center; }
.ag-cta-band .ag-h2 { color: #fff; }
.ag-cta-band .ag-sub { color: rgba(255, 255, 255, .78); margin-left: auto; margin-right: auto; }
.ag-cta-band .ag-hero-actions { justify-content: center; }

.ag-funnel-end { padding: 110px 0; }
.ag-funnel-end-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ag-funnel-end .ag-hero-actions { justify-content: center; }

/* ---- 19. Prose, insights, pagination, 404 --------------------------------- */

.ag-prose { font-size: 1.03rem; color: var(--ag-ink); }
.ag-prose h2, .ag-prose h3 { font-family: var(--ag-font-display); letter-spacing: -.01em; margin: 1.6em 0 .5em; }
.ag-prose p { margin: 0 0 1.1em; }
.ag-prose img { border-radius: var(--ag-radius-sm); }
.ag-prose ul, .ag-prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.ag-prose li { margin-bottom: .4em; }
.ag-prose blockquote {
	margin: 1.4em 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--ag-blue-bright);
	color: var(--ag-muted);
	font-style: italic;
}

.ag-post-thumb { margin: 0 0 28px; }
.ag-post-thumb img { border-radius: var(--ag-radius); width: 100%; }

.ag-blog-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ag-line);
	border-radius: var(--ag-radius);
	overflow: hidden;
	box-shadow: var(--ag-shadow-sm);
	transition: transform .2s var(--ag-ease), box-shadow .2s var(--ag-ease);
}

.ag-blog-card:hover { transform: translateY(-4px); box-shadow: var(--ag-shadow); }

.ag-blog-card-media { display: block; aspect-ratio: 16 / 9; background: var(--ag-sky); overflow: hidden; }
.ag-blog-card-media img { width: 100%; height: 100%; object-fit: cover; }

.ag-blog-card-fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--ag-blue);
}

.ag-blog-card-fallback .ag-icon { width: 36px; height: 36px; }

.ag-blog-card-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 24px; }
.ag-blog-card-date { font-size: .82rem; color: var(--ag-muted); }

.ag-blog-card-title {
	font-family: var(--ag-font-display);
	font-weight: 600;
	font-size: 1.06rem;
	color: var(--ag-ink);
	letter-spacing: -.01em;
}

.ag-blog-card-excerpt { color: var(--ag-muted); font-size: .93rem; }

.ag-pagination { margin-top: 40px; text-align: center; }
.ag-pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 8px 12px;
	border-radius: 12px;
	border: 1px solid var(--ag-line);
	color: var(--ag-ink);
	font-weight: 600;
	font-size: .93rem;
	margin: 0 3px;
}
.ag-pagination .page-numbers.current { background: var(--ag-blue); border-color: var(--ag-blue); color: #fff; }
.ag-pagination .page-numbers:hover { border-color: var(--ag-blue); color: var(--ag-blue); }
.ag-pagination .page-numbers.current:hover { color: #fff; }

.ag-empty { text-align: center; color: var(--ag-muted); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 0; }

.ag-404 { padding: 110px 0; }
.ag-404-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }

.ag-404-code {
	font-family: var(--ag-font-display);
	font-weight: 800;
	font-size: clamp(4rem, 12vw, 7rem);
	line-height: 1;
	background: var(--ag-grad-hero);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ag-404 .ag-hero-actions { justify-content: center; }

/* Breadcrumbs. */
.ag-crumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: .87rem;
	color: var(--ag-muted);
	margin: 0 0 18px;
}

.ag-crumbs a { color: var(--ag-muted); }
.ag-crumbs a:hover { color: var(--ag-blue); }
.ag-crumbs .ag-icon { width: .9em; height: .9em; opacity: .6; }

/* Divider ornament between sections. */
.ag-divider {
	height: 1px;
	border: 0;
	margin: 0;
	background: linear-gradient(90deg, transparent, var(--ag-line), transparent);
}

/* ---- 20. Footer and WhatsApp float ---------------------------------------- */

.ag-footer {
	background: var(--ag-navy);
	color: rgba(255, 255, 255, .8);
	padding: 64px 0 28px;
	font-size: .95rem;
}

.ag-footer a { color: rgba(255, 255, 255, .8); }
.ag-footer a:hover { color: var(--ag-gold); }

.ag-footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

@media (max-width: 1023px) { .ag-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 679px) { .ag-footer-grid { grid-template-columns: 1fr; } }

.ag-logo-footer .ag-logo-name { color: #fff; }
.ag-logo-footer .ag-logo-tagline { color: rgba(255, 255, 255, .6); }

.ag-footer-about { margin: 16px 0 18px; max-width: 340px; }

.ag-footer-social { display: flex; gap: 10px; }

.ag-social-link {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .08);
	transition: background .15s var(--ag-ease), color .15s var(--ag-ease);
}

.ag-social-link:hover { background: var(--ag-gold); color: var(--ag-navy); }
.ag-social-link .ag-icon { width: 18px; height: 18px; }

.ag-footer-title {
	font-family: var(--ag-font-display);
	color: #fff;
	font-size: .98rem;
	font-weight: 600;
	margin: 6px 0 16px;
}

.ag-footer-list { list-style: none; margin: 0; padding: 0; }
.ag-footer-list li { margin: 0 0 10px; }

.ag-footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.ag-footer-contact .ag-icon { margin-top: 4px; color: var(--ag-gold); }

.ag-footer-bottom { padding-top: 24px; text-align: center; font-size: .88rem; color: rgba(255, 255, 255, .55); }
.ag-footer-credit { margin-left: 8px; }

.ag-wa-float {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25D366;
	color: #fff;
	box-shadow: 0 12px 28px -10px rgba(37, 211, 102, .65);
	transition: transform .18s var(--ag-ease);
}

.ag-wa-float:hover { transform: translateY(-3px) scale(1.05); color: #fff; }
.ag-wa-float .ag-icon { width: 28px; height: 28px; }

/* ---- 21. Animations and utilities ----------------------------------------- */

/* Reveal on scroll. Default: rise. Variants via the attribute value:
   data-reveal="left" | "right" | "scale" | "fade". */
[data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .6s var(--ag-ease), transform .6s var(--ag-ease);
}

[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="fade"] { transform: none; }

[data-reveal].is-revealed { opacity: 1; transform: none; }

/* Stagger: parent carries data-reveal-stagger; JS assigns each direct child
   a growing transition delay and reveals them together. */
[data-reveal-stagger] > * {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .6s var(--ag-ease), transform .6s var(--ag-ease);
}

[data-reveal-stagger].is-revealed > * { opacity: 1; transform: none; }

/* Count-up numbers: <span data-count-to="500" data-count-suffix="+">.
   JS animates the integer; markup should contain the final value as
   fallback text for no-JS/reduced-motion. */

/* Utilities. */
.ag-text-center { text-align: center; }
.ag-mt-0 { margin-top: 0; }
.ag-mb-0 { margin-bottom: 0; }
.ag-mt-24 { margin-top: 24px; }
.ag-mt-40 { margin-top: 40px; }
.ag-mb-24 { margin-bottom: 24px; }
.ag-mb-40 { margin-bottom: 40px; }
.ag-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---- 22. Homepage compositions (Phase 4) ---------------------------------- */

/* Hero visual: browser frame holding a mini "AI at work" dashboard, with
   floating notification cards. Pure CSS/inline SVG, no image assets. */
.ag-hero-home { padding-bottom: 96px; }

.ag-hero-visual { position: relative; }

.ag-hero-screen {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 22px;
	background: linear-gradient(180deg, #fff, var(--ag-surface));
}

.ag-hero-chat { display: flex; flex-direction: column; gap: 10px; }

.ag-hero-msg {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	max-width: 88%;
	font-size: .9rem;
	line-height: 1.5;
}

.ag-hero-msg-user { align-self: flex-end; flex-direction: row-reverse; }

.ag-hero-msg-bubble {
	padding: 10px 15px;
	border-radius: 14px;
	border: 1px solid var(--ag-line);
	background: #fff;
	color: var(--ag-ink);
}

.ag-hero-msg-user .ag-hero-msg-bubble {
	background: var(--ag-sky);
	border-color: transparent;
	border-bottom-right-radius: 4px;
}

.ag-hero-msg-ai .ag-hero-msg-bubble { border-bottom-left-radius: 4px; }

.ag-hero-msg .ag-icon-badge { width: 34px; height: 34px; border-radius: 10px; }
.ag-hero-msg .ag-icon-badge .ag-icon { width: 18px; height: 18px; }

.ag-hero-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.ag-hero-metric {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--ag-line);
	border-radius: var(--ag-radius-sm);
	text-align: center;
}

.ag-hero-metric-value {
	font-family: var(--ag-font-display);
	font-weight: 700;
	font-size: 1.08rem;
	color: var(--ag-blue);
	letter-spacing: -.01em;
	font-variant-numeric: tabular-nums;
}

.ag-hero-metric-label { color: var(--ag-muted); font-size: .74rem; font-weight: 500; }

.ag-hero-chart { display: block; width: 100%; height: 84px; }

.ag-hero-float {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px 12px 12px;
	background: #fff;
	border: 1px solid var(--ag-line);
	border-radius: 14px;
	box-shadow: var(--ag-shadow);
	font-size: .88rem;
	animation: ag-float 7s ease-in-out infinite;
}

.ag-hero-float strong { display: block; color: var(--ag-ink); font-size: .9rem; line-height: 1.3; }
.ag-hero-float span { color: var(--ag-muted); font-size: .78rem; }

.ag-hero-float .ag-icon-badge { width: 38px; height: 38px; border-radius: 11px; }
.ag-hero-float .ag-icon-badge .ag-icon { width: 19px; height: 19px; }

.ag-hero-float-1 { top: 26px; left: -34px; }
.ag-hero-float-2 { bottom: 30px; right: -26px; animation-delay: -3.2s; }

@media (max-width: 1279px) {
	.ag-hero-float-1 { left: -10px; }
	.ag-hero-float-2 { right: -8px; }
}

@media (max-width: 1023px) {
	.ag-hero-visual { max-width: 560px; }
	.ag-hero-float-1 { left: 8px; }
	.ag-hero-float-2 { right: 8px; }
}

/* Automation flow: stacked event cards joined by a dashed spine. */
.ag-flow {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 30px;
	background: #fff;
	border: 1px solid var(--ag-line);
	border-radius: var(--ag-radius-lg);
	box-shadow: var(--ag-shadow-lg);
}

.ag-flow-item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.ag-flow-item + .ag-flow-item::before {
	content: "";
	position: absolute;
	left: 23px;
	top: -20px;
	height: 20px;
	border-left: 2px dashed var(--ag-line);
}

.ag-flow-item strong { display: block; color: var(--ag-ink); font-weight: 600; line-height: 1.35; }
.ag-flow-item span { display: block; color: var(--ag-muted); font-size: .92rem; }

/* Marquee name items (text placeholders until the Phase 6 client logos). */
.ag-proof-name {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--ag-font-display);
	font-weight: 600;
	color: var(--ag-muted);
	white-space: nowrap;
}

.ag-proof-name .ag-icon { color: var(--ag-blue); opacity: .8; }

/* Section-22 odds and ends. */
.ag-section-dark .ag-note { color: rgba(255, 255, 255, .6); }
figure.ag-quote-card { margin: 0; }

/* Founder card: portrait or initials, gradient keyline on top. */
.ag-founder-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: flex-start;
	padding: 36px;
	background: #fff;
	border: 1px solid var(--ag-line);
	border-radius: var(--ag-radius-lg);
	box-shadow: var(--ag-shadow-lg);
	overflow: hidden;
}

.ag-founder-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--ag-grad-hero);
}

.ag-founder-photo {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--ag-radius);
}

.ag-founder-initials {
	width: 84px;
	height: 84px;
	border-radius: 24px;
	font-size: 1.6rem;
}

.ag-founder-name {
	font-family: var(--ag-font-display);
	font-weight: 700;
	font-size: 1.2rem;
	color: var(--ag-ink);
	letter-spacing: -.01em;
}

.ag-founder-role { color: var(--ag-muted); font-size: .93rem; margin-top: -10px; }

.ag-founder-quote {
	margin: 0;
	padding: 4px 0 4px 18px;
	border-left: 3px solid var(--ag-gold);
	color: var(--ag-muted);
	font-style: italic;
}

/* ---- 23. Service page compositions (Phase 5) ------------------------------ */

/* "From $X" line on the service catalog cards. */
.ag-card-price {
	color: var(--ag-blue);
	font-family: var(--ag-font-display);
	font-weight: 600;
	font-size: .93rem;
}

/* Service hero: icon badge above the kicker, price chip under the sub. */
.ag-svc-hero-icon { margin-bottom: 18px; }

.ag-svc-price-line {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 0 0 24px;
}

.ag-svc-price-line .ag-note { margin: 0; }

.ag-price-chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255, 201, 7, .16);
	border: 1px solid rgba(255, 201, 7, .55);
	color: var(--ag-navy);
	font-family: var(--ag-font-display);
	font-weight: 700;
	font-size: .95rem;
	letter-spacing: -.01em;
	white-space: nowrap;
}

/* Pricing tiers: room for the floating flag; two-card grids stay narrow. */
.ag-pricing-grid { margin-top: 14px; }
.ag-pricing-grid.ag-grid-2 { max-width: 880px; margin-left: auto; margin-right: auto; }

/* Services overview pricing table. */
.ag-table-service {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--ag-font-display);
	font-weight: 600;
	color: var(--ag-ink);
}

.ag-table-service .ag-icon { color: var(--ag-blue); flex: 0 0 auto; }
.ag-table-service:hover { color: var(--ag-blue); }

.ag-table-price {
	font-family: var(--ag-font-display);
	font-weight: 700;
	color: var(--ag-ink);
	white-space: nowrap;
}

/* Accessible-only text (WP convention). */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---- 24. Work page compositions (Phase 6) --------------------------------- */

/* Hero: count-up stats row under the hero copy. */
.ag-work-hero-stats {
	margin-top: 44px;
	padding-top: 30px;
	border-top: 1px solid var(--ag-line);
}

/* Case studies: alternating split rows. */
.ag-case-list { display: grid; gap: 72px; margin-top: 14px; }

.ag-case {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
}

.ag-case:nth-child(even) .ag-case-media { order: 2; }

.ag-case-media .ag-browser img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: top;
}

.ag-case-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 0 12px;
}

.ag-case-client {
	font-family: var(--ag-font-display);
	font-weight: 700;
	font-size: .92rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ag-blue);
}

.ag-case-title { font-size: 1.55rem; margin-bottom: 12px; }
.ag-case-text { color: var(--ag-muted); margin: 0 0 18px; }

.ag-case-chips {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ag-case-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
	color: var(--ag-ink);
}

.ag-case-chip .ag-icon { color: var(--ag-blue); flex: 0 0 auto; }

/* CSS-built product mock for case studies without a screenshot. */
.ag-case-mock .ag-case-mock-screen {
	aspect-ratio: 4 / 3;
	padding: 24px;
	display: grid;
	gap: 16px;
	align-content: start;
	background: linear-gradient(180deg, var(--ag-sky), #fff 70%);
}

.ag-case-mock-hero {
	background: var(--ag-grad-hero);
	border-radius: var(--ag-radius);
	padding: 28px;
	display: grid;
	gap: 12px;
	justify-items: start;
}

.ag-case-mock-logo {
	width: 56px;
	height: 56px;
	border-radius: 15px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .16);
	border: 1px solid rgba(255, 255, 255, .35);
	color: #fff;
	font-family: var(--ag-font-display);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: .02em;
}

.ag-case-mock-bar { width: 70%; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .42); }
.ag-case-mock-bar-short { width: 45%; background: rgba(255, 255, 255, .24); }

.ag-case-mock-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.ag-case-mock-cards span {
	height: 64px;
	border-radius: var(--ag-radius-sm);
	background: #fff;
	border: 1px solid var(--ag-line);
	box-shadow: var(--ag-shadow-sm);
}

/* Portfolio gallery: browser-framed screenshot cards. */
.ag-work-grid { margin-top: 14px; }

.ag-work-card { display: block; text-decoration: none; }

.ag-work-card .ag-browser {
	display: block;
	transition: transform .25s var(--ag-ease), box-shadow .25s var(--ag-ease);
}

a.ag-work-card:hover .ag-browser,
a.ag-work-card:focus-visible .ag-browser {
	transform: translateY(-4px);
	box-shadow: var(--ag-shadow-lg);
}

.ag-work-card .ag-browser img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: top;
	display: block;
}

.ag-work-card-meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 12px 6px 0;
}

.ag-work-card-name { font-family: var(--ag-font-display); font-weight: 600; color: var(--ag-ink); }
.ag-work-card-industry { color: var(--ag-muted); font-size: .88rem; text-align: right; }

/* Video testimonials: native players in navy frames. */
.ag-work-video { margin: 0; }

.ag-work-video-frame {
	aspect-ratio: 16 / 9;
	border-radius: var(--ag-radius-lg);
	overflow: hidden;
	background: var(--ag-navy);
	box-shadow: var(--ag-shadow);
}

.ag-work-video-frame video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ag-work-video .ag-quote-person { margin-top: 14px; }

@media (max-width: 1023px) {
	.ag-case { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	.ag-case:nth-child(even) .ag-case-media { order: 0; }
	.ag-case-list { gap: 56px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	[data-reveal], [data-reveal-stagger] > * { opacity: 1; transform: none; transition: none; }
	.ag-btn, .ag-card, .ag-blog-card, .ag-video img, .ag-video-play, .ag-work-card .ag-browser { transition: none; }
	.ag-orb, .ag-hero-float { animation: none; }
	.ag-marquee.is-animated .ag-marquee-track { animation: none; }
	.ag-marquee { -webkit-mask-image: none; mask-image: none; flex-wrap: wrap; }
}

/* ---- 25. About, Contact, and Insights compositions (Phase 7) -------------- */

/* About: story paragraphs and the journey year chips. */
.ag-about-para { margin-bottom: 1em; }
.ag-timeline-item .ag-about-year { margin-bottom: 8px; }

/* About: team cards. */
.ag-team-card {
	background: #fff;
	border: 1px solid var(--ag-line);
	border-radius: var(--ag-radius);
	overflow: hidden;
	box-shadow: var(--ag-shadow-sm);
	text-align: center;
	transition: transform .2s var(--ag-ease), box-shadow .2s var(--ag-ease);
}

.ag-team-card:hover { transform: translateY(-4px); box-shadow: var(--ag-shadow); }

.ag-team-photo {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	background: var(--ag-sky);
}

.ag-team-initials {
	display: grid;
	place-items: center;
	font-family: var(--ag-font-display);
	font-weight: 700;
	font-size: 2.6rem;
	color: var(--ag-blue);
	letter-spacing: .04em;
}

.ag-team-name {
	display: block;
	font-family: var(--ag-font-display);
	font-weight: 600;
	font-size: 1.02rem;
	color: var(--ag-ink);
	padding: 16px 16px 2px;
}

.ag-team-role {
	display: block;
	font-size: .88rem;
	color: var(--ag-muted);
	padding: 0 16px 18px;
}

/* About: recognition media strip (sits on the dark band). */
.ag-media-strip {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 32px;
}

.ag-media-label { font-size: .87rem; color: var(--ag-muted); margin-right: 4px; }
.ag-section-dark .ag-media-label { color: rgba(255, 255, 255, .65); }

/* Insights: card meta row (category + date). */
.ag-blog-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.ag-blog-card-cat {
	display: inline-block;
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ag-blue);
	background: var(--ag-sky);
	border-radius: 999px;
	padding: 3px 10px;
}

/* Insights: featured latest article (wide split card). */
.ag-blog-featured-wrap { margin-bottom: 28px; }

.ag-blog-featured { display: grid; grid-template-columns: 1.15fr 1fr; }

.ag-blog-featured .ag-blog-card-media { aspect-ratio: auto; min-height: 280px; height: 100%; }

.ag-blog-featured .ag-blog-card-body {
	padding: 30px 32px;
	justify-content: center;
	gap: 10px;
}

.ag-blog-featured .ag-blog-card-title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.ag-blog-featured .ag-blog-card-excerpt { font-size: 1rem; }
.ag-blog-featured .ag-link-more { margin-top: 6px; }

/* Article: hero meta line. */
.ag-post-meta {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	color: var(--ag-muted);
	font-size: .92rem;
	margin: 14px 0 0;
}

/* Article: share bar. */
.ag-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 36px;
	padding-top: 22px;
	border-top: 1px solid var(--ag-line);
}

.ag-share-label { font-size: .9rem; font-weight: 600; color: var(--ag-ink); margin-right: 6px; }

.ag-share-btn {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--ag-line);
	background: #fff;
	color: var(--ag-ink);
	cursor: pointer;
	transition: color .2s var(--ag-ease), border-color .2s var(--ag-ease), transform .2s var(--ag-ease);
}

.ag-share-btn:hover { color: var(--ag-blue); border-color: var(--ag-blue); transform: translateY(-2px); }
.ag-share-btn .ag-icon { width: 18px; height: 18px; }
.ag-share-btn .ag-share-check { display: none; color: var(--ag-success, #1c9b57); }
.ag-share-btn.is-copied .ag-share-check { display: block; }
.ag-share-btn.is-copied .ag-icon:not(.ag-share-check) { display: none; }
.ag-share-btn.is-copied { border-color: var(--ag-success, #1c9b57); }

/* Article: author box. */
.ag-author-box {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 22px;
	padding: 20px 22px;
	background: var(--ag-surface);
	border: 1px solid var(--ag-line);
	border-radius: var(--ag-radius);
}

.ag-author-box .ag-author-avatar { border-radius: 50%; flex-shrink: 0; }
.ag-author-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ag-muted); }
.ag-author-name { display: block; font-family: var(--ag-font-display); font-weight: 600; color: var(--ag-ink); margin-top: 2px; }
.ag-author-bio { margin: 6px 0 0; font-size: .92rem; color: var(--ag-muted); }

@media (max-width: 767px) {
	.ag-blog-featured { grid-template-columns: minmax(0, 1fr); }
	.ag-blog-featured .ag-blog-card-media { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
}

/* ---- 26. Booking and forms (Phase 8) -------------------------------------- */

/* Inline notices (form feedback, cancel confirmations). */
.ag-notice {
	display: block;
	margin: 0 auto 26px;
	max-width: 720px;
	padding: 13px 18px;
	border-radius: var(--ag-radius);
	font-size: .95rem;
	font-weight: 500;
	border: 1px solid transparent;
}

.ag-notice-success { background: #EBF9F0; border-color: #BFE8CF; color: #14532D; }
.ag-notice-error { background: #FDEEEE; border-color: #F5C6C6; color: #7F1D1D; }

/* Booking page layout: benefits beside the booking panel. */
.ag-book-layout {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 34px;
	align-items: start;
}

@media (max-width: 899px) { .ag-book-layout { grid-template-columns: minmax(0, 1fr); } }

.ag-book-aside { position: sticky; top: 96px; }

@media (max-width: 899px) { .ag-book-aside { position: static; } }

.ag-book-benefits { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }

.ag-book-benefit { display: flex; gap: 14px; align-items: flex-start; }

.ag-book-benefit .ag-card-title { display: block; margin-bottom: 3px; }

.ag-book-trust {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-top: 22px;
	padding: 14px 16px;
	border-radius: var(--ag-radius);
	background: var(--ag-surface);
	color: var(--ag-muted);
	font-size: .9rem;
}

.ag-book-trust .ag-i { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ag-blue); }

/* Booking panel steps. */
.ag-book-step { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }

.ag-book-step-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--ag-font-display);
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--ag-ink);
	margin-bottom: 14px;
}

.ag-book-step-num {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--ag-blue);
	color: #fff;
	font-size: .85rem;
	font-weight: 700;
}

.ag-book-tz { margin: -6px 0 12px; }

/* Day chips (built by theme.js; server-rendered day groups are the
   no-JS fallback). */
.ag-book-days {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.ag-book-day-chip {
	appearance: none;
	border: 1.5px solid var(--ag-line);
	background: #fff;
	border-radius: 999px;
	padding: 8px 15px;
	font: inherit;
	font-size: .88rem;
	font-weight: 600;
	color: var(--ag-ink);
	cursor: pointer;
	transition: border-color .18s var(--ag-ease), background .18s var(--ag-ease), color .18s var(--ag-ease);
}

.ag-book-day-chip:hover { border-color: var(--ag-blue); color: var(--ag-blue); }

.ag-book-day-chip.is-active {
	background: var(--ag-blue);
	border-color: var(--ag-blue);
	color: #fff;
}

.ag-book-day-label { font-weight: 600; color: var(--ag-muted); font-size: .9rem; margin: 12px 0 8px; }

.ag-book-slots.is-tabbed .ag-book-day-label { display: none; }

/* Slot chips. */
.ag-slot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 8px;
}

.ag-slot { position: relative; display: block; }

.ag-slot input {
	position: absolute;
	opacity: 0;
	inset: 0;
	cursor: pointer;
}

.ag-slot span {
	display: block;
	text-align: center;
	padding: 10px 6px;
	border: 1.5px solid var(--ag-line);
	border-radius: var(--ag-radius-sm);
	font-size: .92rem;
	font-weight: 600;
	color: var(--ag-ink);
	transition: border-color .18s var(--ag-ease), background .18s var(--ag-ease), color .18s var(--ag-ease), box-shadow .18s var(--ag-ease);
}

.ag-slot:hover span { border-color: var(--ag-blue); color: var(--ag-blue); }

.ag-slot input:checked + span {
	background: var(--ag-blue);
	border-color: var(--ag-blue);
	color: #fff;
	box-shadow: var(--ag-shadow-sm);
}

.ag-slot input:focus-visible + span { outline: 2px solid var(--ag-blue); outline-offset: 2px; }

.ag-book-note { margin-top: 10px; }

.ag-book-empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0; }

/* Booking-confirmed context card. */
.ag-section-flush { padding-top: 0; }

.ag-book-confirmed { display: flex; flex-direction: column; gap: 18px; }

.ag-book-confirmed-row { display: flex; gap: 16px; align-items: center; }

.ag-book-confirmed-when {
	font-family: var(--ag-font-display);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--ag-ink);
	margin: 0;
}

/* ---- 27. AI assistant widget (Phase 9) ----------------------------------- */

/* Launcher: a branded pill stacked above the WhatsApp float. */
.ag-assistant { font-family: var(--ag-font-text); }

.ag-assistant-launcher {
	position: fixed;
	right: 22px;
	bottom: 92px;
	z-index: 91;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 13px 20px 13px 16px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--ag-blue), #0E2E80);
	color: #fff;
	font-family: var(--ag-font-display);
	font-weight: 600;
	font-size: .92rem;
	cursor: pointer;
	box-shadow: 0 12px 28px -10px rgba(23, 67, 176, .6);
	transition: transform .18s var(--ag-ease), box-shadow .18s var(--ag-ease);
}

.ag-assistant-launcher:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -12px rgba(23, 67, 176, .7); }
.ag-assistant-launcher .ag-assistant-spark { width: 20px; height: 20px; color: var(--ag-gold); }
.ag-assistant.is-open .ag-assistant-launcher { opacity: 0; pointer-events: none; }

/* Panel. */
.ag-assistant-panel {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 95;
	display: flex;
	flex-direction: column;
	width: min(392px, calc(100vw - 32px));
	height: min(600px, calc(100dvh - 44px));
	background: #fff;
	border: 1px solid rgba(10, 22, 51, .08);
	border-radius: var(--ag-radius-lg);
	box-shadow: var(--ag-shadow-lg);
	overflow: hidden;
}

.ag-assistant-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: linear-gradient(135deg, var(--ag-blue), #0E2E80);
	color: #fff;
}

.ag-assistant-avatar {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: 0 0 auto;
	border-radius: 12px;
	background: rgba(255, 255, 255, .14);
	color: var(--ag-gold);
}

.ag-assistant-avatar svg { width: 22px; height: 22px; }
.ag-assistant-head-text { flex: 1; min-width: 0; }

.ag-assistant-title {
	margin: 0;
	font-family: var(--ag-font-display);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.3;
}

.ag-assistant-tagline {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 2px 0 0;
	font-size: .78rem;
	color: rgba(255, 255, 255, .78);
}

.ag-assistant-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 0 3px rgba(52, 211, 153, .25);
}

.ag-assistant-close {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: rgba(255, 255, 255, .8);
	cursor: pointer;
	transition: background .15s var(--ag-ease), color .15s var(--ag-ease);
}

.ag-assistant-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.ag-assistant-close svg { width: 18px; height: 18px; }

/* Conversation. */
.ag-assistant-messages {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #F7F9FE;
}

.ag-assistant-msg {
	max-width: 86%;
	padding: 10px 14px;
	border-radius: 16px;
	font-size: .92rem;
	line-height: 1.55;
	overflow-wrap: break-word;
}

.ag-assistant-msg-assistant {
	align-self: flex-start;
	background: #fff;
	color: var(--ag-ink);
	border: 1px solid rgba(10, 22, 51, .07);
	border-bottom-left-radius: 6px;
	box-shadow: var(--ag-shadow-sm);
}

.ag-assistant-msg-user {
	align-self: flex-end;
	background: var(--ag-blue);
	color: #fff;
	border-bottom-right-radius: 6px;
}

.ag-assistant-msg a { color: var(--ag-blue); font-weight: 600; text-decoration: underline; }
.ag-assistant-msg-user a { color: #fff; }

/* Typing indicator. */
.ag-assistant-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }

.ag-assistant-typing span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ag-muted);
	opacity: .5;
	animation: ag-assistant-blink 1.2s infinite ease-in-out;
}

.ag-assistant-typing span:nth-child(2) { animation-delay: .18s; }
.ag-assistant-typing span:nth-child(3) { animation-delay: .36s; }

@keyframes ag-assistant-blink {
	0%, 80%, 100% { opacity: .35; transform: translateY(0); }
	40% { opacity: 1; transform: translateY(-3px); }
}

/* Suggestion chips. */
.ag-assistant-suggestions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 16px 12px;
	background: #F7F9FE;
}

.ag-assistant-chip {
	padding: 8px 14px;
	border: 1px solid rgba(23, 67, 176, .25);
	border-radius: 999px;
	background: #fff;
	color: var(--ag-blue);
	font-size: .82rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s var(--ag-ease), color .15s var(--ag-ease);
}

.ag-assistant-chip:hover { background: var(--ag-blue); color: #fff; }

/* Input row. */
.ag-assistant-form {
	display: flex;
	gap: 10px;
	padding: 12px 14px;
	border-top: 1px solid rgba(10, 22, 51, .08);
	background: #fff;
}

.ag-assistant-input {
	flex: 1;
	min-width: 0;
	padding: 11px 14px;
	border: 1px solid rgba(10, 22, 51, .14);
	border-radius: 12px;
	font: inherit;
	font-size: .92rem;
	color: var(--ag-ink);
	background: #fff;
}

.ag-assistant-input:focus { outline: 2px solid var(--ag-blue); outline-offset: 1px; border-color: transparent; }

.ag-assistant-send {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	border: 0;
	border-radius: 12px;
	background: var(--ag-blue);
	color: #fff;
	cursor: pointer;
	transition: background .15s var(--ag-ease), transform .15s var(--ag-ease);
}

.ag-assistant-send:hover { background: #0E2E80; transform: translateY(-1px); }
.ag-assistant-send svg { width: 20px; height: 20px; }
.ag-assistant.is-busy .ag-assistant-send { opacity: .55; pointer-events: none; }

.ag-assistant-disclaimer {
	margin: 0;
	padding: 0 16px 12px;
	background: #fff;
	color: var(--ag-muted);
	font-size: .72rem;
	text-align: center;
}

/* Small screens: the panel takes over, floats tuck away while open. */
@media (max-width: 560px) {
	.ag-assistant-launcher { right: 16px; bottom: 88px; padding: 12px 16px 12px 14px; }
	.ag-assistant-panel {
		right: 8px;
		left: 8px;
		bottom: 8px;
		width: auto;
		height: min(640px, calc(100dvh - 16px));
	}
	.ag-assistant.is-open ~ .ag-wa-float,
	body:has(.ag-assistant.is-open) .ag-wa-float { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ag-assistant-launcher,
	.ag-assistant-send,
	.ag-assistant-chip { transition: none; }
	.ag-assistant-typing span { animation: none; opacity: .8; }
}
