/* =========================================================================
   SURGELUME theme stylesheet
   Token system + component library + templates. Bright warm-white system;
   the gradient is a disciplined accent (roughly 5 to 8 percent of any screen).
   Motion lives in main.js and is gated by .has-motion (added only when JS is
   on and prefers-reduced-motion is not set), so no-JS and reduced-motion users
   always see fully revealed content.
   ========================================================================= */

/* ------------------------------------------------------------------ Tokens */
:root {
	--bg: #FBF9FD;
	--surface: #FFFFFF;
	--ink: #1A1420;
	--muted: #6A6473;
	--faint: #948EA0;
	--border: #ECE7F0;

	--violet: #7B2FE4;
	--magenta: #C72D8A;
	--coral: #FF8A4C;
	--grad: linear-gradient(100deg, #7B2FE4 0%, #C72D8A 52%, #FF8A4C 100%);
	--grad-soft: linear-gradient(100deg, rgba(123,47,228,.12), rgba(255,138,76,.12));

	--font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
	--font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
	--font-logo: 'Poppins', system-ui, sans-serif;

	/* Type scale (fluid) */
	--step--1: clamp(.82rem, .8rem + .1vw, .9rem);
	--step-0: 1rem;
	--step-1: clamp(1.1rem, 1.04rem + .3vw, 1.3rem);
	--step-2: clamp(1.35rem, 1.2rem + .7vw, 1.75rem);
	--step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.4rem);
	--step-4: clamp(2.2rem, 1.7rem + 2.6vw, 3.6rem);

	/* Spacing rhythm (4px base, 1.5 step) */
	--sp-1: 4px;
	--sp-2: 8px;
	--sp-3: 12px;
	--sp-4: 16px;
	--sp-5: 24px;
	--sp-6: 32px;
	--sp-7: 48px;
	--sp-8: 64px;
	--sp-9: 96px;
	--sp-10: 128px;

	--radius: 18px;
	--radius-sm: 12px;
	--radius-lg: 22px;
	--wrap: 1120px;

	--shadow-sm: 0 8px 24px rgba(26, 20, 32, .05);
	--shadow-md: 0 14px 40px rgba(26, 20, 32, .08);
	--shadow-grad: 0 10px 30px rgba(199, 45, 138, .28);

	--ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

/* Offset in-page anchor targets for the sticky header */
:target, [id] { scroll-margin-top: 88px; }

body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	background-image:
		radial-gradient(720px 420px at 92% -6%, rgba(123, 47, 228, .10), transparent 62%),
		radial-gradient(680px 420px at -8% 108%, rgba(255, 138, 76, .10), transparent 60%);
	background-attachment: fixed;
	overflow-x: clip;
}

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

h1, h2, h3, h4 {
	font-family: var(--font-display);
	line-height: 1.1;
	letter-spacing: -.01em;
	color: var(--ink);
	font-weight: 700;
	text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 2px; }

strong, b { font-weight: 600; }

::selection { background: rgba(199, 45, 138, .18); }

/* ----------------------------------------------------------------- Layout */
.wrap {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: clamp(20px, 5vw, 32px);
}

.section {
	padding-block: clamp(80px, 11vw, 150px);
	border-top: 1px solid var(--border);
}
.section--flush { border-top: none; }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }

/* ------------------------------------------------------------ Type helpers */
.mono { font-family: var(--font-mono); }

.kicker {
	font-family: var(--font-mono);
	font-size: .72rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--magenta);
	display: inline-block;
}

.grad-text {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.lede { color: var(--muted); font-size: var(--step-1); max-width: 60ch; }
.muted { color: var(--muted); }
.eyebrow-note { color: var(--faint); font-size: var(--step--1); }

/* ----------------------------------------------------------- Section header */
/* One section-heading size (step-3), one body size, one small label (kicker).
   Lead with the takeaway; supporting line stays small and secondary. */
.sec-head { max-width: 50ch; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .index {
	font-family: var(--font-mono);
	font-size: .85rem;
	color: var(--violet);
	margin-right: 10px;
}
.sec-head .kicker { margin-bottom: var(--sp-4); }
.sec-head h2 { font-size: var(--step-3); margin-top: var(--sp-3); }
.sec-head p { color: var(--muted); margin-top: var(--sp-4); max-width: 52ch; line-height: 1.7; }

/* ----------------------------------------------------------------- Buttons */
.btn {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: .95rem;
	padding: 14px 26px;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
	will-change: transform;
}
.btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.btn-grad {
	background: var(--grad);
	color: #fff;
	box-shadow: var(--shadow-grad);
	background-size: 140% 100%;
}
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(199, 45, 138, .42); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }

.btn-sm { padding: 10px 18px; font-size: .85rem; border-radius: 10px; }

/* Text link with underline wipe */
.link-wipe {
	color: var(--ink);
	text-decoration: none;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: .9rem;
	position: relative;
	display: inline-block;
}
.link-wipe::after {
	content: "";
	position: absolute;
	left: 0; bottom: -3px;
	width: 100%; height: 2px;
	background: var(--grad);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .35s var(--ease);
}
.link-wipe:hover::after, .link-wipe:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* ------------------------------------------------------------------- Cards */
.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--sp-5);
	box-shadow: var(--shadow-sm);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card--hover:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: rgba(123, 47, 228, .35);
}
.card h3 { font-size: var(--step-1); }
.card p { color: var(--muted); font-size: .92rem; margin-top: var(--sp-2); }

/* --------------------------------------------------------- Bento + stats */
.bento {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: minmax(140px, auto);
	gap: var(--sp-4);
}
.tile {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--sp-5);
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--sp-3);
}
.tile--big { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
/* Tile uses a violet/magenta-weighted variant of the brand gradient so white
   text meets AA; coral is pushed to the corner. The full brand gradient stays
   on CTAs and accents. A light bottom scrim adds margin for the bottom text. */
.tile--grad { background: linear-gradient(145deg, #7B2FE4 0%, #C72D8A 64%, #FF8A4C 120%); color: #fff; border: none; position: relative; isolation: isolate; }
.tile--grad::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(0deg, rgba(20, 14, 26, .40) 0%, rgba(20, 14, 26, .16) 50%, rgba(20, 14, 26, .06) 100%);
	z-index: -1;
}
.tile--grad > * { position: relative; }
.tile--grad .tile-label { color: #fff; }
.tile--grad .tile-sub { color: #fff; }
.tile--grad .tile-num, .tile--grad .tile-label, .tile--grad .tile-sub { text-shadow: 0 1px 2px rgba(20, 14, 26, .28); }
.tile .tile-num { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1; }
.tile .tile-label { font-size: .85rem; color: var(--muted); }
.tile .tile-sub { font-size: .92rem; color: var(--ink); }
.tile .mini {
	font-family: var(--font-mono);
	font-size: .62rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--faint);
}

.stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-5);
}
.stat {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--sp-5);
	box-shadow: var(--shadow-sm);
}
.stat .stat-num { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); }
.stat .stat-num .grad-text, .stat .grad-text { display: inline; }
.stat p { font-size: .9rem; color: var(--muted); margin-top: var(--sp-2); }
.stat h3 { font-size: 1rem; }
.stat .src {
	font-family: var(--font-mono);
	font-size: .62rem;
	color: var(--faint);
	display: block;
	margin-top: var(--sp-3);
	letter-spacing: .08em;
}

/* --------------------------------------------------------------------- Nav */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; gap: var(--sp-5); }

.site-brand { text-decoration: none; display: inline-flex; align-items: center; }
.site-brand img { max-height: 34px; width: auto; }
.brand-wordmark { font-family: var(--font-logo); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1; }
.brand-surge { color: var(--ink); }
.brand-lume { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.site-nav .nav-menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: var(--sp-5);
}
.site-nav a {
	color: var(--muted);
	text-decoration: none;
	font-size: .9rem;
	font-weight: 500;
	position: relative;
	transition: color .2s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav .current-menu-item > a { color: var(--ink); }
/* Nav underline wipe */
.site-nav .nav-menu > li:not(.nav-cta) > a::after {
	content: "";
	position: absolute;
	left: 0; bottom: -4px;
	width: 100%; height: 2px;
	background: var(--grad);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .3s var(--ease);
}
.site-nav .nav-menu > li:not(.nav-cta) > a:hover::after,
.site-nav .nav-menu > li:not(.nav-cta) > a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
/* CTA item in menu: add a class "nav-cta" to the menu item in admin */
.site-nav .nav-cta > a {
	color: #fff;
	background: var(--grad);
	padding: 9px 16px;
	border-radius: 10px;
	font-family: var(--font-display);
	font-weight: 700;
	box-shadow: var(--shadow-grad);
}
.site-nav .nav-cta > a:hover { color: #fff; transform: translateY(-1px); }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 8px 10px;
	cursor: pointer;
	color: var(--ink);
}

/* ------------------------------------------------------------------ Footer */
.site-footer {
	border-top: 1px solid var(--border);
	padding-block: var(--sp-7) var(--sp-8);
	color: var(--muted);
	font-size: .85rem;
	margin-top: var(--sp-8);
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-5); align-items: center; }
.footer-brand .brand-wordmark { font-size: 1.2rem; }
.footer-copy { color: var(--muted); }
.footer-nav { list-style: none; display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }

/* --------------------------------------------------------------- FAQ accordion */
.faq-item {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	margin-bottom: var(--sp-3);
	overflow: hidden;
}
.faq-item > summary {
	cursor: pointer;
	padding: 18px 22px;
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--ink);
	font-size: 1rem;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--sp-4);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
	content: "+";
	color: var(--magenta);
	font-family: var(--font-mono);
	font-size: 1.2rem;
	transition: transform .2s var(--ease);
}
.faq-item[open] > summary::after { content: "\2013"; }
.faq-item .faq-answer { padding: 0 22px 18px; font-size: .92rem; color: var(--muted); max-width: 74ch; }
.faq-item .faq-answer > :first-child { margin-top: 0; }

/* --------------------------------------------------------------- Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-4); }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.input, .textarea, select {
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--ink);
	background: var(--surface);
	border: 1.5px solid var(--border);
	border-radius: 12px;
	padding: 12px 14px;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
	width: 100%;
}
.input:focus, .textarea:focus, select:focus {
	outline: none;
	border-color: var(--violet);
	box-shadow: 0 0 0 4px rgba(123, 47, 228, .12);
}
.textarea { min-height: 120px; resize: vertical; }

/* ------------------------------------------------------- Accessibility utils */
.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.screen-reader-text:focus {
	position: fixed !important;
	top: 12px; left: 12px;
	width: auto; height: auto;
	clip: auto;
	padding: 10px 18px;
	background: var(--ink);
	color: #fff;
	border-radius: 10px;
	z-index: 1000;
}
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ----------------------------------------------------------- Motion (gated) */
.has-motion [data-reveal] { opacity: 0; transform: translateY(16px); }
.has-motion [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* Gradient page-transition sweep overlay */
.page-sweep {
	position: fixed; inset: 0;
	background: var(--grad);
	transform: scaleY(0);
	transform-origin: bottom;
	z-index: 999;
	pointer-events: none;
}

/* Kinetic headline word clip-reveal (JS splits words into .kw > .kw-i) */
.kw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.kw-i { display: inline-block; } /* will-change is applied/cleared by main.js during the reveal */

/* Shimmer for accent words (hero) */
.shimmer {
	background: var(--grad);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.has-motion .shimmer { animation: shimmer 6s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ----------------------------------------------------------------- Utilities */
.center { text-align: center; }
.stack > * + * { margin-top: var(--sp-4); }
.cta-row { display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.content-area { padding-block: var(--sp-8); }
.scaffold-note { color: var(--faint); font-family: var(--font-mono); }
.todo-copy {
	font-style: italic;
	color: var(--faint);
}
.todo-copy::before { content: "TODO copy: "; font-family: var(--font-mono); font-style: normal; font-size: .7rem; letter-spacing: .1em; color: var(--magenta); }

/* ===================================================== VIDEO */
/* Content video embeds share the standardized UI-mockup treatment: one ratio
   (16:9), one radius, one shadow, one border, object-fit cover. Identical to a
   .media--ui image so a clip and a screenshot read the same in any slot. */
.video-embed { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface); border: 1px solid var(--border); aspect-ratio: 16 / 9; }
.video-embed video, .video-embed img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play {
	position: absolute; inset: 0; margin: auto;
	width: 64px; height: 64px;
	border-radius: 50%; border: none;
	background: var(--grad); color: #fff;
	cursor: pointer; display: grid; place-items: center;
	box-shadow: var(--shadow-grad);
	font-size: 1.1rem;
}
.video-play:hover { transform: scale(1.05); }

/* ============================================================= COMPONENTS:HERO */
.hero { padding-block: clamp(var(--sp-7), 7vw, 90px) var(--sp-9); position: relative; }

/* Decorative hero background video (subtle, behind content) */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: .55; }
.hero-bg .video-embed { width: 100%; height: 100%; aspect-ratio: auto; border: none; border-radius: 0; box-shadow: none; background: transparent; }
.hero-bg .video-embed video { width: 100%; height: 100%; object-fit: cover; background: transparent; }
.hero-grid { position: relative; z-index: 1; }
/* Logo sting is a brand mark on warm-white, not a card: no border/shadow. */
.video-sting { max-width: 760px; margin-inline: auto; border: none; box-shadow: none; background: transparent; }

/* "Be the answer" clip sits in the feature media slot and shares the UI ratio. */
.video-shift { width: 100%; }
/* Ambient proof loop: a calm, constrained banner with breathing room. */
.video-proof { width: 100%; }
/* Videos nested inside a card (psp-block) drop the extra chrome to avoid a
   double border/shadow against the card. */
.psp-block .video-embed { border: none; box-shadow: none; margin-top: var(--sp-5); }
/* Optional logo-sting hero intro (off by default): centered, no chrome. */
.hero-intro { display: flex; justify-content: center; padding-block: var(--sp-6) 0; }
.hero-intro .video-embed { max-width: 760px; width: 100%; border: none; box-shadow: none; background: transparent; }

/* ---- Standardized media: one ratio per type, uniform radius + shadow ----
   All content images go through surgelume_image() and land on one of these
   classes, so photos share a ratio and UI mockups share a ratio, with the same
   corner radius, shadow, and border, aligned to the content grid. */
.media { display: block; overflow: hidden; border-radius: 16px; background: var(--surface); margin: 0; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.media--photo { aspect-ratio: 3 / 2; }              /* every photo */
.media--ui { aspect-ratio: 16 / 9; }                /* every answer / UI mockup */
.media--ui img { object-position: top; }            /* keep the top of a screenshot */
.media--phone { aspect-ratio: 4 / 5; max-width: 300px; } /* portrait phone shot */
.media--soft { box-shadow: var(--shadow-md); }      /* legacy alias, same treatment */

/* Site logo image (header + footer); preserves ratio, no crop */
.site-logo-img { height: 40px; width: auto; display: block; }
.site-footer .site-logo-img { height: 44px; }

/* Image-beside-text feature row: consistent split, gutter, vertical center,
   alternating sides. Stacks to one column (image first) on small screens. */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature .feature-text { max-width: 48ch; }
.feature .feature-text .kicker { margin-bottom: var(--sp-4); }
.feature .feature-text h2 { font-size: var(--step-3); }
.feature .feature-text p { color: var(--muted); margin-top: var(--sp-4); line-height: 1.7; }
/* Reverse puts the image on the left (text on the right) for alternating rhythm. */
.feature--reverse .feature-media { order: -1; }
@media (max-width: 860px) {
	.feature { grid-template-columns: 1fr; gap: var(--sp-6); }
	.feature .feature-media { order: -1; } /* image first when stacked */
}

/* Clean stat line: a few strong numbers, evenly spaced, lots of air */
.statline { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 5vw, 64px); max-width: 940px; margin-inline: auto; text-align: center; }
.statline .n { font-family: var(--font-display); font-weight: 800; font-size: var(--step-4); line-height: 1; }
.statline .l { color: var(--muted); margin-top: var(--sp-3); font-size: .95rem; max-width: 28ch; margin-inline: auto; }
.statline .s { display: block; margin-top: var(--sp-2); font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 700px) { .statline { grid-template-columns: 1fr; gap: var(--sp-7); } }

/* Compact support list: labels only, even row, no competing paragraphs */
.support-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); list-style: none; padding: 0; margin: 0; }
.support-list li { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); padding-top: var(--sp-4); border-top: 2px solid var(--border); }
@media (max-width: 760px) { .support-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .support-list { grid-template-columns: 1fr; } }
/* Dependency-free animated hero loop: a subtle drifting gradient glow. */
.hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -8%; right: -4%;
	width: 420px; height: 420px;
	max-width: 60vw;
	border-radius: 50%;
	background:
		radial-gradient(circle at 32% 32%, rgba(123, 47, 228, .18), transparent 60%),
		radial-gradient(circle at 70% 68%, rgba(255, 138, 76, .16), transparent 62%);
	filter: blur(34px);
	pointer-events: none;
}
.has-motion .hero::before { animation: heroDrift 14s ease-in-out infinite alternate; }
@keyframes heroDrift {
	from { transform: translate3d(0, 0, 0) scale(1); }
	to { transform: translate3d(-28px, 22px, 0) scale(1.12); }
}
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -.02em; margin-top: var(--sp-4); }
.hero p { margin: var(--sp-5) 0 var(--sp-6); color: var(--muted); max-width: 52ch; font-size: var(--step-1); }
.hero .proofline {
	margin-top: var(--sp-6);
	font-family: var(--font-mono);
	font-size: .72rem;
	letter-spacing: .08em;
	color: var(--faint);
}
.hero .proofline b { color: var(--muted); font-weight: 500; }

/* AI answer device */
.answerbox {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: var(--shadow-md);
}
.answerbox .bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.answerbox .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.answerbox .body { padding: 20px 22px; font-size: .9rem; }
.answerbox .q { font-family: var(--font-mono); color: var(--muted); font-size: .78rem; margin-bottom: 14px; }
.answerbox .q b { color: var(--ink); font-weight: 500; }
.answerbox .a p { color: var(--ink); margin-bottom: 10px; }
.cite {
	display: inline-block;
	background: var(--grad-soft);
	border: 1px solid rgba(123, 47, 228, .35);
	color: var(--violet);
	font-family: var(--font-mono);
	font-size: .7rem;
	padding: 2px 8px;
	border-radius: 6px;
	margin: 2px 2px 0 0;
}
.cite--you { background: var(--grad); color: #fff; border: none; }
.cursor { display: inline-block; width: 8px; height: 14px; background: var(--magenta); vertical-align: -2px; }
.has-motion .cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ===================================================== COMPONENTS:SERVICE TIERS */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.tier {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--sp-6);
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-sm);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(123, 47, 228, .35); }
.tier--featured { border-color: rgba(199, 45, 138, .45); }
.tier .step { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; color: var(--magenta); }
.tier h3 { font-size: var(--step-1); margin: 10px 0 4px; }
.tier .scope { font-family: var(--font-mono); color: var(--muted); font-size: .82rem; margin-bottom: 14px; }
.tier ul { list-style: none; margin-bottom: var(--sp-5); flex: 1; }
.tier li { font-size: .88rem; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--border); }
.tier li::before { content: "+"; color: var(--violet); font-family: var(--font-mono); margin-right: 9px; }

/* ===================================================== COMPONENTS:INDUSTRIES */
.inds { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.ind {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--sp-5);
	text-decoration: none;
	color: var(--ink);
	box-shadow: var(--shadow-sm);
	transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.ind:hover { transform: translateY(-3px); border-color: rgba(123, 47, 228, .35); box-shadow: var(--shadow-md); }
.ind .tag { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; color: var(--magenta); text-transform: uppercase; }
.ind h3 { font-size: 1rem; margin: 8px 0 6px; }
.ind p { font-size: .82rem; color: var(--muted); }

/* ===================================================== COMPONENTS:PROOF */
.proofs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.proof {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--sp-6);
	box-shadow: var(--shadow-sm);
}
.proof .proof-num { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); }
.proof h3 { font-size: .98rem; margin: 8px 0 6px; }
.proof p { font-size: .85rem; color: var(--muted); }

/* ===================================================== COMPONENTS:FOUNDER */
.founder { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-6); align-items: center; }
.founder-mark {
	width: 96px; height: 96px;
	border-radius: 22px;
	background: var(--grad);
	display: grid;
	place-items: center;
	color: #fff;
	font-family: var(--font-logo);
	font-weight: 800;
	font-size: 2.2rem;
	letter-spacing: -1px;
	box-shadow: var(--shadow-grad);
	flex: none;
}
.founder h2 { font-size: var(--step-2); }
.founder .role { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--magenta); margin-top: 4px; }
.founder p { color: var(--muted); margin-top: var(--sp-4); max-width: 60ch; }

/* ===================================================== COMPONENTS:FINAL CTA */
.final-cta {
	position: relative;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid rgba(199, 45, 138, .3);
	border-radius: var(--radius-lg);
	padding: clamp(36px, 6vw, 64px);
	text-align: center;
	box-shadow: var(--shadow-sm);
}
.final-cta::before {
	content: "";
	position: absolute; inset: 0;
	background: radial-gradient(560px 220px at 50% -10%, rgba(199, 45, 138, .12), transparent 70%);
	pointer-events: none;
}
.final-cta h2 { font-size: var(--step-3); position: relative; }
.final-cta p { color: var(--muted); margin: var(--sp-4) auto var(--sp-6); max-width: 54ch; position: relative; }
.final-cta .cta-row { justify-content: center; position: relative; }

/* ===================================================== INNER PAGE / PROSE */
.page-hero { padding-block: clamp(64px, 9vw, 112px) var(--sp-7); }
.page-hero h1 { font-size: var(--step-4); margin-top: var(--sp-3); max-width: 18ch; }
.page-hero .lede { margin-top: var(--sp-5); }

.answer-first {
	background: var(--grad-soft);
	border: 1px solid rgba(123, 47, 228, .2);
	border-radius: var(--radius);
	padding: var(--sp-5);
	font-size: var(--step-1);
	color: var(--ink);
	margin: var(--sp-5) 0;
	max-width: 70ch;
}
.answer-first .mini { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--magenta); margin-bottom: 8px; }

.prose { max-width: 70ch; }
.prose { line-height: 1.75; }
.prose > * + * { margin-top: var(--sp-5); }
.prose h2 { font-size: var(--step-2); margin-top: var(--sp-7); }
.prose h3 { font-size: var(--step-1); margin-top: var(--sp-5); }
.prose ul, .prose ol { padding-left: 1.2em; color: var(--muted); }
.prose li { margin-top: 6px; }
.prose a { color: var(--violet); }

.psp { display: grid; gap: clamp(20px, 3vw, 36px); }
.psp-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.psp-block .label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--magenta); }
.psp-block h2 { font-size: var(--step-2); margin-top: var(--sp-3); }
.psp-block p { color: var(--muted); margin-top: var(--sp-4); max-width: 60ch; line-height: 1.75; }

.related-cases { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.case-link {
	display: block;
	text-decoration: none;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--sp-5);
	box-shadow: var(--shadow-sm);
	transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.case-link:hover { transform: translateY(-3px); border-color: rgba(123, 47, 228, .35); }
.case-link .case-num { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); }

/* ===================================================== BLOG */
.post-list { display: grid; gap: var(--sp-5); max-width: 760px; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-6); box-shadow: var(--shadow-sm); }
.post-card-title { font-size: var(--step-1); }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--violet); }
.post-card-meta { font-size: .72rem; color: var(--faint); margin: 6px 0; letter-spacing: .08em; }
.post-card-excerpt { color: var(--muted); font-size: .92rem; margin-top: var(--sp-3); }

.single-article { max-width: 760px; margin-inline: auto; }
.single-head { margin-bottom: var(--sp-5); }
.single-title { font-size: var(--step-3); }
.single-meta { font-size: .72rem; color: var(--faint); margin-top: 10px; letter-spacing: .08em; }
.single-thumb { margin: var(--sp-5) 0; border-radius: var(--radius); overflow: hidden; }
.single-content > * + * { margin-top: var(--sp-4); }
.single-content h2 { font-size: var(--step-2); margin-top: var(--sp-6); }
.single-content h3 { font-size: var(--step-1); margin-top: var(--sp-5); }
.single-content ul, .single-content ol { padding-left: 1.2em; color: var(--muted); }
.single-content blockquote { border-left: 3px solid; border-image: var(--grad) 1; padding-left: var(--sp-4); color: var(--ink); font-size: var(--step-1); }

.archive-head { max-width: 760px; margin: 0 auto var(--sp-6); }
.page-title { font-size: var(--step-3); }
.pagination, .nav-links { margin-top: var(--sp-6); }
.pagination .page-numbers { padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--ink); margin-right: 6px; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; }

.page-article { max-width: 760px; margin-inline: auto; }
.page-content > * + * { margin-top: var(--sp-4); }
.error-404 { max-width: 600px; }

/* ===================================================== STYLEGUIDE */
.sg-section { padding-block: var(--sp-7); border-top: 1px solid var(--border); }
.sg-swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-3); }
.sg-chip { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.sg-chip .c { height: 72px; }
.sg-chip .i { padding: 10px 12px; font-family: var(--font-mono); font-size: .66rem; color: var(--muted); }
.sg-chip .i b { display: block; color: var(--ink); }
.sg-gradbar { height: 60px; border-radius: var(--radius-sm); background: var(--grad); margin-top: 12px; }
.sg-row { display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: center; margin-bottom: var(--sp-4); }

/* ===================================================== ESTIMATOR */
.est-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: var(--sp-6); align-items: start; }
.est-controls { display: grid; gap: var(--sp-5); }

.est-chips { border: none; }
.est-chips legend, .seg-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--magenta); margin-bottom: 10px; padding: 0; }
.est-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.est-chips legend { flex-basis: 100%; }
.chip {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: .9rem;
	color: var(--ink);
	background: var(--surface);
	border: 1.5px solid var(--border);
	border-radius: 999px;
	padding: 10px 18px;
	cursor: pointer;
	transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--violet); }
.chip[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-grad); }

.est-segment[hidden] { display: none; }
.seg { display: flex; gap: 10px; flex-wrap: wrap; }
.seg [role="radio"] {
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--surface);
	border: 1.5px solid var(--border);
	border-radius: 12px;
	padding: 12px 16px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: left;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.seg [role="radio"] span { font-weight: 600; font-size: .9rem; }
.seg [role="radio"] small { color: var(--faint); font-size: .72rem; }
.seg [role="radio"]:hover { border-color: var(--violet); }
.seg [role="radio"][aria-checked="true"] { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(123, 47, 228, .12); }

.stepper { display: inline-flex; align-items: center; gap: 14px; }
.step-btn {
	width: 40px; height: 40px;
	border-radius: 12px;
	border: 1.5px solid var(--border);
	background: var(--surface);
	color: var(--ink);
	font-size: 1.2rem;
	cursor: pointer;
	transition: border-color .2s var(--ease);
}
.step-btn:hover { border-color: var(--violet); }
.stepper output { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; min-width: 1.5ch; text-align: center; }

.est-capture { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.est-capture .field:first-child { grid-column: 1 / -1; }

.est-readout {
	position: sticky;
	top: 92px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--sp-6);
	box-shadow: var(--shadow-md);
}
.est-readout .mini { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.est-range { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); margin: 8px 0 10px; }
.est-note { color: var(--muted); font-size: .85rem; margin-bottom: var(--sp-5); min-height: 2.6em; }
.est-readout .btn { width: 100%; justify-content: center; }
.est-fine { color: var(--faint); font-size: .68rem; margin-top: var(--sp-4); }

@media (max-width: 920px) {
	.est-grid { grid-template-columns: 1fr; }
	.est-readout { position: static; }
}
@media (max-width: 520px) {
	.est-capture { grid-template-columns: 1fr; }
}

/* ===================================================== TRUST STRIP */
.trust-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-5);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--sp-5);
	box-shadow: var(--shadow-sm);
}
.trust-cell { display: flex; gap: 14px; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.trust-cell b { color: var(--ink); display: block; font-family: var(--font-display); font-size: 1rem; }
.trust-cell span { display: block; margin-top: 4px; line-height: 1.45; }
.trust-metric b { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; }
.founder-mark--sm { width: 48px; height: 48px; border-radius: 12px; font-size: 1.1rem; flex: none; }
.trust-cell + .trust-cell { border-left: 1px solid var(--border); padding-left: var(--sp-5); }

/* ===================================================== FEATURED CASE (P/S/R) */
.featured-case {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: var(--sp-6);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--sp-6);
	box-shadow: var(--shadow-sm);
}
.featured-case-stat .case-num { font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; line-height: 1; }
.featured-case-stat .link-wipe { display: inline-block; margin-top: 12px; }
.featured-case-body h3 { font-size: var(--step-1); margin-bottom: var(--sp-4); }
.psr { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.psr-label { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--magenta); }
.psr p { color: var(--muted); font-size: .85rem; margin-top: 6px; }

/* ===================================================== GUARANTEE */
.guarantee-line {
	margin-top: var(--sp-4);
	font-size: .85rem;
	color: var(--muted);
	background: var(--grad-soft);
	border: 1px solid rgba(123, 47, 228, .2);
	border-radius: 12px;
	padding: 12px 16px;
}
.guarantee-line b { color: var(--ink); }

@media (max-width: 920px) {
	.trust-strip { grid-template-columns: 1fr; }
	.trust-cell + .trust-cell { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: var(--sp-4); }
	.featured-case { grid-template-columns: 1fr; }
	.psr { grid-template-columns: 1fr; }
}

/* ===================================================== CONSENT BANNER */
.consent-banner {
	position: fixed;
	bottom: 16px; left: 16px; right: 16px;
	max-width: 600px;
	margin-inline: auto;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	padding: 16px 18px;
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	z-index: 200;
}
.consent-text { font-size: .85rem; color: var(--muted); margin: 0; flex: 1 1 240px; }
.consent-actions { display: flex; gap: 10px; }

/* ===================================================== BOOKING EMBED */
.booking-embed { margin-top: var(--sp-5); }
.booking-embed iframe { width: 100%; min-height: 660px; border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.booking-fallback-note { font-size: .8rem; margin-top: 10px; }
.booking-fallback {
	margin-top: var(--sp-5);
	background: var(--grad-soft);
	border: 1px solid rgba(123, 47, 228, .2);
	border-radius: var(--radius);
	padding: var(--sp-5);
	text-align: left;
}
.final-cta .booking-fallback, .final-cta .booking-embed { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ===================================================== PRICE ANCHORS */
.price-anchor { font-family: var(--font-mono); font-size: .82rem; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.tier .price-anchor { margin: 4px 0 8px; color: var(--violet); }
.page-hero .price-anchor { margin-top: var(--sp-4); color: var(--muted); }
.page-hero .price-anchor a { margin-left: 8px; }

/* ===================================================== AUDIT / SNAPSHOT FORM */
.audit-grid { gap: var(--sp-6); }
.audit-form-wrap {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--sp-6);
	box-shadow: var(--shadow-md);
}
.audit-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-progress { list-style: none; display: flex; gap: 8px; margin: 0 0 var(--sp-5); padding: 0; }
.form-progress li { height: 5px; flex: 1; border-radius: 999px; background: var(--border); transition: background .3s var(--ease); }
.form-progress li.is-active { background: var(--grad); }

/* Without JS every step shows; with JS only the active one. */
.audit-form.is-multistep .form-step { display: none; border: none; }
.audit-form.is-multistep .form-step.is-active { display: block; }
.form-step { border: none; }
.step-q { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); margin-bottom: var(--sp-4); display: block; padding: 0; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: .92rem;
	text-align: left;
	color: var(--ink);
	background: var(--surface);
	border: 1.5px solid var(--border);
	border-radius: 12px;
	padding: 14px 16px;
	cursor: pointer;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.choice:hover { border-color: var(--violet); transform: translateY(-1px); }
.choice.is-selected { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(123, 47, 228, .12); }

.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: var(--sp-4); align-items: center; }
.field.has-error .input { border-color: #d23b6b; box-shadow: 0 0 0 3px rgba(210, 59, 107, .12); }

.thankyou { text-align: left; }
.thankyou h2 { font-size: var(--step-2); margin: 8px 0 12px; }
.thankyou .cta-row { margin-top: var(--sp-5); }

.check-list { list-style: none; padding: 0; margin-top: var(--sp-3); }
.check-list li { position: relative; padding: 8px 0 8px 28px; color: var(--muted); border-bottom: 1px solid var(--border); font-size: .92rem; }
.check-list li::before { content: "+"; position: absolute; left: 4px; top: 8px; color: var(--violet); font-family: var(--font-mono); font-weight: 600; }

@media (max-width: 620px) {
	.choice-grid { grid-template-columns: 1fr; }
}

/* ===================================================== RESPONSIVE */
@media (max-width: 920px) {
	.hero-grid { grid-template-columns: 1fr; }
	.stats, .tiers, .proofs, .grid-3 { grid-template-columns: 1fr; }
	.inds, .grid-4 { grid-template-columns: 1fr 1fr; }
	.bento { grid-template-columns: repeat(2, 1fr); }
	.tile--big { grid-column: span 2; grid-row: span 1; }
	.related-cases, .grid-2 { grid-template-columns: 1fr; }
	.founder { grid-template-columns: 1fr; text-align: left; }
	.sg-swatches { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
	.site-nav .nav-menu { gap: var(--sp-4); }
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		padding: var(--sp-4) clamp(20px, 5vw, 32px) var(--sp-5);
		display: none;
	}
	.site-nav.is-open { display: block; }
	.site-nav .nav-menu { flex-direction: column; align-items: flex-start; }
	.inds, .grid-4 { grid-template-columns: 1fr; }
	.footer-grid { flex-direction: column; align-items: flex-start; }
}

/* ===================================================== REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.has-motion [data-reveal] { opacity: 1; transform: none; }
}

/* ===================================================== PRINT */
@media print {
	.site-header, .site-footer, .page-sweep { display: none; }
	body { background: #fff; }
}
