/* ==========================================================================
   Hivebot V5 — Design System
   Restrained dark theme. Brand yellow is the only decorative accent;
   green is reserved for semantic "positive". No frameworks.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	/* Surfaces — neutral, solid, no translucency except the sticky nav */
	--bg:            #0D0D0D;
	--bg-2:          #131313;
	--bg-3:          #181818;
	--surface:       #151515;
	--surface-2:     #1C1C1C;
	--surface-3:     #232323;
	--border:        #262626;
	--border-2:      #363636;

	/* Text — all AA or better on --bg */
	--text:          #FAFAFA;
	--text-2:        #ADADAD;
	--text-3:        #858585;

	/* Accents */
	--accent:        #FAFAFA;   /* monochrome accent; the yellow logo is the only brand colour */
	--accent-ink:    #0D0D0D;   /* text on accent fills */
	--green:         #38FF9B;   /* brand green — positive / confirmed only */
	--green-ink:     #0A2417;
	--red:           #FF7A85;   /* negative only */

	/* Type */
	--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
	/* Display face: tightly tracked neo-grotesque. System stack, no webfont cost.
	   Helvetica Neue on macOS, Arial on Windows — close enough to hold shape. */
	--display: 'Helvetica Neue', 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;

	/* Geometry — tighter radii read as more precise */
	--r-sm: 6px;
	--r-md: 8px;
	--r-lg: 12px;
	--r-xl: 14px;
	--maxw: 1160px;
	--nav-h: 68px;

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Anything that can be jumped to keeps clear of the sticky header. Unlike a
   computed window.scrollTo, scroll-margin is honoured by whichever ancestor
   actually scrolls — which is not necessarily this window.
   NB: this is the ONLY scroll offset. A scroll-padding-top on <html> used to
   sit alongside it and the two added up, dropping targets ~166px down and
   leaving the previous section visible above them. */
[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img, picture, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 2px;
}

::selection { background: rgba(250, 250, 250, .20); color: var(--accent-ink); }

/* Modelled light. Flat black reads cheap; a key light, a floor sweep and a
   vignette give the ground depth without adding any colour. */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(1100px 700px at 72% 6%, rgba(255,255,255,.075), transparent 62%),
		radial-gradient(700px 500px at 12% 0%, rgba(255,255,255,.035), transparent 60%);
}
body::after {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background: radial-gradient(120% 90% at 50% 42%, transparent 45%, rgba(0,0,0,.55) 100%);
}

.page { position: relative; z-index: 1; }

/* Page transition for the bundled preview. Uses opacity + the independent
   `translate` property rather than `transform`, so it never creates a
   containing block for the fixed dialogs that live inside a page. */
.vpage.is-entering { animation: page-in .34s var(--ease) both; }
@keyframes page-in {
	from { opacity: 0; translate: 0 14px; }
	to   { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) { .vpage.is-entering { animation: none; } }

/* Keyboard users shouldn't tab through eleven nav items on every page */
.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 200;
	padding: 10px 18px;
	border-radius: var(--r-md);
	background: var(--text);
	color: var(--accent-ink);
	font-size: 14px;
	font-weight: 600;
	transition: top .16s var(--ease);
}
.skip-link:focus { top: 12px; }
#main:focus { outline: none; }

/* ---------- Layout ---------- */
.container {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 24px;
}
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 68px 0; }
.section--alt { background: var(--bg-2); }
.section--edge { border-top: 1px solid var(--border); }
/* Fills the viewport below the header, so landing here from the nav shows the
   whole block rather than part of it. */
.section--fill {
	min-height: calc(100svh - var(--nav-h));
	display: flex;
	align-items: center;
	/* Biased padding: content sits high in the fill so the block breathes
	   below the cards rather than being pinned dead-centre. The pair still
	   sums close to the section default, so the fill height is preserved. */
	padding-top: 88px;
	padding-bottom: 152px;
}
@supports not (height: 100svh) {
	.section--fill { min-height: calc(100vh - var(--nav-h)); }
}
.section--fill > .container { width: 100%; }

.center { text-align: center; }
.stack { display: grid; gap: 14px; }

/* ---------- Typography ---------- */

h1, .h1 {
	font-family: var(--display);
	font-size: clamp(38px, 5.4vw, 72px);
	line-height: .98;
	letter-spacing: -.038em;
	font-weight: 700;
}
h2, .h2 {
	font-family: var(--display);
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.05;
	letter-spacing: -.03em;
	font-weight: 700;
}
h3, .h3 {
	font-size: clamp(21px, 2.3vw, 28px);
	line-height: 1.25;
	letter-spacing: -.018em;
	font-weight: 600;
}
h4, .h4 {
	font-size: clamp(18px, 1.9vw, 22px);
	line-height: 1.3;
	letter-spacing: -.012em;
	font-weight: 600;
}
h5, .h5 {
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: -.005em;
	font-weight: 600;
}

.lead {
	font-size: clamp(16px, 1.4vw, 18px);
	line-height: 1.6;
	color: var(--text-2);
}
.muted { color: var(--text-2); }
.dim   { color: var(--text-3); }
.small { font-size: 14px; line-height: 1.6; }

/* Emphasis word in a heading — solid brand yellow, not a gradient */
.grad { color: var(--accent); }

.sec-head { max-width: 680px; margin: 0 auto 52px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.sec-head p { color: var(--text-2); font-size: 16.5px; }
.sec-head--left { margin-left: 0; text-align: left; justify-items: start; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: var(--r-md);
	border: 1px solid transparent;
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: -.005em;
	cursor: pointer;
	white-space: nowrap;
	transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), opacity .16s var(--ease);
}

.btn--primary {
	background: var(--accent);
	color: var(--accent-ink);
}
.btn--primary:hover { background: #FFFFFF; }

.btn--accent {
	background: var(--text);
	color: var(--accent-ink);
}
.btn--accent:hover { background: #FFFFFF; }

.btn--ghost {
	background: transparent;
	border-color: var(--border-2);
	color: var(--text);
}
.btn--ghost:hover { background: var(--surface-2); border-color: #454B55; }

.btn--sm { padding: 8px 15px; font-size: 13.5px; }
.btn--lg { padding: 14px 26px; font-size: 15.5px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn-note { font-size: 13.5px; color: var(--text-3); margin-top: 16px; }


/* ---------- Navigation ---------- */
.nav {
	position: sticky;
	top: 0;
	z-index: 70;
	height: var(--nav-h);
	display: flex;
	align-items: center;
	/* No bar of its own — the page background (and its ambient light) shows
	   straight through, so the header reads as part of the page rather than a
	   black slab sitting on top of it. */
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background .25s var(--ease), border-color .25s var(--ease),
	            backdrop-filter .25s var(--ease);
}
/* Once content starts passing underneath it needs just enough veil to stay
   legible — a light blur rather than a fill. */
.nav.is-stuck {
	background: rgba(13, 13, 13, .55);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 20px; width: 100%; }
.nav__brand img { height: 28px; width: auto; }

.nav__menu { display: flex; align-items: center; gap: 1px; margin-left: auto; }
.nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 13px;
	border-radius: var(--r-sm);
	font-size: 14px;
	font-weight: 500;
	color: var(--text-2);
	transition: color .16s var(--ease), background .16s var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link svg { width: 10px; height: 10px; opacity: .6; transition: transform .18s var(--ease); }
.nav__link[aria-current="page"] { color: var(--text); }

.nav__item { position: relative; }
.nav__item.is-open > .nav__link { color: var(--text); background: var(--surface-2); }
.nav__item.is-open > .nav__link svg { transform: rotate(180deg); }

.nav__drop {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 176px;
	padding: 6px;
	border-radius: var(--r-md);
	background: var(--bg-3);
	border: 1px solid var(--border);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.nav__item.is-open .nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__drop a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--r-sm);
	font-size: 14px;
	color: var(--text-2);
	transition: background .14s var(--ease), color .14s var(--ease);
}
.nav__drop a:hover { background: var(--surface-2); color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: 6px; margin-left: 12px; }
/* Nav actions read as one pill CTA plus a plain text link */
.nav__actions .btn--primary { border-radius: 999px; padding-left: 18px; padding-right: 18px; }
.nav__actions .btn--ghost {
	background: transparent;
	border-color: transparent;
	color: var(--text-2);
	padding-left: 12px;
	padding-right: 12px;
}
.nav__actions .btn--ghost:hover { background: transparent; border-color: transparent; color: var(--text); }

.nav__mobile { display: none; }

.nav__burger {
	display: none;
	width: 40px; height: 40px;
	align-items: center; justify-content: center;
	border-radius: var(--r-md);
	background: transparent;
	border: 1px solid var(--border-2);
	cursor: pointer;
	margin-left: auto;
}
.nav__burger span {
	display: block;
	width: 17px; height: 1.5px;
	background: var(--text);
	position: relative;
	transition: background .2s var(--ease);
}
.nav__burger span::before, .nav__burger span::after {
	content: '';
	position: absolute; left: 0;
	width: 17px; height: 1.5px;
	background: var(--text);
	transition: transform .22s var(--ease);
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top: 6px; }
.nav__burger.is-active span { background: transparent; }
.nav__burger.is-active span::before { transform: translateY(6px) rotate(45deg); }
.nav__burger.is-active span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	/* Runs full height so its lower rule lands on the next section's edge */
	min-height: calc(100svh - var(--nav-h));
	display: flex;
	align-items: center;
	padding: 96px 0;
	overflow: hidden;
	border-bottom: 1px solid var(--border);
}
@supports not (height: 100svh) {
	.hero { min-height: calc(100vh - var(--nav-h)); }
}
.hero__inner { width: 100%; }
/* Grazing light across the floor of the hero */
.hero::after {
	content: '';
	position: absolute;
	left: -10%; right: -10%;
	bottom: 12%;
	height: 340px;
	pointer-events: none;
	background: linear-gradient(97deg, transparent 6%, rgba(255,255,255,.11) 40%, rgba(255,255,255,.04) 64%, transparent 90%);
	filter: blur(28px);
	transform: rotate(-3.5deg);
}
.hero > * { position: relative; z-index: 1; }
.hero__inner { position: relative; }
.hero__grid {
	display: grid;
	grid-template-columns: 1.02fr .98fr;
	gap: 64px;
	align-items: center;
}
.hero__content {
	display: grid;
	gap: 26px;
	justify-items: start;
	text-align: left;
}
.hero h1 { max-width: 15ch; text-wrap: balance; }
.hero .lead { max-width: 46ch; }
.hero__object { perspective: 1400px; }

.hero__proof {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
	margin-top: 2px;
}
.hero__proof span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13.5px;
	color: var(--text-3);
}
.hero__proof svg { width: 14px; height: 14px; fill: var(--green); flex-shrink: 0; }

@keyframes marquee-shift { from { transform: translateX(0); } to { transform: translateX(var(--marquee-shift, -50%)); } }

/* ---------- Logo marquee ---------- */
/* Generous overall, but weighted to the bottom so the header sits near the
   top edge of the band instead of floating in the middle of it. */
.logos { padding: 44px 0 92px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
/* Matches h2 exactly - this is a section header like any other */
.logos__title {
	text-align: center;
	font-family: var(--display);
	font-size: clamp(30px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.03em;
	color: var(--text);
	margin-bottom: 46px;
}
.marquee {
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
/* Only three logos here, so a narrow set gets cloned several times across the
   viewport and the repeat becomes obvious. A wide gap makes one set span far
   more of the screen, so fewer copies are in view at once. The padding must
   equal the gap: the JS measures one set plus its trailing gap as the exact
   loop distance, so they have to match or the wrap jumps. */
.marquee__track { display: flex; align-items: center; gap: 110px; padding-right: 110px; width: max-content; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img {
	height: 70px;
	width: auto;
	/* Desaturated so partner brand colours don't fight the accent,
	   brightened so they stay legible on a dark ground. */
	opacity: .85;
	filter: grayscale(1) brightness(1.45);
	transition: opacity .2s var(--ease), filter .2s var(--ease);
}
.marquee a:hover img { opacity: 1; filter: grayscale(0) brightness(1.1); }


/* ---------- Generic card ---------- */
.card {
	position: relative;
	padding: 28px;
	border-radius: var(--r-lg);
	background: var(--surface);
	border: 1px solid var(--border);
	transition: border-color .18s var(--ease);
}
.card:hover { border-color: var(--border-2); }

/* ---------- Audience ---------- */
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }
.aud-card h3 { margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.aud-card .tag {
	width: 26px; height: 26px;
	display: grid; place-items: center;
	border-radius: var(--r-sm);
	flex-shrink: 0;
}
.aud-card--yes .tag { background: rgba(56, 255, 155, .12); }
.aud-card--no  .tag { background: rgba(255, 122, 133, .12); }
.aud-card .tag svg { width: 13px; height: 13px; }
.aud-card--yes .tag svg { fill: var(--green); }
.aud-card--no  .tag svg { fill: var(--red); }

.aud-list li {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 9px 0;
	font-size: 15px;
	color: var(--text-2);
	border-bottom: 1px solid var(--border);
}
.aud-list li:last-child { border-bottom: 0; }
.aud-list li::before {
	content: '';
	width: 4px; height: 4px;
	border-radius: 50%;
	margin-top: 10px;
	flex-shrink: 0;
	background: var(--text-3);
}
.aud-card--yes .aud-list li::before { background: var(--green); }
.aud-card--no  .aud-list li::before { background: var(--red); }

/* Rows that carry their own icon (request-demo) size it like every other
   inline mark and drop the dot, which would otherwise double up beside it.
   Without this the svg falls back to its 300x150 intrinsic default. */
.aud-list li:has(> svg)::before { display: none; }
.aud-list li > svg {
	width: 14px; height: 14px;
	fill: var(--green);
	flex-shrink: 0;
	margin-top: 5px;
}

/* ---------- Comparison table ---------- */
.cmp-wrap {
	max-width: 920px;
	margin: 0 auto;
	border-radius: var(--r-lg);
	border: 1px solid var(--border);
	background: var(--surface);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.cmp {
	min-width: 620px;
	/* Fixed layout stops the longest cell (the AI-modules row) from stretching
	   the Hivebot column and squeezing the cloud column next to it. */
	table-layout: fixed;
}
/* Only the two-comparison table gets explicit widths. The hivedrop table has
   four comparison columns and must keep the even split fixed layout gives it. */
.cmp--duo th:first-child,  .cmp--duo td:first-child  { width: 32%; }
.cmp--duo th:nth-child(2), .cmp--duo td:nth-child(2) { width: 28%; }
.cmp--duo th:nth-child(3), .cmp--duo td:nth-child(3) { width: 40%; }
.cmp thead th {
	padding: 16px 20px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-align: left;
	color: var(--text-3);
	border-bottom: 1px solid var(--border);
	white-space: nowrap;
}
.cmp thead th.is-us { color: var(--text); }
.cmp thead th.is-us span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	text-transform: none;
	letter-spacing: 0;
}
.cmp tbody td {
	padding: 15px 20px;
	font-size: 14px;
	text-align: left;
	color: var(--text-2);
	border-bottom: 1px solid var(--border);
	vertical-align: middle;
}
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody td:first-child { color: var(--text); font-weight: 500; }
.cmp .is-us { background: var(--surface-2); color: var(--text); }

.mark { display: flex; align-items: flex-start; gap: 9px; text-align: left; }
.mark svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; }
.mark--no  svg { fill: var(--red); }
.mark--yes svg { fill: var(--green); }
.cmp tbody td:not(:first-child) .mark { justify-content: flex-start; }

/* ---------- Calculator ---------- */
.calc { max-width: 880px; margin: 0 auto; }
.calc__form {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr auto;
	gap: 14px;
	align-items: end;
	padding: 24px;
	border-radius: var(--r-lg);
	background: var(--surface);
	border: 1px solid var(--border);
}
.calc__field { display: grid; gap: 7px; }
.calc__field label {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: var(--text-3);
}
.calc__input {
	display: flex;
	align-items: center;
	border-radius: var(--r-md);
	background: var(--bg);
	border: 1px solid var(--border-2);
	transition: border-color .16s var(--ease);
	overflow: hidden;
}
.calc__input:focus-within { border-color: var(--text-3); }
.calc__input input {
	width: 100%;
	min-width: 0;
	padding: 10px 13px;
	background: transparent;
	border: 0;
	color: var(--text);
	font-size: 15.5px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	outline: none;
	-moz-appearance: textfield;
}
.calc__input input::-webkit-outer-spin-button,
.calc__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__unit {
	padding: 0 12px;
	align-self: stretch;
	display: flex;
	align-items: center;
	font-family: var(--mono);
	font-size: 11.5px;
	color: var(--text-3);
	border-left: 1px solid var(--border-2);
	white-space: nowrap;
}
.calc__hint { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 14px; }
.calc__hint:empty { display: none; }
.calc__hint a { color: var(--text); border-bottom: 1px solid var(--border-2); }
.calc__hint a:hover { border-bottom-color: var(--text-3); }

.calc__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.calc__card {
	padding: 28px 24px;
	border-radius: var(--r-lg);
	border: 1px solid var(--border);
	background: var(--surface);
	text-align: center;
}
.calc__card--us { border-color: var(--border-2); background: var(--surface-2); }
.calc__card h3 { font-size: 17px; margin-bottom: 8px; }
.calc__steps { font-size: 12.5px; color: var(--text-3); font-family: var(--mono); }
.calc__time {
	font-size: clamp(32px, 4.4vw, 44px);
	font-weight: 650;
	letter-spacing: -.03em;
	line-height: 1.05;
	margin-top: 18px;
	font-variant-numeric: tabular-nums;
}
.calc__card--us .calc__time { color: var(--text); }

.calc__savings { text-align: center; margin-top: 24px; display: none; }
.calc__savings.is-visible { display: block; }
.calc__savings strong { font-size: clamp(22px, 2.8vw, 28px); font-weight: 650; letter-spacing: -.02em; color: var(--text); }
.calc__savings em { font-style: normal; font-size: 15.5px; font-weight: 500; color: var(--text-3); margin-left: 8px; }

/* ---------- Feature rows ---------- */
.feat { display: grid; gap: 84px; }
.feat__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}
.feat__row--flip .feat__media { order: 2; }
/* Review row. The media is its own grid cell rather than a sibling reordered
   with `order`, so it can sit beside the headline on wide screens and drop
   directly beneath it when the row stacks. With `order` the stacked layout put
   the screenshot above the headline, which read as a floating orphan. */
.feat__row--split {
	/* The video leads this row, so it takes the larger share */
	grid-template-columns: 0.78fr 1.22fr;
	grid-template-areas:
		"head  head"
		"list  media";
	align-items: center;
	column-gap: 56px;
	row-gap: 26px;
}
.feat__row--split .feat__head  { grid-area: head; margin-bottom: 0; max-width: 62ch; }
.feat__row--split .feat__list  { grid-area: list; }
.feat__row--split .feat__media { grid-area: media; }
.feat__head { margin-bottom: 26px; display: grid; gap: 12px; }
.feat__head p { color: var(--text-2); font-size: 16px; }

.feat__list { display: grid; gap: 2px; }
.feat__item {
	display: flex;
	gap: 14px;
	padding: 14px;
	border-radius: var(--r-md);
	transition: background .16s var(--ease);
}
.feat__item:hover { background: var(--surface); }
.feat__icon {
	width: 36px; height: 36px;
	flex-shrink: 0;
	display: grid;
	place-items: center;
	border-radius: var(--r-md);
	background: var(--surface-2);
	border: 1px solid var(--border);
}
.feat__icon img { width: 18px; height: 18px; filter: brightness(0) invert(1); opacity: .75; }
.feat__item h4 { margin-bottom: 3px; }
.feat__item p { font-size: 14px; color: var(--text-2); }

.shot {
	position: relative;
	border-radius: var(--r-lg);
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--bg-3);
	cursor: zoom-in;
	transition: border-color .18s var(--ease);
	width: 100%;
	padding: 0;
	display: block;
}
.shot:hover { border-color: var(--border-2); }
.shot img { width: 100%; }
.shot__bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 13px;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}
.shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); }
.shot__bar span {
	margin-left: 8px;
	font-family: var(--mono);
	font-size: 10.5px;
	color: var(--text-3);
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; }
.step { padding: 28px 24px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.step__num {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	color: var(--text-2);
	margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; font-size: 17px; }
.step p { font-size: 14.5px; color: var(--text-2); }

/* ---------- Stats ---------- */
.stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	max-width: 820px;
	margin: 0 auto 56px;
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--surface);
}
.stat { text-align: center; padding: 28px 20px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat strong {
	display: block;
	font-size: clamp(30px, 3.8vw, 40px);
	font-weight: 650;
	line-height: 1.05;
	letter-spacing: -.03em;
	color: var(--text);
	font-variant-numeric: tabular-nums;
}
/* Direct child only. The counter span lives inside <strong> and must keep
   the number's size, weight and tabular-nums, not the label's. */
.stat > span { display: block; margin-top: 6px; font-size: 13px; color: var(--text-3); }

/* ---------- Testimonials ---------- */
.quotes { max-width: 900px; margin: 0 auto; position: relative; }
.quotes__viewport { overflow: hidden; border-radius: var(--r-lg); }
.quotes__track { display: flex; transition: transform .45s var(--ease); }
.quote {
	flex: 0 0 100%;
	min-width: 0;
	padding: 44px 48px;
	text-align: center;
	display: grid;
	gap: 20px;
	justify-items: center;
	align-content: center;
	min-height: 300px;
	border-radius: var(--r-lg);
	border: 1px solid var(--border);
	background: var(--surface);
}
.quote blockquote {
	font-size: clamp(16.5px, 1.8vw, 19px);
	line-height: 1.55;
	font-weight: 400;
	letter-spacing: -.008em;
	color: var(--text);
	max-width: 64ch;
}
.quote cite { font-style: normal; font-size: 13.5px; color: var(--text-3); }
.quote cite b { color: var(--text-2); font-weight: 600; }
.quote__logo img { max-height: 40px; width: auto; opacity: .65; transition: opacity .18s var(--ease); }
.quote__logo:hover img { opacity: 1; }
.quote__mark { width: 20px; height: 20px; fill: var(--border-2); }

.quotes__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.quotes__btn {
	width: 36px; height: 36px;
	display: grid; place-items: center;
	border-radius: var(--r-md);
	background: transparent;
	border: 1px solid var(--border-2);
	cursor: pointer;
	transition: background .16s var(--ease);
}
.quotes__btn:hover { background: var(--surface-2); }
.quotes__btn svg { width: 14px; height: 14px; fill: var(--text-2); }
.quotes__dots { display: flex; gap: 6px; }
.quotes__dot {
	width: 6px; height: 6px;
	border-radius: 999px;
	background: var(--border-2);
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: width .22s var(--ease), background .22s var(--ease);
}
.quotes__dot.is-active { width: 20px; background: var(--text); }

/* ---------- Replace stack + pricing ---------- */
.stack-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 720px; margin: 0 auto 26px; }
.chip {
	padding: 7px 15px;
	border-radius: var(--r-sm);
	border: 1px solid var(--border);
	background: var(--surface);
	font-size: 14px;
	color: var(--text-3);
	text-decoration: line-through;
	text-decoration-color: var(--red);
}
.cost-line { text-align: center; font-size: 16px; margin-bottom: 8px; color: var(--text-2); }
.cost-line b { color: var(--text); font-weight: 600; }
.cost-line--us b { color: var(--text); }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price {
	display: flex;
	flex-direction: column;
	padding: 30px 26px;
	border-radius: var(--r-lg);
	border: 1px solid var(--border);
	background: var(--surface);
	position: relative;
	transition: border-color .18s var(--ease);
}
.price:hover { border-color: var(--border-2); }
.price--featured { border-color: var(--text-3); }
.price__badge {
	position: absolute;
	top: -10px;
	left: 26px;
	padding: 3px 11px;
	border-radius: var(--r-sm);
	background: var(--text);
	color: var(--accent-ink);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	white-space: nowrap;
}
.price__for { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.price__name { font-size: 21px; font-weight: 600; letter-spacing: -.015em; margin: 8px 0 18px; }
.price__amount { display: flex; align-items: baseline; gap: 7px; }
.price__amount strong { font-size: 36px; font-weight: 650; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price__amount span { font-size: 13.5px; color: var(--text-3); }
.price__alt { margin-top: 7px; font-size: 13.5px; color: var(--text-3); }
.price__alt b { color: var(--text-2); font-weight: 600; }
.price__contact { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.price__list { display: grid; gap: 10px; margin: 22px 0 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.price__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.price__list svg { width: 14px; height: 14px; fill: var(--green); flex-shrink: 0; margin-top: 4px; }
.price .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:last-child { border-bottom: 0; }
.faq__item.is-open { background: var(--surface-2); }
.faq__q {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 19px 22px;
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: left;
	font-size: 15.5px;
	font-weight: 600;
	letter-spacing: -.008em;
	transition: color .16s var(--ease);
}
.faq__q:hover { color: var(--text); }
.faq__q i {
	width: 18px; height: 18px;
	flex-shrink: 0;
	position: relative;
	transition: transform .25s var(--ease);
}
.faq__q i::before, .faq__q i::after {
	content: '';
	position: absolute;
	background: var(--text-3);
	transition: opacity .2s var(--ease), background .2s var(--ease);
}
.faq__q i::before { top: 8.4px; left: 2px; width: 14px; height: 1.4px; }
.faq__q i::after  { left: 8.4px; top: 2px; height: 14px; width: 1.4px; }
.faq__item.is-open .faq__q i { transform: rotate(90deg); }
.faq__item.is-open .faq__q i::after { opacity: 0; }
.faq__item.is-open .faq__q i::before { background: var(--text); }

.faq__a { height: 0; overflow: hidden; transition: height .28s var(--ease); }
.faq__a > div { padding: 0 22px 20px; display: grid; gap: 11px; }
.faq__a p { font-size: 15px; color: var(--text-2); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.about--solo { grid-template-columns: 1fr; }
.about--solo .about__body { max-width: 820px; }
.about__media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.about__media img { width: 100%; }
.about__body { display: grid; gap: 14px; }
.about__body p { color: var(--text-2); font-size: 15px; }
.about__body p.lead { color: var(--text); font-size: 17px; }
.about__patent {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: var(--r-sm);
	border: 1px solid var(--border);
	background: var(--surface);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .06em;
	color: var(--text-3);
	width: fit-content;
	margin-top: 4px;
	transition: border-color .16s var(--ease), color .16s var(--ease);
}
/* It is a link now, so it needs to look like one on hover */
.about__patent:hover { border-color: var(--border-2); color: var(--text-2); }

/* ---------- Differentiators ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; max-width: 1040px; margin: 0 auto; }
.diff {
	text-align: center;
	padding: 26px 16px;
	border-radius: var(--r-lg);
	border: 1px solid var(--border);
	background: var(--surface);
	transition: border-color .18s var(--ease);
}
.diff:hover { border-color: var(--border-2); }
.diff__icon {
	width: 40px; height: 40px;
	margin: 0 auto 14px;
	display: grid; place-items: center;
	border-radius: var(--r-md);
	background: var(--surface-2);
	border: 1px solid var(--border);
}
.diff__icon svg { width: 18px; height: 18px; fill: var(--text-2); }
.diff p { font-size: 14px; color: var(--text-2); }

/* ---------- Final CTA ---------- */
.cta {
	max-width: 940px;
	margin: 0 auto;
	padding: 56px 40px;
	border-radius: var(--r-lg);
	border: 1px solid var(--border);
	background: var(--surface);
	text-align: center;
	display: grid;
	gap: 20px;
	justify-items: center;
}
.cta::before { content: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.15fr 2fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer__brand img {
	/* Same vector mark as the header, so it stays crisp at any size and needs
	   no filter to read as white. */
	height: 24px;
	width: auto;
	margin-bottom: 16px;
}
.footer__brand p { font-size: 14px; color: var(--text-3); max-width: 34ch; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__title {
	display: block;
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--text-3);
	margin-bottom: 14px;
}
.footer__links { display: grid; gap: 10px; }
.footer__links a { font-size: 14px; color: var(--text-2); transition: color .16s var(--ease); }
.footer__links a:hover { color: var(--text); }

.footer__apps { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--border); }
.footer__apps h5 { color: var(--text); font-size: 14px; margin-bottom: 6px; }
.footer__apps p { font-size: 14px; color: var(--text-3); max-width: 56ch; }
.footer__stores { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__stores img { height: 38px; width: auto; opacity: .75; transition: opacity .18s var(--ease); }
.footer__stores a:hover img { opacity: 1; }

.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; }
.footer__bottom p { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.footer__social { display: flex; gap: 8px; }
.footer__social a {
	width: 34px; height: 34px;
	display: grid; place-items: center;
	border-radius: var(--r-md);
	border: 1px solid var(--border);
	transition: border-color .16s var(--ease);
}
.footer__social a:hover { border-color: var(--border-2); }
.footer__social img {
	width: 14px; height: 14px;
	/* Source icons ship in brand green; green is reserved for semantic
	   'positive' in this system, so knock them neutral. */
	filter: brightness(0) invert(1);
	opacity: .55;
}
.footer__social a:hover img { opacity: .9; }

/* ---------- Modal ---------- */
.modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 32px;
	background: rgba(8, 8, 8, .90);
}
.modal.is-open { display: flex; animation: fade-in .18s var(--ease); }
.modal__box { position: relative; width: min(1100px, 100%); max-height: 90vh; }
.modal__box img { width: 100%; max-height: 90vh; object-fit: contain; border-radius: var(--r-lg); border: 1px solid var(--border-2); }
.modal__close {
	position: absolute;
	top: -14px; right: -14px;
	width: 34px; height: 34px;
	border-radius: var(--r-md);
	background: var(--text);
	color: var(--accent-ink);
	border: 0;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Back to top + cookie ---------- */
.to-top {
	position: fixed;
	right: 24px; bottom: 24px;
	z-index: 65;
	width: 38px; height: 38px;
	display: grid; place-items: center;
	border-radius: var(--r-md);
	background: var(--bg-3);
	border: 1px solid var(--border-2);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s var(--ease), visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 12px; height: 12px; fill: var(--text); }

.cookie {
	position: fixed;
	left: 24px; right: 24px; bottom: 24px;
	z-index: 150;
	max-width: 620px;
	margin: 0 auto;
	padding: 18px 20px;
	display: none;
	align-items: center;
	gap: 18px;
	border-radius: var(--r-lg);
	border: 1px solid var(--border-2);
	background: var(--bg-3);
	box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.cookie.is-visible { display: flex; }
.cookie p { font-size: 13px; color: var(--text-2); }
.cookie a { color: var(--text); border-bottom: 1px solid var(--border-2); }

/* ---------- Reveal on scroll ---------- */
/* Content is visible by default; only JS-enabled pages animate it in,
   so a failed/blocked script can never leave the page blank. */
.reveal { opacity: 1; }
.js .reveal {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
	.diff-grid { grid-template-columns: repeat(3, 1fr); }
	.feat__row { gap: 40px; }
}

@media (max-width: 991px) {
	:root { --nav-h: 62px; }

	.nav__burger { display: flex; }
	.nav__menu, .nav__actions { display: none; }

	.nav__mobile {
		position: fixed;
		top: var(--nav-h);
		left: 0; right: 0;
		max-height: calc(100dvh - var(--nav-h));
		overflow-y: auto;
		padding: 16px 24px 30px;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		display: grid;
		gap: 2px;
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
		z-index: 69;
	}
	.nav__mobile.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav__mobile a {
		padding: 12px 6px;
		font-size: 15.5px;
		color: var(--text-2);
		border-bottom: 1px solid var(--border);
	}
	.nav__mobile a.is-sub { padding-left: 22px; font-size: 14.5px; color: var(--text-3); }
	/* Group headings in the drawer are labels, not destinations */
	.nav__mobile a.is-group {
		pointer-events: none;
		font-family: var(--mono);
		font-size: 10.5px;
		letter-spacing: .13em;
		text-transform: uppercase;
		color: var(--text-3);
		padding: 16px 6px 6px;
		border-bottom: 0;
	}
	.nav__mobile .nav__mobile-cta { display: grid; gap: 8px; margin-top: 18px; }
	.nav__mobile .nav__mobile-cta a { border: 0; padding: 12px 20px; }
	.nav__mobile .nav__mobile-cta a.btn--ghost { border: 1px solid var(--border-2); }

	.hero__grid { grid-template-columns: 1fr; gap: 44px; }
	.hero__content { justify-items: center; text-align: center; }
	.hero h1 { max-width: 18ch; }
	.hero__object .flip { transform: none; }
	.feat__row { grid-template-columns: 1fr; gap: 30px; }
	.feat__row--flip .feat__media { order: 0; }
	/* This row keeps its two columns here - the points belong beside the
	   video, not stacked under it. It only collapses at the phone breakpoint. */
	.feat__row--split {
		grid-template-columns: 0.78fr 1.22fr;
		grid-template-areas:
			"head  head"
			"list  media";
		column-gap: 26px;
		row-gap: 22px;
	}
	.feat { gap: 64px; }

	.about { grid-template-columns: 1fr; gap: 32px; }
	.price-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
	.steps { grid-template-columns: 1fr; }
	.footer__top { grid-template-columns: 1fr; gap: 36px; }
	.footer__apps { grid-template-columns: 1fr; }
	.quote { padding: 36px 30px; }
}

@media (max-width: 767px) {
	/* Only now is there no room for two columns: headline, shot, then points */
	.feat__row--split {
		grid-template-columns: 1fr;
		grid-template-areas: "head" "media" "list";
		row-gap: 24px;
	}

	.section { padding: 68px 0; }
	.section--tight { padding: 54px 0; }
	.container { padding: 0 20px; }

	.hero { padding: 56px 0 64px; min-height: 0; display: block; }
	.section--fill { min-height: 0; display: block; }
	.hero__object .flip { transform: none; }

	.aud-grid { grid-template-columns: 1fr; }
	.calc__form { grid-template-columns: 1fr 1fr; padding: 18px; }
	.calc__form .btn { grid-column: 1 / -1; }
	.calc__cards { grid-template-columns: 1fr; }
	.stats { grid-template-columns: 1fr; }
	.stat { border-right: 0; border-bottom: 1px solid var(--border); }
	.stat:last-child { border-bottom: 0; }
	.diff-grid { grid-template-columns: repeat(2, 1fr); }
	.footer__cols { grid-template-columns: repeat(2, 1fr); gap: 26px; }
	.sec-head { margin-bottom: 38px; }
	.cta { padding: 40px 24px; }
	.btn-row .btn { width: 100%; }
	.marquee__track { gap: 70px; padding-right: 70px; }
	.marquee img { height: 48px; }
	.cookie { flex-direction: column; align-items: stretch; text-align: center; left: 16px; right: 16px; bottom: 16px; }
	.modal { padding: 20px; }
	.modal__close { top: -12px; right: -4px; }
}

@media (max-width: 480px) {
	.quote { padding: 30px 20px; min-height: 0; }
	.diff-grid { grid-template-columns: 1fr; }
	.price { padding: 26px 22px; }
	.calc__form { grid-template-columns: 1fr; }
	.footer__stores img { height: 34px; }
}

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

/* ---------- Print ---------- */
@media print {
	.nav, .to-top, .cookie { display: none !important; }
	body { background: #fff; color: #000; }
}

/* ==========================================================================
   Product panels — synthetic dark-mode UI, drawn in markup rather than
   screenshotted. Replaces the light-mode captures that fought the theme.
   ========================================================================== */
.panel {
	border-radius: var(--r-lg);
	border: 1px solid var(--border);
	background: linear-gradient(180deg, #17171A, #121214);
	overflow: hidden;
	box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .02) inset;
	font-size: 13px;
}
.panel__bar {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 11px 14px;
	background: rgba(255, 255, 255, .03);
	border-bottom: 1px solid var(--border);
}
.panel__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); }
.panel__bar span {
	margin-left: 8px;
	font-family: var(--mono);
	font-size: 11px;
	color: var(--text-3);
	letter-spacing: .02em;
}
.panel__body { padding: 18px 18px 20px; display: grid; gap: 14px; }
/* Screenshot panels need almost no inner frame - the app in the shot already
   has its own chrome, so padding here just reads as a second border. */
.panel--tight .panel__bar { padding: 6px 10px; }
.panel--tight .panel__bar i { width: 6px; height: 6px; }
.panel--tight .panel__bar span { font-size: 10px; }
.panel--tight .panel__body { padding: 7px; gap: 0; }

/* Active transfer block */
.xfer { display: grid; gap: 9px; }
.xfer__name {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--text);
	letter-spacing: -.01em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.xfer__meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 11.5px;
	color: var(--text-3);
	font-variant-numeric: tabular-nums;
}
.xfer__meta b { color: var(--text-2); font-weight: 600; }
.xfer__track { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.xfer__fill {
	height: 100%;
	border-radius: 3px;
	background: linear-gradient(90deg, rgba(250, 250, 250, .55), var(--text));
	/* Resting state is complete — what no-JS and reduced-motion users see. */
	width: 100%;
	/* 14s cycle: fill across the first 10s, then the panel flip covers the reset.
	   10s is the real duration of the hero transfer at the rate it states. */
	animation: xfer 14s linear infinite;
}
/* Hold until the panel is on screen so the fill isn't already over when
   it is scrolled to. Gated on .js so a no-JS page still shows it filled. */
.js .xfer__fill { animation-play-state: paused; }
.js .is-in .xfer__fill { animation-play-state: running; }

@keyframes xfer {
	0%      { width: 0%; }
	71.43%  { width: 100%; }   /* full at 10.0s */
	78.56%  { width: 100%; }   /* held while the front closes */
	78.57%  { width: 0%; }     /* reset the instant the front is hidden */
	100%    { width: 0%; }
}

/* ---------- Card spin: the transfer completing turns the panel over ----------
   A true 3D rotateY, so the near edge swells and the far edge foreshortens —
   a scaleX squeeze has no depth and reads as the card being crushed.
   Mirroring is prevented by swapping the two faces with opacity at exactly
   90deg and 270deg, NOT by backface-visibility, which could not be verified
   to behave. At any angle the visible face is the one facing the viewer. */
.flip { perspective: 1500px; }
/* Float while the transfer is running, settle for the turn.
   Uses the independent `translate` property, not `transform`, so it composes
   with the rotation and the hero's resting tilt instead of overwriting them. */
.js .is-in .flip { animation: card-float 7s ease-in-out infinite; }
@keyframes card-float {
	/* One slow, symmetric oscillation across the 5s transfer. A touch of Z-axis
	   sway rides along with the drift — a card adrift doesn't stay perfectly
	   level, and the tilt makes the motion read at a glance where pure vertical
	   travel of this size does not. `rotate` is animated as its own property so
	   it composes with the flip's `transform` rather than overwriting it. */
	0%      { translate: 0 0;     rotate: 0deg; }
	17.86%  { translate: 0 -12px; rotate: -0.8deg; }
	35.71%  { translate: 0 0;     rotate: 0deg; }
	53.57%  { translate: 0 12px;  rotate: 0.8deg; }
	71.43%  { translate: 0 0;     rotate: 0deg; }   /* settled before the turn */
	100%    { translate: 0 0;     rotate: 0deg; }
}

.flip__inner { position: relative; transform-style: preserve-3d; }
.flip__back { position: absolute; inset: 0; transform: rotateY(180deg); opacity: 0; }
.flip__back .panel { height: 100%; display: flex; flex-direction: column; }
.flip__back .panel__body { flex: 1; }

.js .is-in .flip__inner { animation: card-spin 14s linear infinite; }
.js .is-in .flip__front { animation: face-front 14s linear infinite; }
.js .is-in .flip__back  { animation: face-back  14s linear infinite; }

/* 7s cycle: the bar fills for 5s, then a 2s turn.
   Linear, so 90deg lands exactly at 78.57% and 270deg at 92.86% — the two
   points where the faces trade places. */
@keyframes card-spin {
	0%, 71.43% { transform: rotateY(0deg); }
	100%       { transform: rotateY(360deg); }
}
@keyframes face-front {
	0%, 78.56%     { opacity: 1; }
	78.57%, 92.85% { opacity: 0; }
	92.86%, 100%   { opacity: 1; }
}
@keyframes face-back {
	0%, 78.56%     { opacity: 0; }
	78.57%, 92.85% { opacity: 1; }
	92.86%, 100%   { opacity: 0; }
}

/* The hero card's resting tilt sits on the outer wrapper so it never competes
   with the rotation for the transform property. */
.hero__object .flip { transform: rotateY(-9deg) rotateX(3deg); transform-origin: left center; }

/* Back face content */
.panel__body--center {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 150px;
}
.panel__body--center img { opacity: .9; }
.panel__stamp {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--text-3);
}

.route {
	display: flex;
	align-items: center;
	gap: 9px;
	font-family: var(--mono);
	font-size: 11px;
	color: var(--text-3);
}
.route b { color: var(--text-2); font-weight: 500; }
.route .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.route .arrow { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-2), rgba(250,250,250,.5), var(--border-2)); }

/* File rows */
.rows { display: grid; gap: 1px; border-top: 1px solid var(--border); padding-top: 14px; }
.row {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 7px 0;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--text-2);
}
.row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row em {
	font-style: normal;
	font-size: 10.5px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--text-3);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}
.row em::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.row em.is-done::before { background: var(--green); }
.row em.is-live::before { background: var(--text); }

/* Review panel */
/* ---------- Review panel ----------
   A real screenshot of the app with live overlays sitting on top. Every
   overlay is positioned as a % of the image box, so because the <img> keeps
   its aspect ratio the alignment holds at any width without breakpoints.
   Each region it redraws is flat colour in the source, which is what lets a
   plain rectangle cover it invisibly. Measured coordinates - do not nudge
   without re-measuring against assets/images/review-ui.webp. */
/* aspect-ratio pins the box to the screenshot's own proportions, so every
   percentage overlay keeps its meaning even if something inside ends up in
   normal flow by mistake. */
.review { position: relative; container-type: inline-size; line-height: 0; aspect-ratio: 3816 / 1848; }
.review__shot { display: block; width: 100%; height: auto; border-radius: var(--r-md); }

/* The globe in the footage, made to turn. The texture is a seamlessly
   tileable crop of the sphere's surface - built by blending the disc with a
   half-width roll of itself, so its left and right edges match (0.6/255) and
   it can pan in one direction forever. No mirror, so no butterfly seam. The
   baked limb highlight is cropped away and replaced by a fixed shading layer,
   which is what keeps the lighting still while the surface moves under it. */
.review__globe {
	position: absolute;
	left: 23.40%; top: 15.80%;
	width: 33.70%;
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	/* Feathered rim, so the disc melts into the black frame */
	-webkit-mask-image: radial-gradient(circle, #000 90%, transparent 99%);
	mask-image: radial-gradient(circle, #000 90%, transparent 99%);
}
/* Twice the circle's width, holding two tiles; shifting by exactly one tile
   returns to an identical frame, so the loop never jumps. */
.review__globe i {
	position: absolute;
	top: 0; left: 0; bottom: 0;
	width: 200%;
	background: url('../images/globe-tile.webp') 0 0 / 50% 100% repeat-x;
	animation: review-globe 30s linear infinite;
}
@keyframes review-globe { to { transform: translateX(-50%); } }
/* Sphere lighting, fixed in place over the moving surface. Modelled on the
   original frame: a lit crescent hugging the left limb that dissolves into the
   night side, not a highlight sitting on the surface. Each layer carries a
   long multi-stop falloff - a two-stop gradient ends on a visible edge, which
   is what made the light read as a pasted-on blob. */
.review__globe::after {
	content: '';
	position: absolute; inset: 0;
	border-radius: 50%;
	background:
		/* lit limb, clipped by the disc into a crescent */
		radial-gradient(ellipse 30% 62% at 1% 50%,
			rgba(206,228,255,.40) 0%,
			rgba(206,228,255,.22) 26%,
			rgba(206,228,255,.09) 46%,
			rgba(206,228,255,.03) 66%,
			rgba(206,228,255,0) 84%),
		/* night side deepening away from the light */
		radial-gradient(circle at 76% 64%,
			rgba(0,0,0,.52) 0%,
			rgba(0,0,0,.30) 34%,
			rgba(0,0,0,.12) 58%,
			rgba(0,0,0,0) 80%),
		/* rim falloff, so the edge never reads flat */
		radial-gradient(circle at 50% 50%,
			rgba(0,0,0,0) 56%,
			rgba(0,0,0,.18) 74%,
			rgba(0,0,0,.42) 88%,
			rgba(0,0,0,.62) 100%);
}

/* Player scrub track. Once the shot is scaled into the column the baked-in bar
   is barely a pixel tall, so a percentage-height overlay rounds to a different
   subpixel and you see both it and the original. Instead: wipe the strip in the
   frame's own black (verified pure black across its full width), then draw a
   single crisp bar at a fixed pixel height. */
.review__bar {
	position: absolute;
	/* Measured: the bar runs x84..x2931 of 3816, i.e. 2.20%..76.81%. The video
	   pane ends at 79.35%, so this stays inside it and never reaches the rail. */
	left: 2.20%; top: 89.20%; width: 74.61%; height: 1.70%;
	background: #000;
}
.review__bar::before,
.review__bar i {
	content: '';
	position: absolute;
	left: 0; top: 50%;
	height: 2px;
	transform: translateY(-50%);
	border-radius: 1px;
}
.review__bar::before { right: 0; background: #ADADAD; }
.review__bar i { width: 0; background: #FFF; }

/* The rail's own bar is a comment-range filter, but the shot catches it with a
   blue fill two thirds across, which reads as a second playback position. Flat
   it over in the track's own grey so only the player's bar shows progress, then
   put its two range handles back so it still reads as a control. */
.review__range {
	position: absolute;
	left: 80.24%; top: 14.29%; width: 19.21%; height: 2.54%;
	background: #E0E0E0;
	border-radius: 0.1cqw;
}
.review__range i {
	position: absolute;
	top: 50%;
	width: 0.63cqw; height: 0.63cqw;
	translate: -50% -50%;
	border-radius: 50%;
	background: #F49D2D;
}

/* Comment cards, hidden until the playhead reaches each timestamp. The fill
   matches the feed background exactly (#F9F9F9), so a covered card is
   indistinguishable from empty feed. c2 also spans the divider above it, so no
   orphan rule shows while both are hidden. */
.review__cover {
	position: absolute;
	left: 80.30%; width: 19.15%;
	background: #F9F9F9;
}
.review__cover--c1 { top: 19.91%; height: 8.23%; }
.review__cover--c2 { top: 28.19%; height: 6.71%; }
/* The fade belongs only to the reveal. On the base rule it also faded the
   cover back in at the loop restart, flashing the comments before anything
   had been typed. */
.review__cover.is-gone { opacity: 0; transition: opacity .3s var(--ease); }

/* Live text painted over the baked-in strings. cqw keeps these locked to the
   image's scale; without a container query the type would drift out of the
   boxes it is covering. */
.review__tc,
.review__count {
	position: absolute;
	display: flex;
	align-items: center;
	font-family: var(--font);
	font-variant-numeric: tabular-nums;
	line-height: 1;
	white-space: nowrap;
}
.review__tc { color: #FFF; background: #000; }
.review__tc--head { left: 18.60%; top: 2.40%; width: 4.60%; height: 2.20%; font-size: 1.00cqw; }
.review__tc--foot { left: 4.60%; top: 85.40%; width: 3.60%; height: 1.80%; font-size: 0.72cqw; }
.review__count {
	left: 88.00%; top: 17.50%; width: 3.80%; height: 1.30%;
	justify-content: center;
	background: #FFF; color: #5F6368; font-size: 0.56cqw;
}

/* The message being typed, painted over the placeholder. Same white as the
   field interior, so an empty box is indistinguishable from the original. */
.review__input {
	position: absolute;
	left: 80.45%; top: 95.24%; width: 16.35%; height: 3.36%;
	display: flex;
	align-items: center;
	/* Centred in the field, matching the comment counter above it */
	justify-content: center;
	gap: 0.12cqw;
	background: #FFF;
	font-family: var(--font);
	font-size: 1.10cqw;
	line-height: 1;
	color: #3C4043;
	white-space: nowrap;
	overflow: hidden;
}
.review__input i {
	width: 0.09cqw;
	height: 1.25cqw;
	background: #1A73E8;
	flex-shrink: 0;
	animation: review-caret 1.05s steps(1, end) infinite;
}
@keyframes review-caret { 50% { opacity: 0; } }
.review__input.is-typing i { animation: none; opacity: 1; }

/* Pointer. White fill with a dark edge so it stays visible crossing from the
   black video onto the white comment rail. */
.review__cursor {
	position: absolute;
	width: 1.7cqw;
	height: auto;
	margin: -0.15cqw 0 0 -0.2cqw;
	fill: #FFF;
	stroke: #111;
	stroke-width: 1.1;
	stroke-linejoin: round;
	filter: drop-shadow(0 0.12cqw 0.2cqw rgba(0,0,0,.45));
	transition: scale .12s var(--ease);
	pointer-events: none;
}
.review__cursor.is-click { scale: .82; }

/* No container queries: leave the screenshot's own text showing rather than
   painting mis-sized type over it. */
@supports not (container-type: inline-size) {
	.review__tc, .review__count, .review__input, .review__cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.review__cover.is-gone { transition: none; }
	.review__globe i { animation: none; }
	.review__input i { animation: none; }
	.review__cursor { display: none; }
}

/* Workflow / tag lanes */
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lane { display: grid; gap: 8px; align-content: start; }
.lane__head {
	font-family: var(--mono);
	font-size: 9.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-3);
	padding-bottom: 7px;
	border-bottom: 1px solid var(--border);
}
.card-mini {
	padding: 9px 10px;
	border-radius: 7px;
	background: rgba(255,255,255,.04);
	border: 1px solid var(--border);
	font-family: var(--mono);
	font-size: 10.5px;
	color: var(--text-2);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.card-mini.is-flagged { border-color: var(--border-2); color: var(--text); }

@media (prefers-reduced-motion: reduce) {
	.xfer__fill, .flip__inner, .flip { animation: none; }
}
@media (max-width: 767px) {
	.panel { font-size: 12px; }
	.panel__body { padding: 14px 14px 16px; }
	.lanes { gap: 7px; }
}


/* ==========================================================================
   Photography: desaturated so it belongs to the monochrome system. Colour
   here would compete with the accent and with the semantic green/red.
   ========================================================================== */
.about__media img,
.split__media img,
.quote__logo img { filter: grayscale(1) contrast(1.04); }
