/* TikTok Downloader Theme
   Palette: ink #0B0B0F, off-white #F5F5F2, cyan #25F4EE, pink #FE2C55, muted grey #8A8A93
   Type: Space Grotesk (display), Inter (body), JetBrains Mono (url input / data)
*/

:root {
	--tdpt-ink: #0b0b0f;
	--tdpt-paper: #f5f5f2;
	--tdpt-cyan: #25f4ee;
	--tdpt-pink: #fe2c55;
	--tdpt-grey: #8a8a93;
	--tdpt-line: rgba(11, 11, 15, 0.1);
}

/* ---------- Header ---------- */
.tdpt-site-header {
	background: var(--tdpt-paper);
	border-bottom: 1px solid var(--tdpt-line);
	position: sticky;
	top: 0;
	z-index: 20;
}

.tdpt-header-inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tdpt-logo {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 20px;
	color: var(--tdpt-ink);
	text-decoration: none;
}

.tdpt-logo-accent {
	color: var(--tdpt-pink);
}

.tdpt-nav {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}

.tdpt-nav a {
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	color: var(--tdpt-ink);
}

.tdpt-nav a:hover {
	color: var(--tdpt-pink);
}

/* ---------- Layout ---------- */
.tdpt-main {
	padding: 56px 24px 80px;
}

.tdpt-container {
	max-width: 1120px;
	margin: 0 auto;
}

.tdpt-content-page {
	max-width: 760px;
}

.tdpt-page-title {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 32px;
}

.tdpt-page-content {
	font-size: 16px;
	line-height: 1.7;
}

/* ---------- Downloader widget (dark card) ---------- */
.tdpt-widget {
	background: var(--tdpt-ink);
	color: var(--tdpt-paper);
	border-radius: 20px;
	padding: 64px 32px;
	max-width: 900px;
	margin: 0 auto;
}

.tdpt-hero {
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
}

.tdpt-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tdpt-grey);
	margin: 0 0 20px;
}

.tdpt-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tdpt-cyan);
	box-shadow: 0 0 0 3px rgba(37, 244, 238, 0.15);
}

.tdpt-title {
	position: relative;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 0 0 16px;
	color: var(--tdpt-paper);
}

.tdpt-title::before,
.tdpt-title::after {
	content: attr(data-text);
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.tdpt-title::before {
	color: var(--tdpt-cyan);
	transform: translate(2px, 1px);
	mix-blend-mode: screen;
	opacity: 0.7;
	z-index: -1;
}

.tdpt-title::after {
	color: var(--tdpt-pink);
	transform: translate(-2px, -1px);
	mix-blend-mode: screen;
	opacity: 0.7;
	z-index: -1;
}

.tdpt-subtitle {
	font-size: 16px;
	line-height: 1.6;
	color: var(--tdpt-grey);
	margin: 0 0 36px;
}

.tdpt-form {
	margin-bottom: 14px;
}

.tdpt-input-row {
	display: flex;
	gap: 8px;
	background: rgba(245, 245, 242, 0.04);
	border: 1px solid rgba(245, 245, 242, 0.14);
	border-radius: 14px;
	padding: 8px;
	flex-wrap: wrap;
}

.tdpt-input {
	flex: 1 1 220px;
	min-width: 0;
	background: transparent;
	border: none;
	color: var(--tdpt-paper);
	font-family: 'JetBrains Mono', monospace;
	font-size: 14px;
	padding: 12px 14px;
	outline: none;
}

.tdpt-input::placeholder {
	color: rgba(245, 245, 242, 0.35);
}

.tdpt-btn {
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 14px;
	border-radius: 9px;
	padding: 12px 20px;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.15s ease, opacity 0.15s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.tdpt-btn:active {
	transform: scale(0.97);
}

.tdpt-btn-ghost {
	background: rgba(245, 245, 242, 0.06);
	color: var(--tdpt-paper);
}

.tdpt-btn-ghost:hover {
	background: rgba(245, 245, 242, 0.12);
}

.tdpt-btn-primary {
	background: var(--tdpt-paper);
	color: var(--tdpt-ink);
	position: relative;
}

.tdpt-btn-primary:hover {
	opacity: 0.88;
}

.tdpt-btn-primary.is-loading .tdpt-btn-label {
	visibility: hidden;
}

.tdpt-spinner {
	display: none;
	position: absolute;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(11, 11, 15, 0.25);
	border-top-color: var(--tdpt-ink);
	animation: tdpt-spin 0.7s linear infinite;
}

.tdpt-btn-primary.is-loading .tdpt-spinner {
	display: block;
}

@keyframes tdpt-spin {
	to {
		transform: rotate(360deg);
	}
}

.tdpt-message {
	min-height: 20px;
	font-size: 14px;
	color: var(--tdpt-pink);
	margin-bottom: 8px;
}

.tdpt-message.is-info {
	color: var(--tdpt-grey);
}

.tdpt-result {
	text-align: left;
	margin-top: 24px;
	animation: tdpt-fade-in 0.35s ease both;
}

@keyframes tdpt-fade-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tdpt-result-card {
	display: flex;
	gap: 16px;
	background: rgba(245, 245, 242, 0.05);
	border: 1px solid rgba(245, 245, 242, 0.14);
	border-radius: 14px;
	padding: 16px;
	align-items: center;
}

.tdpt-result-thumb {
	flex: 0 0 76px;
	width: 76px;
	height: 100px;
	border-radius: 8px;
	overflow: hidden;
	background: rgba(245, 245, 242, 0.08);
}

.tdpt-result-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tdpt-result-info {
	flex: 1;
	min-width: 0;
}

.tdpt-result-title {
	font-size: 14px;
	color: var(--tdpt-paper);
	margin: 0 0 12px;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tdpt-result-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tdpt-btn-solid {
	background: var(--tdpt-pink);
	color: #fff;
}

.tdpt-btn-solid:hover {
	opacity: 0.9;
}

.tdpt-btn-outline {
	background: transparent;
	color: var(--tdpt-paper);
	border: 1px solid rgba(245, 245, 242, 0.14);
}

.tdpt-btn-outline:hover {
	border-color: var(--tdpt-cyan);
}

.tdpt-features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 64px;
	padding-top: 40px;
	border-top: 1px solid rgba(245, 245, 242, 0.14);
}

.tdpt-feature-num {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	color: var(--tdpt-cyan);
}

.tdpt-feature h3 {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 17px;
	margin: 10px 0 8px;
}

.tdpt-feature p {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--tdpt-grey);
	margin: 0;
}

/* ---------- Footer ---------- */
.tdpt-site-footer {
	background: #ececE8;
	border-top: 1px solid var(--tdpt-line);
	padding: 56px 24px 32px;
}

.tdpt-footer-inner {
	max-width: 1120px;
	margin: 0 auto;
}

.tdpt-footer-search {
	max-width: 520px;
	margin: 0 auto 56px;
}

.tdpt-search-form {
	display: flex;
	gap: 8px;
}

.tdpt-search-input {
	flex: 1;
	padding: 12px 16px;
	border-radius: 9px;
	border: 1px solid var(--tdpt-line);
	font-family: 'Inter', sans-serif;
	font-size: 14px;
}

.tdpt-footer-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-bottom: 40px;
}

.tdpt-footer-heading {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 14px;
	margin: 0 0 14px;
	color: var(--tdpt-ink);
}

/* Neutralize any widget's own styling (e.g. default Archives/Categories
   widgets, or block-based group wrappers) so it always matches the
   site's plain footer-link look instead of showing its own background. */
.tdpt-footer-col .tdpt-widget,
.tdpt-footer-col .widget {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 0 24px !important;
}

.tdpt-footer-col .tdpt-widget:last-child,
.tdpt-footer-col .widget:last-child {
	margin-bottom: 0 !important;
}

.tdpt-footer-col .tdpt-widget *,
.tdpt-footer-col .widget * {
	background: transparent !important;
	color: #55555c !important;
	box-shadow: none !important;
}

.tdpt-footer-col .tdpt-widget ul,
.tdpt-footer-col .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tdpt-footer-col .tdpt-widget li,
.tdpt-footer-col .widget li {
	margin-bottom: 10px;
	font-size: 14px;
}

.tdpt-footer-col .tdpt-widget a,
.tdpt-footer-col .widget a {
	text-decoration: none;
}

.tdpt-footer-col .tdpt-widget a:hover,
.tdpt-footer-col .widget a:hover {
	color: var(--tdpt-pink) !important;
}

.tdpt-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tdpt-footer-links li {
	margin-bottom: 10px;
}

.tdpt-footer-links a {
	text-decoration: none;
	font-size: 14px;
	color: #55555c;
}

.tdpt-footer-links a:hover {
	color: var(--tdpt-pink);
}

.tdpt-footer-bottom {
	text-align: center;
	font-size: 13px;
	color: var(--tdpt-grey);
	border-top: 1px solid var(--tdpt-line);
	padding-top: 24px;
	margin: 0;
}

/* ---------- Long-page sections ---------- */
.tdpt-section {
	padding: 88px 24px;
}

.tdpt-section-light {
	background: var(--tdpt-paper);
	color: var(--tdpt-ink);
}

.tdpt-section-dark {
	background: var(--tdpt-ink);
	color: var(--tdpt-paper);
}

.tdpt-container-narrow {
	max-width: 720px;
}

.tdpt-section-head {
	max-width: 560px;
	margin: 0 auto 48px;
	text-align: center;
}

.tdpt-eyebrow-dark {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tdpt-pink);
	margin: 0 0 14px;
}

.tdpt-section-title {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: clamp(26px, 4vw, 38px);
	line-height: 1.15;
	margin: 0;
	color: var(--tdpt-ink);
}

.tdpt-section-title-dark {
	color: var(--tdpt-paper);
}

/* How it works */
.tdpt-steps {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 20px;
	max-width: 960px;
	margin: 0 auto;
}

.tdpt-step {
	flex: 1;
	max-width: 240px;
	text-align: center;
}

.tdpt-step-num {
	display: inline-block;
	font-family: 'JetBrains Mono', monospace;
	font-size: 13px;
	color: #fff;
	background: var(--tdpt-ink);
	border-radius: 999px;
	padding: 4px 10px;
	margin-bottom: 14px;
}

.tdpt-step h3 {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 18px;
	margin: 0 0 8px;
}

.tdpt-step p {
	font-size: 14px;
	line-height: 1.6;
	color: #55555c;
	margin: 0;
}

.tdpt-step-arrow {
	font-size: 22px;
	color: var(--tdpt-grey);
	padding-top: 30px;
}

/* Showcase (signature illustration section) */
.tdpt-showcase {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 56px;
	align-items: center;
}

.tdpt-showcase-lede {
	font-size: 16px;
	line-height: 1.7;
	color: var(--tdpt-grey);
	margin: 18px 0 28px;
}

.tdpt-showcase-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tdpt-showcase-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
}

.tdpt-check {
	color: var(--tdpt-cyan);
	font-weight: 700;
}

.tdpt-showcase-art {
	display: flex;
	justify-content: center;
}

.tdpt-phone {
	width: 220px;
	filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.4));
}

.tdpt-phone-svg {
	width: 100%;
	height: auto;
}

/* Guides */
.tdpt-guide {
	padding: 32px 0;
	border-top: 1px solid var(--tdpt-line);
}

.tdpt-guide:first-of-type {
	border-top: none;
}

.tdpt-guide h3 {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 20px;
	margin: 0 0 12px;
}

.tdpt-guide p {
	font-size: 15px;
	line-height: 1.75;
	color: #444;
	margin: 0 0 14px;
}

.tdpt-guide p:last-child {
	margin-bottom: 0;
}

/* FAQ */
.tdpt-faq-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tdpt-faq-item {
	background: #fff;
	border: 1px solid var(--tdpt-line);
	border-radius: 12px;
	padding: 18px 20px;
}

.tdpt-faq-item summary {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 15.5px;
	cursor: pointer;
	list-style: none;
}

.tdpt-faq-item summary::-webkit-details-marker {
	display: none;
}

.tdpt-faq-item summary::before {
	content: '+';
	display: inline-block;
	width: 18px;
	color: var(--tdpt-pink);
	font-weight: 700;
}

.tdpt-faq-item[open] summary::before {
	content: '–';
}

.tdpt-faq-item p {
	font-size: 14.5px;
	line-height: 1.7;
	color: #444;
	margin: 12px 0 0 18px;
}

/* Testimonials */
.tdpt-quotes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.tdpt-quote {
	background: rgba(245, 245, 242, 0.05);
	border: 1px solid rgba(245, 245, 242, 0.14);
	border-radius: 14px;
	padding: 24px;
	margin: 0;
}

.tdpt-quote p {
	font-size: 14.5px;
	line-height: 1.7;
	margin: 0 0 16px;
	color: var(--tdpt-paper);
}

.tdpt-quote footer {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	color: var(--tdpt-grey);
}

.tdpt-quotes-note {
	text-align: center;
	font-size: 12.5px;
	color: var(--tdpt-grey);
	margin: 28px 0 0;
}

/* Final CTA */
.tdpt-cta-inner {
	text-align: center;
}

.tdpt-cta-inner p {
	font-size: 16px;
	color: #55555c;
	margin: 14px 0 28px;
}

.tdpt-cta-btn {
	display: inline-flex;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.tdpt-header-inner {
		flex-direction: column;
		gap: 12px;
		align-items: flex-start;
	}

	.tdpt-widget {
		padding: 40px 20px;
		border-radius: 14px;
	}

	.tdpt-input-row {
		flex-direction: column;
	}

	.tdpt-input {
		flex: 0 0 auto;
		width: 100%;
	}

	.tdpt-btn {
		width: 100%;
	}

	.tdpt-features,
	.tdpt-footer-columns {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.tdpt-section {
		padding: 56px 20px;
	}

	.tdpt-steps {
		flex-direction: column;
		align-items: center;
		gap: 32px;
	}

	.tdpt-step-arrow {
		display: none;
	}

	.tdpt-showcase {
		grid-template-columns: 1fr;
		gap: 40px;
		text-align: center;
	}

	.tdpt-showcase-list {
		align-items: center;
	}

	.tdpt-showcase-list li {
		justify-content: center;
	}

	.tdpt-phone {
		width: 180px;
	}

	.tdpt-quotes {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tdpt-result,
	.tdpt-spinner {
		animation: none;
	}
}
