/*
 * tfc-theme — front-end base + section styles (what theme.json can't express).
 * Clean, minimal, square, monochrome — same family as the platform.
 * No external libraries; motion is CSS-only and reduced-motion safe.
 */

:root {
	color-scheme: dark;
}

h1,
h2 {
	text-wrap: balance;
}

/* ---- Shared bits -------------------------------------------------------- */

.tfc-lead {
	max-width: 44ch;
	margin-inline: auto;
	line-height: 1.55;
	color: var(--wp--preset--color--neutral-400, #b4b4b4);
	text-wrap: pretty;
}

/* Arrow text link (used instead of extra buttons). */
.tfc-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: var(--wp--preset--font-size--medium, 1rem);
	font-weight: 500;
	text-decoration: none;
}
.tfc-link a:hover {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.tfc-hairline-top {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---- Hero --------------------------------------------------------------- */

.tfc-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80svh;
	padding-block: clamp(4.5rem, 12vh, 9rem);
	overflow: hidden;
}
.tfc-hero::before {
	content: "";
	position: absolute;
	inset: -25% 0 auto 0;
	height: 70%;
	z-index: -1;
	background: radial-gradient(
		42% 55% at 50% 0%,
		rgba(255, 255, 255, 0.06),
		transparent 70%
	);
	pointer-events: none;
}
.tfc-hero__inner {
	max-width: 40rem;
}
.tfc-hero .tfc-lead {
	margin-top: 1.5rem;
}
.tfc-hero .wp-block-buttons {
	margin-top: 2.25rem;
}

/* ---- Product page hero -------------------------------------------------- */

.tfc-phero {
	padding-block: clamp(4rem, 9vh, 7rem);
	text-align: center;
}
.tfc-phero__inner {
	max-width: 42rem;
	margin-inline: auto;
}
.tfc-phero .tfc-lead {
	margin-top: 1.25rem;
}
.tfc-phero .wp-block-buttons {
	margin-top: 2rem;
}

/* ---- Feature grid ------------------------------------------------------- */

.tfc-features {
	gap: 2.5rem 3rem;
}
.tfc-features h3 {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--large, 1.125rem);
	font-weight: 600;
	letter-spacing: -0.01em;
}
.tfc-features p {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium, 1rem);
	line-height: 1.55;
	color: var(--wp--preset--color--neutral-400, #b4b4b4);
}

/* ---- Pricing plans ------------------------------------------------------ */

.tfc-plans {
	gap: 1.5rem;
}
.tfc-plan {
	display: flex;
	flex-direction: column;
	padding: 2rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
}
.tfc-plan h3 {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--x-large, 1.375rem);
}
.tfc-plan__desc {
	margin: 0 0 1.25rem;
	line-height: 1.5;
	color: var(--wp--preset--color--neutral-400, #b4b4b4);
}
.tfc-plan__list {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	color: var(--wp--preset--color--neutral-300, #d4d4d4);
}
.tfc-plan__list li {
	position: relative;
	padding-left: 1.4rem;
}
.tfc-plan__list li::before {
	content: "—";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--neutral-500, #8e8e8e);
}
.tfc-plan .wp-block-buttons {
	margin-top: auto;
}
.tfc-plan__note {
	margin-top: 2.5rem;
	color: var(--wp--preset--color--neutral-500, #8e8e8e);
}

/* ---- Legal pages -------------------------------------------------------- */

.tfc-legal__meta {
	margin: 0.25rem 0 2.5rem;
	color: var(--wp--preset--color--neutral-500, #8e8e8e);
}
.tfc-legal h2 {
	margin: 2.5rem 0 0.5rem;
	font-size: var(--wp--preset--font-size--x-large, 1.375rem);
}
.tfc-legal p {
	max-width: 68ch;
	line-height: 1.7;
	color: var(--wp--preset--color--neutral-300, #d4d4d4);
}

/* ---- Channel strip ------------------------------------------------------ */

.tfc-channels {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.tfc-channels__list {
	color: var(--wp--preset--color--neutral-500, #8e8e8e);
	letter-spacing: 0.01em;
}

/* ---- Product sections (editorial: copy + visual) ------------------------ */

.tfc-product__row {
	gap: clamp(2rem, 6vw, 5rem);
}
.tfc-product__body {
	max-width: 42ch;
	margin-top: 1rem;
	line-height: 1.55;
	color: var(--wp--preset--color--neutral-400, #b4b4b4);
	text-wrap: pretty;
}
.tfc-product .tfc-link {
	margin-top: 1.5rem;
}

/* Product visual placeholder — square, hairline-framed, quiet grayscale wash.
   Drop a real screenshot inside later. */
.tfc-product__media {
	aspect-ratio: 4 / 3;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background:
		radial-gradient(
			130% 110% at 50% 0%,
			rgba(255, 255, 255, 0.07),
			transparent 58%
		),
		var(--wp--preset--color--surface, #0e0e0e);
}

/* ---- Closing CTA -------------------------------------------------------- */

.tfc-cta {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
}
.tfc-cta .tfc-lead {
	margin-top: 0.75rem;
}
.tfc-cta .wp-block-buttons {
	margin-top: 1.75rem;
}

/* ---- Footer ------------------------------------------------------------- */

.tfc-foot {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.tfc-foot__brand {
	margin: 0;
	font-weight: 600;
	font-size: 1.0625rem;
	letter-spacing: -0.01em;
}
.tfc-foot__tag {
	margin: 0.4rem 0 0;
	color: var(--wp--preset--color--neutral-500, #8e8e8e);
}
.tfc-foot__head {
	margin: 0 0 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--neutral-500, #8e8e8e);
}
.tfc-foot__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.tfc-foot__list a {
	font-size: 0.95rem;
	color: var(--wp--preset--color--neutral-300, #d4d4d4);
	text-decoration: none;
}
.tfc-foot__list a:hover {
	color: var(--wp--preset--color--contrast, #fff);
}
.tfc-foot__bottom {
	margin-top: var(--wp--preset--spacing--60, 4rem);
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- Motion: subtle CSS scroll reveal (no JS, no libraries) ------------- */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.tfc-reveal {
			animation: tfc-reveal-in linear both;
			animation-timeline: view();
			animation-range: entry 5% cover 24%;
		}
		@keyframes tfc-reveal-in {
			from {
				opacity: 0;
				transform: translateY(1rem);
			}
			to {
				opacity: 1;
				transform: none;
			}
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
