/* Swap Lab — shared styles */

:root {
	--cream: #FAF7F0;
	--card: #FFFFFF;
	--ink: #22271F;
	--ink-soft: #5C645A;
	--sage: #7E8F6E;
	--sage-deep: #3E5C41;
	--mint: #DDF0E2;
	--mint-strong: #3FBF7F;
	--coral: #E8845C;
	--coral-soft: #FBEAE2;
	--wash: #E4EEE7;
	--line: #E8E3D8;
	--radius: 20px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: var(--cream);
	color: var(--ink);
	line-height: 1.6;
	overflow-x: clip;
}

h1, h2, h3 {
	font-family: 'Bricolage Grotesque', sans-serif;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--sage);
	outline-offset: 3px;
	border-radius: 6px;
}

.wrap {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Nav */

.site-nav {
	position: sticky;
	top: 0;
	z-index: 10;
	padding: 14px 0;
	background: rgba(250, 247, 240, 0.85);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: box-shadow 0.2s ease;
}

.site-nav .wrap {
	position: relative;
}

.site-nav.scrolled {
	box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(34, 39, 31, 0.06);
}

.site-nav .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'Bricolage Grotesque', sans-serif;
	font-weight: 800;
	font-size: 1.3rem;
	color: var(--ink);
	text-decoration: none;
}

.brand-mark {
	width: 31px;
	height: 40px;
	object-fit: contain;
	flex: 0 0 auto;
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--card);
	color: var(--ink);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
}

.nav-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.site-nav nav {
	display: flex;
	align-items: center;
	gap: 24px;
}

.site-nav nav a {
	color: var(--ink-soft);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
}

.site-nav nav a:hover,
.site-nav nav a:focus-visible {
	color: var(--sage-deep);
}

.site-nav .nav-cta {
	background: var(--ink);
	color: #fff;
	padding: 8px 18px;
	border-radius: 999px;
	font-weight: 600;
}

.site-nav .nav-cta:hover {
	background: var(--sage-deep);
	color: #fff;
}

/* Hero */

.hero {
	position: relative;
	padding: 72px 0 88px;
	overflow: clip;
	isolation: isolate;
}

.hero .wrap {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 56px;
	align-items: center;
}

.blob {
	position: absolute;
	border-radius: 50%;
	background: var(--wash);
	z-index: -1;
	filter: blur(2px);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--mint);
	color: var(--sage-deep);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 22px;
}

.hero h1 {
	font-size: clamp(2.6rem, 6vw, 4.2rem);
	font-weight: 800;
}

.hero h1 .accent {
	color: var(--sage-deep);
}

.hero .sub {
	margin: 22px 0 32px;
	font-size: 1.15rem;
	color: var(--ink-soft);
	max-width: 46ch;
}

.cta-row {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.appstore-badge {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: var(--ink);
	color: #fff;
	text-decoration: none;
	padding: 12px 22px;
	border-radius: 14px;
	transition: transform 0.15s ease;
}

.appstore-badge:hover {
	transform: translateY(-2px);
}

.appstore-badge svg {
	width: 26px;
	height: 26px;
}

.appstore-badge .lines {
	line-height: 1.15;
}

.appstore-badge .small {
	font-size: 0.68rem;
	opacity: 0.8;
}

.appstore-badge .big {
	font-size: 1.1rem;
	font-weight: 600;
}

.ghost-link {
	color: var(--sage-deep);
	font-weight: 600;
	text-decoration: none;
}

.ghost-link:hover {
	text-decoration: underline;
}

/* Swap demo */

.swap-demo {
	background: var(--card);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: 0 24px 60px rgba(62, 92, 65, 0.14);
	position: relative;
}

.swap-demo .label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin-bottom: 18px;
}

.food-card {
	border: 1.5px solid #EEEAE0;
	border-radius: 16px;
	padding: 18px 20px;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.food-card.swapping {
	opacity: 0;
	transform: translateY(8px);
}

.food-card .top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.food-card .name {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-weight: 700;
	font-size: 1.25rem;
}

.food-card .meta {
	color: var(--ink-soft);
	font-size: 0.9rem;
	margin-top: 6px;
}

.gi-pill {
	font-weight: 700;
	font-size: 0.9rem;
	padding: 5px 14px;
	border-radius: 999px;
	white-space: nowrap;
}

.gi-pill.high {
	background: var(--coral-soft);
	color: #C4552A;
}

.gi-pill.low {
	background: var(--mint);
	color: var(--sage-deep);
}

.swap-arrow-row {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 0;
}

.swap-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 0.95rem;
	background: var(--sage);
	color: #fff;
	border: none;
	cursor: pointer;
	padding: 10px 22px;
	border-radius: 999px;
	transition: background 0.15s ease, transform 0.15s ease;
}

.swap-btn:hover {
	background: var(--sage-deep);
	transform: translateY(-1px);
}

.swap-btn svg {
	width: 18px;
	height: 18px;
}

.drop-badge {
	position: absolute;
	top: -16px;
	right: -12px;
	background: var(--mint-strong);
	color: #fff;
	font-family: 'Bricolage Grotesque', sans-serif;
	font-weight: 800;
	font-size: 1.05rem;
	padding: 10px 16px;
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(63, 191, 127, 0.35);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.drop-badge.hidden-badge {
	transform: scale(0.5);
	opacity: 0;
}

/* Sections */

section {
	padding: 72px 0;
}

.section-head {
	max-width: 620px;
	margin-bottom: 48px;
}

.section-head h2 {
	font-size: clamp(1.9rem, 4vw, 2.7rem);
	font-weight: 800;
}

.section-head p {
	margin-top: 14px;
	color: var(--ink-soft);
	font-size: 1.05rem;
}

/* How it works */

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.step {
	background: var(--card);
	border-radius: var(--radius);
	padding: 30px 26px;
	box-shadow: 0 10px 30px rgba(62, 92, 65, 0.07);
}

.step .num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--mint);
	color: var(--sage-deep);
	font-family: 'Bricolage Grotesque', sans-serif;
	font-weight: 800;
	font-size: 1.1rem;
	margin-bottom: 18px;
}

.step h3 {
	font-size: 1.3rem;
	margin-bottom: 10px;
}

.step p {
	color: var(--ink-soft);
	font-size: 0.98rem;
}

/* Features */

.features {
	background: var(--wash);
	border-radius: 32px;
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.feature {
	background: var(--card);
	border-radius: var(--radius);
	padding: 30px;
}

.feature h3 {
	font-size: 1.25rem;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.feature p {
	color: var(--ink-soft);
	font-size: 0.98rem;
}

.feature .icon {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.icon.i-scan { background: var(--mint); }
.icon.i-score { background: var(--coral-soft); }
.icon.i-taste { background: #F3EBD9; }
.icon.i-world { background: #E8E4F3; }

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.chip {
	font-size: 0.82rem;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 999px;
}

.chip.c1 { background: #F9E3D3; color: #B05C2B; }
.chip.c2 { background: #F3EBD9; color: #8A6D2F; }
.chip.c3 { background: #F7DFE4; color: #A54458; }
.chip.c4 { background: #E4F0D9; color: #4E7233; }
.chip.c5 { background: #DBEAF5; color: #33628C; }
.chip.c6 { background: #EFE6D8; color: #7A6234; }
.chip.c7 { background: #DCF0E8; color: #2E7359; }
.chip.c8 { background: #F2E4D2; color: #8C5B26; }
.chip.c9 { background: #EAE4F5; color: #5D4A8C; }

/* Why GI */

.why .wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}

.why .section-head {
	margin-bottom: 20px;
}

.why .lede {
	color: var(--ink-soft);
	max-width: 44ch;
}

.why-card {
	background: var(--card);
	border-left: 5px solid var(--coral);
	border-radius: 16px;
	padding: 26px 28px;
	box-shadow: 0 10px 30px rgba(62, 92, 65, 0.07);
	color: var(--ink-soft);
	font-size: 1rem;
}

.why-card strong {
	color: var(--ink);
}

/* Download band */

.band {
	background: var(--sage-deep);
	border-radius: 32px;
	color: #fff;
	text-align: center;
	padding: 72px 32px;
	position: relative;
	overflow: hidden;
}

.band h2 {
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-weight: 800;
	margin-bottom: 14px;
}

.band p {
	opacity: 0.85;
	margin-bottom: 32px;
	font-size: 1.05rem;
}

.band .appstore-badge {
	background: #fff;
	color: var(--ink);
}

.band::before,
.band::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
}

.band::before {
	width: 340px;
	height: 340px;
	top: -140px;
	left: -100px;
}

.band::after {
	width: 260px;
	height: 260px;
	bottom: -120px;
	right: -60px;
}

/* Footer */

footer {
	padding: 56px 0 40px;
}

.disclaimer {
	max-width: 640px;
	color: var(--ink-soft);
	font-size: 0.88rem;
	border-top: 1.5px solid var(--line);
	padding-top: 28px;
}

.foot-links {
	margin-top: 22px;
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	font-size: 0.92rem;
}

.foot-links a {
	color: var(--sage-deep);
	font-weight: 600;
	text-decoration: none;
}

.foot-links a:hover {
	text-decoration: underline;
}

.copyright {
	margin-top: 22px;
	color: var(--ink-soft);
	font-size: 0.85rem;
}

/* Scroll reveal */

.reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
	opacity: 1;
	transform: none;
}

/* Privacy page */

.legal main {
	padding: 48px 0 32px;
}

.legal .wrap {
	max-width: 720px;
}

.legal h1 {
	font-size: clamp(2rem, 5vw, 2.8rem);
	font-weight: 800;
}

.legal .updated {
	color: var(--ink-soft);
	font-size: 0.9rem;
	margin-top: 10px;
}

.legal h2 {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 40px 0 12px;
}

.legal p,
.legal li {
	color: var(--ink-soft);
	font-size: 1rem;
	line-height: 1.7;
}

.legal p + p {
	margin-top: 12px;
}

.legal ul {
	padding-left: 22px;
	margin-top: 8px;
}

.legal li {
	margin-bottom: 8px;
}

.legal strong {
	color: var(--ink);
}

.legal main a {
	color: var(--sage-deep);
	font-weight: 600;
}

.legal .callout {
	background: var(--mint);
	border-radius: 16px;
	padding: 20px 24px;
	margin-top: 24px;
	color: var(--sage-deep);
	font-weight: 500;
}

.legal footer {
	border-top: 1.5px solid var(--line);
	margin-top: 48px;
	padding: 32px 0 48px;
}

.legal footer p {
	font-size: 0.88rem;
	color: var(--ink-soft);
}

/* Motion + responsive */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.food-card,
	.drop-badge,
	.appstore-badge,
	.swap-btn,
	.site-nav {
		transition: none;
	}
}

@media (max-width: 860px) {
	.hero .wrap,
	.why .wrap {
		grid-template-columns: 1fr;
		gap: 44px;
	}

	.steps,
	.feature-grid {
		grid-template-columns: 1fr;
	}

	.hero {
		padding: 44px 0 64px;
	}

	section {
		padding: 56px 0;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.site-nav nav {
		position: absolute;
		top: calc(100% + 12px);
		left: 24px;
		right: 24px;
		display: grid;
		gap: 4px;
		padding: 10px;
		background: rgba(255, 255, 255, 0.98);
		border: 1px solid var(--line);
		border-radius: 18px;
		box-shadow: 0 18px 45px rgba(34, 39, 31, 0.14);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	}

	.site-nav nav.open {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.site-nav nav a,
	.site-nav .nav-cta {
		display: block;
		padding: 12px 14px;
		border-radius: 10px;
		font-size: 0.95rem;
	}

	.site-nav nav a:not(.nav-cta):hover {
		background: var(--cream);
	}

	.site-nav .nav-cta {
		margin-top: 4px;
		text-align: center;
	}
}

@media (max-width: 560px) {
	.wrap {
		padding-inline: 18px;
	}

	.site-nav nav {
		left: 18px;
		right: 18px;
	}

	.blob {
		transform: scale(0.72);
	}
}
