/**
 * Digital Infinite component styles.
 * Colors, fonts and sizes come from theme.json presets (var(--wp--preset--...)).
 * Layout: centered statements, alternating white / light-grey bands, rounded tiles.
 */

:root {
	--di-c-base: var(--wp--preset--color--base);
	--di-c-band: var(--wp--preset--color--band);
	--di-c-text: var(--wp--preset--color--contrast);
	--di-c-muted: var(--wp--preset--color--muted);
	--di-c-hair: var(--wp--preset--color--hairline);
	--di-c-night: var(--wp--preset--color--night);
	--di-c-night-tile: var(--wp--preset--color--night-tile);
	--di-c-on-night: var(--wp--preset--color--on-night);
	--di-c-on-night-muted: var(--wp--preset--color--on-night-muted);
	--di-c-accent: var(--wp--preset--color--accent);
	--di-c-accent-hover: #0059D6;
	--di-c-mint: var(--wp--preset--color--mint);
	--di-c-gold: var(--wp--preset--color--gold);
	--di-f-display: var(--wp--preset--font-family--display);
	--di-radius: 28px;
	--di-section: clamp(72px, 10vw, 128px);
	--di-admin-bar: var(--wp-admin--admin-bar--height, 0px);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { text-wrap: balance; }

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--di-c-accent);
	outline-offset: 3px;
}

/* ---------- Layout resets ---------- */

/* Full-width sections sit flush against each other. */
.di-main { margin-block: 0; padding-block: 0; }
.wp-site-blocks > :is(.di-main, .di-footer) { margin-block-start: 0; }
.di-main--landing > .wp-block-post-content > * { margin-block: 0; }
.di-main--page { padding-block: clamp(48px, 7vw, 96px); }
.di-main--checkout { padding-block: clamp(32px, 5vw, 64px); }

/* Our grids space children with gap, not flow margins. */
body :is(.di-bento, .di-plans, .di-steps, .di-stats, .di-values, .di-contact, .di-footer__grid, .di-feature) > * { margin-block: 0; }

/* ---------- Header ---------- */

.di-header {
	position: sticky;
	top: var(--di-admin-bar);
	z-index: 50;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	padding-inline: var(--wp--style--root--padding-left);
}
/* Blur lives on a pseudo-element: a backdrop-filter on the header itself would
   trap the full-screen mobile menu inside the header bar. */
.di-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, 0.8);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
}
@media (max-width: 600px) { .di-header { top: 0; } }
body .di-header__inner {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	min-height: 52px;
	gap: 20px;
}
.di-header__actions { gap: 28px; }
.di-logo { display: inline-flex; align-items: center; line-height: 0; }
.di-logo img { width: 128px; height: auto; display: block; }
.wp-block-site-logo.di-logo img { width: 128px; height: auto; }

.di-nav .wp-block-navigation-item__content { color: #424245; }
.di-nav .wp-block-navigation-item__content:hover,
.di-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--di-c-text); text-decoration: none; }
.di-nav.wp-block-navigation { gap: 28px; }
.di-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px var(--wp--style--root--padding-left);
	background: var(--di-c-base);
}
.di-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--di-f-display);
	font-size: 1.6rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--di-c-text);
	padding-block: 6px;
}
.di-nav .wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container) {
	align-items: center;
	text-align: center;
	gap: 8px;
}
.di-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { justify-content: center; }
.di-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--di-c-text); text-decoration: none; }
.di-cart[hidden] { display: none; }
/* Desktop: menu links, then the cart, then "Get started". Mobile keeps the cart between the button and the menu. */
@media (min-width: 600px) { .di-cart { order: 1; } .di-header__cta { order: 2; } }
.di-cart:hover { color: var(--di-c-accent); text-decoration: none; }
.di-cart svg { width: 22px; height: 22px; }
.di-cart__count { position: absolute; top: -5px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--di-c-accent); color: #fff; font: 600 11px / 18px var(--wp--preset--font-family--body); text-align: center; letter-spacing: 0; box-sizing: border-box; }
.di-header__cta .wp-block-button__link { padding: 0.55em 1.05em; font-size: 0.8rem; white-space: nowrap; }

/* Mobile header: logo on the left, then "Get started", then the menu button.
   The open menu starts below the header so the logo and button stay visible,
   and its close button sits exactly where the menu button was. */
@media (max-width: 599px) {
	.di-header__actions { gap: 14px; }
	.di-header__cta { order: -1; }
	/* WordPress slides the menu in with a transform, which would also move
	   the close button; fade it in instead. */
	.di-nav .wp-block-navigation__responsive-container.is-menu-open {
		animation: di-fade 0.2s ease both;
		transform: none;
		top: var(--di-menu-top, 53px);
		padding-top: clamp(32px, 10vh, 72px);
		box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.08);
	}
	.di-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog { animation: none; transform: none; }
	.admin-bar .di-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog { margin-top: 0; }
	.di-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		position: fixed;
		top: var(--di-menu-btn-top, 14px);
		right: var(--di-menu-btn-right, 16px);
		background: var(--di-c-base);
		border-radius: 6px;
	}
	.di-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 0; }
}
@media (max-width: 359px) {
	.di-logo img, .wp-block-site-logo.di-logo img { width: 108px; }
	.di-header__actions { gap: 10px; }
}

.di-secure { margin: 0; font-size: 0.85rem; color: var(--di-c-muted); }
.di-secure::before { content: "🔒︎ "; font-size: 0.8em; filter: grayscale(1); }

/* ---------- Shared type helpers ---------- */

.di-kicker {
	font-family: var(--di-f-display);
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--di-c-muted);
	letter-spacing: -0.01em;
	margin-bottom: 0.75rem;
}
.di-lede {
	font-size: var(--wp--preset--font-size--large);
	color: var(--di-c-muted);
	line-height: 1.4;
	letter-spacing: -0.02em;
	max-width: 34ch;
}
.has-text-align-center.di-lede { margin-inline: auto; }
.di-caption { font-size: 12px; color: var(--di-c-muted); margin: 8px 0 0; text-align: center; }

/* ---------- Buttons ---------- */

.wp-block-button__link { transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.wp-block-button.is-style-dark .wp-block-button__link { background: var(--di-c-text); color: #fff; }
.wp-block-button.is-style-dark .wp-block-button__link:hover { background: #3A3A3C; }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--di-c-accent);
	border: 0;
	box-shadow: inset 0 0 0 1px var(--di-c-accent);
	padding: 0.8em 1.5em;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--di-c-accent); color: #fff; }
.wp-block-button.is-style-text-link .wp-block-button__link {
	background: transparent;
	color: var(--di-c-accent);
	padding-inline: 0.25em;
	font-size: 1.05rem;
}
.wp-block-button.is-style-text-link .wp-block-button__link::after { content: " ›"; }
.wp-block-button.is-style-text-link .wp-block-button__link:hover { background: transparent; text-decoration: underline; }
.di-ctas { gap: 22px; margin-top: 28px; }

/* ---------- Section styles ---------- */

.di-hero,
.di-statement,
.di-features,
.di-steps-section,
.di-pricing,
.di-cta,
.di-features-list,
.di-story-section,
.di-values-section,
.di-contact-section { padding-block: var(--di-section); }

.wp-block-group.is-style-band { background: var(--di-c-band); }
.wp-block-group.is-style-night { background: var(--di-c-night); color: var(--di-c-on-night); }
.wp-block-group.is-style-tile {
	background: var(--di-c-base);
	border-radius: var(--di-radius);
	padding: 32px;
}
.is-style-band .wp-block-group.is-style-tile { background: var(--di-c-base); }
:not(.is-style-band) > .wp-block-group.is-style-tile:not(.di-tile--dark) { box-shadow: inset 0 0 0 1px var(--di-c-hair); }

/* Hero */
.di-hero { padding-block-end: 0; overflow: hidden; }
.di-hero h1 em,
.di-hero h1 i {
	font-style: normal;
	background: var(--wp--preset--gradient--brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.di-hero .di-lede { margin-top: 20px; }
body .di-hero > .wp-block-html,
body .di-hero > .di-stage { max-width: 940px; }

/* Device stage (hero illustration) */
.di-stage { position: relative; max-width: 940px; margin: clamp(48px, 7vw, 80px) auto 0; pointer-events: none; }
.di-stage::before {
	content: "";
	position: absolute;
	inset: 10% 5% -10%;
	background:
		radial-gradient(closest-side, rgba(10, 108, 255, 0.18), transparent 70%),
		radial-gradient(closest-side at 70% 60%, rgba(31, 181, 122, 0.16), transparent 70%);
	filter: blur(10px);
}
.di-laptop { position: relative; z-index: 1; width: 86%; margin-inline: auto; }
.di-laptop__lid { background: #0C0C0D; border-radius: 18px 18px 0 0; padding: 2.2% 2.2% 0; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.45); }
.di-laptop__screen { aspect-ratio: 16 / 10; border-radius: 6px 6px 0 0; overflow: hidden; background: #fff; display: flex; flex-direction: column; text-align: left; }
.di-laptop__base { height: 14px; background: linear-gradient(#D9D9DE, #B5B5BB); border-radius: 0 0 14px 14px; width: 112%; margin-left: -6%; }
.di-laptop__base::after { content: ""; display: block; width: 14%; height: 5px; margin: 0 auto; background: #A1A1A6; border-radius: 0 0 6px 6px; }
.di-site-nav { display: flex; justify-content: space-between; align-items: center; padding: 2.4% 4%; font: 600 clamp(7px, 1.1vw, 11px) / 1.2 var(--wp--preset--font-family--body); color: #1D1D1F; border-bottom: 1px solid #EEE; }
.di-site-nav b { font-family: var(--di-f-display); font-weight: 800; letter-spacing: -0.03em; font-size: 1.25em; }
.di-site-nav span { display: flex; gap: 1.6em; color: #6E6E73; font-weight: 500; }
.di-site-nav i { font-style: normal; background: #0E7C6B; color: #fff; padding: 0.45em 1em; border-radius: 99px; }
.di-site-hero { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 4%; padding: 5% 4%; background: linear-gradient(160deg, #F2FBF8, #fff 60%); align-items: center; }
.di-site-hero h4 { margin: 0; font: 800 clamp(12px, 2.6vw, 28px) / 1.05 var(--di-f-display); letter-spacing: -0.04em; color: #0B3B34; }
.di-site-hero p { font-size: clamp(6px, 1vw, 11px); color: #4B5B58; margin: 0.8em 0 0; line-height: 1.4; }
.di-site-btns { display: flex; gap: 0.6em; margin-top: 1.2em; font: 600 clamp(6px, 0.95vw, 10px) / 1 var(--wp--preset--font-family--body); }
.di-site-btns span { padding: 0.7em 1.2em; border-radius: 99px; background: #0E7C6B; color: #fff; }
.di-site-btns span + span { background: #fff; color: #0E7C6B; box-shadow: inset 0 0 0 1px #0E7C6B; }
.di-site-photo {
	aspect-ratio: 4 / 3.4;
	border-radius: 10px;
	position: relative;
	background:
		radial-gradient(circle at 30% 35%, #FFE7C2 0 14%, transparent 15%),
		radial-gradient(ellipse at 30% 75%, #F5C08A 0 22%, transparent 23%),
		radial-gradient(circle at 68% 40%, #D9EFE9 0 16%, transparent 17%),
		radial-gradient(ellipse at 68% 80%, #9BD3C4 0 24%, transparent 25%),
		linear-gradient(180deg, #CFEDE5, #E9F7F3);
}
.di-site-photo span { position: absolute; left: 6%; bottom: 7%; background: #fff; color: #1D1D1F; font: 600 clamp(6px, 0.9vw, 10px) / 1 var(--wp--preset--font-family--body); padding: 0.5em 0.8em; border-radius: 8px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); }
.di-phone { position: absolute; z-index: 2; right: 1%; bottom: -4%; width: 25%; aspect-ratio: 9 / 19; background: #0C0C0D; border-radius: 16% / 7.6%; padding: 3.2%; box-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.5); }
.di-phone__screen { height: 100%; border-radius: 13% / 6.2%; overflow: hidden; background: linear-gradient(170deg, #1B3A5C 0%, #0F5D63 55%, #12856A 100%); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 14% 6% 6%; gap: 4%; text-align: left; }
.di-phone__time { font: 700 clamp(22px, 4.4vw, 46px) / 1 var(--di-f-display); letter-spacing: -0.03em; }
.di-phone__date { font-size: clamp(7px, 1vw, 11px); opacity: 0.8; margin-top: -2%; }
.di-note { width: 100%; background: rgba(255, 255, 255, 0.82); color: #1D1D1F; border-radius: clamp(8px, 1.4vw, 14px); padding: 6% 7%; font-size: clamp(6.5px, 0.95vw, 10.5px); line-height: 1.3; }
.di-note b { display: flex; justify-content: space-between; font-weight: 600; }
.di-note b small { font-weight: 400; color: #6E6E73; }
.di-note:first-of-type { margin-top: 10%; }
.di-hero .di-caption { margin-top: 36px; }
@media (max-width: 640px) {
	.di-laptop { width: 100%; }
	.di-stage { margin-top: 88px; }
	.di-phone { width: 34%; right: -2%; bottom: -6%; }
	.di-site-hero { grid-template-columns: 1fr; }
	.di-site-photo, .di-site-nav span { display: none; }
}

/* Statement */
.di-statement h2 { max-width: 16ch; margin-inline: auto; color: var(--di-c-on-night); }
.di-statement h2 em { font-style: normal; color: var(--di-c-on-night-muted); }
.di-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; text-align: center; }
.di-stat > * { margin: 0; }
.di-stat__num {
	font: 800 clamp(2.5rem, 6vw, 4.5rem) / 1.05 var(--di-f-display);
	letter-spacing: -0.05em;
	background: linear-gradient(180deg, #fff, #8E8E93);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.di-stat__label { color: var(--di-c-on-night-muted); font-size: 15px; margin-top: 6px; }
@media (max-width: 640px) { .di-stats { grid-template-columns: 1fr; gap: 36px; } }

/* Section headings */
.di-features > .di-lede,
.di-pricing > .di-lede { margin-top: 14px; }
.di-bento, .di-plans, .di-steps, .di-values, .di-contact { margin-top: 48px; }

/* Bento grid */
.di-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.di-bento > .is-style-tile { display: flex; flex-direction: column; gap: 10px; overflow: hidden; min-width: 0; }
.di-bento > .is-style-tile > * { margin: 0; }
.di-bento > .is-style-tile > p,
.di-values .is-style-tile p { color: var(--di-c-muted); font-size: 15.5px; }
.di-span-2 { grid-column: span 2; }
.di-span-3 { grid-column: span 3; }
.di-span-4 { grid-column: span 4; }
@media (max-width: 900px) { .di-span-2, .di-span-3, .di-span-4 { grid-column: span 6; } }
.wp-block-group.is-style-tile.di-tile--dark,
.is-style-band .wp-block-group.is-style-tile.di-tile--dark { background: var(--di-c-night-tile); color: var(--di-c-on-night); }
.di-bento > .di-tile--dark > p { color: var(--di-c-on-night-muted); }
.di-art { margin-top: auto; padding-top: 24px; }
.di-bento .wp-block-html { margin-top: auto; }
/* Illustrations fill the tile's content width so left and right margins match. */
.di-art, .di-art * { box-sizing: border-box; }
.di-bento .di-art :is(.di-inbox, .di-bubbles, .di-cal, .di-bars) { width: 100%; max-width: none; }
.di-bento .di-art > .di-caption { text-align: left; }

/* Illustration pieces */
.di-big-num { font: 800 clamp(3.5rem, 7vw, 5.5rem) / 1 var(--di-f-display); letter-spacing: -0.05em; }
.di-stars { color: var(--di-c-gold); letter-spacing: 4px; font-size: 1.4rem; }
.di-center { text-align: center; }
.di-bubbles { display: grid; gap: 8px; max-width: 340px; width: 100%; }
.di-bubble { padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.35; width: fit-content; max-width: 88%; }
.di-bubble--in { background: #E9E9EB; color: #1D1D1F; border-bottom-left-radius: 5px; }
.di-bubble--out { background: var(--di-c-accent); color: #fff; justify-self: end; border-bottom-right-radius: 5px; }
.di-bubbles .di-caption { margin: 0; }
.di-cal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; font-size: 12px; text-align: center; width: 100%; max-width: 360px; }
.di-cal span { padding: 9px 0; border-radius: 10px; background: #2C2C2E; color: var(--di-c-on-night-muted); font-variant-numeric: tabular-nums; }
.di-cal span.h { background: transparent; padding: 0 0 4px; font-weight: 600; color: var(--di-c-on-night); }
.di-cal span.on { background: var(--di-c-mint); color: #fff; font-weight: 600; }
.di-inbox { border-radius: 16px; background: var(--di-c-band); padding: 6px 14px; width: 100%; box-sizing: border-box; }
.di-inbox--white { background: var(--di-c-base); max-width: 340px; }
.di-inbox > div { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; font-size: 13.5px; }
.di-inbox > div + div { border-top: 1px solid var(--di-c-hair); }
.di-inbox i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600; color: #fff; }
.di-inbox small { color: var(--di-c-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.di-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; width: 100%; }
.di-bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--di-c-accent), #7FB0FF); }

/* Steps */
.di-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.di-step { padding-top: 20px; border-top: 2px solid var(--di-c-text); }
.di-step > * { margin: 0; }
.di-step > * + * { margin-top: 8px; }
.di-step h3 { font-size: 1.3rem; }
.di-step p { color: var(--di-c-muted); font-size: 15.5px; }
.di-step .di-step__n { font: 600 14px / 1.4 var(--di-f-display); }
@media (max-width: 860px) { .di-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .di-steps { grid-template-columns: 1fr; } }

/* Pricing */
.di-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.di-plan.is-style-tile { padding: 44px 32px 36px; display: flex; flex-direction: column; position: relative; }
.di-plan > * { margin: 0; }
.di-plans .wp-block-group.di-plan--pick {
	border: 2px solid transparent;
	background: linear-gradient(var(--di-c-base), var(--di-c-base)) padding-box, var(--wp--preset--gradient--brand) border-box;
	box-shadow: 0 28px 60px -28px rgba(10, 108, 255, 0.45);
}
.di-plan .di-plan__badge {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--wp--preset--gradient--brand);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
	box-shadow: 0 6px 16px -6px rgba(10, 108, 255, 0.5);
}
@media (min-width: 921px) { .di-plans .di-plan--pick { transform: translateY(-10px); } }
.di-plan h3 { font-size: 1.9rem; margin-top: 8px; }
.di-plan .di-plan__for { color: var(--di-c-muted); font-size: 15px; margin-top: 10px; min-height: 2.9em; }
.di-plan .di-plan__price { font: 800 3rem / 1 var(--di-f-display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; margin-top: 18px; }
.di-plan .di-plan__per { font-size: 14px; color: var(--di-c-muted); margin-top: 6px; }
.di-plan .wp-block-buttons { margin-top: 22px; }
.di-plan .di-plan__lead { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--di-c-hair); font-weight: 600; font-size: 15px; }
.di-plan .di-plan__lead + .is-style-checks { border-top: 0; padding-top: 12px; margin-top: 0; }
@media (max-width: 920px) { .di-plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; row-gap: 32px; } }

/* Check list */
ul.is-style-checks { list-style: none; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--di-c-hair); display: grid; gap: 12px; font-size: 15px; }
ul.is-style-checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 0; }
ul.is-style-checks li::before {
	content: "";
	width: 18px;
	height: 18px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--di-c-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Closing CTA */
.di-cta h2 { max-width: 14ch; margin-inline: auto; }
.di-cta .di-lede { margin-top: 16px; }

/* ---------- Inner pages ---------- */

.di-page-head { padding-block: clamp(64px, 9vw, 112px) clamp(40px, 6vw, 64px); }
.di-page-head h1 { max-width: 14ch; margin-inline: auto; }
.di-page-head .di-lede { margin-top: 20px; }
.di-page-head + .di-features-list,
.di-page-head + .di-story-section { padding-top: 0; }

/* Services: alternating feature rows */
.di-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
body .di-feature + .di-feature { margin-top: clamp(64px, 9vw, 112px); }
.di-feature:nth-child(even) > .wp-block-html,
.di-feature:nth-child(even) > .di-feature__art { order: -1; }
.di-feature__copy > * { margin: 0; }
.di-feature__copy > * + * { margin-top: 14px; }
.di-feature__tag { font-size: 13px; font-weight: 600; color: var(--di-c-accent); }
.di-feature__text { color: var(--di-c-muted); font-size: 1.1rem; }
ul.di-dash { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 15.5px; }
ul.di-dash li::before { content: "— "; color: var(--di-c-muted); }
.di-feature__art { background: var(--di-c-band); border-radius: var(--di-radius); padding: 36px; min-height: 280px; display: grid; place-items: center; align-content: center; min-width: 0; }
.di-feature__art.is-dark { background: var(--di-c-night-tile); }
@media (max-width: 820px) {
	.di-feature { grid-template-columns: 1fr; }
	.di-feature:nth-child(even) > .wp-block-html,
	.di-feature:nth-child(even) > .di-feature__art { order: 0; }
}

/* About */
.di-story__intro { font: 700 clamp(1.5rem, 3vw, 2rem) / 1.25 var(--di-f-display); letter-spacing: -0.03em; }
.di-story { font-size: 1.2rem; line-height: 1.55; color: #424245; }
.di-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.di-values .is-style-tile { padding: 36px; }
.di-values .is-style-tile > * { margin: 0; }
.di-values .is-style-tile > * + * { margin-top: 10px; }
@media (max-width: 720px) { .di-values { grid-template-columns: 1fr; } }

/* Contact */
.di-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.di-contact .is-style-tile { padding: 36px; }
.di-contact__details > * { margin: 0; }
.di-label { font-size: 13px; color: var(--di-c-muted); }
.di-value { font: 700 1.3rem / 1.3 var(--di-f-display); letter-spacing: -0.02em; margin-top: 2px; }
.di-contact__details .di-value + .di-label { margin-top: 22px; }
.di-contact__details .di-contact__book { margin-top: 10px; }
.di-book-section { padding-block: clamp(40px, 6vw, 72px) var(--di-section); }
@media (max-width: 820px) { .di-contact { grid-template-columns: 1fr; } }

/* Contact form */
.di-form { display: grid; gap: 16px; }
.di-form p { margin: 0; }
.di-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.di-field { display: grid; gap: 6px; min-width: 0; }
.di-field label { font-size: 13px; color: var(--di-c-muted); }
.di-field :is(input, select, textarea) {
	font: inherit;
	font-size: 16px;
	padding: 14px 16px;
	border: 1px solid var(--di-c-hair);
	border-radius: 12px;
	background: var(--di-c-base);
	color: var(--di-c-text);
	width: 100%;
	box-sizing: border-box;
}
.di-field textarea { min-height: 120px; resize: vertical; }
.di-form__submit button { cursor: pointer; border: 0; }
.di-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.di-form__notice { padding: 12px 16px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.di-form__notice.is-success { background: #E8F7F0; color: #126B47; }
.di-form__notice.is-error { background: #FDECEC; color: #A1261F; }
@media (max-width: 520px) { .di-form__row { grid-template-columns: 1fr; } }

/* Coming soon page */
.di-coming-soon { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body .di-coming-soon > * { margin-block: 0; width: 100%; box-sizing: border-box; }
.di-cs-top { padding-block: 28px 0; }
.di-cs-top .di-logo img,
.di-cs-top .wp-block-site-logo img { width: 148px; }
.di-coming-soon .di-cs-hero { flex: 1; padding-block: clamp(48px, 8vw, 96px) 0; }
.di-cs-hero .di-lede { margin-top: 20px; }
.di-cs-contact { font-size: 14px; color: var(--di-c-muted); margin-top: 18px; }
.di-cs-foot { font-size: 12.5px; color: var(--di-c-muted); padding-block: 28px; background: var(--di-c-base); position: relative; z-index: 3; }
.di-notify { max-width: 460px; margin: 32px auto 0; }
.di-notify p { margin: 0; }
.di-notify__row { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--di-c-hair); border-radius: 999px; background: var(--di-c-base); }
.di-notify__row input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 16px;
	padding: 10px 16px;
	color: var(--di-c-text);
}
.di-notify__row input:focus { outline: none; }
.di-notify__row:focus-within { box-shadow: 0 0 0 3px rgba(10, 108, 255, 0.25); border-color: var(--di-c-accent); }
.di-notify__row button { cursor: pointer; border: 0; white-space: nowrap; }
.di-notify .di-form__notice { margin-bottom: 10px; text-align: center; }

/* Booking calendar */
.di-booking {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	background: var(--di-c-base);
	border-radius: var(--di-radius);
	box-shadow: 0 0 0 1px var(--di-c-hair);
	overflow: hidden;
	max-width: 880px;
	margin-inline: auto;
	text-align: left;
}
.di-booking p { margin: 0; }
.di-booking h3 { font-size: 1.35rem; margin: 0; }
.di-booking.is-loading { opacity: 0.6; transition: opacity 0.2s; }
.di-booking__cal { padding: 28px; border-right: 1px solid var(--di-c-hair); }
.di-booking__side { padding: 28px; min-width: 0; }
.di-booking__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.di-booking__month { font: 700 1.15rem / 1.2 var(--di-f-display); letter-spacing: -0.02em; }
.di-booking__nav {
	width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--di-c-band); color: var(--di-c-text); font-size: 1.3rem; line-height: 1;
}
.di-booking__nav:hover:not(:disabled) { background: #E8E8ED; }
.di-booking__nav:disabled { opacity: 0.3; cursor: default; }
.di-booking__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.di-booking__dow { font-size: 12px; font-weight: 600; color: var(--di-c-muted); padding-block: 6px; }
.di-booking__date {
	aspect-ratio: 1; max-width: 100%; border: 0; border-radius: 50%; background: transparent;
	font: 500 15px / 1 var(--wp--preset--font-family--body); color: #B0B0B5; font-variant-numeric: tabular-nums;
}
.di-booking__date.is-open { color: var(--di-c-accent); background: rgba(10, 108, 255, 0.08); font-weight: 600; cursor: pointer; }
.di-booking__date.is-open:hover { background: rgba(10, 108, 255, 0.16); }
.di-booking__date.is-selected { background: var(--di-c-accent); color: #fff; }
.di-booking__date.is-today:not(.is-selected) { box-shadow: inset 0 0 0 1px var(--di-c-hair); }
.di-booking__tz { font-size: 12.5px; color: var(--di-c-muted); margin-top: 16px !important; }
.di-booking__meta { font-size: 13px; font-weight: 600; color: var(--di-c-accent); margin-bottom: 6px !important; }
.di-booking__slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; max-height: 340px; overflow-y: auto; padding: 2px; }
.di-booking__slot {
	padding: 12px 8px; border-radius: 12px; border: 1px solid var(--di-c-hair); background: var(--di-c-base);
	font: 600 15px / 1 var(--wp--preset--font-family--body); color: var(--di-c-text); cursor: pointer; font-variant-numeric: tabular-nums;
}
.di-booking__slot:hover { border-color: var(--di-c-accent); color: var(--di-c-accent); }
.di-booking__empty { color: var(--di-c-muted); font-size: 15px; margin-top: 8px !important; }
.di-booking__form { display: grid; gap: 12px; }
.di-booking__back { justify-self: start; border: 0; background: none; padding: 0; color: var(--di-c-accent); font: 500 14px var(--wp--preset--font-family--body); cursor: pointer; }
.di-booking__chosen { margin-bottom: 4px !important; }
.di-booking__form button[type="submit"] { border: 0; cursor: pointer; width: 100%; }
.di-booking__done { text-align: center; padding-block: 24px; display: grid; gap: 10px; justify-items: center; }
.di-booking__done:not([hidden]) { display: grid; }
.di-booking__check { width: 56px; height: 56px; border-radius: 50%; background: var(--di-c-mint); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.di-booking__done-when { font-weight: 600; }
.di-booking__done p:last-child { color: var(--di-c-muted); font-size: 15px; }
.di-booking--message { display: block; padding: 32px; text-align: center; margin-bottom: 20px; }
.di-booking--message > * + * { margin-top: 12px !important; }
.di-booking--message form { margin-top: 20px; }
.di-booking--message button { border: 0; cursor: pointer; }
.di-booking [hidden] { display: none !important; }
@media (max-width: 760px) {
	.di-booking { grid-template-columns: 1fr; }
	.di-booking__cal { border-right: 0; border-bottom: 1px solid var(--di-c-hair); padding: 20px; }
	.di-booking__side { padding: 20px; }
	.di-booking__slots { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: none; }
}
@media (max-width: 400px) { .di-booking__slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.di-booking-prompt { margin-block: 32px; padding: 28px; border-radius: 20px; background: var(--di-c-band); }
.di-booking-prompt h2 { font-size: 1.5rem; margin: 0 0 8px; }
.di-booking-prompt p { margin: 0 0 14px; }

/* My Account > My plan */
.di-plan-card { border-radius: 20px; box-shadow: 0 0 0 1px var(--di-c-hair); padding: 24px 28px; margin-bottom: 16px; background: var(--di-c-base); }
.di-plan-card > * { margin: 0; }
.di-plan-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.di-plan-card h3 { font-size: 1.4rem; margin: 0; }
.di-plan-card__price { font: 700 1.6rem / 1.2 var(--di-f-display); letter-spacing: -0.03em; margin-top: 10px; }
.di-plan-card__when { color: var(--di-c-muted); margin-top: 4px; }
.di-plan-card__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.di-plan-card__actions .wp-element-button { border: 0; cursor: pointer; }
.di-plan-card__cancel summary { cursor: pointer; color: var(--di-c-muted); font-size: 15px; }
.di-plan-card__cancel p { margin: 10px 0; font-size: 15px; color: var(--di-c-muted); }
.di-inline { display: inline; margin: 0; }
.di-link-danger { border: 0; background: none; padding: 0; color: #B3261E; font: inherit; font-size: 15px; cursor: pointer; text-decoration: underline; }
.di-pill { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--di-c-band); color: var(--di-c-muted); }
.di-pill.is-active, .di-pill.is-trialing { background: #E8F7F0; color: #126B47; }
.di-pill.is-past_due, .di-pill.is-unpaid { background: #FDECEC; color: #A1261F; }
.di-pill.is-ending { background: #FFF4E0; color: #8A5300; }
.di-plan-receipts { color: var(--di-c-muted); font-size: 15px; }
.di-per { font-size: 0.85em; color: var(--di-c-muted); }
.di-pay-note { margin: 0; color: var(--di-c-muted); font-size: 15px; }

/* Card form and payment confirmation */
.di-card-form { display: grid; gap: 12px; }
.di-card-form__element { min-height: 44px; }
.di-card-update__panel { flex-basis: 100%; display: grid; gap: 12px; margin-top: 4px; padding: 20px; border-radius: 16px; background: var(--di-c-band); max-width: 520px; }
.di-card-update__panel[hidden] { display: none; }
.di-card-update__buttons { display: flex; gap: 16px; align-items: center; margin: 0; }
.di-card-update__buttons .wp-element-button { border: 0; cursor: pointer; }
.di-card-update { display: contents; }
.di-link-plain { border: 0; background: none; padding: 0; color: var(--di-c-muted); font: inherit; font-size: 15px; cursor: pointer; }
.di-pay-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(245, 245, 247, 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.di-pay-overlay__box { background: var(--di-c-base); border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.25); padding: 36px; max-width: 440px; width: 100%; text-align: center; display: grid; gap: 12px; }
.di-pay-overlay__box h2 { font-size: 1.6rem; margin: 0; }
.di-pay-overlay__box p { margin: 0; color: var(--di-c-muted); }
.di-pay-overlay__retry .wp-element-button { display: inline-block; }

/* Popups (contact form confirmation) */
body .di-modal { position: fixed; inset: 0; margin: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(29, 29, 31, 0.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: di-fade 0.2s ease both; }
body .di-modal[hidden] { display: none; }
.di-modal__box { box-sizing: border-box; background: var(--di-c-base); border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.35); padding: 40px 36px 36px; max-width: 420px; width: 100%; text-align: center; display: grid; gap: 12px; justify-items: center; animation: di-pop 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.di-modal__box h2 { font-size: 1.75rem; margin: 4px 0 0; }
.di-modal__box p { margin: 0; color: var(--di-c-muted); }
.di-modal__check { width: 64px; height: 64px; border-radius: 50%; background: var(--di-c-mint); color: #fff; display: grid; place-items: center; font-size: 30px; font-weight: 700; }
.di-modal__close { margin-top: 12px; min-width: 140px; text-align: center; text-decoration: none; }
.di-modal__close:hover { text-decoration: none; }
html.di-modal-open { overflow: hidden; }
@keyframes di-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes di-pop { from { transform: translateY(12px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* Regular pages and posts */
.di-page-title { margin-bottom: 1.5rem; }
.di-meta { color: var(--di-c-muted); font-size: 0.9rem; }
.di-posts .wp-block-post-template > li + li { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--di-c-hair); }
.di-post-link a { color: var(--di-c-text); }
.di-404 { text-align: center; padding-block: var(--di-section); }

/* ---------- Footer ---------- */

.di-footer {
	background: var(--di-c-band);
	color: var(--di-c-muted);
	font-size: 12.5px;
	padding: 40px var(--wp--style--root--padding-left) 28px;
}
.di-footer a { color: var(--di-c-muted); }
.di-footer a:hover { color: var(--di-c-text); }
body .di-footer__grid,
body .di-footer__legal { max-width: var(--wp--style--global--wide-size); margin-inline: auto; }
.di-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--di-c-hair); }
.di-footer__brand > * { margin: 0; }
.di-footer__brand .di-logo img,
.di-footer__brand .wp-block-site-logo img { width: 140px; }
.di-footer__brand p { margin-top: 12px; }
.di-footer h4 { margin: 0 0 10px; font: 600 12.5px / 1.4 var(--wp--preset--font-family--body); letter-spacing: 0; color: var(--di-c-text); }
.di-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.di-footer__col > * { margin: 0; }
body .di-footer__legal { padding-top: 18px; margin-top: 0; }
.di-footer__legal p { margin: 0; }
@media (max-width: 720px) {
	.di-footer__grid { grid-template-columns: 1fr 1fr; }
	.di-footer__brand { grid-column: 1 / -1; }
}

/* ---------- WooCommerce ---------- */

.wc-block-components-button:not(.is-link),
.woocommerce a.button,
.woocommerce button.button { border-radius: 999px; }
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button { background: var(--di-c-accent); color: #fff; }
.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover { background: var(--di-c-accent-hover); }
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select { border-radius: 12px; }
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-sidebar .wc-block-components-panel { border-radius: 20px; }

/* ---------- Motion ---------- */

@keyframes di-rise { from { transform: translateY(18px); opacity: 0.001; } to { transform: none; opacity: 1; } }
.di-hero > * { animation: di-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.di-hero > :nth-child(2) { animation-delay: 0.06s; }
.di-hero > :nth-child(3) { animation-delay: 0.14s; }
.di-hero > :nth-child(4) { animation-delay: 0.22s; }
.di-hero > :nth-child(n+5) { animation-delay: 0.3s; animation-duration: 1.2s; }
.editor-styles-wrapper .di-hero > * { animation: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
