/* ==========================================================================
   Thorli — Main Stylesheet
   Custom theme for thorli.com — AEO marketing for dental practices.
   No build step. Vanilla CSS with custom properties.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (CSS custom properties)
   -------------------------------------------------------------------------- */

:root {
	/* Brand palette */
	--c-ink:           #0E1116;
	--c-ink-soft:      #1B2129;
	--c-stone-900:    #2A313B;
	--c-stone-700:    #4B5563;
	--c-stone-500:    #6B7280;
	--c-stone-300:    #D1D5DB;
	--c-stone-200:    #E5E7EB;
	--c-stone-100:    #F1EEE7;
	--c-paper:        #FAF7F0;
	--c-paper-warm:   #F5F1E8;
	--c-white:        #FFFFFF;
	--c-citation:     #C7F25C;  /* Citation Lime — the wedge color */
	--c-citation-dark:#A8D147;
	--c-sage:         #1E3D34;
	--c-sage-soft:    #2A5A4D;
	--c-coral:        #F26C5B;
	--c-coral-soft:   #FDF0EE;

	/* Semantic */
	--c-text:         var(--c-ink);
	--c-text-soft:    var(--c-stone-700);
	/* Bumped from stone-500 (#6B7280) to stone-700 (#4B5563) to clear WCAG AA on
	   warm-paper backgrounds. axe-core flagged stone-500 on paper-warm as 4.27:1
	   (below the 4.5:1 normal-text threshold) across the eyebrow + footer. */
	--c-text-mute:    var(--c-stone-700);
	--c-text-footer:  var(--c-stone-700);
	--c-text-eyebrow: var(--c-stone-700);
	--c-bg:           var(--c-paper);
	--c-bg-alt:       var(--c-white);
	--c-bg-deep:      var(--c-ink);
	--c-border:       var(--c-stone-200);
	--c-border-soft:  var(--c-stone-100);
	--c-accent:       var(--c-citation);
	--c-accent-ink:   var(--c-ink);

	/* Typography */
	--f-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-display: "Fraunces", "Inter", Georgia, serif;
	--f-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--fs-12: 0.75rem;
	--fs-13: 0.8125rem;
	--fs-14: 0.875rem;
	--fs-15: 0.9375rem;
	--fs-16: 1rem;
	--fs-17: 1.0625rem;
	--fs-18: 1.125rem;
	--fs-20: 1.25rem;
	--fs-24: 1.5rem;
	--fs-28: 1.75rem;
	--fs-30: 1.875rem;
	--fs-32: 2rem;
	--fs-36: 2.25rem;
	--fs-40: 2.5rem;
	--fs-44: 2.75rem;
	--fs-48: 3rem;
	--fs-56: 3.5rem;
	--fs-60: 3.75rem;
	--fs-72: 4.5rem;
	--fs-96: 6rem;

	--lh-tight:   1.05;
	--lh-snug:    1.2;
	--lh-normal:  1.5;
	--lh-relaxed: 1.65;

	/* Spacing scale */
	--s-1:  0.25rem;
	--s-2:  0.5rem;
	--s-3:  0.75rem;
	--s-4:  1rem;
	--s-5:  1.25rem;
	--s-6:  1.5rem;
	--s-8:  2rem;
	--s-10: 2.5rem;
	--s-12: 3rem;
	--s-16: 4rem;
	--s-20: 5rem;
	--s-24: 6rem;
	--s-32: 8rem;

	/* Radii */
	--r-sm: 6px;
	--r-md: 10px;
	--r-lg: 16px;
	--r-xl: 24px;
	--r-full: 999px;

	/* Shadows */
	--shadow-sm: 0 1px 2px rgba(14,17,22,0.06);
	--shadow-md: 0 4px 12px rgba(14,17,22,0.08);
	--shadow-lg: 0 12px 32px rgba(14,17,22,0.12);
	--shadow-glow: 0 0 0 4px rgba(199,242,92,0.32);

	/* Motion */
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--dur-fast: 140ms;
	--dur-base: 220ms;
	--dur-slow: 480ms;

	/* Layout */
	--max-w: 1240px;
	--max-w-narrow: 760px;
	--max-w-wide: 1440px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--section-y: clamp(4rem, 9vw, 8rem);
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	font-feature-settings: "ss01", "cv11", "calt";
}

body {
	font-family: var(--f-sans);
	font-size: var(--fs-18);
	line-height: var(--lh-relaxed);
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, picture, svg, video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--c-ink);
	text-decoration: none;
	text-underline-offset: 3px;
	transition: color var(--dur-fast) var(--ease-out);
}

a:hover { text-decoration: underline; }

button {
	font: inherit;
	cursor: pointer;
	background: none;
	border: 0;
	color: inherit;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-display);
	font-weight: 500;
	line-height: var(--lh-tight);
	letter-spacing: -0.02em;
	color: var(--c-ink);
}

p { max-width: 65ch; }

::selection {
	background: var(--c-citation);
	color: var(--c-ink);
}

:focus-visible {
	outline: 3px solid var(--c-citation);
	outline-offset: 2px;
	border-radius: 4px;
	/* Tiny inner white ring keeps the focus indicator visible on both cream and
	   ink backgrounds; lime on ink alone has thin contrast. */
	box-shadow: 0 0 0 1px var(--c-paper);
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: var(--max-w);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--max-w-narrow); }
.container--wide   { max-width: var(--max-w-wide); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	background: var(--c-ink);
	color: var(--c-paper);
	padding: 0.75rem 1.25rem;
	border-radius: var(--r-md);
	z-index: 100;
	transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { top: 1rem; }

/* --------------------------------------------------------------------------
   4. Typography utilities
   -------------------------------------------------------------------------- */

.eyebrow {
	display: inline-block;
	font-family: var(--f-mono);
	font-size: var(--fs-12);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--c-text-eyebrow);
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--c-border);
	border-radius: var(--r-full);
	background: var(--c-paper-warm);
}

.eyebrow--accent {
	color: var(--c-sage);
	background: var(--c-citation);
	border-color: var(--c-citation-dark);
}

.h-display {
	font-family: var(--f-display);
	font-size: clamp(var(--fs-48), 6.5vw, var(--fs-96));
	line-height: var(--lh-tight);
	letter-spacing: -0.035em;
	font-weight: 500;
}

.h-display em {
	font-style: italic;
	color: var(--c-sage);
	font-weight: 400;
}

.h-display .lime {
	background: var(--c-citation);
	padding: 0 0.15em;
	border-radius: 6px;
	color: var(--c-ink);
	font-style: normal;
	/* On desktop, keep multi-word lime phrases on a single line so the brand
	   highlight reads as a deliberate emphasis rather than a forced line-break. */
}
@media (min-width: 1024px) {
	.h-display .lime { white-space: nowrap; }
}

.h-section {
	font-size: clamp(var(--fs-30), 4vw, var(--fs-48));
	line-height: var(--lh-snug);
	letter-spacing: -0.025em;
	font-weight: 500;
}

.h-sub {
	font-size: clamp(var(--fs-18), 1.8vw, var(--fs-20));
	color: var(--c-text-soft);
	line-height: var(--lh-relaxed);
	max-width: 60ch;
}

.text-mono { font-family: var(--f-mono); }
.text-mute { color: var(--c-text-mute); }
.text-soft { color: var(--c-text-soft); }
.text-center { text-align: center; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--f-sans);
	font-weight: 500;
	font-size: var(--fs-16);
	line-height: 1;
	padding: 0.85rem 1.4rem;
	border-radius: var(--r-full);
	border: 1px solid transparent;
	cursor: pointer;
	transition: all var(--dur-base) var(--ease-out);
	text-decoration: none;
	white-space: nowrap;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
	background: var(--c-ink);
	color: var(--c-paper);
	border-color: var(--c-ink);
}
.btn--primary:hover { background: var(--c-ink-soft); box-shadow: var(--shadow-md); }

.btn--accent {
	background: var(--c-citation);
	color: var(--c-ink);
	border-color: var(--c-citation-dark);
}
.btn--accent:hover { box-shadow: var(--shadow-glow); }

.btn--ghost {
	background: transparent;
	color: var(--c-ink);
	border-color: var(--c-border);
}
.btn--ghost:hover { border-color: var(--c-ink); background: var(--c-paper-warm); }

.btn--sm { padding: 0.55rem 1rem; font-size: var(--fs-14); }
.btn--lg { padding: 1.05rem 1.75rem; font-size: var(--fs-18); }
.btn--block { width: 100%; }

/* Inline tertiary action — visually a link with arrow, used where ghost would
   compete with a paired primary button. */
.btn--link {
	background: transparent;
	border-color: transparent;
	color: var(--c-ink);
	padding: 0.55rem 0.25rem;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: var(--c-citation-dark);
	text-decoration-thickness: 1.5px;
}
.btn--link:hover {
	transform: none;
	text-decoration-color: var(--c-ink);
	background: transparent;
}

.btn__arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   6. Header / nav
   -------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(250, 247, 240, 0.85);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color var(--dur-base) var(--ease-out);
}

.site-header.is-scrolled { border-bottom-color: var(--c-border); }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-6);
	min-height: 72px;
}

.brand {
	display: inline-flex;
	align-items: baseline;
	gap: 0;
	font-family: var(--f-display);
	font-size: var(--fs-24);
	font-weight: 500;
	letter-spacing: -0.04em;
	color: var(--c-ink);
}
.brand:hover { text-decoration: none; }
.brand__mark { color: var(--c-ink); letter-spacing: -0.04em; }
.brand__dot {
	/* Refined from a chunky lime rectangle to a tight bullet circle — the
	   wordmark does the visual work; the dot is a small brand bookend. */
	display: inline-block;
	width: 10px;
	height: 10px;
	background: var(--c-citation);
	border-radius: 50%;
	margin-left: 5px;
	vertical-align: baseline;
	text-indent: -9999px;
	overflow: hidden;
	border: 1.5px solid var(--c-citation-dark);
	box-sizing: border-box;
}

.primary-nav { display: flex; align-items: center; gap: var(--s-5); }

.primary-menu {
	display: flex;
	gap: var(--s-1);
	align-items: center;
}
/* Style both BEM children and the default wp_nav_menu output, since
   wp_nav_menu emits .menu-item-type-post_type > a (not .primary-menu__item /
   .primary-menu__link). Both selectors land the same styling. */
.primary-menu li,
.primary-menu__item {
	list-style: none;
	margin: 0;
}
.primary-menu > li > a,
.primary-menu__link {
	display: inline-block;
	padding: 0.55rem 0.85rem;
	font-size: var(--fs-15, 0.9375rem);
	font-weight: 500;
	color: var(--c-text-soft);
	border-radius: var(--r-md);
	white-space: nowrap;
	transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.primary-menu > li > a:hover,
.primary-menu__link:hover {
	color: var(--c-ink);
	background: var(--c-paper-warm);
	text-decoration: none;
}
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current_page_item > a {
	color: var(--c-ink);
	background: color-mix(in srgb, var(--c-citation) 18%, transparent);
}

.nav-toggle {
	display: none;
	padding: 0.5rem;
	border-radius: var(--r-md);
}

@media (max-width: 880px) {
	.primary-menu { display: none; }
	.nav-toggle { display: inline-flex; }
	body.nav-open .primary-menu {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		background: var(--c-paper);
		padding: var(--s-4);
		gap: var(--s-1);
		border-bottom: 1px solid var(--c-border);
	}
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
	padding-block: clamp(4rem, 8vw, 8rem) clamp(3rem, 6vw, 6rem);
	position: relative;
	overflow: hidden;
}

.hero__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-8);
	align-items: center;
}

/* On mobile/tablet, surface the AI card mock above the headline so the brand
   "show, don't tell" lands in the first 2 seconds before any copy is read. */
@media (max-width: 1023px) {
	.hero__visual { order: -1; }
}

@media (min-width: 1024px) {
	.hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--s-16); }
}

.hero__content {
	display: flex;
	flex-direction: column;
	gap: var(--s-6);
	max-width: 46ch;
}

@media (min-width: 1280px) {
	.hero__content { max-width: 52ch; }
}

/* Cap the hero H1 below the global .h-display 6.5vw / 96px max — that range was
   producing a 7-line wrap on 1440px viewports that pushed the AI answer card
   below the fold. Keeps a clear hierarchy without breaking the layout. */
.hero__title {
	font-family: var(--f-display);
	font-size: clamp(var(--fs-36), 4.4vw, var(--fs-60));
}

@media (min-width: 1280px) {
	.hero__title { font-size: clamp(var(--fs-48), 4.2vw, 4rem); }
}

.hero__sub {
	font-size: clamp(var(--fs-18), 1.6vw, var(--fs-20));
	color: var(--c-text-soft);
	max-width: 52ch;
}

.hero__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-2); }

.hero__trust {
	display: flex;
	align-items: center;
	gap: var(--s-3);
	font-size: var(--fs-14);
	color: var(--c-text-mute);
	margin-top: var(--s-4);
	flex-wrap: wrap;
}

/* Hero trust line promoted to a "credibility chip" — bordered pill on warm
   paper so the live-product claim reads as a badge, not a footnote. */
.hero__trust--pill {
	align-self: flex-start;
	margin-top: var(--s-5);
	padding: 0.5rem 0.9rem 0.5rem 0.75rem;
	background: var(--c-paper-warm);
	border: 1px solid var(--c-border);
	border-radius: var(--r-full);
	font-size: 0.9375rem;
	color: var(--c-text-soft);
	gap: var(--s-2);
}
.hero__trust--pill .hero__trust-text strong { color: var(--c-ink); }

.hero__trust-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: var(--r-full);
	background: var(--c-citation-dark);
	box-shadow: 0 0 0 4px rgba(199,242,92,0.22);
	animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 0.8; transform: scale(1); }
	50%      { opacity: 1;   transform: scale(1.15); }
}

/* Hero visual — the "AI answer card" mock */

.hero__visual {
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: var(--r-xl);
	padding: var(--s-6);
	box-shadow: var(--shadow-lg);
	position: relative;
}

.hero__visual::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: var(--r-xl);
	padding: 1px;
	background: linear-gradient(135deg, transparent, var(--c-citation), transparent);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.ai-card {
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
}

.ai-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--f-mono);
	font-size: var(--fs-12);
	color: var(--c-text-mute);
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.ai-card__engine {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.ai-card__engine::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--c-citation-dark);
}

.ai-card__query {
	font-family: var(--f-display);
	font-size: var(--fs-20);
	line-height: var(--lh-snug);
	color: var(--c-ink);
	border-left: 3px solid var(--c-citation);
	padding-left: var(--s-4);
}

.ai-card__answer {
	font-size: var(--fs-16);
	color: var(--c-text-soft);
	line-height: var(--lh-relaxed);
}

.ai-card__answer mark {
	background: var(--c-citation);
	color: var(--c-ink);
	padding: 0 4px;
	border-radius: 4px;
	font-weight: 500;
}

.ai-card__citations {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	margin-top: var(--s-2);
}

.ai-card__citation {
	font-family: var(--f-mono);
	font-size: var(--fs-12);
	padding: 0.35rem 0.7rem;
	border-radius: var(--r-full);
	background: var(--c-paper-warm);
	border: 1px solid var(--c-border);
	color: var(--c-text-soft);
}

.ai-card__citation--win {
	background: var(--c-citation);
	color: var(--c-ink);
	border-color: var(--c-citation-dark);
	font-weight: 500;
}

/* --------------------------------------------------------------------------
   7.b Hero AI card entry animation — sequence the brand demo
   -------------------------------------------------------------------------- */

@keyframes thorli-ai-rise {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes thorli-ai-chip-pop {
	0%   { opacity: 0; transform: translateY(4px) scale(0.96); }
	60%  { opacity: 1; transform: translateY(0)   scale(1.02); }
	100% { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes thorli-ai-glow-in {
	from { box-shadow: 0 0 0 0 rgba(199, 242, 92, 0); background: var(--c-paper-warm); color: var(--c-text-soft); }
	to   { box-shadow: 0 0 0 4px rgba(199, 242, 92, 0.32); background: var(--c-citation); color: var(--c-ink); }
}

.hero__visual .ai-card__head     { animation: thorli-ai-rise 480ms var(--ease-out) 80ms both; }
.hero__visual .ai-card__query    { animation: thorli-ai-rise 540ms var(--ease-out) 220ms both; }
.hero__visual .ai-card__answer   { animation: thorli-ai-rise 600ms var(--ease-out) 420ms both; }
.hero__visual .ai-card__citation { animation: thorli-ai-chip-pop 500ms var(--ease-out) both; }
.hero__visual .ai-card__citation:nth-child(1) { animation-delay: 900ms; }
.hero__visual .ai-card__citation:nth-child(2) { animation-delay: 1080ms; }
.hero__visual .ai-card__citation:nth-child(3) { animation-delay: 1240ms; }
.hero__visual .ai-card__citation:nth-child(4) { animation-delay: 1400ms; }
/* The win-chip lights last — colour fades from neutral to lime to anchor the brand promise */
.hero__visual .ai-card__citation--win {
	background: var(--c-paper-warm);
	color: var(--c-text-soft);
	border-color: var(--c-border);
	animation:
		thorli-ai-chip-pop 500ms var(--ease-out) 900ms both,
		thorli-ai-glow-in 700ms var(--ease-out) 1600ms forwards;
}

@media (prefers-reduced-motion: reduce) {
	.hero__visual .ai-card__head,
	.hero__visual .ai-card__query,
	.hero__visual .ai-card__answer,
	.hero__visual .ai-card__citation {
		animation: none !important;
		opacity: 1;
		transform: none;
	}
	.hero__visual .ai-card__citation--win {
		background: var(--c-citation);
		color: var(--c-ink);
		border-color: var(--c-citation-dark);
		box-shadow: 0 0 0 4px rgba(199, 242, 92, 0.22);
	}
}

/* --------------------------------------------------------------------------
   8. Problem / 3-value-prop / How it works
   -------------------------------------------------------------------------- */

.problem {
	padding-block: var(--section-y);
	background: var(--c-ink);
	color: var(--c-paper);
	border-radius: var(--r-xl);
	margin: 0 var(--gutter);
}

.problem__inner {
	display: flex;
	flex-direction: column;
	gap: var(--s-10);
}

.problem__primary {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-8);
	align-items: center;
}
@media (min-width: 900px) {
	.problem__primary {
		grid-template-columns: 1.25fr 1fr;
		gap: var(--s-12);
	}
}

.problem__header {
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
	max-width: 52ch;
}

.eyebrow--on-dark {
	color: var(--c-citation);
	background: transparent;
	border-color: var(--c-stone-700);
}

.problem__title {
	color: var(--c-paper);
	max-width: 22ch;
}
.problem__title-em {
	font-style: italic;
	color: var(--c-citation);
}

.problem__lead {
	color: var(--c-stone-300);
	font-size: var(--fs-18);
	max-width: 52ch;
	line-height: var(--lh-relaxed);
}

/* Anchor stat lives next to the header on desktop, fills the previously-empty
   right column. The number is the visual focal point of the entire section. */
.problem__anchor-stat {
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
	padding: var(--s-6) var(--s-7);
	border: 1px solid var(--c-stone-700);
	border-left: 4px solid var(--c-citation);
	border-radius: var(--r-lg);
	background: color-mix(in srgb, var(--c-citation) 5%, var(--c-ink));
}

.problem__anchor-num {
	font-family: var(--f-display);
	font-size: clamp(4rem, 9vw, 8rem);
	line-height: 0.95;
	letter-spacing: -0.04em;
	color: var(--c-citation);
}

.problem__anchor-label {
	font-size: clamp(var(--fs-18), 1.5vw, var(--fs-20));
	color: var(--c-paper);
	line-height: var(--lh-snug);
	max-width: 28ch;
}

.problem__anchor-source {
	font-family: var(--f-mono);
	font-size: var(--fs-12);
	color: var(--c-stone-300);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-top: var(--s-2);
}

.problem__stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-6);
	padding-top: var(--s-6);
	border-top: 1px solid var(--c-stone-700);
}
@media (min-width: 640px) { .problem__stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .problem__stats { grid-template-columns: repeat(3, 1fr); } }

.stat {
	border-left: 2px solid var(--c-citation);
	padding-left: var(--s-4);
}

.stat__num {
	font-family: var(--f-display);
	font-size: clamp(var(--fs-36), 5vw, var(--fs-72));
	line-height: 1;
	color: var(--c-citation);
	letter-spacing: -0.03em;
}

.stat__label {
	display: block;
	margin-top: var(--s-2);
	font-size: var(--fs-14);
	color: var(--c-stone-300);
	max-width: 28ch;
	line-height: var(--lh-snug);
}

/* Value props grid */

.value-props {
	padding-block: var(--section-y);
}

.value-props__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-6);
	margin-top: var(--s-10);
}

@media (min-width: 900px) {
	.value-props__grid { grid-template-columns: repeat(3, 1fr); }
}

.value-card {
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: var(--r-lg);
	padding: var(--s-6);
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
	transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.value-card:hover {
	transform: translateY(-4px);
	border-color: var(--c-citation-dark);
	box-shadow: var(--shadow-md);
}

.value-card__num {
	font-family: var(--f-mono);
	font-size: var(--fs-12);
	color: var(--c-text-mute);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.value-card__title {
	font-family: var(--f-display);
	font-size: var(--fs-24);
	line-height: var(--lh-snug);
	letter-spacing: -0.02em;
}

.value-card__text { color: var(--c-text-soft); }

/* The Transparent-pricing card is the wedge-of-record — slightly taller +
   a flush lime corner accent in the top-left so the brand wedge reads as
   visually privileged without redesigning the card. */
.value-card--anchor {
	padding-block: calc(var(--s-6) + var(--s-2));
	position: relative;
	overflow: hidden;
}
.value-card--anchor::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 6px;
	height: 24px;
	background: var(--c-citation);
	border-bottom-right-radius: 3px;
}
.value-card--anchor .value-card__num {
	display: inline-block;
	background: var(--c-citation);
	color: var(--c-ink);
	padding: 0.35rem 0.7rem;
	border-radius: var(--r-full);
	letter-spacing: 0.12em;
}

/* How it works — 3 steps */

.how {
	padding-block: var(--section-y);
	background: var(--c-paper-warm);
}

.how__steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-6);
	margin-top: var(--s-10);
	/* Single dashed-lime rail runs through the step numerals — vertical on
	   mobile (left-anchored), horizontal on desktop (centered through circles).
	   Implemented via a background-image so it sits behind the step content. */
	position: relative;
}

.how-step {
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
	position: relative;
}

/* Mobile/tablet: vertical dashed rail down the left side of the numerals */
.how-step:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 23px; /* center of the 48px numeral circle */
	top: 48px;
	bottom: calc(var(--s-6) * -1);
	width: 0;
	border-left: 1px dashed var(--c-citation-dark);
	opacity: 0.5;
}

@media (min-width: 900px) {
	.how__steps { grid-template-columns: repeat(3, 1fr); }
	/* Desktop: horizontal dashed rail between the numerals */
	.how-step:not(:last-child)::after {
		left: 48px;
		top: 23px; /* center of the 48px numeral circle */
		bottom: auto;
		right: calc(var(--s-6) * -1);
		width: auto;
		height: 0;
		border-left: 0;
		border-top: 1px dashed var(--c-citation-dark);
	}
}

.how-step__num {
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--r-full);
	background: var(--c-citation);
	color: var(--c-ink);
	font-family: var(--f-display);
	font-size: var(--fs-20);
	font-weight: 500;
}

.how-step__title {
	font-family: var(--f-display);
	font-size: var(--fs-20);
	line-height: var(--lh-snug);
}

.how-step__text { color: var(--c-text-soft); }

/* --------------------------------------------------------------------------
   9. Pricing
   -------------------------------------------------------------------------- */

.pricing { padding-block: var(--section-y); }

.pricing__head { text-align: center; max-width: 60ch; margin: 0 auto var(--s-10); display: flex; flex-direction: column; gap: var(--s-3); align-items: center; }

.pricing__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-4);
}

@media (min-width: 900px) {
	/* Auto-fit on a min track so the grid adapts to 2 or 3 tier cards without
	   layout cliffs. Max-width caps the 2-card layout so cards don't stretch
	   awkwardly wide on large screens. */
	.pricing__grid {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
		gap: var(--s-5);
		max-width: 880px;
		margin-inline: auto;
	}
}

.pricing-card {
	position: relative;
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: var(--r-lg);
	padding: var(--s-8);
	display: flex;
	flex-direction: column;
	gap: var(--s-5);
}

.pricing-card--highlight {
	background: var(--c-ink);
	color: var(--c-paper);
	border-color: var(--c-ink);
	transform: translateY(-8px);
	box-shadow: var(--shadow-lg);
}

.pricing-card--highlight .pricing-card__name,
.pricing-card--highlight .pricing-card__amount {
	color: var(--c-citation);
}

.pricing-card--highlight .pricing-card__feature,
.pricing-card--highlight .pricing-card__cadence {
	color: var(--c-stone-200);
}

.pricing-card__badge {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--c-citation);
	color: var(--c-ink);
	font-family: var(--f-mono);
	font-size: var(--fs-12);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 0.4rem 0.85rem;
	border-radius: var(--r-full);
	white-space: nowrap;
}

.pricing-card__head { display: flex; flex-direction: column; gap: var(--s-2); }
.pricing-card__name { font-family: var(--f-display); font-size: var(--fs-30); letter-spacing: -0.025em; }
.pricing-card__tagline {
	display: inline-block;
	font-family: var(--f-mono);
	font-size: var(--fs-12);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-text-soft);
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--c-border);
	border-radius: var(--r-full);
	background: var(--c-paper-warm);
	align-self: flex-start;
	margin-block: var(--s-2);
}
.pricing-card--highlight .pricing-card__tagline {
	color: var(--c-citation);
	border-color: var(--c-citation-dark);
	background: rgba(199, 242, 92, 0.12);
}
.pricing-card__price { display: flex; align-items: baseline; gap: 4px; margin-top: var(--s-3); }
.pricing-card__amount { font-family: var(--f-display); font-size: var(--fs-48); line-height: 1; letter-spacing: -0.03em; }
.pricing-card__cadence { color: var(--c-text-mute); font-size: var(--fs-14); }

.pricing-card__features { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-2); }
.pricing-card__feature {
	font-size: var(--fs-14);
	color: var(--c-text-soft);
	padding-left: 1.75rem;
	position: relative;
	line-height: var(--lh-snug);
}
.pricing-card__feature::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 18px;
	height: 18px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237BA32E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10' fill='%23E8F7C8'/><polyline points='9 12 11 14 16 9'/></svg>");
	background-repeat: no-repeat;
	background-size: contain;
}
.pricing-card--highlight .pricing-card__feature::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1116' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10' fill='%23C7F25C'/><polyline points='9 12 11 14 16 9'/></svg>");
}

/* Trust strip shown under the pricing card grid — "Applies to every tier".
   Reassures at the conversion moment without bulking up the cards themselves. */
.pricing__trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--s-3) var(--s-6);
	margin-block: var(--s-6) var(--s-3);
	padding: var(--s-4) var(--s-6);
	background: var(--c-paper-warm);
	border-radius: var(--r-full);
	font-size: var(--fs-14);
	color: var(--c-text-soft);
	list-style: none;
}
.pricing__trust li {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}
.pricing__trust svg {
	color: var(--c-citation-dark);
	flex-shrink: 0;
}
@media (max-width: 700px) {
	.pricing__trust {
		border-radius: var(--r-lg);
		flex-direction: column;
		align-items: flex-start;
	}
}
/* highlight-card uses the citation-lime check icon — see the ::before block above for the inline SVG */

.pricing-card__foot { margin-top: auto; }

.pricing__lead-in {
	text-align: center;
	margin-top: var(--s-8);
	color: var(--c-text-mute);
	font-size: var(--fs-14);
}
.pricing__lead-in a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--c-citation); text-decoration-thickness: 2px; }

/* --------------------------------------------------------------------------
   10. Bill of Rights
   -------------------------------------------------------------------------- */

.bill-of-rights {
	padding-block: var(--section-y);
	background: var(--c-citation);
	position: relative;
	overflow: hidden;
}

.bill-of-rights::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at top left, rgba(255,255,255,0.5) 0%, transparent 50%);
	pointer-events: none;
}

.bill-of-rights__head {
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
	max-width: 38ch;
	margin-bottom: var(--s-10);
	position: relative;
}

.bill-of-rights__title {
	font-family: var(--f-display);
	font-size: clamp(var(--fs-36), 5vw, var(--fs-60));
	letter-spacing: -0.03em;
	color: var(--c-ink);
}

.bill-of-rights__sub { color: var(--c-sage); }

.bill-of-rights__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-3);
	position: relative;
	counter-reset: bor;
}

@media (min-width: 700px) {
	.bill-of-rights__list { grid-template-columns: repeat(2, 1fr); gap: var(--s-3) var(--s-5); }
}

.bill-of-rights__item {
	display: flex;
	gap: var(--s-4);
	padding: var(--s-4) var(--s-5);
	background: color-mix(in srgb, var(--c-ink) 4%, transparent);
	border: 1px solid color-mix(in srgb, var(--c-sage) 30%, transparent);
	border-radius: var(--r-md);
	list-style: none;
	align-items: flex-start;
	transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.bill-of-rights__num {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--r-full);
	background: var(--c-sage);
	color: var(--c-citation);
	font-family: var(--f-mono);
	font-size: var(--fs-12);
	font-weight: 500;
	letter-spacing: 0.04em;
}

.bill-of-rights__text {
	font-family: var(--f-display);
	font-size: var(--fs-18);
	color: var(--c-ink);
	line-height: var(--lh-snug);
	padding-top: 4px;
}

/* The three "deal-breaker" promises (month-to-month / own your domain / clean
   handoff) get inverted ink-on-paper treatment so a previously-burned practice
   owner finds her three scar-points first. The anchor styling is distinct, not
   subtle — these are the items the brand asks to be judged on. */
.bill-of-rights__item--anchor {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: var(--c-paper);
}
.bill-of-rights__item--anchor .bill-of-rights__num {
	background: var(--c-citation);
	color: var(--c-ink);
}
.bill-of-rights__item--anchor .bill-of-rights__text {
	color: var(--c-paper);
	font-weight: 500;
}

/* --------------------------------------------------------------------------
   11. Specialty grid
   -------------------------------------------------------------------------- */

.specialties { padding-block: var(--section-y); }

.specialties__head { max-width: 60ch; margin: 0 auto var(--s-10); text-align: center; display: flex; flex-direction: column; gap: var(--s-3); align-items: center; }

.specialty-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-3);
}

@media (min-width: 600px) { .specialty-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .specialty-grid { grid-template-columns: repeat(3, 1fr); } }

.specialty-card {
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: var(--r-lg);
	transition: all var(--dur-base) var(--ease-out);
}

.specialty-card:hover {
	border-color: var(--c-citation-dark);
	background: linear-gradient(135deg, var(--c-white) 0%, rgba(199,242,92,0.08) 100%);
	transform: translateY(-2px);
}

.specialty-card__link {
	display: grid;
	grid-template-columns: 52px 1fr auto;
	grid-template-rows: auto auto;
	gap: 0.35rem var(--s-5);
	padding: var(--s-6);
	color: var(--c-ink);
	align-items: center;
}

.specialty-card__link:hover { text-decoration: none; }

.specialty-card__icon {
	grid-column: 1;
	grid-row: 1 / span 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: var(--r-md);
	background: var(--c-paper-warm);
	color: var(--c-sage);
	transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.specialty-card__icon svg { width: 28px; height: 28px; }

.specialty-card:hover .specialty-card__icon {
	background: var(--c-citation);
	color: var(--c-ink);
}

.specialty-card__label {
	font-family: var(--f-display);
	font-size: var(--fs-18);
	line-height: var(--lh-snug);
	grid-column: 2;
	grid-row: 1;
}

.specialty-card__tag {
	font-size: var(--fs-14);
	color: var(--c-text-mute);
	grid-column: 2;
	grid-row: 2;
}

.specialty-card__arrow {
	grid-column: 3;
	grid-row: 1 / span 2;
	align-self: center;
	font-size: var(--fs-20);
	color: var(--c-citation-dark);
	transition: transform var(--dur-base) var(--ease-out);
}

.specialty-card:hover .specialty-card__arrow { transform: translateX(4px); color: var(--c-sage); }

/* High-value specialties (cosmetic / implants / sleep+TMJ) get a faint lime
   tint on the icon cell so a high-LTV practice owner sees herself match
   without us labeling the cards as "premium." */
.specialty-card--high-value .specialty-card__icon {
	background: color-mix(in srgb, var(--c-citation) 18%, var(--c-paper));
	color: var(--c-ink);
}

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */

/* FAQ follows the specialty grid, which already contributes a full
   --section-y of bottom padding. Halve the FAQ's top to land on a clean
   ~80-100px gap instead of the doubled ~200px stack. */
.faq { padding-block: clamp(2.5rem, 4.5vw, 4.5rem) var(--section-y); }

.faq__head { display: flex; flex-direction: column; gap: var(--s-3); align-items: center; text-align: center; margin-bottom: var(--s-10); }

.faq__list { display: flex; flex-direction: column; gap: var(--s-2); }

.faq-item {
	border: 1px solid var(--c-border);
	padding-inline: var(--s-5);
	border-radius: var(--r-md);
	background: var(--c-white);
	transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.faq-item:hover {
	border-color: var(--c-citation-dark);
}
.faq-item:last-child { border-bottom: 1px solid var(--c-border); }

/* Open FAQ items get a paper-warm background + lime left rail. Pairs with the
   first-item-open default so visitors land on a visually anchored answer
   rather than a flat accordion. */
.faq-item[open] {
	background: var(--c-paper-warm);
	border-color: color-mix(in srgb, var(--c-citation-dark) 40%, var(--c-border));
	box-shadow: inset 3px 0 0 0 var(--c-citation);
}

.faq-item__q {
	font-family: var(--f-display);
	font-size: var(--fs-20);
	color: var(--c-ink);
	cursor: pointer;
	padding-block: var(--s-3);
	display: flex;
	justify-content: space-between;
	gap: var(--s-4);
	align-items: center;
	list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
	content: "+";
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1.5px solid var(--c-citation-dark);
	border-radius: var(--r-full);
	font-family: var(--f-sans);
	font-size: var(--fs-20);
	line-height: 1;
	color: var(--c-sage);
	background: var(--c-paper);
	transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.faq-item:hover .faq-item__q::after { background: var(--c-citation); color: var(--c-ink); }
.faq-item[open] .faq-item__q::after {
	content: "−";
	background: var(--c-citation);
	color: var(--c-ink);
	transform: rotate(180deg);
}

.faq-item__a {
	color: var(--c-text-soft);
	padding-bottom: var(--s-4);
	padding-right: var(--s-8);
}

.faq-item__a p { font-size: var(--fs-16); line-height: var(--lh-relaxed); }

/* --------------------------------------------------------------------------
   13. CTA strip
   -------------------------------------------------------------------------- */

.cta-strip {
	padding-block: clamp(3rem, 6vw, 5rem);
	background: var(--c-ink);
	color: var(--c-paper);
}

.cta-strip__inner {
	display: flex;
	flex-direction: column;
	gap: var(--s-6);
	align-items: flex-start;
}

@media (min-width: 800px) {
	.cta-strip__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.cta-strip__title {
	font-family: var(--f-display);
	font-size: clamp(var(--fs-24), 3vw, var(--fs-36));
	color: var(--c-paper);
	max-width: 24ch;
	line-height: var(--lh-snug);
}

.cta-strip__sub { color: var(--c-stone-300); font-size: var(--fs-16); }

.cta-strip__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.cta-strip .btn--ghost {
	background: transparent;
	color: var(--c-paper);
	border-color: var(--c-stone-700);
}
.cta-strip .btn--ghost:hover { border-color: var(--c-citation); background: rgba(199,242,92,0.05); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

.site-footer {
	background: var(--c-paper-warm);
	padding-block: var(--s-16) var(--s-8);
	border-top: 1px solid var(--c-border);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-8);
	margin-bottom: var(--s-12);
}

@media (min-width: 700px)  { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.site-footer__brand { display: flex; flex-direction: column; gap: var(--s-4); }
.site-footer__tagline { color: var(--c-text-soft); max-width: 38ch; }

.site-footer__col h3 {
	font-family: var(--f-mono);
	font-size: var(--fs-12);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--c-text-footer);
	margin-bottom: var(--s-3);
	font-weight: 500;
}

.site-footer__col ul { display: flex; flex-direction: column; gap: var(--s-2); }

.site-footer__col a {
	color: var(--c-text);
	font-size: var(--fs-14);
}
.site-footer__col a:hover { color: var(--c-sage); text-decoration: underline; text-underline-offset: 4px; }

.site-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
	border-top: 1px solid var(--c-border);
	padding-top: var(--s-6);
	color: var(--c-text-footer);
	font-size: var(--fs-12);
}

@media (min-width: 700px) {
	.site-footer__bottom {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

.site-footer__legal { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.site-footer__legal a { color: var(--c-text-footer); }
.site-footer__legal a:hover { color: var(--c-ink); }

.site-footer__trust {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-3);
	padding: var(--s-6) 0 var(--s-4);
	margin-block: var(--s-6) var(--s-3);
	border-top: 1px solid var(--c-border);
	list-style: none;
}
@media (min-width: 560px) {
	.site-footer__trust { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
}
@media (min-width: 900px) {
	.site-footer__trust { grid-template-columns: repeat(4, 1fr); }
}
.site-footer__trust li {
	display: flex;
	align-items: flex-start;
	gap: var(--s-3);
}
.site-footer__trust svg {
	color: var(--c-sage);
	flex-shrink: 0;
	margin-top: 2px;
}
.site-footer__trust a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: var(--c-ink);
	font-size: var(--fs-14);
	line-height: var(--lh-snug);
	text-decoration: none;
}
.site-footer__trust a:hover strong { text-decoration: underline; text-decoration-color: var(--c-citation-dark); text-underline-offset: 3px; }
.site-footer__trust strong { font-weight: 600; }
.site-footer__trust span { color: var(--c-text-footer); font-size: var(--fs-12); }

/* --------------------------------------------------------------------------
   14.b Mobile sticky CTA bar (≤880px, appears after hero scroll-past)
   -------------------------------------------------------------------------- */

.mobile-cta {
	display: none;
}
@media (max-width: 880px) {
	.mobile-cta {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom, 0));
		background: rgba(250, 247, 240, 0.92);
		backdrop-filter: saturate(180%) blur(12px);
		-webkit-backdrop-filter: saturate(180%) blur(12px);
		border-top: 1px solid var(--c-border);
		transform: translateY(110%);
		transition: transform var(--dur-base) var(--ease-out);
		box-shadow: 0 -4px 18px rgba(14, 17, 22, 0.06);
	}
	.mobile-cta.is-visible {
		transform: translateY(0);
	}
	.mobile-cta .btn {
		display: flex;
		justify-content: center;
	}
	/* Keep page-bottom content from being hidden behind the bar when visible */
	body.has-mobile-cta-visible .site-footer { padding-bottom: 88px; }
}
/* When prefers-reduced-motion, slide-in is just a fade-in */
@media (prefers-reduced-motion: reduce) {
	.mobile-cta { transition: none; }
}
/* Suppress on the squeeze page (no nav already; form IS the page) */
body.page-template-template-free-audit .mobile-cta { display: none !important; }

/* --------------------------------------------------------------------------
   15. Misc — 404, page header, content
   -------------------------------------------------------------------------- */

.page-header {
	padding-block: clamp(4rem, 8vw, 7rem) clamp(2rem, 4vw, 3rem);
}
.page-header--compact {
	padding-block: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 1.5rem);
}

.page-header__inner { max-width: 60ch; display: flex; flex-direction: column; gap: var(--s-3); }

.page-content {
	max-width: var(--max-w-narrow);
	margin-inline: auto;
	padding-block: var(--s-8);
}

.page-content h2 { margin-block: var(--s-8) var(--s-3); font-size: var(--fs-36); }
.page-content h3 { margin-block: var(--s-6) var(--s-3); font-size: var(--fs-24); }
.page-content p { margin-block: var(--s-3); font-size: var(--fs-18); color: var(--c-text-soft); }
.page-content ul, .page-content ol { padding-left: var(--s-6); margin-block: var(--s-3); }
.page-content ul li { list-style: disc; margin-block: var(--s-2); color: var(--c-text-soft); }
.page-content ol li { list-style: decimal; margin-block: var(--s-2); color: var(--c-text-soft); }
/* Inline text-block links — explicitly exclude .btn so button text rules win.
   Bug: a previous version applied this to all <a> in these containers, which
   inherited body text color onto .btn--primary CTAs and broke them. */
.page-content a:not(.btn),
.h-sub a:not(.btn),
.founder__story a:not(.btn),
.founding-cohort__body a:not(.btn),
.text-mute a:not(.btn) {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: var(--c-citation-dark);
	text-decoration-thickness: 1.5px;
}
.page-content a:not(.btn):hover,
.h-sub a:not(.btn):hover,
.founder__story a:not(.btn):hover,
.founding-cohort__body a:not(.btn):hover,
.text-mute a:not(.btn):hover {
	text-decoration-color: var(--c-ink);
}

/* --------------------------------------------------------------------------
   15.a Founding Cohort section (homepage)
   -------------------------------------------------------------------------- */

.founding-cohort {
	padding-block: clamp(3rem, 6vw, 5rem);
	background:
		linear-gradient(135deg,
			color-mix(in srgb, var(--c-citation) 18%, var(--c-paper)),
			var(--c-paper-warm) 70%);
	margin: 0 var(--gutter);
	border-radius: var(--r-xl);
	border: 1px solid color-mix(in srgb, var(--c-citation-dark) 30%, var(--c-border));
}

.founding-cohort__head {
	text-align: center;
	max-width: 56ch;
	margin: 0 auto var(--s-6);
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
	align-items: center;
}

.founding-cohort__status {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--s-3);
	margin-bottom: var(--s-4);
}

/* The 10-segment bar reads as a literal-scarcity tracker, not a marketing line.
   Each segment is big enough to count individually at a glance. */
.founding-cohort__bar {
	display: inline-flex;
	gap: 6px;
	flex-wrap: nowrap;
	padding: 8px 10px;
	background: var(--c-white);
	border: 1px solid color-mix(in srgb, var(--c-citation-dark) 40%, var(--c-border));
	border-radius: var(--r-md);
	box-shadow: var(--shadow-sm);
}
.founding-cohort__seg {
	width: 22px;
	height: 28px;
	border-radius: 4px;
	border: 1.5px solid var(--c-citation-dark);
}
.founding-cohort__seg--open {
	background: var(--c-citation);
}
.founding-cohort__seg--taken {
	background: var(--c-stone-200);
	border-color: var(--c-stone-300);
	opacity: 0.55;
}

.founding-cohort__caption {
	font-family: var(--f-mono);
	font-size: var(--fs-14);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-text-soft);
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}
.founding-cohort__caption::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	background: var(--c-citation-dark);
	border-radius: 50%;
	animation: pulse 2.4s ease-in-out infinite;
}

@media (max-width: 480px) {
	.founding-cohort__bar {
		gap: 4px;
		padding: 6px 8px;
	}
	.founding-cohort__seg {
		width: 16px;
		height: 22px;
	}
}

.founding-cohort__title {
	max-width: 24ch;
}

.founding-cohort__body {
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
}

.founding-cohort__lead {
	font-size: clamp(var(--fs-18), 1.6vw, var(--fs-20));
	color: var(--c-text-soft);
	max-width: 65ch;
}

.founding-cohort__terms {
	display: flex;
	flex-direction: column;
	gap: var(--s-2);
	padding: var(--s-5) var(--s-6);
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: var(--r-lg);
	margin-block: var(--s-3);
}

.founding-cohort__terms li {
	font-size: var(--fs-16);
	color: var(--c-text);
	padding-left: var(--s-5);
	position: relative;
}

.founding-cohort__terms li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--c-citation-dark);
	font-weight: 700;
}

.founding-cohort__actions {
	display: flex;
	gap: var(--s-3);
	flex-wrap: wrap;
	margin-top: var(--s-3);
}

/* --------------------------------------------------------------------------
   15.a.b Blog listing post cards (index.php)
   -------------------------------------------------------------------------- */

.post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-10);
}

.post-card {
	border-top: 1px solid var(--c-border);
	padding-top: var(--s-8);
	display: grid;
	gap: var(--s-3);
}

.post-card__meta {
	display: flex;
	align-items: center;
	gap: var(--s-3);
	flex-wrap: wrap;
	font-family: var(--f-mono);
	font-size: var(--fs-12);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--c-text-soft);
}

.post-card__byline {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	color: var(--c-ink);
	text-decoration: none;
	font-weight: 500;
}

.post-card__byline:hover .post-card__byname {
	text-decoration: underline;
	text-decoration-color: var(--c-citation-dark);
	text-underline-offset: 3px;
}

.post-card__avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--c-paper-warm);
	border: 1px solid var(--c-border);
}

.post-card__divider {
	color: var(--c-text-footer);
	opacity: 0.6;
}

.post-card__title {
	font-family: var(--f-display);
	font-size: clamp(var(--fs-24), 2.6vw, var(--fs-36));
	line-height: var(--lh-snug);
	font-weight: 500;
	margin: 0;
	text-wrap: balance;
}

.post-card__title a { color: var(--c-ink); text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; text-decoration-color: var(--c-citation-dark); text-underline-offset: 4px; }

.post-card__excerpt {
	color: var(--c-text-soft);
	font-size: var(--fs-18);
	line-height: var(--lh-relaxed);
	max-width: 64ch;
}

.post-card__more {
	font-size: var(--fs-14);
	font-weight: 500;
	color: var(--c-ink);
	text-decoration: underline;
	text-decoration-color: var(--c-citation-dark);
	text-underline-offset: 3px;
	justify-self: flex-start;
}

/* --------------------------------------------------------------------------
   15.b Founder card (about page)
   -------------------------------------------------------------------------- */

.founder {
	padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem);
}

.founder__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-8);
	align-items: center;
}

@media (min-width: 760px) {
	.founder__grid {
		grid-template-columns: minmax(220px, 320px) 1fr;
		gap: var(--s-10);
		align-items: center;
	}
}

.founder__photo {
	margin: 0;
	border-radius: var(--r-xl);
	overflow: hidden;
	background: var(--c-paper-warm);
	border: 1px solid var(--c-border);
	box-shadow: var(--shadow-md);
	aspect-ratio: 1 / 1;
	max-width: 320px;
}

.founder__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.founder__bio {
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
}

.founder__name {
	font-family: var(--f-display);
	font-size: clamp(var(--fs-30), 3.4vw, var(--fs-48));
	line-height: var(--lh-tight);
	letter-spacing: -0.025em;
	font-weight: 500;
	margin: 0;
}

.founder__role {
	font-family: var(--f-mono);
	font-size: var(--fs-14);
	color: var(--c-text-soft);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0;
}

.founder__creds {
	color: var(--c-text-soft);
	font-size: var(--fs-16);
	margin: 0;
}

.founder__story p {
	color: var(--c-text-soft);
	font-size: var(--fs-18);
	line-height: var(--lh-relaxed);
	margin-block: var(--s-2);
}

.founder__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-4);
	margin-top: var(--s-2);
}

.founder__link {
	font-family: var(--f-mono);
	font-size: var(--fs-14);
	color: var(--c-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: var(--c-citation-dark);
}
.founder__link:hover { text-decoration-color: var(--c-ink); }

/* --------------------------------------------------------------------------
   15.c Founder hub — list of posts written by the founder
   -------------------------------------------------------------------------- */

.founder-posts {
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
}

.founder-post {
	border-top: 1px solid var(--c-border);
	padding-top: var(--s-4);
}

.founder-post:first-child {
	border-top: 0;
	padding-top: 0;
}

.founder-post__link {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-2);
	color: var(--c-ink);
	text-decoration: none;
}

@media (min-width: 760px) {
	.founder-post__link {
		grid-template-columns: 140px 1fr;
		column-gap: var(--s-6);
	}
}

.founder-post__date {
	font-family: var(--f-mono);
	font-size: var(--fs-14);
	color: var(--c-text-soft);
	letter-spacing: 0.04em;
}

.founder-post__title {
	font-family: var(--f-display);
	font-size: clamp(var(--fs-20), 2vw, var(--fs-24));
	line-height: var(--lh-snug);
	font-weight: 500;
}

.founder-post__link:hover .founder-post__title {
	text-decoration: underline;
	text-decoration-color: var(--c-citation-dark);
	text-underline-offset: 3px;
}

.founder-post__excerpt {
	grid-column: 1 / -1;
	font-size: var(--fs-16);
	color: var(--c-text-soft);
	max-width: 65ch;
}

@media (min-width: 760px) {
	.founder-post__excerpt {
		grid-column: 2 / -1;
	}
}

.error-404 {
	text-align: center;
	padding-block: var(--section-y);
	max-width: 60ch;
	margin-inline: auto;
}

.error-404__code {
	font-family: var(--f-display);
	font-size: clamp(var(--fs-72), 12vw, 9rem);
	color: var(--c-citation-dark);
	line-height: 1;
	margin-bottom: var(--s-4);
}

/* --------------------------------------------------------------------------
   16. Print + reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.site-header, .site-footer, .cta-strip { display: none; }
	body { background: white; color: black; }
}
