/* Colours come from the app icon (stamp paper, teal ink) and the App Store screenshots (coral). */
:root {
	--paper: #F6EFE1;
	--paper-tint: #EFE5D0;
	--card: #FFFBF3;
	--ink: #12343B;
	--ink-soft: #46616A;
	--line: #DCCFB6;
	--coral: #D8504D;
	--coral-ink: #B63E3B;
	--mustard: #E3A72F;
	--leaf: #3E8A3C;
	--sky: #2F7FB8;
	--button: #12343B;
	--button-ink: #FFFBF3;
	--radius: 18px;
	--display: "Poppins", system-ui, sans-serif;
	--body: "Inter", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #0F2226;
		--paper-tint: #142C31;
		--card: #183439;
		--ink: #F3EADB;
		--ink-soft: #B7C4C2;
		--line: #2A474D;
		--coral: #EE6A63;
		--coral-ink: #F4847E;
		--button: #F3EADB;
		--button-ink: #0F2226;
	}
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--body);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--coral-ink); }

h1, h2, h3 {
	font-family: var(--display);
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
	/* Long German and Russian compounds must not push the page wider than the screen. */
	overflow-wrap: break-word;
	hyphens: auto;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

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

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); padding: 8px 12px; border-radius: 8px; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
	font: 600 0.8rem/1 var(--body);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--coral-ink);
	margin-bottom: 1rem;
}

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 5;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.1rem var(--display); }
.brand img { border-radius: 9px; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav .nav-cta {
	color: var(--button-ink); background: var(--button);
	padding: 8px 16px; border-radius: 999px; font-weight: 600;
}
.site-header nav .nav-cta:hover { color: var(--button-ink); opacity: 0.9; }

/* Language menu */
.lang-menu { position: relative; }
.lang-menu summary {
	display: flex; align-items: center; gap: 6px;
	list-style: none; cursor: pointer;
	color: var(--ink-soft); font: 600 0.85rem var(--body);
	padding: 6px 8px; border-radius: 999px;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { color: var(--ink); }
.lang-menu summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang-menu ul {
	position: absolute; right: 0; top: calc(100% + 8px); z-index: 10;
	list-style: none; margin: 0; padding: 6px; min-width: 170px;
	background: var(--card); border: 1px solid var(--line); border-radius: 14px;
	box-shadow: 0 14px 34px rgb(18 52 59 / 0.18);
}
.lang-menu li a {
	display: flex; align-items: center; gap: 8px;
	padding: 8px 12px; border-radius: 9px;
	color: var(--ink); text-decoration: none; font-size: 0.95rem;
}
.lang-menu li a::before { content: ""; width: 14px; }
.lang-menu li a[aria-current="true"]::before { content: "✓"; color: var(--coral-ink); font-weight: 700; }
.lang-menu li a:hover { background: var(--paper-tint); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 34ch; }
.hero-actions { margin-top: 2rem; }
.fine-print { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.9rem; max-width: 42ch; }

.appstore-button {
	display: inline-flex; align-items: center; gap: 12px;
	padding: 12px 22px 12px 18px;
	background: var(--button); color: var(--button-ink);
	border-radius: 14px; text-decoration: none;
	font: 600 1.35rem/1.1 var(--display);
	box-shadow: 0 6px 0 var(--coral);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.appstore-button:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--coral); }
.appstore-button:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--coral); }
.appstore-button svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.appstore-button small { display: block; font: 500 0.72rem/1.2 var(--body); letter-spacing: 0.02em; opacity: 0.85; }

/* The hero screenshot sits inside a perforated stamp. */
.hero-visual { position: relative; margin: 0; justify-self: center; width: min(380px, 100%); }
/* Perforations: a thick dotted border in the page colour, centred on the edge, punches round half-holes.
   One border paint, so no tile seams when the stamp is rotated. */
.stamp {
	--hole: 12px;
	--stamp-paper: #FFFBF3;
	position: relative;
	padding: 16px;
	background: var(--stamp-paper);
}
.stamp::before {
	content: "";
	position: absolute;
	inset: calc(var(--hole) / -2);
	border: var(--hole) dotted var(--paper);
	pointer-events: none;
}
.stamp img { border-radius: 6px; }
.stamp-tilt { transform: rotate(3deg); }

.postmark {
	position: absolute; left: -96px; bottom: 4%;
	width: 150px; height: 150px; border-radius: 50%;
	border: 3px solid var(--coral);
	color: var(--coral-ink);
	display: grid; place-content: center; text-align: center;
	font: 800 1.15rem/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.04em;
	transform: rotate(-12deg);
	/* Solid, so the screenshot underneath never shows through the text. */
	background: var(--paper);
	box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 9px var(--coral), 0 8px 18px rgb(0 0 0 / 0.18);
}
.postmark-date { font: 700 0.78rem/1.3 var(--body); letter-spacing: 0.1em; margin-top: 4px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.is-tinted { background: var(--paper-tint); }
.section-header { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li {
	counter-increment: step;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 28px 24px 24px;
}
.steps li::before {
	content: counter(step);
	display: grid; place-items: center;
	width: 40px; height: 40px; margin-bottom: 16px;
	border-radius: 50%; background: var(--coral); color: #fff;
	font: 800 1.1rem var(--display);
}
.steps p, .feature p, .audience p { color: var(--ink-soft); margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.feature-icon {
	width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px;
	display: grid; place-items: center;
	background: color-mix(in srgb, var(--accent, var(--coral)) 14%, transparent);
	color: var(--accent, var(--coral));
}
.feature:nth-child(2) { --accent: var(--mustard); }
.feature:nth-child(3) { --accent: var(--leaf); }
.feature:nth-child(4) { --accent: var(--sky); }
.feature:nth-child(5) { --accent: var(--coral); }
.feature:nth-child(6) { --accent: var(--sky); }
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Screenshot strip scrolls sideways; the page itself never does. */
.screens {
	list-style: none; margin: 0; padding: 4px max(16px, (100% - 1120px) / 2) 24px;
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 250px); gap: 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
	scroll-padding-inline: max(16px, (100% - 1120px) / 2);
}
.screens li { scroll-snap-align: start; }
.screens img { border-radius: 22px; box-shadow: 0 10px 24px rgb(18 52 59 / 0.14); }

.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.audience article { border-top: 3px solid var(--coral); padding-top: 18px; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
	cursor: pointer; list-style: none;
	display: flex; justify-content: space-between; gap: 16px;
	font: 600 1.1rem/1.4 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral); font-size: 1.5rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

.cta { padding: clamp(64px, 9vw, 120px) 0; text-align: center; background: var(--paper-tint); }
.cta-inner { display: grid; justify-items: center; }
.cta img { border-radius: 22px; margin-bottom: 20px; box-shadow: 0 10px 24px rgb(18 52 59 / 0.16); }
.cta p { color: var(--ink-soft); font-size: 1.15rem; margin-bottom: 1.8rem; }

.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1.5rem; }
.legal-body { color: var(--ink-soft); }
.legal-body h2 { font-size: 1.3rem; color: var(--ink); margin: 2.2rem 0 0.6rem; }
.legal-body p { max-width: 68ch; }
.legal-body a { color: var(--coral-ink); overflow-wrap: anywhere; }

/* Guides */
.guides .lead { max-width: 60ch; margin-inline: 0; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.guide-card {
	display: flex; flex-direction: column; gap: 10px;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 26px 24px; color: inherit; text-decoration: none;
	transition: border-color 0.2s, transform 0.2s;
}
.guide-card:hover { border-color: var(--coral); transform: translateY(-2px); }
.guide-card h2 { font-size: 1.25rem; margin: 0; }
.guide-card p { color: var(--ink-soft); margin: 0; flex: 1; }
.guide-more { color: var(--coral-ink); font-weight: 600; font-size: 0.95rem; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-soft); }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.6rem; }
.article-meta { color: var(--ink-soft); font-size: 0.95rem; display: flex; gap: 8px; margin-bottom: 2rem; }
.article-body h2 { font-size: clamp(1.35rem, 3vw, 1.6rem); margin: 2.4rem 0 0.7rem; }
.article-body h3 { font-size: 1.15rem; margin: 1.8rem 0 0.5rem; }
.article-body p, .article-body li { max-width: 68ch; }
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { color: var(--ink); }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.6rem; font-size: 0.97rem; display: block; overflow-x: auto; }
.article-body th, .article-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body th { font-family: var(--display); font-weight: 600; background: var(--paper-tint); }
.article-body blockquote { margin: 1.6rem 0; padding: 14px 20px; border-left: 4px solid var(--mustard); background: var(--card); border-radius: 0 12px 12px 0; }
.article-body blockquote p { margin: 0; }
.article-cta {
	display: flex; gap: 20px; align-items: flex-start;
	margin: 3rem 0 0; padding: 26px 24px;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.article-cta img { border-radius: 16px; flex: none; }
.article-cta h2 { font-size: 1.3rem; margin: 0 0 6px; }
.article-cta p { color: var(--ink-soft); margin: 0 0 16px; }
.related { margin-top: 3rem; }
.related h2 { font-size: 1.2rem; }
.related ul { padding-left: 1.2rem; }
.related li { margin-bottom: 0.5rem; }
@media (max-width: 560px) {
	.article-cta { flex-direction: column; }
}

.site-footer { padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-soft); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; color: var(--ink); }
.footer-brand img { border-radius: 7px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.copyright { margin: 0; }

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-copy { text-align: center; }
	.lead, .fine-print { margin-inline: auto; }
	.hero-visual { width: min(300px, 78%); }
	.postmark { left: -36px; bottom: 2%; width: 118px; height: 118px; font-size: 0.95rem; }
	.postmark-date { font-size: 0.68rem; }
	.steps, .feature-grid { grid-template-columns: 1fr 1fr; }
	.audience { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
	.site-header nav > a:not(.nav-cta) { display: none; }
	.site-header nav { gap: 12px; }
	.steps, .feature-grid, .audience { grid-template-columns: 1fr; }
	.footer-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.appstore-button, .faq summary::after { transition: none; }
}
