/* =========================================================================
   Albatross Vibe — main stylesheet
   Light engineering aesthetic (cream/indigo/gold from the logo; code
   windows stay dark). No frameworks, no build step.
   Sections: tokens, base, layout, header, buttons, hero, code window,
   tech strip, sections/cards, architecture flow, process, pricing,
   case studies, why-us, testimonials, FAQ, forms, modal, pages, footer,
   utilities, responsive.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
	/* Light theme built from the Albatross Vibe logo: cream ground, deep indigo, warm gold. */
	--bg: #faf7f0;
	--bg-alt: #f3efe4;
	--surface: #ffffff;
	--surface-2: #faf7f0;
	--border: rgba(42, 36, 64, 0.12);
	--border-strong: rgba(42, 36, 64, 0.22);
	--text: #2a2440;
	--text-muted: #5d566f;
	--text-faint: #8b8598;
	--accent: #4c3d9e;
	--accent-strong: #3b2e85;
	--accent-soft: rgba(76, 61, 158, 0.08);
	--gold: #9c7443;
	--gold-soft: rgba(212, 178, 138, 0.22);
	--danger: #c93a2e;
	--radius: 10px;
	--radius-lg: 14px;
	--shadow: 0 8px 30px rgba(42, 36, 64, 0.1);
	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--container: 1180px;
	--header-h: 72px;
	color-scheme: light;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--bg);
	background-image:
		radial-gradient(ellipse 90% 40% at 50% -5%, rgba(76, 61, 158, 0.06), transparent),
		linear-gradient(rgba(42, 36, 64, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(42, 36, 64, 0.035) 1px, transparent 1px);
	background-size: auto, 44px 44px, 44px 44px;
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

h1, h2, h3, h4 {
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin: 0 0 0.6em;
	font-weight: 700;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

ul, ol {
	margin: 0 0 1em;
	padding-left: 1.2em;
}

code, pre, kbd {
	font-family: var(--font-mono);
	font-size: 0.9em;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: rgba(76, 61, 158, 0.2);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 8px;
	top: -48px;
	z-index: 200;
	background: var(--accent);
	color: #fff;
	padding: 10px 18px;
	border-radius: 0 0 8px 8px;
	transition: top 0.15s ease;
}

.skip-link:focus {
	top: 0;
}

/* ---------- Layout ---------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 32px);
}

.container-narrow {
	max-width: 860px;
}

.section {
	padding-block: clamp(64px, 9vw, 110px);
}

.section-alt {
	background: linear-gradient(180deg, transparent, rgba(243, 239, 228, 0.55) 12%, rgba(243, 239, 228, 0.55) 88%, transparent);
}

.section-header {
	max-width: 720px;
	margin: 0 auto clamp(36px, 5vw, 56px);
	text-align: center;
}

.section-header-left {
	text-align: left;
	margin-inline: 0;
}

.section-eyebrow {
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	margin-bottom: 12px;
}

.section-title {
	font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

.section-sub {
	color: var(--text-muted);
	font-size: 1.05rem;
	margin-bottom: 0;
}

.section-more {
	text-align: center;
	margin-top: 40px;
}

.grid {
	display: grid;
	gap: clamp(16px, 2.5vw, 26px);
}

.grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* ---------- Header / nav ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(250, 247, 240, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
}

.brand-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
}

.brand-link:hover {
	text-decoration: none;
	color: var(--accent);
}

.brand-logo {
	height: 42px;
	width: auto;
	flex: none;
}

.site-footer .brand-logo {
	height: 52px;
}

.custom-logo {
	max-height: 44px;
	width: auto;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.nav-menu {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-menu a {
	display: block;
	padding: 8px 12px;
	color: var(--text-muted);
	font-size: 0.95rem;
	font-weight: 500;
	border-radius: 8px;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-menu a:hover {
	color: var(--text);
	background: rgba(42, 36, 64, 0.08);
	text-decoration: none;
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

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

.nav-toggle-box {
	display: block;
	width: 20px;
	height: 14px;
	position: relative;
}

.nav-toggle-bar,
.nav-toggle-box::before,
.nav-toggle-box::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: var(--text);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-box::before { top: 0; }
.nav-toggle-bar { top: 6px; }
.nav-toggle-box::after { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-box::before {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: var(--radius);
	border: 1px solid transparent;
	font-family: var(--font-sans);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
	text-align: center;
}

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

.btn-lg {
	padding: 14px 26px;
	font-size: 1rem;
}

.btn-block {
	width: 100%;
}

.btn-primary {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 4px 18px rgba(76, 61, 158, 0.25);
}

.btn-primary:hover {
	background: var(--accent-strong);
	color: #fff;
	box-shadow: 0 6px 22px rgba(76, 61, 158, 0.35);
}

.btn-ghost {
	background: transparent;
	color: var(--text);
	border-color: var(--border-strong);
}

.btn-ghost:hover {
	border-color: var(--accent);
	color: var(--accent);
	background: var(--accent-soft);
}

.btn-outline {
	background: transparent;
	color: var(--accent);
	border-color: rgba(76, 61, 158, 0.45);
}

.btn-outline:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
	padding-block: clamp(56px, 8vw, 110px);
	overflow: hidden;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}

.hero-badge {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 0.82rem;
	color: var(--gold);
	background: var(--gold-soft);
	border: 1px solid rgba(212, 178, 138, 0.3);
	border-radius: 999px;
	padding: 6px 14px;
	margin-bottom: 22px;
}

.hero-headline {
	font-size: clamp(2rem, 4.6vw, 3.3rem);
	letter-spacing: -0.03em;
	margin-bottom: 20px;
}

.hero-sub {
	color: var(--text-muted);
	font-size: clamp(1rem, 1.4vw, 1.12rem);
	max-width: 56ch;
	margin-bottom: 28px;
}

.hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 26px;
}

.hero-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hero-trust li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--text-muted);
	font-size: 0.9rem;
	font-weight: 500;
}

.hero-trust .icon {
	width: 16px;
	height: 16px;
	color: var(--gold);
	flex: none;
}

/* ---------- Code window ---------- */
/* The code window deliberately stays dark on the light theme —
   scoped custom properties re-theme everything inside it. */
.code-window {
	--text: #e2e8f0;
	--text-muted: #94a3b8;
	--text-faint: #64748b;
	--border: rgba(148, 163, 184, 0.16);
	--accent: #8b7cf8;
	--accent-soft: rgba(139, 124, 248, 0.12);
	background: linear-gradient(180deg, #131a2e, #0b0f1e);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow), 0 0 60px rgba(76, 61, 158, 0.12);
	overflow: hidden;
}

.code-window-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--border);
	background: rgba(148, 163, 184, 0.05);
}

.code-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: rgba(42, 36, 64, 0.25);
	flex: none;
}

.code-dot:first-child { background: rgba(248, 113, 113, 0.6); }
.code-dot:nth-child(2) { background: rgba(251, 191, 36, 0.6); }
.code-dot:nth-child(3) { background: rgba(212, 178, 138, 0.6); }

.code-tabs {
	display: flex;
	gap: 4px;
	margin-left: 12px;
	overflow-x: auto;
}

.code-tab,
.arch-tab {
	background: none;
	border: 1px solid transparent;
	color: var(--text-faint);
	font-family: var(--font-mono);
	font-size: 0.78rem;
	padding: 5px 12px;
	border-radius: 7px;
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.code-tab:hover,
.arch-tab:hover {
	color: var(--text);
}

.code-tab.is-active,
.arch-tab.is-active {
	color: var(--accent);
	background: var(--accent-soft);
	border-color: rgba(76, 61, 158, 0.35);
}

.code-panel {
	display: none;
	padding: 18px 20px 8px;
}

.code-panel.is-active {
	display: block;
	animation: panel-in 0.25s ease;
}

@keyframes panel-in {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: none; }
}

.code-panel pre {
	margin: 0;
	overflow-x: auto;
	font-size: 0.8rem;
	line-height: 1.7;
	color: #cbd5e1;
	-webkit-overflow-scrolling: touch;
}

.tok-k { color: #c084fc; }
.tok-t { color: #9db8ff; }
.tok-f { color: #a99df5; }
.tok-s { color: #d4b28a; }
.tok-n { color: #fbbf24; }
.tok-c { color: var(--text-faint); font-style: italic; }

.code-flow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 14px 20px 18px;
	border-top: 1px solid var(--border);
}

.code-flow li {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--text-muted);
	background: rgba(148, 163, 184, 0.08);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 4px 9px;
	white-space: nowrap;
}

.code-flow li:not(:last-child)::after {
	content: "→";
	color: var(--accent);
	margin-left: 10px;
	margin-right: -1px;
}

/* ---------- Tech strip ---------- */
.tech-strip {
	padding-block: clamp(36px, 5vw, 56px);
	border-block: 1px solid var(--border);
	background: rgba(243, 239, 228, 0.4);
}

.tech-strip-title {
	text-align: center;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--text-muted);
	letter-spacing: 0.02em;
	margin-bottom: 22px;
}

.tech-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tech-pill {
	font-family: var(--font-mono);
	font-size: 0.82rem;
	color: var(--text-muted);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 7px 16px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.tech-pill:hover {
	color: var(--text);
	border-color: var(--border-strong);
}

/* ---------- Cards ---------- */
.card {
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, var(--surface), rgba(243, 239, 228, 0.6));
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: clamp(22px, 3vw, 30px);
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	border-color: rgba(76, 61, 158, 0.4);
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}

.card-title {
	font-size: 1.15rem;
	margin-bottom: 10px;
}

.card-title a {
	color: var(--text);
}

.card-title a:hover {
	color: var(--accent);
	text-decoration: none;
}

.card-excerpt {
	color: var(--text-muted);
	font-size: 0.95rem;
}

.card-icon {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: var(--accent-soft);
	border: 1px solid rgba(76, 61, 158, 0.3);
	color: var(--accent);
	margin-bottom: 16px;
	flex: none;
}

.card-icon .icon {
	width: 22px;
	height: 22px;
}

.feature-list {
	list-style: none;
	margin: 0 0 1.2em;
	padding: 0;
}

.feature-list li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	color: var(--text-muted);
	font-size: 0.9rem;
	padding-block: 4px;
}

.feature-list .icon {
	width: 15px;
	height: 15px;
	color: var(--gold);
	flex: none;
	margin-top: 5px;
}

.feature-list-lg li {
	font-size: 1rem;
}

.card-footer {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.card-price {
	font-family: var(--font-mono);
	font-size: 0.9rem;
	color: var(--gold);
	margin: 0;
	white-space: nowrap;
}

.card-link {
	margin-top: auto;
	padding-top: 12px;
	font-weight: 600;
	font-size: 0.92rem;
}

/* ---------- Architecture flow ---------- */
.arch {
	background: linear-gradient(180deg, var(--surface), rgba(247, 244, 236, 0.9));
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.arch-tabs {
	display: flex;
	gap: 6px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--border);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.arch-tab {
	font-size: 0.85rem;
	padding: 8px 16px;
}

.arch-panel {
	display: none;
	padding: clamp(24px, 4vw, 44px);
}

.arch-panel.is-active {
	display: block;
	animation: panel-in 0.25s ease;
}

.flow {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 460px;
}

.flow-node {
	width: 100%;
	text-align: center;
	background: rgba(42, 36, 64, 0.05);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	padding: 14px 18px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.flow-node:hover {
	border-color: var(--accent);
	box-shadow: 0 0 24px rgba(76, 61, 158, 0.12);
}

.flow-node-accent {
	border-color: rgba(76, 61, 158, 0.45);
	background: var(--accent-soft);
}

.flow-node-green {
	border-color: rgba(212, 178, 138, 0.45);
	background: var(--gold-soft);
}

.flow-label {
	display: block;
	font-weight: 600;
	font-size: 0.98rem;
}

.flow-tags {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--text-faint);
	margin-top: 3px;
}

.flow-arrow {
	width: 2px;
	height: 26px;
	background: linear-gradient(180deg, var(--accent), rgba(76, 61, 158, 0.15));
	position: relative;
}

.flow-arrow::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: var(--accent);
}

/* ---------- Process ---------- */
.process-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: clamp(14px, 2vw, 22px);
	counter-reset: step;
}

.process-step {
	background: linear-gradient(180deg, var(--surface), rgba(243, 239, 228, 0.6));
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 22px;
	position: relative;
}

.process-num {
	display: block;
	font-family: var(--font-mono);
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--accent);
	opacity: 0.85;
	margin-bottom: 12px;
}

.process-title {
	font-size: 1.02rem;
	margin-bottom: 8px;
}

.process-desc {
	color: var(--text-muted);
	font-size: 0.88rem;
	margin: 0;
}

/* ---------- Pricing ---------- */
.pricing-grid {
	align-items: stretch;
}

.pricing-card {
	position: relative;
}

.pricing-card-featured {
	border-color: rgba(76, 61, 158, 0.55);
	box-shadow: 0 0 40px rgba(76, 61, 158, 0.12);
}

.pricing-flag {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--accent);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 4px 14px;
	margin: 0;
	white-space: nowrap;
}

.pricing-price {
	margin-bottom: 4px;
}

.pricing-from {
	display: block;
	color: var(--text-faint);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.pricing-amount {
	font-size: 2.1rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.pricing-timeline {
	font-family: var(--font-mono);
	color: var(--gold);
	font-size: 0.85rem;
	margin-bottom: 18px;
}

.pricing-card .btn {
	margin-top: auto;
}

.pricing-note {
	text-align: center;
	color: var(--text-faint);
	font-size: 0.88rem;
	max-width: 640px;
	margin: 32px auto 0;
}

/* ---------- Case studies ---------- */
.case-thumb {
	margin: calc(clamp(22px, 3vw, 30px) * -1) calc(clamp(22px, 3vw, 30px) * -1) 18px;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	overflow: hidden;
}

.case-thumb img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.case-industry {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--gold);
	margin-bottom: 8px;
}

.tech-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
}

.tech-tags li {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--text-muted);
	background: rgba(42, 36, 64, 0.07);
	border: 1px solid var(--border);
	border-radius: 5px;
	padding: 3px 8px;
}

.metrics-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin: 0 0 36px;
}

.metric {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px 18px;
}

.metric dt {
	color: var(--text-faint);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 6px;
}

.metric dd {
	margin: 0;
	font-weight: 700;
	color: var(--gold);
	font-size: 0.98rem;
}

.case-testimonial {
	margin-block: 36px;
}

/* ---------- Why us ---------- */
.whyus-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

.whyus-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.whyus-item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: linear-gradient(180deg, var(--surface), rgba(243, 239, 228, 0.5));
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 18px 20px;
	transition: border-color 0.2s ease;
}

.whyus-item:hover {
	border-color: rgba(76, 61, 158, 0.4);
}

.whyus-item .card-icon {
	margin-bottom: 0;
}

.whyus-title {
	font-size: 1rem;
	margin-bottom: 4px;
}

.whyus-desc {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin: 0;
}

/* ---------- Testimonials ---------- */
.testimonial-card blockquote {
	margin: 0 0 14px;
	font-size: 0.98rem;
	color: var(--text);
}

.testimonial-card blockquote p::before { content: "\201C"; color: var(--accent); }
.testimonial-card blockquote p::after { content: "\201D"; color: var(--accent); }

.testimonial-card figcaption {
	color: var(--text-muted);
	font-size: 0.88rem;
	margin-top: auto;
}

/* ---------- FAQ ---------- */
.faq-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.faq-item {
	background: linear-gradient(180deg, var(--surface), rgba(243, 239, 228, 0.55));
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: border-color 0.2s ease;
}

.faq-item[open] {
	border-color: rgba(76, 61, 158, 0.4);
}

.faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	cursor: pointer;
	list-style: none;
}

.faq-question::-webkit-details-marker {
	display: none;
}

.faq-question h3 {
	font-size: 1rem;
	margin: 0;
	font-weight: 600;
}

.faq-marker {
	flex: none;
	width: 14px;
	height: 14px;
	position: relative;
}

.faq-marker::before,
.faq-marker::after {
	content: "";
	position: absolute;
	inset: auto;
	background: var(--accent);
	transition: transform 0.2s ease;
}

.faq-marker::before {
	left: 0;
	top: 6px;
	width: 14px;
	height: 2px;
}

.faq-marker::after {
	left: 6px;
	top: 0;
	width: 2px;
	height: 14px;
}

.faq-item[open] .faq-marker::after {
	transform: scaleY(0);
}

.faq-answer {
	padding: 0 20px 18px;
	color: var(--text-muted);
	font-size: 0.95rem;
}

.faq-answer p:last-child {
	margin-bottom: 0;
}

/* ---------- Forms ---------- */
.lead-form {
	background: linear-gradient(180deg, var(--surface), rgba(247, 244, 236, 0.9));
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: clamp(22px, 4vw, 36px);
	box-shadow: var(--shadow);
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.form-field {
	margin-bottom: 16px;
}

.form-field label {
	display: block;
	font-size: 0.88rem;
	font-weight: 600;
	margin-bottom: 7px;
}

.req {
	color: var(--accent);
}

.optional {
	color: var(--text-faint);
	font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	background: #ffffff;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 16px; /* prevents iOS zoom */
	padding: 11px 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field textarea {
	resize: vertical;
	min-height: 120px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(76, 61, 158, 0.2);
}

.form-field select {
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
	border-color: var(--danger);
}

.field-error {
	color: var(--danger);
	font-size: 0.82rem;
	margin: 6px 0 0;
}

.form-status {
	border-radius: var(--radius);
	padding: 13px 16px;
	margin-bottom: 18px;
	font-size: 0.94rem;
	border: 1px solid transparent;
}

.form-status.is-success {
	background: var(--gold-soft);
	border-color: rgba(212, 178, 138, 0.4);
	color: #7a5a28;
}

.form-status.is-error {
	background: rgba(201, 58, 46, 0.08);
	border-color: rgba(201, 58, 46, 0.35);
	color: var(--danger);
}

.form-privacy {
	color: var(--text-faint);
	font-size: 0.82rem;
}

.hp-field {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.btn[disabled] {
	opacity: 0.6;
	cursor: wait;
	transform: none;
}

/* ---------- Modal ---------- */
.modal {
	background: transparent;
	border: none;
	padding: 16px;
	width: 100%;
	max-width: 640px;
	max-height: 100dvh;
	overflow-y: auto;
}

.modal::backdrop {
	background: rgba(42, 36, 64, 0.45);
	backdrop-filter: blur(4px);
}

.modal-inner {
	position: relative;
	background: linear-gradient(180deg, var(--surface-2), var(--bg-alt));
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	padding: clamp(22px, 4vw, 36px);
	color: var(--text);
}

.modal-inner .lead-form {
	background: none;
	border: none;
	box-shadow: none;
	padding: 0;
}

.modal-title {
	font-size: 1.4rem;
	margin-bottom: 6px;
	padding-right: 36px;
}

.modal-sub {
	color: var(--text-muted);
	font-size: 0.95rem;
	margin-bottom: 22px;
}

.modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	background: rgba(42, 36, 64, 0.08);
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text-muted);
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.modal-close:hover {
	color: var(--text);
	border-color: var(--border-strong);
}

/* ---------- Internal pages ---------- */
.page-shell {
	padding-block: clamp(48px, 7vw, 80px);
}

.page-shell-flush {
	padding-bottom: 0;
}

.page-header {
	margin-bottom: clamp(28px, 4vw, 44px);
}

.page-title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-lede {
	color: var(--text-muted);
	font-size: 1.1rem;
	max-width: 62ch;
}

.entry-content h2 {
	font-size: 1.5rem;
	margin-top: 2em;
}

.entry-content h3 {
	font-size: 1.2rem;
	margin-top: 1.6em;
}

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content img {
	border-radius: var(--radius);
}

.entry-content li {
	margin-bottom: 0.4em;
	color: var(--text-muted);
}

.entry-content p {
	color: var(--text-muted);
}

.entry-thumb {
	margin: 0 0 32px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--border);
}

.breadcrumbs {
	margin-bottom: 24px;
	font-size: 0.85rem;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	color: var(--text-faint);
}

.breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 6px;
	color: var(--text-faint);
}

.breadcrumbs a {
	color: var(--text-muted);
}

.cta-panel {
	margin-top: 48px;
	text-align: center;
	background: linear-gradient(180deg, var(--surface), rgba(247, 244, 236, 0.9));
	border: 1px solid rgba(76, 61, 158, 0.35);
	border-radius: var(--radius-lg);
	padding: clamp(28px, 4vw, 44px);
	box-shadow: 0 0 40px rgba(76, 61, 158, 0.08);
}

.cta-panel h2 {
	margin-bottom: 8px;
}

.cta-panel p {
	color: var(--text-muted);
	max-width: 48ch;
	margin-inline: auto;
}

.error-404 {
	text-align: center;
	padding-block: clamp(48px, 9vw, 120px);
}

.error-code {
	font-family: var(--font-mono);
	color: var(--accent);
	letter-spacing: 0.2em;
	margin-bottom: 14px;
}

.error-404 .hero-ctas {
	justify-content: center;
}

.error-404 .page-lede {
	margin-inline: auto;
}

.post-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.post-meta {
	color: var(--text-faint);
	font-size: 0.85rem;
}

.pagination-nav {
	margin-top: 40px;
}

.pagination-nav .nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.pagination-nav .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text-muted);
}

.pagination-nav .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
	border-top: 1px solid var(--border);
	background: var(--bg-alt);
	padding-top: clamp(40px, 6vw, 64px);
	margin-top: 40px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: clamp(28px, 4vw, 48px);
	padding-bottom: 40px;
}

.footer-tagline {
	color: var(--text-muted);
	margin-top: 14px;
	max-width: 34ch;
}

.footer-social {
	display: flex;
	gap: 12px;
	margin-top: 8px;
}

.footer-social a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text-muted);
	transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-social a:hover {
	color: var(--text);
	border-color: var(--border-strong);
}

.footer-social .icon {
	width: 18px;
	height: 18px;
}

.footer-heading {
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--text-faint);
	margin-bottom: 16px;
}

.footer-menu,
.footer-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
	color: var(--text-muted);
	font-size: 0.95rem;
}

.footer-menu a,
.footer-contact-list a {
	color: var(--text-muted);
}

.footer-menu a:hover,
.footer-contact-list a:hover {
	color: var(--text);
	text-decoration: none;
}

.footer-bottom {
	border-top: 1px solid var(--border);
	padding-block: 20px;
	color: var(--text-faint);
	font-size: 0.85rem;
}

.footer-bottom p {
	margin: 0;
}

/* ---------- Reveal animation ---------- */
.reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* No-JS and reduced motion: everything visible, no movement. */
.no-js .reveal {
	opacity: 1;
	transform: none;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
	.process-list {
		grid-template-columns: repeat(2, 1fr);
	}
	.hero-grid {
		grid-template-columns: 1fr;
	}
	.hero-visual {
		max-width: 640px;
	}
}

@media (max-width: 900px) {
	.grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}
	.whyus-grid {
		grid-template-columns: 1fr;
	}
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	/* Mobile navigation */
	.nav-toggle {
		display: inline-flex;
	}
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		background: var(--bg-alt);
		border-bottom: 1px solid var(--border);
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
		padding: 16px clamp(16px, 4vw, 32px) 22px;
		box-shadow: var(--shadow);
	}
	.site-nav.is-open {
		display: flex;
	}
	.nav-menu {
		flex-direction: column;
		gap: 0;
	}
	.nav-menu a {
		padding: 12px 10px;
		font-size: 1.05rem;
		border-radius: 8px;
	}
	.nav-actions {
		flex-direction: column;
		align-items: stretch;
		margin-top: 8px;
	}
	.nav-actions .btn {
		width: 100%;
		padding: 13px 20px;
	}
}

@media (max-width: 640px) {
	.grid-3,
	.grid-4,
	.process-list,
	.form-row,
	.metrics-grid {
		grid-template-columns: 1fr;
	}
	.footer-grid {
		grid-template-columns: 1fr;
	}
	.hero-ctas .btn {
		width: 100%;
	}
	.card-footer {
		flex-direction: column;
		align-items: stretch;
	}
	.card-footer .btn {
		width: 100%;
	}
	.pricing-amount {
		font-size: 1.8rem;
	}
	.modal {
		padding: 10px;
	}
}

/* ---------- Contact assistant chat widget ---------- */
.chat-widget {
	position: fixed;
	right: clamp(14px, 3vw, 28px);
	bottom: clamp(14px, 3vw, 28px);
	z-index: 150;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.chat-toggle {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 13px 20px;
	font-family: var(--font-sans);
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 24px rgba(76, 61, 158, 0.35);
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.chat-toggle:hover {
	background: var(--accent-strong);
	transform: translateY(-1px);
}

.chat-toggle .icon {
	width: 20px;
	height: 20px;
}

.chat-panel[hidden] {
	display: none;
}

.chat-panel {
	width: min(360px, calc(100vw - 28px));
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-lg);
	box-shadow: 0 16px 50px rgba(42, 36, 64, 0.25);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.chat-header {
	position: relative;
	background: var(--accent);
	color: #fff;
	padding: 14px 44px 12px 18px;
}

.chat-title {
	margin: 0;
	font-weight: 700;
	font-size: 1rem;
}

.chat-subtitle {
	margin: 0;
	font-size: 0.8rem;
	opacity: 0.85;
}

.chat-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	border-radius: 7px;
	color: #fff;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
}

.chat-close:hover {
	background: rgba(255, 255, 255, 0.28);
}

.chat-messages {
	max-height: min(44vh, 380px);
	min-height: 140px;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--bg);
}

.chat-msg {
	max-width: 85%;
	padding: 9px 13px;
	border-radius: 14px;
	font-size: 0.92rem;
	line-height: 1.45;
}

.chat-msg-bot {
	align-self: flex-start;
	background: var(--surface);
	border: 1px solid var(--border);
	border-bottom-left-radius: 4px;
	color: var(--text);
}

.chat-msg-user {
	align-self: flex-end;
	background: var(--accent);
	color: #fff;
	border-bottom-right-radius: 4px;
}

.chat-msg a {
	color: inherit;
	text-decoration: underline;
}

.chat-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 16px 14px;
	background: var(--bg);
}

.chat-quick:empty {
	display: none;
}

.chat-quick button {
	background: var(--surface);
	border: 1px solid rgba(76, 61, 158, 0.4);
	color: var(--accent);
	border-radius: 999px;
	padding: 7px 14px;
	font-family: var(--font-sans);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.chat-quick button:hover {
	background: var(--accent);
	color: #fff;
}

.chat-input-row[hidden] {
	display: none;
}

.chat-input-row {
	display: flex;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid var(--border);
	background: var(--surface);
}

.chat-input-row input {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	padding: 9px 12px;
	font-family: var(--font-sans);
	font-size: 16px;
	background: #fff;
	color: var(--text);
}

.chat-input-row input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(76, 61, 158, 0.15);
}

.chat-send {
	padding: 9px 16px;
}

@media (max-width: 480px) {
	.chat-panel {
		width: calc(100vw - 28px);
	}
	.chat-toggle-label {
		display: none;
	}
	.chat-toggle {
		padding: 15px;
	}
}

/* ---------- Editable rich-text blocks ---------- */
/* Process and Why-Us descriptions are post content now, so they arrive
   wrapped in <p>. Keep the original single-paragraph spacing. */
.process-desc > :first-child,
.whyus-desc > :first-child {
	margin-top: 0;
}

.process-desc > :last-child,
.whyus-desc > :last-child {
	margin-bottom: 0;
}
