/* ViSTARS block styles. Values come from theme.json presets; nothing here invents a colour. */

:root {
	--vs-radius-sm: var(--wp--custom--radius--sm);
	--vs-radius-md: var(--wp--custom--radius--md);
	--vs-radius-lg: var(--wp--custom--radius--lg);
	--vs-radius-xl: var(--wp--custom--radius--xl);
	--vs-radius-pill: var(--wp--custom--radius--pill);
}

/* Eyebrow: mono uppercase label opened by a 1px accent rule (paper) or 2px signal bar (stage). */
.is-style-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	line-height: 16px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}
.is-style-eyebrow::before {
	content: "";
	width: 24px;
	height: 1px;
	background: currentColor;
	flex: none;
}
.is-style-stage .is-style-eyebrow { color: var(--wp--preset--color--stage-muted); letter-spacing: 0.14em; }
.is-style-stage .is-style-eyebrow::before { height: 2px; background: var(--wp--preset--color--stage-accent); }

.is-style-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	line-height: 16px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-muted);
}

.is-style-lead {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.56;
	color: var(--wp--preset--color--ink-body);
}

/* Stage: the flat dark-green panel behind product and proof. No gradient, glow or grid. */
.wp-block-group.is-style-stage {
	background: var(--wp--preset--color--stage);
	color: var(--wp--preset--color--stage-body);
	border-radius: var(--vs-radius-xl);
}
.is-style-stage :where(h1, h2, h3, h4, strong) { color: var(--wp--preset--color--stage-text); }
.is-style-stage a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--stage-accent); }
.is-style-stage .is-style-lead { color: var(--wp--preset--color--stage-body); }
.is-style-stage .is-style-label { color: var(--wp--preset--color--stage-muted); }

.wp-block-group.is-style-card {
	background: var(--wp--preset--color--surface-raised);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--vs-radius-lg);
	padding: var(--wp--preset--spacing--6);
}
.wp-block-group.is-style-card-on-stage {
	background: var(--wp--preset--color--stage-raised);
	border: 1px solid var(--wp--preset--color--stage-line);
	border-radius: var(--vs-radius-lg);
	padding: var(--wp--preset--spacing--6);
}

/* Buttons */
.wp-block-button.is-style-secondary .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line-strong);
}
.wp-block-button.is-style-secondary .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--ink);
}
.is-style-stage .wp-block-button.is-style-secondary .wp-block-button__link {
	color: var(--wp--preset--color--stage-text);
	border-color: var(--wp--preset--color--stage-line);
}
.is-style-stage .wp-block-button:not(.is-style-secondary):not(.is-style-text-arrow) .wp-block-button__link {
	background: var(--wp--preset--color--stage-text);
	color: var(--wp--preset--color--stage);
}
.wp-block-button.is-style-text-arrow .wp-block-button__link {
	background: none;
	padding: 0;
	color: var(--wp--preset--color--accent);
	border-radius: 0;
}
.wp-block-button__link::after { content: " \2192"; }
.wp-block-button.is-style-secondary .wp-block-button__link::after { content: none; }

/* Lists */
.wp-block-list.is-style-chips,
.wp-block-list.is-style-logo-strip {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.wp-block-list.is-style-chips li {
	padding: 6px 12px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--vs-radius-pill);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
}
.is-style-stage .wp-block-list.is-style-chips li {
	border-color: var(--wp--preset--color--stage-line);
	color: var(--wp--preset--color--stage-text);
	border-radius: var(--vs-radius-sm);
}
.wp-block-list.is-style-logo-strip { gap: 10px 28px; }
.wp-block-list.is-style-logo-strip li {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--ink-muted);
}
.wp-block-list.is-style-checks { list-style: none; padding: 0; }
.wp-block-list.is-style-checks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.wp-block-list.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.55em;
	width: 12px;
	height: 6px;
	border-left: 2px solid var(--wp--preset--color--accent);
	border-bottom: 2px solid var(--wp--preset--color--accent);
	transform: rotate(-45deg);
}
.is-style-stage .wp-block-list.is-style-checks li::before { border-color: var(--wp--preset--color--stage-accent); }

/* Big figure */
.vs-figure {
	font-size: clamp(88px, 12vw, 160px);
	line-height: 0.9;
	letter-spacing: -0.06em;
	font-weight: 500;
	color: var(--wp--preset--color--stage-text);
	margin: 0;
}

/* Yes / No tags */
.vs-tag-yes, .vs-tag-no {
	display: inline-block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: var(--vs-radius-sm);
}
.vs-tag-yes { background: var(--wp--preset--color--stage-accent); color: var(--wp--preset--color--stage-deep); }
.vs-tag-no { background: var(--wp--preset--color--stage-amber); color: var(--wp--preset--color--ink); }

/* FAQ */
.wp-block-details summary {
	font-size: var(--wp--preset--font-size--card-title);
	font-weight: 600;
	letter-spacing: -0.018em;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
}

/* Header and footer */
.vs-header { border-bottom: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--paper); }
.vs-badge-new {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-strong);
	background: var(--wp--preset--color--accent-soft);
	border-radius: var(--vs-radius-pill);
	padding: 2px 8px;
}
.vs-footer { background: var(--wp--preset--color--night); color: #C4CDD3; }
.vs-footer :where(h4) {
	color: #8C99A2;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.vs-footer a { color: #FFFFFF; text-decoration: none; }
.vs-footer a:hover { color: #00FF94; }
.vs-footer .wp-block-list { list-style: none; padding: 0; margin: 0; }
.vs-footer .wp-block-list li { margin-bottom: 10px; font-size: var(--wp--preset--font-size--small); }

@media (max-width: 781px) {
	.vs-hide-mobile { display: none !important; }
}

/* Table on a stage */
.vs-table table { border-collapse: collapse; width: 100%; }
.vs-table th, .vs-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--wp--preset--color--line); vertical-align: top; }
.vs-table th { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--label); letter-spacing: 0.07em; text-transform: uppercase; color: var(--wp--preset--color--ink-muted); font-weight: 500; }
.vs-table td:first-child { color: var(--wp--preset--color--ink); font-weight: 600; white-space: nowrap; }
.is-style-stage .vs-table th, .is-style-stage .vs-table td { border-color: var(--wp--preset--color--stage-line); }
.is-style-stage .vs-table th { color: var(--wp--preset--color--stage-muted); }
.is-style-stage .vs-table td:first-child { color: var(--wp--preset--color--stage-text); }

/* Logo */
.vs-logo { display: inline-flex; line-height: 0; }
.vs-logo img { height: 22px; width: auto; }

/* Leftover plugins (Fonts Plugin, Elementor kit) inject their own fonts site-wide. The brand font wins. */
body, body :where(h1, h2, h3, h4, h5, h6, p, li, a, span, td, th, summary, label, input, button, blockquote) {
	font-family: var(--wp--preset--font-family--sans) !important;
}
body .is-style-eyebrow, body .is-style-label, body .vs-tag-yes, body .vs-tag-no, body .vs-badge-new,
body .vs-footer h4, body .vs-table th, body .is-style-eyebrow *, body .is-style-label * {
	font-family: var(--wp--preset--font-family--mono) !important;
}

/* Readable text measure inside wide sections */
:where(.wp-block-group) > :where(p.is-style-lead, h2) { max-width: 820px; }

/* Cards: the style applies to columns as well as groups */
.wp-block-column.is-style-card {
	background: var(--wp--preset--color--surface-raised);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--vs-radius-lg);
	padding: var(--wp--preset--spacing--6);
}
.wp-block-column.is-style-card-on-stage {
	background: var(--wp--preset--color--stage-raised);
	border: 1px solid var(--wp--preset--color--stage-line);
	border-radius: var(--vs-radius-lg);
	padding: var(--wp--preset--spacing--6);
}
.is-style-card > :first-child, .is-style-card-on-stage > :first-child { margin-top: 0; }

/* FAQ: tighter rhythm */
.wp-block-details { margin-block: 0 !important; }
.wp-block-details summary { list-style-position: outside; }
.wp-block-details > p { margin-top: 12px; }

/* "I am a" switcher */
.vs-aud-picker { gap: 12px; }
.vs-aud-picker .is-style-label { margin: 0; }
.vs-aud-tabs li { padding: 0 !important; border: 0 !important; }
.vs-aud-tab {
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
	background: transparent;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--vs-radius-pill);
	padding: 8px 14px;
	cursor: pointer;
	min-height: 40px;
}
.vs-aud-tab:hover { border-color: var(--wp--preset--color--ink); }
.vs-aud-tab[aria-selected="true"] {
	background: var(--wp--preset--color--night-green);
	border-color: var(--wp--preset--color--night-green);
	color: #FFFFFF;
}
.vs-aud-tab:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.vs-aud-panel[hidden] { display: none !important; }
.vs-aud-panel h2.has-display-font-size { letter-spacing: -0.045em; line-height: 1; }

/* Rows inside a stage panel (label + tag) */
.vs-row { border-top: 1px solid var(--wp--preset--color--stage-line); padding-top: 12px; gap: 16px; }
.vs-row p { margin: 0; }
.vs-row p + p { font-size: var(--wp--preset--font-size--small); }
.vs-row-tag {
	flex: none;
	font-family: var(--wp--preset--font-family--mono) !important;
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--wp--preset--color--stage-accent);
	white-space: nowrap;
}

/* Product screen mockup */
.vs-screen { background: var(--wp--preset--color--surface-raised); border: 1px solid var(--wp--preset--color--line); border-radius: var(--vs-radius-xl); box-shadow: var(--wp--preset--shadow--card); overflow: hidden; }
.vs-screen-bar { background: var(--wp--preset--color--paper); border-bottom: 1px solid var(--wp--preset--color--line); padding: 10px 16px !important; }
.vs-screen-bar p { margin: 0; }
.vs-kpi { background: var(--wp--preset--color--paper); border-radius: var(--vs-radius-sm); padding: 14px !important; }
.vs-kpi p { margin: 0; }
.vs-kpi .vs-kpi-value { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; color: var(--wp--preset--color--ink); }
.vs-alert { border-radius: var(--vs-radius-sm); padding: 12px 14px !important; }
.vs-alert p { margin: 0; }
.vs-alert-crit { background: var(--wp--preset--color--crit-soft); }
.vs-alert-warn { background: var(--wp--preset--color--warn-soft); }
.vs-alert-opp { background: var(--wp--preset--color--accent-soft); }
.vs-alert .is-style-label { font-weight: 600; }
.vs-alert-crit .is-style-label { color: var(--wp--preset--color--crit); }
.vs-alert-warn .is-style-label { color: var(--wp--preset--color--warn); }
.vs-alert-opp .is-style-label { color: var(--wp--preset--color--accent-strong); }
.vs-screen .vs-table td:first-child { white-space: normal; }
.vs-chat-q { background: var(--wp--preset--color--stage-deep); border-radius: var(--vs-radius-lg); padding: 14px 16px !important; color: var(--wp--preset--color--stage-text); }

@media (max-width: 781px) {
	.vs-row { flex-wrap: wrap !important; }
	.vs-screen .vs-table { overflow-x: auto; }
}

/* Contact Form 7 (form ID 7, sends to info@vistars.ai) in brand style */
.wpcf7 { background: var(--wp--preset--color--surface-raised); border: 1px solid var(--wp--preset--color--line); border-radius: var(--vs-radius-lg); padding: var(--wp--preset--spacing--8); max-width: 820px; }
.is-style-stage .wpcf7 { background: var(--wp--preset--color--surface-raised); color: var(--wp--preset--color--ink-body); }
.wpcf7 .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 16px; }
.wpcf7 .row.input-textarea { grid-template-columns: 1fr; }
.wpcf7 [class*="col-"] { width: auto; max-width: none; padding: 0; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="number"], .wpcf7 input[type="tel"], .wpcf7 textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--line-strong); border-radius: var(--vs-radius-md); padding: 12px 14px;
}
.wpcf7 textarea { min-height: 140px; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; border-color: var(--wp--preset--color--accent); }
.wpcf7 input[type="submit"], .wpcf7 button {
	font: inherit; font-size: 15.5px; font-weight: 500; color: #FFFFFF; background: var(--wp--preset--color--night-green);
	border: 0; border-radius: var(--vs-radius-md); padding: 13px 22px; cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--stage-raised); }
.wpcf7 .wpcf7-not-valid-tip { color: var(--wp--preset--color--crit); font-size: var(--wp--preset--font-size--small); }
.wpcf7 .wpcf7-response-output { border-radius: var(--vs-radius-sm); margin: 16px 0 0 !important; }
@media (max-width: 781px) { .wpcf7 .row { grid-template-columns: 1fr; } }
/* Old Softech form CSS (.input-filled) strips borders; ours wins. */
body .wpcf7 .input-filled input, body .wpcf7 .input-filled textarea,
body .wpcf7 input[type="text"], body .wpcf7 input[type="email"], body .wpcf7 input[type="number"], body .wpcf7 textarea {
	background: var(--wp--preset--color--paper) !important;
	border: 1px solid var(--wp--preset--color--line-strong) !important;
	border-radius: var(--vs-radius-md) !important;
	padding: 12px 14px !important;
	height: auto !important;
	box-shadow: none !important;
}
body .wpcf7 .input-filled::before, body .wpcf7 .input-filled::after { display: none !important; }
