:root {
	--paper: #f6f1e7;
	--tint: #ece5d4;
	--ink: #1b1b1b;
	--muted: #5a554b;
	--yellow: #f2c94c;
	--green: #9fc7a5;
	--coral: #f0907a;
	--blue: #8db8e8;
	--tile-ink: #1b1b1b;
	--tile-muted: #2d2d2d;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--gutter: 24px;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #1a1712;
		--tint: #241f17;
		--ink: #f6f1e7;
		--muted: #b9b2a3;
	}
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 7.4vw, 5.5rem); line-height: .98; letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.25rem); line-height: 1.04; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.02em; }

a { color: inherit; text-underline-offset: .18em; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }

.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.brand img { border-radius: 8px; }
.top-nav { display: flex; align-items: center; gap: 24px; font-weight: 600; }
.top-nav > a { text-decoration: none; }
.top-nav > a:hover { text-decoration: underline; }

.lang { position: relative; }
.lang summary { cursor: pointer; list-style: none; padding: 8px 14px; border-radius: 10px; background: var(--tint); }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; min-width: 180px; padding: 8px; border-radius: 14px; background: #fff; color: #1b1b1b; }
.lang li a, .lang li span { display: block; padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.lang li a:hover { background: var(--tint); color: #1b1b1b; }
.lang li span { font-weight: 800; }

.btn { display: inline-block; padding: 18px 30px; border-radius: 10px; background: var(--ink); color: var(--paper); font: inherit; font-weight: 700; font-size: 1.125rem; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn:disabled { cursor: default; opacity: .6; transform: none; }

/* Hero */
.hero { padding-top: 16px; }
.hero-top { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
.hero-side .lead { font-size: 1.375rem; line-height: 1.4; color: var(--muted); max-width: 30em; }
.hero-side .btn { margin-top: 28px; }
.note { margin-top: 14px; color: var(--muted); font-size: .98rem; }
.guide-title { margin: 56px 0 20px; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.02em; }

.tiles { display: grid; gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: 22px; min-height: 390px; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--tile-ink); }
.tile-text p { margin-top: 6px; color: var(--tile-muted); font-size: 1rem; line-height: 1.4; max-width: 24em; }
.tile h3 { font-size: 1.75rem; }
.tile-photo { position: absolute; }
.t-rejected { background: var(--yellow); min-height: 440px; }
.t-necessary { background: var(--green); }
.t-all { background: var(--coral); }
.t-dismissed { background: var(--blue); }

.t-rejected .tile-photo { width: 78%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; top: 6%; left: 11%; rotate: -5deg; }
.t-necessary .tile-photo { width: 48%; aspect-ratio: 1; object-fit: contain; padding: 1%; background: #fff; border-radius: 50%; right: 8%; top: 6%; rotate: 8deg; }
.t-all .tile-photo { left: 16px; right: 16px; top: 16px; width: auto; height: 52%; object-fit: cover; border-radius: 14px; }
.t-dismissed .tile-photo { width: 56%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; right: 6%; top: 6%; rotate: 6deg; }

@media (min-width: 900px) {
	.tiles { grid-template-columns: repeat(12, 1fr); grid-template-rows: 300px 260px; }
	.tile { min-height: 0; }
	.t-rejected { grid-column: 1 / 6; grid-row: 1 / 3; }
	.t-necessary { grid-column: 6 / 10; grid-row: 1; }
	.t-all { grid-column: 10 / 13; grid-row: 1; }
	.t-dismissed { grid-column: 6 / 13; grid-row: 2; }
	.t-necessary .tile-photo { width: 42%; }
	.t-dismissed .tile-photo { width: auto; height: 220px; right: 40px; top: 50%; margin-top: -110px; }
	.t-dismissed .tile-text { max-width: 52%; }
}

@media (prefers-reduced-motion: no-preference) {
	.tile-photo { transition: scale .5s ease; animation: drift 7s ease-in-out infinite alternate; }
	.t-necessary .tile-photo { animation-name: drift-b; animation-duration: 9s; }
	.t-all .tile-photo { animation: none; }
	.t-dismissed .tile-photo { animation-duration: 8s; }
	.tile:hover .tile-photo { scale: 1.05; }
	@keyframes drift { from { rotate: -5deg; } to { rotate: 2deg; } }
	@keyframes drift-b { from { rotate: 8deg; } to { rotate: 2deg; } }
}

/* Demo */
.demo-section { margin-top: clamp(72px, 10vw, 128px); background: var(--tint); padding-block: clamp(56px, 8vw, 104px); }
.demo { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.demo-text p { margin-top: 18px; font-size: 1.2rem; color: var(--muted); max-width: 26em; }
.demo-text h2 + p { margin-top: 20px; }
.demo-text .btn { margin-top: 12px; }
.result { min-height: 1.6em; color: var(--ink) !important; font-size: 1.1rem !important; }
.result span { color: var(--muted); }

.window { background: #fff; color: #1b1b1b; border-radius: 18px; overflow: hidden; height: 390px; position: relative; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #e6e1d3; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #bdb7a6; flex: none; }
.window-bar .url { flex: 1; min-width: 0; margin-left: 8px; padding: 6px 12px; border-radius: 8px; background: #fff; font-size: .9rem; color: #5a554b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { background: #1b1b1b; color: #fff; padding: 6px 12px; border-radius: 8px; font-size: .85rem; font-weight: 700; white-space: nowrap; opacity: 0; translate: 0 -6px; transition: opacity .3s ease, translate .3s ease; }
.chip:empty { display: none; }
.chip.show { opacity: 1; translate: 0 0; }
.window-page { padding: 28px 28px 0; }
.window-page h3 { font-size: 1.7rem; max-width: 18em; }
.window-page > p { margin-top: 14px; color: #5a554b; max-width: 34em; font-size: 1rem; }
.fake-banner { position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 20px 22px; border-radius: 16px; background: #efeadc; transition: transform .6s ease, opacity .5s ease; }
.fake-banner b { font-size: 1.1rem; }
.fake-banner p { margin: 6px 0 14px; font-size: .95rem; color: #5a554b; line-height: 1.45; }
.fake-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.fake-buttons span { padding: 9px 16px; border-radius: 8px; background: #fff; font-weight: 700; font-size: .92rem; transition: background .25s ease, color .25s ease, scale .25s ease; }
.fake-buttons span.pressed { background: #1b1b1b; color: #fff; scale: .95; }
.fake-banner.gone { transform: translateY(32px); opacity: 0; }

/* Control */
.control { padding-block: clamp(72px, 10vw, 136px) 0; }
.control-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.control-photo { width: 100%; height: 540px; object-fit: cover; border-radius: 26px; }
.points { margin-top: 36px; display: grid; gap: 28px; }
.points p { margin-top: 6px; color: var(--muted); max-width: 32em; }
.limits { margin-top: 40px; font-size: 1.2rem; font-weight: 700; max-width: 26em; }

/* Install */
.install { margin-top: clamp(72px, 10vw, 136px); background: var(--yellow); color: #1b1b1b; padding-block: clamp(56px, 8vw, 104px); }
.install-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.install .lead { margin-top: 16px; font-size: 1.3rem; }
.install .abp { margin-top: 32px; max-width: 28em; font-size: .98rem; color: #2d2d2d; }
.stores { display: grid; gap: 12px; }
.store { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center; padding: 18px 22px; border-radius: 18px; background: rgba(255, 255, 255, .6); text-decoration: none; transition: background .2s ease; }
.store:hover { background: #fff; }
.store img { width: 56px; height: 56px; }
.store-name b { display: block; font-size: 1.3rem; letter-spacing: -.02em; }
.store-name small { display: block; margin-top: 2px; color: #2d2d2d; font-size: .95rem; }
.store-go { padding: 10px 20px; border-radius: 10px; background: #1b1b1b; color: #fff; font-weight: 700; transition: translate .2s ease; }
.store:hover .store-go { translate: 4px 0; }
.store.is-yours { background: #fff; order: -1; padding-block: 26px; }

/* Why */
.why { padding-block: clamp(72px, 10vw, 136px); }
.why-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.why p { margin-top: 20px; font-size: 1.2rem; max-width: 34em; color: var(--muted); }
.why h2 + p { margin-top: 28px; color: var(--ink); }
.why-photo { width: 100%; height: 560px; object-fit: cover; object-position: 30% center; border-radius: 26px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 56px; font-size: .98rem; }
.foot { display: grid; gap: 24px; }
.foot-brand { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-langs [aria-current] { font-weight: 800; }
.credits summary { cursor: pointer; }
.credits ul { margin-top: 12px; display: grid; gap: 6px; opacity: .85; }
.credits p { margin-top: 10px; opacity: .85; }

/* Utility pages */
.page { padding-block: clamp(48px, 8vw, 112px); max-width: 46em; margin-inline: auto; width: min(100% - 2 * var(--gutter), 46em); }
.page h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
.page p { margin-top: 20px; font-size: 1.15rem; }
.page .lead { color: var(--muted); font-size: 1.3rem; }
.page .btn { margin-top: 12px; }
.prose a { text-decoration: underline; }

/* Reveal on scroll, CSS only */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.reveal .wrap { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
		@keyframes rise { from { opacity: 0; translate: 0 36px; } to { opacity: 1; translate: 0 0; } }
	}
}

@media (max-width: 899px) {
	.hero-top, .demo, .control-grid, .install-grid, .why-grid { grid-template-columns: 1fr; }
	.hero-top { gap: 24px; }
	.guide-title { margin-top: 40px; }
	.window { height: 580px; }
	.control-photo, .why-photo { height: 390px; }
	.top-nav { gap: 12px; }
	.store { grid-template-columns: 44px 1fr auto; gap: 14px; padding: 14px 16px; }
	.store img { width: 44px; height: 44px; }
	.store-go { padding: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn, .fake-banner, .chip, .store-go, .fake-buttons span { transition: none; }
}
