/*
 * Verploy theme – extra styles.
 * Colors, fonts and spacing live in theme.json. This file only adds
 * the few details theme.json cannot express (block styles, header,
 * product-window frames, comparison table, FAQ accordion).
 */

:root {
	--vp-radius-s: 6px;
	--vp-radius-m: 10px;
	--vp-radius-l: 16px;
	--vp-ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink); }

:where(a, button, summary, input):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- Dark sections ---------- */
.has-ink-background-color,
.has-ink-2-background-color {
	color: var(--wp--preset--color--ink-muted);
}
.has-ink-background-color :where(h1, h2, h3, h4, h5, h6, strong),
.has-ink-2-background-color :where(h1, h2, h3, h4, h5, h6, strong) {
	color: var(--wp--preset--color--ink-text);
}
.has-ink-background-color :where(a:not(.wp-element-button)),
.has-ink-2-background-color :where(a:not(.wp-element-button)) {
	color: var(--wp--preset--color--accent);
}
.has-ink-background-color .is-style-outline .wp-element-button,
.has-ink-2-background-color .is-style-outline .wp-element-button {
	color: var(--wp--preset--color--ink-text);
	border-color: var(--wp--preset--color--ink-line);
}
.has-ink-background-color .is-style-outline .wp-element-button:hover {
	border-color: var(--wp--preset--color--ink-muted);
	background: transparent;
}
:where(.is-style-outline) .wp-element-button:hover {
	background: transparent;
	border-color: var(--wp--preset--color--muted);
}

/* ---------- Header ---------- */
.vp-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--wp--preset--color--ink-line);
}
.admin-bar .vp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .vp-header { top: 0; position: relative; } }
.vp-header .wp-block-site-logo img { display: block; }
.vp-header .wp-block-navigation a { color: var(--wp--preset--color--ink-muted); text-decoration: none; transition: color .15s; }
.vp-header .wp-block-navigation a:hover,
.vp-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--ink-text); }
.vp-login .wp-element-button,
.vp-login .wp-element-button:hover {
	background: transparent;
	border-color: transparent;
	color: var(--wp--preset--color--ink-text);
	font-weight: 500;
}
.vp-login .wp-element-button:hover { color: var(--wp--preset--color--accent); }
.vp-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--ink) !important;
	color: var(--wp--preset--color--ink-text) !important;
	padding: 1.5rem;
}
.vp-header .wp-block-navigation__responsive-container.is-menu-open a { font-size: 1.25rem; color: var(--wp--preset--color--ink-text); }
.vp-header .wp-block-navigation__responsive-container-open,
.vp-header .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--ink-text); }
/* "Log in" inside the menu only on small screens (the button covers desktop). */
.vp-header .vp-nav-login { display: none; }
@media (max-width: 600px) {
	.vp-header .is-menu-open .vp-nav-login { display: block; }
	.vp-header .vp-login { display: none; }
	.vp-header .wp-block-button__link { padding: .6rem 1rem; }
}

/* ---------- Typography helpers ---------- */
.is-style-eyebrow {
	font-size: var(--wp--preset--font-size--xs) !important;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-strong);
}
.has-ink-background-color .is-style-eyebrow,
.has-ink-2-background-color .is-style-eyebrow { color: var(--wp--preset--color--accent); }

.is-style-badge-soon {
	display: inline-block;
	font-size: .75rem !important;
	font-weight: 600;
	line-height: 1;
	padding: .35rem .55rem;
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--muted);
	margin-block: 0;
}
.has-ink-background-color .is-style-badge-soon { background: var(--wp--preset--color--ink-2); border-color: var(--wp--preset--color--ink-line); color: var(--wp--preset--color--ink-muted); }

.is-style-step {
	flex-shrink: 0;
	min-width: 2.2ch;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs) !important;
	font-weight: 600;
	color: var(--wp--preset--color--accent-strong);
	letter-spacing: .04em;
}
.has-ink-background-color .is-style-step { color: var(--wp--preset--color--accent); }

.vp-lead { font-size: var(--wp--preset--font-size--l); line-height: 1.55; }
.vp-small { font-size: var(--wp--preset--font-size--xs); }
.vp-mono { font-family: var(--wp--preset--font-family--mono); }
.vp-balance { text-wrap: balance; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- Cards ---------- */
.is-style-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--vp-radius-l);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	height: 100%;
}
.has-surface-background-color .is-style-card { box-shadow: var(--wp--preset--shadow--soft); border-color: transparent; }
.is-style-card-dark {
	background: var(--wp--preset--color--ink-2);
	border: 1px solid var(--wp--preset--color--ink-line);
	border-radius: var(--vp-radius-l);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	color: var(--wp--preset--color--ink-muted);
	height: 100%;
}
.is-style-card-dark :where(h2, h3, h4, strong) { color: var(--wp--preset--color--ink-text); }
.wp-block-column > .is-style-card,
.wp-block-column > .is-style-card-dark { height: 100%; }

/* ---------- Product window (placeholder for screenshots) ---------- */
.is-style-window {
	position: relative;
	background: var(--wp--preset--color--ink-2);
	border: 1px solid var(--wp--preset--color--ink-line);
	border-radius: var(--vp-radius-l);
	box-shadow: var(--wp--preset--shadow--window);
	overflow: hidden;
	padding-top: 38px !important;
}
.is-style-window::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 38px;
	border-bottom: 1px solid var(--wp--preset--color--ink-line);
	background:
		radial-gradient(circle at 20px 19px, #3a4768 5px, transparent 6px),
		radial-gradient(circle at 38px 19px, #3a4768 5px, transparent 6px),
		radial-gradient(circle at 56px 19px, #3a4768 5px, transparent 6px),
		var(--wp--preset--color--ink);
}
.wp-block-image.is-style-window img { display: block; width: 100%; height: auto; border-radius: 0; }

/* ---------- Status log (safe-update visual) ---------- */
.is-style-terminal {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	background: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--ink-line);
	border-radius: var(--vp-radius-l);
	color: var(--wp--preset--color--ink-muted);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	box-shadow: 0 20px 40px -24px rgba(10, 17, 34, .45);
}
.is-style-terminal p { margin: 0; padding: .55rem 0; border-bottom: 1px dashed var(--wp--preset--color--ink-line); display: flex; gap: .75rem; align-items: baseline; }
.is-style-terminal p:last-child { border-bottom: 0; }
.is-style-terminal strong { color: var(--wp--preset--color--ink-text); font-weight: 500; }

/* Status dots: add class vp-ok / vp-warn / vp-bad / vp-run to a paragraph */
.vp-ok::before, .vp-warn::before, .vp-bad::before, .vp-run::before {
	content: "";
	flex: 0 0 auto;
	width: 8px; height: 8px;
	border-radius: 50%;
	display: inline-block;
	margin-right: .6rem;
	transform: translateY(-1px);
	background: var(--wp--preset--color--accent);
}
.vp-warn::before { background: var(--wp--preset--color--warning); }
.vp-bad::before { background: var(--wp--preset--color--danger); }
.vp-run::before { background: #5B8CFF; box-shadow: 0 0 0 4px rgba(91, 140, 255, .18); }

/* ---------- Stats ---------- */
.vp-stat {
	font-size: var(--wp--preset--font-size--xxl) !important;
	font-weight: 750;
	letter-spacing: -.03em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	margin-block-end: .35rem !important;
}
.is-style-card-dark .vp-stat { color: var(--wp--preset--color--ink-text); }
.vp-stat--ok { color: var(--wp--preset--color--accent-strong); }
.vp-stat--warn { color: #B26B00; }
.has-ink-background-color .vp-stat--ok, .is-style-card-dark .is-style-card-dark .vp-stat { color: var(--wp--preset--color--ink-text); }
.vp-stat--ok { color: var(--wp--preset--color--accent); }
.has-ink-background-color .vp-stat--warn, .is-style-card-dark .vp-stat--warn { color: var(--wp--preset--color--warning); }

/* ---------- Lists ---------- */
.is-style-checks, .is-style-plain { list-style: none; padding-left: 0 !important; }
.is-style-checks li { position: relative; padding-left: 1.9rem; margin-block: .6rem; }
.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0; top: .2em;
	width: 1.2rem; height: 1.2rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-soft)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23067A4B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.has-ink-background-color .is-style-checks li::before,
.is-style-card-dark .is-style-checks li::before {
	background-color: rgba(34, 217, 138, .14);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2322D98A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E");
}

/* ---------- Flow (Detect → Test → …) ---------- */
.wp-block-columns.is-style-flow { gap: 1rem; }
.wp-block-columns.is-style-flow > .wp-block-column {
	position: relative;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--vp-radius-m);
	padding: 1.1rem 1.1rem 1.2rem;
	background: var(--wp--preset--color--base);
}
.wp-block-columns.is-style-flow > .wp-block-column:last-child {
	border-style: dashed;
}
@media (min-width: 782px) {
	.wp-block-columns.is-style-flow > .wp-block-column:not(:last-child)::after {
		content: "";
		position: absolute;
		right: -.85rem;
		top: 50%;
		width: .7rem; height: .7rem;
		border-top: 2px solid var(--wp--preset--color--muted);
		border-right: 2px solid var(--wp--preset--color--muted);
		transform: translateY(-50%) rotate(45deg);
		opacity: .5;
	}
}
.wp-block-columns.is-style-flow h3 { margin: .35rem 0 .25rem; }
.wp-block-columns.is-style-flow p { margin: 0; }

/* ---------- Comparison table ---------- */
.wp-block-table.is-style-comparison table { border-collapse: separate; border-spacing: 0; width: 100%; border: 0; }
.wp-block-table.is-style-comparison :where(th, td) { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 1rem 1.1rem; text-align: left; vertical-align: top; }
.wp-block-table.is-style-comparison thead { border: 0; }
.wp-block-table.is-style-comparison thead th { font-size: var(--wp--preset--font-size--xs); text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--muted); font-weight: 600; }
.wp-block-table.is-style-comparison :where(td, th):first-child { color: var(--wp--preset--color--muted); width: 50%; }
.wp-block-table.is-style-comparison :where(td, th):last-child { background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--contrast); font-weight: 600; }
.wp-block-table.is-style-comparison thead th:last-child { color: var(--wp--preset--color--accent-strong); border-radius: var(--vp-radius-m) var(--vp-radius-m) 0 0; }
.wp-block-table.is-style-comparison tbody tr:last-child td:last-child { border-radius: 0 0 var(--vp-radius-m) var(--vp-radius-m); }
.wp-block-table.is-style-comparison tbody tr:last-child td { border-bottom: 0; }
.wp-block-table.is-style-comparison td:first-child::before { content: "— "; opacity: .5; }
@media (max-width: 600px) {
	.wp-block-table.is-style-comparison :where(th, td) { padding: .8rem .7rem; }
}

/* ---------- Pricing ---------- */
.vp-price { font-size: var(--wp--preset--font-size--xxl) !important; font-weight: 750; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; margin-block: .75rem .25rem !important; }
.vp-price span, .vp-price em { white-space: nowrap; font-size: var(--wp--preset--font-size--s); font-weight: 500; font-style: normal; color: var(--wp--preset--color--muted); letter-spacing: 0; }
.vp-plan { display: flex; flex-direction: column; }
.vp-plan > .wp-block-buttons { margin-top: auto; padding-top: 1rem; }
.vp-plan .wp-block-button, .vp-plan .wp-block-button__link { width: 100%; }
.vp-plan--featured { border-color: var(--wp--preset--color--contrast) !important; box-shadow: 0 0 0 1px var(--wp--preset--color--contrast), var(--wp--preset--shadow--soft) !important; }

/* ---------- FAQ (Details block) ---------- */
.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--m);
	color: var(--wp--preset--color--contrast);
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: flex-start;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	flex: 0 0 auto;
	font-weight: 400;
	font-size: 1.4rem;
	line-height: 1;
	color: var(--wp--preset--color--muted);
	transition: transform .2s var(--vp-ease);
}
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--muted); margin-top: .75rem; max-width: 68ch; }

/* ---------- Footer ---------- */
.vp-footer a { color: var(--wp--preset--color--ink-muted); text-decoration: none; }
.vp-footer a:hover { color: var(--wp--preset--color--ink-text); }
.vp-footer .wp-block-navigation { gap: .55rem; }
.vp-footer h2, .vp-footer h3 { font-size: var(--wp--preset--font-size--xs); text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--ink-text); }

/* ---------- Subtle entrance (respecting reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.vp-rise { animation: vp-rise .7s var(--vp-ease) both; }
	.vp-rise-2 { animation: vp-rise .7s .12s var(--vp-ease) both; }
	@keyframes vp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation: none !important; transition: none !important; }
}

/* Hero glow – one soft light, no gradients carnival */
.vp-hero { position: relative; overflow: hidden; }
.vp-hero::before {
	content: "";
	position: absolute;
	left: 50%; top: -30%;
	width: 900px; height: 600px;
	transform: translateX(-50%);
	background: radial-gradient(closest-side, rgba(34, 217, 138, .13), transparent);
	pointer-events: none;
}
.vp-hero > * { position: relative; }

/* Section divider line on light sections */
.vp-border-top { border-top: 1px solid var(--wp--preset--color--line); }

/* Sections sit flush against each other and the footer (no white seams). */
.wp-site-blocks > * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }

/* Header buttons stay on one line on small screens. */
.vp-header .wp-block-button__link { white-space: nowrap; }
@media (max-width: 400px) { .vp-header .wp-block-button__link { padding: .55rem .8rem; font-size: .8125rem; } }
