/* =====================================================================
   Product website: base
   1. Fonts  2. Tokens (light, dark)  3. Reset  4. Type  5. Layout
   6. Buttons and links  7. Forms  8. Utilities  9. Motion
   ===================================================================== */

/* 1. Fonts: self-hosted, SIL OFL (licences in assets/fonts/) ----------- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Instrument Serif";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Instrument Serif";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/instrument-serif-latin-ext-400-italic.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Tokens ----------------------------------------------------------
   The accent and the dark surfaces are the dashboard's own values, so the
   product and the site read as one brand. */
:root {
	color-scheme: light;
	--bg: #f7f5f0;
	--bg-2: #efece4;
	--surface: #ffffff;
	--surface-2: #f4f2ec;
	--ink: #121316;
	--ink-2: #45484f;
	--ink-3: #676b73;
	--line: #e4e0d6;
	--line-strong: #d1ccc0;
	--control: #8b8678; /* form control borders: 3:1 on the surface (WCAG 1.4.11) */
	--accent: #2459c9;
	--accent-hover: #1c4aad;
	--accent-ink: #ffffff;
	--accent-soft: rgba(36, 89, 201, .09);
	--accent-text: #1f4fb6;
	--good: #0c7a45;
	--bad: #b42323;
	--bad-soft: rgba(180, 35, 35, .08);
	--header-bg: rgba(247, 245, 240, .78);
	--shadow-sm: 0 1px 2px rgba(20, 18, 12, .05);
	--shadow: 0 1px 2px rgba(20, 18, 12, .05), 0 8px 24px rgba(20, 18, 12, .06);
	--shadow-lg: 0 2px 4px rgba(20, 18, 12, .04), 0 30px 80px -20px rgba(20, 18, 12, .28);
	--band: #0e0f12;
	--band-ink: #f3f4f6;
	--band-ink-2: #aeb3bd;
	--band-line: #272a32;
	--mark-ink: #ffffff;

	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--fs-xs: .8125rem;
	--fs-sm: .9375rem;
	--fs-base: 1.0625rem;
	--fs-lg: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
	--fs-h3: clamp(1.125rem, 1.08rem + .2vw, 1.25rem);
	--fs-h2: clamp(1.875rem, 1.4rem + 2vw, 3rem);
	--fs-display: clamp(2.5rem, 1.6rem + 4.4vw, 5.25rem);

	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 22px;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(64px, 6vw + 40px, 144px);
	--header-h: 64px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--bg: #0e0f12;
		--bg-2: #121317;
		--surface: #16181d;
		--surface-2: #1d2027;
		--ink: #f3f4f6;
		--ink-2: #bcc0ca;
		--ink-3: #959aa6;
		--line: #262930;
		--line-strong: #3a3f4a;
		--control: #6b7280;
		--accent: #7aa7ff;
		--accent-hover: #93b8ff;
		--accent-ink: #08101f;
		--accent-soft: rgba(122, 167, 255, .13);
		--accent-text: #8fb4ff;
		--good: #4cc98a;
		--bad: #f27b7b;
		--bad-soft: rgba(242, 123, 123, .12);
		--header-bg: rgba(14, 15, 18, .74);
		--shadow-sm: none;
		--shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
		--shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .7);
		--band: #16181d;
		--band-line: #2a2d35;
		--mark-ink: #08101f;
	}
}
:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #0e0f12;
	--bg-2: #121317;
	--surface: #16181d;
	--surface-2: #1d2027;
	--ink: #f3f4f6;
	--ink-2: #bcc0ca;
	--ink-3: #959aa6;
	--line: #262930;
	--line-strong: #3a3f4a;
	--control: #6b7280;
	--accent: #7aa7ff;
	--accent-hover: #93b8ff;
	--accent-ink: #08101f;
	--accent-soft: rgba(122, 167, 255, .13);
	--accent-text: #8fb4ff;
	--good: #4cc98a;
	--bad: #f27b7b;
	--bad-soft: rgba(242, 123, 123, .12);
	--header-bg: rgba(14, 15, 18, .74);
	--shadow-sm: none;
	--shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
	--shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .7);
	--band: #16181d;
	--band-line: #2a2d35;
	--mark-ink: #08101f;
}

/* 3. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 var(--fs-base)/1.6 var(--font);
	font-feature-settings: "cv11", "ss01", "ss03";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
.ic { width: 20px; height: 20px; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
:where(ul[class], ol[class], nav ul) { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; }
main { display: block; outline: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* 4. Type -------------------------------------------------------------- */
h1, h2, h3 { font-weight: 640; letter-spacing: -.022em; line-height: 1.12; text-wrap: balance; color: var(--ink); }
h1, .display { font-size: var(--fs-display); letter-spacing: -.035em; line-height: 1.02; font-weight: 660; }
h2 { font-size: var(--fs-h2); letter-spacing: -.03em; line-height: 1.06; }
h3 { font-size: var(--fs-h3); letter-spacing: -.012em; line-height: 1.3; font-weight: 600; }
.h-sm { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); letter-spacing: -.02em; }
.h-xs { font-size: 1.0625rem; letter-spacing: -.01em; font-weight: 600; line-height: 1.35; }
h1 em, h2 em, .display em {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -.01em;
	font-size: 1.08em;
	line-height: .9;
	color: var(--accent-text);
}
p { text-wrap: pretty; }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em;
	color: var(--accent-text); margin-bottom: 18px;
}
.eyebrow-pill {
	padding: 5px 12px 5px 10px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.eyebrow-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.eyebrow-ic .ic { width: 16px; height: 16px; }
strong, b { font-weight: 620; }
small { font-size: var(--fs-xs); }
code, kbd { font-family: var(--mono); font-size: .9em; }

/* 5. Layout ------------------------------------------------------------ */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { width: 100%; max-width: calc(1320px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section:not(.trust):not(.stack-sec):not(.compare) { padding-top: calc(var(--section) * .5); }
.prose-wrap { max-width: calc(760px + 2 * var(--gutter)); }

/* 6. Buttons and links ------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px; border-radius: 11px;
	border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
	font-weight: 560; font-size: var(--fs-sm); letter-spacing: -.005em; line-height: 1.2;
	cursor: pointer; white-space: nowrap; text-decoration: none;
	transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease);
}
.btn .ic { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1rem; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 1px 2px rgba(20, 30, 60, .2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--ink-2); padding: 0 12px; }
.btn-outline { background: transparent; }
@media (hover: hover) {
	.btn:hover { border-color: var(--ink-3); }
	.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
	.btn-primary:hover .ic { transform: translateX(3px); }
	.btn-ghost:hover { background: var(--surface); border-color: var(--line); }
	.btn-quiet:hover { color: var(--ink); border-color: transparent; }
}
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 11px;
	border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
	transition: background-color .15s var(--ease), color .15s var(--ease);
}
@media (hover: hover) { .icon-btn:hover { background: var(--surface-2); color: var(--ink); } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { margin-top: 16px; font-size: var(--fs-xs); color: var(--ink-3); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 560; color: var(--accent-text); font-size: var(--fs-sm); min-height: 44px; }
.link-arrow .ic { width: 17px; height: 17px; transition: transform .18s var(--ease); }
@media (hover: hover) { .link-arrow:hover .ic { transform: translateX(3px); } }
.prose a, .contact-direct a, .footer-mail a, .facts-dl a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* 7. Forms ------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="number"], select, textarea {
	width: 100%; min-height: 48px; padding: 11px 14px;
	border: 1px solid var(--control); border-radius: 11px; background: var(--surface); color: var(--ink);
	font-size: 1rem; line-height: 1.4;
	transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box {
	flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px;
	border: 1.5px solid var(--control); border-radius: 6px; background: var(--surface); color: transparent;
	transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.check .box .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.check input:checked + .box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.check input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check input[aria-invalid="true"] + .box { border-color: var(--bad); }

/* 8. Utilities ---------------------------------------------------------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; }
.skip-link:focus { top: 12px; }
.center-link { text-align: center; margin-top: 32px; }

/* 9. Motion -------------------------------------------------------------
   .reveal elements are visible by default. site.js adds html.reveal-on
   only once its observer runs, and then holds back just the blocks that
   start below the fold until they scroll in (.is-in). Without JS, if the
   observer never starts, or with reduced motion they are simply visible. */
.reveal-on .reveal { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.reveal-on .reveal:not(.is-in) { opacity: 0; transform: translateY(12px); }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.reveal-on .reveal:not(.is-in) { opacity: 1; transform: none; }
}
