@font-face {
	font-family: 'Jakarta';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url(/fonts/plus-jakarta-sans-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--bg: #fbfaf6;
	--surface: #ffffff;
	--surface-2: #f3f1ea;
	--ink: #15171b;
	--ink-2: #454b55;
	--ink-3: #767c86;
	--line: #e7e4db;
	--line-2: #d9d5c9;
	--brand: #139e4f;
	--brand-ink: #0c6b35;
	--brand-soft: #e2f5e8;
	--low: #16a34a;
	--low-ink: #0f7a37;
	--low-soft: #dcf5e4;
	--medium: #e08a00;
	--medium-ink: #9a5b00;
	--medium-soft: #fdf0d2;
	--high: #e0362c;
	--high-ink: #b32219;
	--high-soft: #fde2df;
	--none: #6b7582;
	--none-ink: #4c5561;
	--none-soft: #eceff3;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgb(24 24 20 / 4%), 0 10px 30px rgb(24 24 20 / 7%);
	--shadow-lg: 0 2px 6px rgb(24 24 20 / 5%), 0 24px 60px rgb(24 24 20 / 12%);
	--font: 'Jakarta', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--wrap: 1140px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0f1113;
		--surface: #171a1d;
		--surface-2: #1e2226;
		--ink: #eef0f2;
		--ink-2: #b9bfc7;
		--ink-3: #868d97;
		--line: #2a2f35;
		--line-2: #3a4047;
		--brand: #2fcb6f;
		--brand-ink: #5ee08f;
		--brand-soft: #173524;
		--low: #34c46a;
		--low-ink: #6ee49a;
		--low-soft: #16301f;
		--medium: #f0a52a;
		--medium-ink: #ffc766;
		--medium-soft: #3a2b10;
		--high: #f0564c;
		--high-ink: #ff8f87;
		--high-soft: #3d1a17;
		--none: #8b95a3;
		--none-ink: #b8c0cb;
		--none-soft: #242a31;
		--shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px rgb(0 0 0 / 25%);
		--shadow-lg: 0 2px 6px rgb(0 0 0 / 30%), 0 24px 60px rgb(0 0 0 / 40%);
		color-scheme: dark;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 80px;
}

[hidden] {
	display: none !important;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--brand-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--brand);
}

h1,
h2,
h3,
h4 {
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
	font-weight: 750;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
	letter-spacing: -0.035em;
	font-weight: 800;
}

h2 {
	font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem);
	letter-spacing: -0.03em;
}

h3 {
	font-size: 1.2rem;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

.wrap {
	width: min(100% - 32px, var(--wrap));
	margin-inline: auto;
}

.narrow {
	width: min(100% - 32px, 760px);
	margin-inline: auto;
}

.skip {
	position: absolute;
	left: -999px;
	top: 8px;
	background: var(--ink);
	color: var(--bg);
	padding: 8px 14px;
	border-radius: 8px;
	z-index: 100;
}

.skip:focus {
	left: 16px;
}

:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent);
	outline-offset: 2px;
	border-radius: 6px;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: saturate(1.6) blur(14px);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	gap: 18px;
	height: 64px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	text-decoration: none;
	font-weight: 750;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.logo:hover {
	color: var(--ink);
}

.logo-mark {
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--brand), #0b7d3c);
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
}

.nav {
	display: flex;
	gap: 4px;
	margin-left: auto;
	align-items: center;
}

.nav a {
	color: var(--ink-2);
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	padding: 8px 12px;
	border-radius: 10px;
}

.nav a:hover,
.nav a[aria-current='page'] {
	color: var(--ink);
	background: var(--surface-2);
}

.nav .lang {
	border: 1px solid var(--line-2);
	font-size: 13px;
	padding: 5px 10px;
	margin-left: 6px;
	letter-spacing: 0.04em;
}

.menu-btn {
	display: none;
}

@media (max-width: 820px) {
	.nav {
		display: none;
		position: absolute;
		top: 64px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		padding: 8px 16px 16px;
		gap: 2px;
	}

	.nav.open {
		display: flex;
	}

	.nav a {
		padding: 12px;
	}

	.nav .lang {
		align-self: flex-start;
		margin: 8px 0 0;
	}

	.menu-btn {
		display: grid;
		place-items: center;
		margin-left: auto;
		width: 40px;
		height: 40px;
		border-radius: 10px;
		border: 1px solid var(--line-2);
		background: transparent;
		color: var(--ink);
		cursor: pointer;
	}
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	cursor: pointer;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none;
}

.btn-primary {
	background: var(--ink);
	color: var(--bg);
}

.btn-primary:hover {
	color: var(--bg);
	box-shadow: var(--shadow);
}

.btn-ghost {
	border-color: var(--line-2);
	color: var(--ink);
	background: var(--surface);
}

.btn-ghost:hover {
	color: var(--ink);
	border-color: var(--ink-3);
}

.appstore {
	display: inline-block;
	line-height: 0;
	border-radius: 10px;
	transition: transform 0.15s ease;
}

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

.appstore img {
	height: 48px;
	width: auto;
}

@media (prefers-color-scheme: dark) {
	.appstore img {
		outline: 1px solid #a6a6a6;
		border-radius: 9px;
	}
}

/* Level chips */
.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
}

.chip::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

.chip.low {
	color: var(--low-ink);
	background: var(--low-soft);
}

.chip.medium {
	color: var(--medium-ink);
	background: var(--medium-soft);
}

.chip.high {
	color: var(--high-ink);
	background: var(--high-soft);
}

.chip.none {
	color: var(--none-ink);
	background: var(--none-soft);
}

.num {
	font-variant-numeric: tabular-nums;
}

/* Sections */
section {
	padding-block: clamp(48px, 7vw, 96px);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brand-ink);
	margin-bottom: 14px;
}

.lede {
	font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem);
	color: var(--ink-2);
	line-height: 1.55;
	max-width: 62ch;
}

.muted {
	color: var(--ink-3);
}

.small {
	font-size: 14px;
}

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.grid {
	display: grid;
	gap: 18px;
}

/* Breadcrumbs */
.crumbs {
	font-size: 14px;
	color: var(--ink-3);
	padding-top: 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.crumbs a {
	color: var(--ink-3);
	text-decoration: none;
}

.crumbs a:hover {
	color: var(--ink);
}

.crumbs span[aria-hidden] {
	opacity: 0.5;
}

/* Home hero */
.hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 80px);
}

.hero::before {
	content: '';
	position: absolute;
	inset: -40% -10% auto;
	height: 120%;
	background: radial-gradient(60% 50% at 70% 30%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
		radial-gradient(40% 40% at 15% 20%, color-mix(in srgb, #f59e0b 12%, transparent), transparent 70%);
	pointer-events: none;
	z-index: -1;
}

.hero h1 {
	max-width: 16ch;
}

.hero-icons {
	display: flex;
	margin-top: 34px;
	flex-wrap: wrap;
	gap: 10px;
}

.hero-icons img {
	width: 56px;
	height: 56px;
	border-radius: 13px;
	box-shadow: var(--shadow);
}

/* App grid */
.apps-grid {
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.app-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px;
	text-decoration: none;
	color: var(--ink);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	position: relative;
}

.app-card:hover {
	color: var(--ink);
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
	border-color: var(--line-2);
}

.app-card .top {
	display: flex;
	gap: 14px;
	align-items: center;
}

.app-card img.icon {
	width: 64px;
	height: 64px;
	border-radius: 15px;
	flex: none;
	box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
}

.app-card h3 {
	margin: 0;
	font-size: 1.08rem;
}

.app-card .sub {
	color: var(--ink-3);
	font-size: 14px;
	line-height: 1.35;
}

.app-card p {
	color: var(--ink-2);
	font-size: 15px;
	margin: 0;
}

.app-card .meta {
	margin-top: auto;
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 13px;
	color: var(--ink-3);
	font-weight: 600;
}

.app-card.featured {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	padding: clamp(24px, 4vw, 48px);
	overflow: hidden;
	background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 9%, var(--surface)), var(--surface) 60%);
}

.app-card.featured:hover {
	transform: none;
}

.app-card.featured h3 {
	font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
}

.app-card.featured h3 a {
	color: var(--ink);
	text-decoration: none;
}

.feat-tag {
	font-size: 1.1rem !important;
	margin-top: 18px !important;
	color: var(--ink-2);
}

.feat-list {
	list-style: none;
	padding: 0;
	margin: 20px 0 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 22px;
}

.feat-list li {
	display: grid;
	gap: 2px;
	padding-left: 30px;
	position: relative;
	font-size: 14px;
	line-height: 1.45;
	color: var(--ink-3);
}

.feat-list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 1px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--brand-soft);
	color: var(--brand-ink);
	font-size: 11px;
	font-weight: 800;
	display: grid;
	place-items: center;
}

.feat-list strong {
	color: var(--ink);
	font-size: 15px;
}

.feat-cta {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-top: 26px;
}

.feat-cta .more {
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
}

.app-card.featured .meta {
	margin-top: 16px;
}

.app-card.featured .shots {
	display: flex;
	gap: 16px;
	justify-content: center;
	align-items: flex-start;
}

.app-card.featured .shots img {
	width: min(46%, 250px);
	border-radius: 20px;
	box-shadow: var(--shadow-lg);
}

.app-card.featured .shots img:nth-child(2) {
	margin-top: 44px;
}

@media (max-width: 860px) {
	.app-card.featured {
		grid-template-columns: minmax(0, 1fr);
	}

	.app-card.featured .shots {
		order: -1;
	}

	.app-card.featured .shots img {
		width: min(44%, 200px);
	}
}

@media (max-width: 520px) {
	.feat-list {
		grid-template-columns: 1fr;
	}
}

.group-title {
	margin: 44px 0 16px;
	font-size: 14px;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-3);
}

/* Tool band on home */
.tool-band {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
}

.tool {
	padding: 24px;
	text-decoration: none;
	color: var(--ink);
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool:hover {
	color: var(--ink);
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
}

.tool .ico {
	font-size: 26px;
}

.tool strong {
	font-size: 1.08rem;
	letter-spacing: -0.01em;
}

.tool span {
	color: var(--ink-2);
	font-size: 15px;
}

/* App page */
.app-hero {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
	padding-block: clamp(32px, 6vw, 80px);
}

.app-hero .icon {
	width: 96px;
	height: 96px;
	border-radius: 22px;
	box-shadow: var(--shadow);
	margin-bottom: 22px;
}

.app-hero .facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 18px;
	font-size: 14px;
	color: var(--ink-3);
	font-weight: 600;
}

.phone-row {
	display: flex;
	gap: 16px;
	justify-content: center;
	align-items: flex-start;
}

.phone-row img {
	width: calc(50% - 8px);
	max-width: 260px;
	border-radius: 22px;
	box-shadow: var(--shadow-lg);
}

.phone-row img:nth-child(2) {
	margin-top: 48px;
}

@media (max-width: 820px) {
	.app-hero {
		grid-template-columns: 1fr;
	}
}

.features {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.feature {
	padding: 22px;
}

.feature h3 {
	font-size: 1.05rem;
	margin-bottom: 6px;
}

.feature p {
	color: var(--ink-2);
	font-size: 15px;
	margin: 0;
}

.shots-strip {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 8px 4px 24px;
	scrollbar-width: thin;
}

.shots-strip img {
	flex: none;
	width: min(62vw, 240px);
	border-radius: 20px;
	scroll-snap-align: start;
	box-shadow: var(--shadow);
}

/* Glycemic index pages */
.gi-hero {
	padding-block: 20px clamp(28px, 4vw, 48px);
}

.gi-hero h1 {
	font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
	margin-bottom: 14px;
}

.answer {
	font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem);
	color: var(--ink-2);
	max-width: 64ch;
}

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

.food-top {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

@media (max-width: 900px) {
	.food-top {
		grid-template-columns: minmax(0, 1fr);
	}
}

.scorecard {
	padding: clamp(20px, 3vw, 30px);
}

.scores {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 14px;
}

.score {
	border-radius: var(--radius-sm);
	padding: 16px 18px;
	background: var(--surface-2);
}

.score .label {
	font-size: 13px;
	font-weight: 700;
	color: var(--ink-2);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 4px 8px;
	align-items: center;
}

.score .value {
	font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.1;
	margin: 4px 0 2px;
	font-variant-numeric: tabular-nums;
}

.score .unit {
	font-size: 13px;
	color: var(--ink-3);
	font-weight: 600;
}

.score.low .value {
	color: var(--low);
}

.score.medium .value {
	color: var(--medium);
}

.score.high .value {
	color: var(--high);
}

.score.none .value {
	color: var(--none);
}

.gauge {
	margin-top: 22px;
}

.gauge-bar {
	position: relative;
	height: 12px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--low) 0 55%, var(--medium) 55% 70%, var(--high) 70% 100%);
	opacity: 0.9;
}

.gauge-range {
	position: absolute;
	top: -5px;
	height: 22px;
	border-radius: 999px;
	border: 2px solid var(--ink);
	opacity: 0.35;
}

.gauge-marker {
	position: absolute;
	top: 50%;
	width: 24px;
	height: 24px;
	margin-left: -12px;
	transform: translateY(-50%);
	border-radius: 50%;
	background: var(--surface);
	border: 4px solid var(--ink);
	box-shadow: 0 2px 8px rgb(0 0 0 / 25%);
}

.gauge-ticks {
	position: relative;
	height: 20px;
	font-size: 12px;
	color: var(--ink-3);
	font-weight: 600;
	margin-top: 6px;
}

.gauge-ticks span {
	position: absolute;
	transform: translateX(-50%);
}

.gauge-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 13px;
	color: var(--ink-3);
	margin-top: 10px;
}

.facts-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 18px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.facts-list li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
}

.facts-list li span:first-child {
	color: var(--ink-2);
}

.facts-list li span:last-child {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 520px) {
	.facts-list {
		grid-template-columns: 1fr;
	}

	.scores {
		gap: 10px;
	}

	.score {
		padding: 14px;
	}
}

.side-cta {
	padding: 22px;
	position: sticky;
	top: 84px;
	overflow: hidden;
	background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 13%, var(--surface)), var(--surface) 70%);
}

.side-cta .row {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 12px;
}

.side-cta img.icon {
	width: 52px;
	height: 52px;
	border-radius: 12px;
}

.side-cta strong {
	font-size: 1.05rem;
	letter-spacing: -0.01em;
	line-height: 1.3;
	display: block;
}

.side-cta p {
	font-size: 15px;
	color: var(--ink-2);
}

.side-cta .shot {
	width: 72%;
	margin: 18px auto -80px;
	border-radius: 18px;
	box-shadow: var(--shadow-lg);
}

.block {
	padding-block: clamp(28px, 4vw, 44px);
	border-top: 1px solid var(--line);
}

.block h2 {
	font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
}

.tip {
	font-size: 1.1rem;
	line-height: 1.65;
	color: var(--ink);
	border-left: 4px solid var(--brand);
	padding: 4px 0 4px 20px;
	margin: 0;
	max-width: 70ch;
}

/* Portion table + generic tables */
.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

th,
td {
	text-align: left;
	padding: 11px 14px;
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
}

th {
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-3);
	font-weight: 750;
	background: var(--surface-2);
	white-space: nowrap;
}

tr:last-child td {
	border-bottom: 0;
}

td.n,
th.n {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

tr.current td {
	background: color-mix(in srgb, var(--brand) 8%, transparent);
	font-weight: 700;
}

td a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}

td a:hover {
	color: var(--brand-ink);
	text-decoration: underline;
}

/* Evidence dot plot */
.dots {
	position: relative;
	height: 84px;
	margin: 18px 0 6px;
	border-radius: var(--radius-sm);
	background: linear-gradient(90deg, var(--low-soft) 0 55%, var(--medium-soft) 55% 70%, var(--high-soft) 70% 100%);
}

.dots .dot {
	position: absolute;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border-radius: 50%;
	background: var(--ink);
	opacity: 0.72;
	border: 2px solid var(--surface);
}

.dots .dot.iso {
	background: var(--brand-ink);
	opacity: 0.95;
}

.dots .median {
	position: absolute;
	top: 6px;
	bottom: 6px;
	width: 3px;
	margin-left: -1.5px;
	background: var(--ink);
	border-radius: 2px;
}

.dots .median span {
	position: absolute;
	top: -24px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
	color: var(--ink);
}

.dots-axis {
	position: relative;
	height: 18px;
	font-size: 12px;
	color: var(--ink-3);
}

.dots-axis span {
	position: absolute;
	transform: translateX(-50%);
}

.studies {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 16px;
	padding: 0;
	list-style: none;
}

.studies li {
	font-size: 13px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--ink-2);
}

.studies li b {
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}

/* Compare bars */
.bars {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bars li a,
.bars li > div {
	display: grid;
	grid-template-columns: minmax(110px, 190px) 1fr 42px;
	gap: 12px;
	align-items: center;
	text-decoration: none;
	color: var(--ink);
	font-size: 15px;
	padding: 4px 6px;
	border-radius: 8px;
}

.bars li a:hover {
	background: var(--surface-2);
	color: var(--ink);
}

.bars .track {
	height: 12px;
	border-radius: 999px;
	background: var(--surface-2);
	overflow: hidden;
}

.bars .fill {
	height: 100%;
	border-radius: 999px;
}

.bars .fill.low {
	background: var(--low);
}

.bars .fill.medium {
	background: var(--medium);
}

.bars .fill.high {
	background: var(--high);
}

.bars li.current > div {
	background: color-mix(in srgb, var(--brand) 9%, transparent);
	font-weight: 750;
}

.bars .v {
	text-align: right;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Swap cards */
.swaps {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

@media (max-width: 520px) {
	.swaps {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.swap {
		padding: 12px 14px;
	}

	.swap .big {
		font-size: 1.3rem;
	}
}

.swap {
	padding: 16px 18px;
	text-decoration: none;
	color: var(--ink);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.swap:hover {
	color: var(--ink);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.swap strong {
	display: block;
	font-size: 15px;
}

.swap small {
	color: var(--ink-3);
	font-size: 13px;
}

.swap .big {
	font-size: 1.6rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.swap .big.low {
	color: var(--low);
}

.swap .big.medium {
	color: var(--medium);
}

.swap .big.high {
	color: var(--high);
}

/* App CTA band */
.cta-band {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 28px;
	align-items: center;
	padding: clamp(24px, 4vw, 44px);
	overflow: hidden;
	background: linear-gradient(135deg, #0d6f37, #139e4f 55%, #22c55e);
	color: #fff;
	border: 0;
}

.cta-band h2 {
	color: #fff;
	font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
}

.cta-band p {
	color: rgb(255 255 255 / 88%);
	font-size: 1.05rem;
}

.cta-band .checks {
	list-style: none;
	padding: 0;
	margin: 0 0 22px;
	display: grid;
	gap: 6px;
}

.cta-band .checks li {
	display: flex;
	gap: 10px;
	color: #fff;
	font-weight: 600;
	font-size: 15px;
}

.cta-band .checks li::before {
	content: '✓';
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgb(255 255 255 / 20%);
	display: grid;
	place-items: center;
	font-size: 12px;
}

.cta-band .phones {
	display: flex;
	gap: 12px;
	justify-content: center;
	align-items: flex-start;
	margin-bottom: clamp(-120px, -8vw, -60px);
}

.cta-band .phones img {
	width: 48%;
	max-width: 220px;
	border-radius: 20px;
	box-shadow: 0 20px 50px rgb(0 0 0 / 35%);
}

.cta-band .phones img:nth-child(2) {
	margin-top: 40px;
}

.cta-band .appstore img {
	outline: 1px solid rgb(255 255 255 / 45%);
	border-radius: 9px;
}

@media (max-width: 760px) {
	.cta-band {
		grid-template-columns: 1fr;
	}
}

/* FAQ */
.faq {
	display: grid;
	gap: 10px;
}

.faq details {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 0 18px;
}

.faq summary {
	cursor: pointer;
	font-weight: 700;
	padding: 16px 28px 16px 0;
	list-style: none;
	position: relative;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: '+';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	font-weight: 500;
	color: var(--ink-3);
	transition: transform 0.2s ease;
}

.faq details[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}

.faq details p {
	color: var(--ink-2);
	margin: 0 0 16px;
}

/* Chart / table page */
.toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 16px;
}

.search {
	flex: 1 1 260px;
	position: relative;
}

.search input {
	width: 100%;
	font: inherit;
	font-size: 16px;
	padding: 13px 16px 13px 44px;
	border-radius: 999px;
	border: 1px solid var(--line-2);
	background: var(--surface);
	color: var(--ink);
	box-shadow: var(--shadow);
}

.search input:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}

.search svg {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink-3);
}

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 18px;
}

.filters button,
.seg button {
	font: inherit;
	font-size: 14px;
	font-weight: 650;
	padding: 7px 13px;
	border-radius: 999px;
	border: 1px solid var(--line-2);
	background: var(--surface);
	color: var(--ink-2);
	cursor: pointer;
}

.filters button[aria-pressed='true'],
.seg button[aria-pressed='true'] {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--bg);
}

.gi-table th button {
	all: unset;
	cursor: pointer;
}

.gi-table th button::after {
	content: ' ↕';
	opacity: 0.4;
}

.gi-table td:first-child {
	min-width: 180px;
}

.gi-table .alias {
	display: block;
	font-size: 12.5px;
	color: var(--ink-3);
	font-weight: 500;
}

.count {
	font-size: 14px;
	color: var(--ink-3);
	margin: 10px 2px 0;
}

.cat-grid {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.cat-card {
	padding: 18px;
	text-decoration: none;
	color: var(--ink);
	display: flex;
	gap: 12px;
	align-items: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cat-card:hover {
	color: var(--ink);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.cat-card .e {
	font-size: 26px;
}

.cat-card strong {
	display: block;
	font-size: 15px;
	line-height: 1.3;
}

.cat-card small {
	color: var(--ink-3);
}

.legend-cards {
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.legend-card {
	padding: 20px;
	border-top: 5px solid;
}

.legend-card.low {
	border-top-color: var(--low);
}

.legend-card.medium {
	border-top-color: var(--medium);
}

.legend-card.high {
	border-top-color: var(--high);
}

.legend-card .range {
	font-size: 1.8rem;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.legend-card p {
	margin: 4px 0 0;
	font-size: 15px;
	color: var(--ink-2);
}

/* Article (guides, methodology) */
.prose {
	font-size: 18px;
	line-height: 1.72;
}

.prose h2 {
	margin-top: 1.9em;
	font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
}

.prose h3 {
	margin-top: 1.5em;
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose li {
	margin-bottom: 0.45em;
}

.prose blockquote {
	margin: 1.5em 0;
	padding: 16px 20px;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	border-left: 4px solid var(--brand);
	color: var(--ink-2);
}

.prose .table-wrap {
	margin: 1.4em 0;
	font-size: 16px;
}

.byline {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	font-size: 14px;
	color: var(--ink-3);
	margin: 8px 0 30px;
}

.toc {
	padding: 18px 22px;
	margin: 0 0 30px;
	font-size: 15px;
}

.toc strong {
	display: block;
	margin-bottom: 6px;
}

.toc ol {
	margin: 0;
	padding-left: 1.2em;
}

.guide-grid {
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.guide-card {
	padding: 22px;
	text-decoration: none;
	color: var(--ink);
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.guide-card:hover {
	color: var(--ink);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.guide-card strong {
	font-size: 1.1rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.guide-card span {
	color: var(--ink-2);
	font-size: 15px;
}

/* Calculator */
.calc {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

@media (max-width: 860px) {
	.calc {
		grid-template-columns: 1fr;
	}
}

.calc .panel {
	padding: clamp(18px, 3vw, 28px);
}

.field {
	display: grid;
	gap: 6px;
	margin-bottom: 14px;
}

.field label {
	font-size: 14px;
	font-weight: 700;
	color: var(--ink-2);
}

.field input,
.field select {
	font: inherit;
	font-size: 16px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--line-2);
	background: var(--surface);
	color: var(--ink);
	width: 100%;
}

.field input:focus,
.field select:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}

.row2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.suggest {
	position: relative;
}

.suggest ul {
	position: absolute;
	z-index: 10;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--surface);
	border: 1px solid var(--line-2);
	border-radius: 12px;
	box-shadow: var(--shadow-lg);
	max-height: 300px;
	overflow: auto;
}

.suggest li {
	padding: 9px 10px;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 15px;
}

.suggest li[aria-selected='true'],
.suggest li:hover {
	background: var(--surface-2);
}

.meal {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.meal li {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 12px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
}

.meal li button {
	all: unset;
	cursor: pointer;
	color: var(--ink-3);
	font-size: 18px;
	padding: 0 4px;
}

.result-big {
	font-size: clamp(3rem, 2.5rem + 3vw, 4.4rem);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.result-big.low {
	color: var(--low);
}

.result-big.medium {
	color: var(--medium);
}

.result-big.high {
	color: var(--high);
}

/* Footer */
.site-footer {
	margin-top: 40px;
	border-top: 1px solid var(--line);
	padding: 44px 0 56px;
	font-size: 14px;
	color: var(--ink-3);
	background: var(--surface-2);
}

.foot-grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 28px;
}

@media (max-width: 760px) {
	.foot-grid {
		grid-template-columns: 1fr 1fr;
	}

	.foot-grid > :first-child {
		grid-column: 1 / -1;
	}
}

.site-footer h4 {
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-2);
	margin-bottom: 12px;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 7px;
}

.site-footer a {
	color: var(--ink-3);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--ink);
}

.disclaimer {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	max-width: 80ch;
}

.center {
	text-align: center;
}

.mt0 {
	margin-top: 0;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.side-cta,
	.cta-band,
	.toolbar,
	.filters {
		display: none !important;
	}

	body {
		background: #fff;
		font-size: 12px;
	}
}
