/**
 * Styles for the free photo editor trial page
 *
 * @copyright   2026, ON1
 *
 * Single-goal Google Ads landing page: every section points back at the trial
 * form in the hero.
 *
 * Band order, on the 70/20/10 dark / light / one-step-lighter split:
 *
 *   #hero        follows the theme, blue burst; the form card is pinned LIGHT
 *   #why-trial   pinned LIGHT
 *   #proof       pinned dark, --bg-800 (the one step-lighter band); the Trustpilot
 *                widget renders its theme once, so the band cannot follow the toggle
 *   #faqs        follows the theme, base.css owns the band
 *   #final-cta   follows the theme, --bg-950, blue burst
 *   ON1 Guarantee pinned light, injected by partials/footer.php
 *
 * Rules are scoped to their section id, never the body id, so none of them
 * reach the header or footer partials.
 */

/* !- Hero */
#hero {
	padding: 3rem 0 5rem;
}

#hero h1 {
	color: var(--text-50);
	font-size: var(--text-5xl);
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1.12;
	margin-bottom: 1.25rem;
}

#hero .trial-grad {
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background: linear-gradient(-40deg, var(--blue-500), var(--legacy-purple-500));
	background-clip: text;
}

#hero .hero-sub {
	color: var(--text-300);
	font-size: var(--text-lg);
	margin-bottom: 1.25rem;
}

#hero .trust-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem 1.5rem;
	list-style: none;
	margin-bottom: 1.5rem;
	padding: 0;
}

#hero .trust-row li {
	color: var(--text-50);
	font-size: var(--text-sm);
}

#hero .trust-row i {
	color: var(--blue-500);
	margin-right: 0.375rem;
}

@media (max-width: 991.98px) {
	#hero {
		padding-top: 2rem;
	}

	#hero .trust-row {
		margin-bottom: 0;
	}
}

@media (max-width: 575.98px) {
	#hero h1 {
		font-size: var(--text-3xl);
	}
}

/* !- Before / after
 *
 * The site's <image-compare> component in the mockup's window frame. */
#hero .before-after {
	background: var(--bg-800);
	border: 1px solid var(--bg-700);
	border-radius: var(--border-radius);
	overflow: hidden;
}

#hero .before-after-bar {
	align-items: center;
	background: var(--bg-700);
	color: var(--text-500);
	display: flex;
	font-size: var(--text-micro);
	gap: 0.375rem;
	height: 1.875rem;
	padding: 0 0.75rem;
}

#hero .before-after-bar span {
	margin-left: 0.625rem;
}

#hero .before-after-dot {
	border-radius: 50%;
	height: 0.625rem;
	width: 0.625rem;
}

#hero .before-after-dot.is-red {
	background: var(--red-500);
}

#hero .before-after-dot.is-gold {
	background: var(--gold-500);
}

#hero .before-after-dot.is-green {
	background: var(--green-500);
}

/* !- Trial form card
 *
 * Pinned light in both themes, so it sets its own color for inherited text. */
#hero .trial-card {
	background: var(--white);
	border: 1px solid var(--bg-700);
	border-radius: var(--border-radius);
	color: var(--text-400);
	padding: 2.5rem;
	scroll-margin-top: 5rem;
}

#hero .trial-card h2 {
	color: var(--text-50);
	font-size: var(--text-2xl);
	font-weight: 700;
	line-height: 1.25;
	margin-bottom: 0.625rem;
}

#hero .trial-lede {
	font-size: var(--text-sm);
	margin-bottom: 1.75rem;
}

#hero .trial-card .form-group {
	margin-bottom: 1.25rem;
}

#hero .trial-card .form-label {
	color: var(--text-50);
	font-size: var(--text-xs);
	font-weight: 600;
	margin-bottom: 0.375rem;
}

#hero .trial-card .form-control,
#hero .trial-card .form-select {
	height: 3.125rem;
}

#hero .trial-card .form-check-label {
	font-size: var(--text-xs);
	line-height: 1.5;
}

#hero .trial-card .invalid-feedback p {
	margin-bottom: 0;
}

#hero .trial-error {
	color: var(--red-600);
	font-size: var(--text-sm);
	margin-bottom: 1rem;
}

#hero .trial-card .btn {
	align-items: center;
	display: flex;
	font-size: 1.0625rem;
	gap: 0.625rem;
	justify-content: center;
	padding: 1.1875rem 2.5rem;
	transition: none;
	width: 100%;
}

/* Bootstrap's pressed state (:not(.btn-check) + .btn:active, .btn:first-child:active)
   outranks .bg-blue:active and paints --bs-btn-active-*, which nothing sets, so a
   real mouse press flashed the button transparent. Pinned to the resting colours. */
#hero .trial-card .btn,
#final-cta .btn,
.trial-sticky .btn {
	--bs-btn-active-bg: var(--blue-500);
	--bs-btn-active-border-color: var(--blue-500);
	--bs-btn-active-color: var(--white);
}

/* While the request runs the button is disabled, and Bootstrap's .btn:disabled
   outranks .bg-blue: it paints --bs-btn-disabled-bg (transparent by default)
   at 65% opacity, so white text vanished into the white card. It stays solid
   blue with the spinner instead. */
#hero .trial-card .btn.is-loading {
	--bs-btn-disabled-bg: var(--blue-500);
	--bs-btn-disabled-border-color: var(--blue-500);
	--bs-btn-disabled-color: var(--white);
	--bs-btn-disabled-opacity: 1;
}

#hero .trial-card .btn.is-loading .trial-submit-arrow {
	display: none;
}

#hero .trial-guarantee {
	align-items: center;
	display: flex;
	font-size: var(--text-xs);
	gap: 0.625rem;
	justify-content: center;
	line-height: 1.4;
	margin: 1rem 0 0;
}

#hero .trial-guarantee i {
	color: var(--green-600);
	flex-shrink: 0;
	font-size: var(--text-xl);
}

#hero .trial-next {
	border-top: 1px solid var(--bg-700);
	gap: 0.625rem;
	justify-content: space-between;
	list-style: none;
	margin: 1.75rem 0 0;
	padding: 1.5rem 0 0;
}

#hero .trial-next.d-md-none {
	display: flex;
}

#hero .trial-next li {
	flex: 1;
	font-size: var(--text-mini);
	line-height: 1.4;
	text-align: center;
}

#hero .trial-next-num {
	align-items: center;
	background: var(--blue-transparent);
	border-radius: 50%;
	color: var(--blue-600);
	display: flex;
	font-size: var(--text-tiny);
	font-weight: 700;
	height: 1.625rem;
	justify-content: center;
	margin: 0 auto 0.375rem;
	width: 1.625rem;
}

#hero .trial-card .recaptcha-notice {
	color: var(--text-500);
	font-size: var(--text-micro);
	line-height: 1.5;
	margin: 1.25rem 0 0;
	text-align: center;
}

#hero .trial-buy {
	font-size: var(--text-sm);
	margin: 1rem 0 0;
	text-align: center;
}

@media (max-width: 575.98px) {
	#hero .trial-card {
		padding: 1.75rem 1.25rem;
	}
}

/* The v3 badge is hidden, so Google's attribution appears in the form instead */
.grecaptcha-badge {
	visibility: hidden;
}

/* !- Success state */
#hero .trial-success {
	padding: 1.75rem 0 0.625rem;
	text-align: center;
}

#hero .trial-success h2 {
	margin: 1.25rem 0 0.625rem;
}

#hero .trial-success p {
	font-size: var(--text-sm);
	margin-bottom: 0.875rem;
}

#hero .trial-email-out {
	color: var(--text-50);
	font-weight: 600;
	word-break: break-all;
}

#hero .trial-success .trial-small {
	color: var(--text-500);
	font-size: var(--text-xs);
}

#hero .trial-tick {
	stroke: var(--green-600);
}

#hero .trial-tick circle {
	stroke-dasharray: 180;
	stroke-dashoffset: 180;
}

#hero .trial-tick polyline {
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
}

#hero .trial-success.is-shown .trial-tick circle {
	animation: trial-draw 0.5s ease-out forwards;
}

#hero .trial-success.is-shown .trial-tick polyline {
	animation: trial-draw 0.35s ease-out 0.35s forwards;
}

@keyframes trial-draw {
	to {
		stroke-dashoffset: 0;
	}
}

/* !- Why it's worth 30 days */
#why-trial {
	background: var(--bg-900);
	color: var(--text-300);
	padding: 6rem 0;
}

#why-trial h2 {
	color: var(--text-50);
}

#why-trial .eyebrow {
	color: var(--blue-600);
}

#why-trial .trial-point {
	background: var(--white);
	border-radius: var(--border-radius);
	overflow: hidden;
}

#why-trial .trial-point img {
	aspect-ratio: 370 / 208;
	object-fit: cover;
	width: 100%;
}

#why-trial .trial-point-body {
	padding: 1.75rem;
}

#why-trial .trial-point-num {
	color: var(--blue-600);
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	margin-bottom: 0.625rem;
}

#why-trial h3 {
	color: var(--text-50);
	font-size: var(--text-xl);
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 0.625rem;
}

#why-trial .trial-point-body p {
	font-size: var(--text-base);
}

#why-trial .trial-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

#why-trial .trial-tags li {
	background: var(--bg-900);
	border-radius: var(--border-radius);
	color: var(--text-50);
	font-size: var(--text-tiny);
	letter-spacing: 0.08em;
	padding: 0.3rem 0.625rem;
	text-transform: uppercase;
}

/* !- Social proof */
/* Bottom padding is 20px short of the top because the Trustpilot iframe
   carries about that much empty space at its foot */
#proof {
	background: var(--bg-800);
	padding: 5rem 0 3.75rem;
}

#proof .trial-stats {
	margin-bottom: 3rem;
	text-align: center;
}

#proof .trial-stat-num {
	color: var(--text-50);
	font-size: var(--text-4xl);
	font-variant-numeric: tabular-nums;
	font-weight: 900;
	line-height: 1;
	margin-bottom: 0.5rem;
}

#proof .trial-stat-label {
	color: var(--text-500);
	font-size: var(--text-xs);
	letter-spacing: 0.12em;
	margin-bottom: 0;
	text-transform: uppercase;
}

/* !- FAQs (base.css owns the band and the accordion) */
#faqs h2 {
	color: var(--text-50);
}

/* base.css tints the spec-table sub-labels green, which is NoNoise AI's
   accent. Blue for Photo RAW, as on the Photo RAW specs page. */
#faqs #faq-specs td p.specs-eyebrow {
	color: var(--blue-500);
}

/* !- Final CTA */
#final-cta {
	background: var(--bg-950);
	padding: 6rem 0;
}

#final-cta h2 {
	color: var(--text-50);
	margin-bottom: 0.875rem;
}

#final-cta p {
	color: var(--text-300);
	font-size: var(--text-lg);
	margin-bottom: 2.25rem;
}

#final-cta .btn {
	font-size: 1.0625rem;
	padding: 1.1875rem 2.5rem;
}

/* !- Mobile sticky CTA
 *
 * Shown once the form has scrolled above the viewport, hidden again while the
 * final CTA is on screen or after the form is submitted. */
.trial-sticky {
	background: color-mix(in srgb, var(--bg-900) 96%, transparent);
	border-top: 1px solid var(--bg-700);
	bottom: 0;
	left: 0;
	padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
	position: fixed;
	right: 0;
	transform: translateY(100%);
	transition: transform 0.25s cubic-bezier(0.33, 1, 0.68, 1);
	z-index: 1030;
}

.trial-sticky.is-on {
	transform: none;
}

.trial-sticky .btn {
	font-size: 1.0625rem;
	padding: 0.875rem 2.5rem;
	width: 100%;
}

/* !- Motion */
.trial-enter {
	animation: trial-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	opacity: 0;
	transform: translateY(24px);
}

#hero h1.trial-enter {
	animation-delay: 0.09s;
}

#hero .hero-sub.trial-enter {
	animation-delay: 0.18s;
}

#hero .trust-row.trial-enter {
	animation-delay: 0.27s;
}

#hero .before-after.trial-enter {
	animation-delay: 0.36s;
}

#hero .trial-card.trial-enter {
	animation-delay: 0.25s;
	transform: translateY(16px);
}

@keyframes trial-enter {
	to {
		opacity: 1;
		transform: none;
	}
}

.trial-reveal {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.trial-reveal.is-in {
	opacity: 1;
	transform: none;
}

@media (min-width: 992px) {
	#why-trial .col:nth-child(2) .trial-reveal {
		transition-delay: 0.12s;
	}

	#why-trial .col:nth-child(3) .trial-reveal {
		transition-delay: 0.24s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.trial-enter,
	.trial-reveal {
		animation: none;
		opacity: 1;
		transform: none;
		transition: none;
	}

	#hero .trial-tick circle,
	#hero .trial-tick polyline {
		animation: none;
		stroke-dashoffset: 0;
	}

	.trial-sticky {
		transition: none;
	}
}
