/* Flarimg landing page - hero, filters, coloured tool cards, footer. */
.ith-home {
	--ith-h-ink: #0f172a;
	--ith-h-muted: #5b6673;
	--ith-h-line: #e2e8f0;
	--ith-h-blue: #2954ff;
	--ith-h-blue-dark: #1c3fd1;
	--ith-h-bg: #eef2ff;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 20px;
	color: var(--ith-h-ink);
}

.ith-home *,
.ith-footer * {
	box-sizing: border-box;
}

/* ---------- Hero ---------- */
.ith-hero {
	padding: 56px 20px 40px;
	border-radius: 24px;
	background: var(--ith-h-bg);
	text-align: center;
}

.ith-badge-pill {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 999px;
	background: #fff;
	color: var(--ith-h-blue);
	font-size: 0.85rem;
	font-weight: 700;
}

.ith-hero h1 {
	margin: 20px auto 0;
	max-width: 720px;
	font-size: clamp(1.8rem, 4vw, 2.7rem);
	font-weight: 800;
	line-height: 1.25;
}

.ith-hero-sub {
	margin: 14px auto 0;
	max-width: 520px;
	color: var(--ith-h-muted);
	font-size: 1.05rem;
}

.ith-hero-cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 26px;
}

.ith-btn-lg {
	min-height: 50px;
	padding: 10px 26px;
	border-radius: 10px;
	font-size: 1rem;
}

.ith-home .ith-btn-main,
.ith-footer .ith-btn-main {
	border-color: var(--ith-h-blue);
	background: var(--ith-h-blue);
}

.ith-home .ith-btn-main:hover {
	border-color: var(--ith-h-blue-dark);
	background: var(--ith-h-blue-dark);
}

.ith-home .ith-btn:not(.ith-btn-main) {
	border-color: var(--ith-h-line);
	background: #fff;
	color: var(--ith-h-ink);
}

.ith-home .ith-btn:not(.ith-btn-main):hover {
	background: #f8fafc;
}

/* ---------- Filters ---------- */
.ith-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 32px 0 0;
	scroll-margin-top: 20px;
}

.ith-filter {
	padding: 8px 18px;
	border: 1px solid var(--ith-h-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ith-h-muted);
	font: inherit;
	font-weight: 600;
	font-size: 0.92rem;
	cursor: pointer;
}

.ith-filter:hover {
	background: #f8fafc;
}

.ith-filter.is-active {
	border-color: var(--ith-h-blue);
	background: var(--ith-h-blue);
	color: #fff;
}

.ith-filter:focus-visible {
	outline: 3px solid var(--ith-h-blue);
	outline-offset: 2px;
}

/* ---------- Coloured tool grid ---------- */
.ith-grid-color {
	margin-top: 22px;
}

.ith-grid-color .ith-card {
	border-color: var(--ith-h-line);
}

.ith-grid-color .ith-card[hidden] {
	display: none;
}

.ith-grid-color .ith-card-icon {
	background: var(--tint, #eef2ff);
	color: var(--fg, var(--ith-h-blue));
}

.ith-grid-color .ith-card:hover {
	border-color: var(--fg, var(--ith-h-blue));
	background: #fff;
	box-shadow: 0 8px 20px -14px rgba(15, 23, 42, 0.35);
}

.ith-color-blue   { --tint: #e3ecff; --fg: #2954ff; }
.ith-color-green  { --tint: #e2f8ee; --fg: #16a34a; }
.ith-color-orange { --tint: #ffedd9; --fg: #ea7f17; }
.ith-color-purple { --tint: #f1e8ff; --fg: #7c3aed; }
.ith-color-indigo { --tint: #e6e9ff; --fg: #4338ca; }
.ith-color-pink   { --tint: #ffe3ec; --fg: #db2777; }
.ith-color-yellow { --tint: #fef6dc; --fg: #b7791f; }
.ith-color-mint   { --tint: #e3faf1; --fg: #0d9488; }
.ith-color-cyan   { --tint: #e3f3fd; --fg: #0284c7; }

/* ---------- Work your way ---------- */
.ith-wyw {
	margin-top: 64px;
	text-align: center;
}

.ith-wyw h2 {
	font-size: 1.7rem;
	font-weight: 800;
}

.ith-wyw-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
	margin-top: 26px;
	text-align: start;
}

.ith-wyw-card {
	padding: 22px;
	border: 1px solid var(--ith-h-line);
	border-radius: 14px;
	background: #fff;
}

.ith-wyw-card h3 {
	margin: 0 0 8px;
	font-size: 1.05rem;
	font-weight: 700;
}

.ith-wyw-card p {
	margin: 0;
	color: var(--ith-h-muted);
	font-size: 0.92rem;
	line-height: 1.6;
}

/* ---------- Premium banner ---------- */
.ith-premium {
	margin-top: 56px;
	padding: 46px 20px;
	border-radius: 20px;
	background: linear-gradient(135deg, #fff7e0, #ffedc2);
	text-align: center;
}

.ith-premium-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #f5a623;
	color: #fff;
	font-size: 1.4rem;
}

.ith-premium h2 {
	margin: 16px 0 6px;
	font-size: 1.6rem;
	font-weight: 800;
}

.ith-premium p {
	max-width: 480px;
	margin: 0 auto 22px;
	color: #7a5b1e;
}

.ith-premium .ith-btn-main {
	border-color: var(--ith-h-blue);
	background: var(--ith-h-blue);
}

/* ---------- Trust strip ---------- */
.ith-trust {
	margin: 56px 0 40px;
	text-align: center;
}

.ith-trust h2 {
	font-size: 1.5rem;
	font-weight: 800;
}

.ith-trust p {
	max-width: 560px;
	margin: 12px auto 0;
	color: var(--ith-h-muted);
}

.ith-trust-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
}

.ith-trust-badges span {
	padding: 6px 16px;
	border-radius: 999px;
	background: #f1f5f9;
	color: var(--ith-h-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

/* ---------- Ad slots on the homepage ---------- */
.ith-home .ith-ad {
	margin: 40px auto;
}

/* ---------- Footer ---------- */
.ith-footer {
	max-width: 1160px;
	margin: 0 auto;
	padding: 40px 20px 24px;
	color: #cbd5e1;
	background: #0b1220;
	border-radius: 24px 24px 0 0;
}

.ith-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(4, 1fr);
	gap: 24px;
}

.ith-footer-brand .ith-footer-logo-img {
	display: block;
	height: 32px;
	width: auto;
	margin-bottom: 12px;
}

.ith-footer h4 {
	margin: 0 0 12px;
	color: #fff;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ith-footer a,
.ith-footer .ith-soon {
	display: block;
	margin-bottom: 8px;
	color: #cbd5e1;
	font-size: 0.92rem;
	text-decoration: none;
}

.ith-footer a:hover {
	color: #fff;
}

.ith-footer .ith-soon {
	color: #64748b;
	cursor: default;
}

.ith-footer .ith-soon em {
	font-style: normal;
	font-size: 0.78rem;
}

.ith-footer-bottom {
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: #64748b;
	font-size: 0.82rem;
	text-align: center;
}

@media (max-width: 780px) {
	.ith-footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.ith-footer-grid {
		grid-template-columns: 1fr;
	}
}
