/* =============================================================
   ScholarFlow · marketing site
   Editorial Italian study aesthetic: DM Sans (body), Instrument
   Serif italic (emphasis), JetBrains Mono (micro). Black canvas,
   blue #1f74f3 accent, cream warm highlights.
   ============================================================= */

:root {
	/* palette — dark surfaces match the app chrome */
	--accent:        #1f74f3;
	--accent-2:      #4e93f6;
	--accent-3:      #81b0f9;
	--accent-soft:   rgba(31, 116, 243, 0.22);
	--accent-wash:   rgba(31, 116, 243, 0.10);
	--accent-glow:   rgba(31, 116, 243, 0.45);

	--warm:          #f0e6d2;       /* cream, editorial italic accents */
	--warm-dim:      #c8bea9;

	--bg-0:          #000000;
	--bg-1:          #0a0a0a;
	--bg-2:          #141414;
	--bg-3:          #1f1f1f;
	--bg-4:          #262626;

	--surface-1:     rgba(255, 255, 255, 0.02);
	--surface-2:     rgba(255, 255, 255, 0.04);
	--surface-3:     rgba(255, 255, 255, 0.06);

	--line:          rgba(255, 255, 255, 0.06);
	--line-2:        rgba(255, 255, 255, 0.12);
	--line-3:        rgba(255, 255, 255, 0.18);

	--text:          #ffffff;
	--text-2:        #e6e6e6;
	--text-3:        #a6a6a6;
	--text-4:        #737373;
	--text-5:        #525252;

	--radius-xs:     4px;
	--radius-sm:     8px;
	--radius:        12px;
	--radius-lg:     18px;
	--radius-xl:     24px;

	--shadow:        0 4px 18px rgba(0,0,0,.5), 0 0 0 1px var(--line);
	--shadow-lg:     0 40px 100px -40px rgba(31,116,243,.35), 0 0 0 1px var(--line-2);

	--font-display:  "Instrument Serif", "Times New Roman", Georgia, serif;
	--font-sans:     "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-mono:     "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

	--container:     1180px;
	--header-h:      68px;

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

/* ------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
	margin: 0;
	font-family: var(--font-sans);
	font-optical-sizing: auto;
	color: var(--text-2);
	background: var(--bg-0);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-2); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--accent-3); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code, pre, kbd { font-family: var(--font-mono); }
code {
	font-size: .88em;
	background: var(--surface-2);
	border: 1px solid var(--line);
	padding: 1px 6px;
	border-radius: 5px;
	color: var(--text-2);
}
kbd {
	display: inline-block;
	font-size: .78em;
	padding: 2px 7px;
	border-radius: 5px;
	background: var(--bg-3);
	border: 1px solid var(--line-2);
	border-bottom-width: 2px;
	color: var(--text);
}

.container { width: 100%; max-width: var(--container); padding-inline: 24px; margin-inline: auto; }

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 0 0 8px 0; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- grain overlay */

.grain {
	position: fixed; inset: 0;
	pointer-events: none;
	z-index: 110;
	opacity: .04;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------- typography */

h1, h2, h3, h4 {
	font-family: var(--font-sans);
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.08;
	color: var(--text);
	margin: 0 0 .45em;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.02em; }
h4 {
	font-size: .72rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .18em;
	color: var(--text-4);
}
p { color: var(--text-3); margin: 0 0 1em; }
.lede {
	color: var(--text-2);
	font-size: 1.08rem;
	line-height: 1.6;
	max-width: 60ch;
}

/* serif-italic emphasis — the signature editorial move */
.serif, .serif-italic {
	font-family: var(--font-display);
	font-weight: 400;
	font-style: italic;
	letter-spacing: 0.01em;
}
.serif, h1 .serif, h2 .serif { color: var(--warm); }
.serif-italic { color: inherit; }

h1 em.serif, h2 .serif-italic { color: var(--warm); }

/* Drop cap for editorial flavour */
.dropcap {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 400;
	font-size: 4em;
	float: left;
	line-height: .82;
	margin: .08em .12em -.05em 0;
	color: var(--accent-2);
}

/* Asterism divider between big sections */
.asterism {
	text-align: center;
	padding: 18px 0 26px;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.6rem;
	color: var(--line-3);
	letter-spacing: .5em;
	user-select: none;
}

/* Pull quote */
.pullquote {
	max-width: 760px;
	margin: 56px auto 0;
	padding: 20px 36px;
	border-left: 2px solid var(--accent);
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(1.2rem, 2.4vw, 1.6rem);
	line-height: 1.45;
	color: var(--warm);
	letter-spacing: .005em;
}
.pullquote p { margin: 0; color: inherit; font-family: inherit; font-size: inherit; }

/* ------------------------------------------------------------- eyebrow */

.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .72rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .22em;
	color: var(--text-2);
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 6px 14px 6px 10px;
	margin-bottom: 24px;
}
.eyebrow__dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 3px rgba(31,116,243,.22);
	animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .45 } }
.eyebrow--quiet {
	background: transparent;
	border-color: var(--line);
	color: var(--text-4);
}

/* ------------------------------------------------------------- buttons */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--font-sans);
	font-weight: 500;
	font-size: .95rem;
	line-height: 1;
	padding: 13px 20px;
	border-radius: 10px;
	border: 1px solid transparent;
	transition: background .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease), color .15s var(--ease), box-shadow .2s var(--ease);
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	letter-spacing: -0.005em;
}
.btn--primary {
	background: var(--accent);
	color: #f7fbff;
	border-color: color-mix(in srgb, var(--accent) 80%, #fff);
	box-shadow:
		0 1px 0 rgba(255,255,255,.12) inset,
		0 10px 24px -8px rgba(31,116,243,.65);
}
.btn--primary:hover {
	background: var(--accent-2);
	color: #fff;
	transform: translateY(-1px);
	box-shadow:
		0 1px 0 rgba(255,255,255,.15) inset,
		0 14px 30px -8px rgba(31,116,243,.75);
}
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
	background: transparent;
	color: var(--text-2);
	border-color: var(--line-2);
}
.btn--ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-3); }
.btn--sm { padding: 8px 14px; font-size: .85rem; border-radius: 8px; }
.btn--lg { padding: 14px 22px; font-size: 1rem; border-radius: 11px; }
.btn--xl { padding: 16px 28px; font-size: 1.05rem; border-radius: 13px; }
.btn.is-disabled,
.dl-card__subtle-link.is-disabled {
	opacity: .5;
	pointer-events: none;
}
.btn.is-disabled {
	box-shadow: none;
	transform: none;
}
.btn--block { width: 100%; }

/* ------------------------------------------------------------- header */

.site-header {
	position: sticky; top: 0; z-index: 80;
	background: color-mix(in srgb, var(--bg-0) 82%, transparent);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-header[data-scrolled="true"] {
	border-bottom-color: var(--line);
	background: color-mix(in srgb, var(--bg-0) 92%, transparent);
}
.site-header__inner {
	height: var(--header-h);
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px;
}
.brand {
	display: inline-flex; align-items: center; gap: 11px;
	color: var(--text); font-weight: 600;
	font-size: 1rem;
	letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand__icon { border-radius: 7px; }

.site-nav { display: flex; gap: 30px; align-items: center; }
.site-nav a {
	color: var(--text-3);
	font-size: .9rem;
	font-weight: 500;
	padding: 8px 2px;
	position: relative;
}
.site-nav a:hover { color: var(--text); }
.site-nav a::after {
	content: "";
	position: absolute; left: 50%; right: 50%; bottom: 2px; height: 1px;
	background: var(--accent);
	transition: inset .25s var(--ease);
}
.site-nav a:hover::after { left: 0; right: 0; }

.site-header__cta { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
	display: none;
	width: 40px; height: 40px; border-radius: 8px;
	align-items: center; justify-content: center;
	color: var(--text-2);
	border: 1px solid var(--line);
}
.nav-toggle:hover { color: var(--text); background: var(--surface-2); }

.mobile-nav {
	display: none;
	flex-direction: column;
	border-top: 1px solid var(--line);
	background: color-mix(in srgb, var(--bg-0) 94%, transparent);
	backdrop-filter: saturate(160%) blur(14px);
}
.mobile-nav a {
	padding: 16px 24px;
	color: var(--text-2);
	font-weight: 500;
	border-bottom: 1px solid var(--line);
}
.mobile-nav[data-open="true"] { display: flex; }

/* ------------------------------------------------------------- hero */

.hero {
	position: relative;
	padding: 96px 0 64px;
	overflow: hidden;
}
.hero__glow {
	position: absolute;
	inset: -30% -10% auto -10%;
	height: 900px;
	background:
		radial-gradient(60% 60% at 50% 0%, var(--accent-glow) 0%, rgba(31,116,243,.14) 30%, transparent 62%),
		radial-gradient(50% 50% at 80% 10%, rgba(129,176,249,.28) 0%, transparent 60%),
		radial-gradient(40% 40% at 10% 20%, rgba(240,230,210,.06) 0%, transparent 60%);
	filter: blur(6px);
	opacity: .7;
	pointer-events: none;
	z-index: 0;
}
.hero__grid-lines {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(to right, var(--line) 1px, transparent 1px),
		linear-gradient(to bottom, var(--line) 1px, transparent 1px);
	background-size: 80px 80px;
	mask-image: radial-gradient(ellipse at center top, black 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at center top, black 20%, transparent 75%);
	opacity: .5;
	pointer-events: none;
	z-index: 0;
}
.hero__inner {
	position: relative; z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.hero__copy { max-width: 720px; }
.hero__copy .hero__sub { margin-inline: auto; }
.hero__copy .hero__ctas,
.hero__copy .hero__trust { justify-content: center; }

/* Wide band that hosts the product screenshot just below the copy. Lives
   INSIDE .hero (which already owns the radial glow + vertical grid lines)
   so the screenshot sits over the same atmospheric background. */
.hero__showcase-wrap {
	position: relative;
	z-index: 1;
	margin-top: 64px;
	max-width: 1240px;
}
.hero__title {
	margin-bottom: 22px;
	font-size: clamp(2.6rem, 6.2vw, 4.6rem);
	letter-spacing: -0.045em;
	font-weight: 500;
}
.hero__title .serif { font-size: 1.05em; }
.hero__sub {
	font-size: 1.125rem;
	color: var(--text-2);
	max-width: 52ch;
	line-height: 1.55;
}
.hero__ctas {
	display: flex; gap: 12px;
	margin-top: 28px;
	flex-wrap: wrap;
}
.hero__trust {
	list-style: none; padding: 0;
	margin: 28px 0 0;
	display: flex; gap: 20px; flex-wrap: wrap;
	color: var(--text-3);
	font-size: .88rem;
}
.hero__trust li {
	display: inline-flex; align-items: center; gap: 8px;
}
.hero__trust li svg {
	color: var(--accent-2);
	flex: 0 0 auto;
}

/* ---- Product showcase frame ---- */
.hero__visual { position: relative; }

/* Ambient glow sits BEHIND the frame so the image itself stays crisp. */
.showcase {
	position: relative;
	width: 100%;
	margin: 0 auto;
}
.showcase::before {
	content: "";
	position: absolute;
	inset: -18% -14% -22%;
	background:
		radial-gradient(55% 55% at 30% 40%, rgba(31,116,243,.32) 0%, transparent 65%),
		radial-gradient(55% 55% at 75% 70%, rgba(240,230,210,.08) 0%, transparent 70%);
	filter: blur(44px);
	z-index: 0;
	pointer-events: none;
}

.showcase__frame {
	position: relative;
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	background: #05070d;
	border: 1px solid var(--line-2);
	box-shadow:
		0 60px 140px -40px rgba(31,116,243,.55),
		0 0 0 1px var(--line),
		inset 0 1px 0 rgba(255,255,255,.06);
}

.showcase__image {
	display: block;
	width: 100%;
	height: auto;
	/* Screenshot fills the frame edge-to-edge with no cropping — we're
	   showing the real product, so `contain` behaviour via natural aspect
	   ratio keeps every pixel visible. */
}
.hero__footnote {
	margin: 18px 0 0;
	font-size: .82rem;
	color: var(--text-4);
	text-align: center;
	max-width: 90%;
	margin-inline: auto;
}
.hero__footnote .serif-italic { color: var(--warm-dim); margin-right: 4px; }

/* ------------------------------------------------------------- stat band */

.statband {
	padding: 44px 0 84px;
	border-bottom: 1px solid var(--line);
	position: relative;
}
.statband__list {
	list-style: none; padding: 0; margin: 0;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
	text-align: center;
}
.statband__list li {
	display: flex; flex-direction: column; gap: 8px;
	padding: 0 8px;
	border-right: 1px dashed var(--line);
}
.statband__list li:last-child { border-right: 0; }
.statband__num {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(2.8rem, 6vw, 4.4rem);
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--warm);
}
.statband__lbl {
	font-size: .82rem;
	color: var(--text-3);
	line-height: 1.45;
	font-weight: 400;
}

/* ------------------------------------------------------------- section heads */

.section-head {
	margin-bottom: 48px;
	max-width: 760px;
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { line-height: 1.05; }
.section-head p.lede { margin-inline: auto; margin-top: 8px; }
.section-head--center p.lede { margin-inline: auto; }

/* ------------------------------------------------------------- features grid */

.features { padding: 100px 0 60px; }
.feature-grid {
	list-style: none; padding: 0; margin: 0;
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.feature {
	position: relative;
	background: var(--bg-1);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 24px 24px;
	transition: border-color .25s var(--ease), transform .2s var(--ease), background .2s var(--ease);
	overflow: hidden;
}
.feature::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(135deg, var(--accent-wash) 0%, transparent 35%);
	opacity: 0;
	transition: opacity .3s var(--ease);
	pointer-events: none;
}
.feature:hover {
	border-color: var(--accent-soft);
	transform: translateY(-3px);
}
.feature:hover::before { opacity: .6; }
.feature__num {
	position: absolute;
	top: 20px; right: 24px;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.05rem;
	color: var(--text-5);
	letter-spacing: .04em;
}
.feature__icon {
	display: inline-flex;
	color: var(--accent-2);
	margin-bottom: 22px;
	position: relative;
	z-index: 1;
}
.feature__icon svg { width: 30px; height: 30px; }
.feature h3 {
	font-size: 1.08rem;
	margin-bottom: 8px;
	line-height: 1.25;
	position: relative;
	z-index: 1;
}
.feature p {
	font-size: .92rem;
	color: var(--text-3);
	margin: 0;
	line-height: 1.55;
	position: relative;
	z-index: 1;
}
.feature p kbd { font-size: .78em; }

/* ------------------------------------------------------------- deep dives */

.deep { padding: 40px 0 100px; }
.deep__stack { display: flex; flex-direction: column; gap: 88px; }
.deep__row {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 64px; align-items: center;
}
.deep__row--reverse .deep__copy { order: 2; }
.deep__row--reverse .deep__visual { order: 1; }
.deep__copy h2 { margin-bottom: 20px; line-height: 1.08; }
.deep__copy h2 .serif-italic { color: var(--warm); font-size: 1.04em; }
.deep__lede {
	color: var(--text-2);
	font-size: 1.02rem;
	line-height: 1.65;
	max-width: 56ch;
	margin: 0 0 22px;
}
.deep__lede strong { color: var(--text); font-weight: 600; }
.check-list {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-direction: column; gap: 14px;
}
.check-list li {
	position: relative;
	padding-left: 30px;
	color: var(--text-2);
	font-size: 1rem;
	line-height: 1.55;
}
.check-list li::before {
	content: "";
	position: absolute; left: 0; top: 10px;
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--accent-wash);
	border: 1px solid var(--accent-soft);
	background-image: radial-gradient(circle at 50% 50%, var(--accent-2) 0 3px, transparent 3.5px);
}
.check-list li strong { color: var(--text); font-weight: 600; }
.check-list li code { font-size: .85em; padding: 1px 5px; }
.check-list li kbd { font-size: .78em; }

/* deep panels (editor / chat / media / map) */
.panel {
	background: var(--bg-1);
	border: 1px solid var(--line-2);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow);
	position: relative;
}
.panel__head {
	padding: 12px 18px;
	background: var(--bg-0);
	border-bottom: 1px solid var(--line);
	font-size: .78rem;
	color: var(--text-3);
	display: flex; align-items: center; gap: 8px;
	letter-spacing: .02em;
}
.panel__head::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%;
	background: var(--accent); box-shadow: 0 0 0 2px rgba(31,116,243,.22);
}
.panel__body { padding: 24px; position: relative; }
.panel--editor .panel__p { font-size: .95rem; color: var(--text-2); margin: 0 0 16px; }

.panel__slash { position: relative; height: 172px; }
.panel__slash-caret {
	width: 2px; height: 20px; background: var(--accent);
	animation: caret 1s steps(2) infinite;
	position: absolute; top: 8px; left: 0;
}
@keyframes caret { 50% { opacity: 0 } }
.panel__slash-menu {
	position: absolute; top: 32px; left: 0;
	background: var(--bg-2);
	border: 1px solid var(--line-2);
	border-radius: 12px;
	padding: 8px;
	min-width: 260px;
	box-shadow: 0 22px 54px rgba(0,0,0,.6);
	font-size: .88rem;
}
.panel__slash-item {
	display: flex; align-items: center; gap: 10px;
	padding: 7px 10px;
	border-radius: 7px;
	color: var(--text-3);
}
.panel__slash-item.active { background: var(--accent-wash); color: var(--text); }
.panel__slash-item .pill {
	display: inline-flex; min-width: 28px; height: 24px; padding: 0 6px;
	align-items: center; justify-content: center;
	background: var(--bg-3); border-radius: 5px;
	color: var(--text-2);
	font-family: var(--font-mono); font-size: .74rem;
}
.panel__slash-item.active .pill { background: var(--accent); color: #fff; }

/* chat panel */
.panel__body--chat { display: flex; flex-direction: column; gap: 10px; }
.bubble {
	background: var(--bg-2);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 10px 13px;
	max-width: 85%;
	font-size: .93rem;
	color: var(--text-2);
	line-height: 1.45;
}
.bubble p { margin: 0; color: inherit; font-size: inherit; }
.bubble--me { align-self: flex-end; background: var(--accent-wash); border-color: var(--accent-soft); color: var(--text); }
.bubble__cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cite {
	display: inline-flex; align-items: center; gap: 4px;
	background: var(--bg-3); border: 1px solid var(--line);
	border-radius: 999px; padding: 3px 10px;
	font-size: .76rem; color: var(--accent-3);
	font-weight: 500;
}
.bubble--typing { display: inline-flex; gap: 5px; padding: 12px; }
.bubble--typing span {
	width: 7px; height: 7px; border-radius: 50%; background: var(--text-4);
	animation: typing 1.3s infinite ease-in-out;
}
.bubble--typing span:nth-child(2) { animation-delay: .18s; }
.bubble--typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .4 } 30% { transform: translateY(-3px); opacity: 1 } }

/* media panel */
.media-thumb {
	position: relative;
	border-radius: 10px;
	background: linear-gradient(135deg, #0a1a33 0%, #081428 100%);
	height: 148px;
	margin-bottom: 18px;
	overflow: hidden;
	border: 1px solid var(--line);
}
.media-thumb__play {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	color: var(--accent-3);
	z-index: 2;
}
.media-thumb__play svg { filter: drop-shadow(0 4px 16px rgba(31,116,243,.5)); }
.media-thumb__wave {
	position: absolute; left: 0; right: 0; bottom: 0;
	height: 60%;
	display: flex; align-items: flex-end; gap: 4px;
	padding: 12px;
}
.media-thumb__wave span {
	flex: 1;
	background: linear-gradient(180deg, var(--accent-2), var(--accent));
	border-radius: 2px;
	opacity: .85;
}
.transcript { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.transcript li {
	display: grid; grid-template-columns: 54px 1fr; gap: 10px;
	padding: 8px 4px;
	color: var(--text-3);
	border-bottom: 1px solid var(--line);
}
.transcript li:last-child { border-bottom: 0; }
.transcript li .ts {
	color: var(--accent-3);
	font-family: var(--font-mono);
	font-size: .78rem;
	letter-spacing: .04em;
}
.transcript__active {
	background: var(--accent-wash);
	color: var(--text);
	border-radius: 6px;
	border-bottom-color: transparent !important;
}
.transcript__active .ts { color: var(--accent-2); }

/* map panel */
.map-svg { width: 100%; height: auto; display: block; }
.map-svg .map-node rect {
	fill: var(--bg-2);
	stroke: var(--line-2);
	transition: fill .2s var(--ease);
}
.map-svg .map-node text {
	fill: var(--text-2);
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 500;
}
.map-svg .map-node--root rect { fill: var(--accent-wash); stroke: var(--accent); }
.map-svg .map-node--root text { fill: var(--text); }
.map-svg .map-node--leaf rect { fill: var(--bg-3); }
.map-svg .map-node--leaf text { fill: var(--text-3); font-size: 10px; }

/* ------------------------------------------------------------- privacy */

.privacy {
	padding: 100px 0;
	background:
		radial-gradient(60% 60% at 50% 0%, rgba(31,116,243,.06) 0%, transparent 60%),
		linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
	border-block: 1px solid var(--line);
}
.privacy-grid {
	list-style: none; padding: 0; margin: 48px 0 0;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.privacy-card {
	background: var(--bg-0);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px;
	transition: border-color .25s var(--ease), transform .2s var(--ease);
}
.privacy-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.privacy-card__icon {
	display: inline-flex;
	color: var(--accent-2);
	margin-bottom: 20px;
}
.privacy-card__icon svg { width: 30px; height: 30px; }
.privacy-card h3 { margin-bottom: 8px; }
.privacy-card p { margin: 0; font-size: .92rem; color: var(--text-3); line-height: 1.55; }

/* ------------------------------------------------------------- download */

.download { padding: 100px 0; }
.download-grid {
	list-style: none; padding: 0; margin: 48px 0 36px;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.dl-card {
	position: relative;
	background: var(--bg-1);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 28px 28px 24px;
	display: flex; flex-direction: column; gap: 18px;
	transition: border-color .25s var(--ease), transform .2s var(--ease);
	overflow: hidden;
}
.dl-card::after {
	content: "";
	position: absolute; inset: 0;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(31,116,243,.12) 0%, transparent 45%);
	opacity: 0;
	transition: opacity .3s var(--ease);
	pointer-events: none;
}
.dl-card:hover { border-color: var(--accent-soft); transform: translateY(-3px); }
.dl-card:hover::after { opacity: 1; }
.dl-card[data-os-recommend] { border-color: var(--accent-soft); }
.dl-card[data-os-recommend]::after { opacity: .6; }
.dl-card--quiet { background: transparent; border-style: dashed; }
.dl-card--quiet:hover { border-style: dashed; }

.dl-card__head {
	display: flex; gap: 16px; align-items: flex-start;
	position: relative;
	z-index: 1;
}
.dl-card__icon {
	display: inline-flex;
	color: var(--text);
	flex: 0 0 auto;
	margin-top: 2px;
}
.dl-card__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dl-card__meta h3 {
	margin: 0;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
}
.dl-card__meta span {
	font-size: .85rem;
	color: var(--text-4);
	line-height: 1.4;
}
.dl-card .btn {
	position: relative; z-index: 1;
	margin-top: auto;
}
.dl-card__size {
	margin: 0;
	font-size: .78rem;
	color: var(--text-4);
	letter-spacing: .02em;
	text-align: center;
}
.dl-card__size .serif-italic { color: var(--warm-dim); }
.dl-card__subtle-link {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: .78rem;
	color: var(--text-3);
	text-align: center;
	line-height: 1.45;
}
.dl-card__subtle-link span { color: var(--text-4); }
.dl-card__subtle-link:hover { color: var(--text-2); }

.dl-card__badge-recommend {
	position: absolute; top: 16px; right: 16px;
	background: var(--accent);
	color: #fff;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: .66rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	z-index: 2;
	box-shadow: 0 6px 16px -4px rgba(31,116,243,.6);
}

/* requirements card */
.req-card {
	background: var(--bg-1);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 28px 32px;
	margin-top: 24px;
}
.req-card__title {
	display: flex; align-items: baseline; justify-content: space-between;
	margin-bottom: 20px;
	gap: 16px;
}
.req-card__title h3 {
	margin: 0;
	font-size: 1.05rem;
}
.req-card__title span {
	font-family: var(--font-display);
	font-style: italic;
	color: var(--text-4);
	font-size: .95rem;
}
.req-card__list {
	list-style: none; padding: 0; margin: 0;
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 36px;
}
.req-card__list div { display: flex; flex-direction: column; gap: 4px; }
.req-card__list dt {
	font-size: .72rem;
	color: var(--text-4);
	text-transform: uppercase;
	letter-spacing: .16em;
	font-weight: 500;
}
.req-card__list dd { color: var(--text-2); font-size: .95rem; margin: 0; line-height: 1.45; }
.req-card__list strong { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------- faq */

.faq {
	padding: 100px 0;
	background: var(--bg-1);
	border-block: 1px solid var(--line);
}
.faq__list {
	max-width: 820px;
	margin: 48px auto 0;
	display: flex; flex-direction: column; gap: 8px;
}
.faq__item {
	background: var(--bg-0);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color .2s var(--ease);
}
.faq__item:hover { border-color: var(--line-2); }
.faq__item[open] {
	border-color: var(--accent-soft);
	background: linear-gradient(180deg, rgba(31,116,243,.04) 0%, var(--bg-0) 100%);
}
.faq__item summary {
	list-style: none;
	padding: 18px 22px;
	display: flex; align-items: center; justify-content: space-between;
	gap: 18px;
	cursor: pointer;
	font-weight: 500;
	font-size: 1.02rem;
	color: var(--text);
	letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::marker { display: none; }
.chev {
	color: var(--text-3);
	transition: transform .25s var(--ease), color .2s var(--ease);
	flex-shrink: 0;
}
.faq__item[open] .chev {
	transform: rotate(180deg);
	color: var(--accent-2);
}
.faq__item p {
	margin: 0;
	padding: 0 22px 22px;
	color: var(--text-3);
	font-size: .95rem;
	line-height: 1.65;
	max-width: 64ch;
}

/* ------------------------------------------------------------- final cta */

.final {
	padding: 120px 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.final::before {
	content: "";
	position: absolute; inset: 0;
	background:
		radial-gradient(60% 60% at 50% 100%, rgba(31,116,243,.25) 0%, transparent 60%),
		radial-gradient(50% 50% at 30% 0%, rgba(240,230,210,.04) 0%, transparent 60%);
	pointer-events: none;
}
.final__inner {
	position: relative;
	max-width: 640px;
	margin-inline: auto;
	display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.final h2 {
	font-size: clamp(1.9rem, 4vw, 2.8rem);
	margin-bottom: 4px;
	line-height: 1.05;
}
.final p {
	color: var(--text-2);
	font-size: 1.08rem;
	margin: 0 0 20px;
}
.final .btn { margin-top: 10px; }
.final__small {
	margin-top: 12px;
	font-size: .82rem;
	color: var(--text-4);
}
.final__small .serif-italic { color: var(--warm-dim); }

/* ------------------------------------------------------------- footer */

.site-footer {
	border-top: 1px solid var(--line);
	padding: 56px 0 32px;
	background: var(--bg-0);
}
.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
	gap: 56px;
	align-items: flex-start;
	padding-bottom: 36px;
	border-bottom: 1px solid var(--line);
}
.site-footer__brand {
	display: flex; align-items: center; gap: 14px;
}
.site-footer__brand img { border-radius: 7px; }
.site-footer__name {
	font-weight: 600;
	color: var(--text);
	letter-spacing: -0.01em;
	font-size: 1.05rem;
}
.site-footer__tag {
	font-size: .88rem;
	color: var(--text-4);
	margin-top: 3px;
}
.site-footer__tag .serif-italic { color: var(--warm-dim); }
.site-footer__nav {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
}
.site-footer__nav h4 { margin-bottom: 12px; }
.site-footer__nav a {
	display: block;
	color: var(--text-3);
	font-size: .9rem;
	padding: 5px 0;
}
.site-footer__nav a:hover { color: var(--text); }
.site-footer__bottom {
	display: flex; justify-content: space-between;
	gap: 18px; flex-wrap: wrap;
	padding-top: 24px;
	font-size: .82rem;
	color: var(--text-5);
}
.site-footer__bottom .serif-italic { color: var(--warm-dim); }

/* ------------------------------------------------------------- entrance animations */

/* Stagger the first three hero elements in for a polished load */
@media (prefers-reduced-motion: no-preference) {
	.hero__copy > .eyebrow,
	.hero__copy > .hero__title,
	.hero__copy > .hero__sub,
	.hero__copy > .hero__ctas,
	.hero__copy > .hero__trust,
	.hero__visual {
		animation: fadeUp .8s var(--ease) both;
	}
	.hero__copy > .eyebrow       { animation-delay: .05s; }
	.hero__copy > .hero__title   { animation-delay: .15s; }
	.hero__copy > .hero__sub     { animation-delay: .30s; }
	.hero__copy > .hero__ctas    { animation-delay: .42s; }
	.hero__copy > .hero__trust   { animation-delay: .52s; }
	.hero__visual                { animation-delay: .24s; animation-duration: 1.1s; }
}
@keyframes fadeUp {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1120px) {
	.hero { padding: 80px 0 48px; }
	.hero__showcase-wrap { margin-top: 48px; }
}

@media (max-width: 820px) {
	:root { --header-h: 60px; }
	.site-nav { display: none; }
	.download-grid { grid-template-columns: 1fr; gap: 14px; }
	.features { padding: 72px 0; }
	.download { padding: 72px 0; }
	.hero__sub br { display: none; }
}

@media (max-width: 640px) {
	.hero { padding: 56px 0 36px; }
	.hero__title br { display: none; }
	.hero__ctas { width: 100%; }
	.hero__ctas .btn { flex: 1 1 auto; min-width: 0; }
	.hero__ctas .btn--lg { padding: 13px 16px; font-size: .95rem; }
	.hero__trust { gap: 14px; font-size: .82rem; }
}

@media (max-width: 560px) {
	.container { padding-inline: 18px; }
	.hero { padding: 40px 0 32px; }
	.hero__title { font-size: clamp(2.1rem, 11vw, 2.8rem); line-height: 1.05; }
	.hero__sub { font-size: .98rem; }
	.features, .download { padding: 56px 0; }
	.feature-grid { grid-template-columns: 1fr; gap: 10px; }
	.feature { padding: 22px 20px 20px; }
	.eyebrow { margin-bottom: 14px; }
	.dl-card { padding: 22px 20px 20px; }
	.dl-card__head { gap: 12px; }
	.dl-card__meta h3 { font-size: 1rem; }
	.showcase__frame { border-radius: 12px; }
	.site-header__inner { gap: 12px; }
	.brand__name { font-size: .95rem; }
}

@media (max-width: 380px) {
	.hero__title { font-size: clamp(1.8rem, 10vw, 2.4rem); }
	.hero__ctas { flex-direction: column; }
	.hero__ctas .btn { width: 100%; }
	.hero__trust { font-size: .8rem; gap: 10px; }
	.section-head h2 { font-size: 1.7rem; }
}

/* ------------------------------------------------------------- compact layout */

.download__small {
	margin: 28px auto 0;
	text-align: center;
	font-size: .88rem;
	color: var(--text-4);
	letter-spacing: .03em;
}

.site-footer--plain { padding: 28px 0; }
.site-footer--plain .site-footer__inner,
.site-footer--plain .site-footer__nav { display: none; }
.site-footer--plain .site-footer__bottom {
	padding: 0;
	border: 0;
	justify-content: space-between;
	color: var(--text-5);
	font-size: .8rem;
}
.site-footer--plain .site-footer__bottom a {
	color: var(--text-4);
}
.site-footer--plain .site-footer__bottom a:hover {
	color: var(--text-2);
}

/* ------------------------------------------------------------- focus */

a:focus-visible, button:focus-visible, summary:focus-visible {
	outline: 2px solid var(--accent-2);
	outline-offset: 3px;
	border-radius: 4px;
}
.btn:focus-visible { outline-offset: 2px; }
