:root {
	--cream: #fbf4ea;
	--cream-card-1: #fbeada;
	--cream-card-2: #f6eada;
	--white: #ffffff;
	--navy: #16233f;
	--orange: #ce6a1b;
	--orange-badge-text: #9a4c10;
	--border-soft: rgba(22, 35, 63, 0.08);
	--border-softer: rgba(22, 35, 63, 0.06);
	--text-muted: rgba(22, 35, 63, 0.65);
	--font-display: "Bricolage Grotesque", system-ui, sans-serif;
	--font-body: "DM Sans", system-ui, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--navy);
	font-family: var(--font-body);
	line-height: 1.5;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

.wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 32px;
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(251, 244, 234, 0.85);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border-softer);
}

/* Grid (not flex + space-between) keeps the nav centred and the side
   columns anchored, so longer translated labels don't shift the layout. */
.site-header .wrap {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	height: 72px;
}

.site-header .brand {
	justify-self: start;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 19px;
}

.brand img {
	width: 32px;
	height: 32px;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.main-nav a {
	white-space: nowrap;
	font-size: 15px;
	font-weight: 500;
	color: var(--navy);
}

.header-actions {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 16px;
}

.lang-select {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--border-soft);
	background: var(--white);
}

/* Same weight for both links: toggling bold on the active one changed
   its width and nudged the switcher on every language change. */
.lang-select a {
	color: var(--text-muted);
	font-weight: 700;
}

.lang-select a.active {
	color: var(--navy);
}

.lang-select a + a {
	border-left: 1px solid var(--border-soft);
	padding-left: 6px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 15px;
	padding: 10px 20px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	white-space: nowrap;
}

.btn-primary {
	background: var(--orange);
	color: var(--white);
}

.btn-dark {
	background: var(--navy);
	color: var(--white);
	border-radius: 12px;
	padding: 12px 22px;
}

.btn-outline {
	background: var(--white);
	color: var(--navy);
	border: 1px solid var(--border-soft);
	border-radius: 12px;
	padding: 12px 22px;
}

/* Hero */

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

.hero .wrap {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 48px;
	align-items: center;
}

/* Anchored to the top (not vertically centred against the phone) so a
   taller translated heading grows downward instead of moving everything. */
.hero-content {
	align-self: start;
	padding-top: 96px;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	padding: 7px 14px 7px 8px;
	border-radius: 999px;
	background: var(--white);
	border: 1px solid var(--border-soft);
	margin-bottom: 24px;
}

.badge-tag {
	background: var(--cream-card-2);
	color: var(--orange-badge-text);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.02em;
	padding: 3px 8px;
	border-radius: 999px;
}

.hero h1 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 56px;
	line-height: 1.08;
	margin: 0 0 24px;
	letter-spacing: -0.01em;
}

.hero-copy {
	font-size: 18px;
	color: var(--text-muted);
	max-width: 46ch;
	margin: 0 0 32px;
}

.store-buttons {
	display: flex;
	gap: 12px;
	margin-bottom: 28px;
}

.store-buttons .btn span.small {
	display: block;
	font-size: 10px;
	font-weight: 400;
	opacity: 0.8;
}

.social-proof {
	display: flex;
	align-items: center;
	gap: 14px;
}

.avatar-stack {
	display: flex;
}

.avatar-stack span {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid var(--cream);
	margin-left: -10px;
}

.avatar-stack span:first-child {
	margin-left: 0;
}

.avatar-stack span:nth-child(1) {
	background: #e3c9a8;
}

.avatar-stack span:nth-child(2) {
	background: #c9d6b8;
}

.avatar-stack span:nth-child(3) {
	background: #aebfd1;
}

.avatar-stack span:nth-child(4) {
	background: #d9b7c4;
}

.social-proof p {
	margin: 0;
	font-size: 14px;
	color: var(--text-muted);
}

.social-proof strong {
	color: var(--navy);
}

/* Phone mockup */

.phone {
	position: relative;
	width: 300px;
	height: 640px;
	margin: 0 auto;
	background: var(--navy);
	border-radius: 44px;
	padding: 14px;
	box-shadow: 0 30px 60px -20px rgba(22, 35, 63, 0.35);
}

.phone-notch {
	position: absolute;
	top: 26px;
	left: 50%;
	transform: translateX(-50%);
	width: 90px;
	height: 24px;
	background: var(--navy);
	border-radius: 999px;
	z-index: 2;
}

.phone-screen {
	position: relative;
	height: 100%;
	background: var(--white);
	border-radius: 32px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.phone-home-indicator {
	width: 120px;
	height: 5px;
	margin: auto auto 0;
	border-radius: 999px;
	background: var(--navy);
	opacity: 0.25;
}

.phone-statusbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 14px;
}

.phone-session {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.phone-session .lang {
	font-size: 13px;
	color: var(--text-muted);
}

.streak {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--cream-card-2);
	color: var(--orange-badge-text);
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
}

.progress-row {
	display: flex;
	gap: 6px;
	margin-bottom: 20px;
}

.progress-row span {
	height: 4px;
	flex: 1;
	border-radius: 999px;
	background: var(--border-soft);
}

.progress-row span.filled {
	background: var(--orange);
}

.translate-card {
	background: var(--cream-card-1);
	border-radius: 20px;
	padding: 24px 20px;
	text-align: center;
	margin-bottom: 16px;
}

.translate-card .eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--text-muted);
	margin: 0 0 8px;
}

.translate-card .term {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 28px;
	margin: 0 0 8px;
}

.translate-card .example {
	font-size: 14px;
	font-style: italic;
	color: var(--text-muted);
	margin: 0;
}

.option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid var(--border-soft);
	font-size: 15px;
	font-weight: 500;
	margin-bottom: 8px;
}

.option.correct {
	background: var(--cream-card-1);
	border-color: var(--orange);
	color: var(--orange-badge-text);
	font-weight: 700;
}

.phone-feedback {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--border-softer);
}

.phone-feedback img {
	width: 28px;
	height: 28px;
}

.phone-feedback p {
	margin: 0;
	font-size: 13px;
	color: var(--text-muted);
}

/* Stats bar */

.stats-bar {
	border-top: 1px solid var(--border-softer);
	border-bottom: 1px solid var(--border-softer);
	background: var(--white);
}

.stats-bar .wrap {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding: 22px 32px;
}

.stats-bar span {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--text-muted);
}

/* Section headings */

.section {
	padding: 88px 0;
}

.eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--orange);
	margin: 0 0 10px;
	text-transform: uppercase;
}

.section h2 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 38px;
	margin: 0 0 16px;
	letter-spacing: -0.01em;
}

.section-lead {
	font-size: 17px;
	color: var(--text-muted);
	max-width: 62ch;
	margin: 0 0 48px;
}

/* How it works */

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

.step-card {
	background: var(--cream-card-1);
	border-radius: 20px;
	padding: 32px;
}

.step-card.dark {
	background: var(--navy);
	color: var(--white);
}

.step-card.dark p {
	color: rgba(255, 255, 255, 0.75);
}

.step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: var(--cream-card-2);
	color: var(--orange-badge-text);
	font-weight: 800;
	margin-bottom: 20px;
}

.step-card.dark .step-num {
	background: var(--orange);
	color: var(--white);
}

.step-card h3 {
	font-family: var(--font-display);
	font-size: 19px;
	margin: 0 0 10px;
}

.step-card p {
	font-size: 15px;
	color: var(--text-muted);
	margin: 0;
}

/* Feature cards */

.features {
	background: var(--cream-card-1);
}

.feature-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 24px;
}

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

.feature-card h3 {
	font-family: var(--font-display);
	font-size: 19px;
	margin: 0 0 10px;
}

.feature-card p {
	font-size: 15px;
	color: var(--text-muted);
	margin: 0 0 20px;
}

.chart-bars {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	height: 120px;
	background: var(--cream-card-1);
	border-radius: 14px;
	padding: 16px;
}

.chart-bars span {
	flex: 1;
	border-radius: 6px 6px 0 0;
	background: linear-gradient(180deg, #f0c793, var(--orange));
}

.chart-bars span:last-child,
.chart-bars span:nth-last-child(2) {
	background: var(--navy);
}

.word-card {
	background: var(--cream-card-1);
	border-radius: 14px;
	padding: 16px 18px;
}

.word-card .headword {
	font-weight: 700;
	margin: 0 0 4px;
}

.word-card .headword span {
	font-weight: 400;
	color: var(--text-muted);
}

.word-card .example {
	font-size: 14px;
	font-style: italic;
	color: var(--text-muted);
	margin: 0;
}

.pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pill {
	font-size: 13px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--cream-card-1);
	border: 1px solid var(--border-soft);
}

/* Testimonials */

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

.testimonial-card {
	background: var(--white);
	border-radius: 20px;
	padding: 32px;
}

.stars {
	color: var(--orange);
	letter-spacing: 2px;
	margin-bottom: 16px;
}

.testimonial-card blockquote {
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.6;
}

.testimonial-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.testimonial-author .avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #d9c3ae;
}

.testimonial-author p {
	margin: 0;
	font-size: 14px;
	color: var(--text-muted);
}

.testimonial-author strong {
	color: var(--navy);
}

/* CTA banner */

.cta-banner {
	background: var(--navy);
	color: var(--white);
	border-radius: 28px;
	padding: 48px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.cta-banner .cta-left {
	display: flex;
	align-items: center;
	gap: 28px;
}

.cta-banner img {
	width: 96px;
	height: 96px;
}

.cta-banner h2 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 30px;
	margin: 0 0 8px;
}

.cta-banner p {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 15px;
}

.cta-actions {
	display: flex;
	gap: 12px;
	flex-shrink: 0;
}

/* Footer */

.site-footer {
	background: var(--navy);
	color: rgba(255, 255, 255, 0.7);
}

.site-footer .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 32px;
	flex-wrap: wrap;
	gap: 16px;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 20px;
}

.footer-brand .brand {
	color: var(--white);
}

.footer-links {
	display: flex;
	gap: 24px;
	font-size: 14px;
}

/* Responsive */

@media (max-width: 960px) {
	.main-nav {
		display: none;
	}

	.hero .wrap {
		grid-template-columns: 1fr;
	}

	.hero-content {
		padding-top: 0;
	}

	.site-header .wrap {
		grid-template-columns: 1fr auto;
	}

	.phone {
		width: 260px;
		height: 555px;
	}

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

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

	.cta-banner {
		flex-direction: column;
		text-align: center;
	}

	.cta-banner .cta-left {
		flex-direction: column;
	}

	.hero h1 {
		font-size: 40px;
	}

	.section h2 {
		font-size: 30px;
	}
}

@media (max-width: 560px) {
	.header-actions .btn {
		display: none;
	}

	.stats-bar .wrap {
		justify-content: flex-start;
	}

	.site-footer .wrap {
		flex-direction: column;
		text-align: center;
	}

	.footer-brand,
	.footer-links {
		flex-wrap: wrap;
		justify-content: center;
	}

	.footer-links {
		gap: 12px 24px;
	}
}
