/* New homepage — no legacy image assets; scoped under .tm-landing */

.tm-landing-body {
	--tm-bg: #0f172a;
	--tm-surface: #ffffff;
	--tm-surface2: #f1f5f9;
	--tm-accent: #14b8a6;
	--tm-accent2: #f97316;
	--tm-text: #0f172a;
	--tm-muted: #64748b;
	--tm-border: #e2e8f0;
	--tm-radius: 12px;
	--tm-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.tm-landing {
	font-family: "DM Sans", system-ui, sans-serif;
}

.tm-landing-body .tm-landing {
	box-sizing: border-box;
	background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 45%, #f8fafc 100%);
	min-height: 42vh;
	padding-bottom: 4rem;
}

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

.tm-hero {
	position: relative;
	overflow: hidden;
	background: radial-gradient(ellipse 120% 80% at 70% -20%, rgba(20, 184, 166, 0.35), transparent),
		linear-gradient(135deg, var(--tm-bg) 0%, #1e293b 55%, #0f172a 100%);
	color: #f8fafc;
	padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vw, 5.5rem);
}

.tm-hero__grid {
	max-width: 1120px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 900px) {
	.tm-hero__grid {
		grid-template-columns: 1.1fr 0.9fr;
		gap: 3rem;
	}
}

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

.tm-hero__svg {
	width: min(100%, 340px);
	height: auto;
	filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
	opacity: 0.95;
}

.tm-kicker {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(248, 250, 252, 0.72);
	margin-bottom: 0.75rem;
	border: 1px solid rgba(248, 250, 252, 0.18);
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
}

.tm-hero h1 {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 700;
	font-size: clamp(2rem, 5vw, 3.15rem);
	line-height: 1.12;
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
}

.tm-hero__lead {
	font-size: clamp(1rem, 2vw, 1.2rem);
	line-height: 1.55;
	color: rgba(248, 250, 252, 0.82);
	max-width: 38ch;
	margin: 0 0 1.75rem;
}

.tm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.tm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.7rem 1.35rem;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.tm-btn:active {
	transform: scale(0.98);
}

.tm-btn--primary {
	background: linear-gradient(135deg, var(--tm-accent), #0d9488);
	color: #fff;
	box-shadow: 0 8px 28px rgba(20, 184, 166, 0.35);
}

.tm-btn--primary:hover {
	box-shadow: 0 10px 34px rgba(20, 184, 166, 0.45);
	color: #fff;
	text-decoration: none;
}

.tm-btn--ghost {
	background: transparent;
	color: #f8fafc;
	border: 1px solid rgba(248, 250, 252, 0.35);
}

.tm-btn--ghost:hover {
	background: rgba(248, 250, 252, 0.08);
	color: #fff;
	text-decoration: none;
}

.tm-btn--accent {
	background: linear-gradient(135deg, var(--tm-accent2), #ea580c);
	color: #fff;
	box-shadow: 0 8px 28px rgba(249, 115, 22, 0.35);
}

.tm-btn--accent:hover {
	color: #fff;
	text-decoration: none;
	box-shadow: 0 10px 34px rgba(249, 115, 22, 0.45);
}

.tm-shell {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 4vw, 2rem);
	position: relative;
	z-index: 1;
}

.tm-shell--overlap {
	margin-top: clamp(-3rem, -5vw, -2rem);
}

.tm-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 960px) {
	.tm-layout {
		grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
		align-items: start;
		gap: 2rem;
	}
}

.tm-card {
	background: var(--tm-surface);
	border-radius: var(--tm-radius);
	box-shadow: var(--tm-shadow);
	border: 1px solid var(--tm-border);
	overflow: hidden;
}

.tm-card__head {
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid var(--tm-border);
	background: linear-gradient(180deg, var(--tm-surface2), var(--tm-surface));
}

.tm-card__head h2 {
	margin: 0;
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.35rem;
	font-weight: 650;
	color: var(--tm-text);
}

.tm-card__head p {
	margin: 0.35rem 0 0;
	font-size: 0.88rem;
	color: var(--tm-muted);
}

.tm-card__body {
	padding: 1.35rem 1.5rem 1.5rem;
}

.tm-field-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem 1.25rem;
}

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

.tm-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

.tm-field label {
	font-size: 0.85rem;
	font-weight: 550;
	letter-spacing: 0.02em;
	color: #2781c0;
}

.tm-field--full {
	grid-column: 1 / -1;
}

.tm-landing select,
.tm-landing input[type="text"],
.tm-landing input[type="password"] {
	width: 100%;
	min-height: 32px;
	padding: 0.45rem 0.65rem;
	border: 1px solid var(--tm-border);
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.85rem;
	background: #fff;
	color: var(--tm-text);
	height: auto;
}

.tm-landing select:focus,
.tm-landing input:focus {
	outline: 2px solid rgba(20, 184, 166, 0.45);
	outline-offset: 1px;
	border-color: var(--tm-accent);
}

.tm-submit-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-top: 0.25rem;
	padding-top: 1rem;
	border-top: 1px dashed var(--tm-border);
}

.tm-landing .tm-submit-row .button,
.tm-landing .tm-submit-row input[type="submit"] {
	min-height: 44px;
	padding: 0 1.5rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	background: linear-gradient(135deg, var(--tm-accent), #0d9488) !important;
	border: none !important;
	color: #fff !important;
	cursor: pointer;
}

.tm-side-stack {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.tm-login-card .tm-card__body {
	padding-top: 1rem;
	min-height: 14.5rem;
}

.tm-login-card .tm-session-panel {
	min-height: 12.75rem;
}

.tm-help-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.tm-help-list li {
	border-bottom: 1px solid var(--tm-border);
}

.tm-help-list li:last-child {
	border-bottom: none;
}

.tm-help-list a {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.85rem 0;
	color: var(--tm-text);
	font-size: 0.92rem;
	line-height: 1.45;
	text-decoration: none;
	transition: color 0.15s ease, padding-left 0.15s ease;
}

.tm-help-list a::before {
	content: "";
	width: 6px;
	height: 6px;
	margin-top: 0.45rem;
	border-radius: 50%;
	background: var(--tm-accent);
	flex-shrink: 0;
}

.tm-help-list a:hover {
	color: var(--tm-accent);
	padding-left: 4px;
	text-decoration: none;
}

.tm-help-actions {
	padding-top: 1rem;
	margin-top: 0.5rem;
	border-top: 1px dashed var(--tm-border);
}

.tm-help-actions .eng,
.tm-help-actions .sin {
	display: block;
}

.tm-help-actions .button {
	width: 100%;
	min-height: 44px;
	border-radius: 999px !important;
	font-weight: 600;
	background: linear-gradient(135deg, var(--tm-accent2), #ea580c) !important;
	border: none !important;
	color: #fff !important;
}

.tm-pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.tm-pill {
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	background: rgba(20, 184, 166, 0.12);
	color: #0f766e;
	border: 1px solid rgba(20, 184, 166, 0.22);
}

.tm-features {
	max-width: 1120px;
	margin: 3rem auto 0;
	padding: 0 clamp(1.25rem, 4vw, 2rem);
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 720px) {
	.tm-features {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.25rem;
	}
}

.tm-feature {
	background: var(--tm-surface);
	border: 1px solid var(--tm-border);
	border-radius: var(--tm-radius);
	padding: 1.35rem 1.4rem;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.tm-feature h3 {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-family: "Fraunces", Georgia, serif;
	color: var(--tm-text);
}

.tm-feature p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--tm-muted);
}

.tm-feature__mark {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(249, 115, 22, 0.15));
	margin-bottom: 0.85rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 0.85rem;
	color: #0f766e;
}

.tm-footnote {
	text-align: center;
	padding: 2.5rem 1rem 0;
	font-size: 0.82rem;
	color: var(--tm-muted);
	max-width: 36rem;
	margin: 0 auto;
	line-height: 1.5;
}
