/*
Theme Name: DIGIO
Author: DIGIO-FZCO
Description: One-page theme for DIGIO, with blog. The home page holds the sections (also saved as patterns, category "DIGIO"), so editing the home page shows the whole design. Header and footer are edited in Appearance → Editor.
Version: 1.0.5
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digio
*/

/* ------------------------------------------------------------------
   Tokens (they read the palette, so Styles > Colours changes them)
------------------------------------------------------------------ */
:root {
	--dg-sand: var(--wp--preset--color--sand, #F1E9DC);
	--dg-sand-deep: var(--wp--preset--color--sand-deep, #EDE3D3);
	--dg-paper: var(--wp--preset--color--paper, #FAF6EE);
	--dg-cream: var(--wp--preset--color--cream, #FFFCF7);
	--dg-line: var(--wp--preset--color--line, #D9CDB8);
	--dg-ink: var(--wp--preset--color--ink, #1C1812);
	--dg-ink-soft: var(--wp--preset--color--ink-soft, #4F4638);
	--dg-muted: var(--wp--preset--color--muted, #6B604F);
	--dg-accent: var(--wp--preset--color--accent, #2B45E5);
	--dg-green: var(--wp--preset--color--green, #15803D);
	--dg-red: var(--wp--preset--color--red, #B91C1C);
	--dg-amber: var(--wp--preset--color--amber, #B45309);
	--dg-display: var(--wp--preset--font-family--display, "Bricolage Grotesque", Arial, sans-serif);
	--dg-serif: var(--wp--preset--font-family--serif, "Instrument Serif", Georgia, serif);
	--dg-body: var(--wp--preset--font-family--body, Manrope, Arial, sans-serif);
	--dg-gutter: clamp(20px, 4vw, 56px);
	--dg-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E");
	--dg-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	--dg-icon-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------ */
body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body .wp-site-blocks > *,
body .dg-main > *,
body .dg-main .dg-home > *,
body .dg-main .wp-block-group > *,
body .dg-header .wp-block-group > *,
body .dg-footer .wp-block-group > * {
	margin-block: 0;
}

:where(a, summary, button, input):focus-visible {
	outline: 2px solid var(--dg-ink);
	outline-offset: 3px;
}

.dg-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: var(--dg-gutter);
}

.dg-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--dg-muted);
}

.dg-h1,
.dg-h2,
.dg-hero__title,
.dg-article__title {
	font-family: var(--dg-display);
	font-weight: 800;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.dg-hero__title em,
.dg-h1 em,
.dg-h2 em,
.dg-about h2 em,
.dg-apply h2 em {
	font-family: var(--dg-serif);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.01em;
	color: var(--dg-accent);
}

.dg-h1 {
	font-size: clamp(42px, 5.6vw, 80px);
	line-height: 0.98;
}

.dg-h2 {
	font-size: clamp(36px, 4.4vw, 60px);
	line-height: 1;
}

.dg-h4,
.dg-h5 {
	font-family: var(--dg-display);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.15;
}

.dg-h4 { font-size: 21px; }
.dg-h5 { font-size: 20px; }

.dg-lead {
	max-width: 33em;
	font-size: clamp(17px, 1.45vw, 20px);
	line-height: 1.55;
	color: var(--dg-ink-soft);
	text-wrap: pretty;
}

.dg-intro {
	max-width: 30em;
	font-size: 16px;
	line-height: 1.6;
	color: var(--dg-ink-soft);
	text-wrap: pretty;
}

.dg-small {
	font-size: 15px;
	line-height: 1.5;
	color: var(--dg-ink-soft);
}

.dg-note {
	font-size: 14px;
	line-height: 1.5;
	color: var(--dg-muted);
}

.dg-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--dg-muted);
}

.dg-label--accent { color: var(--dg-accent); }

.dg-section {
	padding-block: clamp(56px, 6vw, 88px);
}

.dg-section--top-line {
	border-top: 1px solid var(--dg-line);
}

/* Section header: title on the left, intro on the right */
.dg-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px 48px;
}

.dg-head__title {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 760px;
}

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------ */
.dg-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
}

.dg-btn-arrow .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	box-sizing: border-box;
}

.dg-btn-arrow .wp-block-button__link::after {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--dg-icon-arrow) center / contain no-repeat;
	mask: var(--dg-icon-arrow) center / contain no-repeat;
}

.wp-block-button.is-style-dg-link .wp-block-button__link {
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: var(--dg-ink);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 6px;
}

.wp-block-button.is-style-dg-link .wp-block-button__link:hover {
	background: transparent;
	color: var(--dg-accent);
}

.wp-block-button.is-style-dg-dark .wp-block-button__link {
	background: var(--dg-ink);
	color: #FFFFFF;
}

.wp-block-button.is-style-dg-dark .wp-block-button__link:hover {
	background: var(--dg-accent);
}

/* ------------------------------------------------------------------
   Header and navigation
------------------------------------------------------------------ */
.dg-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding-block: 24px;
}

.dg-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.dg-brand .wp-block-site-logo img {
	height: auto;
}

/* With a logo uploaded, the text name hides itself */
.wp-block-site-logo + .wp-block-site-title {
	display: none;
}

.dg-brand .wp-block-site-title,
.dg-footer .wp-block-site-title {
	font-family: var(--dg-display);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1;
}

.dg-brand .wp-block-site-title a,
.dg-footer .wp-block-site-title a {
	color: var(--dg-ink);
	text-decoration: none;
}

.dg-nav {
	font-size: 15px;
	font-weight: 600;
	gap: 8px 26px;
}

.dg-nav .wp-block-navigation__container {
	gap: 8px 26px;
	align-items: center;
}

.dg-nav .wp-block-navigation-item__content {
	color: var(--dg-ink);
	text-decoration: none;
}

.dg-nav .wp-block-navigation-item__content:hover {
	color: var(--dg-accent);
}

.dg-nav .dg-nav-cta > .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 999px;
	background: var(--dg-ink);
	color: #FFFFFF;
}

.dg-nav .dg-nav-cta > .wp-block-navigation-item__content:hover {
	background: var(--dg-accent);
	color: #FFFFFF;
}

.dg-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--dg-sand);
	color: var(--dg-ink);
	padding: 28px var(--dg-gutter);
}

.dg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 18px;
	font-size: 20px;
}

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------ */
.dg-hero {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr));
	gap: clamp(40px, 5vw, 72px);
	align-items: center;
	padding-top: clamp(24px, 4vw, 48px);
	padding-bottom: clamp(56px, 6vw, 88px);
}

.dg-hero__text {
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.dg-hero__title {
	font-size: clamp(46px, 6vw, 88px);
	line-height: 0.96;
	letter-spacing: -0.035em;
}

.dg-hero__visual {
	position: relative;
	width: 100%;
	max-width: 640px;
	min-height: 540px;
}

.dg-hero__visual::before {
	content: "";
	position: absolute;
	inset: 0 0 0 48px;
	border: 1px solid var(--dg-line);
	border-radius: 32px;
	background-color: #F7F1E6;
	background-image:
		linear-gradient(#E6DCCB 1px, transparent 1px),
		linear-gradient(90deg, #E6DCCB 1px, transparent 1px);
	background-size: 36px 36px;
	background-position: -1px -1px;
}

/* Ryan's photo already brings its own grid and cut-out outline, so it fills the whole card. */
body .dg-hero__photo {
	position: absolute !important; /* the editor sets its own position on blocks */
	inset: 0 0 0 48px;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--dg-line);
	border-radius: 32px;
	background: #F6F1E7;
}

body .dg-hero__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

.dg-chip {
	position: absolute !important; /* the editor sets its own position on blocks */
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 20px;
	border: 1px solid var(--dg-line);
	border-radius: 20px;
	background: var(--dg-cream);
}

.dg-chip--a { top: 80px; left: 0; }
.dg-chip--b { right: -12px; bottom: 72px; }

.dg-chip__num {
	font-family: var(--dg-display);
	font-size: 38px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
}

.dg-chip__label {
	max-width: 15em;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--dg-ink-soft);
}

.dg-founder-pill {
	position: absolute !important; /* the editor sets its own position on blocks */
	z-index: 1;
	left: 80px;
	bottom: 28px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--dg-ink);
	color: var(--dg-sand);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.dg-founder-pill::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

/* ------------------------------------------------------------------
   Ticker
------------------------------------------------------------------ */
.dg-ticker {
	border-top: 1px solid var(--dg-line);
	border-bottom: 1px solid var(--dg-line);
}

body .dg-ticker__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px 28px;
	margin: 0 auto;
	padding-block: 18px;
	list-style: none;
	font-size: 14px;
	font-weight: 700;
	color: var(--dg-ink-soft);
}

.dg-ticker__list li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.dg-ticker__list li::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--dg-accent);
}

/* ------------------------------------------------------------------
   Problems we fix
------------------------------------------------------------------ */
.dg-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
	gap: 20px;
	margin-top: 40px !important;
}

.dg-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 26px;
	border: 1px solid var(--dg-line);
	border-radius: 24px;
	background: var(--dg-paper);
}

.dg-card__quote {
	font-family: var(--dg-serif);
	font-size: 30px;
	font-style: italic;
	line-height: 1.08;
}

.dg-card__fix {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 14px;
	border-top: 1px solid var(--dg-line);
}

.dg-card--wide {
	grid-column: 1 / -1;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding: 22px 26px;
	border: 1.5px dashed #A3957D;
	background: transparent;
}

.dg-card--wide .dg-card__quote { font-size: 28px; }
.dg-card--wide .dg-small { max-width: 40em; font-size: 16px; }

/* ------------------------------------------------------------------
   How we work: the ladder and the Monday report
------------------------------------------------------------------ */
body .dg-main .dg-ladder {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
	align-items: end;
	margin-top: 40px;
	border-bottom: 1.5px solid var(--dg-ink);
}

.dg-step {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 16px 18px;
	border-top: 1.5px solid var(--dg-ink);
	border-left: 1.5px solid var(--dg-ink);
}

.dg-step:nth-child(1) { height: 196px; }
.dg-step:nth-child(2) { height: 236px; }
.dg-step:nth-child(3) { height: 276px; }
.dg-step:nth-child(4) { height: 316px; }
.dg-step:nth-child(5) { height: 356px; border-right: 1.5px solid var(--dg-ink); }

.dg-step__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.dg-step__num {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	color: var(--dg-muted);
}

.dg-step:nth-child(3) .dg-step__num { color: var(--dg-accent); }

.dg-step p:not(.dg-step__num):not(.dg-tag) {
	font-size: 14px;
	line-height: 1.45;
	color: var(--dg-ink-soft);
}

.dg-tag {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--dg-accent);
	color: #FFFFFF;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
}

body .dg-main .dg-monday {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
	gap: 32px 56px;
	align-items: center;
	margin-top: 56px;
}

.dg-monday__text {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.dg-monday__text h3 {
	font-size: clamp(26px, 2.6vw, 36px);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.dg-report {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 28px;
	border: 1px solid var(--dg-line);
	border-radius: 24px;
	background: var(--dg-cream);
}

.dg-report__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 6px 16px;
	padding-bottom: 14px;
	border-bottom: 1.5px solid var(--dg-ink);
}

.dg-report__nums {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.dg-num {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dg-num__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--dg-muted);
}

.dg-num__value {
	font-family: var(--dg-display);
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

body .dg-decisions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--dg-line);
	list-style: none;
	font-size: 15px;
	line-height: 1.45;
}

.dg-decisions li {
	display: grid;
	grid-template-columns: 60px minmax(0, 1fr);
	gap: 10px;
	margin: 0;
}

/* In the editor each item holds its text in one box, so the two columns become a label plus text. */
.editor-styles-wrapper .dg-decisions li { display: block; }
.editor-styles-wrapper .dg-decisions li strong { display: inline-block; min-width: 60px; margin-right: 10px; }

.dg-decisions li:nth-child(1) strong { color: var(--dg-green); }
.dg-decisions li:nth-child(2) strong { color: var(--dg-red); }
.dg-decisions li:nth-child(3) strong { color: var(--dg-amber); }

/* ------------------------------------------------------------------
   Results
------------------------------------------------------------------ */
.dg-results {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
	gap: 20px;
	margin-top: 40px !important;
}

.dg-result {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: clamp(24px, 2.6vw, 34px);
	border: 1px solid var(--dg-line);
	border-radius: 28px;
	background: var(--dg-paper);
}

.dg-bignum {
	font-family: var(--dg-display);
	font-size: clamp(52px, 5vw, 72px);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 0.92;
}

.dg-result__more {
	padding-top: 16px;
	border-top: 1px solid var(--dg-line);
}

body .dg-dots {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--dg-line);
	list-style: none;
	font-size: 15px;
	line-height: 1.45;
	color: var(--dg-ink-soft);
}

.dg-dots li {
	display: flex;
	gap: 10px;
	margin: 0;
}

.dg-dots li::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	margin-top: 8px;
	border-radius: 50%;
	background: var(--dg-accent);
}

.dg-result__punch {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
}

/* Results as dashboard panels: Meta Ads on top, the agent and social media below */
.dg-bento {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dg-panel--wide {
	grid-column: 1 / -1;
}

.dg-panel {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--dg-line);
	border-radius: 28px;
	background: var(--dg-cream);
	box-shadow: 0 1px 0 rgba(28, 24, 18, 0.04), 0 22px 44px -32px rgba(28, 24, 18, 0.45);
}

.dg-panel__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	border-bottom: 1px solid var(--dg-line);
	background: #F6EFE4;
}

/* three small window dots */
.dg-panel__bar::before {
	content: "";
	flex: none;
	width: 40px;
	height: 10px;
	background: radial-gradient(circle at 5px 5px, #DCCDB4 4px, transparent 4.5px) 0 0 / 15px 10px repeat-x;
}

body .dg-main .dg-panel__app {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--dg-muted);
}

body .dg-main .dg-panel__status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 0 auto;
	padding: 5px 11px;
	border-radius: 999px;
	background: #E6F3E9;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	color: var(--dg-green);
}

.dg-panel__status::before {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	animation: dg-pulse 2.4s ease-out infinite;
}

@keyframes dg-pulse {
	0% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.45); }
	70% { box-shadow: 0 0 0 7px rgba(21, 128, 61, 0); }
	100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
}

.dg-panel__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: clamp(22px, 2.6vw, 32px);
}

body .dg-main .dg-panel--wide .dg-panel__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 24px 44px;
	align-items: start;
}

.dg-panel--wide .dg-result__more {
	grid-column: 1 / -1;
}

.dg-panel__main {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* KPI tiles */
.dg-kpis {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.dg-kpi {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px;
	border: 1px solid var(--dg-line);
	border-radius: 18px;
	background: #FFFFFF;
}

body .dg-main .dg-kpi__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--dg-muted);
}

body .dg-main .dg-kpi__value {
	font-family: var(--dg-display);
	font-size: clamp(28px, 2.6vw, 38px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	white-space: nowrap;
	color: var(--dg-ink);
}

body .dg-main .dg-kpi__note {
	font-size: 13px;
	line-height: 1.4;
	color: var(--dg-muted);
}

.dg-kpi--accent {
	grid-column: 1 / -1;
	border-color: var(--dg-accent);
	background: var(--dg-accent);
}

body .dg-main .dg-kpi--accent .dg-kpi__value {
	font-size: clamp(48px, 4.6vw, 64px);
}

body .dg-main .dg-kpi--accent .dg-kpi__label,
body .dg-main .dg-kpi--accent .dg-kpi__note {
	color: rgba(255, 255, 255, 0.8);
}

body .dg-main .dg-kpi--accent .dg-kpi__value {
	color: #FFFFFF;
}

body .dg-main .dg-kpi--accent .dg-kpi__value,
body .dg-main .dg-kpi--accent .dg-kpi__label,
body .dg-main .dg-kpi--accent .dg-kpi__note {
	text-wrap: balance;
}

/* Spend against sales, drawn to scale (ROAS 22: the first bar is 1/22 of the second) */
.dg-ratio {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 4px;
	padding: 16px 18px;
	border-radius: 18px;
	background: #F0F3FE;
}

body .dg-main .dg-bar {
	display: grid;
	gap: 7px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--dg-ink-soft);
}

.dg-bar::after {
	content: "";
	width: var(--dg-bar, 100%);
	min-width: 10px;
	height: 12px;
	border-radius: 999px;
	background: var(--dg-accent);
}

.dg-bar--in { --dg-bar: 4.55%; }
.dg-bar--in::after { background: var(--dg-ink-soft); }
.dg-bar--out { --dg-bar: 100%; }

/* Call log of the AI agent */
body .dg-main .dg-log {
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--dg-line);
	border-radius: 18px;
	background: #FFFFFF;
	list-style: none;
}

.dg-log li {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 11px 14px;
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--dg-ink-soft);
}

.dg-log li + li {
	border-top: 1px solid var(--dg-line);
}

.dg-log strong {
	justify-self: start;
	padding: 4px 9px;
	border-radius: 999px;
	background: #E6F3E9;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dg-green);
}

.dg-log li:nth-child(3) strong { background: #E2E7FD; color: var(--dg-accent); }
.dg-log li:nth-child(4) strong { background: #FBEBD6; color: var(--dg-amber); }

/* Progress bars of the social media panel */
.dg-meters {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px 18px;
	border: 1px solid var(--dg-line);
	border-radius: 18px;
	background: #FFFFFF;
}

body .dg-main .dg-meter {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 8px 12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--dg-ink-soft);
}

.dg-meter strong {
	font-family: var(--dg-display);
	font-size: 18px;
	font-weight: 800;
	color: var(--dg-ink);
}

.dg-meter::after {
	content: "";
	grid-column: 1 / -1;
	height: 10px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--dg-accent), #6E7CF2);
}

/* In the editor each list item holds its text in one box: label chip plus text */
.editor-styles-wrapper .dg-log li { display: block; }
.editor-styles-wrapper .dg-log li strong { display: inline-block; margin-right: 10px; }

@media (max-width: 900px) {
	.dg-bento { grid-template-columns: minmax(0, 1fr); }
	body .dg-main .dg-panel--wide .dg-panel__body { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
	.dg-panel__bar { flex-wrap: wrap; row-gap: 8px; padding: 11px 14px; }
	.dg-panel__bar::before { display: none; }
	body .dg-main .dg-panel__app { letter-spacing: 0.08em; }
	.dg-log li { grid-template-columns: 86px minmax(0, 1fr); padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.dg-panel__status::before { animation: none; }
}

/* ------------------------------------------------------------------
   For you / not for you
------------------------------------------------------------------ */
.dg-fit {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	overflow: hidden;
	border: 1px solid var(--dg-line);
	border-radius: 28px;
}

.dg-fit__col {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 28px 28px 28px 84px;
	position: relative;
}

.dg-fit__col::before {
	content: "";
	position: absolute;
	left: 28px;
	top: 28px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.dg-fit__col::after {
	content: "";
	position: absolute;
	left: 39px;
	top: 39px;
	width: 18px;
	height: 18px;
}

.dg-fit__col--yes { background: var(--dg-paper); }
.dg-fit__col--yes::before { background: var(--dg-green); }
.dg-fit__col--yes::after {
	background: #FFFFFF;
	-webkit-mask: var(--dg-icon-check) center / contain no-repeat;
	mask: var(--dg-icon-check) center / contain no-repeat;
}

.dg-fit__col--no { border-left: 1px solid var(--dg-line); }
.dg-fit__col--no::before { box-sizing: border-box; border: 1.5px solid var(--dg-ink); }
.dg-fit__col--no::after {
	left: 40px;
	top: 40px;
	width: 16px;
	height: 16px;
	background: var(--dg-ink);
	-webkit-mask: var(--dg-icon-x) center / contain no-repeat;
	mask: var(--dg-icon-x) center / contain no-repeat;
}

.dg-fit__col h2 {
	font-size: 22px;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.dg-fit__col p {
	font-size: 16px;
	line-height: 1.55;
	color: var(--dg-ink-soft);
}

/* ------------------------------------------------------------------
   About
------------------------------------------------------------------ */
.dg-about {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	gap: clamp(40px, 5vw, 72px);
	align-items: center;
}

body .dg-about__photo {
	margin: 0;
	overflow: hidden;
	min-height: 440px;
	border-radius: 240px 240px 28px 28px;
	background: #EFE6D7;
}

body .dg-about__photo img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 440px;
	object-fit: cover;
}

.dg-about__text {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.dg-about__text h2 {
	font-size: clamp(34px, 3.8vw, 52px);
	line-height: 1.02;
}

.dg-about__text > p:not(.dg-eyebrow) {
	font-size: 17px;
	line-height: 1.6;
	color: var(--dg-ink-soft);
	text-wrap: pretty;
}

body .dg-main .dg-quote {
	margin: 8px 0 0;
	padding: 0 0 0 20px;
	border-left: 2px solid var(--dg-accent);
}

.dg-quote p {
	margin: 0;
	font-family: var(--dg-serif);
	font-size: 28px;
	font-style: italic;
	line-height: 1.2;
}

.dg-quote cite {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	color: var(--dg-muted);
}

/* ------------------------------------------------------------------
   Blog cards (home, blog page, related posts)
------------------------------------------------------------------ */
.dg-blog-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px 32px;
}

.dg-more-link a {
	font-size: 16px;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 6px;
}

body .dg-main .dg-post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 36px 24px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

body .dg-post-grid > li {
	margin: 0;
}

.dg-post-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

body .dg-post-card__img {
	margin: 0 0 4px;
	overflow: hidden;
	border: 1px solid var(--dg-line);
	border-radius: 20px;
	background: #F7F1E6;
}

.dg-post-card__img img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.dg-post-card__cat,
.dg-post-card__cat a {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--dg-accent);
	text-decoration: none;
}

.dg-post-card__title {
	font-family: var(--dg-display);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.dg-post-card__title a {
	color: var(--dg-ink);
	text-decoration: none;
}

.dg-post-card__title a:hover {
	color: var(--dg-accent);
}

.dg-post-card__excerpt,
.dg-post-card__excerpt p {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--dg-ink-soft);
}

.dg-post-card__excerpt .wp-block-post-excerpt__more-link { display: none; }

.dg-post-card__date {
	font-size: 13px;
	color: var(--dg-muted);
}

.dg-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	margin-top: 48px !important;
	font-weight: 700;
}

.dg-empty {
	margin-top: 28px !important;
	color: var(--dg-ink-soft);
}

/* ------------------------------------------------------------------
   FAQ
------------------------------------------------------------------ */
.dg-faq {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
	gap: 32px 64px;
	align-items: start;
}

.dg-faq__list {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--dg-ink);
}

body .dg-faq__list .wp-block-details {
	margin: 0;
	border-bottom: 1px solid var(--dg-line);
}

.dg-faq__list summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 20px 0;
	list-style: none;
	cursor: pointer;
	font-family: var(--dg-display);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}

.dg-faq__list summary::-webkit-details-marker { display: none; }

.dg-faq__list summary::after {
	content: "+";
	flex: none;
	font-size: 24px;
	font-weight: 500;
	line-height: 1;
	color: var(--dg-accent);
}

.dg-faq__list details[open] summary::after { content: "–"; }

body .dg-faq__list .wp-block-details p {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--dg-ink-soft);
}

/* ------------------------------------------------------------------
   Apply
------------------------------------------------------------------ */
.dg-apply {
	border-top: 1px solid var(--dg-line);
	background: var(--dg-sand-deep);
}

.dg-apply__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	gap: clamp(40px, 5vw, 72px);
	align-items: start;
	padding-block: clamp(56px, 6vw, 96px);
}

.dg-apply__text {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.dg-apply__text h2 {
	font-size: clamp(40px, 5vw, 72px);
	line-height: 0.98;
	letter-spacing: -0.035em;
}

body .dg-main .dg-apply__steps {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: dg-step;
	border-top: 1px solid #D2C4AC;
	font-size: 15px;
	font-weight: 600;
	color: var(--dg-ink-soft);
}

.dg-apply__steps li {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 11px 0;
	border-bottom: 1px solid #D2C4AC;
	counter-increment: dg-step;
}

.dg-apply__steps li::before {
	content: counter(dg-step);
	width: 22px;
	color: var(--dg-muted);
}

.dg-apply__steps li:nth-child(4) { color: var(--dg-ink); }
.dg-apply__steps li:nth-child(4)::before { color: var(--dg-accent); }

.dg-form-slot {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	min-height: 420px;
	box-sizing: border-box;
	padding: clamp(24px, 3vw, 36px);
	border: 1.5px dashed #B9A98C;
	border-radius: 28px;
	background: var(--dg-cream);
}

.dg-form-slot iframe {
	width: 100%;
	min-height: 520px;
	border: 0;
}

/* ------------------------------------------------------------------
   Single post, pages, archives
------------------------------------------------------------------ */
.dg-article__head {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	max-width: calc(720px + 2 * var(--dg-gutter));
	margin-inline: auto;
	padding: clamp(32px, 5vw, 72px) var(--dg-gutter) 0;
}

.dg-article__head .wp-block-post-terms a {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dg-accent);
	text-decoration: none;
}

.dg-article__title {
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1.02;
}

.dg-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--dg-muted);
}

body .dg-main .dg-article__img {
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	margin: clamp(28px, 4vw, 48px) auto 0;
	padding-inline: var(--dg-gutter);
}

.dg-article__img img {
	display: block;
	width: 100%;
	border-radius: 28px;
	object-fit: cover;
}

body .dg-main .dg-prose {
	box-sizing: border-box;
	max-width: calc(720px + 2 * var(--dg-gutter));
	margin: clamp(32px, 4vw, 56px) auto 0;
	padding-inline: var(--dg-gutter);
	font-size: 18px;
	line-height: 1.7;
}

body .dg-prose > * + * {
	margin-block-start: 1.2em;
}

body .dg-prose h2 {
	margin-block-start: 2em;
	font-size: clamp(28px, 3vw, 36px);
	line-height: 1.12;
}

body .dg-prose h3 {
	margin-block-start: 1.7em;
	font-size: clamp(22px, 2.2vw, 26px);
	line-height: 1.2;
}

.dg-prose a {
	color: var(--dg-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dg-prose blockquote {
	margin-inline: 0;
	padding-left: 20px;
	border-left: 2px solid var(--dg-accent);
	font-family: var(--dg-serif);
	font-size: 26px;
	font-style: italic;
	line-height: 1.3;
}

.dg-prose img {
	border-radius: 16px;
}

.dg-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.dg-prose th,
.dg-prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--dg-line);
	text-align: left;
}

.dg-post-cta {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 720px;
	margin: 56px auto 0 !important;
	padding: clamp(24px, 3vw, 36px);
	border: 1px solid var(--dg-line);
	border-radius: 24px;
	background: var(--dg-paper);
}

.dg-post-cta-wrap {
	padding-inline: var(--dg-gutter);
}

.dg-post-cta h2 {
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.1;
}

.dg-related {
	padding-block: clamp(56px, 6vw, 88px);
	margin-top: clamp(56px, 6vw, 88px) !important;
	border-top: 1px solid var(--dg-line);
}

.dg-related h2 {
	font-size: clamp(28px, 3vw, 40px);
}

.dg-page-head {
	padding-top: clamp(32px, 5vw, 72px);
}

.dg-404 {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-block: clamp(72px, 10vw, 140px);
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.dg-footer {
	border-top: 1px solid var(--dg-line);
}

.dg-footer__top {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 32px 48px;
	padding-block: 48px 28px;
}

.dg-footer__brand,
.dg-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

body .dg-footer__links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	font-weight: 600;
}

.dg-footer__links li { margin: 0; }

.dg-footer__links a {
	text-decoration: none;
}

.dg-strong {
	font-weight: 700;
}

.dg-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px 24px;
	padding-block: 18px 32px;
	border-top: 1px solid var(--dg-line);
	font-size: 13px;
	color: var(--dg-muted);
}

.dg-footer__bottom a {
	color: var(--dg-muted);
}

/* ------------------------------------------------------------------
   Phones
------------------------------------------------------------------ */
@media (max-width: 720px) {
	.dg-hero__visual { min-height: 460px; }
	.dg-hero__visual::before { left: 24px; }
	body .dg-hero__photo { left: 24px; }
	.dg-chip { padding: 12px 14px; }
	.dg-chip__num { font-size: 26px; }
	.dg-chip__label { max-width: 10.5em; font-size: 12px; }
	.dg-chip--a { top: 14px; left: -4px; }
	.dg-chip--b { right: 0; bottom: 64px; }
	.dg-founder-pill { left: 40px; bottom: 20px; }

	body .dg-main .dg-ladder { border-bottom: 0; }
	.dg-step,
	.dg-step:nth-child(n) {
		height: auto;
		border: 1.5px solid var(--dg-ink);
		border-bottom: 0;
	}
	.dg-step:nth-child(2) { margin-left: 14px; }
	.dg-step:nth-child(3) { margin-left: 28px; }
	.dg-step:nth-child(4) { margin-left: 42px; }
	.dg-step:nth-child(5) { margin-left: 56px; border-bottom: 1.5px solid var(--dg-ink); }

	.dg-fit__col--no { border-left: 0; border-top: 1px solid var(--dg-line); }
	.dg-card__quote { font-size: 26px; }

	/* Monday report: "≈ AED 8,200" stays on one line on small phones */
	.dg-num__value { font-size: clamp(17px, calc(8.2vw - 10px), 28px); white-space: nowrap; }
}

/* ------------------------------------------------------------------
   Small extras
------------------------------------------------------------------ */
.dg-fit-wrap {
	padding-bottom: clamp(56px, 6vw, 88px);
}

body .dg-page .dg-prose,
body .dg-article .dg-post-cta-wrap {
	margin-bottom: clamp(56px, 6vw, 88px);
}

body .dg-main .dg-head__title .wp-block-search {
	max-width: 560px;
	margin-top: 8px;
}

.wp-block-search__input {
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid var(--dg-line);
	border-radius: 999px 0 0 999px;
	background: var(--dg-cream);
	font: inherit;
}

.wp-block-search__button {
	border-radius: 0 999px 999px 0;
}
