/* =========================================================================
   Carely Digital 02 — design system + base + header/footer + motion.
   Section styles are appended below this block (task #17).
   ========================================================================= */

/* ---- Tokens ------------------------------------------------------------- */
:root {
	/* Brand */
	--c-primary: #3347f4;
	--c-primary-ink: #2a39c9;
	--c-bg: #f2f9ff;
	--c-bg-alt: #f4f6ff;
	--c-surface: #ffffff;
	--c-ink: #232150;       /* headings */
	--c-blue-900: #353b6f;  /* Figma Blue 900 — hero title + lead */
	--c-ink-2: #33434e;     /* nav / strong body */
	--c-text: #5b5b7a;      /* body */
	--c-footer: #201e48;    /* dark footer / dark sections */
	--c-footer-2: #2a2860;
	--c-border: #e3e6f5;
	--c-border-dark: rgba(255, 255, 255, 0.14);

	/* Accents (gradient + iso planes) */
	--c-orange: #f2a86a;
	--c-pink: #c97fb8;
	--c-purple: #8b7de8;
	--grad: linear-gradient(95deg, var(--c-orange) 0%, var(--c-pink) 50%, var(--c-purple) 100%);

	/* Type */
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--fs-h1: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);
	--fs-h2: clamp(1.9rem, 1.4rem + 2vw, 2.85rem);
	--fs-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
	--fs-lead: clamp(1rem, 0.95rem + 0.3vw, 1.18rem);
	--fs-body: 1rem;
	--fs-small: 0.875rem;

	/* Layout */
	--container: 1200px;
	--content: 760px;
	--gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
	--section-y: clamp(3.5rem, 2rem + 6vw, 7rem);
	--pad-x: clamp(1.25rem, 0.5rem + 3vw, 5rem);
	--radius: 16px;
	--radius-lg: 24px;
	--radius-pill: 58px;
	--shadow-sm: 0 2px 8px rgba(35, 33, 80, 0.06);
	--shadow-md: 0 18px 40px -18px rgba(35, 33, 80, 0.22);
	--shadow-lg: 0 40px 80px -30px rgba(35, 33, 80, 0.35);

	--header-h: 76px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: 1.6;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 {
	color: var(--c-ink);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }
a { color: var(--c-primary); text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid rgba(51, 71, 244, 0.45); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 200;
	width: auto; height: auto; clip: auto;
	background: var(--c-surface); color: var(--c-primary);
	padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-md);
}

/* ---- Layout helpers ----------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--pad-x);
}
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--alt { /* background unified to page bg (#f2f9ff) */ }
.section--white { background: var(--c-surface); }
.measure { max-width: var(--content); }
.center { text-align: center; margin-inline: auto; }
.eyebrow {
	display: inline-block;
	font-size: var(--fs-small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-primary);
	margin-bottom: 0.75rem;
}
.lead { font-size: var(--fs-lead); color: var(--c-text); max-width: 56ch; }
.center .lead { margin-inline: auto; }

/* Gradient highlight inside headings. */
.grad {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
/* Blue→orange variant (Patient Journey hero line 1). */
.grad--journey {
	background: linear-gradient(90deg, #3346f4 0%, #6a52e0 28%, #c278bd 55%, #e19d8e 80%, #eeaa74 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
/* Orange→blue variant (Contact hero mid-phrase). */
.grad--journey-reverse {
	background: linear-gradient(90deg, #eeaa74 0%, #e19d8e 22%, #c278bd 48%, #6a52e0 74%, #3346f4 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font: inherit;
	font-weight: 600;
	font-size: var(--fs-body);
	line-height: 1.6;
	padding: 12px 24px;
	border-radius: var(--radius-pill);
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
		box-shadow 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
	will-change: transform;
}
.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 10px 24px -12px rgba(51, 71, 244, 0.7); }
.btn--primary:hover { background: var(--c-primary-ink); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(51, 71, 244, 0.8); }

.btn--ghost { background: transparent; color: var(--c-primary); border-color: rgba(51, 71, 244, 0.3); }
.btn--ghost:hover { background: rgba(51, 71, 244, 0.06); transform: translateY(-2px); }

.btn--ghost-light { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }

.btn--dark { background: var(--c-ink); color: #fff; }
.btn--dark:hover { background: #181640; transform: translateY(-2px); }

/* Text link with arrow (used in cards). */
.link-arrow {
	display: inline-flex; align-items: center; gap: 0.35rem;
	font-weight: 600; color: var(--c-primary);
}
.link-arrow span { transition: transform 0.25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---- Site header -------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: transparent;
	transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-stuck {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(1.4) blur(10px);
	box-shadow: var(--shadow-sm);
}
.site-header__inner {
	max-width: var(--container);
	margin-inline: auto;
	padding: 18px var(--pad-x);
	display: flex;
	align-items: center;
	gap: var(--gap);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-ink); }
.brand__mark { display: inline-flex; width: 30px; height: 30px; color: var(--c-primary); }
.brand__mark svg { width: 30px; height: 30px; }
.brand__name { font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; }
.brand--light, .brand--light .brand__name { color: #fff; }
.brand--light .brand__mark { color: #fff; }

.nav { margin-inline: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(1.25rem, 0.5rem + 2vw, 3rem); }
.nav__links a {
	color: var(--c-ink-2);
	font-weight: 500;
	position: relative;
	padding: 4px 0;
}
.nav__links a::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
	height: 2px; background: var(--c-primary); border-radius: 2px;
	transition: right 0.28s var(--ease);
}
.nav__links a:hover::after,
.nav__links .current-menu-item > a::after { right: 0; }

.site-header__cta { margin-left: auto; }

/* Hamburger */
.nav-toggle {
	display: none;
	margin-left: auto;
	width: 44px; height: 44px;
	background: transparent; border: 0; cursor: pointer;
	flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle__bar { width: 24px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
	position: fixed; inset: 0; top: 0; z-index: 90;
	background: var(--c-bg);
	padding: calc(var(--header-h) + 24px) var(--pad-x) 40px;
	transform: translateY(-100%);
	transition: transform 0.4s var(--ease);
	overflow-y: auto;
}
.mobile-menu[hidden] { display: block; } /* keep transitionable; visibility toggled by .is-open */
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu__links { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__links a {
	display: block; padding: 14px 4px; font-size: 1.4rem; font-weight: 600;
	color: var(--c-ink); border-bottom: 1px solid var(--c-border);
}
.mobile-menu__cta { margin-top: 28px; }
.mobile-menu__cta .btn { width: 100%; justify-content: center; }

/* ---- Site footer -------------------------------------------------------- */
.site-footer {
	background: #2a2d59;
	color: rgba(255, 255, 255, 0.7);
	padding: clamp(3rem, 2rem + 4vw, 5rem) 0;
	margin-top: auto;
}
.site-footer__inner {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--pad-x);
	display: flex; flex-direction: column;
	gap: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
/* Row 1: logo + primary nav. Row 2: socials + legal links. */
.site-footer__top,
.site-footer__bottom {
	display: flex; align-items: center; justify-content: space-between;
	gap: 2rem; flex-wrap: wrap;
}
.footer-links {
	display: flex; flex-wrap: wrap; align-items: center;
	gap: clamp(1.5rem, 0.5rem + 3vw, 60px);
}
.footer-links a { color: #fff; }
.footer-links a:hover { color: rgba(255, 255, 255, 0.7); }

.social { display: flex; gap: 12px; }
.social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 39px; height: 39px; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.25); color: #fff;
	transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.social a:hover { background: var(--c-primary); transform: translateY(-2px); border-color: var(--c-primary); }

.site-footer__legal { display: flex; flex-wrap: wrap; gap: 40px; font-size: 0.875rem; }
.site-footer__legal a { color: #fff; }
.site-footer__legal a:hover { color: rgba(255, 255, 255, 0.7); }

/* ---- Cookie consent banner ---------------------------------------------- */
.cookie-consent {
	position: fixed; z-index: 200;
	left: clamp(1rem, 0.5rem + 1.5vw, 1.5rem); bottom: clamp(1rem, 0.5rem + 1.5vw, 1.5rem);
	width: min(28rem, calc(100vw - 2rem));
	background: #fff; color: var(--c-blue-900);
	border: 1px solid rgba(51, 71, 244, 0.12); border-radius: 18px;
	box-shadow: 0 24px 60px -20px rgba(53, 59, 111, 0.45), 0 8px 20px -12px rgba(53, 59, 111, 0.3);
	opacity: 0; transform: translateY(16px);
	transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.cookie-consent.is-visible { opacity: 1; transform: none; }
.cookie-consent__inner { display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.cookie-consent__text { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: #546078; }
.cookie-consent__text a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
.cookie-consent__actions { display: flex; gap: 0.75rem; }
.cookie-consent__actions .btn { flex: 1 1 0; justify-content: center; padding-inline: 1rem; white-space: nowrap; }

/* ---- Motion utilities --------------------------------------------------- */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
	transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Hero text on single posts + the legal pages fades in without the vertical
   "move" (no translate) — scoped so the Contact page hero keeps its animation. */
.single-insight__hero .reveal,
.page-template-template-privacy .contact-hero .reveal,
.page-template-template-terms .contact-hero .reveal {
	transform: none;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
	.nav, .site-header__cta { display: none; }
	.nav-toggle { display: inline-flex; }
}
@media (max-width: 600px) {
	.site-footer__top,
	.site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* =========================================================================
   CODED GRAPHICS — isometric cards, foundation diagram, journey, dashboard
   ========================================================================= */

/* ---- Isometric plane primitive (flattened rounded diamond) -------------- */
.iso { position: relative; width: 100%; margin-inline: auto; }
.iso__plane {
	position: absolute;
	border-radius: 26%;
	transform: scaleY(0.58) rotate(45deg);
	transition: top 0.2s linear, left 0.2s linear;
	box-shadow: 0 30px 50px -30px rgba(35, 33, 80, 0.35);
}
.iso__plane--orange { background: linear-gradient(135deg, rgba(242,168,106,0.62), rgba(242,168,106,0.28)); border: 1px solid rgba(242,168,106,0.55); }
.iso__plane--pink   { background: linear-gradient(135deg, rgba(201,127,184,0.6), rgba(201,127,184,0.26)); border: 1px solid rgba(201,127,184,0.5); }
.iso__plane--purple { background: linear-gradient(135deg, rgba(139,125,232,0.6), rgba(139,125,232,0.28)); border: 1px solid rgba(139,125,232,0.5); }
.iso__plane--ghost  { background: linear-gradient(135deg, rgba(210,214,235,0.7), rgba(210,214,235,0.35)); border: 1px solid rgba(200,205,230,0.6); box-shadow: none; }

/* ---- iso--cards (three disconnected systems) ---------------------------- */
.iso--cards { max-width: 540px; aspect-ratio: 1 / 1; }
.iso--cards .iso__ghosts { position: absolute; inset: 0; width: 32%; }
.iso--cards .iso__ghosts .iso__plane { width: 100%; aspect-ratio: 1; }
.iso--cards .iso__ghosts .iso__plane:nth-child(1) { top: 16%; }
.iso--cards .iso__ghosts .iso__plane:nth-child(2) { top: 41%; }
.iso--cards .iso__ghosts .iso__plane:nth-child(3) { top: 66%; }

.iso--cards .iso__stack { position: absolute; inset: 0; left: 28%; width: 72%; }
.iso--cards .iso__stack .iso__plane { width: 62%; aspect-ratio: 1; }
.iso--cards .iso__plane--orange { top: calc(2% - var(--iso-progress, 0) * 4%); left: 16%; z-index: 3; }
.iso--cards .iso__plane--pink   { top: 28%; left: 24%; z-index: 2; }
.iso--cards .iso__plane--purple { top: calc(54% + var(--iso-progress, 0) * 4%); left: 32%; z-index: 1; }

.iso__thread { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; overflow: visible; }

/* ---- iso--diagram (foundation / first-party database) ------------------- */
.iso--diagram { max-width: 600px; aspect-ratio: 1 / 0.92; }
.iso--diagram .iso__slab { position: absolute; left: 8%; bottom: 6%; width: 84%; height: 46%; }
.iso--diagram .iso__slab-face {
	position: absolute; inset: 0;
	border-radius: 18%;
	transform: scaleY(0.5) rotate(45deg);
	background: linear-gradient(135deg, rgba(115,128,255,0.5), rgba(99,102,241,0.32));
	border: 1px solid rgba(99,102,241,0.45);
	box-shadow: 0 40px 60px -35px rgba(51,71,244,0.5);
}
.iso--diagram .iso__brand {
	position: absolute; left: 50%; top: 52%;
	transform: translate(-50%, -50%) rotate(-2deg);
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 700; font-size: clamp(1.1rem, 0.8rem + 1.4vw, 1.8rem);
	color: var(--c-primary); letter-spacing: -0.02em; z-index: 2;
}
.iso--diagram .iso__brand-mark { width: 1.1em; height: 1.1em; color: var(--c-primary); }
.iso--diagram .iso__brand-mark svg { width: 100%; height: 100%; }

.iso--diagram .iso__plane--float { width: 40%; aspect-ratio: 1; }
.iso--diagram .iso__plane--orange { left: 4%;  top: calc(42% - var(--iso-progress,0)*3%); z-index: 1; }
.iso--diagram .iso__plane--pink   { left: 28%; top: calc(20% - var(--iso-progress,0)*5%); z-index: 2; }
.iso--diagram .iso__plane--purple { left: 56%; top: calc(14% - var(--iso-progress,0)*7%); z-index: 1; }
.iso__thread--diagram { z-index: 1; }

/* ---- Journey ribbon ----------------------------------------------------- */
.journey { position: relative; width: 100%; max-width: 760px; margin-inline: auto; aspect-ratio: 1 / 1.05; }
.journey__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.journey__station { position: absolute; width: 22%; aspect-ratio: 1; display: block; }
.journey__diamond { position: absolute; inset: 0; border-radius: 26%; transform: scaleY(0.58) rotate(45deg); box-shadow: 0 24px 40px -24px rgba(35,33,80,0.4); }
.journey__station--orange .journey__diamond { background: linear-gradient(135deg, rgba(242,168,106,0.7), rgba(242,168,106,0.3)); border: 1px solid rgba(242,168,106,0.55); }
.journey__station--pink   .journey__diamond { background: linear-gradient(135deg, rgba(201,127,184,0.7), rgba(201,127,184,0.3)); border: 1px solid rgba(201,127,184,0.5); }
.journey__station--purple .journey__diamond { background: linear-gradient(135deg, rgba(139,125,232,0.7), rgba(139,125,232,0.3)); border: 1px solid rgba(139,125,232,0.5); }
.journey__glow { position: absolute; left: 50%; top: 50%; width: 34%; height: 20%; transform: translate(-50%,-50%); background: #fff; border-radius: 50%; box-shadow: 0 0 24px 6px rgba(255,255,255,0.7); }
.journey__label { position: absolute; top: 86%; left: 50%; transform: translateX(-50%); font-weight: 700; font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.35rem); white-space: nowrap; }
.journey__station--orange .journey__label { color: var(--c-orange); }
.journey__station--pink   .journey__label { color: var(--c-pink); }
.journey__station--purple .journey__label { color: var(--c-purple); left: auto; right: 0; transform: none; }

.journey__station--1 { left: 6%;  top: 22%; }
.journey__station--2 { left: 44%; top: 46%; }
.journey__station--3 { left: 52%; top: 72%; }

.journey__stop { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.journey__dot { width: 18px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 4px 10px rgba(35,33,80,0.18); }
.journey__stop-label { font-size: 0.72rem; color: var(--c-ink-2); text-align: center; max-width: 90px; line-height: 1.25; }
.journey__stop--1 { left: 30%; top: 35%; }
.journey__stop--2 { left: 40%; top: 44%; }
.journey__stop--3 { left: 36%; top: 58%; }
.journey__stop--4 { left: 26%; top: 67%; }
.journey__stop--5 { left: 38%; top: 80%; }
.journey__stop--6 { left: 80%; top: 86%; }

/* ---- Dashboard mockup --------------------------------------------------- */
.dashboard {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	padding: 18px;
	width: 100%;
}
.dashboard__bar { display: flex; align-items: center; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--c-border); }
.dashboard__dot { width: 9px; height: 9px; border-radius: 50%; background: #e0e3f2; }
.dashboard__dot:nth-child(1) { background: #f2a86a; }
.dashboard__dot:nth-child(2) { background: #c97fb8; }
.dashboard__dot:nth-child(3) { background: #8b7de8; }
.dashboard__title { margin-left: 8px; font-size: var(--fs-small); font-weight: 600; color: var(--c-ink-2); }
.dashboard__stats { display: flex; gap: 18px; padding: 16px 0; }
.dashboard__stat strong { display: block; font-size: 1.4rem; color: var(--c-ink); letter-spacing: -0.02em; }
.dashboard__stat span { font-size: 0.75rem; color: var(--c-text); }
.dashboard__chart { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.dashboard__col { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--c-purple), var(--c-primary)); opacity: 0.85; }
.dashboard__rows { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.dashboard__line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #e6e9f8, #f2f4fc); }
.dashboard__line:nth-child(odd) { width: 92%; }
.dashboard__line:nth-child(even) { width: 74%; }

@media (max-width: 600px) {
	.journey__stop-label { display: none; }
	.iso--cards .iso__ghosts { opacity: 0.6; }
}

/* =========================================================================
   SECTION STYLES  (task #17)
   ========================================================================= */

/* ---- Shared surfaces & placeholders ------------------------------------ */
.section--dark {
	background: var(--c-footer);
	color: rgba(255, 255, 255, 0.78);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead { color: rgba(255, 255, 255, 0.72); }
.section--dark .eyebrow { color: var(--c-orange); }

/* Image placeholders (swapped for real assets later) */
.ph {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: linear-gradient(135deg, #e7ecff 0%, #f3f0fb 100%);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	color: var(--c-purple);
	overflow: hidden;
}
.ph::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 30% 25%, rgba(139, 125, 232, 0.18), transparent 55%),
	            radial-gradient(circle at 75% 80%, rgba(242, 168, 106, 0.16), transparent 55%);
}
.ph--portrait { aspect-ratio: 3 / 4; }
.ph--landscape { aspect-ratio: 4 / 3; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--wide { aspect-ratio: 16 / 10; }
.ph__icon { width: 40px; height: 40px; opacity: 0.6; position: relative; z-index: 1; }
.ph__label {
	position: relative; z-index: 1;
	font-size: var(--fs-small); font-weight: 600;
	color: var(--c-ink-2); opacity: 0.7;
}

/* ---- Hero --------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 1.5rem + 7vw, 7.5rem); }
.hero--split .container,
.hero--home .container {
	display: grid; grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center;
}
.hero--center .hero__copy { max-width: 760px; margin-inline: auto; text-align: center; }
.hero--center .hero__actions { justify-content: center; }
.hero--center .lead { margin-inline: auto; }
.hero__title { font-size: var(--fs-h1); margin-bottom: 0.4em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero__media { position: relative; min-height: 280px; }
.hero__media--home { display: grid; gap: 1.25rem; min-height: 0; }
.hero--gradient { background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-alt) 100%); }

@media (max-width: 880px) {
	.hero--split .container,
	.hero--home .container { grid-template-columns: 1fr; }
	.hero__media { order: 2; }
}

/* ---- Home hero (Figma 40000001:101449) ---------------------------------- */
.hero-home {
	padding-block: clamp(4rem, 2rem + 9vw, 180px) clamp(3rem, 1.5rem + 7vw, 120px);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(2.25rem, 1rem + 4vw, 50px);
	overflow: hidden;
}
.hero-home__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(0.9rem, 0.5rem + 1.5vw, 1.5rem);
	text-align: center;
}
.hero-home__title {
	margin: 0;
	font-size: clamp(2.25rem, 1.2rem + 4.4vw, 56px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--c-blue-900);
	max-width: 100%;
}
.hero-home__lead {
	margin: 0;
	max-width: 52ch;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--c-blue-900);
}
.hero-home__media {
	width: 100%;
	max-width: 1312px;
	margin-inline: auto;
	padding-inline: var(--pad-x);
}
.hero-home__media-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1312 / 501;
	object-fit: cover;
	border-radius: 30px;
}

@media (max-width: 720px) {
	.hero-home__media-img { aspect-ratio: 4 / 3; }
}

/* ---- Patient Journey hero (Figma 40000010:85122) ------------------------ */
.hero-journey {
	padding-block: clamp(4rem, 2rem + 9vw, 180px) clamp(2.5rem, 1.5rem + 5vw, 90px);
}
.hero-journey__head {
	display: flex; flex-direction: column; align-items: center;
	gap: clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
	text-align: center;
}
.hero-journey__title {
	margin: 0;
	font-size: clamp(2rem, 1.2rem + 4vw, 56px);
	font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
	color: var(--c-blue-900);
	max-width: 100%;
}
.hero-journey__title .grad--journey,
.hero-journey__line1,
.hero-journey__line2 { display: block; }
/* Platform hero: line 1 stays Blue 900, line 2 carries the gradient; widen the
   title so "Built for every phase of" sits on one line like the Figma frame. */
.hero-platform .hero-journey__title { max-width: 100%; }
.hero-journey__lead {
	margin: 0; max-width: 60ch;
	font-size: 1rem; line-height: 1.6; color: #546078;
}

/* Insights hero (Figma 40000084:2296): single centred "Carely Insights". */
.hero-insights {
	padding-block: clamp(5rem, 3rem + 9vw, 200px) clamp(4rem, 2rem + 7vw, 150px);
	text-align: center;
}
.hero-insights__title {
	margin: 0;
	font-size: clamp(2rem, 1.4rem + 4vw, 56px);
	font-weight: 700; letter-spacing: -0.03em; line-height: 1;
	color: var(--c-blue-900);
}
.hero-insights__title .grad--journey { display: inline; }

/* Contact hero (Figma 40000084:3283): centred title with a mid-phrase gradient. */
.hero-contact { background: #fff; }
.contact-hero { padding-block: clamp(4rem, 2.5rem + 8vw, 180px) clamp(3rem, 2rem + 5vw, 120px); text-align: center; }
.contact-hero__title { margin: 0 auto; max-width: 100%; font-size: clamp(2rem, 1.4rem + 4vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--c-blue-900); }
.contact-hero__title .grad--journey-reverse { display: inline; }

/* ---- Two images (Figma 40000091:3370) ----------------------------------- */
.two-images__grid {
	display: flex;
	align-items: stretch;
	gap: clamp(1rem, 0.4rem + 2vw, 39px);
	height: clamp(320px, 35vw, 501px);
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--pad-x);
}
.two-images__item { margin: 0; display: flex; }
.two-images__item--narrow { flex: 0 0 clamp(220px, 27vw, 390px); }
.two-images__item--wide { flex: 1 1 0; min-width: 0; }
.two-images__item .ph,
.two-images__item img {
	width: 100%; height: 100%; aspect-ratio: auto; border-radius: 30px;
}
.two-images__item img { object-fit: cover; display: block; }
@media (max-width: 720px) {
	.two-images__grid { flex-direction: column; height: auto; }
	.two-images__item--narrow { flex: none; }
	.two-images__item .ph,
	.two-images__item img { aspect-ratio: 4 / 3; height: auto; }
}

/* ---- Editorial text block (About: Figma 40000084:2794, 40000089:4238) --- */
.text-block__title {
	margin: 0; font-size: clamp(1.75rem, 1.2rem + 2vw, 40px); font-weight: 700;
	letter-spacing: -0.03em; line-height: 1.1; color: var(--c-blue-900);
}
.text-block__body { margin-top: clamp(1.75rem, 1rem + 2.5vw, 48px); max-width: 620px; }
.text-block__body p {
	margin: 0 0 clamp(1.25rem, 1rem + 0.6vw, 31px);
	font-size: 1.125rem; line-height: 1.5; color: var(--c-blue-900);
}
.text-block__body p:last-child { margin-bottom: 0; }

/* Optional paired photo, on an alternating side. */
.text-block--with-image .text-block__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(320px, 38%, 534px);
	gap: clamp(2rem, 1rem + 4vw, 88px);
	align-items: center;
}
.text-block--image-left .text-block__inner { grid-template-columns: clamp(320px, 38%, 534px) minmax(0, 1fr); }
.text-block--image-left .text-block__text { order: 2; }
.text-block--with-image .text-block__media { margin: 0; }
.text-block--with-image .text-block__media img {
	width: 100%; height: auto; display: block; border-radius: 30px;
}
@media (max-width: 820px) {
	.text-block--with-image .text-block__inner,
	.text-block--image-left .text-block__inner { grid-template-columns: 1fr; gap: clamp(1.5rem, 1rem + 3vw, 2.5rem); }
	.text-block--image-left .text-block__text { order: 0; }
	.text-block--with-image .text-block__media { max-width: 534px; }
}

/* ---- Mid text statement (Figma 40000001:98692 "Hero Quote") ------------- */
.mid-text { text-align: center; }
.mid-text__statement {
	max-width: 988px; margin-inline: auto;
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
	line-height: 1.15; letter-spacing: -0.03em;
	color: var(--c-blue-900);
}
.mid-text__muted, .mid-text__strong { display: block; }
.mid-text__muted { font-weight: 400; }
.mid-text__strong { font-weight: 700; }

/* ---- Band (blue / dark intermezzo) -------------------------------------- */
.band { color: #fff; padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.band .container { display: flex; flex-direction: column; align-items: center; gap: clamp(1rem, 0.6rem + 1.2vw, 1.5rem); text-align: center; max-width: 820px; }
.band--wide .container { max-width: 1040px; }
.band__eyebrow { color: #fff; font-size: 1rem; font-weight: 400; line-height: 1.6; text-transform: uppercase; margin: 0; }
.band__title { color: #fff; font-size: var(--fs-h2); }
.band__subtext { color: rgba(255, 255, 255, 0.82); font-size: var(--fs-lead); margin: 0; }
.band__note { color: rgba(255, 255, 255, 0.82); font-size: var(--fs-lead); margin: 0; }
.band--blue { background: #3347f4; }
.band--dark { background: var(--c-blue-900); }
.band--blue .band__title .grad,
.band--dark .band__title .grad { -webkit-text-fill-color: #fff; color: #fff; }

/* ---- FAQ accordion ------------------------------------------------------ */
.faq { /* bg inherits page */ }
.faq__title {
	margin: 0 0 3rem; text-align: left;
	font-size: clamp(1.75rem, 1.2rem + 2.2vw, 40px); font-weight: 700;
	letter-spacing: -0.03em; line-height: 1.05; color: #091e46;
}
.accordion { display: flex; flex-direction: column; gap: 24px; }
.accordion__item {
	border: 1px solid rgba(53, 59, 111, 0.1); border-radius: 16px;
	background: transparent; transition: border-color 0.3s var(--ease);
}
.accordion__item.is-open { border-color: rgba(53, 59, 111, 0.18); }
.accordion__heading { margin: 0; }
.accordion__trigger {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
	padding: 24px; background: none; border: 0; cursor: pointer;
	font-family: inherit; font-size: clamp(1.05rem, 1rem + 0.5vw, 1.5rem); font-weight: 600;
	color: var(--c-blue-900); text-align: left; line-height: 1.25;
}
.accordion__icon { position: relative; flex: 0 0 16px; width: 16px; height: 16px; }
.accordion__icon::before, .accordion__icon::after {
	content: ""; position: absolute; top: 50%; left: 50%; background: var(--c-blue-900);
	transform: translate(-50%, -50%); transition: transform 0.3s var(--ease);
}
.accordion__icon::before { width: 13px; height: 2px; }
.accordion__icon::after { width: 2px; height: 13px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.accordion__panel {
	overflow: hidden; max-height: 0;
	transition: max-height 0.4s var(--ease), opacity 0.3s ease;
	opacity: 0;
}
.accordion__item.is-open .accordion__panel { max-height: 600px; opacity: 1; }
.accordion__panel-inner { padding: 0 24px 24px; color: var(--c-blue-900); font-size: 1rem; line-height: 1.6; }
.accordion__panel-inner p { margin: 0; }
.faq__all { margin: 2rem 0 0; text-align: right; }
.faq__all .link-arrow { color: var(--c-primary); font-weight: 400; }

/* ---- Two-paths / CTA cards ---------------------------------------------- */
.two-paths { border-block: 1px solid #e7f1ff; }
.two-paths .center { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 62px); }
.two-paths__title {
	font-size: clamp(1.75rem, 1.2rem + 2.2vw, 40px); font-weight: 700;
	letter-spacing: -0.03em; line-height: 1.05; color: var(--c-blue-900);
}
.two-paths__subtitle { margin: 1rem 0 0; font-size: 1.125rem; line-height: 1.5; color: var(--c-blue-900); }
.two-paths__lead { margin: 1.25rem auto 0; color: var(--c-blue-900); max-width: 72ch; }
.two-paths__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 64px); align-items: stretch; }
.cta-card {
	padding: clamp(1.75rem, 1.2rem + 2vw, 48px);
	border-radius: 20px; display: flex; flex-direction: column; gap: 0.625rem;
}
.cta-card__title { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 32px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.cta-card__desc { margin: 0; font-size: 1rem; line-height: 1.6; }
.cta-card__body { display: flex; flex-direction: column; gap: 0.625rem; }
.cta-card .btn { margin-top: auto; align-self: flex-start; }
.cta-card--light { background: #fff; color: var(--c-blue-900); }
.cta-card--blue { background: var(--c-primary); color: #fff; }
.cta-card--blue .cta-card__title { color: #fff; }
.cta-card--blue .cta-card__desc { color: #fff; }
@media (max-width: 720px) { .two-paths__grid { grid-template-columns: 1fr; } }

/* ---- Systems (3 disconnected) — Figma 40000001:103108 ------------------- */
/* ---- The problem (Figma 40000001:103108) — full-bleed blue statement band -- */
.systems {
	background: var(--c-primary);
	color: #fff;
	text-align: center;
	padding-block: clamp(3.25rem, 2.4rem + 3vw, 4.5rem);
}
.systems__head {
	max-width: 1080px;
	margin-inline: auto;
	display: flex; flex-direction: column; align-items: center;
	gap: clamp(1.5rem, 1rem + 2vw, 40px);
}
.systems__eyebrow {
	margin: 0;
	font-size: 1rem; font-weight: 400; line-height: 1.6;
	letter-spacing: 0.05em; text-transform: uppercase;
	color: #fff;
}
.systems__title {
	margin: 0;
	font-size: clamp(2.25rem, 1.2rem + 4.4vw, 56px);
	font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
	color: #fff;
}
.systems__title-accent { color: #70a5f5; }
.systems__lead {
	margin: 0 auto; max-width: 848px;
	font-size: 1.125rem; line-height: 1.5; color: #fff;
}

/* ---- Patient-journey phases (Figma 40000091:3321) ----------------------- */
.journey-phases__layout {
	display: grid; grid-template-columns: 1.35fr 1fr;
	gap: clamp(1.5rem, 0.5rem + 4vw, 5rem);
	align-items: center;
}
.journey-phases__visual { display: flex; align-items: center; }
.journey-phases__visual img { width: 100%; height: auto; display: block; }
.journey-phases__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-direction: column; justify-content: space-between;
	gap: clamp(2rem, 1rem + 4vw, 4rem);
}
.journey-phases__item { position: relative; }
.journey-phases__item--orange { --accent: var(--c-orange); }
.journey-phases__item--pink { --accent: var(--c-pink); }
.journey-phases__item--purple { --accent: var(--c-purple); }
.journey-phases__item-title {
	margin: 0 0 0.75rem; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 32px);
	font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--accent);
}
.journey-phases__item-desc { margin: 0; max-width: 346px; font-size: 1rem; line-height: 1.5; color: #546078; }
.journey-phases__item-note { margin: 0.75rem 0 0; font-size: 0.875rem; font-style: italic; line-height: 1.5; color: #546078; }

@media (max-width: 880px) {
	.journey-phases__layout { grid-template-columns: 1fr; gap: 2.5rem; }
	.journey-phases__list { gap: 1.75rem; }
}

/* ---- Three capabilities / One foundation (Figma 40000001:103145) --------- */
.capabilities { background: #f1f7ff; border-block: 1px solid #e7f1ff; padding-block: clamp(3.25rem, 2.4rem + 3vw, 4.5rem); }

/* Block 1 — centered heading + lead. */
.capabilities__head { max-width: 1080px; margin-inline: auto; margin-bottom: clamp(2.5rem, 1.5rem + 5vw, 100px); }
.capabilities__title {
	margin: 0;
	font-size: clamp(2.25rem, 1.2rem + 4.4vw, 56px); font-weight: 700;
	letter-spacing: -0.03em; line-height: 1.05; color: var(--c-blue-900);
}
.capabilities__lead {
	margin: clamp(1rem, 0.6rem + 1.4vw, 40px) auto 0; max-width: 848px;
	font-size: 1.125rem; line-height: 1.5; color: #091e46;
}

/* Block 2 — foundation graphic beside the three capability blocks. */
.capabilities__main {
	display: flex; align-items: flex-start;
	gap: clamp(2rem, 0.5rem + 5vw, 100px);
}
.capabilities__visual { flex: 1 1 auto; min-width: 0; }
.capabilities__visual img { width: 100%; height: auto; display: block; }
.capabilities__cols {
	flex: 0 0 clamp(260px, 27%, 340px);
	display: flex; flex-direction: column;
	gap: clamp(2rem, 1rem + 2vw, 50px);
}
.capability { display: flex; flex-direction: column; }
.capability--orange { --accent: #eeaa74; }
.capability--pink { --accent: #c67cb7; }
.capability--purple { --accent: #7c60d8; }
.capability__title { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.33; letter-spacing: 0; color: var(--accent); }
.capability__phase { margin-top: 0.5rem; font-size: 1.125rem; font-weight: 600; line-height: 1.5; color: #595959; }
.capability__desc { margin: 1.5rem 0 0; max-width: 303px; font-size: 1rem; line-height: 1.5; color: #52525c; }
.capability__link { margin-top: 1rem; font-size: 0.875rem; font-weight: 500; color: var(--accent); }

/* Block 3 — "Underneath" first-party database statement (two columns). */
.capabilities__foundation {
	margin-top: clamp(2.5rem, 1.5rem + 5vw, 100px);
	display: flex; align-items: flex-start; gap: clamp(2rem, 1rem + 3vw, 40px);
}
.capabilities__foundation-head { flex: 0 0 clamp(280px, 42%, 643px); }
.capabilities__eyebrow {
	display: block; margin-bottom: 0.625rem;
	font-size: 1rem; font-weight: 400; line-height: 1.6;
	text-transform: uppercase; letter-spacing: 0.02em; color: var(--c-blue-900);
}
.capabilities__foundation-title {
	margin: 0; font-size: 1.875rem; font-weight: 700; line-height: 1.2; color: var(--c-blue-900);
}
.capabilities__foundation-body {
	flex: 1 1 0; min-width: 0;
	display: flex; flex-direction: column; gap: clamp(1.5rem, 1rem + 2vw, 40px);
}
.capabilities__foundation-desc { margin: 0; font-size: 1.125rem; line-height: 1.6; color: var(--c-blue-900); }
.capabilities__foundation-link { font-size: 1rem; font-weight: 500; color: var(--c-primary); }

@media (max-width: 980px) {
	.capabilities__main { flex-direction: column; align-items: stretch; }
	.capabilities__cols { flex-basis: auto; max-width: 520px; }
	.capabilities__foundation { flex-direction: column; gap: 1.25rem; }
	.capabilities__foundation-head { flex-basis: auto; }
}

/* ---- Database value (foundation diagram + UNDERNEATH copy) -------------- */
.database-value { border-bottom: 1px solid #e7f1ff; padding-top: 0; }
.database-value .container { display: block; }
.database-value__visual { max-width: 1100px; margin: 0 auto; }
.database-value__visual .fnd-diagram svg { display: block; width: 100%; height: auto; }
.database-value__copy { max-width: 643px; margin-left: auto; margin-top: clamp(-2rem, -4vw, 0rem); }
.database-value__eyebrow {
	display: block; margin-bottom: 0.75rem;
	font-size: 1rem; font-weight: 600; letter-spacing: 0.08em;
	text-transform: uppercase; color: var(--c-blue-900);
}
.database-value__title { margin: 0 0 1rem; font-size: 1.875rem; font-weight: 700; line-height: 1.2; color: var(--c-blue-900); }
.database-value__desc { margin: 0; font-size: 1.125rem; line-height: 1.6; color: var(--c-blue-900); }
.database-value__link { display: inline-block; margin-top: 1rem; font-size: 1rem; font-weight: 500; color: var(--c-primary); }
@media (max-width: 880px) {
	.database-value__copy { margin-left: 0; margin-top: 1.5rem; }
}

/* ---- New-category (copy + foundation diagram, Figma 40000011:115920) ---- */
.new-category { overflow: hidden; }
.new-category__head { display: flex; flex-direction: column; gap: clamp(0.75rem, 0.5rem + 1vw, 24px); }
.new-category__title { font-size: clamp(2rem, 1.2rem + 3.4vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--c-blue-900); }
.new-category__lead { color: var(--c-blue-900); }

/* Diagram stage: a CSS container so every overlay scales in `em` as one unit. */
.new-category__stage {
	position: relative;
	width: 100%;
	max-width: 1100px;
	margin: clamp(1.5rem, 0.5rem + 4vw, 56px) auto clamp(1.5rem, 0.5rem + 3vw, 48px);
	aspect-ratio: 1312 / 988;
	container-type: inline-size;
}
.new-category__diagram { position: absolute; inset: 0; }
.new-category__diagram img { width: 100%; height: 100%; object-fit: contain; display: block; }

.new-category__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 1rem + 2vw, 48px); }
.new-category__col { display: flex; flex-direction: column; gap: 0.5rem; }
.new-category__col-title { margin: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--c-blue-900); }
.new-category__col-phase { margin: 0; font-size: 0.95rem; color: #6b7299; }
.new-category__col-desc { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--c-blue-900); }
.new-category__col-link { margin-top: 0.35rem; font-size: 0.9rem; font-weight: 600; color: var(--c-primary); align-self: flex-start; }
@media (max-width: 880px) { .new-category__cols { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ---- Phase detail (Platform: Acquisition 116025, Experience 116685, …) -- */
.phase-detail { overflow: hidden; }
.phase-detail--orange { --accent: #e2913f; }
.phase-detail--pink   { --accent: #c25fa6; }
.phase-detail--purple { --accent: #7c60d8; }
.phase-detail--blue   { --accent: var(--c-primary); }
.phase-detail--alt { /* bg inherits page */ }

.phase-detail__head { max-width: 62rem; }
.phase-detail__title { margin: 0; font-size: clamp(1.75rem, 1.2rem + 2vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: var(--c-blue-900); }
.phase-detail__title-accent { color: var(--accent); }
.phase-detail__lead { margin: clamp(1rem, 0.6rem + 1.4vw, 1.5rem) 0 0; max-width: 34ch; font-size: 1rem; line-height: 1.6; color: var(--c-blue-900); }

/* Phase plane: inline (above the graphic) or centred above the heading. */
.phase-detail__plane img { display: block; height: auto; }
.phase-detail__plane--inline { margin-top: clamp(2rem, 1rem + 3vw, 56px); }
.phase-detail__plane--inline img { width: clamp(220px, 30%, 340px); }
.phase-detail__plane--top { display: flex; justify-content: center; margin-bottom: clamp(1rem, 0.5rem + 2vw, 32px); }
.phase-detail__plane--top img { width: clamp(220px, 26%, 320px); }
.phase-detail__plane--right { justify-content: flex-end; }
.phase-detail__plane--left { justify-content: flex-start; }
/* Wide plane (the Foundation Carely slab): shown in full, offset off the left. */
.phase-detail__plane--wide { justify-content: flex-start; margin-bottom: clamp(0.5rem, 0.25rem + 1.5vw, 24px); }
.phase-detail__plane--wide img { width: clamp(360px, 50%, 640px); margin-left: clamp(-140px, -7vw, -40px); }

.phase-detail__grid {
	margin-top: clamp(0.5rem, 0.25rem + 1vw, 1rem);
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: clamp(2rem, 1rem + 4vw, 72px);
	align-items: start;
}
.phase-detail--flip .phase-detail__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.phase-detail--flip .phase-detail__shot { order: 2; }
.phase-detail--flip .phase-detail__features { order: 1; }
/* Narrow media (e.g. the Connection hub): graphic column slimmer, no bleed. */
.phase-detail--media-narrow .phase-detail__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); align-items: center; }

/* Graphic: bleeds off the outer edge (left by default, right when flipped). */
.phase-detail__shot { margin: 0; --bleed: 38%; }
.phase-detail__shot img { display: block; max-width: none; width: calc(100% + var(--bleed)); height: auto; margin-left: calc(-1 * var(--bleed)); }
.phase-detail__shot--framed { overflow: hidden; border-radius: 24px; }
.phase-detail__shot--framed img { border-radius: 24px; box-shadow: 0 40px 80px -45px rgba(53, 59, 111, 0.35); }
.phase-detail--flip .phase-detail__shot { --bleed: 14%; }
.phase-detail--flip .phase-detail__shot img { margin-left: 0; margin-right: calc(-1 * var(--bleed)); }
.phase-detail--media-narrow .phase-detail__shot { --bleed: 0%; }

.phase-detail__features { display: flex; flex-direction: column; gap: clamp(1.5rem, 1rem + 2vw, 48px); }
.phase-detail__feature { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; min-height: clamp(150px, 12vw, 200px); }

/* Acquisition / Experience / Connection: each capability blurb is a white card,
   accent title at the top with the paragraph below it (Figma 40000011:116025 …). */
.phase-detail--orange .phase-detail__feature,
.phase-detail--pink .phase-detail__feature,
.phase-detail--purple .phase-detail__feature {
	justify-content: flex-start;
	gap: clamp(1.25rem, 0.8rem + 1.4vw, 1.75rem);
	min-height: clamp(190px, 14vw, 230px);
	background: #fff;
	border-radius: 24px;
	padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
	box-shadow: 0 30px 60px -48px rgba(53, 59, 111, 0.28);
}
.phase-detail--orange .phase-detail__feature-desc,
.phase-detail--pink .phase-detail__feature-desc,
.phase-detail--purple .phase-detail__feature-desc { max-width: none; }
.phase-detail__feature-title { margin: 0; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; color: var(--accent); }
.phase-detail__feature-desc { margin: 0; max-width: 42ch; font-size: 1rem; line-height: 1.6; color: var(--c-blue-900); }

/* Carded feature variants (Foundation: white / blue / dark). */
.phase-detail__feature--white,
.phase-detail__feature--blue,
.phase-detail__feature--dark {
	border-radius: 20px;
	padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
	min-height: clamp(190px, 15vw, 234px);
	gap: 1.25rem;
}
.phase-detail__feature--white .phase-detail__feature-desc,
.phase-detail__feature--blue .phase-detail__feature-desc,
.phase-detail__feature--dark .phase-detail__feature-desc { max-width: none; }
.phase-detail__feature--white { background: #fff; }
.phase-detail__feature--white .phase-detail__feature-title { color: var(--c-blue-900); }
.phase-detail__feature--blue { background: var(--c-primary); }
.phase-detail__feature--blue .phase-detail__feature-title { color: #fff; }
.phase-detail__feature--blue .phase-detail__feature-desc { color: #f1f6ff; }
.phase-detail__feature--dark { background: var(--c-blue-900); }
.phase-detail__feature--dark .phase-detail__feature-title { color: #fff; }
.phase-detail__feature--dark .phase-detail__feature-desc { color: rgba(255, 255, 255, 0.82); }

@media (max-width: 900px) {
	.phase-detail__grid,
	.phase-detail--flip .phase-detail__grid { grid-template-columns: 1fr; gap: clamp(1.5rem, 1rem + 3vw, 40px); }
	.phase-detail--flip .phase-detail__shot,
	.phase-detail--flip .phase-detail__features { order: 0; }
	.phase-detail__shot,
	.phase-detail--flip .phase-detail__shot { --bleed: 0%; overflow: visible; }
	.phase-detail__shot img { width: 100%; margin-left: 0; margin-right: 0; }
	.phase-detail__feature { min-height: 0; }
	.phase-detail__plane--inline img,
	.phase-detail__plane--top img { width: clamp(180px, 42%, 260px); }
}

/* ---- Two layers, three phases (Platform, Figma 40000011:117038) --------- */
.two-layers { overflow: hidden; }
.two-layers__head { display: flex; flex-direction: column; gap: clamp(0.75rem, 0.5rem + 1vw, 24px); max-width: 36rem; }
.two-layers__title { margin: 0; font-size: clamp(1.75rem, 1.2rem + 2vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--c-blue-900); }
.two-layers__lead { margin: 0; max-width: 34ch; font-size: 1rem; line-height: 1.6; color: #546078; }

.two-layers__stage {
	position: relative;
	width: 100%;
	max-width: 1120px;
	margin: clamp(1rem, 0.25rem + 3vw, 40px) auto 0;
	aspect-ratio: 1440 / 1514;
}
.two-layers__diagram { position: absolute; inset: 0; }
.two-layers__diagram img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 600px) { .two-layers__lead { max-width: none; } }

/* ---- Journey graphic section (Figma 40000010:83992) --------------------- */
.journey-graphic { overflow: hidden; }
.journey-graphic__head { display: flex; flex-direction: column; gap: clamp(1rem, 0.6rem + 1.4vw, 32px); }
.journey-graphic__title {
	margin: 0; font-size: clamp(2rem, 1.3rem + 3.2vw, 56px); font-weight: 700;
	letter-spacing: -0.03em; line-height: 1.02; color: var(--c-blue-900);
}
.journey-graphic__lead {
	margin: 0 auto; font-size: 1.125rem; line-height: 1.6; color: #091e46; max-width: 53ch;
}

/*
 * Stage: percentage-positioned overlays sit over a fixed-ratio ribbon SVG.
 * It is a CSS container, and every overlay is sized in `em` off a cqw-driven
 * base font-size, so the whole diagram scales as one coherent unit at any
 * width (no overlap on mobile — just a smaller, faithful replica).
 */
.journey-graphic__stage {
	position: relative; width: 100%; max-width: 1280px; margin: clamp(3.5rem, 2rem + 6vw, 120px) auto 0;
	aspect-ratio: 1440 / 1112;
	container-type: inline-size;
	font-size: min(2.4cqw, 30px);
}
.journey-graphic__ribbon { position: absolute; inset: 0; }
.journey-graphic__ribbon img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Station stops: icon + caption inside the Figma label box (sized via inline
   left/top/width %), so captions stay clear of the thread. */
.journey-graphic__stop {
	position: absolute; height: 9.86%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.45em;
	text-align: center; pointer-events: none;
}
.journey-graphic__icon { height: 1.3em; width: auto; max-width: 2em; }
.journey-graphic__stop-label {
	font-size: 0.42em; font-weight: 600; line-height: 1.25;
	letter-spacing: -0.01em; color: #2e2f89;
}

/* Phase blocks: heading + description + note, anchored top-left beside a diamond. */
.journey-graphic__phase {
	position: absolute; width: 11.6em;
	display: flex; flex-direction: column; gap: 0.4em;
}
.journey-graphic__phase-title { margin: 0; font-size: 1.07em; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.journey-graphic__phase-desc { margin: 0; font-size: 0.533em; line-height: 1.5; color: #546078; }
.journey-graphic__phase-note { margin: 0; font-size: 0.467em; font-style: italic; line-height: 1.5; color: #546078; }
.journey-graphic__phase--orange .journey-graphic__phase-title { color: #eeaa74; }
.journey-graphic__phase--pink   .journey-graphic__phase-title { color: #c67cb7; }
.journey-graphic__phase--purple .journey-graphic__phase-title { color: #7c60d8; }

/* Mobile: stop absolute-positioning; show the ribbon then stack the phases. */
@media (max-width: 760px) {
	/* The diagonal path image carries no meaning at phone width, so swap it for a
	   compact vertical journey: a coloured diamond marker + connector line beside
	   each phase heading and its description. */
	.journey-graphic__stage {
		max-width: 32rem; aspect-ratio: auto; height: auto;
		display: flex; flex-direction: column; gap: 0; font-size: 16px;
	}
	.journey-graphic__ribbon,
	.journey-graphic__stop { display: none; }
	.journey-graphic__phase {
		/* Override the desktop inline left/top so the stacked blocks aren't shifted. */
		position: relative; left: 0 !important; top: 0 !important; width: auto;
		display: grid; grid-template-columns: 1.4rem 1fr; column-gap: 1rem;
		padding-bottom: 2rem;
	}
	.journey-graphic__phase:last-child { padding-bottom: 0; }
	.journey-graphic__phase > * { grid-column: 2; }
	/* Diamond marker. */
	.journey-graphic__phase::before {
		content: ""; grid-column: 1; grid-row: 1; justify-self: center;
		width: 1.1rem; height: 1.1rem; margin-top: 0.4rem;
		border-radius: 5px; transform: rotate(45deg);
		background: var(--pa, var(--c-primary));
	}
	/* Connector line down to the next marker. */
	.journey-graphic__phase:not(:last-child)::after {
		content: ""; position: absolute; top: 2rem; bottom: 0;
		left: calc(0.7rem - 1px); width: 2px;
		background: var(--pa, var(--c-primary)); opacity: 0.35;
	}
	.journey-graphic__phase-title { font-size: 1.5rem; margin-bottom: 0.35rem; }
	.journey-graphic__phase-desc { font-size: 1rem; }
	.journey-graphic__phase-note { font-size: 0.875rem; margin-top: 0.5rem; }
	.journey-graphic__phase--orange { --pa: #eeaa74; }
	.journey-graphic__phase--pink   { --pa: #c67cb7; }
	.journey-graphic__phase--purple { --pa: #7c60d8; }
}

/* CTA buttons, in a centered row below the ribbon (no longer overlapping it). */
.journey-graphic__actions {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
	margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.journey-graphic__actions .btn { white-space: nowrap; }

/* ---- Clinical excellence (Figma 40000231:47903) ------------------------- */
/* Three equal emphasis cards in a horizontal row (white / blue / dark). */
.clinical__cards {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 0.8rem + 1.6vw, 48px); align-items: stretch;
}
.emphasis-card {
	display: flex; flex-direction: column; justify-content: center; gap: 0.625rem;
	padding: clamp(1.75rem, 1.2rem + 2vw, 48px);
	border-radius: 20px;
}
.emphasis-card h3 {
	margin: 0; font-size: 1.5rem; font-weight: 700;
	letter-spacing: -0.03em; line-height: 1.5;
}
.emphasis-card p { margin: 0; font-size: 1rem; line-height: 1.6; }
.emphasis-card--light { background: #fff; color: var(--c-blue-900); }
.emphasis-card--blue { background: var(--c-primary); color: #f1f6ff; }
.emphasis-card--dark { background: var(--c-blue-900); color: #fff; }
.emphasis-card--blue h3, .emphasis-card--dark h3 { color: #fff; }
@media (max-width: 880px) {
	.clinical__cards { grid-template-columns: 1fr; }
}

/* ---- Phase blocks ------------------------------------------------------- */
.phase__grid {
	display: grid; grid-template-columns: 1fr 1fr;
	gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center;
}
.phase--flip .phase__copy { order: 2; }
.phase__title { font-size: var(--fs-h2); }
.phase--orange .phase__title { background: none; }
.phase__features { display: grid; gap: 1rem; margin: 1.5rem 0; }
.phase__feature {
	padding-left: 1.25rem; border-left: 3px solid var(--accent, var(--c-primary));
}
.phase--orange { --accent: var(--c-orange); }
.phase--pink { --accent: var(--c-pink); }
.phase--purple { --accent: var(--c-purple); }
.phase--blue { --accent: var(--c-primary); }
.phase__feature h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.phase__feature p { margin: 0; font-size: var(--fs-small); }
@media (max-width: 880px) {
	.phase__grid { grid-template-columns: 1fr; }
	.phase--flip .phase__copy { order: 0; }
	.phase__media { order: -1; }
}

/* ---- About content rows ------------------------------------------------- */
.about-content__row {
	display: grid; grid-template-columns: 1fr 1fr;
	gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center;
	margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}
.about-content__row:last-child { margin-bottom: 0; }
.about-content__row--flip .about-content__copy { order: 2; }
.about-content__title { font-size: var(--fs-h2); }
@media (max-width: 880px) {
	.about-content__row { grid-template-columns: 1fr; }
	.about-content__row--flip .about-content__copy { order: 0; }
	.about-content__row--flip .about-content__media { order: -1; }
}

/* ---- What we believe / value cards (Figma 40000089:4294) ---------------- */
.believe__head { display: flex; flex-direction: column; gap: clamp(1.25rem, 0.75rem + 2vw, 48px); margin-bottom: clamp(2rem, 1rem + 3vw, 48px); }
.believe__title { margin: 0; font-size: clamp(1.75rem, 1.2rem + 2vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--c-blue-900); }
.believe__lead { margin: 0; max-width: 56ch; font-size: 1.125rem; line-height: 1.5; color: var(--c-blue-900); }
.believe__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 48px); align-items: stretch; }
.value-card {
	display: flex; flex-direction: column; justify-content: center; gap: 0.625rem;
	padding: clamp(1.75rem, 1.25rem + 2vw, 48px); border-radius: 20px;
}
.value-card__title { margin: 0; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; }
.value-card__desc { margin: 0; font-size: 1rem; line-height: 1.6; }
/* Light = white card (matches the blue/dark cards beside it). */
.value-card--light { background: #fff; padding-block: clamp(1.75rem, 1.25rem + 2vw, 48px); }
.value-card--light .value-card__title { color: var(--c-blue-900); }
.value-card--light .value-card__desc { color: var(--c-blue-900); }
.value-card--blue { background: var(--c-primary); }
.value-card--blue .value-card__title { color: #fff; }
.value-card--blue .value-card__desc { color: #f1f6ff; }
.value-card--dark { background: var(--c-blue-900); }
.value-card--dark .value-card__title { color: #fff; }
.value-card--dark .value-card__desc { color: rgba(255, 255, 255, 0.82); }
@media (max-width: 880px) { .believe__cards { grid-template-columns: 1fr; max-width: 520px; } }

/* ---- The team (Figma 40000089:4341) ------------------------------------- */
.team { background: var(--c-blue-900); color: #fff; }
.team__head { display: flex; flex-direction: column; gap: clamp(1.25rem, 0.75rem + 2vw, 48px); margin-bottom: clamp(2rem, 1rem + 3vw, 48px); }
.team__title { margin: 0; font-size: clamp(1.75rem, 1.2rem + 2vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.team__lead { margin: 0; max-width: 56ch; font-size: 1.125rem; line-height: 1.5; color: #fff; }
.team__subhead { margin: clamp(2.5rem, 1.5rem + 3vw, 48px) 0 clamp(1.5rem, 1rem + 2vw, 32px); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 32px); font-weight: 700; letter-spacing: -0.03em; color: #fff; }

.team__founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 48px); align-items: stretch; }
.team__members { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 48px); align-items: stretch; }

.team-card { display: flex; flex-direction: column; background: #2b3059; border-radius: 20px; overflow: hidden; }
.team-card__photo { aspect-ratio: 1 / 1; background: #ececec; }
.team-card__photo .ph { width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; }
.team-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.team-card__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding: clamp(1.5rem, 1rem + 1.5vw, 48px); }
.team-card__head { display: flex; flex-direction: column; gap: 0.625rem; }
.team-card__name { margin: 0; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; color: #fff; }
.team-card__role { margin: 0; font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }
.team-card__blurb { margin: 0; font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }

@media (max-width: 900px) {
	.team__founders { grid-template-columns: 1fr; }
	.team__members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.team__members { grid-template-columns: 1fr; }
}

/* ---- Contact lead-gen (Figma 40000090:111184) --------------------------- */
.contact-leadgen { border-bottom: 1px solid #e7f1ff; }
.contact-leadgen__grid {
	display: grid;
	grid-template-columns: minmax(0, 422px) minmax(0, 596px);
	justify-content: space-between;
	gap: clamp(2rem, 1rem + 3vw, 62px);
	align-items: start;
}
.contact-leadgen__lead { margin: 0; font-size: 1.125rem; line-height: 1.5; color: var(--c-blue-900); }
.contact-leadgen__card {
	background: #fff; border-radius: 20px; padding: clamp(1.75rem, 1.25rem + 2vw, 48px);
}
.contact-form { display: flex; flex-direction: column; gap: clamp(1.75rem, 1.25rem + 2vw, 48px); }
.contact-form__fields { display: flex; flex-direction: column; gap: 24px; }
.contact-form__field { display: flex; flex-direction: column; gap: 6px; }
.contact-form__field label { font-size: 0.875rem; font-weight: 500; color: #244c53; }
.contact-form input, .contact-form textarea {
	width: 100%; font-family: inherit; font-size: 1.125rem; color: var(--c-blue-900);
	padding: 14px 16px; background: #f9fafb; border: 1px solid #3346f4; border-radius: 8px;
	transition: box-shadow 0.2s var(--ease);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #6b7280; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(51, 70, 244, 0.18); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form__submit {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	background: var(--c-primary); color: #fff; border: 0; border-radius: 999px;
	padding: 12px 24px; font-size: 1rem; font-weight: 600; transition: background 0.2s var(--ease);
}
.contact-form__submit:hover { background: #2c3bd6; }
.contact-form__notice { margin: 0 0 1.5rem; padding: 0.75rem 1rem; border-radius: 8px; font-size: 1rem; }
.contact-form__notice--ok { background: #e7f8ee; color: #1b7a47; }
.contact-form__notice--err { background: #fdeaea; color: #b42318; }
@media (max-width: 880px) { .contact-leadgen__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact-form__row { grid-template-columns: 1fr; } }

/* ---- Prose (Terms / Privacy / single insight body) ---------------------- */
.prose { max-width: var(--content); margin-inline: auto; }
.prose h2 { font-size: var(--fs-h3); margin-top: 2.125rem; color: #1d1e20; letter-spacing: -0.03em; line-height: 1.5; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5rem; color: #1d1e20; letter-spacing: -0.03em; line-height: 1.5; }
.prose p, .prose ul, .prose ol { color: var(--c-text); margin-bottom: 1.5rem; line-height: 1.6; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--c-primary); text-decoration: underline; }
.prose blockquote {
	margin: 1.5rem 0; padding: 0.5rem 0 0.5rem 1.25rem;
	border-left: 4px solid var(--c-primary); color: var(--c-ink-2); font-style: italic;
}
/* Nested lists (legal docs) keep their own bottom rhythm without doubling the gap. */
.prose li > ul, .prose li > ol { margin-top: 0.4rem; margin-bottom: 0.4rem; }
/* Data tables in legal/prose content; wrapped in .prose__scroll for small screens. */
.prose__scroll { margin: 1.5rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose__scroll table { margin: 0; }
.prose table {
	width: 100%; border-collapse: collapse; margin: 1.5rem 0;
	font-size: 0.95rem; line-height: 1.5;
}
.prose th, .prose td {
	border: 1px solid #e2e8f5; padding: 0.6rem 0.8rem;
	text-align: left; vertical-align: top; color: var(--c-text);
}
.prose th { background: #f2f9ff; color: var(--c-blue-900); font-weight: 700; }

/* ---- Insights listing + post cards (Figma 40000084:5725) ---------------- */
.insights-listing { padding-top: 0; }
.insights-listing__grid {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(1.5rem, 1rem + 2vw, 30px);
	row-gap: clamp(2rem, 1rem + 3vw, 48px);
}
.insights-listing__empty { color: var(--c-text); }

.post-card { background: none; }
.post-card__link {
	display: flex; flex-direction: column; align-items: flex-start; gap: 0.9375rem;
	color: inherit; height: 100%;
}
.post-card__topic {
	font-size: 1rem; line-height: 1.6; text-transform: uppercase;
	color: var(--c-primary);
}
.post-card__meta {
	margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
	font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em;
	text-transform: uppercase; color: #6e7a84;
}
.post-card__dot { color: #6e7a84; }
.post-card__title {
	margin: 0; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); font-weight: 700;
	letter-spacing: -0.03em; line-height: 1.5; color: #1d1e20;
	transition: color 0.25s var(--ease);
}
.post-card__link:hover .post-card__title { color: var(--c-primary); }
.post-card__excerpt { margin: 0; font-size: 1rem; line-height: 1.5; color: #1d1e20; }

@media (max-width: 720px) {
	.insights-listing__grid { grid-template-columns: 1fr; }
}

/* ---- Pagination --------------------------------------------------------- */
.pagination { margin-top: 3rem; }
.pagination .page-numbers {
	display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
	padding: 0; margin: 0;
}
.pagination .page-numbers li { list-style: none; }
.pagination a, .pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 0.75rem;
	border: 1px solid var(--c-border); border-radius: 10px;
	background: var(--c-surface); color: var(--c-ink-2); font-weight: 600;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pagination a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination .current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
/* Prev/Next carry a text label, so give them more breathing room than the number tiles. */
.pagination .prev, .pagination .next { padding-inline: 1.25rem; }

/* ---- Single insight (Figma 40000084:5089) ------------------------------- */
.single-insight__hero { text-align: center; padding-block: clamp(3rem, 1.5rem + 8vw, 140px) clamp(2.5rem, 1.5rem + 4vw, 80px); }
.single-insight__hero .container { display: flex; flex-direction: column; align-items: center; gap: clamp(1.5rem, 1rem + 2vw, 48px); }
.single-insight__headings { display: flex; flex-direction: column; align-items: center; gap: clamp(0.75rem, 0.5rem + 1vw, 24px); }
.single-insight__kicker {
	margin: 0; font-size: clamp(2rem, 1.3rem + 3.5vw, 56px); font-weight: 700;
	letter-spacing: -0.03em; line-height: 1.05; color: var(--c-blue-900);
}
.single-insight__title {
	margin: 0; font-size: clamp(1.6rem, 1.1rem + 2.4vw, 40px); font-weight: 700;
	letter-spacing: -0.03em; line-height: 1.12; color: var(--c-blue-900);
}
.single-insight__excerpt {
	margin: 0; max-width: 52ch; font-size: 1.125rem; line-height: 1.5; color: #1d1e20; opacity: 0.9;
}
.single-insight__meta {
	margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
	font-size: 1rem; color: #1d1e20;
}
.single-insight__meta-item { opacity: 0.6; }
.single-insight__sep { opacity: 1; }
.single-insight__cover {
	margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	border-radius: var(--radius-lg); overflow: hidden;
}
.single-insight__cover img { width: 100%; height: auto; }
.single-insight__back { margin-top: 2.5rem; }

/* =========================================================================
   END SECTION STYLES
   ========================================================================= */

/* ---- Home feature rows (Figma 40000174:5471) ---------------------------- */
.home-features__head {
	display: flex; flex-direction: column;
	gap: clamp(1.25rem, 0.5rem + 2.4vw, 50px);
	max-width: 1270px;
	margin-bottom: clamp(3rem, 1.5rem + 6vw, 120px);
}
.home-features__title {
	margin: 0;
	font-size: clamp(2.25rem, 1.2rem + 4.4vw, 56px);
	font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
	color: var(--c-blue-900);
}
.home-features__accent {
	background: linear-gradient(90deg, var(--c-purple) 0%, var(--c-pink) 48%, var(--c-orange) 100%);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
}
.home-features__subhead {
	margin: 0; max-width: 826px;
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 30px);
	font-weight: 700; letter-spacing: -0.01em; line-height: 1.2;
	color: var(--c-blue-900);
}
.home-features__intro {
	margin: 0; max-width: 796px;
	font-size: 1.125rem; line-height: 1.625; color: var(--c-blue-900);
}

.home-features__rows {
	display: flex; flex-direction: column;
	gap: clamp(3rem, 1.5rem + 6vw, 120px);
}
.feature-row {
	display: grid; grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 0.5rem + 5vw, 100px);
	align-items: center;
}
.feature-row__body { display: flex; flex-direction: column; }
.feature-row__num {
	margin: 0;
	font-size: clamp(2.5rem, 1.6rem + 3vw, 56px);
	font-weight: 700; letter-spacing: -0.03em; line-height: 1;
	color: var(--c-primary);
}
.feature-row__title {
	margin: clamp(0.5rem, 0.3rem + 0.6vw, 14px) 0;
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 32px);
	font-weight: 700; letter-spacing: -0.03em; line-height: 1.12;
	color: #030931;
}
.feature-row__desc {
	margin: 0; max-width: 40rem;
	font-size: 1.125rem; line-height: 1.625; color: var(--c-blue-900);
}
.feature-row__media { display: flex; justify-content: flex-start; }
.feature-row__media img { display: block; width: 100%; height: auto; }
/* Even rows: image on the left, both blocks hugging the centre gutter. */
.feature-row:nth-child(even) .feature-row__media { order: -1; justify-content: flex-end; }

@media (max-width: 880px) {
	.feature-row { grid-template-columns: 1fr; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
	.feature-row__media,
	.feature-row:nth-child(even) .feature-row__media { order: 0; justify-content: flex-start; }
	.feature-row__media img { max-width: 100% !important; }
}

/* ---- App screenshot (Figma 40000231:66434) ------------------------------ */
.app-shot__inner { margin-inline: auto; padding-inline: var(--pad-x); }
.app-shot__img { display: block; width: 100%; height: auto; }

/* ---- Trust page (Figma 40000084:*) -------------------------------------- */
/* Centered gradient intro header. */
.trust-intro { padding-block: clamp(3.5rem, 2rem + 6vw, 100px) clamp(1.5rem, 0.5rem + 3vw, 48px); }
.trust-intro__inner { display: flex; flex-direction: column; align-items: center; gap: clamp(1.5rem, 1rem + 2vw, 48px); max-width: 1080px; }
.trust-intro__title {
	margin: 0; text-align: center;
	font-size: clamp(2.25rem, 1.4rem + 4vw, 56px); font-weight: 700;
	letter-spacing: -0.03em; line-height: 1.1; color: var(--c-blue-900);
}
.trust-intro__lead { margin: 0; text-align: center; max-width: 60ch; font-size: 1.125rem; line-height: 1.5; color: #1d1e20; opacity: 0.9; }

/* Reusable heading + lead + card-grid section. */
.info-grid { padding-block: clamp(2.5rem, 1.5rem + 3vw, 72px); }
.info-grid--blue { background: var(--c-blue-200, #e7f1ff); }
.info-grid__head { display: flex; flex-direction: column; gap: clamp(0.75rem, 0.5rem + 1vw, 24px); max-width: 1080px; }
.info-grid__title {
	margin: 0; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 40px); font-weight: 700;
	letter-spacing: -0.03em; line-height: 1.1; color: var(--c-blue-900);
}
.info-grid__lead { margin: 0; max-width: 70ch; font-size: 1.125rem; line-height: 1.5; color: var(--c-blue-900); }
.info-grid__group { margin-top: clamp(2rem, 1rem + 3vw, 48px); }
.info-grid__sub { margin: 0 0 clamp(1.25rem, 0.8rem + 1.5vw, 24px); font-size: 1.125rem; line-height: 1.5; color: var(--c-blue-900); }
.info-grid__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.info-card {
	display: flex; flex-direction: column; gap: clamp(0.75rem, 0.5rem + 1vw, 24px);
	background: #fff; border-radius: 16px; padding: clamp(1.5rem, 1rem + 1.5vw, 32px);
}
.info-card__eyebrow { margin: 0; font-size: 1rem; line-height: 1.6; text-transform: uppercase; color: #546078; }
.info-card__title { margin: 0; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: #1d1e20; }
.info-card__desc { margin: 0; font-size: 1rem; line-height: 1.5; color: #546078; }

/* Sub-processor table. */
.info-grid__table-wrap { overflow-x: auto; }
.info-grid__table { width: 100%; border-collapse: separate; border-spacing: 4px; }
.info-grid__table th,
.info-grid__table td {
	background: #fff; padding: 20px; text-align: left; vertical-align: middle;
	font-size: 1rem; line-height: 1.6; color: #000; white-space: nowrap;
}
.info-grid__table th { font-weight: 700; }
.info-grid__table th:first-child,
.info-grid__table td:first-child { width: 48px; }
.info-grid__note { margin: clamp(1.5rem, 1rem + 2vw, 48px) 0 0; font-size: 1rem; line-height: 1.6; color: var(--c-blue-900); }

@media (max-width: 880px) {
	.info-grid__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.info-grid__cards { grid-template-columns: 1fr; }
}
