/* =========================================================================
   Factora Homepage — uses tokens from /templates/style.css
   ========================================================================= */

:root {
	--hp-max: 1200px;
	--hp-max-narrow: 960px;
	--hp-section-y: 96px;
	--hp-section-y-tight: 64px;

	--accent: var(--brand-teal);
	--accent-hover: var(--brand-teal-hover);
	--accent-press: var(--brand-teal-press);
	--accent-soft: var(--brand-teal-soft);
	--accent-tint: var(--brand-teal-tint);

	--warm: #d97a4a;
	--warm-soft: #fdeee5;
	--warm-tint: #fbf2eb;
}

html, body { background: #ffffff; }

.hp-wrap {
	width: 100%;
	max-width: var(--hp-max);
	margin: 0 auto;
	padding: 0 28px;
	box-sizing: border-box;
}
.hp-wrap--narrow { max-width: var(--hp-max-narrow); }


/* ===== Top nav ===== */
.hp-nav {
	position: sticky; top: 0; z-index: 30;
	background: #ffffff;
	border-bottom: 1px solid var(--border-soft);
}
.hp-nav.is-dark {
	background: #0a1a35;
	border-bottom: 1px solid rgba(255,255,255,0.08);
	color: #fff;
}
.hp-nav__inner {
	display: flex; align-items: center; gap: 24px;
	height: 64px;
}
.hp-nav__brand {
	display: flex; align-items: center; gap: 10px;
	text-decoration: none;
	color: inherit;
	font-weight: 700;
	font-size: 17px;
	letter-spacing: -0.3px;
}
.hp-nav__brand-mark { width: 24px; height: 24px; }
.hp-nav__links {
	display: flex; align-items: center; gap: 4px;
	margin-left: 24px;
}
.hp-nav__link {
	font-size: 13.5px;
	font-weight: 500;
	color: var(--ink-mid);
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 8px;
	transition: color var(--t-base), background var(--t-base);
	display: inline-flex; align-items: center; gap: 6px;
}
.hp-nav__link:hover { color: var(--ink-navy); }
.hp-nav.is-dark .hp-nav__link { color: rgba(255,255,255,0.65); }
.hp-nav.is-dark .hp-nav__link:hover { color: #fff; }
.hp-nav__chip {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	padding: 2px 6px;
	border-radius: 999px;
	background: var(--surface-field);
	color: var(--ink-mid);
}
.hp-nav.is-dark .hp-nav__chip {
	background: rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.55);
}
.hp-nav__spacer { flex: 1; }
.hp-nav__actions { display: flex; align-items: center; gap: 10px; }
.hp-nav__signin {
	font-size: 13.5px; font-weight: 500;
	color: var(--ink-navy);
	text-decoration: none;
	padding: 8px 12px;
}
.hp-nav.is-dark .hp-nav__signin { color: rgba(255,255,255,0.78); }
.hp-nav.is-dark .hp-nav__signin:hover { color: #fff; }


/* ===== Buttons ===== */
.hp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 14px;
	border: none;
	border-radius: 999px;
	padding: 11px 20px;
	cursor: pointer;
	text-decoration: none;
	letter-spacing: 0.1px;
	transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
	white-space: nowrap;
}
.hp-btn--primary { background: var(--accent); color: #fff; }
.hp-btn--primary:hover  { background: var(--accent-hover); }
.hp-btn--primary:active { background: var(--accent-press); }

.hp-btn--outline {
	background: transparent;
	color: var(--ink-navy);
	border: 1px solid var(--border-input);
}
.hp-btn--outline:hover { border-color: var(--ink-navy); }
.hp-btn--outline.on-dark {
	color: #fff;
	border-color: rgba(255,255,255,0.22);
}
.hp-btn--outline.on-dark:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.04); }

.hp-btn--lg { padding: 14px 26px; font-size: 15px; }


/* ===== Section primitives ===== */
.hp-section {
	padding: var(--hp-section-y) 0;
	position: relative;
	scroll-margin-top: 80px;
}
.hp-section--tight { padding: var(--hp-section-y-tight) 0; }
.hp-section--page  { background: var(--surface-page); }
.hp-section--field { background: var(--surface-field); }
.hp-section--dark  { background: var(--ink-navy); color: #fff; }

.hp-eyebrow {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: var(--accent-press);
	margin: 0 0 14px;
	display: inline-flex; align-items: center; gap: 8px;
	white-space: nowrap;
}
.hp-eyebrow::before {
	content: "";
	width: 18px; height: 1.5px;
	background: var(--accent-press);
	display: inline-block;
}
.hp-eyebrow.on-dark { color: var(--accent); }
.hp-eyebrow.on-dark::before { background: var(--accent); }

.hp-h2 {
	font-size: 40px;
	font-weight: 700;
	letter-spacing: -0.8px;
	line-height: 1.1;
	color: var(--ink-navy);
	margin: 0 0 16px;
	text-wrap: balance;
}
.hp-h2.on-dark { color: #fff; }

.hp-lede {
	font-size: 17px;
	line-height: 1.55;
	color: var(--ink-mid);
	margin: 0;
	max-width: 56ch;
	text-wrap: pretty;
}
.hp-lede.on-dark { color: rgba(255,255,255,0.7); }


/* ===== Hero (dark, bold variant) ===== */
.hero {
	position: relative;
	background: url('/assets/images/hero_background.webp') center / cover no-repeat, #0a1a35;
	color: #fff;
	padding: 120px 0 96px;
	overflow: hidden;
}
/* Legibility scrim over the photo: darken the centre where the headline sits,
   and gently deepen the top/bottom, while leaving the network visible at the edges. */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 62% 68% at 50% 50%, rgba(8,19,39,0.78) 0%, rgba(8,19,39,0.28) 46%, rgba(8,19,39,0) 72%),
		linear-gradient(180deg, rgba(10,26,53,0.5) 0%, rgba(8,19,39,0.12) 38%, rgba(8,19,39,0.55) 100%);
	pointer-events: none;
}
.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr;
	gap: 36px;
	align-items: center;
	text-align: center;
}
.hero__beta {
	display: inline-flex; align-items: center;
	gap: 10px;
	white-space: nowrap;
	padding: 5px 14px 5px 5px;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 999px;
	font-size: 12px;
	color: rgba(255,255,255,0.85);
	font-weight: 500;
	margin: 0 auto 32px;
	backdrop-filter: blur(6px);
}
.hero__beta-tag {
	display: inline-flex; align-items: center;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--brand-teal);
	color: #0d1f3c;
}

.hero__h1 {
	font-size: clamp(48px, 6.6vw, 96px);
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: -2.5px;
	color: rgba(255,255,255,0.55);
	margin: 0 auto 30px;
	max-width: 16ch;
	text-wrap: balance;
}
.hero__h1-row { display: block; }
.hero__h1-row--1 { color: rgba(255,255,255,0.4); }
.hero__h1-row--2 { color: rgba(255,255,255,0.7); }
.hero__h1-row--3 { color: #ffffff; }
.hero__h1 em {
	font-style: italic;
	font-weight: 500;
	color: var(--brand-teal);
	position: relative;
}
.hero__h1 strong {
	font-weight: 700;
	color: #fff;
	font-style: normal;
	position: relative;
	display: inline-block;
	isolation: isolate;
}
.hero__h1 strong::after {
	content: "";
	position: absolute;
	left: -0.04em; right: -0.04em;
	bottom: 0.08em;
	height: 0.16em;
	background: var(--brand-teal);
	border-radius: 999px;
	z-index: -1;
	opacity: 0.9;
}
.hero__h1-dots {
	color: var(--brand-teal);
	font-weight: 600;
	letter-spacing: 0;
}

.hero__lede {
	font-size: clamp(17px, 1.5vw, 20px);
	line-height: 1.5;
	color: rgba(255,255,255,0.7);
	margin: 0 auto 36px;
	max-width: 56ch;
	text-wrap: pretty;
}
.hero__ctas {
	display: flex; gap: 12px;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 18px;
}
.hero__micro {
	display: inline-flex; align-items: center; gap: 16px;
	font-size: 12.5px;
	color: rgba(255,255,255,0.55);
	justify-content: center;
	flex-wrap: wrap;
}
.hero__micro-dot {
	display: inline-block;
	width: 5px; height: 5px;
	border-radius: 50%;
	background: var(--brand-teal);
}

.hero__demo {
	position: relative;
	z-index: 2;
	margin-top: 56px;
	max-width: 1180px;
	margin-inline: auto;
}
.hero__demo .demo {
	box-shadow:
		0 60px 120px -40px rgba(0,0,0,0.6),
		0 0 0 1px rgba(255,255,255,0.04);
}


/* ===== Works-with strip ===== */
.works {
	background: #0d1f3c;
	border-top: 1px solid rgba(255,255,255,0.05);
	padding: 26px 0;
}
.works__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 28px;
}
.works__label {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: rgba(255,255,255,0.4);
}
.works__chip {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: rgba(255,255,255,0.7);
	letter-spacing: -0.1px;
}


/* ===== Demo (interactive product preview) ===== */
.demo {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--border-soft);
}
.demo__chrome {
	display: flex; align-items: center; gap: 16px;
	padding: 12px 16px;
	background: var(--surface-field);
	border-bottom: 1px solid var(--border-soft);
}
.demo__chrome-lights { display: inline-flex; gap: 6px; }
.demo__chrome-lights span { width: 11px; height: 11px; border-radius: 50%; }
.demo__chrome-lights span:nth-child(1) { background: #f0a59a; }
.demo__chrome-lights span:nth-child(2) { background: #f3d089; }
.demo__chrome-lights span:nth-child(3) { background: #a5d4a4; }
.demo__chrome-url {
	flex: 1;
	background: #fff;
	border: 1px solid var(--border-soft);
	border-radius: 8px;
	padding: 5px 12px;
	font-size: 12px;
	color: var(--ink-mid);
	font-family: var(--font-mono);
	max-width: 360px;
}
.demo__chrome-actions { margin-left: auto; }
.demo__reset {
	font-family: var(--font-sans);
	font-size: 11.5px; font-weight: 600;
	color: var(--ink-mid);
	background: transparent; border: none;
	padding: 5px 10px; border-radius: 6px; cursor: pointer;
	text-transform: uppercase; letter-spacing: 0.5px;
	transition: color var(--t-base), background var(--t-base);
}
.demo__reset:hover { color: var(--ink-navy); background: rgba(13,31,60,0.04); }

.demo__board {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr 1.1fr;
	min-height: 580px;
}
.demo__panel {
	display: flex; flex-direction: column;
	border-right: 1px solid var(--border-soft);
	min-width: 0;
	background: #fff;
}
.demo__panel:last-child { border-right: none; }
.demo__panel--bundle { background: #0d1f3c; color: rgba(255,255,255,0.92); }
.demo__panel--chat   { background: var(--surface-page); }

.demo__panel-head {
	display: flex; align-items: flex-start; justify-content: space-between;
	padding: 18px 20px 14px;
	border-bottom: 1px solid var(--border-soft);
	gap: 12px;
}
.demo__panel--bundle .demo__panel-head { border-bottom-color: rgba(255,255,255,0.08); }
.demo__panel-eyebrow {
	font-size: 10px; font-weight: 700;
	letter-spacing: 1px; text-transform: uppercase;
	color: var(--ink-mid); margin-bottom: 4px;
}
.demo__panel--bundle .demo__panel-eyebrow { color: rgba(255,255,255,0.45); }
.demo__panel-title {
	font-size: 15px; font-weight: 700;
	color: var(--ink-navy); letter-spacing: -0.1px;
}
.demo__panel--bundle .demo__panel-title { color: #fff; }
.demo__panel-aside { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }

.demo__active-count {
	font-size: 11px; font-weight: 700;
	background: var(--accent);
	color: #fff;
	padding: 2px 8px; border-radius: 999px;
	letter-spacing: 0.3px;
}
.demo__linkbtn {
	font: 600 11px var(--font-sans);
	text-transform: uppercase; letter-spacing: 0.6px;
	color: var(--ink-mid);
	background: transparent; border: none; cursor: pointer;
	padding: 2px 4px;
}
.demo__linkbtn:hover { color: var(--ink-navy); }
.demo__tag {
	font-size: 9.5px; font-weight: 700;
	letter-spacing: 0.8px; text-transform: uppercase;
	color: rgba(255,255,255,0.55);
	border: 1px solid rgba(255,255,255,0.18);
	padding: 2px 6px; border-radius: 4px;
}
.demo__quality {
	font-size: 9.5px; font-weight: 700;
	letter-spacing: 0.8px; text-transform: uppercase;
	padding: 3px 8px; border-radius: 999px;
}
.demo__quality.is-weak   { background: #fbe7e4; color: #a83121; }
.demo__quality.is-strong { background: var(--brand-teal-tint); color: var(--brand-teal-press); }

/* Panel 1 — facts */
.demo__persona-row {
	display: flex; align-items: center; gap: 10px;
	padding: 12px 20px 10px;
	border-bottom: 1px solid var(--border-soft);
}
.demo__persona-label {
	font-size: 10px; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.7px;
	color: var(--ink-mid);
}
.demo__persona-pills {
	display: inline-flex;
	background: var(--surface-field);
	padding: 3px; border-radius: 999px;
	border: 1px solid var(--border-soft);
}
.demo__persona-pill {
	font: 600 11.5px var(--font-sans);
	background: transparent; border: none;
	padding: 5px 11px; border-radius: 999px;
	cursor: pointer; color: var(--ink-mid);
	transition: background var(--t-base), color var(--t-base);
}
.demo__persona-pill:hover { color: var(--ink-navy); }
.demo__persona-pill.is-active {
	background: #fff; color: var(--ink-navy);
	box-shadow: 0 1px 3px rgba(13,31,60,0.08);
}
.demo__facts {
	flex: 1; overflow-y: auto;
	padding: 14px 20px 12px;
	display: flex; flex-direction: column; gap: 14px;
}
.demo__fact-group { display: flex; flex-direction: column; gap: 6px; }
.demo__fact-group-label {
	font-size: 9.5px; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.8px;
	color: var(--ink-mid);
	padding-left: 2px; margin-top: 2px;
}
.demo-fact {
	display: flex; align-items: flex-start; gap: 10px;
	padding: 9px 11px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 10px;
	cursor: pointer; text-align: left;
	font-family: var(--font-sans);
	color: var(--ink-navy);
	transition: background var(--t-base), border-color var(--t-base);
}
.demo-fact:hover { background: var(--surface-field); }
.demo-fact.is-on { background: var(--brand-teal-tint); border-color: rgba(0,191,178,0.25); }
.demo-fact.is-on:hover { background: #d8f3ef; }
.demo-fact__check {
	width: 16px; height: 16px; border-radius: 5px;
	border: 1.5px solid var(--border-input);
	background: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	margin-top: 1px; flex-shrink: 0;
	transition: background var(--t-base), border-color var(--t-base);
}
.demo-fact.is-on .demo-fact__check {
	background: var(--accent);
	border-color: var(--accent);
}
.demo-fact__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.demo-fact__label {
	font-size: 12px; font-weight: 600;
	color: var(--ink-navy); letter-spacing: -0.05px;
}
.demo-fact__text {
	font-size: 12px; color: var(--ink-mid); line-height: 1.45;
}
.demo-fact.is-on .demo-fact__text { color: #1c4946; }
.demo__hint {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 20px 14px;
	font-size: 11.5px; color: var(--ink-mid);
	border-top: 1px solid var(--border-soft);
}
.demo__hint-dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px rgba(0,191,178,0.18);
	animation: demo-pulse 1.8s ease-in-out infinite;
}
@keyframes demo-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(0,191,178,0.4); }
	50%      { box-shadow: 0 0 0 6px rgba(0,191,178,0.05); }
}

/* Panel 2 — bundle */
.demo-bundle { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.demo-bundle__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px 20px;
	border-bottom: 1px solid rgba(255,255,255,0.06);
}
.demo-bundle__filename {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-mono); font-size: 12px;
	color: rgba(255,255,255,0.78);
}
.demo-bundle__meta {
	font-family: var(--font-mono); font-size: 10.5px;
	color: rgba(255,255,255,0.45);
}
.demo-bundle__body {
	flex: 1; overflow-y: auto;
	padding: 16px 20px 20px;
	font-family: var(--font-mono); font-size: 12.5px;
	line-height: 1.6;
}
.demo-bundle__block { margin-bottom: 14px; animation: demo-fade 0.32s ease both; }
.demo-bundle__block:last-child { margin-bottom: 0; }
.demo-bundle__tag {
	color: var(--accent);
	font-weight: 700; font-size: 11.5px;
	margin-bottom: 2px;
}
.demo-bundle__line {
	color: rgba(255,255,255,0.85);
	padding-left: 8px; margin-top: 2px;
}
.demo-bundle__line--prompt {
	color: #fff;
	background: rgba(0,191,178,0.10);
	border-left: 2px solid var(--accent);
	padding: 6px 10px; border-radius: 0 4px 4px 0;
	margin-top: 4px;
}
@keyframes demo-fade {
	from { opacity: 0; transform: translateY(2px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Panel 3 — chat */
.demo-chat {
	flex: 1;
	padding: 16px 18px 20px;
	display: flex; flex-direction: column; gap: 12px;
	overflow-y: auto;
}
.demo-chat__msg { display: flex; gap: 10px; align-items: flex-start; }
.demo-chat__avatar {
	width: 26px; height: 26px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 10px; font-weight: 700;
	letter-spacing: 0.5px; text-transform: uppercase;
	flex-shrink: 0;
}
.demo-chat__avatar--user { background: var(--ink-navy); color: #fff; }
.demo-chat__avatar--ai   { background: var(--accent); color: #fff; }
.demo-chat__bubble {
	border-radius: 14px;
	padding: 12px 14px;
	font-size: 13px; line-height: 1.55;
	max-width: 100%; flex: 1;
}
.demo-chat__bubble--user {
	background: #fff;
	border: 1px solid var(--border-soft);
	color: var(--ink-navy);
	font-weight: 500;
	max-width: 82%;
}
.demo-chat__bubble--ai {
	background: #fff;
	border: 1px solid var(--border-soft);
	box-shadow: var(--shadow-card);
	animation: demo-fade 0.4s ease both;
}
.demo-chat__bubble.is-weak   { border-color: var(--state-danger-border); }
.demo-chat__bubble.is-strong { border-color: rgba(0,191,178,0.3); }
.demo-chat__header {
	font-size: 11px; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.8px;
	color: var(--ink-mid);
	margin-bottom: 8px; padding-bottom: 8px;
	border-bottom: 1px dashed var(--border-soft);
}
.demo-chat__greeting { font-weight: 600; margin-bottom: 6px; color: var(--ink-navy); }
.demo-chat__para {
	margin: 0 0 8px;
	font-size: 12.5px; color: var(--ink-navy);
	line-height: 1.55;
}
.demo-chat__para:last-of-type { margin-bottom: 0; }
.demo-chat__metric {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 11.5px;
	background: var(--brand-teal-tint);
	color: var(--brand-teal-press);
	padding: 6px 10px; border-radius: 6px;
	margin: 4px 0 8px;
	font-weight: 600; letter-spacing: 0.2px;
}
.demo-chat__footnote {
	margin-top: 12px; padding-top: 10px;
	border-top: 1px solid var(--border-soft);
	font-size: 11px; color: var(--brand-teal-press);
	font-style: italic; line-height: 1.5;
}
.demo-chat__footnote.is-weak { color: #a83121; }


/* ===== Section heads ===== */
.sec-head { margin-bottom: 48px; max-width: 720px; }
.sec-head--center { text-align: center; margin-inline: auto; }


/* ===== Intro row (two columns) ===== */
.intro__grid {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 56px;
	align-items: start;
}
.intro__lead p {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.3px;
	color: var(--ink-navy);
	text-wrap: balance;
}
.intro__body p {
	margin: 0 0 18px;
	font-size: 17px;
	line-height: 1.65;
	color: rgba(13, 31, 60, 0.78);
}
.intro__body p:last-child { margin-bottom: 0; }
@media (max-width: 820px) {
	.intro__grid { grid-template-columns: 1fr; gap: 20px; }
	.intro__lead p { font-size: 21px; }
}


/* ===== Value cards (lean homepage) ===== */
.valueGrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.valueCard {
	background: #fff;
	border: 1px solid var(--border-soft);
	border-radius: 14px;
	padding: 32px 28px;
	transition: transform var(--t-base), box-shadow var(--t-base);
}
.valueCard:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-card);
}
.valueCard__title {
	font-size: 20px;
	font-weight: 700;
	color: var(--ink-navy);
	letter-spacing: -0.3px;
	margin: 0 0 12px;
}
.valueCard__body {
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink-mid);
	margin: 0;
}
@media (max-width: 820px) {
	.valueGrid { grid-template-columns: 1fr; }
}


/* ===== Problem ===== */
.prob-head {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 56px;
	align-items: end;
	margin-bottom: 48px;
}
.prob-head .hp-h2 { max-width: 18ch; }

.prob-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.prob-card {
	background: #fff;
	border: 1px solid rgba(217,122,74,0.18);
	border-radius: 14px;
	padding: 28px 26px;
	display: flex;
	flex-direction: column;
	transition: transform var(--t-base), box-shadow var(--t-base);
}
.prob-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-card);
}
.prob-card__quote {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ink-navy);
	letter-spacing: -0.3px;
	text-wrap: balance;
}
.prob-card__quote span { color: var(--accent); margin: 0 1px; font-weight: 700; }
.prob-card__divider {
	width: 36px;
	height: 2px;
	background: var(--warm);
	margin: 22px 0 18px;
}
.prob-card__label {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #b45a2a;
	margin-bottom: 8px;
}
.prob-card__body {
	font-size: 14px;
	line-height: 1.55;
	color: var(--ink-mid);
	margin: 0;
}

.hp-section--problem {
	background: var(--warm-tint);
}
.hp-section--problem .hp-eyebrow { color: #b45a2a; }
.hp-section--problem .hp-eyebrow::before { background: #b45a2a; }


/* ===== How it works ===== */
.step-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	position: relative;
}
.step-grid::before {
	content: "";
	position: absolute;
	top: 64px;
	left: 14%;
	right: 14%;
	height: 1px;
	background: repeating-linear-gradient(to right, var(--border-input) 0 4px, transparent 4px 10px);
	z-index: 0;
}
.step-card {
	background: #fff;
	border: 1px solid var(--border-soft);
	border-radius: 14px;
	padding: 32px 28px 28px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: relative;
	z-index: 1;
}
.step-card__num {
	font-size: 11px;
	font-weight: 700;
	color: var(--accent-press);
	letter-spacing: 1.2px;
	text-transform: uppercase;
}
.step-card__glyph {
	color: var(--ink-navy);
	width: 56px; height: 56px;
	background: var(--surface-field);
	border-radius: 14px;
	display: inline-flex; align-items: center; justify-content: center;
}
.step-card__title {
	font-size: 19px;
	font-weight: 700;
	color: var(--ink-navy);
	letter-spacing: -0.3px;
	margin: 4px 0 0;
}
.step-card__body {
	font-size: 14px;
	line-height: 1.55;
	color: var(--ink-mid);
	margin: 0;
}


/* ===== Use cases (dark section) ===== */
.hp-section--cases {
	background: var(--ink-navy);
}
.hp-section--cases .hp-h2 { color: #fff; }
.hp-section--cases .hp-eyebrow { color: var(--brand-teal); }
.hp-section--cases .hp-eyebrow::before { background: var(--brand-teal); }

.cases {
	display: grid;
	grid-template-columns: 1fr 1.6fr;
	gap: 28px;
	align-items: stretch;
}
.cases__list {
	display: flex; flex-direction: column; gap: 8px;
}
.cases__tab {
	text-align: left;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 12px;
	padding: 16px 18px;
	font-family: var(--font-sans);
	cursor: pointer;
	display: flex; flex-direction: column; gap: 4px;
	color: #fff;
	transition: background var(--t-base), border-color var(--t-base);
}
.cases__tab:hover { background: rgba(255,255,255,0.05); }
.cases__tab.is-active {
	background: rgba(255,255,255,0.06);
	border-color: rgba(255,255,255,0.12);
}
.cases__tab-role { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; color: #fff; }
.cases__tab-who  { font-size: 13px; color: rgba(255,255,255,0.5); }

.cases__panel {
	background: #fff;
	border-radius: 16px;
	border: 1px solid var(--border-soft);
	padding: 44px 44px 36px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 36px;
	position: relative;
	overflow: hidden;
	animation: case-fade 0.36s ease;
}
@keyframes case-fade {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}
.cases__panel--teal { background: linear-gradient(180deg, var(--brand-teal-tint) 0%, #fff 100%); border-color: rgba(0,191,178,0.2); }
.cases__panel--warm { background: linear-gradient(180deg, var(--warm-tint) 0%, #fff 100%); border-color: rgba(217,122,74,0.18); }
.cases__panel--navy { background: linear-gradient(180deg, #eef2f7 0%, #fff 100%); border-color: var(--border-soft); }

.cases__quote {
	font-size: 26px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink-navy);
	letter-spacing: -0.4px;
	text-wrap: balance;
	position: relative;
	padding-left: 4px;
}
.cases__qmark {
	position: absolute;
	top: -16px;
	left: -8px;
	font-size: 60px;
	color: var(--accent);
	font-weight: 700;
	line-height: 1;
}
.cases__panel-foot { display: flex; flex-direction: column; gap: 14px; }
.cases__facts-label {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--ink-mid);
}
.cases__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.cases__fact-chip {
	font-size: 12.5px;
	font-weight: 500;
	padding: 6px 12px;
	background: #fff;
	border: 1px solid var(--border-soft);
	border-radius: 999px;
	color: var(--ink-navy);
}


/* ===== Before / After ===== */
.ba-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: stretch;
}
.ba-card {
	background: #fff;
	border-radius: 16px;
	border: 1px solid var(--border-soft);
	padding: 28px 30px 24px;
	display: flex; flex-direction: column;
	gap: 14px;
}
.ba-card--after {
	border-color: rgba(0,191,178,0.32);
	box-shadow: 0 16px 40px -22px rgba(0,191,178,0.4);
	position: relative;
}
.ba-card--after::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 16px;
	pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(0,191,178,0.08);
}
.ba-card__head {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px;
}
.ba-card__pill {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 999px;
}
.ba-card__pill--before { background: #f1efee; color: #6b6863; }
.ba-card__pill--after  { background: var(--brand-teal-tint); color: var(--brand-teal-press); }
.ba-card__meta {
	font-size: 11.5px;
	color: var(--ink-mid);
	font-family: var(--font-mono);
}
.ba-card__prompt {
	font-family: var(--font-mono);
	font-size: 13px;
	background: var(--surface-field);
	border: 1px solid var(--border-soft);
	border-radius: 8px;
	padding: 10px 12px;
	color: var(--ink-navy);
}
.ba-card__body {
	display: flex; flex-direction: column; gap: 10px;
	margin: 4px 0;
}
.ba-card__body p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ink-navy);
}
.ba-card--before .ba-card__body p { color: #6b6863; }
.ba-card__faults, .ba-card__wins {
	list-style: none;
	margin: 0; padding: 14px 0 0;
	border-top: 1px dashed var(--border-soft);
	display: flex; flex-direction: column; gap: 7px;
	font-size: 12.5px;
}
.ba-card__faults li, .ba-card__wins li {
	display: flex; align-items: center; gap: 10px;
	color: var(--ink-mid);
}
.ba-card__fault-dot, .ba-card__win-dot {
	width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.ba-card__fault-dot { background: #c0392b; opacity: 0.6; }
.ba-card__win-dot   { background: var(--accent); }


/* ===== FAQ ===== */
.faq {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--border-soft);
}
.faq__item {
	border-bottom: 1px solid var(--border-soft);
}
.faq__q {
	background: transparent;
	border: none;
	padding: 22px 4px;
	font-family: var(--font-sans);
	font-size: 17px;
	font-weight: 600;
	color: var(--ink-navy);
	letter-spacing: -0.2px;
	width: 100%;
	text-align: left;
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px;
	cursor: pointer;
	transition: color var(--t-base);
}
.faq__q:hover { color: var(--accent); }
.faq__chev {
	width: 26px; height: 26px;
	border-radius: 50%;
	background: var(--surface-field);
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--ink-navy);
	transition: transform var(--t-base), background var(--t-base);
	flex-shrink: 0;
}
.faq__item.is-open .faq__chev {
	transform: rotate(180deg);
	background: var(--brand-teal-tint);
	color: var(--accent-press);
}
.faq__a-wrap {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows var(--t-slow);
}
.faq__item.is-open .faq__a-wrap {
	grid-template-rows: 1fr;
}
.faq__a-wrap > .faq__a {
	min-height: 0;
	overflow: hidden;
	margin: 0;
	padding: 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--ink-mid);
	max-width: 64ch;
}
.faq__item.is-open .faq__a-wrap > .faq__a {
	padding: 0 36px 22px 0;
}


/* ===== Final CTA card ===== */
.cta-card {
	border-radius: 20px;
	padding: 56px 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
	background: #11264a;
	border: 1px solid rgba(255,255,255,0.05);
}
.cta-card__copy { max-width: 540px; }
.cta-card__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }


/* ===== Footer ===== */
.hp-footer {
	background: var(--ink-navy);
	color: rgba(255,255,255,0.65);
	padding: 64px 0 36px;
}
.hp-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 48px;
	margin-bottom: 48px;
}
.hp-footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 280px; }
.hp-footer__brand-row { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; }
.hp-footer__brand-text { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.55); }
.hp-footer__heading {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: rgba(255,255,255,0.5);
	margin: 0 0 16px;
}
.hp-footer__list { display: flex; flex-direction: column; gap: 10px; }
.hp-footer__link {
	font-size: 13.5px;
	color: rgba(255,255,255,0.65);
	text-decoration: none;
	transition: color var(--t-base);
	display: inline-flex; align-items: center; gap: 8px;
}
.hp-footer__link:hover { color: #fff; }
.hp-footer__chip {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	padding: 2px 6px;
	border-radius: 999px;
	background: rgba(255,255,255,0.1);
	color: rgba(255,255,255,0.55);
}
.hp-footer__rule {
	border-top: 1px solid rgba(255,255,255,0.08);
	padding-top: 24px;
	display: flex; justify-content: space-between; align-items: center;
	font-size: 12px;
	color: rgba(255,255,255,0.4);
}


/* ===== Responsive ===== */
@media (max-width: 880px) {
	.demo__board { grid-template-columns: 1fr; min-height: unset; }
	.demo__panel { border-right: none; border-bottom: 1px solid var(--border-soft); }
	.demo__panel:last-child { border-bottom: none; }
}

@media (max-width: 820px) {
	.prob-head { grid-template-columns: 1fr; gap: 16px; }
	.prob-grid { grid-template-columns: 1fr; }
	.step-grid { grid-template-columns: 1fr; }
	.step-grid::before { display: none; }
	.cases { grid-template-columns: 1fr; }
	.ba-grid { grid-template-columns: 1fr; }
	.cta-card { padding: 40px 28px; }
	.cta-card__actions { width: 100%; }
	.hp-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
	.hp-nav__links { display: none; }
	.hp-h2 { font-size: 32px; }
	.hero { padding: 80px 0 64px; }
	.hp-section { padding: 64px 0; }
	.hp-footer__grid { grid-template-columns: 1fr; }
}
