:root {
	--ink: #212121;
	--muted: #616161;
	--paper: #f5f5f5;
	--card: #ffffff;
	--line: #e0e0e0;
	--brand: #b71c1c;
	--brand-2: #8e0000;
	--brand-light: #e57373;
	--accent: #1976d2;
	--focus: #1976d2;
	--max: 72rem;
	--read: 42rem;
	--font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, .thd-logo {
	font-family: var(--font);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

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

.thd-skip {
	position: absolute;
	left: -999px;
	top: 0;
	background: #fff;
	padding: 0.5rem 1rem;
}
.thd-skip:focus { left: 0.5rem; z-index: 10; }

.thd-wrap {
	width: min(calc(100% - 2rem), var(--max));
	margin-inline: auto;
}

.thd-header {
	background: var(--brand);
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 5;
}

.thd-header a { color: #fff; text-decoration: none; }
.thd-header a:hover { color: #ffebee; }

.thd-header-inner {
	display: flex;
	align-items: center;
	gap: 0.65rem 1rem;
	padding: 0.7rem 0;
	flex-wrap: nowrap;
}

.thd-logo {
	font-size: 1.05rem;
	font-weight: 700;
	margin-right: auto;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.thd-nav {
	font-size: 0.95rem;
	font-weight: 500;
}

.thd-nav-desktop,
.thd-footer-nav ul,
.thd-drop ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.thd-nav-compact {
	display: none;
	align-items: center;
	gap: 0.45rem;
}

.thd-drop {
	position: relative;
}

.thd-drop summary {
	list-style: none;
	cursor: pointer;
	border: 1px solid rgba(255,255,255,.4);
	padding: 0.4rem 0.75rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.88rem;
	line-height: 1.2;
}

.thd-nav-pill {
	border: 1px solid rgba(255,255,255,.4);
	padding: 0.4rem 0.75rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.88rem;
	line-height: 1.2;
	white-space: nowrap;
}

.thd-drop summary::-webkit-details-marker,
.thd-drop summary::marker {
	display: none;
	content: "";
}

.thd-drop summary::after {
	content: "";
	display: inline-block;
	width: 0.4rem;
	height: 0.4rem;
	margin-left: 0.4rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-1px) rotate(45deg);
}

.thd-drop[open] summary {
	background: rgba(255,255,255,.14);
}

.thd-drop ul {
	position: absolute;
	right: 0;
	top: calc(100% + 0.45rem);
	z-index: 8;
	min-width: 13.5rem;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0.15rem;
	padding: 0.45rem;
	background: #fff;
	border-radius: 0.85rem;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.thd-drop a {
	color: var(--ink);
	display: block;
	padding: 0.55rem 0.7rem;
	border-radius: 0.6rem;
	font-weight: 500;
}

.thd-drop a:hover,
.thd-drop a[aria-current="true"] {
	background: #f5f5f5;
	color: var(--brand);
}

.thd-lang-switch {
	border: 1px solid rgba(255,255,255,.35);
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	font-size: 0.9rem;
	white-space: nowrap;
}

.thd-hero {
	padding: 3rem 0 2rem;
	background:
		radial-gradient(1200px 280px at 10% -10%, rgba(183, 28, 28, 0.16), transparent),
		linear-gradient(#ffebee, var(--paper));
}

.thd-hero h1 {
	font-size: clamp(2rem, 4vw, 3.1rem);
	max-width: 18ch;
	margin: 0.35rem 0 1rem;
}

.thd-kicker {
	letter-spacing: 0.04em;
	font-size: 0.8rem;
	color: var(--brand-2);
	font-weight: 600;
	margin: 0;
}

.thd-lead { font-size: 1.2rem; max-width: 46rem; color: var(--muted); }

.thd-main { padding-bottom: 3rem; }

.thd-grid,
.thd-app-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1rem;
	margin: 1.25rem 0 2.5rem;
}

.thd-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 1rem;
	padding: 1.2rem 1.25rem;
	box-shadow: 0 1px 0 rgba(23, 35, 38, 0.04);
	overflow: hidden;
}

.thd-card-link {
	padding: 0;
}

.thd-card-app {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.thd-card-app .thd-app-heading {
	align-items: center;
}

.thd-card-app .thd-store-badges {
	justify-content: center;
	width: 100%;
}

.thd-card-app .thd-btn {
	margin-left: 0;
	margin-right: 0;
}

.thd-card-media {
	width: 100%;
	height: 8.5rem;
	object-fit: cover;
	object-position: center;
	display: block;
	background: #eceff1;
}

.thd-card-body {
	padding: 1.1rem 1.2rem 1.25rem;
}

.thd-card h2,
.thd-card h3 { margin-top: 0; }
.thd-card-body h2,
.thd-card-body h3 { margin-bottom: 0.4rem; }
.thd-card-body p { margin: 0 0 0.75rem; color: var(--muted); }
.thd-card-body p:last-child { margin-bottom: 0; }

.thd-card-link { text-decoration: none; color: inherit; display: block; }
.thd-card-link:hover { border-color: var(--brand-2); }

.thd-figure {
	margin: 0 0 1.5rem;
	max-width: 100%;
	border-radius: 1rem;
	overflow: hidden;
	background: #eceff1;
}
.thd-figure img {
	width: 100%;
	height: 16rem;
	object-fit: cover;
	object-position: center;
	display: block;
}

.thd-app-heading {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.7rem;
	margin-bottom: 0.85rem;
}
.thd-app-heading h2,
.thd-prose .thd-app-heading h2 {
	margin: 0;
}
.thd-app-icon {
	width: 4rem;
	height: 4rem;
	border-radius: 0.9rem;
	object-fit: cover;
	flex-shrink: 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

.thd-prose { max-width: var(--read); }
.thd-prose.thd-wrap,
.thd-main > .thd-wrap.thd-prose { margin-left: auto; margin-right: auto; }

.thd-prose h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 0.6rem; }
.thd-prose h2 { margin-top: 2rem; }
.thd-prose ul { padding-left: 1.2rem; }
.thd-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}
.thd-prose th,
.thd-prose td {
	border: 1px solid var(--line);
	padding: 0.45rem 0.55rem;
	text-align: left;
}

.thd-crumbs {
	font-size: 0.9rem;
	color: var(--muted);
	margin: 1.5rem 0 1rem;
}
.thd-crumbs a { color: var(--muted); }

.thd-btn {
	display: inline-block;
	padding: 0.55rem 0.95rem;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	margin: 0.15rem 0.35rem 0.15rem 0;
	letter-spacing: -0.01em;
}

.thd-btn-primary { background: var(--brand); color: #fff; }
.thd-btn-primary:hover { background: var(--brand-2); color: #fff; }
.thd-btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--card); }

.thd-cta-row { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }

.thd-store-badges {
	gap: 0.55rem;
	margin: 0.75rem 0 0;
	align-items: stretch;
}

.thd-store-badge {
	display: block;
	flex: 0 0 10.5rem;
	width: 10.5rem;
	height: 3.5rem;
	background: #000;
	border-radius: 0.5rem;
	overflow: hidden;
	line-height: 0;
	text-decoration: none;
}

.thd-store-badge:hover {
	opacity: 0.88;
	color: inherit;
}

.thd-store-badge img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

.thd-cta-app,
.thd-cta-buy,
.thd-cta-guide {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 1rem;
	padding: 1.1rem 1.2rem;
	margin: 2rem 0;
}

.thd-cta-buy h2,
.thd-cta-guide h2,
.thd-prose .thd-cta-buy h2,
.thd-prose .thd-cta-guide h2 {
	margin-top: 0;
}

.thd-fineprint,
.thd-disclaimer { font-size: 0.92rem; color: var(--muted); }

.thd-footer {
	background: #4a0e0e;
	color: #f5d0d0;
	padding: 2rem 0 2.5rem;
	margin-top: 2rem;
}
.thd-footer a { color: #ffcdd2; }
.thd-copy { opacity: 0.75; font-size: 0.9rem; }

@media (max-width: 860px) {
	.thd-nav-desktop,
	.thd-lang-switch {
		display: none;
	}
	.thd-nav-compact {
		display: flex;
	}
	.thd-hero { padding-top: 2rem; }
}
