/*
 * HealthQura Clinical brand layer. Loaded on the front end and in the block editor.
 * Navy carries authority, teal is the HealthQura identity, blue marks data and links,
 * white space keeps it clinical, aqua is a small AI accent only.
 */

:root {
	--hq-navy: var(--wp--preset--color--navy, #0B2D4D);
	--hq-navy-deep: var(--wp--preset--color--navy-deep, #071F36);
	--hq-teal: var(--wp--preset--color--teal, #00A39B);          /* graphics, accents, large text */
	--hq-teal-ink: var(--wp--preset--color--teal-ink, #007A73);  /* body-size text and buttons (AA on white) */
	--hq-blue: var(--wp--preset--color--blue, #2563EB);
	--hq-clarity: var(--wp--preset--color--clarity, #E6F8F6);
	--hq-aqua: var(--wp--preset--color--aqua, #5EEAD4);
	--hq-white: var(--wp--preset--color--white, #FFFFFF);
	--hq-paper: var(--wp--preset--color--paper, #F7FAFC);
	--hq-muted: var(--wp--preset--color--muted, #52627A);
	--hq-line: var(--wp--preset--color--line, #D9E3EC);
	--hq-ink: var(--wp--preset--color--ink, #1B2A3D);
	--hq-radius: 14px;
	--hq-shadow: 0 22px 50px -32px rgba(11, 45, 77, 0.55);
	--hq-section-space: clamp(3rem, 7vw, 5.5rem);
	--hq-head: var(--wp--preset--font-family--manrope);
	--hq-body: var(--wp--preset--font-family--inter);
}

/*
 * GeneratePress writes its own body, heading and button styles with higher specificity
 * than theme.json's global styles, so restate the brand values here.
 */
body,
button,
input,
select,
textarea {
	font-family: var(--hq-body);
}
body {
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.65;
	color: var(--hq-ink);
	background: var(--hq-paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
:lang(or) body,
body:lang(or) {
	font-family: var(--wp--preset--font-family--odia);
	line-height: 1.8;
}
h1, h2, h3, h4 {
	font-family: var(--hq-head);
	font-weight: 800;
	color: var(--hq-navy);
	letter-spacing: -0.02em;
	line-height: 1.12;
}
h1 { font-size: var(--wp--preset--font-size--hero); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: var(--wp--preset--font-size--section-title); }
h3 { font-size: var(--wp--preset--font-size--card-title); letter-spacing: -0.01em; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* GeneratePress styles .wp-block-button__link:not(.has-background) on the site and in the editor; these selectors outrank it in both. */
body .wp-block-button .wp-block-button__link.wp-element-button,
body .wp-element-button {
	background-color: var(--hq-teal-ink);
	color: #fff;
	border: 1px solid transparent;
	border-radius: 10px;
	font-weight: 600;
	font-size: 1rem;
	padding: 0.85rem 1.5rem;
	text-decoration: none;
}
body .wp-block-button .wp-block-button__link.wp-element-button:hover,
body .wp-block-button .wp-block-button__link.wp-element-button:focus,
body .wp-element-button:hover {
	background-color: var(--hq-navy);
	color: #fff;
}
body .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button {
	background: var(--hq-white);
	color: var(--hq-navy);
	border: 1px solid #C5D3E0;
}
body .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:hover {
	background: var(--hq-white);
	border-color: var(--hq-teal-ink);
	color: var(--hq-teal-ink);
}
body .hq-section--navy .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.35);
}

:where(a, button, summary):focus-visible {
	outline: 2px solid var(--hq-blue);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- Official logo (header, footer) ----------
 * The supplied artwork is used as-is. It has a white background, so on navy
 * surfaces it sits on a white panel rather than being recoloured.
 */
.hq-logo-pic { display: block; line-height: 0; }
.hq-logo { display: block; width: auto; max-width: 100%; height: auto; }
.hq-logo--header { height: 92px; width: auto; }
.hq-site-brand,
.main-title.hq-site-brand { margin: 0; line-height: 0; }
.main-title.hq-site-brand a { display: inline-block; text-decoration: none; }
.site-header .site-description { display: none; }
.hq-footer__brand {
	display: inline-block;
	background: #FEFEFE;
	border-radius: 12px;
	padding: 0.6rem 0.9rem;
	margin-bottom: 0.9rem;
	max-width: 100%;
}
.hq-logo--footer { width: 320px; max-width: 100%; }

/* ---------- Header and main menu ----------
 * One row: logo left, menu right, on white. Colours use !important only to
 * beat the inline CSS GeneratePress prints from the Customizer.
 */
body .site-header {
	background: var(--hq-white) !important;
	border-bottom: 1px solid var(--hq-line);
}
body .site-header .inside-header {
	max-width: none;
	/* Same side padding as the full-width sections, so the logo lines up with the hero text at every width. */
	padding: 12px var(--wp--style--root--padding-right, 4vw) 12px var(--wp--style--root--padding-left, 4vw);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}
.nav-float-right .site-header .hq-logo--header { height: 76px; }
body .main-navigation,
body .main-navigation ul ul { background: transparent !important; }
body .site-header .main-navigation { margin-left: auto; }
/* Desktop only: menu items in one row. On phones GeneratePress hides the list behind its Menu toggle. */
@media (min-width: 769px) {
	body .main-navigation .main-nav > ul { display: flex; align-items: center; gap: 0.15rem; }
}
body .main-navigation .main-nav ul li a {
	position: relative;
	color: var(--hq-navy) !important;
	background: transparent !important;
	font-family: var(--hq-head);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 44px;
	padding: 0 0.85rem;
}
/* Teal underline on hover. The menu links all point into the homepage, so
   GeneratePress marks every one "current"; that state is deliberately not shown. */
body .main-navigation .main-nav > ul > li:not(.button) > a::after {
	content: "";
	position: absolute;
	left: 0.85rem;
	right: 0.85rem;
	bottom: 6px;
	height: 2px;
	border-radius: 2px;
	background: var(--hq-teal);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.18s ease;
}
body .main-navigation .main-nav > ul > li:not(.button):hover > a,
body .main-navigation .main-nav > ul > li:not(.button) > a:focus-visible { color: var(--hq-teal-ink) !important; }
body .main-navigation .main-nav > ul > li:not(.button):hover > a::after,
body .main-navigation .main-nav > ul > li:not(.button) > a:focus-visible::after { transform: scaleX(1); }
/* Sign in dropdown. */
body .main-navigation ul ul {
	background: var(--hq-white) !important;
	border: 1px solid var(--hq-line);
	border-radius: 12px;
	box-shadow: 0 18px 40px -20px rgba(11, 45, 77, 0.35);
	padding: 0.35rem;
	width: 190px;
}
body .main-navigation .main-nav ul ul li a { line-height: 1.4; padding: 0.6rem 0.8rem; border-radius: 8px; font-weight: 500; }
body .main-navigation .main-nav ul ul li a:hover { background: var(--hq-clarity) !important; color: var(--hq-teal-ink) !important; }
/* Join Founding Doctors: the one filled button in the header. */
body .main-navigation .main-nav ul li.button { margin-left: 0.6rem; }
body .main-navigation .main-nav ul li.button > a {
	background: var(--hq-teal-ink) !important;
	color: #FFFFFF !important;
	border-radius: 999px;
	line-height: 42px;
	padding: 0 1.3rem;
	box-shadow: 0 8px 18px -10px rgba(0, 122, 115, 0.8);
	transition: background-color 0.15s ease;
}
body .main-navigation .main-nav ul li.button > a:hover,
body .main-navigation .main-nav ul li.button > a:focus-visible { background: var(--hq-navy) !important; }
/* Phones and small tablets: GeneratePress shows its Menu toggle. */
body .main-navigation .menu-toggle {
	color: var(--hq-navy) !important;
	background: transparent !important;
	font-family: var(--hq-head);
	font-weight: 700;
	border: 1px solid var(--hq-line);
	border-radius: 999px;
	padding: 0 1rem;
	line-height: 40px;
}
@media (max-width: 1024px) {
	body .main-navigation .main-nav ul li a { padding: 0 0.6rem; font-size: 0.9rem; }
	body .main-navigation .main-nav > ul > li:not(.button) > a::after { left: 0.6rem; right: 0.6rem; }
}
@media (max-width: 768px) {
	/* One row: logo left, Menu button right. The opened menu drops down as a full-width panel. */
	body .site-header { position: relative; z-index: 50; }
	body .site-header .inside-header { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; gap: 0.75rem; }
	body .site-header .site-branding,
	body .site-header .site-logo { flex: 0 1 auto; min-width: 0; margin: 0; }
	.nav-float-right .site-header .hq-logo--header,
	body .site-header .hq-logo--header { height: 52px; width: auto; max-width: 100%; }
	body .site-header .main-navigation { position: static; flex: 0 0 auto; width: auto; margin-left: auto; float: none; }
	body .main-navigation .inside-navigation { position: static; padding: 0; justify-content: flex-end; }
	body .main-navigation .menu-toggle { display: inline-flex; align-items: center; gap: 0.4rem; width: auto; margin: 0; line-height: 42px; padding: 0 1.1rem; font-size: 0.95rem; }
	body .main-navigation:not(.toggled) .main-nav { display: none; }
	body .main-navigation.toggled .main-nav {
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--hq-white);
		border-top: 1px solid var(--hq-line);
		border-bottom: 1px solid var(--hq-line);
		box-shadow: 0 24px 40px -24px rgba(11, 45, 77, 0.35);
		padding: 0.5rem var(--wp--style--root--padding-left, 16px) 1rem;
		max-height: calc(100vh - 80px);
		overflow-y: auto;
	}
	body .main-navigation.toggled .main-nav > ul { display: block; margin: 0; }
	body .main-navigation.toggled .main-nav ul li { float: none; width: 100%; text-align: left; }
	body .main-navigation.toggled .main-nav > ul > li:not(.button) { border-bottom: 1px solid var(--hq-line); }
	body .main-navigation.toggled .main-nav ul li a { display: block; line-height: 48px; padding: 0 0.25rem; font-size: 1rem; }
	body .main-navigation.toggled .main-nav > ul > li:not(.button) > a::after { display: none; }
	body .main-navigation.toggled .main-nav ul li.button { margin: 1rem 0 0.25rem; padding: 0; border: 0; background: transparent; box-shadow: none; }
	body .main-navigation.toggled .main-nav ul li.button > a { display: block; text-align: center; line-height: 48px; padding: 0 1rem; }
	body .main-navigation.toggled ul ul { position: static; width: auto; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0.5rem 0.75rem; }
	body .main-navigation.toggled ul ul li a { line-height: 40px; }
}

/* ---------- Doctor testimonials ---------- */
.hq-quotes { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }
.hq-quotes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.hq-quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; background: var(--hq-white); border: 1px solid var(--hq-line); border-radius: var(--hq-radius); padding: 1.5rem; box-shadow: var(--hq-shadow); }
.hq-quote__text { margin: 0; padding: 0; border: 0; font-style: normal; font-size: 1.02rem; line-height: 1.6; color: var(--hq-ink); }
.hq-quote__text::before { content: "\201C"; display: block; font-family: var(--hq-head); font-size: 3rem; line-height: 0.8; color: var(--hq-teal); }
.hq-quote__text p { margin: 0; }
.hq-quote__by { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }
.hq-quote__by strong { display: block; color: var(--hq-navy); font-family: var(--hq-head); }
.hq-quote__by em { font-style: normal; color: var(--hq-muted); }
.hq-quote__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 48px; }
.hq-quotes__share { margin-top: 1.5rem; }
.hq-quotes__share a { color: var(--hq-teal-ink); font-weight: 600; }
/* Share your experience page. */
.hq-share-ways { margin-top: 2rem; }
.hq-share { align-items: flex-start; }
.hq-steps { padding-left: 1.2rem; }
.hq-steps li { margin-bottom: 0.4rem; }
.hq-share .hq-form-card { border: 1px solid var(--hq-line); box-shadow: var(--hq-shadow); }

/* ---------- Sections ---------- */
.hq-section {
	padding-top: var(--hq-section-space);
	padding-bottom: var(--hq-section-space);
}
.hq-section--tint { background: var(--hq-clarity); }
.hq-section--white { background: var(--hq-white); }
.hq-section--navy { background: var(--hq-navy); color: #DCE6F0; }
.hq-section--navy :where(h1, h2, h3, h4) { color: #FFFFFF; }
.hq-section--navy .hq-eyebrow,
.hq-section--navy .hq-muted { color: #B9C7D6; }
.hq-section--navy .hq-accent { color: #2BC4BA; }
.hq-section--tight { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.hq-eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hq-teal-ink);
	margin-bottom: 0.25rem;
}
.hq-eyebrow::after {
	content: "";
	display: inline-block;
	width: 2rem;
	height: 2px;
	margin-left: 0.75rem;
	vertical-align: middle;
	background: var(--hq-teal);
}
.hq-lede {
	font-size: var(--wp--preset--font-size--lede, 1.1875rem);
	color: var(--hq-muted);
	max-width: 62ch;
}
.hq-muted { color: var(--hq-muted); }
.hq-accent { color: var(--hq-teal-ink); }
.hq-center { text-align: center; }
.hq-center .hq-lede { margin-left: auto; margin-right: auto; }
.hq-tagline {
	font-family: var(--hq-head);
	font-weight: 600;
	color: var(--hq-navy);
	font-size: 0.95rem;
	padding-top: 0.9rem;
	border-top: 1px solid var(--hq-line);
	display: inline-block;
}

/* ---------- Hero ---------- */
.hq-hero {
	background:
		radial-gradient(560px 320px at 86% 30%, rgba(0, 163, 155, 0.12), transparent 70%),
		linear-gradient(180deg, var(--hq-white), var(--hq-paper));
	padding-top: clamp(2.5rem, 6vw, 5rem);
	padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.hq-hero h1 { margin-top: 0.35em; margin-bottom: 0.4em; }
.hq-hero .wp-block-columns { align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }

/* Encounter illustration (HTML block). Swap for a real screenshot when ready. */
.hq-screen {
	background: var(--hq-white);
	border: 1px solid var(--hq-line);
	border-radius: 18px;
	padding: 1.1rem;
	font-size: 0.84rem;
	line-height: 1.5;
	box-shadow: var(--hq-shadow);
	max-width: 460px;
	margin-left: auto;
	color: var(--hq-ink);
}
.hq-screen__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.74rem;
	color: var(--hq-muted);
	padding-bottom: 0.7rem;
	margin-bottom: 0.7rem;
	border-bottom: 1px solid var(--hq-line);
}
.hq-screen__rec {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: var(--hq-clarity);
	color: var(--hq-teal-ink);
	font-weight: 600;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	white-space: nowrap;
	flex: none;
}
.hq-screen__rec::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--hq-teal);
}
.hq-screen__label {
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--hq-teal-ink);
	margin: 0.7rem 0 0.3rem;
}
.hq-screen__say {
	background: var(--hq-paper);
	border-left: 3px solid var(--hq-navy);
	border-radius: 0 10px 10px 0;
	padding: 0.55rem 0.75rem;
}
.hq-screen__ddx {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.35rem 0;
	border-bottom: 1px dashed var(--hq-line);
}
.hq-screen__ddx span { font-weight: 600; color: var(--hq-navy); }
.hq-screen__ddx em { font-style: normal; color: var(--hq-muted); font-size: 0.76rem; text-align: right; }
.hq-screen__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.hq-screen__chips span {
	font-size: 0.74rem;
	background: #EEF4FF;
	color: #1D4ED8;
	border-radius: 6px;
	padding: 0.15rem 0.55rem;
}
.hq-screen__alert {
	background: #FFF4E5;
	border: 1px solid #F6D19B;
	color: #7A4A00;
	border-radius: 10px;
	padding: 0.55rem 0.75rem;
	margin-top: 0.75rem;
}
.hq-screen__actions { display: flex; gap: 0.4rem; margin-top: 0.7rem; flex-wrap: wrap; }
.hq-screen__actions span {
	font-size: 0.72rem;
	border: 1px solid var(--hq-line);
	border-radius: 8px;
	padding: 0.2rem 0.7rem;
}
.hq-screen__actions span:first-child { background: var(--hq-teal-ink); border-color: var(--hq-teal-ink); color: #fff; }
.hq-screen__note { font-size: 0.7rem; color: var(--hq-muted); margin-top: 0.6rem; }

/* ---------- Trust strip ---------- */
.hq-trust {
	background: var(--hq-white);
	border-top: 1px solid var(--hq-line);
	border-bottom: 1px solid var(--hq-line);
}
.hq-trust .wp-block-column { padding: 1rem 0 1rem 0.9rem; border-left: 3px solid var(--hq-clarity); }
.hq-trust p { margin: 0; font-size: 0.875rem; color: var(--hq-muted); }
.hq-trust strong { display: block; color: var(--hq-navy); font-family: var(--hq-head); font-size: 0.98rem; }

/* ---------- Care pathway ---------- */
.hq-pathway { margin-top: 2rem; overflow-x: auto; padding-bottom: 0.5rem; }
.hq-pathway__stages {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(9, minmax(7.5rem, 1fr));
	gap: 0;
	min-width: 68rem;
	counter-reset: hq-stage;
}
.hq-pathway__stage {
	counter-increment: hq-stage;
	position: relative;
	padding: 2.4rem 0.6rem 0.5rem;
	text-align: center;
}
.hq-pathway__stage::before {
	content: counter(hq-stage);
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--hq-white);
	border: 2px solid var(--hq-teal);
	color: var(--hq-navy);
	font: 700 0.8rem var(--hq-head);
	z-index: 1;
}
.hq-pathway__stage::after {
	content: "";
	position: absolute;
	top: 0.95rem;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--hq-line);
}
.hq-pathway__stage:first-child::after { left: 50%; }
.hq-pathway__stage:last-child::after { right: 50%; }
.hq-pathway__name {
	display: block;
	font-family: var(--hq-head);
	font-weight: 700;
	color: var(--hq-navy);
	font-size: 0.95rem;
	margin-bottom: 0.35rem;
}
.hq-pathway__assist { display: block; font-size: 0.8rem; color: var(--hq-muted); line-height: 1.45; }
.hq-pathway__rails { display: grid; gap: 0.5rem; margin-top: 1.25rem; min-width: 68rem; }
.hq-pathway__rail {
	border-radius: 10px;
	padding: 0.65rem 1rem;
	font-size: 0.9rem;
}
.hq-pathway__rail b { font-family: var(--hq-head); margin-right: 0.35rem; }
.hq-pathway__rail--ai { background: var(--hq-clarity); color: var(--hq-teal-ink); }
.hq-pathway__rail--md { background: var(--hq-navy); color: #fff; }

/* ---------- Capabilities grid (numbered: they follow the consultation) ---------- */
.hq-capabilities { counter-reset: hq-cap; gap: 1rem !important; margin-top: 2rem; }
.hq-cap {
	counter-increment: hq-cap;
	background: var(--hq-white);
	border: 1px solid var(--hq-line);
	border-radius: var(--hq-radius);
	padding: 1.25rem 1.25rem 1rem;
}
.hq-cap::before {
	content: counter(hq-cap, decimal-leading-zero);
	display: block;
	font: 700 0.8rem var(--hq-head);
	color: var(--hq-teal-ink);
	letter-spacing: 0.08em;
	margin-bottom: 0.5rem;
}
.hq-cap h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }
.hq-cap p { font-size: 0.9rem; color: var(--hq-muted); margin: 0; }

/* ---------- Pitch statement ---------- */
.hq-pitch {
	background:
		radial-gradient(500px 260px at 90% 10%, rgba(0, 163, 155, 0.22), transparent 70%),
		var(--hq-navy);
	text-align: center;
}
.hq-pitch h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.hq-pitch p { max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.hq-cards { gap: 1.25rem; }
.hq-card {
	background: var(--hq-white);
	border: 1px solid var(--hq-line);
	border-radius: var(--hq-radius);
	padding: 1.5rem 1.5rem 1.25rem;
}
.hq-card h3 { font-size: 1.12rem; margin-top: 0; margin-bottom: 0.4rem; }
.hq-card p { font-size: 0.95rem; color: var(--hq-muted); }
.hq-card .hq-card__kicker {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hq-teal-ink);
	margin-bottom: 0.25rem;
}

/* Photos (AI-generated illustrations from Canva; swap for real photos when available). */
.hq-photo { margin: 0; }
.hq-photo img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 18px 40px -24px rgba(11, 45, 77, 0.45); object-fit: cover; }
.hq-photo--4x3 img { aspect-ratio: 4 / 3; }
.hq-photo--wide img { aspect-ratio: 12 / 5; }
.hq-photo--band img { aspect-ratio: 5 / 2; }
.wp-block-image.hq-photo--wide { margin-top: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 781px) { .hq-photo--wide img { aspect-ratio: 16 / 9; object-position: 45% 50%; } }

/* Product mock-ups: already drawn with their own window frame, so no extra border. */
.hq-mock { margin: 0; }
.hq-mock img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 22px 50px -30px rgba(11, 45, 77, 0.5); }
.hq-mock figcaption { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.5; color: var(--hq-muted); text-align: left; }
.hq-screens { gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: 2rem; align-items: flex-start; }

/* Three use cases: numbered rows. */
.hq-usecase + .hq-usecase { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.hq-usecase__q { display: flex; align-items: center; font-family: var(--hq-head); font-weight: 700; color: var(--hq-teal-ink); font-size: 1rem; margin: 0 0 0.5rem; }
.hq-usecase__num { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; flex: 0 0 2rem; margin-right: 0.6rem; border-radius: 50%; background: var(--hq-clarity); color: var(--hq-teal-ink); font-weight: 800; font-size: 0.95rem; }
.hq-usecase-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.hq-usecase-nav a { display: block; padding: 1rem 1.1rem; border: 1px solid var(--hq-line); border-radius: var(--hq-radius); background: var(--hq-white); color: var(--hq-navy); text-decoration: none; font-weight: 700; font-family: var(--hq-head); line-height: 1.35; }
.hq-usecase-nav a span { display: block; font-family: inherit; font-weight: 500; color: var(--hq-muted); font-size: 0.9rem; margin-top: 0.25rem; }
.hq-usecase-nav a:hover, .hq-usecase-nav a:focus-visible { border-color: var(--hq-teal); }
@media (max-width: 781px) {
	.hq-usecase-nav { grid-template-columns: 1fr; }
	.hq-feature--mirror { flex-direction: column-reverse; } /* text before image on phones */
}

/* Feature rows with a screenshot slot. */
.hq-feature { align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.hq-shot {
	background: linear-gradient(160deg, var(--hq-white), var(--hq-clarity));
	border: 1px dashed #B8CAD9;
	border-radius: 18px;
	aspect-ratio: 4 / 3;
	max-width: 100%;
	display: grid;
	place-items: center;
	padding: 1.5rem;
	text-align: center;
	color: var(--hq-muted);
	font-size: 0.9rem;
}
.hq-checks p { padding-left: 1.75rem; position: relative; margin: 0.5rem 0; }
.hq-checks p::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: var(--hq-clarity) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23007A73' stroke-width='2' d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

/* Roadmap item inside a check list: hollow marker instead of a tick, plus a tag. */
.hq-checks p.hq-soon { color: var(--hq-muted); }
.hq-checks p.hq-soon::before { background: transparent; border: 2px dashed #B8CAD9; box-sizing: border-box; }
.hq-soon__tag {
	display: inline-block;
	margin-left: 0.4rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--hq-navy);
	background: #EEF4FF;
	border-radius: 6px;
	padding: 0.05rem 0.5rem;
	vertical-align: 0.1em;
}

/* ---------- Pricing ---------- */
.hq-pricing { gap: 1.25rem; align-items: stretch !important; }
.hq-price { display: flex; flex-direction: column; }
.hq-price .wp-block-buttons { margin-top: auto; padding-top: 1rem; }
.hq-card .hq-price__amount {
	font-family: var(--hq-head);
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--hq-navy) !important;
	font-variant-numeric: tabular-nums;
	margin: 0.25rem 0 0;
}
.hq-card .hq-price__per { font-size: 0.85rem; color: var(--hq-muted); margin-top: 0; }
.hq-price--featured {
	border: 2px solid var(--hq-navy);
	box-shadow: var(--hq-shadow);
	position: relative;
}
.hq-badge {
	display: inline-block;
	align-self: flex-start;
	background: var(--hq-navy);
	color: #fff !important;
	font-size: 0.72rem !important;
	font-weight: 600;
	border-radius: 6px;
	padding: 0.15rem 0.6rem;
	margin: 0 0 0.5rem;
}

/* ---------- FAQ ---------- */
.hq-faq .wp-block-details {
	border-bottom: 1px solid var(--hq-line);
	padding: 1rem 0;
}
.hq-faq summary {
	font-family: var(--hq-head);
	font-weight: 700;
	color: var(--hq-navy);
	cursor: pointer;
	list-style-position: outside;
}
.hq-faq .wp-block-details p { color: var(--hq-muted); margin-top: 0.6rem; }

/* ---------- Founding Doctors form band ---------- */
.hq-form-card {
	background: var(--hq-white);
	color: var(--hq-ink);
	border-radius: 16px;
	padding: clamp(1.25rem, 3vw, 2rem);
}
.hq-form-card :where(h2, h3) { color: var(--hq-navy) !important; }
.hq-consent { font-size: 0.8rem; color: var(--hq-muted); }
.hq-section--navy .hq-form-card .hq-consent { color: var(--hq-muted); }

/* ---------- Footer ---------- */
.hq-footer { font-size: 0.875rem; background: var(--hq-navy-deep); }
.hq-footer p { margin: 0.3rem 0; }
.hq-footer a { color: #CFE9E6; text-decoration: none; }
.hq-footer a:hover { text-decoration: underline; }
.hq-footer__brand { margin-bottom: 0.75rem; }
.hq-footer .hq-footer__legal {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	margin-top: 2rem;
	padding-top: 1.25rem;
	color: #A9B7C4;
}

/* ---------- WhatsApp button ---------- */
.hq-whatsapp {
	position: fixed;
	right: max(16px, env(safe-area-inset-right, 0px));
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 50;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: #1F8F4E;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0.7rem 1rem;
	border-radius: 999px;
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35);
}
.hq-whatsapp:hover { background: #18773F; color: #fff; }
@media (max-width: 600px) {
	.hq-whatsapp span { display: none; }
	.hq-whatsapp { padding: 0.8rem; }
}

/* ---------- Responsive ---------- */
/* Tablet: the nine stages wrap into a 3 × 3 grid instead of scrolling sideways. */
@media (min-width: 782px) and (max-width: 1100px) {
	.hq-pathway__stages { grid-template-columns: repeat(3, 1fr); min-width: 0; row-gap: 1.25rem; }
	.hq-pathway__rails { min-width: 0; }
	.hq-pathway__stage::after { display: none; }
}

@media (max-width: 781px) {
	.hq-screen { margin-left: 0; }
	.hq-trust .wp-block-columns { gap: 0; }
	.hq-trust .wp-block-column { border-bottom: 1px solid var(--hq-line); }
	.hq-logo--header { height: 64px; }
	/* Pathway becomes a vertical list on phones. */
	.hq-pathway__stages, .hq-pathway__rails { min-width: 0; }
	.hq-pathway__stages { grid-template-columns: 1fr; }
	.hq-pathway__stage { text-align: left; padding: 0 0 1rem 3rem; }
	.hq-pathway__stage::before { left: 0; transform: none; }
	.hq-pathway__stage::after { top: 0; bottom: 0; left: 0.9rem; right: auto; width: 2px; height: auto; }
	.hq-pathway__stage:first-child::after { left: 0.9rem; top: 1rem; }
	.hq-pathway__stage:last-child::after { right: auto; bottom: auto; height: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


/* ---------- Email / WhatsApp contact buttons ([hq_contact]) ---------- */
.hq-contact { margin-top: 1.5rem; }
.hq-pricing + .hq-contact, .hq-section > .hq-contact { text-align: center; margin-top: 2.25rem; }
.hq-contact__label { margin: 0 0 0.7rem; font-weight: 600; color: var(--hq-navy); }
.hq-contact__buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hq-pricing + .hq-contact .hq-contact__buttons, .hq-section > .hq-contact .hq-contact__buttons { justify-content: center; }
.hq-contact__btn {
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.7rem 1.1rem; border-radius: 10px;
	font-weight: 600; font-size: 0.95rem; line-height: 1.2;
	text-decoration: none; border: 2px solid transparent;
	transition: transform .15s ease, box-shadow .15s ease;
}
.hq-contact__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(11,45,77,.5); text-decoration: none; }
.hq-contact__btn--wa, .hq-contact__btn--wa:visited { background: #128C4A; color: #fff; }
.hq-contact__btn--wa:hover { color: #fff; background: #0F7A40; }
.hq-contact__btn--mail, .hq-contact__btn--mail:visited { background: #fff; color: var(--hq-navy); border-color: var(--hq-line, #D5E0EA); word-break: break-all; }
.hq-contact__btn--mail:hover { color: var(--hq-navy); border-color: var(--hq-teal-ink); }
.hq-contact--dark .hq-contact__label { color: #FFFFFF; }
.hq-contact--dark .hq-contact__btn--mail { border-color: #fff; }
@media (max-width: 480px) { .hq-contact__btn { width: 100%; justify-content: center; } }

/* ---------- Founding Doctors offer (stands in for pricing before launch) ---------- */
.hq-offer .hq-card h3 { margin-top: 0.35rem; }
.hq-section .hq-offer__note { max-width: 44rem !important; margin: 1.5rem auto 0 !important; font-size: 0.95rem; }

/* ---------- Cookie consent (assets/js/consent.js) ---------- */
/* Desktop: a card at the bottom left, clear of the WhatsApp button. Phones: full width; WhatsApp waits until a choice is made. */
.hq-consent[hidden] { display: none; }
.hq-consent {
	position: fixed;
	left: max(16px, env(safe-area-inset-left, 0px));
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 60;
	width: min(34rem, calc(100vw - 32px));
	box-sizing: border-box;
	background: var(--hq-white);
	color: var(--hq-ink);
	border: 1px solid var(--hq-line);
	border-radius: var(--hq-radius);
	box-shadow: 0 18px 50px -18px rgba(11, 45, 77, 0.45);
	font-family: var(--hq-body);
}
.hq-consent__inner { padding: 1.1rem 1.25rem; }
.hq-consent__title { margin: 0 0 0.35rem; font-family: var(--hq-head); font-weight: 700; font-size: 1rem; color: var(--hq-navy); }
.hq-consent__body { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--hq-muted); }
.hq-consent__body a { color: var(--hq-teal-ink); text-decoration: underline; }
.hq-consent__actions { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.hq-consent__btn {
	flex: 1 1 0;
	min-height: 44px;
	padding: 0.6rem 1rem;
	border-radius: 10px;
	font: 600 0.95rem/1.2 var(--hq-body);
	cursor: pointer;
	border: 2px solid var(--hq-navy);
}
/* Equal weight on purpose: rejecting is as easy as accepting. */
.hq-consent__btn--accept, .hq-consent__btn--reject { background: var(--hq-navy); color: #fff; }
.hq-consent__btn:hover { background: var(--hq-navy-deep); border-color: var(--hq-navy-deep); }
.hq-consent__btn:focus-visible { outline: 3px solid var(--hq-teal); outline-offset: 2px; }
@media (max-width: 600px) {
	.hq-consent { left: 0; right: 0; bottom: 0; width: 100%; border-radius: var(--hq-radius) var(--hq-radius) 0 0; border-bottom: 0; }
	.hq-consent__inner { padding: 1rem 16px calc(1rem + env(safe-area-inset-bottom, 0px)); }
	body.hq-has-consent .hq-whatsapp { display: none; }
}
@media print { .hq-consent { display: none !important; } }

/* GeneratePress clearfix pseudo-elements become flex items in the flex header and
   add a gap before the logo; hide them so the logo lines up with the page content. */
body .site-header .inside-header::before,
body .site-header .inside-header::after { content: none; display: none; }
