/**
 * Design Lead Pros – theme styles.
 *
 * theme.json is the source of truth for design tokens. Reference presets here
 * via CSS custom properties, e.g. var(--wp--preset--color--primary),
 * var(--wp--preset--spacing--40), var(--wp--preset--font-size--large).
 * Do not hard-code hex values or pixel sizes that have a preset equivalent
 * (radii, hairline borders and icon sizes are the deliberate exceptions).
 *
 * Mobile-first: base rules are the mobile layout; min-width queries add
 * larger layouts. Breakpoint tiers (Elementor-style):
 *   mobile  <= 767px   (base styles, no query)
 *   tablet  >= 768px   @media (min-width: 768px)
 *   desktop >= 1025px  @media (min-width: 1025px)
 * Note: core's Navigation block flips its hamburger overlay at its own
 * fixed 600px breakpoint — leave it be.
 *
 * Class prefix: dlp-
 */

/* ---------- Global ---------- */
html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* Anchor landing: cancel the section's top padding so the heading, not the
   padded edge, lands near the viewport top with 16px to breathe. */
.dlp-section {
	scroll-margin-top: calc(16px - var(--wp--preset--spacing--60));
}

/* Root parts and sections butt together without page-background seams. */
.wp-site-blocks > *,
main.wp-block-group > * {
	margin-block-start: 0;
}

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

/* Grid/flex containers space their children with gap, not flow margins. */
.dlp-hero-dash > *,
.dlp-two-grid > *,
.dlp-three-grid > *,
.dlp-four-grid > *,
.dlp-timeline > *,
.dlp-step > *,
.dlp-guarantee-grid > *,
.dlp-faq-grid > *,
.dlp-faq-list > *,
.dlp-header-row > *,
.dlp-footer-row > * {
	margin-block-start: 0;
}

/* ---------- Type helpers ---------- */
.dlp-eyebrow,
.dlp-label,
.dlp-mono,
.dlp-pill {
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.4;
}

.dlp-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--wp--preset--color--deep);
}

.dlp-eyebrow::before {
	content: "";
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
}

.dlp-eyebrow--ink {
	color: var(--wp--preset--color--contrast);
}

.dlp-eyebrow--ink::before {
	background: var(--wp--preset--color--contrast);
}

.dlp-eyebrow--white {
	color: var(--wp--preset--color--white);
}

.dlp-eyebrow--white::before {
	background: var(--wp--preset--color--white);
}

.dlp-label {
	color: var(--wp--preset--color--deep);
}

.dlp-mono {
	color: var(--wp--preset--color--moss);
}

/* Section heading block: eyebrow + H2 (+ optional pills on the right). */
.dlp-section-head {
	margin-bottom: var(--wp--preset--spacing--50);
}

.dlp-section-head > * + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

.dlp-section-head h2 {
	max-width: 24ch;
}

.dlp-section-head--row {
	gap: var(--wp--preset--spacing--30);
}

.dlp-section-head--row > * {
	margin-block-start: 0;
}

.dlp-section-head--row > .wp-block-group > * + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

.dlp-section-head--tight {
	margin-bottom: 0;
}

/* ---------- TEMPORARY V1/V2 switcher links (both headers) ---------- */
/* Delete this block together with the two navigation-link blocks in
   patterns/header-content.php and patterns/v2-header-content.php. */
.dlp-temp-nav a {
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.08em;
	opacity: 0.6;
}

.dlp-temp-nav a:hover {
	opacity: 1;
}

.dlp-temp-nav--first {
	margin-left: var(--wp--preset--spacing--20);
	padding-left: var(--wp--preset--spacing--30);
	border-left: 1px solid currentColor;
}

/* Core's hamburger overlay stacks links vertically: no divider there. */
.wp-block-navigation__responsive-container.is-menu-open .dlp-temp-nav--first {
	margin-left: 0;
	padding-left: 0;
	border-left: 0;
}

/* ---------- Header (not sticky, by decision) ---------- */
.dlp-site-header {
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--white) 10%, transparent);
}

.dlp-header-logo {
	margin: 0;
	line-height: 0;
}

.dlp-header-logo img {
	display: block;
	height: 26px;
	width: auto;
}

.dlp-header-nav a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--leaf-light);
}

/* Header CTA: hidden below desktop (the hamburger / inline links carry the
   anchors and the hero CTA is one swipe away). Core sets display:flex on
   .wp-block-buttons.is-layout-flex, so match that specificity. */
.wp-block-buttons.dlp-header-cta {
	display: none;
}

.dlp-btn-green .wp-block-button__link {
	border-radius: 999px;
	padding: 0.65rem 1.25rem;
	white-space: nowrap;
}

/* Preset colour classes carry !important in core, so the theme.json button
   hover can't override them — restate the hover here for the green pill. */
.dlp-btn-green .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--deep) !important;
}

@media (min-width: 768px) {
	.dlp-header-logo img {
		height: 30px;
	}
}

@media (min-width: 1025px) {
	.wp-block-buttons.dlp-header-cta {
		display: flex;
	}
}

/* ---------- Hero (dark band, centered copy, wide dashboard below) ---------- */
.dlp-hero-copy {
	text-align: center;
}

.dlp-hero-copy > * + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

.dlp-hero h1 {
	max-width: 20ch;
	margin-inline: auto;
}

.dlp-hero-sub {
	max-width: 48ch;
	margin-inline: auto;
}

.dlp-hero-actions {
	margin-block-start: var(--wp--preset--spacing--40);
}

/* Eyebrow as a pill on the dark band. */
.dlp-eyebrow--pill {
	display: inline-flex;
	padding: 0.45rem 0.9rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--leaf-light) 35%, transparent);
	border-radius: 999px;
	color: var(--wp--preset--color--leaf-light);
}

/* Ghost secondary button: core's outline style keeps the background
   transparent; preset text colour carries !important, hence the override. */
.dlp-btn-ghost .wp-block-button__link {
	border-color: color-mix(in srgb, var(--wp--preset--color--white) 30%, transparent);
}

.dlp-btn-ghost .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--leaf-light);
	color: var(--wp--preset--color--leaf-light) !important;
}

.dlp-hero-dash {
	margin-block-start: var(--wp--preset--spacing--60);
}

/* Decorative "shared CRM" dashboard card. Real text, so it scales and
   stays crisp; aria-hidden in markup because it's illustration. */
.dlp-dash {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 16px;
	box-shadow: 0 30px 60px -36px rgba(20, 20, 20, 0.35);
	padding: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.35;
}

.dlp-dash__bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-bottom: 0.75rem;
	margin-bottom: 0.75rem;
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.dlp-dash__dots {
	display: flex;
	gap: 4px;
}

.dlp-dash__dots i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--rule);
}

.dlp-dash__title,
.dlp-dash__label,
.dlp-dash__colhead,
.dlp-dash__card em {
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: var(--wp--preset--font-size--xx-small);
	font-style: normal;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--moss);
}

/* "Live" pill in the title bar. */
.dlp-dash__live {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-left: auto;
	padding: 0.2rem 0.6rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--leaf-light) 40%, transparent);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: var(--wp--preset--font-size--xx-small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--leaf-light);
}

.dlp-dash__live::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--leaf-light);
}

.dlp-dash__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}

.dlp-dash__stat {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 10px;
}

.dlp-dash__stat--hot {
	background: var(--wp--preset--color--tint);
	border-color: var(--wp--preset--color--leaf-light);
}

.dlp-dash__stat--hot .dlp-dash__label,
.dlp-dash__stat--hot .dlp-dash__num {
	color: var(--wp--preset--color--deep);
}

.dlp-dash__num {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.dlp-dash__board {
	display: none;
}

.dlp-dash__col {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 0.5rem;
	border-radius: 10px;
	background: var(--wp--preset--color--base);
}

.dlp-dash__col--hot {
	background: var(--wp--preset--color--tint);
}

.dlp-dash__colhead {
	display: flex;
	justify-content: space-between;
	gap: 0.25rem;
	padding: 0 0.1rem 0.15rem;
}

.dlp-dash__card {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.5rem 0.55rem;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 8px;
}

.dlp-dash__col--hot .dlp-dash__card {
	border-color: var(--wp--preset--color--leaf-light);
}

.dlp-dash__card strong {
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

.dlp-dash__card span {
	color: var(--wp--preset--color--moss);
}

.dlp-dash__card em {
	margin-top: 0.15rem;
	color: var(--wp--preset--color--deep);
	font-size: 0.625rem; /* 10px tag text inside the illustration only */
}

@media (min-width: 768px) {
	.dlp-dash__stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.dlp-dash__board {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.5rem;
		margin-top: 0.75rem;
	}
}

/* Dark variant (hero band). Translucent whites/greens via color-mix so the
   palette stays the single source of truth. */
.dlp-dash--dark {
	background: color-mix(in srgb, var(--wp--preset--color--white) 4%, transparent);
	border-color: color-mix(in srgb, var(--wp--preset--color--white) 12%, transparent);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
	color: var(--wp--preset--color--white);
}

.dlp-dash--dark .dlp-dash__bar {
	border-color: color-mix(in srgb, var(--wp--preset--color--white) 10%, transparent);
}

.dlp-dash--dark .dlp-dash__dots i {
	background: color-mix(in srgb, var(--wp--preset--color--white) 20%, transparent);
}

.dlp-dash--dark .dlp-dash__title,
.dlp-dash--dark .dlp-dash__label,
.dlp-dash--dark .dlp-dash__colhead,
.dlp-dash--dark .dlp-dash__card span {
	color: color-mix(in srgb, var(--wp--preset--color--white) 58%, transparent);
}

.dlp-dash--dark .dlp-dash__stat,
.dlp-dash--dark .dlp-dash__card {
	background: color-mix(in srgb, var(--wp--preset--color--white) 5%, transparent);
	border-color: color-mix(in srgb, var(--wp--preset--color--white) 12%, transparent);
}

.dlp-dash--dark .dlp-dash__col {
	background: color-mix(in srgb, var(--wp--preset--color--white) 3%, transparent);
}

.dlp-dash--dark .dlp-dash__stat--hot,
.dlp-dash--dark .dlp-dash__col--hot {
	background: color-mix(in srgb, var(--wp--preset--color--leaf-light) 12%, transparent);
	border-color: color-mix(in srgb, var(--wp--preset--color--leaf-light) 45%, transparent);
}

.dlp-dash--dark .dlp-dash__stat--hot .dlp-dash__label,
.dlp-dash--dark .dlp-dash__stat--hot .dlp-dash__num,
.dlp-dash--dark .dlp-dash__card em,
.dlp-dash--dark .dlp-dash__col--hot .dlp-dash__colhead {
	color: var(--wp--preset--color--leaf-light);
}

.dlp-dash--dark .dlp-dash__col--hot .dlp-dash__card {
	border-color: color-mix(in srgb, var(--wp--preset--color--leaf-light) 45%, transparent);
}

.dlp-dash--dark .dlp-dash__card strong {
	color: var(--wp--preset--color--white);
}

@media (min-width: 1025px) {
	.dlp-hero-dash .dlp-dash {
		padding: var(--wp--preset--spacing--40);
	}

	.dlp-hero-dash .dlp-dash__num {
		font-size: var(--wp--preset--font-size--xx-large);
	}

	.dlp-hero-dash .dlp-dash__stats,
	.dlp-hero-dash .dlp-dash__board {
		gap: 0.75rem;
	}
}

/* ---------- Cards ---------- */
.dlp-card {
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 14px;
}

.dlp-card--pad {
	padding: var(--wp--preset--spacing--40);
}

.dlp-card--dark {
	border-color: var(--wp--preset--color--contrast);
}

.dlp-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.dlp-icon-tile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--primary);
}

.dlp-icon-tile svg {
	width: 22px;
	height: 22px;
}

.dlp-icon {
	display: inline-flex;
	color: var(--wp--preset--color--primary);
}

.dlp-icon svg {
	width: 20px;
	height: 20px;
}

/* Check / cross lists inside the old-way / new-way cards. */
.dlp-list {
	list-style: none;
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0;
}

.dlp-list li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.5rem;
}

.dlp-list li::before {
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 700;
	line-height: 1.6;
}

.dlp-list--x li {
	color: var(--wp--preset--color--moss);
}

.dlp-list--x li::before {
	content: "\00d7";
	color: var(--wp--preset--color--moss);
}

.dlp-list--check li::before {
	content: "\2713";
	color: var(--wp--preset--color--leaf-light);
}

/* ---------- Grids ---------- */
.dlp-two-grid,
.dlp-three-grid,
.dlp-four-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--40);
}

@media (min-width: 768px) {
	.dlp-two-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dlp-three-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--30);
	}

	.dlp-four-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--30);
	}
}

@media (min-width: 1025px) {
	.dlp-three-grid {
		gap: var(--wp--preset--spacing--40);
	}

	.dlp-four-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ---------- Onboarding timeline ---------- */
.dlp-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.dlp-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4rem 0.8rem;
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--moss);
	font-size: var(--wp--preset--font-size--xx-small);
}

.dlp-pill::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--moss);
}

.dlp-pill--green {
	background: var(--wp--preset--color--tint);
	border-color: var(--wp--preset--color--leaf-light);
	color: var(--wp--preset--color--deep);
}

.dlp-pill--green::before {
	background: var(--wp--preset--color--primary);
}

.dlp-timeline {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--40);
}

.dlp-step {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
}

.dlp-step__node {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--moss);
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
}

.dlp-step--active .dlp-step__node {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.dlp-step__body {
	flex: 1;
	padding: var(--wp--preset--spacing--30);
	border: 1px solid transparent;
	border-radius: 14px;
}

.dlp-step__body > * {
	margin-block-start: 0;
}

.dlp-step__body > * + * {
	margin-block-start: 0.5rem;
}

.dlp-step--active .dlp-step__body {
	background: var(--wp--preset--color--tint);
	border-color: var(--wp--preset--color--leaf-light);
}

@media (min-width: 768px) {
	.dlp-timeline {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1025px) {
	.dlp-timeline {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--30);
	}

	/* Connector line through the node row, desktop only. */
	.dlp-step::after {
		content: "";
		position: absolute;
		top: 20px;
		left: 40px;
		right: calc(-1 * var(--wp--preset--spacing--30));
		height: 1px;
		background: var(--wp--preset--color--rule);
	}

	.dlp-step:last-child::after {
		display: none;
	}
}

/* ---------- Guarantee band ---------- */
.dlp-guarantee-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--50);
	align-items: center;
}

.dlp-guarantee-copy > * + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

.dlp-guarantee h2 {
	max-width: 24ch;
}

.dlp-guarantee-mark {
	display: none;
}

@media (min-width: 1025px) {
	.dlp-guarantee-grid {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	}

	.dlp-guarantee-mark {
		display: flex;
		justify-content: flex-end;
	}

	.dlp-guarantee-mark svg {
		width: 220px;
		height: auto;
	}
}

/* ---------- FAQ (core Details blocks, no JS) ---------- */
.dlp-faq-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--50);
	align-items: start;
}

.dlp-faq-item {
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.dlp-faq-item[open] {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 12px;
}

.dlp-faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	cursor: pointer;
	list-style: none;
	font-weight: 500;
}

.dlp-faq-item summary::-webkit-details-marker {
	display: none;
}

.dlp-faq-item summary::after {
	content: "+";
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 50%;
	color: var(--wp--preset--color--deep);
	font-weight: 400;
	line-height: 1;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* "+" turns into "x" by rotating, in step with the drawer (faq.js adds
   .is-closing for the duration of the close animation). */
.dlp-faq-item[open]:not(.is-closing) summary::after {
	transform: rotate(45deg);
}

.dlp-faq-item {
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Small bottom margin so the space under the answer reads the same as the
   space above the question (whose 28px marker makes its line box taller).
   Scoped to outrank core's "> :last-child { margin-block-end: 0 }". */
.dlp-faq .dlp-faq-item > p {
	margin: var(--wp--preset--spacing--30) 0 0.375rem;
	max-width: 60ch;
}

@media (min-width: 1025px) {
	.dlp-faq-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
	}
}

/* ---------- Closing CTA ---------- */
.dlp-cta-inner > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.dlp-cta-mark {
	margin: 0;
	line-height: 0;
}

.dlp-cta-mark img {
	width: 38px;
	height: 40px;
}

.dlp-cta h2 {
	max-width: 22ch;
}

/* ---------- Footer ---------- */
.dlp-footer-row {
	gap: var(--wp--preset--spacing--30);
}

.dlp-footer-logo {
	margin: 0;
	line-height: 0;
}

.dlp-footer-logo img {
	display: block;
	height: 22px;
	width: auto;
}

.dlp-footer-copy {
	margin: 0;
	color: var(--wp--preset--color--leaf-light);
	letter-spacing: 0.08em;
}
