/*!
 * Influenzic Gen 2 — Homepage 4-Step Workflow, Safeguards & Live Sandbox
 *
 * @package influenzic
 */

/* ── How It Works (4 Steps) ── */
.g2-steps-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
	position: relative;
}

.g2-hiw-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: var(--g2-radius-md);
	padding: 22px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03), 0 18px 36px -20px rgba(15, 23, 42, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.g2-hiw-card:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--g2-primary) 35%, #e2e8f0);
	box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--g2-primary) 18%, rgba(15, 23, 42, 0.12));
}

.g2-hiw-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2px;
}

.g2-hiw-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--s, var(--g2-primary)) 10%, #ffffff);
	color: var(--s, var(--g2-primary));
}

.g2-hiw-pill i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--s, var(--g2-primary));
	display: block;
}

.g2-hiw-card h3 {
	margin: 0;
	font-size: 16.5px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: #0f172a;
}

.g2-hiw-card>p {
	margin: 0 0 8px;
	flex: 1;
	font-size: 13.5px;
	line-height: 1.55;
	color: #64748b;
}

.g2-hiw-mock {
	margin-top: auto;
	min-height: 178px;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e6eaf4;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.12);
}

.g2-hiw-winbar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 11px;
	background: #f5f7ff;
	border-bottom: 1px solid #e6eaf4;
}

.g2-hiw-winbar .g2-rt-dots i {
	width: 8px;
	height: 8px;
}

.g2-hiw-wintitle {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 10.5px;
	font-weight: 400;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.g2-hiw-mock__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 12px 13px 13px;
	background: #ffffff;
}

.g2-hiw-mock__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-bottom: 8px;
	margin-bottom: 6px;
	border-bottom: 1px solid #eef2f7;
}

.g2-hiw-mock__head strong {
	font-size: 12.5px;
	font-weight: 600;
	color: #0f172a;
}

.g2-hiw-mock__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 2px;
	border-bottom: 1px solid #eef2f7;
	font-size: 11.5px;
	color: #475569;
}

.g2-hiw-mock__row:last-child {
	border-bottom: 0;
}

.g2-hiw-mock__row strong {
	font-weight: 600;
	color: #0f172a;
}

.g2-hiw-mock__row.is-accent {
	background: color-mix(in srgb, var(--s, var(--g2-primary)) 6%, #ffffff);
	padding: 7px 8px;
	border-radius: 7px;
	border-bottom: 0;
}

.g2-hiw-mock__row.is-accent strong {
	color: var(--s, var(--g2-primary));
}

.g2-hiw-mock__stat {
	padding: 4px 0 8px;
	border-bottom: 1px solid #eef2f7;
	margin-bottom: 8px;
}

.g2-hiw-mock__stat strong {
	display: block;
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
}

.g2-hiw-mock__stat small {
	display: block;
	font-size: 11px;
	color: #64748b;
	margin-top: 2px;
}

.g2-hiw-mock__tags {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.g2-hiw-mock__tags span {
	font-size: 10.5px;
	font-weight: 600;
	color: #475569;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	padding: 2px 9px;
}

.g2-hiw-mock__msg {
	padding: 4px 0 8px;
	border-bottom: 1px solid #eef2f7;
	font-size: 11.5px;
	line-height: 1.4;
	color: #334155;
	margin-bottom: 7px;
}

.g2-hiw-mock__url {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 11px;
	color: #64748b;
	background: #f8fafc;
	border: 1px solid #eef2f7;
	border-radius: 7px;
	padding: 5px 9px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Safeguards Grid (6 Cards) ── */
.g2-safe-head-wrap {
	position: relative;
}

.g2-hand-note {
	position: absolute;
	right: 14px;
	bottom: -6px;
	display: inline-flex;
	align-items: flex-start;
	gap: 4px;
	color: var(--g2-primary);
	pointer-events: none;
}

.g2-hand-note__arrow {
	margin-top: 22px;
	flex-shrink: 0;
}

.g2-hand-note__text {
	font-family: "Patrick Hand", cursive;
	font-size: 19px;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.01em;
	text-align: center;
	transform: rotate(-5deg);
	white-space: nowrap;
}

@media (max-width: 1024px) {
	.g2-hand-note {
		display: none;
	}

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

.g2-safe-card {
	padding: 18px;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 14px;
	align-items: start;
}

.g2-safe-icon {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	margin-bottom: 10px;
}

.g2-safe-icon--green {
	background: var(--g2-bg-tint-green);
	color: #059669;
}

.g2-safe-icon--blue {
	background: var(--g2-bg-tint-blue);
	color: var(--g2-primary-bright);
}

.g2-safe-icon--indigo {
	background: #eef2ff;
	color: var(--g2-primary);
}

.g2-safe-icon--amber {
	background: #fef3c7;
	color: #d97706;
}

.g2-safe-icon--rose {
	background: rgba(var(--g2-accent-rgb), 0.12);
	color: var(--g2-accent);
}

.g2-safe-card__info h3 {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 800;
	color: var(--g2-text-heading);
}

.g2-safe-card__info p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--g2-text-body);
}

.g2-social-dots {
	display: flex;
	gap: 5px;
	margin-top: 10px;
}

.g2-social-dots span {
	font-size: 9px;
	font-weight: 800;
	padding: 3px 5px;
	border-radius: 5px;
	background: var(--g2-bg-slate);
	border: 1px solid var(--g2-border);
	color: var(--g2-text-heading);
}

.g2-safe-mini {
	background: var(--g2-bg-slate);
	border: 1px solid var(--g2-border);
	border-radius: 10px;
	padding: 10px;
	font-size: 10.5px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.g2-safe-mini--green {
	background: var(--g2-bg-tint-green);
	border-color: var(--g2-border-green);
}

.g2-safe-mini--center {
	align-items: center;
	text-align: center;
}

.g2-avatar-stack {
	display: flex;
	align-items: center;
}

.g2-avatar-stack>* {
	margin-left: -6px;
	border: 2px solid #fff;
}

.g2-avatar-stack>*:first-child {
	margin-left: 0;
}

.g2-chat-msg {
	background: var(--g2-bg-white);
	border: 1px solid var(--g2-border);
	border-radius: 8px;
	padding: 7px;
}

.g2-chat-blocked {
	background: rgba(var(--g2-accent-rgb), 0.08);
	border: 1px solid rgba(var(--g2-accent-rgb), 0.35);
	color: var(--g2-accent);
	border-radius: 8px;
	padding: 7px;
	font-size: 9.5px;
}

.g2-badge-purple {
	background: #ede9fe;
	color: #6d28d9;
	font-size: 9.5px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: var(--g2-radius-pill);
}

.g2-badge-amber {
	display: inline-block;
	align-self: flex-start;
	background: #fef3c7;
	color: #b45309;
	font-size: 9.5px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: var(--g2-radius-pill);
}

.g2-ai-tabs {
	display: flex;
	gap: 4px;
}

.g2-ai-tabs span {
	font-size: 9.5px;
	padding: 3px 7px;
	border-radius: 5px;
	background: var(--g2-bg-white);
	border: 1px solid var(--g2-border);
}

.g2-ai-tabs span.is-on {
	background: var(--g2-bg-tint-blue);
	color: var(--g2-primary-bright);
	font-weight: 700;
}

.g2-ai-prompt {
	background: var(--g2-bg-white);
	border: 1px solid var(--g2-border);
	border-radius: 6px;
	padding: 7px;
	font-size: 9.5px;
	color: var(--g2-text-muted);
}

/* ── Live Sandbox Section ── */
.g2-sandbox {
	padding: 52px 0;
}

.g2-sandbox__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
	gap: 44px;
	align-items: center;
}

.g2-sandbox__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 26px 0;
}

.g2-sandbox__highlights {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	font-size: 12.5px;
	line-height: 1.4;
	color: #cbd5e1;
}

.g2-sb-hl {
	display: flex;
	align-items: center;
	gap: 10px;
}

.g2-sb-hl__ic {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
}

.g2-sb-hl__ic--green {
	background: #10b981;
}

.g2-sb-hl__ic--purple {
	background: #6366f1;
}

.g2-sb-hl__ic--pink {
	background: #ec4899;
}

.g2-sandbox__visual {
	position: relative;
	padding: 0;
}

.g2-sb-stage-light {
	position: relative;
	width: 82%;
}

.g2-sb-stage-dark {
	position: relative;
	width: 56%;
	margin-left: auto;
	margin-top: -333px;
	z-index: 3;
}

.g2-sb-float-pill {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	color: #1e293b;
	background: #ffffff;
	padding: 6px 14px;
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(2, 6, 23, 0.25);
	margin: 0 0 -10px 18px;
	position: relative;
	z-index: 4;
}

.g2-sb-float-pill--right {
	display: table;
	margin: 0 18px -10px auto;
}

.g2-sb-win {
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 28px 64px rgba(2, 6, 23, 0.55);
}

.g2-sb-win--light {
	background: #f8fafc;
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #0f172a;
}

.g2-sb-win--dark {
	background: #0f172a;
	border: 1px solid rgba(148, 163, 184, 0.24);
	color: #f8fafc;
}

.g2-sb-winbar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	font-size: 10px;
}

.g2-sb-winbar--dark {
	background: #131b2e;
	border-bottom-color: rgba(148, 163, 184, 0.16);
}

.g2-sb-winbar .g2-rt-dots i {
	width: 8px;
	height: 8px;
}

.g2-sb-brand {
	font-size: 11.5px;
	font-weight: 800;
	color: #0f172a;
}

.g2-sb-brand--dark {
	color: #ffffff;
}

.g2-sb-nav {
	display: flex;
	gap: 10px;
	color: #64748b;
	font-size: 9.5px;
	margin-left: 6px;
}

.g2-sb-nav-cta {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 9.5px;
	color: #475569;
}

.g2-sb-nav-cta b {
	background: var(--g2-primary);
	color: #ffffff;
	padding: 3px 8px;
	border-radius: 5px;
	font-weight: 600;
}

.g2-sb-admin-user {
	margin-left: auto;
	font-size: 10px;
	color: #94a3b8;
}

.g2-sb-sf-body {
	padding: 12px 14px 16px;
	background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 48%, #ffffff 100%);
}

.g2-sb-sf-hero strong {
	display: block;
	font-size: 13.5px;
	line-height: 1.25;
	font-weight: 800;
	color: #0f172a;
	max-width: 220px;
}

.g2-sb-sf-hero small {
	display: block;
	font-size: 9.5px;
	color: #64748b;
	margin: 3px 0 8px;
}

.g2-sb-sf-search {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 7px;
	padding: 5px 9px;
	font-size: 9.5px;
	color: #94a3b8;
	margin-bottom: 7px;
}

.g2-sb-sf-filters {
	display: flex;
	gap: 5px;
	margin-bottom: 9px;
}

.g2-sb-sf-filters span {
	font-size: 9.5px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 999px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #475569;
}

.g2-sb-sf-filters span.is-on {
	background: var(--g2-primary);
	border-color: var(--g2-primary);
	color: #ffffff;
}

.g2-sb-sf-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
	max-width: 56%;
}

.g2-sb-ccard {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 10px 8px;
	text-align: center;
}

.g2-sb-ccard img {
	width: 54px;
	height: 54px;
	border-radius: 9px;
	object-fit: cover;
	margin: 0 auto 6px;
	display: block;
}

.g2-sb-sf-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	max-width: 56%;
	margin-top: 10px;
	padding: 7px 10px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 9.5px;
	color: #64748b;
}

.g2-sb-sf-foot b {
	color: var(--g2-primary);
	font-weight: 700;
}

.g2-sb-ccard strong {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: #0f172a;
}

.g2-sb-vtick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #2563eb;
	color: #ffffff;
	font-style: normal;
	font-size: 8px;
}

.g2-sb-ccard small {
	display: block;
	font-size: 9.5px;
	color: #64748b;
	margin-bottom: 4px;
}

.g2-sb-followers {
	display: inline-block;
	font-size: 9.5px;
	font-weight: 700;
	color: #be185d;
	background: #fdf2f8;
	padding: 1px 7px;
	border-radius: 999px;
	margin-bottom: 4px;
}

.g2-sb-ccard b {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: #0f172a;
}

.g2-sb-adm-grid {
	display: grid;
	grid-template-columns: 98px minmax(0, 1fr);
}

.g2-sb-adm-side {
	background: #131b2e;
	border-right: 1px solid rgba(148, 163, 184, 0.14);
	padding: 10px 8px;
	display: grid;
	gap: 3px;
	align-content: start;
}

.g2-sb-adm-side span {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 9.5px;
	color: #94a3b8;
	padding: 5px 7px;
	border-radius: 6px;
}

.g2-sb-adm-side span.is-on {
	background: var(--g2-primary);
	color: #ffffff;
	font-weight: 600;
}

.g2-sb-adm-main {
	padding: 10px 12px 11px;
}

.g2-sb-adm-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.g2-sb-adm-top strong {
	font-size: 12px;
	font-weight: 700;
	color: #ffffff;
}

.g2-sb-adm-top span {
	font-size: 9px;
	color: #cbd5e1;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(148, 163, 184, 0.2);
	padding: 2px 7px;
	border-radius: 6px;
}

.g2-sb-adm-kpis {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	margin-bottom: 9px;
}

.g2-sb-kpi {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(148, 163, 184, 0.16);
	border-radius: 8px;
	padding: 8px 9px;
}

.g2-sb-kpi__ic {
	width: 24px;
	height: 24px;
	border-radius: 6px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.g2-sb-kpi__ic.is-green {
	background: rgba(16, 185, 129, 0.18);
	color: #34d399;
}

.g2-sb-kpi__ic.is-purple {
	background: rgba(168, 85, 247, 0.18);
	color: #c084fc;
}

.g2-sb-kpi__ic.is-blue {
	background: rgba(59, 130, 246, 0.18);
	color: #60a5fa;
}

.g2-sb-kpi__ic.is-indigo {
	background: rgba(99, 102, 241, 0.18);
	color: #818cf8;
}

.g2-sb-kpi strong {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #ffffff;
}

.g2-sb-kpi small {
	display: block;
	font-size: 9px;
	color: #94a3b8;
	margin-top: 1px;
}

.g2-sb-adm-act-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.g2-sb-adm-act-head strong {
	font-size: 10.5px;
	font-weight: 700;
	color: #ffffff;
}

.g2-sb-adm-act-head span {
	font-size: 9px;
	color: #60a5fa;
}

.g2-sb-adm-feed {
	display: grid;
	gap: 5px;
}

.g2-sb-adm-feed>div {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 7px;
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(148, 163, 184, 0.12);
}

.g2-sb-adm-feed i {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
}

.g2-sb-adm-feed i.is-green {
	background: #10b981;
}

.g2-sb-adm-feed i.is-blue {
	background: #3b82f6;
}

.g2-sb-adm-feed i.is-amber {
	background: #f59e0b;
}

.g2-sb-adm-feed i.is-pink {
	background: #ec4899;
}

.g2-sb-adm-feed b {
	display: block;
	font-size: 10px;
	font-weight: 600;
	color: #f8fafc;
}

.g2-sb-adm-feed small {
	display: block;
	font-size: 9px;
	color: #94a3b8;
}

@media (max-width: 1024px) {
	.g2-sandbox__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 768px) {
	.g2-sandbox {
		padding: 56px 0;
	}

	.g2-sandbox__grid {
		display: flex;
		flex-direction: column;
		gap: 24px;
		min-width: 0;
		max-width: 100%;
		overflow: hidden;
	}

	.g2-sandbox__copy {
		order: 1;
	}

	.g2-sandbox__visual {
		order: 2;
		width: 100%;
		max-width: 100%;
		overflow: hidden;
	}

	.g2-sandbox__highlights {
		grid-template-columns: minmax(0, 1fr);
	}

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

	.g2-safe-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.g2-safe-grid {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 14px;
		padding: 4px 2px 14px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.g2-safe-grid::-webkit-scrollbar {
		display: none;
	}

	.g2-safe-grid>* {
		flex: 0 0 82%;
		scroll-snap-align: start;
	}

	.g2-safe-grid>*:last-child {
		scroll-snap-align: end;
	}
}