/* PressToCart — minimal defaults; the theme controls appearance. */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-8, 3rem); align-items: start; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } }
.product-version { font-family: var(--font-mono, monospace); font-size: 14px; color: var(--clr-muted, #667); }
.ptc-sandbox-note { font-size: 13px; color: #8a6d1a; background: #fff8e1; border: 1px solid #f0dfa8; border-radius: 8px; padding: 8px 12px; }
.ptc-buy-status { font-size: 14px; color: var(--clr-muted, #667); min-height: 1.4em; }

.account-nav ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 2rem; padding: 0; }
.account-nav a { display: block; padding: .55rem 1rem; border: 1px solid var(--clr-line, #e3e8f0); border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--clr-ink, #16202f); }
.account-nav a.is-active, .account-nav a:hover { border-color: var(--clr-primary, #185CE3); color: var(--clr-primary, #185CE3); }

.account-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--clr-line, #e3e8f0); border-radius: 12px; overflow: hidden; }
.account-table th, .account-table td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--clr-line, #e3e8f0); font-size: 14px; }
.account-table th { background: var(--clr-bg, #f7f9fc); }
.ptc-buyer-note { font-size: 13px; color: var(--clr-muted, #667); margin-top: 1rem; }

/* Plugin-owned auth panel (checkout page + account page).
   Fully self-contained: the reset below is scoped under .ptc-auth so
   theme styles cannot break these forms and none of this leaks into
   theme markup. */
.ptc-auth, .ptc-auth *, .ptc-auth *::before, .ptc-auth *::after { box-sizing: border-box; }
.ptc-auth { max-width: 420px; margin-inline: auto; }
.ptc-auth__tabs {
	display: flex;
	gap: 4px;
	background: var(--clr-bg, #eef1f6);
	border-radius: 10px;
	padding: 4px;
	margin-bottom: 14px;
}
.ptc-auth__tabs button {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 9px 12px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--clr-muted, #66748a);
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.ptc-auth__tabs button.is-active {
	background: var(--clr-surface, #fff);
	color: var(--clr-ink, #16202f);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}
.ptc-auth__panel {
	background: var(--clr-surface, #fff);
	border: 1px solid var(--clr-line, #e3e8f0);
	border-radius: 14px;
	padding: 22px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
}
.ptc-auth__form { display: none; margin: 0; }
.ptc-auth__form.is-active { display: block; }
.ptc-auth__form[hidden] { display: none; }
.ptc-auth__form p { margin: 0 0 14px; }
.ptc-auth__form p:last-child { margin-bottom: 0; }
.ptc-auth__form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--clr-ink, #16202f);
	margin: 0 0 6px;
}
.ptc-auth__form input[type="text"],
.ptc-auth__form input[type="email"],
.ptc-auth__form input[type="password"],
.ptc-auth__form input[type="number"] {
	display: block;
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--clr-line-strong, #cbd4e1);
	border-radius: 9px;
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
	color: var(--clr-ink, #16202f);
	background: var(--clr-surface, #fff);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ptc-auth__form input:focus {
	outline: none;
	border-color: var(--clr-primary, #185CE3);
	box-shadow: 0 0 0 3px rgba(24, 92, 227, .14);
}
.ptc-auth__form button[type="submit"] {
	display: block;
	width: 100%;
	border: 0;
	background: var(--clr-primary, #185CE3);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	padding: 11px 16px;
	border-radius: 9px;
	cursor: pointer;
	transition: filter .15s ease;
}
.ptc-auth__form button[type="submit"]:hover { filter: brightness(.93); }
.ptc-auth__form button[type="submit"]:disabled { opacity: .6; cursor: default; }
.ptc-auth__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ptc-auth__row p { margin: 0 0 14px; }
.ptc-auth__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 0;
}
.ptc-auth__actions button[type="submit"] { width: auto; }
.ptc-auth__remember {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	color: var(--clr-muted, #66748a);
	cursor: pointer;
}
.ptc-auth__remember input { width: auto; margin: 0; accent-color: var(--clr-primary, #185CE3); }
.ptc-auth__error {
	margin: 0 0 14px;
	background: #fdecec;
	border: 1px solid #f5b5b5;
	color: #9b2c2c;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 13.5px;
}
.ptc-auth__hint { font-weight: 400; color: var(--clr-muted, #66748a); }
.ptc-auth__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ptc-auth__pw { position: relative; display: block; }
.ptc-auth__pw input[type="password"],
.ptc-auth__pw input[type="text"] { padding-right: 44px; }
.ptc-auth__pw-toggle {
	position: absolute;
	top: 50%;
	right: 7px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 7px;
	color: var(--clr-muted, #66748a);
	cursor: pointer;
}
.ptc-auth__pw-toggle:hover { color: var(--clr-ink, #16202f); background: rgba(16, 24, 40, .06); }
.ptc-auth__pw-toggle:focus-visible { outline: 2px solid var(--clr-primary, #185CE3); outline-offset: 1px; }
.ptc-auth__pw-toggle svg { display: block; width: 18px; height: 18px; }

/* Dedicated checkout page. */
.ptc-checkout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; margin-inline: auto; align-items: start; }
@media (max-width: 860px) { .ptc-checkout { grid-template-columns: 1fr; } }
.ptc-checkout__summary, .ptc-checkout__side {
	background: var(--clr-surface, #fff);
	border: 1px solid var(--clr-line, #e3e8f0);
	border-radius: 14px;
	padding: 1.5rem;
}
.ptc-checkout__summary h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.ptc-checkout__item { border-bottom: 1px solid var(--clr-line, #e3e8f0); padding-bottom: 1rem; margin-bottom: 1rem; }
.ptc-checkout__product { font-weight: 800; color: var(--clr-ink, #16202f); margin-bottom: 0.25rem; }
.ptc-checkout__plan { font-size: 14px; color: var(--clr-muted, #66748a); margin-bottom: 0; }
.ptc-checkout__total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.ptc-checkout__total strong { font-size: 1.5rem; color: var(--clr-ink, #16202f); }
.ptc-checkout__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 14px; color: var(--clr-muted, #66748a); }
.ptc-checkout__points li { position: relative; padding-left: 1.5em; }
.ptc-checkout__points li::before { content: '✓'; position: absolute; left: 0; color: var(--clr-primary, #185CE3); font-weight: 700; }
.ptc-checkout__secure-note { font-size: 13px; color: var(--clr-muted, #66748a); margin: 0.75rem 0 0; }
.ptc-checkout-error { max-width: 560px; margin-inline: auto; text-align: center; padding: 3rem 1rem; }
.ptc-buy { width: 100%; }

/* Loop pricing (product cards). */
.ptc-loop-pricing { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; }
.product-card__price { margin-bottom: 0; }
.ptc-loop-pricing__price { font-weight: 800; color: var(--clr-ink, #16202f); font-size: 1.05rem; white-space: nowrap; }
.ptc-loop-pricing__buy {
	display: inline-block; padding: 0.45rem 1rem; border-radius: 8px;
	background: var(--clr-primary, #185CE3); color: #fff !important;
	font-size: 0.85rem; font-weight: 700; text-decoration: none; white-space: nowrap;
	transition: background-color 0.18s ease;
}
.ptc-loop-pricing__buy:hover { background: var(--clr-primary-hover, #1148B4); color: #fff; }

/* --------------------------------------------------------------------------
   Product page pricing sidebar: sticky, conversion-focused.
   Single plan -> flat buy card. Multiple plans -> compact pricing table.
   -------------------------------------------------------------------------- */
.product-layout { align-items: start; }
.product-pricing { position: sticky; top: calc(var(--header-h, 72px) + 1.25rem); }
.product-pricing h2 { display: none; }

.ptc-buy-card {
	background: var(--clr-bg, #F7F9FC);
	border: 1px solid var(--clr-line, #E3E8F0);
	border-radius: 14px;
	padding: 1.5rem;
	text-align: center;
}
.ptc-buy-card__name { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--clr-muted, #66748A); margin-bottom: 0.5rem; }
.ptc-buy-card__price { font-size: 2.4rem; font-weight: 800; color: var(--clr-dark, #0B1220); line-height: 1.1; margin-bottom: 0.25rem; }
.ptc-buy-card__per { font-size: 0.85rem; color: var(--clr-muted, #66748A); margin-bottom: 1rem; }
.ptc-buy-card__included { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--clr-muted, #66748A); margin: 0 0 0.6rem; }
.ptc-buy-card__list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.9rem; color: var(--clr-body, #3D4A5C); text-align: left; }
.ptc-buy-card__list li { position: relative; padding-left: 1.5em; }
.ptc-buy-card__list li::before { content: '✓'; position: absolute; left: 0; color: var(--clr-primary, #185CE3); font-weight: 700; }
.ptc-buy-card__cta { display: block; width: 100%; text-align: center; }
.ptc-buy-card__secure { font-size: 0.78rem; color: var(--clr-muted, #66748A); margin: 0.75rem 0 0; }
.ptc-buy-card__secure, .ptc-plan-table__secure { display: flex; align-items: center; gap: 0.4em; }
.ptc-secure-icon { width: 1.15em; height: 1.15em; flex: none; color: #1b6b3c; }

.ptc-plan-table__title { font-weight: 800; color: var(--clr-dark, #0B1220); margin-bottom: 0.5rem; }
.ptc-plan-row {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 0.75rem;
	padding: 0.9rem 1rem;
	background: var(--clr-surface, #fff);
	border: 1px solid var(--clr-line, #E3E8F0);
	border-radius: 10px;
	margin-bottom: 0.5rem;
}
.ptc-plan-row--best { border-color: var(--clr-primary, #185CE3); background: var(--clr-primary-soft, #E8EFFD); }
.ptc-plan-row__name { font-weight: 800; color: var(--clr-dark, #0B1220); margin: 0; }
.ptc-plan-row__badge { display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--clr-primary, #185CE3); color: #fff; border-radius: 6px; padding: 0.1rem 0.5rem; margin-left: 0.4rem; vertical-align: 2px; }
.ptc-plan-row__meta { font-size: 0.78rem; color: var(--clr-muted, #66748A); margin: 0; }
.ptc-plan-row__price { font-size: 1.25rem; font-weight: 800; color: var(--clr-dark, #0B1220); margin: 0; white-space: nowrap; }
.ptc-plan-row__buy {
	padding: 0.5rem 1.1rem; border-radius: 8px;
	background: var(--clr-primary, #185CE3); color: #fff !important;
	font-size: 0.85rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.ptc-plan-row__buy:hover { background: var(--clr-primary-hover, #1148B4); }
.ptc-plan-table__secure { font-size: 0.78rem; color: var(--clr-muted, #66748A); margin: 0.75rem 0 0; }
.ptc-auth__form input.is-invalid {
	border-color: #9b2c2c;
	box-shadow: 0 0 0 3px rgba(155, 44, 44, .12);
}

/* Site-wide discount display */
.ptc-discount-badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; background: #b42318; color: #fff; vertical-align: middle; }
.ptc-loop-pricing__now { color: #b42318; }
.ptc-buy-card__price del, .ptc-plan-row__price del, .ptc-checkout__total del { color: #6b7280; font-size: 0.7em; font-weight: 600; margin-right: 0.35em; }

/* --------------------------------------------------------------------------
   Changelog section (single product page)
   -------------------------------------------------------------------------- */
.ptc-changelog {
	margin-top: var(--space-7, 3rem);
	padding-top: var(--space-6, 2rem);
	border-top: 1px solid var(--clr-line, #E3E8F0);
}
.ptc-changelog__title {
	display: flex;
	align-items: center;
	gap: 0.5em;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--clr-dark, #0B1220);
	margin: 0 0 1.25rem;
}
.ptc-changelog__icon { width: 1.1em; height: 1.1em; color: var(--clr-primary, #185CE3); flex: none; }
.ptc-changelog__entry { padding-block: 1rem; }
.ptc-changelog__entry + .ptc-changelog__entry { border-top: 1px dashed var(--clr-line, #E3E8F0); }
.ptc-changelog__version {
	font-size: 1rem;
	font-weight: 800;
	color: var(--clr-dark, #0B1220);
	margin: 0 0 0.5rem;
}
.ptc-changelog__list {
	margin: 0 0 0.5rem;
	padding-left: 1.25rem;
	display: grid;
	gap: 0.35rem;
}
.ptc-changelog__list li { color: var(--clr-body, #3D4A5C); line-height: 1.6; }
.ptc-changelog p { color: var(--clr-body, #3D4A5C); }

/* --------------------------------------------------------------------------
   Product info bar (version, demo, docs, support) + changelog
   -------------------------------------------------------------------------- */
.ptc-product-info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	padding: 0.9rem 1.1rem;
	background: var(--clr-bg, #F7F9FC);
	border: 1px solid var(--clr-line, #E3E8F0);
	border-radius: 12px;
	margin: 0 0 2rem;
}
.ptc-product-info__primary,
.ptc-product-info__links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.ptc-product-info__version {
	display: inline-block;
	padding: 0.2rem 0.7rem;
	border: 1px solid var(--clr-line-strong, #CBD4E1);
	border-radius: 999px;
	background: var(--clr-surface, #fff);
	font-family: var(--font-mono, monospace);
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--clr-body, #3D4A5C);
	white-space: nowrap;
}
.ptc-product-info__demo {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 1.1rem;
	border: 2px solid var(--clr-primary, #185CE3);
	border-radius: 8px;
	color: var(--clr-primary, #185CE3);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease;
}
.ptc-product-info__demo:hover { background: var(--clr-primary, #185CE3); color: #fff; }
.ptc-product-info__demo:focus-visible,
.ptc-product-info__links a:focus-visible {
	outline: 2px solid var(--clr-primary, #185CE3);
	outline-offset: 2px;
	border-radius: 6px;
}
.ptc-product-info__links a {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--clr-body, #3D4A5C);
	text-decoration: none;
}
.ptc-product-info__links a:hover { color: var(--clr-primary, #185CE3); }
.ptc-product-info__icon { width: 1em; height: 1em; color: var(--clr-muted, #66748A); flex: none; }
.ptc-product-info__links a:hover .ptc-product-info__icon { color: var(--clr-primary, #185CE3); }
.ptc-changelog__date { font-size: 0.82rem; font-weight: 500; color: var(--clr-muted, #66748A); margin-left: 0.5rem; }

/* --------------------------------------------------------------------------
   Product page sections: video, features, screenshots, releases, FAQ
   -------------------------------------------------------------------------- */
.ptc-section { margin-top: var(--space-7, 3rem); }
.ptc-section__title {
	display: flex;
	align-items: center;
	gap: 0.5em;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--clr-dark, #0B1220);
	margin: 0 0 1.25rem;
}
.ptc-section__icon { width: 1.1em; height: 1.1em; color: var(--clr-primary, #185CE3); flex: none; }

/* Promo video: full-width 16:9 frame */
.ptc-video { margin-top: var(--space-6, 2rem); margin-bottom: var(--space-7, 3rem); }
.ptc-video__frame {
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: #0B1220;
	border: 1px solid var(--clr-line, #E3E8F0);
}
.ptc-video__frame iframe,
.ptc-video__frame video { width: 100%; height: 100%; border: 0; display: block; }

/* Features grid */
/* Features: a tinted panel so the section reads as its own block and
   never blends into the description text. */
.ptc-features {
	background: var(--clr-bg, #F7F9FC);
	border: 1px solid var(--clr-line, #E3E8F0);
	border-radius: 16px;
	padding: var(--space-6, 2rem) var(--space-5, 1.5rem) var(--space-5, 1.5rem);
}
.ptc-features .ptc-section__title { margin-left: 0.5rem; margin-top: 0; }
.ptc-features__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: var(--space-4, 1.5rem);
}
.ptc-features__image {
	height: 100px;
	width: auto;
	margin: 0 auto 0.9rem;
	border-radius: 8px;
	display: block;
}
.ptc-features__card {
	min-width: 0;
	background: var(--clr-surface, #fff);
	border: 1px solid var(--clr-line, #E3E8F0);
	border-radius: 12px;
	padding: 1.1rem 1.1rem 0.6rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ptc-features__card:hover {
	border-color: var(--clr-line-strong, #CBD4E1);
	box-shadow: var(--shadow-md, 0 6px 24px -8px rgba(11, 18, 32, 0.12));
	transform: translateY(-3px);
}
.ptc-features__title {
	font-size: 1.05rem;
	font-weight: 800;
	margin: 0 0 0.5rem;
	color: var(--clr-dark, #0B1220);
}
/* The theme's `.prose h3` top margin is more specific than the shorthand
   above; pin the title to the card padding. */
.ptc-features__card .ptc-features__title { margin-top: 0; }
.ptc-features__card p { margin: 0 0 0.75rem; color: var(--clr-body, #3D4A5C); line-height: 1.6; }
@media (max-width: 620px) {
	.ptc-features { padding: var(--space-5, 1.5rem) var(--space-4, 1rem); }
}

/* Screenshot gallery */
.ptc-screenshots__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: var(--space-4, 1.5rem);
}
.ptc-screenshots__item {
	display: block;
	border: 1px solid var(--clr-line, #E3E8F0);
	border-radius: 10px;
	overflow: hidden;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ptc-screenshots__item:hover { border-color: var(--clr-line-strong, #CBD4E1); box-shadow: var(--shadow-md, 0 6px 24px -8px rgba(11,18,32,0.12)); }
.ptc-screenshots__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* Release history */
.ptc-releases__entry { padding-block: 1.1rem; }
.ptc-releases__entry:first-child { padding-top: 0; }
.ptc-releases__entry + .ptc-releases__entry { border-top: 1px dashed var(--clr-line, #E3E8F0); }
.ptc-releases__version { display: flex; align-items: baseline; gap: 0.6em; margin: 0 0 0.6rem; }
.ptc-releases__num {
	font-size: 1rem;
	font-weight: 800;
	color: var(--clr-dark, #0B1220);
	font-family: var(--font-mono, monospace);
}
.ptc-releases__date { font-size: 0.82rem; font-weight: 500; color: var(--clr-muted, #66748A); }
.ptc-releases__entry p { margin: 0 0 0.4rem; color: var(--clr-body, #3D4A5C); line-height: 1.6; }

/* FAQ accordion */
.ptc-faq__item { border-bottom: 1px solid var(--clr-line, #E3E8F0); }
.ptc-faq__question {
	padding-block: 1rem;
	font-weight: 700;
	color: var(--clr-dark, #0B1220);
	cursor: pointer;
	position: relative;
	padding-right: 2rem;
	list-style: none;
}
.ptc-faq__question::-webkit-details-marker { display: none; }
.ptc-faq__question::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.3rem;
	font-weight: 400;
	color: var(--clr-muted, #66748A);
	transition: transform 0.18s ease;
}
.ptc-faq__item[open] .ptc-faq__question::after { content: "–"; }
.ptc-faq__question:focus-visible { outline: 2px solid var(--clr-primary, #185CE3); outline-offset: -2px; }
.ptc-faq__answer { padding: 0 2rem 1rem 0; }
.ptc-faq__answer p { margin: 0 0 0.5rem; color: var(--clr-body, #3D4A5C); line-height: 1.6; }
@media (prefers-reduced-motion: reduce) {
	.ptc-faq__question::after { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ptc-features__card,
	.ptc-features__card:hover {
		transition: none;
		transform: none;
	}
}

/* Product page: tighter gap between the hero and the description. The
   doubled class outranks the theme's later-loading `.section` rule. */
.section.section--product { padding-block-start: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
