/* The comparison and guide pages (/compare/, /guides/), built by scripts/build-site.mjs from scripts/site/guide.html.
   Loaded after site.css, which gives the colours, header, footer, buttons and the moving sky. Everything here sits
   under main.g. Motion stops for readers who ask for reduced motion. */

main.g {
	position: relative;
	z-index: 1;
	padding-bottom: 40px;
}
.g a:not(.button) {
	color: var(--mint);
	text-underline-offset: 3px;
}
.g h1,
.g h2,
.g h3 {
	margin: 0;
	text-wrap: balance;
}
.g p {
	margin: 0;
}
.g section {
	padding: clamp(48px, 7vw, 96px) 0 0;
}
.g .kicker {
	display: block;
}
.g h2 {
	font-size: clamp(30px, 4vw, 50px);
	max-width: 18em;
}
.g h2 em,
.g h1 em {
	font-style: normal;
	color: var(--mint);
}
.g .intro {
	color: var(--muted);
	font-size: clamp(17px, 1.3vw, 19px);
	max-width: 40em;
	margin-top: 16px;
}

/* ── hero ── */
.g-hero {
	padding-top: clamp(28px, 5vw, 72px) !important;
}
.g-hero .wrap {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
}
.g-hero h1 {
	font-size: clamp(40px, 6.2vw, 84px);
	line-height: 0.98;
	letter-spacing: -0.045em;
	font-weight: 850;
	margin: 18px 0 20px;
}
.g-hero h1 .vs {
	display: inline-block;
	font-size: 0.42em;
	vertical-align: 0.5em;
	letter-spacing: 0.02em;
	color: var(--sand);
	border: 1.5px solid rgba(230, 199, 156, 0.45);
	border-radius: 99px;
	padding: 0.12em 0.55em;
	margin: 0 0.18em;
}
.g-hero .cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}
.g-checked {
	margin-top: 22px;
	font-size: 14px;
	color: var(--faint);
}

/* ── phones with real app screens ── */
.g-stage {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 520px;
}
.g-stage::before {
	content: "";
	position: absolute;
	inset: 8% 4%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(127, 209, 185, 0.28), transparent 70%);
	filter: blur(10px);
}
.g-phone {
	position: relative;
	width: min(68vw, 280px);
	aspect-ratio: 600 / 1304;
	border-radius: 44px;
	padding: 9px;
	background: linear-gradient(160deg, #2a3546, #0d131e 55%, #222c3b);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.08) inset,
		0 40px 80px -24px rgba(0, 0, 0, 0.75),
		0 0 0 1px rgba(0, 0, 0, 0.6);
	animation: g-float 7s ease-in-out infinite;
}
.g-phone img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 36px;
}
.g-phone.back {
	position: absolute;
	width: min(52vw, 220px);
	transform: translate(-46%, 6%) rotate(-7deg);
	opacity: 0.55;
	filter: saturate(0.7);
	animation: none;
}
.g-chip {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 14px;
	font-size: 14px;
	font-weight: 700;
	background: rgba(18, 26, 40, 0.88);
	border: 1px solid var(--line);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.7);
	white-space: nowrap;
	opacity: 0;
	animation: g-pop 0.7s var(--ease) forwards;
}
.g-chip::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--mint);
	box-shadow: 0 0 0 4px rgba(127, 209, 185, 0.18);
}
.g-chip.c1 {
	top: 12%;
	right: -2%;
	animation-delay: 0.5s;
}
.g-chip.c2 {
	top: 46%;
	left: -4%;
	animation-delay: 0.9s;
}
.g-chip.c3 {
	bottom: 12%;
	right: 2%;
	animation-delay: 1.3s;
}
@keyframes g-float {
	50% {
		transform: translateY(-10px);
	}
}
@keyframes g-pop {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ── the comparison table: a row per feature, an icon and words in each cell (never colour alone) ── */
.g-table {
	margin-top: 32px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
	overflow: hidden;
}
.g-row {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
	border-top: 1px solid var(--line);
}
.g-row:first-child {
	border-top: 0;
}
.g-row > * {
	padding: 16px 20px;
	min-width: 0;
}
.g-row.head > * {
	font-size: 12.5px;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--faint);
	background: var(--card-2);
}
.g-row.head .us {
	color: var(--mint);
}
.g-row .what {
	font-weight: 700;
}
.g-row .us {
	background: rgba(127, 209, 185, 0.07);
}
.st {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	line-height: 1.45;
	font-size: 15.5px;
}
.st i {
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-style: normal;
	font-size: 12px;
	font-weight: 800;
}
.st.y i {
	background: var(--mint);
	color: #06231b;
}
.st.y i::before {
	content: "✓";
}
.st.p i {
	background: var(--sand);
	color: #2b1d07;
}
.st.p i::before {
	content: "◐";
}
.st.n i {
	background: transparent;
	color: var(--rose);
	box-shadow: inset 0 0 0 1.5px var(--rose);
}
.st.n i::before {
	content: "✕";
}
.g-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin-top: 16px;
	font-size: 14px;
	color: var(--muted);
}

/* ── where each one wins ── */
.g-wins {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 32px;
}
.g-win {
	padding: 28px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--card);
}
.g-win.us {
	border-color: rgba(127, 209, 185, 0.3);
	background: radial-gradient(80% 60% at 100% 0%, rgba(127, 209, 185, 0.14), transparent 70%), var(--card);
}
.g-win h3 {
	font-size: 22px;
	letter-spacing: -0.02em;
}
.g-win ul {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
}
.g-win li {
	position: relative;
	padding-left: 26px;
	color: var(--muted);
}
.g-win li b {
	color: var(--text);
}
.g-win li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.62em;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: var(--sand);
	transform: rotate(45deg);
}
.g-win.us li::before {
	background: var(--mint);
}

/* ── pick one ── */
.g-pick {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 32px;
}
.g-pick > div {
	padding: 26px 28px;
	border-radius: var(--radius);
	background: var(--panel);
	border: 1px solid var(--line);
}
.g-pick h3 {
	font-size: 19px;
	margin-bottom: 8px;
}
.g-pick p {
	color: var(--muted);
}

/* ── steps with a screen each ── */
.g-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
.g-steps li {
	counter-increment: step;
	display: grid;
	align-content: start;
	gap: 12px;
	padding: 24px;
	border-radius: var(--radius);
	background: var(--card);
	border: 1px solid var(--line);
}
.g-steps li::before {
	content: counter(step);
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	font-weight: 850;
	color: #06231b;
	background: linear-gradient(180deg, var(--mint-2), var(--mint));
}
.g-steps h3 {
	font-size: 20px;
	letter-spacing: -0.02em;
}
.g-steps p {
	color: var(--muted);
	font-size: 15.5px;
}
.g-steps img {
	width: 100%;
	max-width: 230px;
	aspect-ratio: 600 / 1304;
	object-fit: cover;
	object-position: top;
	border-radius: 22px;
	border: 1px solid var(--line);
	justify-self: center;
	margin-top: 6px;
	max-height: 380px;
}

/* ── the cut, shown: a take with slips and pauses, then the same take with them gone ── */
.g-cut {
	margin-top: 32px;
	padding: clamp(20px, 3vw, 32px);
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--card);
	display: grid;
	gap: 14px;
}
.g-cut .lane {
	display: flex;
	gap: 6px;
	align-items: stretch;
	height: 58px;
}
.g-cut .lane span {
	display: grid;
	place-items: center;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	min-width: 0;
	flex: var(--g, 1) 1 0;
	color: #06231b;
	background: var(--mint);
}
.g-cut .lane .gap,
.g-cut .lane .slip {
	color: var(--rose);
	background: rgba(232, 154, 154, 0.12);
	border: 1.5px dashed rgba(232, 154, 154, 0.55);
}
.g-cut .lane.after .slip {
	animation: g-snip 6s var(--ease) infinite;
}
.g-cut .lane.after .gap {
	animation: g-trim 6s var(--ease) infinite;
}
.g-cut .lane.after span {
	transition: flex 0.6s var(--ease);
}
.g-cut .label {
	font-size: 13px;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--faint);
}
@keyframes g-snip {
	0%,
	18% {
		flex-grow: var(--g, 1);
		opacity: 1;
		margin-right: 0;
	}
	38%,
	82% {
		flex-grow: 0;
		flex-basis: 0;
		opacity: 0;
		margin-right: -6px;
		border-width: 0;
	}
	100% {
		flex-grow: var(--g, 1);
		opacity: 1;
	}
}

@keyframes g-trim {
	0%,
	18% {
		flex-grow: var(--g, 1);
	}
	38%,
	82% {
		flex-grow: 0.25;
		color: transparent;
	}
	100% {
		flex-grow: var(--g, 1);
	}
}

/* ── a prompter that follows your voice: lines slide up as each is said ── */
.g-prompter {
	position: relative;
	height: 250px;
	overflow: hidden;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: linear-gradient(180deg, #05080e, #0b111c);
	margin-top: 32px;
	mask-image: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent);
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent);
}
.g-prompter ol {
	margin: 0;
	padding: 64px clamp(20px, 4vw, 44px);
	list-style: none;
	display: grid;
	gap: 0.6em;
	font-size: clamp(20px, 2.6vw, 32px);
	font-weight: 750;
	letter-spacing: -0.02em;
	line-height: 1.2;
	animation: g-scroll 12s var(--ease) infinite;
}
.g-prompter li {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: rgba(238, 242, 246, 0.35);
	animation: g-say 12s steps(1) infinite;
}
.g-prompter li:nth-child(2) {
	animation-delay: -9s;
}
.g-prompter li:nth-child(3) {
	animation-delay: -6s;
}
.g-prompter li:nth-child(4) {
	animation-delay: -3s;
}
.g-prompter .mic {
	position: absolute;
	right: 18px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--mint);
}
.g-prompter .mic i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ff4d4d;
	animation: g-blink 1.2s ease-in-out infinite;
}
@keyframes g-scroll {
	0%,
	20% {
		transform: translateY(0);
	}
	25%,
	45% {
		transform: translateY(-1.8em);
	}
	50%,
	70% {
		transform: translateY(-3.6em);
	}
	75%,
	95% {
		transform: translateY(-5.4em);
	}
	100% {
		transform: translateY(0);
	}
}
@keyframes g-say {
	0% {
		color: var(--text);
	}
	25% {
		color: rgba(238, 242, 246, 0.35);
	}
}
@keyframes g-blink {
	50% {
		opacity: 0.25;
	}
}

/* ── cards to other pages ── */
.g-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	margin-top: 32px;
}
.g-card {
	display: grid;
	gap: 10px;
	align-content: start;
	padding: 24px;
	border-radius: var(--radius);
	background: var(--card);
	border: 1px solid var(--line);
	text-decoration: none;
	color: var(--text) !important;
	transition:
		transform 0.25s var(--ease),
		border-color 0.25s;
}
.g-card:hover,
.g-card:focus-visible {
	transform: translateY(-3px);
	border-color: rgba(127, 209, 185, 0.45);
}
.g-card small {
	font-size: 12.5px;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mint);
}
.g-card h3 {
	font-size: 22px;
	letter-spacing: -0.02em;
}
.g-card p {
	color: var(--muted);
	font-size: 15.5px;
}
.g-card .go {
	margin-top: 4px;
	font-weight: 700;
	color: var(--mint);
}

/* ── prose blocks, questions, sources ── */
.g-prose {
	max-width: 44em;
	display: grid;
	gap: 16px;
	margin-top: 24px;
	color: var(--muted);
}
.g-prose b {
	color: var(--text);
}
.g-prose ul,
.g-prose ol {
	margin: 0;
	padding-left: 22px;
	display: grid;
	gap: 8px;
}
.g-faq {
	margin-top: 28px;
	display: grid;
	gap: 12px;
	max-width: 52em;
}
.g-faq details {
	border-radius: 18px;
	border: 1px solid var(--line);
	background: var(--card);
	padding: 0 22px;
}
.g-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 18px 0;
	font-weight: 700;
	font-size: 17px;
}
.g-faq summary::-webkit-details-marker {
	display: none;
}
.g-faq summary::after {
	content: "+";
	float: right;
	color: var(--mint);
	font-weight: 800;
}
.g-faq details[open] summary::after {
	content: "–";
}
.g-faq details p {
	color: var(--muted);
	padding-bottom: 18px;
}
.g-sources {
	margin-top: 22px;
	font-size: 14px;
	color: var(--faint);
	max-width: 60em;
}
.g-sources a {
	color: var(--muted) !important;
}

/* ── closing call ── */
.g-end .wrap > div {
	position: relative;
	overflow: hidden;
	display: grid;
	justify-items: center;
	gap: 20px;
	text-align: center;
	padding: clamp(48px, 8vw, 100px) 24px;
	border-radius: 40px;
	border: 1px solid rgba(127, 209, 185, 0.25);
	background:
		radial-gradient(60% 90% at 50% 0%, rgba(127, 209, 185, 0.22), transparent 65%),
		radial-gradient(50% 80% at 50% 110%, rgba(230, 199, 156, 0.14), transparent 65%), var(--card);
}
.g-end h2 {
	max-width: 14em;
}
.g-end p {
	color: var(--muted);
	max-width: 34em;
}
.g-end img {
	width: 72px;
	height: 72px;
}

@media (max-width: 860px) {
	.g-hero .wrap,
	.g-wins,
	.g-pick {
		grid-template-columns: minmax(0, 1fr);
	}
	.g-stage {
		min-height: 440px;
	}
	.g-steps {
		grid-template-columns: minmax(0, 1fr);
	}
	.g-steps li {
		grid-template-columns: auto minmax(0, 1fr);
		column-gap: 16px;
	}
	.g-steps li::before {
		grid-row: span 2;
	}
	.g-steps img {
		grid-column: 1 / -1;
		max-width: 200px;
	}
	/* the table becomes a card per feature */
	.g-row.head {
		display: none;
	}
	.g-row {
		grid-template-columns: minmax(0, 1fr);
	}
	.g-row > * {
		padding: 10px 18px;
	}
	.g-row .what {
		padding-top: 18px;
		font-size: 17px;
	}
	.g-row .us,
	.g-row .them {
		display: grid;
		gap: 4px;
	}
	.g-row .us::before,
	.g-row .them::before {
		content: attr(data-app);
		font-size: 12px;
		font-weight: 750;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		color: var(--faint);
	}
	.g-row .us::before {
		color: var(--mint);
	}
	.g-row .them {
		padding-bottom: 18px;
	}
	.g-cut .lane {
		height: 48px;
	}
	.g-cut .lane span {
		font-size: 11px;
	}
}
@media (max-width: 520px) {
	.g-chip.c2 {
		left: 0;
	}
	.g-chip.c1 {
		right: 0;
	}
	.g-phone.back {
		display: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.g-phone,
	.g-chip,
	.g-prompter ol,
	.g-prompter li,
	.g-prompter .mic i,
	.g-cut .lane.after .gap,
	.g-cut .lane.after .slip {
		animation: none !important;
	}
	.g-chip {
		opacity: 1;
	}
	.g-cut .lane.after .slip {
		display: none;
	}
	.g-cut .lane.after .gap {
		flex-grow: 0.25;
		color: transparent;
	}
}
