/* =====================================================================
   SinWeave — product site
   aesthetic: warm near-black, phosphor-cream, lab-instrument asymmetry
   typography: Fraunces (display serif) · IBM Plex Sans · IBM Plex Mono
   ===================================================================== */

/* --------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------- */
:root {
	/* Warm dark palette */
	--c-bg:           #0b0a08;
	--c-bg-soft:      #110f0b;
	--c-bg-raised:    #17140f;
	--c-bg-sink:      #08070400;
	--c-line:         #2a241d;
	--c-line-strong:  #3c3428;

	/* Cream, matching the logo stroke */
	--c-cream:        #eadfd3;
	--c-cream-dim:    #bfb2a1;
	--c-cream-muted:  #7d7366;
	--c-cream-faint:  #4a433a;

	/* Accents (sparingly) */
	--c-amber:        #d4a877;
	--c-amber-dim:    #7a5d3a;
	--c-signal:       #6fb3a0;   /* the single cool accent — used rarely */
	--c-red:          #d36d63;

	/* Type */
	--ff-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
	--ff-body:    "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--ff-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	/* Layout */
	--max-w: 1200px;
	--gutter: clamp(20px, 4vw, 48px);
	--rail-w: 88px;

	/* Timing */
	--ease: cubic-bezier(.2, .7, .2, 1);
	--ease-long: cubic-bezier(.16, 1, .3, 1);
}

/* --------------------------------------------------------------------
   Reset-ish
   -------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	text-rendering: optimizeLegibility;
}
body {
	background: var(--c-bg);
	color: var(--c-cream);
	font-family: var(--ff-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.55;
	overflow-x: hidden;
	position: relative;
	isolation: isolate;
	letter-spacing: 0.005em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 180ms var(--ease); }
a:hover { color: var(--c-amber); }
code, pre { font-family: var(--ff-mono); font-size: 0.85em; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }

::selection {
	background: var(--c-amber);
	color: var(--c-bg);
}

/* --------------------------------------------------------------------
   Decorative overlays (fixed, pointer-events: none)
   -------------------------------------------------------------------- */
.overlay {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 1;
}

/* Light graph-paper grid, barely visible */
.overlay--grid {
	background-image:
		linear-gradient(to right, rgba(234,223,211,0.04) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(234,223,211,0.04) 1px, transparent 1px);
	background-size: 60px 60px;
	mix-blend-mode: screen;
	opacity: 0.6;
}

/* Analog grain using SVG fractal noise — warm, not distracting */
.overlay--grain {
	opacity: 0.07;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/></svg>");
}

/* A soft warm vignette */
.overlay--vignette {
	background:
		radial-gradient(ellipse 120% 80% at 50% 0%, rgba(212,168,119,0.09) 0%, transparent 60%),
		radial-gradient(ellipse 100% 100% at 50% 120%, rgba(0,0,0,0.75) 0%, transparent 60%);
}

/* --------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------- */
.topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px var(--gutter);
	background: linear-gradient(to bottom, rgba(11,10,8,0.92) 70%, rgba(11,10,8,0));
	backdrop-filter: blur(10px) saturate(110%);
	-webkit-backdrop-filter: blur(10px) saturate(110%);
	border-bottom: 1px solid transparent;
	transition: border-color 280ms var(--ease), background-color 280ms var(--ease);
}
.topbar.is-scrolled {
	border-bottom-color: var(--c-line);
	background: rgba(11,10,8,0.86);
}

.topbar__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--ff-mono);
}
.topbar__brand img { opacity: 0.95; }

.brand-mark {
	display: flex;
	flex-direction: column;
	line-height: 1;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.brand-mark__name {
	font-family: var(--ff-display);
	font-style: italic;
	font-weight: 500;
	font-size: 20px;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--c-cream);
}
.brand-mark__build {
	color: var(--c-cream-muted);
	font-size: 10px;
	margin-top: 2px;
}

.topbar__nav {
	display: flex;
	align-items: center;
	gap: 28px;
	font-family: var(--ff-mono);
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--c-cream-dim);
}
.topbar__nav a { position: relative; padding: 4px 0; }
.topbar__nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -2px;
	height: 1px;
	background: var(--c-amber);
	transform-origin: left;
	transform: scaleX(0);
	transition: transform 260ms var(--ease);
}
.topbar__nav a:hover::after { transform: scaleX(1); }

@media (max-width: 880px) {
	.topbar__nav { display: none; }
}

/* --------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 2px;
	font-family: var(--ff-body);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0;
	transition: transform 220ms var(--ease), background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
	cursor: pointer;
	border: 1px solid transparent;
	line-height: 1.15;
	text-align: left;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
	background: var(--c-cream);
	color: var(--c-bg);
	padding: 14px 22px;
}
.btn--primary:hover {
	background: var(--c-amber);
	color: var(--c-bg);
}
.btn__primary { display: block; font-weight: 600; font-size: 15px; }
.btn__secondary {
	display: block;
	margin-top: 2px;
	font-family: var(--ff-mono);
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.65;
}

.btn--ghost {
	border-color: var(--c-line-strong);
	color: var(--c-cream);
	background: transparent;
}
.btn--ghost:hover {
	border-color: var(--c-amber);
	color: var(--c-amber);
}

.btn--tiny {
	padding: 8px 14px;
	font-family: var(--ff-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-cream);
	border-color: var(--c-line-strong);
	border-radius: 2px;
}
.btn--tiny:hover {
	background: var(--c-cream);
	color: var(--c-bg);
	border-color: var(--c-cream);
}

/* --------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */
.hero {
	position: relative;
	max-width: var(--max-w);
	margin: 0 auto;
	padding: clamp(60px, 9vw, 120px) var(--gutter) clamp(80px, 12vw, 160px);
	min-height: 86vh;
	display: grid;
	grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--rail-w);
	grid-template-rows: auto;
	gap: clamp(24px, 4vw, 64px);
	z-index: 2;
}

/* Pin each hero child to its intended column so source order doesn't
   matter. Without this, the right-rail <aside> (written before
   .hero__content in the HTML) greedily claims column 2 and pushes the
   title into the narrow 88px rail column. */
.hero > .rail--left  { grid-column: 1; grid-row: 1; }
.hero > .hero__content { grid-column: 2; grid-row: 1; }
.hero > .rail--right { grid-column: 3; grid-row: 1; }

.hero__wave {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	opacity: 0.4;
}

/* Rails — the lab-notebook side annotations */
.rail {
	font-family: var(--ff-mono);
	font-size: 10.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-cream-muted);
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 10px;
}
.rail--right {
	text-align: right;
	align-items: flex-end;
}
.rail__tick {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding-left: 10px;
	border-left: 1px solid var(--c-line-strong);
	color: var(--c-cream);
}
.rail--right .rail__tick {
	padding-left: 0;
	padding-right: 10px;
	border-left: none;
	border-right: 1px solid var(--c-line-strong);
	align-items: flex-end;
}
.rail__tick--muted { color: var(--c-cream-muted); }
.rail__num { font-weight: 500; }
.rail__label { opacity: 0.8; }

/* Instrument readout on the right rail */
.readout {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 14px;
	border: 1px solid var(--c-line);
	border-radius: 2px;
	background: linear-gradient(180deg, rgba(23,20,15,0.8), rgba(11,10,8,0.6));
	width: 168px;
}
.readout__row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 10px;
	letter-spacing: 0.08em;
}
.readout__k { color: var(--c-cream-muted); }
.readout__v { color: var(--c-amber); font-weight: 500; }

@media (max-width: 1080px) {
	.hero { grid-template-columns: 1fr; }
	.rail--left, .rail--right { display: none; }
	.hero > .hero__content { grid-column: 1; }
}

/* Hero content */
.hero__content {
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: 640px;
	padding-top: 30px;
}

.hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--ff-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-cream-muted);
	animation: fade-up 800ms var(--ease-long) both;
}
.pill {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid var(--c-amber);
	color: var(--c-amber);
	border-radius: 100px;
	font-weight: 500;
	font-size: 10px;
	letter-spacing: 0.14em;
}
.eyebrow-rule {
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--c-line-strong), transparent);
	max-width: 180px;
}
.eyebrow-note { font-size: 11px; }

.hero__title {
	font-family: var(--ff-display);
	font-weight: 400;
	font-size: clamp(42px, 7.2vw, 108px);
	line-height: 0.95;
	letter-spacing: -0.025em;
	color: var(--c-cream);
	animation: fade-up 900ms 120ms var(--ease-long) both;
}
.hero__title-top { display: block; font-weight: 350; }
.hero__title-accent { display: block; }
.hero__title-accent em {
	font-style: italic;
	font-weight: 400;
	color: var(--c-amber);
	/* Fraunces variable axes — soft + WONK to play up its character */
	font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
	padding-right: 4px;
}

.hero__lede {
	font-size: 18px;
	line-height: 1.6;
	color: var(--c-cream-dim);
	max-width: 540px;
	animation: fade-up 1000ms 240ms var(--ease-long) both;
}

.hero__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	animation: fade-up 1100ms 360ms var(--ease-long) both;
}

.hero__ticker {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--ff-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--c-cream-muted);
	padding-top: 18px;
	border-top: 1px dashed var(--c-line);
	animation: fade-up 1200ms 480ms var(--ease-long) both;
}
.hero__ticker .dim { color: var(--c-cream-faint); }
.hero__ticker em { color: var(--c-cream-faint); font-style: normal; }

/* The "specimen" chat card — sits absolute, slightly off-axis */
.specimen {
	position: absolute;
	right: clamp(-40px, -2vw, 24px);
	bottom: clamp(20px, 6vw, 80px);
	width: min(400px, 42vw);
	padding: 0;
	background: var(--c-bg-raised);
	border: 1px solid var(--c-line);
	border-radius: 4px;
	box-shadow:
		0 2px 0 0 rgba(234,223,211,0.04) inset,
		0 30px 60px -20px rgba(0,0,0,0.7),
		0 10px 30px -10px rgba(212,168,119,0.12);
	transform: rotate(1deg);
	animation: specimen-in 1400ms 500ms var(--ease-long) both;
	font-size: 13px;
	z-index: 1;
}
.specimen:hover {
	transform: rotate(0deg) translateY(-4px);
	transition: transform 600ms var(--ease-long);
}

.specimen__cap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	border-bottom: 1px solid var(--c-line);
	font-family: var(--ff-mono);
	font-size: 10.5px;
	color: var(--c-cream-muted);
	text-transform: lowercase;
	letter-spacing: 0.04em;
}
.specimen__num {
	color: var(--c-amber);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.specimen__title {
	flex: 1;
	text-align: center;
	color: var(--c-cream-dim);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 0 12px;
}
.specimen__lights { display: inline-flex; gap: 6px; }
.specimen__lights i {
	width: 8px; height: 8px; border-radius: 100%;
	background: var(--c-line-strong);
}
.specimen__lights i:first-child { background: var(--c-red); }
.specimen__lights i:nth-child(2) { background: var(--c-amber); }
.specimen__lights i:last-child { background: var(--c-signal); }

.specimen__body {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.msg {
	display: flex;
	gap: 10px;
	padding: 8px 10px;
	border: 1px solid var(--c-line);
	border-radius: 2px;
	background: var(--c-bg-soft);
	align-items: flex-start;
}
.msg__who {
	font-family: var(--ff-mono);
	font-size: 9.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-amber);
	padding-top: 2px;
	min-width: 56px;
}
.msg--ai .msg__who { color: var(--c-signal); }
.msg__text { color: var(--c-cream); font-size: 12.5px; line-height: 1.5; }
.msg__text code { color: var(--c-amber); background: rgba(212,168,119,0.08); padding: 0 4px; border-radius: 2px; }

.msg--diff {
	padding: 10px;
	border-color: var(--c-line-strong);
	background: #0e0c09;
}
.msg--diff pre {
	margin: 0;
	font-size: 11px;
	line-height: 1.6;
	color: var(--c-cream-dim);
	white-space: pre-wrap;
}
.msg--diff .ln { color: var(--c-cream-faint); display: inline-block; width: 32px; text-align: right; padding-right: 8px; }
.msg--diff .add { color: var(--c-signal); }
.msg--diff .del { color: var(--c-red); }
.msg--diff .ctx { color: var(--c-cream-muted); }

.msg--meta {
	font-family: var(--ff-mono);
	font-size: 10.5px;
	color: var(--c-cream-muted);
	padding: 6px 10px;
	border: none;
	background: transparent;
	align-items: center;
}
.blip {
	width: 7px; height: 7px; border-radius: 100%;
	background: var(--c-signal);
	box-shadow: 0 0 0 3px rgba(111,179,160,0.18);
	animation: blip 1.6s infinite var(--ease);
}
@keyframes blip {
	0%, 100% { box-shadow: 0 0 0 3px rgba(111,179,160,0.18); }
	50%      { box-shadow: 0 0 0 7px rgba(111,179,160,0.00); }
}

@media (max-width: 1200px) {
	.specimen {
		position: static;
		width: 100%;
		transform: none;
		margin-top: 40px;
		/* When the card drops into flow, let it span the full content
		   row so it doesn't land in the narrow rail column. */
		grid-column: 1 / -1;
		grid-row: auto;
	}
}

/* --------------------------------------------------------------------
   Generic section
   -------------------------------------------------------------------- */
.section {
	position: relative;
	max-width: var(--max-w);
	margin: 0 auto;
	padding: clamp(60px, 9vw, 120px) var(--gutter);
	z-index: 2;
}
.section + .section { border-top: 1px solid var(--c-line); }

.section__head {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 32px;
	row-gap: 12px;
	align-items: baseline;
	padding-bottom: 48px;
	margin-bottom: 48px;
	border-bottom: 1px dashed var(--c-line);
}
.section__num {
	font-family: var(--ff-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-amber);
	padding-top: 8px;
	grid-row: span 2;
}
.section__title {
	font-family: var(--ff-display);
	font-weight: 400;
	font-size: clamp(36px, 5.5vw, 72px);
	line-height: 1;
	letter-spacing: -0.015em;
}
.section__title em {
	font-style: italic;
	color: var(--c-amber);
	font-variation-settings: "SOFT" 100, "WONK" 1;
}
.section__sub {
	max-width: 560px;
	color: var(--c-cream-dim);
	font-size: 16px;
}

/* --------------------------------------------------------------------
   Feature grid (§01)
   -------------------------------------------------------------------- */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 0;
	border: 1px solid var(--c-line);
	border-radius: 2px;
	overflow: hidden;
	background: var(--c-bg-soft);
}
.feature {
	padding: 36px 32px;
	border-right: 1px solid var(--c-line);
	border-bottom: 1px solid var(--c-line);
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: relative;
	transition: background-color 300ms var(--ease);
}
.feature:hover { background: var(--c-bg-raised); }
.feature:hover .feature__mark svg { color: var(--c-amber); }
/* trim trailing borders per row — using attribute trick with CSS grid is awkward,
   so we use :nth-last-child hacks for common column counts. */
.feature:last-child { border-right: none; border-bottom: none; }
@media (min-width: 880px) {
	.feature-grid { grid-template-columns: repeat(3, 1fr); }
	.feature:nth-child(3n) { border-right: none; }
	.feature:nth-last-child(-n+3) { border-bottom: none; }
}
.feature__mark {
	width: 40px;
	height: 40px;
	color: var(--c-cream);
	transition: color 300ms var(--ease);
}
.feature__mark svg { width: 100%; height: 100%; display: block; }
.feature h3 {
	font-family: var(--ff-display);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--c-cream);
}
.feature p {
	color: var(--c-cream-dim);
	font-size: 14.5px;
	line-height: 1.6;
}

/* --------------------------------------------------------------------
   Demo (§02) — two columns
   -------------------------------------------------------------------- */
.section--split .demo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}
@media (max-width: 980px) {
	.section--split .demo { grid-template-columns: 1fr; }
}

.demo__steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.demo__steps li {
	display: grid;
	grid-template-columns: 60px 1fr;
	gap: 20px;
	align-items: start;
	padding: 20px 0;
	border-top: 1px dashed var(--c-line);
}
.demo__steps li:first-child { border-top: none; padding-top: 0; }
.demo__step {
	font-family: var(--ff-mono);
	font-size: 28px;
	color: var(--c-amber);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1;
	padding-top: 6px;
}
.demo__steps h4 {
	font-family: var(--ff-display);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.2;
	color: var(--c-cream);
	margin-bottom: 6px;
}
.demo__steps p {
	font-size: 15px;
	color: var(--c-cream-dim);
	line-height: 1.6;
}

.demo__terminal {
	background: #0a0906;
	border: 1px solid var(--c-line);
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
	position: sticky;
	top: 100px;
}
.demo__bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	background: var(--c-bg-raised);
	border-bottom: 1px solid var(--c-line);
	font-family: var(--ff-mono);
	font-size: 10.5px;
	color: var(--c-cream-muted);
	letter-spacing: 0.04em;
}
.demo__bar i { width: 10px; height: 10px; border-radius: 100%; background: var(--c-line-strong); }
.demo__bar i:first-child { background: var(--c-red); }
.demo__bar i:nth-child(2) { background: var(--c-amber); }
.demo__bar i:nth-child(3) { background: var(--c-signal); }
.demo__bar span { margin-left: 12px; }

.demo__body {
	margin: 0;
	padding: 24px 22px 30px;
	font-family: var(--ff-mono);
	font-size: 12.5px;
	line-height: 1.8;
	color: var(--c-cream-dim);
	overflow-x: auto;
}
.demo__body .p { color: var(--c-amber); }
.demo__body .c { color: var(--c-cream); }
.demo__body .m { color: var(--c-cream-muted); }
.demo__body .u { color: var(--c-signal); }
.demo__body .ok { color: var(--c-signal); display: block; padding-top: 6px; }
.cursor {
	display: inline-block;
	width: 8px;
	height: 1.1em;
	background: var(--c-cream);
	vertical-align: -2px;
	animation: cursor 1s infinite steps(2);
}
@keyframes cursor { 50% { opacity: 0; } }

/* --------------------------------------------------------------------
   Models (§03)
   -------------------------------------------------------------------- */
.providers {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	border: 1px solid var(--c-line);
	border-radius: 2px;
	background: var(--c-bg-soft);
}
.providers li {
	padding: 22px 24px;
	border-right: 1px solid var(--c-line);
	border-bottom: 1px solid var(--c-line);
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: background-color 250ms var(--ease);
	font-family: var(--ff-mono);
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--c-cream-muted);
}
.providers li:hover { background: var(--c-bg-raised); color: var(--c-cream); }
.providers li strong {
	font-family: var(--ff-display);
	font-weight: 500;
	font-size: 22px;
	letter-spacing: -0.01em;
	color: var(--c-cream);
	text-transform: none;
}
@media (min-width: 640px) {
	.providers { grid-template-columns: repeat(3, 1fr); }
	.providers li:nth-child(3n) { border-right: none; }
}
@media (min-width: 1000px) {
	.providers { grid-template-columns: repeat(4, 1fr); }
	.providers li:nth-child(3n) { border-right: 1px solid var(--c-line); }
	.providers li:nth-child(4n) { border-right: none; }
	.providers li:nth-last-child(-n+4) { border-bottom: none; }
}

.privacy-note {
	margin-top: 36px;
	padding: 24px 28px;
	border: 1px solid var(--c-line-strong);
	border-radius: 2px;
	background:
		radial-gradient(ellipse at top left, rgba(111,179,160,0.06), transparent 60%),
		var(--c-bg-soft);
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 20px;
	align-items: start;
	color: var(--c-cream-dim);
	font-size: 14.5px;
	line-height: 1.6;
}
.privacy-note svg { color: var(--c-signal); }
.privacy-note strong { color: var(--c-cream); font-weight: 500; display: block; margin-bottom: 4px; }

/* --------------------------------------------------------------------
   Download section
   -------------------------------------------------------------------- */
.download-section {
	position: relative;
	padding: clamp(60px, 9vw, 120px) var(--gutter);
	max-width: var(--max-w);
	margin: 0 auto;
	z-index: 2;
	border-top: 1px solid var(--c-line);
	border-bottom: 1px solid var(--c-line);
	background:
		radial-gradient(ellipse at 50% 0%, rgba(212,168,119,0.07) 0%, transparent 70%),
		var(--c-bg-soft);
}

.download__eyebrow {
	font-family: var(--ff-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-amber);
	margin-bottom: 16px;
	text-align: center;
}
.download__title {
	font-family: var(--ff-display);
	font-weight: 400;
	font-size: clamp(44px, 7vw, 88px);
	line-height: 0.95;
	text-align: center;
	letter-spacing: -0.02em;
	color: var(--c-cream);
	margin-bottom: 48px;
}
.download__title em {
	font-style: italic;
	color: var(--c-amber);
	font-variation-settings: "SOFT" 100, "WONK" 1;
}

.download__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
	max-width: 980px;
	margin: 0 auto;
}
.card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 28px 28px 24px;
	background: var(--c-bg-raised);
	border: 1px solid var(--c-line-strong);
	border-radius: 2px;
	transition: transform 260ms var(--ease), border-color 260ms var(--ease), background-color 260ms var(--ease);
	position: relative;
	overflow: hidden;
}
.card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 200% 80% at 50% 120%, rgba(212,168,119,0.12), transparent 60%);
	opacity: 0;
	transition: opacity 260ms var(--ease);
}
.card:hover {
	transform: translateY(-3px);
	border-color: var(--c-amber);
}
.card:hover::before { opacity: 1; }

.card__kicker {
	font-family: var(--ff-mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-amber);
	position: relative; z-index: 1;
}
.card__title {
	font-family: var(--ff-display);
	font-weight: 500;
	font-size: 28px;
	line-height: 1.1;
	letter-spacing: -0.015em;
	color: var(--c-cream);
	position: relative; z-index: 1;
}
.card__meta {
	font-family: var(--ff-mono);
	font-size: 11px;
	color: var(--c-cream-muted);
	margin-top: auto;
	padding-top: 20px;
	position: relative; z-index: 1;
}
.card__cta {
	font-family: var(--ff-mono);
	font-size: 12px;
	color: var(--c-cream);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 500;
	position: relative; z-index: 1;
}
.card--primary {
	background:
		linear-gradient(135deg, rgba(234,223,211,0.08), transparent 60%),
		var(--c-bg-raised);
	border-color: var(--c-cream);
}
.card--primary .card__title { color: var(--c-amber); }
.card--soon {
	opacity: 0.55;
	cursor: default;
	pointer-events: auto;
}
.card--soon:hover { opacity: 0.6; transform: none; border-color: var(--c-line); }
.card--soon:hover::before { opacity: 0; }

.download__note {
	text-align: center;
	margin-top: 36px;
	color: var(--c-cream-muted);
	font-size: 13px;
}
.download__note a { color: var(--c-amber); border-bottom: 1px solid var(--c-amber-dim); }
.download__note a:hover { color: var(--c-cream); }

/* --------------------------------------------------------------------
   FAQ (§04)
   -------------------------------------------------------------------- */
.faq { max-width: 860px; }
.faq details {
	padding: 22px 0;
	border-top: 1px dashed var(--c-line);
	cursor: pointer;
}
.faq details:last-child { border-bottom: 1px dashed var(--c-line); }
.faq summary {
	font-family: var(--ff-display);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.3;
	list-style: none;
	color: var(--c-cream);
	position: relative;
	padding-right: 40px;
	transition: color 220ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: -2px;
	font-family: var(--ff-mono);
	font-size: 22px;
	color: var(--c-amber);
	transition: transform 260ms var(--ease);
	font-weight: 300;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--c-amber); }
.faq summary:hover { color: var(--c-amber); }
.faq details p {
	margin-top: 14px;
	color: var(--c-cream-dim);
	font-size: 15.5px;
	line-height: 1.7;
	max-width: 720px;
}

/* --------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------- */
.foot {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 80px var(--gutter) 32px;
	border-top: 1px solid var(--c-line);
	color: var(--c-cream-muted);
	position: relative;
	z-index: 2;
}
.foot__grid {
	display: grid;
	grid-template-columns: minmax(280px, 2fr) 1fr;
	gap: 48px;
	padding-bottom: 48px;
	border-bottom: 1px dashed var(--c-line);
	align-items: start;
}
@media (max-width: 820px) {
	.foot__grid { grid-template-columns: 1fr; gap: 32px; }
}
.foot__brand { display: flex; flex-direction: column; gap: 10px; }
.foot__name {
	font-family: var(--ff-display);
	font-style: italic;
	font-weight: 500;
	font-size: 26px;
	color: var(--c-cream);
	margin-top: 4px;
}
.foot__blurb {
	font-size: 13.5px;
	line-height: 1.6;
	max-width: 320px;
}
.foot__col h5 {
	font-family: var(--ff-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-amber);
	margin-bottom: 18px;
	font-weight: 500;
}
.foot__col a {
	display: block;
	padding: 5px 0;
	font-size: 14px;
	color: var(--c-cream-dim);
}
.foot__col a:hover { color: var(--c-amber); }

.foot__line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 26px;
	font-family: var(--ff-mono);
	font-size: 11px;
	color: var(--c-cream-faint);
	letter-spacing: 0.05em;
}
.foot__line a { color: var(--c-cream-muted); border-bottom: 1px dashed var(--c-line-strong); }
.foot__line a:hover { color: var(--c-amber); }

/* --------------------------------------------------------------------
   Motion: shared keyframes
   -------------------------------------------------------------------- */
@keyframes fade-up {
	from { opacity: 0; transform: translateY(22px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes specimen-in {
	from { opacity: 0; transform: translateY(40px) rotate(-1deg); }
	to   { opacity: 1; transform: translateY(0) rotate(1deg); }
}

/* Scroll-revealed blocks. JS adds .is-in when they enter the viewport */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-long), transform 700ms var(--ease-long); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
.reveal[data-delay="6"] { transition-delay: 480ms; }

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