/* IsoHarbor public site + portal styles. Tokens: branding/DESIGN.md */
@font-face {
	font-family: 'Plus Jakarta Sans';
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url('/static/fonts/plus-jakarta-sans-latin-wght.woff2') format('woff2');
}

:root {
	--bg: #f6f9fc;
	--surface: #ffffff;
	--surface-2: #eef3f8;
	--border: #d5e0eb;
	--text: #001d3f;
	--muted: #4a6078;
	--primary: #001d3f;
	--on-primary: #ffffff;
	--accent: #0891b2;
	--accent-text: #0e7490; /* accent for small text on light: 5.4:1 */
	--success: #15803d;
	--danger: #b91c1c;
	--warning: #92400e;
	--ring: #0891b2;
	--shadow: 0 1px 2px rgb(0 29 63 / 0.06), 0 8px 24px rgb(0 29 63 / 0.07);
	--shadow-lg: 0 24px 60px -20px rgb(0 29 63 / 0.25);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--radius: 14px;
	color-scheme: light;
}
[data-theme='dark'] {
	--bg: #06111f;
	--surface: #0b1b30;
	--surface-2: #102440;
	--border: #1b3350;
	--text: #e8f1f8;
	--muted: #9db3c8;
	--primary: #00b4d8;
	--on-primary: #031528;
	--accent: #00d4f5;
	--accent-text: #00d4f5;
	--success: #4ade80;
	--danger: #f87171;
	--warning: #fbbf24;
	--ring: #00d4f5;
	--shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 8px 24px rgb(0 0 0 / 0.3);
	--shadow-lg: 0 24px 60px -20px rgb(0 0 0 / 0.6);
	color-scheme: dark;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img,
svg {
	max-width: 100%;
}
.i {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}
h1,
h2,
h3,
h4 {
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
}
h1 {
	font-size: clamp(1.9rem, 4vw, 2.5rem);
}
h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
}
p {
	margin: 0 0 1em;
}
a {
	color: var(--accent-text);
	text-underline-offset: 3px;
	transition: color 150ms var(--ease);
}
a:hover {
	color: var(--text);
}
:focus-visible {
	outline: 2px solid var(--ring);
	outline-offset: 3px;
	border-radius: 6px;
}
.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--surface);
	color: var(--text);
	box-shadow: var(--shadow);
}
.skip-link:focus {
	top: 12px;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wrap {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding-inline: 20px;
}
.page .wrap {
	max-width: 1000px;
	padding-block: 40px 64px;
}

/* ---- logo swap (never inverted) ---- */
.logo-img {
	display: block;
	height: 36px;
	width: auto;
}
.theme-dark-only {
	display: none !important;
}
[data-theme='dark'] .theme-dark-only {
	display: block !important;
}
[data-theme='dark'] .theme-light-only {
	display: none !important;
}

/* ---- header ---- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid transparent;
	transition:
		border-color 200ms var(--ease),
		background-color 200ms var(--ease);
}
.site-header.scrolled {
	border-bottom-color: var(--border);
}
.site-header .wrap {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 72px;
}
.brand {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-right: auto;
}
.nav-links {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 10px;
	color: var(--muted);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
	color: var(--text);
	background: var(--surface-2);
}
.nav-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}
.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
	transition:
		border-color 150ms var(--ease),
		color 150ms var(--ease),
		background-color 150ms var(--ease);
}
.icon-btn:hover {
	border-color: var(--accent);
	color: var(--accent-text);
}
.icon-btn svg {
	width: 20px;
	height: 20px;
}
.theme-toggle .icon-sun {
	display: none;
}
[data-theme='dark'] .theme-toggle .icon-sun {
	display: block;
}
[data-theme='dark'] .theme-toggle .icon-moon {
	display: none;
}
.menu-btn {
	display: none;
}
@media (max-width: 960px) {
	.menu-btn {
		display: inline-flex;
	}
	.nav-links {
		display: none;
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		padding: 12px 20px 20px;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow);
	}
	.nav-links.open {
		display: flex;
	}
	.nav-links a {
		font-size: 1rem;
	}
}
@media (max-width: 400px) {
	.site-header .wrap {
		gap: 8px;
	}
	.nav-actions .nav-cta {
		padding-inline: 14px;
	}
}

/* ---- buttons ---- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border-radius: 12px;
	border: 1px solid transparent;
	background: var(--primary);
	color: var(--on-primary);
	font: inherit;
	font-weight: 700;
	font-size: 0.9375rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition:
		transform 200ms var(--ease),
		box-shadow 200ms var(--ease),
		background-color 200ms var(--ease),
		border-color 200ms var(--ease),
		color 200ms var(--ease);
}
.btn:hover {
	color: var(--on-primary);
	transform: translateY(-1px);
	box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--primary) 70%, transparent);
}
.btn:active {
	transform: translateY(0);
}
.btn:disabled,
.btn[aria-disabled='true'] {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}
.btn.secondary {
	background: var(--surface);
	color: var(--text);
	border-color: var(--border);
}
.btn.secondary:hover {
	border-color: var(--accent);
	color: var(--text);
	box-shadow: none;
}
.btn.lg {
	min-height: 52px;
	padding: 14px 26px;
	font-size: 1rem;
}
.btn.small {
	min-height: 36px;
	padding: 6px 12px;
	font-size: 0.875rem;
}
.btn svg {
	width: 18px;
	height: 18px;
}

/* ---- generic components (portal, admin, docs) ---- */
.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: var(--shadow);
}
.grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.muted {
	color: var(--muted);
}
label {
	display: block;
	font-weight: 600;
	margin-block: 14px 6px;
}
input[type='text'],
input[type='email'],
input[type='number'],
input[type='date'],
input[type='password'],
select,
textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	font: inherit;
	color: var(--text);
	background: var(--surface);
	transition:
		border-color 150ms var(--ease),
		box-shadow 150ms var(--ease);
}
input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--ring);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 28%, transparent);
}
input[type='radio'],
input[type='checkbox'] {
	width: 20px;
	height: 20px;
	accent-color: var(--accent);
	flex-shrink: 0;
}
.check {
	display: flex;
	gap: 10px;
	align-items: center;
	font-weight: 400;
	margin: 8px 0;
	min-height: 44px;
	cursor: pointer;
}
.alert {
	border-radius: 12px;
	padding: 12px 16px;
	margin-bottom: 16px;
	border: 1px solid;
}
.alert.err {
	background: color-mix(in srgb, var(--danger) 10%, var(--surface));
	color: var(--danger);
	border-color: color-mix(in srgb, var(--danger) 35%, transparent);
}
.alert.ok {
	background: color-mix(in srgb, var(--success) 10%, var(--surface));
	color: var(--success);
	border-color: color-mix(in srgb, var(--success) 35%, transparent);
}
.alert.info {
	background: color-mix(in srgb, var(--accent) 10%, var(--surface));
	color: var(--text);
	border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.price {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.table-wrap {
	overflow-x: auto;
}
table {
	border-collapse: collapse;
	width: 100%;
}
th,
td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}
th {
	color: var(--muted);
	font-weight: 600;
	font-size: 0.875rem;
}
.badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	background: var(--surface-2);
	color: var(--text);
}
.badge.active,
.badge.ok,
.badge.running,
.badge.done {
	background: color-mix(in srgb, var(--success) 16%, transparent);
	color: var(--success);
}
.badge.read_only,
.badge.queued,
.badge.pending {
	background: color-mix(in srgb, var(--warning) 16%, transparent);
	color: var(--warning);
}
.badge.suspended,
.badge.failed,
.badge.down {
	background: color-mix(in srgb, var(--danger) 16%, transparent);
	color: var(--danger);
}
.features {
	display: grid;
	gap: 16px 32px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	list-style: none;
	padding: 0;
	margin: 0;
}
.features li {
	padding-left: 30px;
	position: relative;
}
.features li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 4px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--accent) 18%, transparent)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230891B2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
		center / 12px no-repeat;
}

/* ---- footer ---- */
.site-footer {
	border-top: 1px solid var(--border);
	background: var(--surface);
	font-size: 0.9rem;
}
.site-footer .wrap {
	display: grid;
	gap: 24px;
	grid-template-columns: 1.4fr 1fr 1fr;
	padding-block: 40px;
}
.site-footer h2 {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	margin-bottom: 8px;
}
.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-footer li a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: var(--text);
	text-decoration: none;
}
.site-footer li a:hover {
	color: var(--accent-text);
	text-decoration: underline;
}
.footer-legal {
	border-top: 1px solid var(--border);
}
.footer-legal .wrap {
	display: block;
	padding-block: 16px;
	color: var(--muted);
	font-size: 0.85rem;
}
@media (max-width: 760px) {
	.site-footer .wrap {
		grid-template-columns: 1fr;
	}
}

/* =================== marketing =================== */
.section {
	padding-block: clamp(64px, 9vw, 112px);
	position: relative;
}
.section.alt {
	background: var(--surface);
	border-block: 1px solid var(--border);
}
.eyebrow,
.section-head .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-text);
}
.section-head {
	max-width: 720px;
	margin: 0 auto 48px;
	text-align: center;
}
.section-head p {
	color: var(--muted);
	font-size: 1.0625rem;
}
.lead {
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	color: var(--muted);
}
.gradient-text {
	background: linear-gradient(95deg, var(--primary) 10%, var(--accent) 90%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
[data-theme='dark'] .gradient-text {
	background-image: linear-gradient(95deg, #e8f1f8 10%, var(--accent) 90%);
}

/* hero */
.hero {
	padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px);
	overflow: hidden;
	position: relative;
	isolation: isolate;
}
.hero-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	overflow: hidden;
}
.hero-bg::before,
.hero-bg::after {
	content: '';
	position: absolute;
	width: 46rem;
	height: 46rem;
	border-radius: 50%;
	filter: blur(70px);
	opacity: 0.35;
	will-change: transform;
}
.hero-bg::before {
	background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 65%);
	top: -18rem;
	right: -12rem;
	animation: drift 18s ease-in-out infinite alternate;
}
.hero-bg::after {
	background: radial-gradient(circle, color-mix(in srgb, #1e5aa8 45%, transparent), transparent 65%);
	bottom: -24rem;
	left: -16rem;
	animation: drift 22s ease-in-out infinite alternate-reverse;
}
.hero-grid-lines {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--border) 1px, transparent 1px),
		linear-gradient(90deg, var(--border) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
	opacity: 0.5;
}
@keyframes drift {
	from {
		transform: translate3d(0, 0, 0) scale(1);
	}
	to {
		transform: translate3d(-4rem, 3rem, 0) scale(1.08);
	}
}
.hero .wrap {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}
.hero h1 {
	font-size: clamp(2.25rem, 5.2vw, 3.75rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.06;
	margin-bottom: 20px;
}
.hero .lead {
	max-width: 36rem;
	margin-bottom: 28px;
}
.hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}
.hero-points {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	list-style: none;
	padding: 0;
	margin: 0;
	color: var(--muted);
	font-size: 0.9375rem;
}
.hero-points li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.hero-points svg {
	width: 18px;
	height: 18px;
	color: var(--success);
	flex-shrink: 0;
}
@media (max-width: 960px) {
	.hero .wrap {
		grid-template-columns: 1fr;
	}
}

/* product visual (illustrative, decorative) */
.mock {
	position: relative;
	border-radius: 18px;
	border: 1px solid var(--border);
	background: var(--surface);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
	transition: transform 600ms var(--ease);
}
.mock:hover {
	transform: perspective(1400px) rotateY(0) rotateX(0);
}
@media (max-width: 960px) {
	.mock {
		transform: none;
	}
}
.mock-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--border);
	background: var(--surface-2);
}
.mock-bar i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--border);
}
.mock-url {
	margin-left: 10px;
	padding: 3px 10px;
	border-radius: 6px;
	background: var(--surface);
	color: var(--muted);
	font-size: 0.75rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mock-body {
	display: grid;
	grid-template-columns: 132px 1fr;
	min-height: 330px;
}
.mock-side {
	border-right: 1px solid var(--border);
	padding: 14px 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.mock-side img {
	height: 22px;
	width: auto;
	margin: 0 4px 10px;
}
.mock-side span {
	display: block;
	padding: 6px 8px;
	border-radius: 7px;
	font-size: 0.72rem;
	color: var(--muted);
	white-space: nowrap;
}
.mock-side span.on {
	background: color-mix(in srgb, var(--accent) 14%, transparent);
	color: var(--text);
	font-weight: 700;
}
.mock-main {
	padding: 16px;
	display: grid;
	gap: 12px;
	align-content: start;
}
.mock-title {
	font-weight: 800;
	font-size: 0.95rem;
}
.mock-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.mock-card {
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 10px;
	display: grid;
	gap: 8px;
	justify-items: center;
	font-size: 0.68rem;
	color: var(--muted);
	text-align: center;
}
.ring {
	width: 54px;
	height: 54px;
	transform: rotate(-90deg);
}
.ring circle {
	fill: none;
	stroke-width: 7;
}
.ring .track {
	stroke: var(--surface-2);
}
.ring .val {
	stroke: var(--accent);
	stroke-linecap: round;
	stroke-dasharray: 138;
	stroke-dashoffset: 138;
	transition: stroke-dashoffset 1400ms var(--ease);
}
.play .ring .val {
	stroke-dashoffset: var(--to);
}
.mock-rows {
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
}
.mock-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 9px 12px;
	font-size: 0.72rem;
	border-bottom: 1px solid var(--border);
	opacity: 0;
	transform: translateY(6px);
	transition:
		opacity 400ms var(--ease),
		transform 400ms var(--ease);
	transition-delay: calc(500ms + var(--i) * 140ms);
}
.mock-row:last-child {
	border-bottom: 0;
}
.play .mock-row {
	opacity: 1;
	transform: none;
}
.mock-row b {
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.chip {
	flex-shrink: 0;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 0.66rem;
	font-weight: 700;
}
.chip.ok {
	background: color-mix(in srgb, var(--success) 16%, transparent);
	color: var(--success);
}
.chip.wip {
	background: color-mix(in srgb, var(--accent) 16%, transparent);
	color: var(--accent-text);
}
[data-theme='light'] .chip.ok {
	color: #166534;
}
[data-theme='light'] .chip.wip {
	color: #155e75;
}
.chip.todo {
	background: var(--surface-2);
	color: var(--muted);
}
.mock-caption {
	margin-top: 12px;
	text-align: center;
	font-size: 0.8rem;
	color: var(--muted);
}
.mock-float {
	position: absolute;
	right: -8px;
	bottom: 28px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--surface);
	box-shadow: var(--shadow-lg);
	font-size: 0.75rem;
	font-weight: 700;
	opacity: 0;
	transform: translateY(10px);
	transition:
		opacity 500ms var(--ease) 1500ms,
		transform 500ms var(--ease) 1500ms;
}
.mock-float svg {
	width: 18px;
	height: 18px;
	color: var(--accent);
}
.play .mock-float,
.mock-wrap.play .mock-float {
	opacity: 1;
	transform: none;
}
.mock-wrap {
	position: relative;
}
@media (max-width: 520px) {
	.mock-body {
		grid-template-columns: 1fr;
	}
	.mock-side {
		display: none;
	}
	.mock-float {
		right: 8px;
	}
}

/* trust bar */
.trustbar {
	border-block: 1px solid var(--border);
	background: var(--surface);
}
.trustbar ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 32px;
	list-style: none;
	margin: 0;
	padding: 22px 0;
}
.trustbar li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--muted);
}
.trustbar svg {
	width: 20px;
	height: 20px;
	color: var(--accent-text);
	flex-shrink: 0;
}

/* standards */
.iso-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
	margin-bottom: 40px;
}
.iso-card {
	position: relative;
	padding: 22px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--surface);
	box-shadow: var(--shadow);
	transition:
		transform 250ms var(--ease),
		border-color 250ms var(--ease),
		box-shadow 250ms var(--ease);
}
.iso-card:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
	box-shadow: var(--shadow-lg);
}
.iso-code {
	display: block;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin-bottom: 4px;
}
.iso-year {
	color: var(--accent-text);
	font-weight: 700;
}
.iso-card p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--muted);
}
.iso-card .tag {
	display: inline-block;
	margin-top: 12px;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	background: color-mix(in srgb, var(--accent) 14%, transparent);
	color: var(--accent-text);
}
.fw-title {
	text-align: center;
	font-size: 1.05rem;
	margin-bottom: 16px;
}
.fw-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0 0 32px;
}
.fw-list li {
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface);
	font-size: 0.875rem;
	font-weight: 600;
}
.callout {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	max-width: 880px;
	margin: 0 auto;
	padding: 22px 26px;
	border-radius: var(--radius);
	border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent);
	background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.callout p {
	margin: 0;
	flex: 1 1 380px;
}

/* features */
.module-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.module {
	padding: 24px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--bg);
	transition:
		border-color 250ms var(--ease),
		transform 250ms var(--ease);
}
.section:not(.alt) .module {
	background: var(--surface);
}
.module:hover {
	border-color: var(--accent);
	transform: translateY(-2px);
}
.module h3 {
	font-size: 1.05rem;
	margin: 14px 0 6px;
}
.module p {
	margin: 0;
	color: var(--muted);
	font-size: 0.9375rem;
}
.module-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--accent) 14%, transparent);
	color: var(--accent-text);
}
.module-icon svg {
	width: 22px;
	height: 22px;
}

/* steps */
.steps {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(3, 1fr);
	counter-reset: step;
	list-style: none;
	padding: 0;
	margin: 0;
	position: relative;
}
.steps::before {
	content: '';
	position: absolute;
	top: 27px;
	left: 16%;
	right: 16%;
	height: 2px;
	background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
	z-index: 0;
}
.steps li {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 0 12px;
}
.step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--primary);
	color: var(--on-primary);
	font-weight: 800;
	font-size: 1.25rem;
	box-shadow: 0 0 0 8px var(--bg);
}
.section.alt .step-num {
	box-shadow: 0 0 0 8px var(--surface);
}
.steps h3 {
	font-size: 1.15rem;
}
.steps p {
	color: var(--muted);
	margin: 0;
}
@media (max-width: 760px) {
	.steps {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.steps::before {
		display: none;
	}
}

/* split sections (AI, security) */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}
@media (max-width: 960px) {
	.split {
		grid-template-columns: 1fr;
	}
}
.ticks {
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
	display: grid;
	gap: 14px;
}
.ticks li {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 10px;
	align-items: start;
}
.ticks svg {
	width: 22px;
	height: 22px;
	margin-top: 2px;
	color: var(--accent-text);
}
.ticks strong {
	display: block;
}
.ticks span {
	color: var(--muted);
}

.chat {
	border-radius: 18px;
	border: 1px solid var(--border);
	background: var(--surface);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.chat-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--border);
	font-weight: 700;
	font-size: 0.9rem;
}
.chat-head img {
	width: 26px;
	height: auto;
}
.chat-body {
	display: grid;
	gap: 12px;
	padding: 18px;
	min-height: 300px;
	align-content: start;
}
.bubble {
	max-width: 88%;
	padding: 11px 14px;
	border-radius: 14px;
	font-size: 0.875rem;
	line-height: 1.5;
	opacity: 0;
	transform: translateY(8px);
	transition:
		opacity 450ms var(--ease),
		transform 450ms var(--ease);
	transition-delay: calc(var(--i) * 700ms);
}
.chat.play .bubble {
	opacity: 1;
	transform: none;
}
.bubble.user {
	justify-self: end;
	background: var(--primary);
	color: var(--on-primary);
	border-bottom-right-radius: 4px;
}
.bubble.bot {
	background: var(--surface-2);
	border-bottom-left-radius: 4px;
}
.bubble.bot ul {
	margin: 6px 0 0;
	padding-left: 18px;
}
.chat-foot {
	padding: 12px 18px;
	border-top: 1px solid var(--border);
	font-size: 0.75rem;
	color: var(--muted);
}

.sec-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.sec-item {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 16px;
	padding: 22px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--surface);
}
.section.alt .sec-item {
	background: var(--bg);
}
.sec-item h3 {
	font-size: 1rem;
	margin-bottom: 4px;
}
.sec-item p {
	margin: 0;
	color: var(--muted);
	font-size: 0.9375rem;
}

/* pricing */
.billing-switch {
	display: inline-flex;
	padding: 4px;
	margin: 0 auto 32px;
	border-radius: 14px;
	border: 1px solid var(--border);
	background: var(--surface);
}
.billing-switch button {
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--muted);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition:
		background-color 200ms var(--ease),
		color 200ms var(--ease);
}
.billing-switch button[aria-pressed='true'] {
	background: var(--primary);
	color: var(--on-primary);
}
.billing-switch .save-pill {
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 0.72rem;
	background: color-mix(in srgb, var(--success) 18%, transparent);
	color: var(--success);
}
.billing-switch button[aria-pressed='true'] .save-pill {
	background: color-mix(in srgb, var(--on-primary) 18%, transparent);
	color: var(--on-primary);
}
.price-wrap {
	text-align: center;
}
.plans {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	max-width: 820px;
	margin: 0 auto;
	text-align: left;
}
.plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 30px;
	border-radius: 18px;
	border: 1px solid var(--border);
	background: var(--surface);
	box-shadow: var(--shadow);
	transition:
		transform 250ms var(--ease),
		box-shadow 250ms var(--ease),
		border-color 250ms var(--ease);
}
.plan.featured {
	border: 2px solid var(--accent);
	box-shadow: var(--shadow-lg);
}
.plan.dim {
	opacity: 0.7;
}
.plan .ribbon {
	position: absolute;
	top: -13px;
	left: 30px;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--accent);
	color: #031528;
	font-size: 0.75rem;
	font-weight: 800;
}
.plan h3 {
	font-size: 1.1rem;
	margin-bottom: 10px;
}
.plan .amount {
	font-size: 2.75rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
}
.plan .per {
	color: var(--muted);
	font-weight: 600;
}
.plan .note {
	min-height: 1.6em;
	margin: 10px 0 18px;
	color: var(--success);
	font-weight: 700;
	font-size: 0.9375rem;
}
.plan .note.muted {
	color: var(--muted);
	font-weight: 500;
}
.plan ul {
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
	display: grid;
	gap: 10px;
	flex: 1;
}
.plan li {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 8px;
	font-size: 0.9375rem;
}
.plan li svg {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	color: var(--success);
}
.plan .btn {
	width: 100%;
}
.price-foot {
	margin-top: 22px;
	color: var(--muted);
	font-size: 0.9rem;
}

/* FAQ */
.faq {
	max-width: 820px;
	margin: 0 auto;
	display: grid;
	gap: 12px;
}
.faq details {
	border-radius: 14px;
	border: 1px solid var(--border);
	background: var(--surface);
	transition: border-color 200ms var(--ease);
}
.section.alt .faq details {
	background: var(--bg);
}
.faq details[open] {
	border-color: var(--accent);
}
.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 14px 20px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.faq summary::-webkit-details-marker {
	display: none;
}
.faq summary::after {
	content: '';
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(45deg) translateY(-3px);
	transition: transform 250ms var(--ease);
}
.faq details[open] summary::after {
	transform: rotate(225deg) translateY(-3px);
}
.faq .answer {
	padding: 0 20px 18px;
	color: var(--muted);
}
.faq .answer p:last-child {
	margin: 0;
}

/* final CTA */
.cta-band {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border-radius: 24px;
	padding: clamp(36px, 6vw, 64px);
	text-align: center;
	background: linear-gradient(135deg, #001d3f 0%, #06315c 55%, #0b5f7a 100%);
	color: #e8f1f8;
}
.cta-band::after {
	content: '';
	position: absolute;
	inset: auto -10% -60% auto;
	width: 60%;
	height: 140%;
	z-index: -1;
	background: radial-gradient(circle, rgb(0 212 245 / 0.35), transparent 65%);
}
.cta-band h2 {
	color: #fff;
}
.cta-band p {
	color: #c6d7e6;
	max-width: 40rem;
	margin-inline: auto;
}
.cta-band .btn {
	background: #00d4f5;
	color: #031528;
}
.cta-band .btn.secondary {
	background: transparent;
	color: #fff;
	border-color: rgb(255 255 255 / 0.4);
}
.cta-band .btn.secondary:hover {
	border-color: #fff;
}
.cta-band .hero-ctas {
	justify-content: center;
	margin: 24px 0 0;
}

/* without JS the illustrations show their final state */
html:not(.js) .mock-row,
html:not(.js) .bubble,
html:not(.js) .mock-float {
	opacity: 1;
	transform: none;
}
html:not(.js) .ring .val {
	stroke-dashoffset: var(--to);
}

/* ---- scroll reveal (only when JS runs and motion is allowed) ---- */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 450ms var(--ease),
		transform 450ms var(--ease);
	transition-delay: calc(var(--d, 0) * 70ms);
}
.js [data-reveal].in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation: none !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0ms !important;
	}
	.js [data-reveal] {
		opacity: 1;
		transform: none;
	}
	.mock {
		transform: none;
	}
}

/* docs */
code {
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--surface-2);
	font-size: 0.9em;
}
pre {
	overflow-x: auto;
	padding: 14px;
	border-radius: 10px;
	background: var(--surface-2);
}
pre code {
	padding: 0;
	background: none;
}
.page h1 {
	margin-top: 0;
}
.page ol,
.page ul:not([class]) {
	padding-left: 1.4em;
}
