/**
 * TeraWallet Pro product page.
 *
 * Only the blocks the rebuild adds. Section heads, feature grid, use-case grid,
 * steps, FAQ accordion, buttons and the final band reuse the existing pc-*
 * system in style.css.
 */

/* --- Flash guard -------------------------------------------------------
   Swappable blocks are invisible until the variant script has chosen. If JS
   never runs at all, the CSS animation reveals them at 150ms, so the V0
   default always paints. `visibility` (not `display`) so nothing shifts. */

.pc-twp-swap {
	visibility: hidden;
	animation: pc-twp-reveal 0s linear 150ms forwards;
}

.pc-twp-swap.is-ready {
	visibility: visible;
	animation: none;
}

@keyframes pc-twp-reveal {
	to {
		visibility: visible;
	}
}

/* No JS (or JS not run yet): the V0 default is the block that shows.
   Layout differs per section, so the display value is set here, never by JS. */
.pc-twp-var {
	display: none;
}

.pc-twp-var[data-variant="V0"] {
	display: block;
}

.pc-twp__wall .pc-twp-var[data-variant="V0"] {
	display: grid;
}

/* Once the script has chosen, `is-active` is the only thing that shows. */
.pc-twp-swap.is-ready .pc-twp-var,
.pc-twp-swap.is-ready .pc-twp-var[data-variant="V0"] {
	display: none;
}

.pc-twp-swap.is-ready .pc-twp-var.is-active {
	display: block;
}

.pc-twp__band .pc-twp-swap.is-ready .pc-twp-var.is-active {
	display: flex;
}

.pc-twp__wall .pc-twp-swap.is-ready .pc-twp-var.is-active {
	display: grid;
}

@media (prefers-reduced-motion: reduce) {
	.pc-twp-swap {
		animation-duration: 0s;
	}
}

/* --- Section 1: hero ---------------------------------------------------- */

.pc-twp__hero {
	padding: clamp(48px, 7vw, 88px) 24px 0;
	background:
		radial-gradient(ellipse 900px 520px at 15% 0%, rgba(86, 94, 116, 0.10) 0%, transparent 55%),
		var(--pc-surface-low);
}

.pc-twp__hero-inner {
	display: grid;
	grid-template-columns: 55fr 45fr;
	gap: clamp(32px, 5vw, 56px);
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

/* Sections whose screenshot is not on disk yet run as one column. */
.pc-twp__hero-inner--textonly,
.pc-twp__wall-row--textonly {
	grid-template-columns: 1fr;
	max-width: 820px;
}

/* With no art beside it, the hero column centres on its own axis. */
.pc-twp__hero-inner--textonly {
	text-align: center;
}

.pc-twp__hero-inner--textonly .pc-twp__price {
	justify-content: center;
}

/* Hug the button, then centre the box: the button's own margins are set by
   WooCommerce's stylesheet and are not ours to fight. */
.pc-twp__hero-inner--textonly .pc-twp__buy {
	width: fit-content;
	margin-inline: auto;
}

.pc-twp__h1 {
	margin: 12px 0 16px;
	font-size: clamp(2rem, 4.2vw, 3.15rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--pc-on-surface);
}

.pc-twp__subhead {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.62;
	color: var(--pc-secondary);
}

.pc-twp__price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 28px 0 20px;
}

.pc-twp__price-amount {
	font-size: 52px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--pc-on-surface);
}

.pc-twp__price-period {
	font-size: 18px;
	color: var(--pc-secondary);
}

/* The real WooCommerce add-to-cart form. */
.pc-twp__buy {
	max-width: 360px;
}

.pc-twp__buy form.cart {
	margin: 0;
}

.pc-twp__buy .quantity {
	display: none;
}

.pc-twp__buy button.single_add_to_cart_button {
	width: 100%;
	padding: 16px 24px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--pc-on-primary);
	background: var(--pc-primary);
	border: 0;
	border-radius: var(--pc-radius);
	cursor: pointer;
}

.pc-twp__buy button.single_add_to_cart_button:hover {
	background: var(--pc-primary-dim);
}

/* Section CTAs: a real add-to-cart form wearing the plain button's clothes. */
.pc-twp__buy-form {
	margin: 0;
}

.pc-twp__microcopy {
	margin: 12px 0 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--pc-on-surface-variant);
}

.pc-twp__demo {
	margin: 14px 0 0;
	font-size: 0.9375rem;
}

.pc-twp__demo a {
	color: var(--pc-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pc-twp__proof-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
	max-width: 1200px;
	margin: clamp(40px, 6vw, 64px) auto 0;
	padding: 18px 0;
	list-style: none;
	border-top: 1px solid var(--pc-outline-variant);
	font-size: 0.875rem;
	color: var(--pc-on-surface-variant);
}

.pc-twp__proof-bar li {
	padding: 0 18px;
	border-left: 1px solid var(--pc-outline-variant);
}

.pc-twp__proof-bar li:first-child {
	border-left: 0;
}

/* --- Section 2: continuity band ---------------------------------------- */

.pc-twp__band {
	background: var(--pc-primary-container);
	border-bottom: 1px solid rgba(171, 179, 183, 0.25);
}

/* Same here — the variant rules own `display`. */
.pc-twp__band .pc-twp-var {
	align-items: center;
	gap: 16px;
	max-width: 1100px;
	min-height: 84px;
	margin: 0 auto;
	padding: 18px 24px;
}

.pc-twp__band .pc-icon {
	color: var(--pc-on-primary-container);
}

.pc-twp__band-text {
	flex: 1;
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--pc-on-primary-container);
}

.pc-twp__band-link {
	flex-shrink: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--pc-on-primary-container);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --- Section 3: the wall ------------------------------------------------ */

.pc-twp__wall {
	padding: clamp(56px, 8vw, 96px) 24px;
}

/* No `display` here: whether a wall row is shown is decided by the variant
   rules at the top of this file. This rule only describes the grid itself. */
.pc-twp__wall-row {
	grid-template-columns: 40fr 60fr;
	gap: clamp(32px, 5vw, 56px);
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.pc-twp__wall .pc-pro__section-title,
.pc-twp__wall .pc-pro__section-sub {
	text-align: left;
}

.pc-twp__wall-list {
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.pc-twp__wall-list li {
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--pc-secondary);
}

.pc-twp__wall-list .pc-icon {
	flex-shrink: 0;
	font-size: 20px;
	color: var(--pc-primary);
}

/* --- Section 4: modules ------------------------------------------------- */

.pc-twp__modules,
.pc-twp__shots,
.pc-twp__compare,
.pc-twp__cases,
.pc-twp__setup,
.pc-twp__proof {
	padding: clamp(56px, 8vw, 96px) 24px;
}

.pc-twp__modules-grid {
	max-width: 1200px;
	margin: 0 auto;
}

.pc-twp__module-outcome {
	font-weight: 500;
	color: var(--pc-on-surface);
}

.pc-twp__module-detail {
	margin: 8px 0 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--pc-secondary);
}

.pc-twp__section-cta {
	max-width: 640px;
	margin: clamp(32px, 5vw, 48px) auto 0;
	text-align: center;
}

.pc-twp__section-cta > p:first-child {
	margin-bottom: 20px;
	color: var(--pc-secondary);
}

/* --- Section 5: screenshot sequence ------------------------------------ */

.pc-twp__shot-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(28px, 4vw, 48px);
	align-items: center;
	max-width: 1200px;
	margin: 0 auto clamp(40px, 6vw, 72px);
}

.pc-twp__shot-row:last-child {
	margin-bottom: 0;
}

.pc-twp__shot-row--flip .pc-twp__shot-copy {
	order: 2;
}

.pc-twp__shot-copy h3 {
	margin: 0 0 10px;
	font-size: 1.375rem;
	line-height: 1.25;
	color: var(--pc-on-surface);
}

.pc-twp__shot-copy p {
	margin: 0;
	line-height: 1.6;
	color: var(--pc-secondary);
}

/* A row whose screenshot is not on disk yet collapses to one column. */
.pc-twp__shot-row--textonly {
	grid-template-columns: 1fr;
	max-width: 720px;
}

.pc-twp__shot,
.pc-twp__shot img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Captures ship with their own background baked in, so they read as a card. */
.pc-twp__shot img {
	width: 100%;
	border-radius: var(--pc-radius-lg);
	box-shadow: var(--pc-shadow-sm);
}

/* Diagram stand-in for a not-yet-captured screenshot. */
.pc-twp__illus {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--pc-radius-lg);
}

.pc-twp__shot--framed img {
	border-radius: var(--pc-radius-lg);
	box-shadow: var(--pc-shadow-sm);
}

/* --- Section 6: comparison table --------------------------------------- */

.pc-twp__table-wrap {
	max-width: 900px;
	margin: 0 auto;
	overflow-x: auto;
}

.pc-twp__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.pc-twp__table thead th {
	position: sticky;
	top: 0;
	padding: 14px 16px;
	text-align: left;
	font-weight: 700;
	color: var(--pc-on-surface);
	background: var(--pc-surface-container);
}

.pc-twp__table thead th:not(:first-child),
.pc-twp__table td {
	text-align: center;
	width: 90px;
}

.pc-twp__table-group th {
	padding: 12px 16px;
	text-align: left;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--pc-on-secondary-container);
	background: var(--pc-secondary-container);
}

.pc-twp__table tbody th[scope="row"] {
	padding: 12px 16px;
	text-align: left;
	font-weight: 400;
	line-height: 1.45;
	color: var(--pc-on-surface);
	border-bottom: 1px solid var(--pc-outline-variant);
}

.pc-twp__table tbody td {
	padding: 12px 16px;
	color: var(--pc-outline);
	border-bottom: 1px solid var(--pc-outline-variant);
}

.pc-twp__cell.is-yes {
	color: var(--pc-primary);
	font-size: 1.125rem;
}

/* --- Section 7: use cases ----------------------------------------------- */

.pc-twp__case-uses {
	margin: 14px 0 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pc-outline);
}

/* --- Section 8/9 -------------------------------------------------------- */

.pc-twp__setup-footer {
	max-width: 720px;
	margin: clamp(28px, 4vw, 40px) auto 0;
	text-align: center;
	font-size: 0.9375rem;
	color: var(--pc-secondary);
}

.pc-twp__stats {
	max-width: 800px;
	margin: 0 auto;
}

.pc-twp__proof-body {
	max-width: 720px;
	margin: 28px auto 0;
	text-align: center;
	line-height: 1.6;
	color: var(--pc-secondary);
}

/* --- Section 11 --------------------------------------------------------- */

.pc-twp__final .pc-twp__microcopy {
	color: var(--pc-inverse-on-surface);
	text-align: center;
}

.pc-twp__final-link {
	margin: 18px 0 0;
	font-size: 0.875rem;
	color: var(--pc-inverse-on-surface);
	text-align: center;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 860px) {

	.pc-twp__hero-inner,
	.pc-twp__wall-row,
	.pc-twp__shot-row {
		grid-template-columns: 1fr;
	}

	/* Spec: on mobile, text then image. */
	.pc-twp__shot-row--flip .pc-twp__shot-copy {
		order: 0;
	}

	.pc-twp__buy {
		max-width: none;
	}

	.pc-twp__band .pc-twp-var {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.pc-twp__proof-bar {
		justify-content: flex-start;
	}

	.pc-twp__proof-bar li {
		padding: 4px 12px;
		border-left: 0;
	}
}
