/*
 * Top Money theme styles.
 * Dark green, emerald, gold and white; glass surfaces; restrained motion.
 */

/* ---------- Tokens ---------- */
:root {
	--tm-bg: #03140e;
	--tm-bg-2: #062a1f;
	--tm-bg-3: #0a3a2b;
	--tm-surface: rgba(255, 255, 255, 0.045);
	--tm-surface-2: rgba(255, 255, 255, 0.075);
	--tm-border: rgba(255, 255, 255, 0.1);
	--tm-border-strong: rgba(255, 255, 255, 0.18);
	--tm-emerald: #1fbf7a;
	--tm-emerald-2: #2fd08a;
	--tm-emerald-soft: rgba(47, 208, 138, 0.14);
	--tm-gold: #e3b341;
	--tm-gold-2: #f5cf62;
	--tm-gold-soft: rgba(227, 179, 65, 0.14);
	--tm-text: #f3f7f5;
	--tm-text-2: #c3d3cc;
	--tm-muted: #8fa89e;
	--tm-danger: #ff8a80;
	--tm-radius: 18px;
	--tm-radius-sm: 12px;
	--tm-radius-lg: 28px;
	--tm-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
	--tm-glow: 0 0 0 1px rgba(47, 208, 138, 0.25), 0 12px 40px -12px rgba(47, 208, 138, 0.35);
	--tm-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
	--tm-container: 1200px;
	--tm-gutter: clamp(16px, 4vw, 32px);
	--tm-header-h: 72px;
	--tm-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--tm-heading: #ffffff;
	--tm-accent: #f5cf62;
	--tm-accent-grad: #f5cf62;
	--tm-green-text: #2fd08a;
	--tm-planned: #c7d2fe;
	--tm-card-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
	--tm-card-accent-bg: linear-gradient(160deg, rgba(227, 179, 65, 0.09), rgba(255, 255, 255, 0.02));
	--tm-glass-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
	--tm-inset: rgba(255, 255, 255, 0.08);
	--tm-tint-bg: linear-gradient(180deg, rgba(10, 58, 43, 0.35), rgba(6, 42, 31, 0.15));
	--tm-chip-bg: rgba(255, 255, 255, 0.04);
	--tm-hover-bg: rgba(255, 255, 255, 0.08);
	--tm-header-bg: rgba(3, 20, 14, 0.78);
	--tm-nav-bg: rgba(3, 20, 14, 0.97);
	--tm-store-bg: rgba(0, 0, 0, 0.45);
	--tm-store-bg-hover: rgba(0, 0, 0, 0.6);
	--tm-field-bg: rgba(0, 0, 0, 0.3);
	--tm-option-bg: #0a2a20;
	--tm-gridline: rgba(255, 255, 255, 0.035);
	--tm-modal-bg: linear-gradient(160deg, rgba(10, 58, 43, 0.92), rgba(3, 20, 14, 0.94));
	--tm-backdrop: rgba(1, 8, 6, 0.72);
	--tm-solid-panel: #0a2f23;
	--tm-footer-bg: linear-gradient(180deg, #05231a 0%, #020d09 100%);
	--tm-footer-line: rgba(255, 255, 255, 0.1);
	--tm-glow-1: rgba(31, 191, 122, 0.16);
	--tm-glow-2: rgba(227, 179, 65, 0.07);
	--tm-orb-opacity: 0.55;
	--tm-success-text: #c8f5df;
	--tm-error-text: #ffd2cc;
	color-scheme: dark;
}

/* Light mode: chosen with the header switch, or the device setting when
   the visitor has not chosen. The phone illustration stays dark. */
:root[data-theme="light"] {
	--tm-bg: #f3f8f5;
	--tm-bg-2: #e6f1ec;
	--tm-bg-3: #d8eae2;
	--tm-surface: rgba(6, 42, 31, 0.035);
	--tm-surface-2: rgba(6, 42, 31, 0.06);
	--tm-border: rgba(6, 42, 31, 0.1);
	--tm-border-strong: rgba(6, 42, 31, 0.18);
	--tm-emerald-soft: rgba(16, 150, 95, 0.1);
	--tm-gold-soft: rgba(196, 140, 20, 0.12);
	--tm-text: #10291f;
	--tm-text-2: #3a554b;
	--tm-muted: #5f776e;
	--tm-danger: #c62828;
	--tm-shadow: 0 18px 40px -24px rgba(6, 42, 31, 0.35);
	--tm-glow: 0 0 0 1px rgba(16, 150, 95, 0.25), 0 12px 32px -14px rgba(16, 150, 95, 0.3);
	--tm-heading: #062a1f;
	--tm-accent: #8a6100;
	--tm-accent-grad: #b07d12;
	--tm-green-text: #0b7a4b;
	--tm-planned: #4338ca;
	--tm-card-bg: linear-gradient(160deg, #ffffff, rgba(255, 255, 255, 0.86));
	--tm-card-accent-bg: linear-gradient(160deg, #fff8e6, #ffffff);
	--tm-glass-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
	--tm-inset: rgba(255, 255, 255, 0.9);
	--tm-tint-bg: linear-gradient(180deg, #e7f2ed, #eef6f2);
	--tm-chip-bg: rgba(255, 255, 255, 0.8);
	--tm-hover-bg: rgba(6, 42, 31, 0.07);
	--tm-header-bg: rgba(243, 248, 245, 0.86);
	--tm-nav-bg: rgba(243, 248, 245, 0.98);
	--tm-store-bg: #0b2219;
	--tm-store-bg-hover: #06150f;
	--tm-field-bg: #ffffff;
	--tm-option-bg: #ffffff;
	--tm-gridline: rgba(6, 42, 31, 0.05);
	--tm-modal-bg: linear-gradient(160deg, #ffffff, #f1f8f4);
	--tm-backdrop: rgba(6, 30, 22, 0.45);
	--tm-solid-panel: #ffffff;
	--tm-footer-bg: linear-gradient(180deg, #e6f1ec 0%, #dcebe4 100%);
	--tm-footer-line: rgba(6, 42, 31, 0.12);
	--tm-glow-1: rgba(31, 191, 122, 0.14);
	--tm-glow-2: rgba(227, 179, 65, 0.1);
	--tm-orb-opacity: 0.3;
	--tm-success-text: #0b5e3a;
	--tm-error-text: #8e1b1b;
	color-scheme: light;
}

@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) {
		--tm-bg: #f3f8f5;
		--tm-bg-2: #e6f1ec;
		--tm-bg-3: #d8eae2;
		--tm-surface: rgba(6, 42, 31, 0.035);
		--tm-surface-2: rgba(6, 42, 31, 0.06);
		--tm-border: rgba(6, 42, 31, 0.1);
		--tm-border-strong: rgba(6, 42, 31, 0.18);
		--tm-emerald-soft: rgba(16, 150, 95, 0.1);
		--tm-gold-soft: rgba(196, 140, 20, 0.12);
		--tm-text: #10291f;
		--tm-text-2: #3a554b;
		--tm-muted: #5f776e;
		--tm-danger: #c62828;
		--tm-shadow: 0 18px 40px -24px rgba(6, 42, 31, 0.35);
		--tm-glow: 0 0 0 1px rgba(16, 150, 95, 0.25), 0 12px 32px -14px rgba(16, 150, 95, 0.3);
		--tm-heading: #062a1f;
		--tm-accent: #8a6100;
		--tm-accent-grad: #b07d12;
		--tm-green-text: #0b7a4b;
		--tm-planned: #4338ca;
		--tm-card-bg: linear-gradient(160deg, #ffffff, rgba(255, 255, 255, 0.86));
		--tm-card-accent-bg: linear-gradient(160deg, #fff8e6, #ffffff);
		--tm-glass-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
		--tm-inset: rgba(255, 255, 255, 0.9);
		--tm-tint-bg: linear-gradient(180deg, #e7f2ed, #eef6f2);
		--tm-chip-bg: rgba(255, 255, 255, 0.8);
		--tm-hover-bg: rgba(6, 42, 31, 0.07);
		--tm-header-bg: rgba(243, 248, 245, 0.86);
		--tm-nav-bg: rgba(243, 248, 245, 0.98);
		--tm-store-bg: #0b2219;
		--tm-store-bg-hover: #06150f;
		--tm-field-bg: #ffffff;
		--tm-option-bg: #ffffff;
		--tm-gridline: rgba(6, 42, 31, 0.05);
		--tm-modal-bg: linear-gradient(160deg, #ffffff, #f1f8f4);
		--tm-backdrop: rgba(6, 30, 22, 0.45);
		--tm-solid-panel: #ffffff;
		--tm-footer-bg: linear-gradient(180deg, #e6f1ec 0%, #dcebe4 100%);
		--tm-footer-line: rgba(6, 42, 31, 0.12);
		--tm-glow-1: rgba(31, 191, 122, 0.14);
		--tm-glow-2: rgba(227, 179, 65, 0.1);
		--tm-orb-opacity: 0.3;
		--tm-success-text: #0b5e3a;
		--tm-error-text: #8e1b1b;
		color-scheme: light;
	}
}

/* The phone illustration is always drawn in dark mode. */
.tm-phone {
	--tm-heading: #ffffff;
	--tm-text-2: #c3d3cc;
	--tm-muted: #8fa89e;
	--tm-green-text: #2fd08a;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--tm-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--tm-bg);
	background-image:
		radial-gradient(1200px 600px at 85% -10%, var(--tm-glow-1), transparent 60%),
		radial-gradient(900px 500px at -10% 10%, var(--tm-glow-2), transparent 60%);
	background-attachment: fixed;
	color: var(--tm-text);
	font-family: var(--tm-font);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	transition: background-color 0.3s var(--tm-ease), color 0.3s var(--tm-ease);
}

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

img {
	display: block;
}

a {
	color: var(--tm-green-text);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s var(--tm-ease);
}

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

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

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--tm-heading);
}

p {
	margin: 0 0 1em;
}

p:last-child {
	margin-bottom: 0;
}

ul,
ol {
	padding-left: 1.25em;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tm-skip {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--tm-gold);
	color: #1b1400;
	font-weight: 700;
	text-decoration: none;
}

.tm-skip:focus {
	top: 12px;
}

.tm-icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	vertical-align: middle;
}

.tm-flip {
	transform: scaleX(-1);
}

[dir="rtl"] .tm-icon--dir,
[dir="rtl"] .tm-btn .tm-icon,
[dir="rtl"] .tm-link .tm-icon {
	transform: scaleX(-1);
}

[dir="rtl"] .tm-link .tm-flip,
[dir="rtl"] .tm-flip {
	transform: none;
}

/* ---------- Layout ---------- */
.tm-container {
	width: 100%;
	max-width: var(--tm-container);
	margin-inline: auto;
	padding-inline: var(--tm-gutter);
}

.tm-container--narrow {
	max-width: 880px;
}

.tm-main {
	display: block;
	min-height: 60vh;
	outline: none;
}

.tm-section {
	padding-block: clamp(56px, 9vw, 104px);
	position: relative;
}

.tm-section--flush {
	padding-top: clamp(24px, 4vw, 40px);
}

.tm-section--tint {
	background: var(--tm-tint-bg);
	border-block: 1px solid var(--tm-border);
}

.tm-grid {
	display: grid;
	gap: clamp(16px, 2vw, 24px);
}

.tm-grid--2 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.tm-grid--3 {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.tm-grid--4 {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.tm-grid--values {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.tm-grid--contacts {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.tm-split {
	display: grid;
	gap: clamp(28px, 5vw, 64px);
	grid-template-columns: 1fr;
	align-items: start;
}

@media (min-width: 900px) {
	.tm-split {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	}
}

.tm-stack {
	display: grid;
	gap: 20px;
}

.tm-center {
	text-align: center;
}

.tm-center.tm-btn-row,
.tm-btn-row.tm-center,
.tm-section .tm-center:has(> .tm-btn) {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
}

.tm-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-top: 24px;
}

.tm-section .tm-center {
	margin-top: 32px;
}

.tm-small {
	font-size: 0.875rem;
	color: var(--tm-muted);
}

.tm-plain {
	list-style: none;
	padding: 0;
	margin: 0 0 1em;
	display: grid;
	gap: 6px;
}

/* ---------- Glass & cards ---------- */
.tm-glass {
	background: var(--tm-glass-bg);
	border: 1px solid var(--tm-border-strong);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	box-shadow: var(--tm-shadow), inset 0 1px 0 var(--tm-inset);
}

.tm-card {
	position: relative;
	padding: clamp(20px, 2.4vw, 28px);
	border-radius: var(--tm-radius);
	background: var(--tm-card-bg);
	border: 1px solid var(--tm-border);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transition: border-color 0.25s var(--tm-ease), transform 0.25s var(--tm-ease), box-shadow 0.25s var(--tm-ease);
}

.tm-card h3 {
	font-size: 1.125rem;
	margin-top: 14px;
}

.tm-card p {
	color: var(--tm-text-2);
}

.tm-card--accent {
	border-color: rgba(227, 179, 65, 0.3);
	background: var(--tm-card-accent-bg);
}

.tm-card__title {
	font-size: 1.25rem;
	margin-top: 14px;
}

.tm-feature:hover,
.tm-step:hover,
.tm-value:hover {
	border-color: rgba(47, 208, 138, 0.35);
	transform: translateY(-3px);
	box-shadow: var(--tm-glow);
}

.tm-icon-tile {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--tm-emerald-soft);
	color: var(--tm-green-text);
	border: 1px solid rgba(47, 208, 138, 0.25);
	flex: none;
}

.tm-icon-tile .tm-icon {
	width: 24px;
	height: 24px;
}

.tm-icon-tile--gold {
	background: var(--tm-gold-soft);
	color: var(--tm-accent);
	border-color: rgba(227, 179, 65, 0.3);
}

/* ---------- Typography helpers ---------- */
.tm-eyebrow {
	display: inline-block;
	margin: 0 0 12px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tm-accent);
}

.tm-section-head {
	max-width: 760px;
	margin: 0 auto clamp(28px, 4vw, 48px);
	text-align: center;
}

.tm-split .tm-section-head {
	text-align: start;
	margin-inline: 0;
}

.tm-section-title {
	font-size: clamp(1.75rem, 3.6vw, 2.75rem);
}

.tm-lead {
	font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
	color: var(--tm-text-2);
}

.tm-subhead {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: clamp(32px, 4vw, 48px) 0 20px;
	font-size: 1.25rem;
	color: var(--tm-text);
}

.tm-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	text-decoration: none;
}

/* ---------- Buttons ---------- */
.tm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-weight: 700;
	font-size: 0.9375rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s var(--tm-ease), box-shadow 0.2s var(--tm-ease), background 0.2s var(--tm-ease), border-color 0.2s var(--tm-ease), color 0.2s var(--tm-ease);
}

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

.tm-btn--gold {
	background: linear-gradient(135deg, var(--tm-gold-2), var(--tm-gold));
	color: #1a1300;
	box-shadow: 0 10px 28px -10px rgba(227, 179, 65, 0.6);
}

.tm-btn--gold:hover {
	color: #1a1300;
	box-shadow: 0 14px 34px -10px rgba(227, 179, 65, 0.75);
}

.tm-btn--ghost {
	background: var(--tm-chip-bg);
	border-color: var(--tm-border-strong);
	color: var(--tm-text);
}

.tm-btn--ghost:hover {
	border-color: var(--tm-green-text);
	color: var(--tm-heading);
	background: var(--tm-emerald-soft);
}

.tm-btn--sm {
	min-height: 40px;
	padding: 8px 18px;
	font-size: 0.875rem;
}

.tm-btn--block {
	width: 100%;
}

.tm-btn[disabled] {
	opacity: 0.6;
	cursor: progress;
	transform: none;
}

/* Store buttons: official-style black badges in both colour modes */
.tm-stores {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.tm-stores--center {
	justify-content: center;
}

.tm-store {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 58px;
	min-width: 184px;
	padding: 0 20px 0 14px;
	border-radius: 11px;
	border: 1px solid #a6a6a6;
	background: #000;
	color: #fff;
	font-family: var(--tm-font);
	text-align: start;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.8);
	transition: transform 0.2s var(--tm-ease), border-color 0.2s var(--tm-ease), box-shadow 0.2s var(--tm-ease);
}

.tm-store:hover,
.tm-store:focus-visible {
	color: #fff;
	transform: translateY(-2px);
	border-color: #fff;
	box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.85), 0 0 0 3px rgba(227, 179, 65, 0.35);
}

.tm-store__icon {
	width: 28px;
	height: 28px;
	flex: none;
	color: #fff;
}

.tm-store__play {
	width: 26px;
	height: 28px;
}

.tm-store--web_app .tm-store__icon {
	color: var(--tm-gold-2);
}

.tm-store__text {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.tm-store__small {
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: #fff;
}

.tm-store--google_play .tm-store__small {
	font-size: 0.625rem;
	letter-spacing: 0.08em;
}

.tm-store__big {
	margin-top: 2px;
	font-size: 1.3125rem;
	font-weight: 600;
	letter-spacing: -0.015em;
}

/* ---------- Header ---------- */
.tm-header {
	position: sticky;
	top: 0;
	z-index: 100;
	transition: background 0.3s var(--tm-ease), border-color 0.3s var(--tm-ease), box-shadow 0.3s var(--tm-ease);
	border-bottom: 1px solid transparent;
}

.admin-bar .tm-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .tm-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .tm-header {
		top: 0;
	}
}

.tm-header.is-scrolled,
.tm-nav-open .tm-header {
	background: var(--tm-header-bg);
	-webkit-backdrop-filter: blur(16px) saturate(150%);
	backdrop-filter: blur(16px) saturate(150%);
	border-bottom-color: var(--tm-border);
	box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
}

.tm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: var(--tm-header-h);
}

.tm-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--tm-heading);
	text-decoration: none;
	flex: none;
}

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

.tm-logo__mark {
	width: 40px;
	height: 40px;
	filter: drop-shadow(0 4px 12px rgba(227, 179, 65, 0.25));
}

.tm-logo__text {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.tm-logo__money {
	color: var(--tm-accent);
}

.tm-nav {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-inline-start: auto;
}

.tm-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tm-nav__list a {
	display: block;
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--tm-text-2);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	transition: color 0.2s var(--tm-ease), background 0.2s var(--tm-ease);
}

.tm-nav__list a:hover,
.tm-nav__list .current-menu-item > a,
.tm-nav__list a[aria-current="page"] {
	color: var(--tm-heading);
	background: var(--tm-hover-bg);
}

.tm-nav__list .current-menu-item > a,
.tm-nav__list a[aria-current="page"] {
	box-shadow: inset 0 -2px 0 var(--tm-gold);
}

.tm-burger {
	display: none;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	border: 1px solid var(--tm-border-strong);
	background: var(--tm-chip-bg);
	cursor: pointer;
	place-items: center;
}

.tm-burger__bars {
	display: grid;
	gap: 5px;
	width: 20px;
}

.tm-burger__bars span {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: var(--tm-heading);
	transition: transform 0.25s var(--tm-ease), opacity 0.2s var(--tm-ease);
}

.tm-burger[aria-expanded="true"] .tm-burger__bars span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.tm-burger[aria-expanded="true"] .tm-burger__bars span:nth-child(2) {
	opacity: 0;
}

.tm-burger[aria-expanded="true"] .tm-burger__bars span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1080px) {
	.tm-burger {
		display: grid;
	}

	.tm-nav {
		position: fixed;
		inset: var(--tm-header-h) 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		max-height: calc(100vh - var(--tm-header-h));
		max-height: calc(100dvh - var(--tm-header-h));
		overflow-y: auto;
		padding: 16px var(--tm-gutter) 28px;
		background: var(--tm-nav-bg);
		-webkit-backdrop-filter: blur(20px);
		backdrop-filter: blur(20px);
		border-bottom: 1px solid var(--tm-border);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.25s var(--tm-ease), transform 0.25s var(--tm-ease), visibility 0s linear 0.25s;
	}

	.admin-bar .tm-nav {
		inset-block-start: calc(var(--tm-header-h) + 46px);
	}

	.tm-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity 0.25s var(--tm-ease), transform 0.25s var(--tm-ease), visibility 0s;
	}

	.tm-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.tm-nav__list a {
		padding: 14px 16px;
		border-radius: 12px;
		font-size: 1.0625rem;
	}

	.tm-nav__cta .tm-btn {
		width: 100%;
		min-height: 50px;
	}

	body.tm-nav-open {
		overflow: hidden;
	}
}

@media (min-width: 783px) and (max-width: 1080px) {
	.admin-bar .tm-nav {
		inset-block-start: calc(var(--tm-header-h) + 32px);
	}
}

/* ---------- Hero ---------- */
.tm-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 120px);
}

.tm-hero--small {
	padding-block: clamp(80px, 12vw, 160px);
}

.tm-hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: -1;
}

.tm-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: var(--tm-orb-opacity);
}

.tm-orb--a {
	width: 520px;
	height: 520px;
	right: -140px;
	top: -120px;
	background: radial-gradient(circle, rgba(31, 191, 122, 0.55), transparent 65%);
	animation: tm-float 14s ease-in-out infinite;
}

.tm-orb--b {
	width: 420px;
	height: 420px;
	left: -160px;
	bottom: -160px;
	background: radial-gradient(circle, rgba(227, 179, 65, 0.35), transparent 65%);
	animation: tm-float 18s ease-in-out infinite reverse;
}

.tm-grid-lines {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--tm-gridline) 1px, transparent 1px),
		linear-gradient(90deg, var(--tm-gridline) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

@keyframes tm-float {
	0%,
	100% {
		transform: translate3d(0, 0, 0);
	}

	50% {
		transform: translate3d(-24px, 18px, 0);
	}
}

.tm-hero__inner {
	display: grid;
	gap: clamp(40px, 6vw, 72px);
	align-items: center;
	grid-template-columns: 1fr;
}

@media (min-width: 960px) {
	.tm-hero__inner {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	}
}

.tm-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--tm-emerald-soft);
	border: 1px solid rgba(47, 208, 138, 0.3);
	color: var(--tm-green-text);
	font-size: 0.875rem;
	font-weight: 600;
}

.tm-pill__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tm-emerald-2);
	box-shadow: 0 0 0 0 rgba(47, 208, 138, 0.6);
	animation: tm-pulse 2.4s ease-out infinite;
}

@keyframes tm-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(47, 208, 138, 0.55);
	}

	70%,
	100% {
		box-shadow: 0 0 0 10px rgba(47, 208, 138, 0);
	}
}

.tm-hero__title {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 18px;
}

.tm-hero__brand {
	font-size: clamp(2.75rem, 7vw, 4.75rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.02;
	background: linear-gradient(120deg, var(--tm-heading) 30%, var(--tm-accent-grad) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.tm-hero__slogan {
	font-size: clamp(1.5rem, 3.6vw, 2.375rem);
	font-weight: 700;
	color: var(--tm-green-text);
	letter-spacing: -0.02em;
}

.tm-hero__tagline {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--tm-accent);
	margin-bottom: 14px;
}

.tm-hero__copy .tm-lead {
	max-width: 560px;
}

.tm-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	list-style: none;
	padding: 0;
	margin: 28px 0 0;
	color: var(--tm-text-2);
	font-size: 0.9375rem;
}

.tm-hero__facts li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.tm-hero__facts .tm-icon {
	color: var(--tm-green-text);
}

.tm-hero__visual {
	display: flex;
	justify-content: center;
}

/* Phone illustration */
.tm-phone {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	width: 100%;
	font-family: var(--tm-font);
}

.tm-phone__stage {
	position: relative;
	display: flex;
	justify-content: center;
	width: 100%;
	padding: 22px 8px 24px;
	animation: tm-rise 0.9s var(--tm-ease) both;
}

@keyframes tm-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes tm-hover {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-10px);
	}
}

.tm-phone__frame {
	position: relative;
	width: min(318px, 80vw);
	aspect-ratio: 9 / 18.4;
	padding: 11px;
	border-radius: 46px;
	background: linear-gradient(160deg, #26332e, #050a08 55%, #1a2420);
	border: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow:
		0 50px 90px -35px rgba(0, 0, 0, 0.85),
		0 0 0 5px rgba(255, 255, 255, 0.03),
		0 30px 120px -40px rgba(31, 191, 122, 0.55),
		inset 0 0 0 1px rgba(255, 255, 255, 0.05);
	animation: tm-hover 7s ease-in-out 1s infinite;
}

.tm-phone__notch {
	position: absolute;
	top: 20px;
	left: 50%;
	width: 86px;
	height: 24px;
	transform: translateX(-50%);
	border-radius: 999px;
	background: #000;
	z-index: 2;
}

.tm-phone__screen {
	height: 100%;
	overflow: hidden;
	border-radius: 36px;
	padding: 48px 13px 13px;
	background:
		radial-gradient(260px 200px at 100% 0%, rgba(31, 191, 122, 0.28), transparent 65%),
		radial-gradient(220px 180px at 0% 100%, rgba(227, 179, 65, 0.1), transparent 70%),
		linear-gradient(180deg, #072a1f, #03140e);
	display: flex;
	flex-direction: column;
	gap: 9px;
	font-size: 11px;
	line-height: 1.35;
	color: #c3d3cc;
}

.tm-ui__muted {
	display: block;
	color: #8fa89e;
	font-size: 10px;
}

.tm-ui__title {
	display: block;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: -0.01em;
}

.tm-ui__title--sm {
	font-size: 11.5px;
}

.tm-ui__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tm-ui__avatar {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 10px;
	font-weight: 800;
	color: #1a1300;
	background: linear-gradient(135deg, #f5cf62, #e3b341);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* Net worth card */
.tm-ui__balance {
	position: relative;
	overflow: hidden;
	padding: 12px 12px 10px;
	border-radius: 18px;
	background: linear-gradient(140deg, #0f5a40 0%, #0a3a2b 55%, #072b20 100%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tm-ui__balance::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.12) 45%, transparent 60%);
	transform: translateX(-100%);
	animation: tm-shine 6s ease-in-out 2s infinite;
	pointer-events: none;
}

@keyframes tm-shine {
	0%,
	70% {
		transform: translateX(-100%);
	}

	100% {
		transform: translateX(100%);
	}
}

.tm-ui__balance-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tm-ui__code {
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: #1a1300;
	background: #f5cf62;
}

.tm-ui__amount {
	display: block;
	margin-top: 4px;
	font-size: 25px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.tm-ui__amount.is-swapping {
	animation: tm-swap 0.6s var(--tm-ease);
}

@keyframes tm-swap {
	0% {
		opacity: 0;
		transform: translateY(8px);
		filter: blur(2px);
	}

	100% {
		opacity: 1;
		transform: none;
		filter: none;
	}
}

.tm-ui__balance-foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
	margin-top: 4px;
}

.tm-ui__delta {
	color: #2fd08a;
	font-weight: 700;
	font-size: 10px;
	white-space: nowrap;
}

.tm-ui__spark {
	width: 46%;
	height: 26px;
	overflow: visible;
}

.tm-ui__spark-line {
	fill: none;
	stroke: #2fd08a;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	vector-effect: non-scaling-stroke;
	animation: tm-draw 1.6s var(--tm-ease) 0.6s forwards;
}

.tm-ui__spark-area {
	opacity: 0;
	animation: tm-fade-in 0.8s ease 1.6s forwards;
}

@keyframes tm-draw {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes tm-fade-in {
	to {
		opacity: 1;
	}
}

/* Currency chips */
.tm-ui__chips {
	display: flex;
	gap: 5px;
}

.tm-ui__chip {
	flex: 1;
	padding: 4px 0;
	border-radius: 999px;
	text-align: center;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #8fa89e;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: background 0.4s var(--tm-ease), color 0.4s var(--tm-ease), border-color 0.4s var(--tm-ease);
}

.tm-ui__chip.is-active {
	color: #062a1f;
	background: #2fd08a;
	border-color: #2fd08a;
}

/* Cards */
.tm-ui__card {
	padding: 10px 11px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.tm-ui__card-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 8px;
}

.tm-ui__card-head .tm-ui__muted {
	font-weight: 600;
}

.tm-ui__card-head--bare {
	margin: 2px 2px -2px;
}

/* Donut */
.tm-ui__donut-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tm-ui__donut {
	width: 92px;
	height: 92px;
	flex: none;
	overflow: visible;
}

.tm-ui__donut-track {
	fill: none;
	stroke: rgba(255, 255, 255, 0.06);
	stroke-width: 6;
}

.tm-ui__donut-seg {
	fill: none;
	stroke-width: 6;
	stroke-linecap: butt;
	animation: tm-seg 1s var(--tm-ease) both;
	animation-delay: calc(0.5s + var(--i) * 0.18s);
}

@keyframes tm-seg {
	from {
		stroke-dasharray: 0 100;
	}
}

.tm-ui__donut-big {
	fill: #fff;
	font-size: 8px;
	font-weight: 800;
	text-anchor: middle;
	font-family: var(--tm-font);
}

.tm-ui__donut-small {
	fill: #8fa89e;
	font-size: 3.4px;
	text-anchor: middle;
	font-family: var(--tm-font);
}

.tm-ui__legend {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	min-width: 0;
	display: grid;
	gap: 4px;
}

.tm-ui__legend li {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 10px;
	color: #c3d3cc;
	opacity: 0;
	animation: tm-fade-up 0.5s var(--tm-ease) forwards;
	animation-delay: calc(0.7s + var(--i) * 0.12s);
}

.tm-ui__legend b {
	margin-inline-start: auto;
	color: #fff;
	font-weight: 700;
}

.tm-ui__legend-label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tm-ui__swatch {
	width: 8px;
	height: 8px;
	border-radius: 3px;
	flex: none;
}

@keyframes tm-fade-up {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Currency accounts */
.tm-ui__wallets {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 7px;
}

.tm-ui__wallet {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	min-width: 0;
	opacity: 0;
	animation: tm-fade-up 0.5s var(--tm-ease) forwards;
	animation-delay: calc(1.1s + var(--i) * 0.12s);
}

.tm-ui__wallet-text {
	display: grid;
	min-width: 0;
}

.tm-ui__wallet b {
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-variant-numeric: tabular-nums;
}

.tm-ui__cur {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	flex: none;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 800;
}

.tm-ui__cur--a {
	color: #062a1f;
	background: #2fd08a;
}

.tm-ui__cur--b {
	color: #fff;
	background: #3d6bff;
}

.tm-ui__cur--c {
	color: #fff;
	background: #8b5cf6;
}

.tm-ui__cur--d {
	color: #1a1300;
	background: #f5cf62;
}

/* Recent activity */
.tm-ui__recent {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 7px;
}

.tm-ui__recent li {
	display: flex;
	align-items: center;
	gap: 8px;
	opacity: 0;
	animation: tm-fade-up 0.5s var(--tm-ease) forwards;
	animation-delay: calc(1.6s + var(--i) * 0.14s);
}

.tm-ui__recent-text {
	display: grid;
	min-width: 0;
}

.tm-ui__recent-text b {
	color: #fff;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tm-ui__in,
.tm-ui__out {
	margin-inline-start: auto;
	font-weight: 700;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.tm-ui__in {
	color: #2fd08a;
}

.tm-ui__out {
	color: #ffb4a8;
}

/* Floating cards around the phone */
.tm-float {
	position: absolute;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px 10px 10px;
	border-radius: 16px;
	background: rgba(6, 30, 22, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.14);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 12px;
	line-height: 1.25;
	white-space: nowrap;
}

.tm-float b {
	display: block;
	font-weight: 700;
}

.tm-float small {
	display: block;
	color: #8fa89e;
	font-size: 10.5px;
	letter-spacing: 0.02em;
}

.tm-float--fx {
	top: 8px;
	inset-inline-start: max(0px, calc(50% - 250px));
	animation: tm-pop-in 0.7s var(--tm-ease) 0.9s both, tm-hover 6s ease-in-out 2s infinite;
}

.tm-float--goal {
	bottom: 6px;
	inset-inline-end: max(0px, calc(50% - 250px));
	animation: tm-pop-in 0.7s var(--tm-ease) 1.2s both, tm-hover 6.5s ease-in-out 2.5s infinite reverse;
}

@keyframes tm-pop-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.92);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.tm-float__icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	color: #062a1f;
	background: linear-gradient(135deg, #2fd08a, #1fbf7a);
}

.tm-float__icon .tm-icon {
	width: 18px;
	height: 18px;
}

.tm-float__ring {
	width: 36px;
	height: 36px;
	transform: rotate(-90deg);
}

.tm-float__ring-track,
.tm-float__ring-fill {
	fill: none;
	stroke-width: 4;
}

.tm-float__ring-track {
	stroke: rgba(255, 255, 255, 0.12);
}

.tm-float__ring-fill {
	stroke: #f5cf62;
	stroke-linecap: round;
	stroke-dasharray: 68 100;
	animation: tm-ring 1.4s var(--tm-ease) 1.4s both;
}

@keyframes tm-ring {
	from {
		stroke-dasharray: 0 100;
	}
}

@media (max-width: 560px) {
	.tm-float {
		font-size: 11px;
		padding: 8px 11px 8px 8px;
	}

	.tm-float small {
		font-size: 9.5px;
	}

	.tm-float--fx {
		top: 8px;
		inset-inline-start: 0;
	}

	.tm-float--goal {
		bottom: 6px;
		inset-inline-end: 0;
	}

	.tm-float__icon,
	.tm-float__ring {
		width: 30px;
		height: 30px;
	}
}

.tm-phone__caption {
	font-size: 0.8125rem;
	color: var(--tm-muted);
	text-align: center;
	max-width: 340px;
}

/* ---------- Badges & legend ---------- */
.tm-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
	border: 1px solid transparent;
}

.tm-badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.tm-badge--launch {
	color: var(--tm-green-text);
	background: var(--tm-emerald-soft);
	border-color: rgba(47, 208, 138, 0.3);
}

.tm-badge--development {
	color: var(--tm-accent);
	background: var(--tm-gold-soft);
	border-color: rgba(227, 179, 65, 0.3);
}

.tm-badge--planned {
	color: var(--tm-planned);
	background: rgba(165, 180, 252, 0.1);
	border-color: rgba(165, 180, 252, 0.28);
}

.tm-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 24px;
	list-style: none;
	margin: 0 auto 8px;
	padding: 14px 18px;
	max-width: 980px;
	border-radius: var(--tm-radius-sm);
	background: var(--tm-surface);
	border: 1px solid var(--tm-border);
	font-size: 0.875rem;
	color: var(--tm-text-2);
}

.tm-legend li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* ---------- Features ---------- */
.tm-feature__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.tm-feature__title {
	font-size: 1.125rem;
}

.tm-grid--compact .tm-card {
	padding: 20px;
}

.tm-grid--compact .tm-icon-tile {
	width: 42px;
	height: 42px;
}

.tm-feature--detail .tm-feature__title {
	font-size: 1.3125rem;
}

.tm-checks {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.tm-checks li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	color: var(--tm-text-2);
}

.tm-checks .tm-icon {
	color: var(--tm-green-text);
	margin-top: 3px;
	width: 18px;
	height: 18px;
}

/* ---------- Steps ---------- */
.tm-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	counter-reset: none;
}

.tm-step__num {
	position: absolute;
	top: 18px;
	inset-inline-end: 22px;
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px rgba(227, 179, 65, 0.45);
}

/* ---------- Reasons ---------- */
.tm-reason {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 20px;
	border-radius: var(--tm-radius);
	background: var(--tm-surface);
	border: 1px solid var(--tm-border);
}

.tm-reason h3 {
	font-size: 1.0625rem;
	margin-bottom: 4px;
}

.tm-reason p {
	color: var(--tm-text-2);
	font-size: 0.9375rem;
}

.tm-split__intro .tm-btn {
	margin-top: 4px;
}

/* ---------- Roadmap ---------- */
.tm-roadmap {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 820px;
	position: relative;
	display: grid;
	gap: 18px;
}

.tm-roadmap::before {
	content: "";
	position: absolute;
	inset-inline-start: 11px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: linear-gradient(180deg, var(--tm-emerald-2), var(--tm-gold), rgba(165, 180, 252, 0.5));
	border-radius: 2px;
}

.tm-roadmap__item {
	position: relative;
	padding-inline-start: 44px;
}

.tm-roadmap__dot {
	position: absolute;
	inset-inline-start: 4px;
	top: 26px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--tm-bg);
	border: 3px solid var(--tm-emerald-2);
}

.tm-roadmap__item--development .tm-roadmap__dot {
	border-color: var(--tm-accent);
}

.tm-roadmap__item--planned .tm-roadmap__dot {
	border-color: #a5b4fc;
}

.tm-roadmap h3 {
	margin-top: 12px;
}

/* ---------- Notify ---------- */
.tm-notify {
	padding-block: clamp(32px, 5vw, 56px);
}

.tm-notify__box {
	display: grid;
	gap: 24px;
	align-items: center;
	padding: clamp(24px, 4vw, 40px);
	border-radius: var(--tm-radius-lg);
}

@media (min-width: 900px) {
	.tm-notify__box {
		grid-template-columns: 1fr 1fr;
	}
}

.tm-notify__copy {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.tm-notify__title {
	font-size: 1.5rem;
}

.tm-notify__copy p {
	color: var(--tm-text-2);
}

/* ---------- CTA ---------- */
.tm-cta {
	position: relative;
	overflow: hidden;
	padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px);
	border-radius: var(--tm-radius-lg);
	text-align: center;
}

.tm-cta__glow {
	position: absolute;
	inset: -40% -10% auto;
	height: 120%;
	background: radial-gradient(closest-side, rgba(31, 191, 122, 0.35), transparent);
	pointer-events: none;
	z-index: -1;
}

.tm-cta__title {
	font-size: clamp(2rem, 4.6vw, 3.25rem);
	max-width: 760px;
	margin-inline: auto;
}

.tm-cta .tm-lead {
	max-width: 620px;
	margin-inline: auto;
}

/* ---------- Page hero ---------- */
.tm-page-hero {
	position: relative;
	padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 48px);
	overflow: hidden;
}

.tm-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(700px 300px at 20% 0%, rgba(31, 191, 122, 0.18), transparent 70%);
	z-index: -1;
}

.tm-page-hero__title {
	font-size: clamp(2.125rem, 5vw, 3.5rem);
	letter-spacing: -0.03em;
	max-width: 900px;
}

.tm-page-hero .tm-lead {
	max-width: 720px;
}

.tm-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	font-size: 0.875rem;
	color: var(--tm-muted);
}

.tm-crumbs li + li::before {
	content: "/";
	margin-inline-end: 6px;
	opacity: 0.5;
}

.tm-crumbs a {
	color: var(--tm-text-2);
	text-decoration: none;
}

/* ---------- Notices ---------- */
.tm-notice {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 18px;
	margin-bottom: 28px;
	border-radius: var(--tm-radius-sm);
	background: var(--tm-gold-soft);
	border: 1px solid rgba(227, 179, 65, 0.3);
	color: var(--tm-text);
}

.tm-notice .tm-icon {
	color: var(--tm-accent);
	margin-top: 2px;
}

.tm-notice--info {
	background: rgba(165, 180, 252, 0.08);
	border-color: rgba(165, 180, 252, 0.3);
}

.tm-notice--info .tm-icon {
	color: var(--tm-planned);
}

.tm-disclaimer-line {
	margin-top: 32px;
	text-align: center;
	color: var(--tm-muted);
	font-size: 0.9375rem;
}

/* ---------- About ---------- */
.tm-parent {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: flex-start;
	padding: clamp(24px, 4vw, 48px);
	border-radius: var(--tm-radius-lg);
}

.tm-parent > div {
	flex: 1 1 320px;
}

.tm-parent h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.tm-parent p {
	color: var(--tm-text-2);
}

/* ---------- Prose ---------- */
.tm-prose {
	color: var(--tm-text-2);
}

.tm-prose h2 {
	font-size: clamp(1.375rem, 2.4vw, 1.75rem);
	margin-top: 1.6em;
	color: var(--tm-heading);
}

.tm-prose h2:first-child {
	margin-top: 0;
}

.tm-prose h3 {
	font-size: 1.1875rem;
	margin-top: 1.4em;
}

.tm-prose strong {
	color: var(--tm-text);
}

.tm-prose li {
	margin-bottom: 0.4em;
}

.tm-prose blockquote {
	margin: 1.5em 0;
	padding: 4px 0 4px 18px;
	border-inline-start: 3px solid var(--tm-gold);
	color: var(--tm-text);
}

.tm-prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 0.9375rem;
}

.tm-prose th,
.tm-prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--tm-border);
	text-align: start;
}

.tm-prose img,
.tm-prose__img {
	border-radius: var(--tm-radius-sm);
	margin-block: 1.5em;
}

.tm-prose .wp-block-button__link {
	background: var(--tm-gold);
	color: #1a1300;
	border-radius: 999px;
	font-weight: 700;
}

.alignwide {
	max-width: 1100px;
}

.aligncenter {
	margin-inline: auto;
}

/* ---------- Legal ---------- */
.tm-legal-dates {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	margin: 8px 0 0;
	font-size: 0.9375rem;
}

.tm-legal-dates div {
	display: flex;
	gap: 8px;
}

.tm-legal-dates dt {
	color: var(--tm-muted);
}

.tm-legal-dates dd {
	margin: 0;
	color: var(--tm-heading);
	font-weight: 600;
}

.tm-legal {
	display: grid;
	gap: 28px;
	grid-template-columns: 1fr;
	align-items: start;
}

@media (min-width: 1000px) {
	.tm-legal {
		grid-template-columns: 280px minmax(0, 1fr);
	}

	.tm-legal__toc {
		position: sticky;
		top: calc(var(--tm-header-h) + 24px);
	}
}

.tm-legal__toc-title {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--tm-accent);
}

.tm-legal__toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
	font-size: 0.9375rem;
}

.tm-legal__toc a {
	color: var(--tm-text-2);
	text-decoration: none;
}

.tm-legal__toc a:hover {
	color: var(--tm-accent);
}

.tm-legal__body {
	padding: clamp(22px, 4vw, 48px);
	max-width: 860px;
}

.tm-legal__contact {
	margin-top: 2.4em;
	padding-top: 1.6em;
	border-top: 1px solid var(--tm-border);
}

.tm-legal__back {
	margin-top: 2em;
}

.tm-legal-index {
	padding-block: 40px;
}

.tm-legal-index .tm-subhead {
	margin-top: 0;
}

.tm-legal-index__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tm-legal-index__list a {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--tm-border-strong);
	color: var(--tm-text-2);
	text-decoration: none;
	font-size: 0.9375rem;
}

.tm-legal-index__list a:hover,
.tm-legal-index__list .current-menu-item a {
	border-color: var(--tm-gold);
	color: var(--tm-heading);
}

/* ---------- FAQ ---------- */
.tm-faq {
	display: grid;
	gap: 12px;
}

.tm-faq__item {
	border-radius: var(--tm-radius-sm);
	background: var(--tm-surface);
	border: 1px solid var(--tm-border);
	overflow: hidden;
	transition: border-color 0.2s var(--tm-ease);
}

.tm-faq__item:has(button[aria-expanded="true"]) {
	border-color: rgba(47, 208, 138, 0.35);
}

.tm-faq__q {
	margin: 0;
	font-size: 1.0625rem;
}

.tm-faq__q button {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	border: 0;
	background: none;
	color: var(--tm-heading);
	font-weight: 600;
	text-align: start;
	cursor: pointer;
}

.tm-faq__chev {
	transition: transform 0.25s var(--tm-ease);
	color: var(--tm-accent);
}

.tm-faq__q button[aria-expanded="true"] .tm-faq__chev {
	transform: rotate(180deg);
}

.tm-faq__a {
	padding: 0 20px 18px;
	color: var(--tm-text-2);
}

.tm-faq__a[hidden] {
	display: none;
}

.tm-faq__extra,
.tm-faq__more {
	margin-top: 32px;
}

/* ---------- Contact ---------- */
.tm-contact {
	display: grid;
	gap: 28px;
	grid-template-columns: 1fr;
	align-items: start;
}

@media (min-width: 1000px) {
	.tm-contact {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.tm-contact__side {
	display: grid;
	gap: 20px;
}

.tm-contact-card__title {
	font-size: 1.0625rem;
	margin-top: 12px;
}

.tm-contact-card__email {
	font-weight: 600;
	word-break: break-word;
}

.tm-social--list {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 8px !important;
	justify-content: stretch !important;
}

.tm-social--list .tm-social__link {
	width: 100% !important;
	justify-content: flex-start;
	padding: 0 12px;
	gap: 10px;
	border-radius: 12px !important;
}

.tm-admin-hint {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(165, 180, 252, 0.1);
	border: 1px dashed rgba(165, 180, 252, 0.4);
	font-size: 0.875rem;
}

/* ---------- Forms ---------- */
.tm-form {
	display: grid;
	gap: 16px;
}

.tm-contact-form__title {
	font-size: 1.5rem;
	margin: 0;
}

.tm-form__note {
	color: var(--tm-muted);
	font-size: 0.875rem;
	margin: 0;
}

.tm-form__grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.tm-field {
	display: grid;
	gap: 6px;
}

.tm-field label {
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--tm-text);
}

.tm-field input,
.tm-field select,
.tm-field textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--tm-border-strong);
	background: var(--tm-field-bg);
	color: var(--tm-heading);
	transition: border-color 0.2s var(--tm-ease), box-shadow 0.2s var(--tm-ease);
}

.tm-field select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--tm-accent) 50%), linear-gradient(135deg, var(--tm-accent) 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
	background-size: 6px 6px;
	background-repeat: no-repeat;
	padding-inline-end: 40px;
}

[dir="rtl"] .tm-field select {
	background-position: 20px 50%, 14px 50%;
}

.tm-field select option {
	background: var(--tm-option-bg);
	color: var(--tm-heading);
}

.tm-field textarea {
	min-height: 150px;
	resize: vertical;
}

.tm-field input::placeholder,
.tm-field textarea::placeholder {
	color: var(--tm-muted);
}

.tm-field input:focus,
.tm-field select:focus,
.tm-field textarea:focus {
	outline: none;
	border-color: var(--tm-green-text);
	box-shadow: 0 0 0 3px rgba(47, 208, 138, 0.2);
}

.tm-field [aria-invalid="true"] {
	border-color: var(--tm-danger);
	box-shadow: 0 0 0 3px rgba(255, 138, 128, 0.15);
}

.tm-field__error {
	margin: 0;
	min-height: 0;
	color: var(--tm-danger);
	font-size: 0.875rem;
}

.tm-field__error:empty {
	display: none;
}

.tm-field--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tm-field--inline input {
	flex: 1 1 220px;
}

.tm-field--inline .tm-btn {
	flex: 0 0 auto;
	min-height: 50px;
}

.tm-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.9375rem;
	color: var(--tm-text-2);
	cursor: pointer;
}

.tm-check input {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	accent-color: var(--tm-emerald);
	flex: none;
}

.tm-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tm-form__status:empty {
	display: none;
}

.tm-form__status {
	padding: 12px 14px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.9375rem;
}

.tm-form__status.is-success {
	background: var(--tm-emerald-soft);
	border: 1px solid rgba(47, 208, 138, 0.35);
	color: var(--tm-success-text);
}

.tm-form__status.is-error {
	background: rgba(255, 138, 128, 0.1);
	border: 1px solid rgba(255, 138, 128, 0.35);
	color: var(--tm-error-text);
}

.tm-form-offline h2 {
	font-size: 1.375rem;
	margin-top: 14px;
}

/* ---------- Posts ---------- */
.tm-post-card__date {
	font-size: 0.8125rem;
	color: var(--tm-muted);
}

.tm-post-card__title {
	font-size: 1.25rem;
}

.tm-post-card__title a {
	color: var(--tm-heading);
	text-decoration: none;
}

.tm-pagination {
	margin-top: 32px;
}

.tm-pagination .nav-links {
	display: flex;
	gap: 8px;
	justify-content: center;
}

.tm-pagination .page-numbers {
	padding: 8px 14px;
	border-radius: 10px;
	border: 1px solid var(--tm-border);
	text-decoration: none;
}

.tm-pagination .current {
	background: var(--tm-gold);
	color: #1a1300;
}

/* ---------- Social ---------- */
.tm-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tm-social--center,
.tm-social--modal {
	justify-content: center;
}

.tm-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--tm-border-strong);
	background: var(--tm-chip-bg);
	color: var(--tm-text);
	text-decoration: none;
	transition: transform 0.2s var(--tm-ease), background 0.2s var(--tm-ease), border-color 0.2s var(--tm-ease), color 0.2s var(--tm-ease);
}

.tm-social__link:hover {
	transform: translateY(-2px);
	color: #1a1300;
	background: var(--tm-gold-2);
	border-color: var(--tm-accent);
}

.tm-social__icon {
	width: 20px;
	height: 20px;
}

.tm-social__label {
	font-size: 0.9375rem;
	font-weight: 600;
}

/* ---------- Footer ---------- */
.tm-footer {
	position: relative;
	overflow: hidden;
	margin-top: clamp(24px, 4vw, 48px);
	padding-top: clamp(48px, 7vw, 80px);
	background: var(--tm-footer-bg);
	border-top: 1px solid var(--tm-footer-line);
}

.tm-footer__glow {
	position: absolute;
	left: 50%;
	top: -220px;
	width: 900px;
	height: 420px;
	transform: translateX(-50%);
	background: radial-gradient(closest-side, var(--tm-glow-1), transparent);
	pointer-events: none;
}

.tm-footer .tm-container {
	position: relative;
}

.tm-footer__top {
	display: grid;
	gap: 44px 40px;
	grid-template-columns: 1fr;
}

@media (min-width: 720px) {
	.tm-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tm-footer__more {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1100px) {
	.tm-footer__top {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.55fr);
	}

	.tm-footer__more {
		grid-column: auto;
	}
}

/* Brand */
.tm-footer__brand .tm-logo__mark {
	width: 52px;
	height: 52px;
}

.tm-footer__brand .tm-logo__text {
	font-size: 1.5rem;
}

.tm-footer__slogan {
	margin: 22px 0 6px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tm-accent);
}

.tm-footer__headline {
	margin: 0 0 12px;
	font-size: clamp(1.375rem, 2.4vw, 1.625rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--tm-heading);
	max-width: 420px;
}

.tm-footer__about {
	color: var(--tm-text-2);
	max-width: 420px;
}

/* Section titles with an accent underline */
.tm-footer__title {
	position: relative;
	margin: 0 0 22px;
	padding-bottom: 14px;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tm-heading);
	border-bottom: 1px solid var(--tm-footer-line);
}

.tm-footer__title::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	bottom: -2px;
	width: 56px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--tm-gold), var(--tm-gold-2));
}

/* Contact */
.tm-footer__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 16px;
}

.tm-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.tm-footer__contact-icon {
	width: 22px;
	height: 22px;
	margin-top: 2px;
	color: var(--tm-green-text);
}

.tm-footer__contact span {
	display: grid;
	gap: 1px;
	min-width: 0;
}

.tm-footer__contact a {
	color: var(--tm-text);
	font-size: 1.0625rem;
	text-decoration: none;
	word-break: break-word;
}

.tm-footer__contact a:hover {
	color: var(--tm-accent);
}

.tm-footer__contact small {
	font-size: 0.8125rem;
	color: var(--tm-muted);
}

/* More about Top Money: two link columns */
.tm-footer__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 24px;
}

.tm-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.tm-footer__links--extra {
	margin-top: 14px;
}

.tm-footer__links a {
	color: var(--tm-text-2);
	font-size: 1rem;
	text-decoration: none;
	line-height: 1.4;
	transition: color 0.2s var(--tm-ease), padding 0.2s var(--tm-ease);
}

.tm-footer__links a:hover,
.tm-footer__links .current-menu-item > a {
	color: var(--tm-heading);
}

/* Connect with us */
.tm-footer__connect {
	margin-top: clamp(40px, 5vw, 56px);
}

.tm-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px 20px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 720px) {
	.tm-footer__social {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.tm-footer__social {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.tm-footer__social a {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--tm-text-2);
	font-size: 1.0625rem;
	text-decoration: none;
	min-width: 0;
}

.tm-footer__social-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	flex: none;
	border-radius: 14px;
	border: 1px solid var(--tm-border-strong);
	background: var(--tm-chip-bg);
	color: var(--tm-heading);
	transition: transform 0.2s var(--tm-ease), background 0.2s var(--tm-ease), border-color 0.2s var(--tm-ease), color 0.2s var(--tm-ease);
}

.tm-footer__social-icon .tm-icon {
	width: 24px;
	height: 24px;
}

.tm-footer__social-label {
	overflow: hidden;
	text-overflow: ellipsis;
}

.tm-footer__social a:hover {
	color: var(--tm-heading);
}

.tm-footer__social a:hover .tm-footer__social-icon {
	transform: translateY(-2px);
	background: linear-gradient(135deg, var(--tm-gold-2), var(--tm-gold));
	border-color: transparent;
	color: #1a1300;
}

/* Bottom line */
.tm-footer__bottom {
	position: relative;
	margin-top: clamp(40px, 5vw, 56px);
	padding-block: 26px 30px;
	border-top: 1px solid var(--tm-footer-line);
	display: grid;
	gap: 8px;
	font-size: 0.9375rem;
	color: var(--tm-muted);
}

.tm-footer__bottom::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: -2px;
	width: 140px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--tm-gold), var(--tm-gold-2));
}

.tm-footer__bottom p {
	margin: 0;
}

.tm-footer__copy {
	color: var(--tm-text-2);
}

.tm-footer__legal a {
	color: var(--tm-text-2);
	font-weight: 600;
}

.tm-footer__legal a:hover {
	color: var(--tm-accent);
}

.tm-footer__rc {
	color: var(--tm-heading);
	white-space: nowrap;
}

@media (max-width: 719px) {
	/* Room for the back-to-top button so it never covers the last line. */
	.tm-footer__bottom {
		padding-bottom: 88px;
	}
}

/* ---------- Theme switch ---------- */
.tm-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}

.tm-theme-toggle {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	border: 1px solid var(--tm-border-strong);
	background: var(--tm-chip-bg);
	color: var(--tm-heading);
	cursor: pointer;
	transition: background 0.2s var(--tm-ease), border-color 0.2s var(--tm-ease), transform 0.2s var(--tm-ease);
}

.tm-theme-toggle:hover {
	border-color: var(--tm-gold);
	transform: translateY(-1px);
}

.tm-theme-toggle .tm-icon {
	width: 22px;
	height: 22px;
}

/* Dark mode shows the sun (switch to light); light mode shows the moon. */
.tm-theme-toggle__moon {
	display: none;
}

:root[data-theme="light"] .tm-theme-toggle__moon {
	display: block;
}

:root[data-theme="light"] .tm-theme-toggle__sun {
	display: none;
}

@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) .tm-theme-toggle__moon {
		display: block;
	}

	:root:not([data-theme="dark"]) .tm-theme-toggle__sun {
		display: none;
	}
}

/* ---------- Back to top ---------- */
.tm-top {
	position: fixed;
	inset-inline-end: 20px;
	bottom: 20px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid var(--tm-border-strong);
	background: var(--tm-header-bg);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--tm-accent);
	cursor: pointer;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.25s var(--tm-ease), transform 0.25s var(--tm-ease);
}

.tm-top.is-visible {
	opacity: 1;
	transform: none;
}

.tm-top[hidden] {
	display: none;
}

/* ---------- Modal ---------- */
.tm-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 16px;
}

.tm-modal[hidden] {
	display: none;
}

.tm-modal__backdrop {
	position: absolute;
	inset: 0;
	background: var(--tm-backdrop);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	animation: tm-fade 0.2s var(--tm-ease) both;
}

.tm-modal__panel {
	position: relative;
	width: min(480px, 100%);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 40px clamp(20px, 5vw, 36px) 32px;
	border-radius: var(--tm-radius-lg);
	text-align: center;
	background: var(--tm-modal-bg);
	animation: tm-pop 0.28s var(--tm-ease) both;
}

@keyframes tm-fade {
	from {
		opacity: 0;
	}
}

@keyframes tm-pop {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.97);
	}
}

.tm-modal__close {
	position: absolute;
	top: 14px;
	inset-inline-end: 14px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--tm-border);
	background: var(--tm-chip-bg);
	cursor: pointer;
}

.tm-modal__close:hover {
	background: var(--tm-hover-bg);
}

.tm-modal__badge img {
	width: 88px;
	height: 88px;
	margin: 0 auto 18px;
	border-radius: 22px;
	box-shadow: 0 16px 40px -14px rgba(227, 179, 65, 0.55);
}

.tm-modal__title {
	font-size: 1.875rem;
	background: linear-gradient(120deg, var(--tm-heading), var(--tm-accent-grad));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.tm-modal__text {
	color: var(--tm-text-2);
}

.tm-modal__where {
	margin-top: 10px;
	font-size: 0.875rem;
	color: var(--tm-green-text);
	font-weight: 600;
}

.tm-modal__social {
	margin: 24px 0;
	padding-top: 20px;
	border-top: 1px solid var(--tm-border);
}

.tm-modal__label {
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--tm-muted);
	margin-bottom: 12px;
}

body.tm-modal-open {
	overflow: hidden;
}

/* ---------- Reveal on scroll ---------- */
.tm-js .tm-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s var(--tm-ease), transform 0.6s var(--tm-ease);
}

.tm-js .tm-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* ---------- Small screens ---------- */
@media (max-width: 520px) {
	.tm-stores {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.tm-store {
		min-width: 0;
		height: 54px;
		padding: 0 10px;
		justify-content: center;
		gap: 8px;
	}

	.tm-store:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.tm-store__big {
		font-size: 1.125rem;
	}

	.tm-store__icon {
		width: 24px;
		height: 24px;
	}

	.tm-logo__text {
		font-size: 1.125rem;
	}

	.tm-logo__mark {
		width: 36px;
		height: 36px;
	}

	.tm-feature__top {
		flex-wrap: wrap;
	}

	.tm-legend {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.tm-js .tm-reveal {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Plans (Pricing page and home) ---------- */
.tm-plans {
	display: grid;
	gap: clamp(16px, 2vw, 24px);
	grid-template-columns: 1fr;
	align-items: stretch;
	margin-bottom: 28px;
}

@media (min-width: 900px) {
	.tm-plans {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tm-plan {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tm-plan--featured {
	border-color: rgba(227, 179, 65, 0.55);
	background: var(--tm-card-accent-bg);
	box-shadow: 0 0 0 1px rgba(227, 179, 65, 0.25), 0 18px 48px -18px rgba(227, 179, 65, 0.35);
}

@media (min-width: 900px) {
	.tm-plan--featured {
		transform: translateY(-8px);
	}
}

.tm-plan .tm-plan__badge {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	padding: 5px 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--tm-gold-2), var(--tm-gold));
	color: #2b1d00;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.tm-plan .tm-plan__name {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 1.25rem;
}

.tm-plan__name .tm-icon {
	width: 20px;
	height: 20px;
	color: var(--tm-accent);
}

.tm-plan .tm-plan__price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 6px 0 0;
}

.tm-plan__amount {
	font-size: clamp(2rem, 4vw, 2.5rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--tm-heading);
}

.tm-plan__period {
	color: var(--tm-muted);
	font-weight: 600;
}

.tm-plan .tm-plan__note {
	margin: 0 0 8px;
	color: var(--tm-text-2);
}

.tm-plan__list {
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid var(--tm-border);
}

.tm-plan__soon {
	color: var(--tm-muted);
}

.tm-plan-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--tm-gold-soft);
	color: var(--tm-accent);
	border: 1px solid rgba(227, 179, 65, 0.3);
	font-size: 0.7rem;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
	vertical-align: middle;
}

.tm-plan-tag .tm-icon {
	width: 12px;
	height: 12px;
}

.tm-plan-tag--soon {
	margin-left: 4px;
}

.tm-feature__tags {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
}

/* ---------- Delete account page ---------- */
.tm-del-steps {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: grid;
	gap: 12px;
}

.tm-del-steps li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	color: var(--tm-text-2);
}

.tm-del-steps__num {
	flex: 0 0 32px;
	height: 32px;
	border-radius: 50%;
	display: inline-grid;
	place-items: center;
	background: var(--tm-emerald-soft);
	color: var(--tm-green-text);
	font-weight: 800;
}

.tm-del-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.tm-checks--muted .tm-icon {
	color: var(--tm-muted);
}

/* Eight menu items: a little tighter on mid-size screens. */
@media (min-width: 1081px) and (max-width: 1260px) {
	.tm-nav__list a {
		padding: 8px 9px;
		font-size: 0.9rem;
	}
}

/* ---------- No backdrop-filter fallback ---------- */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.tm-glass,
	.tm-modal__panel {
		background: var(--tm-solid-panel);
	}

	.tm-nav {
		background: var(--tm-bg);
	}
}

/* ---------- Print ---------- */
@media print {
	body {
		background: #fff;
		color: #000;
	}

	.tm-header,
	.tm-footer,
	.tm-top,
	.tm-modal,
	.tm-legal__toc,
	.tm-legal-index,
	.tm-cta-band {
		display: none !important;
	}

	.tm-card,
	.tm-prose,
	.tm-prose h2,
	.tm-page-hero__title {
		background: none !important;
		border: 0 !important;
		color: #000 !important;
	}
}


/* ---------- App tour video (1.3.1) ---------- */
.tm-video {
	position: relative;
	max-width: 960px;
	margin: clamp(24px, 4vw, 40px) auto 0;
	aspect-ratio: 16 / 9;
	border-radius: var(--tm-radius-lg);
	overflow: hidden;
	background: var(--tm-bg-2);
	border: 1px solid var(--tm-border-strong);
	box-shadow: var(--tm-shadow), var(--tm-glow);
}

.tm-video__poster,
.tm-video iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.tm-video__poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--tm-ease), filter 0.3s var(--tm-ease);
}

.tm-video__poster:hover img,
.tm-video__poster:focus-visible img {
	transform: scale(1.02);
	filter: brightness(0.92);
}

.tm-video__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: clamp(64px, 9vw, 92px);
	height: clamp(64px, 9vw, 92px);
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--tm-gold-2);
	color: #0b2a14;
	box-shadow: 0 0 0 10px rgba(245, 207, 98, 0.22), 0 18px 40px -10px rgba(0, 0, 0, 0.6);
	transition: transform 0.25s var(--tm-ease), box-shadow 0.25s var(--tm-ease);
}

.tm-video__play svg {
	margin-left: 4px;
}

.tm-video__poster:hover .tm-video__play,
.tm-video__poster:focus-visible .tm-video__play {
	transform: translate(-50%, -50%) scale(1.08);
	box-shadow: 0 0 0 14px rgba(245, 207, 98, 0.28), 0 18px 40px -10px rgba(0, 0, 0, 0.6);
}

.tm-video__poster:focus-visible {
	outline: 3px solid var(--tm-gold-2);
	outline-offset: -3px;
}

.tm-video__time {
	position: absolute;
	right: 14px;
	bottom: 14px;
	padding: 4px 10px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
}

.tm-video__note {
	max-width: 960px;
	margin: 14px auto 0;
	text-align: center;
	font-size: 0.9rem;
	color: var(--tm-muted);
}

.tm-video__note a {
	color: var(--tm-green-text);
	font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
	.tm-video__poster img,
	.tm-video__play {
		transition: none;
	}
}
