/* QuizNest landing page styles. Colours come from Blocksy's palette (Customizer → Colours). */

:root {
	--qn-font-heading: var(--wp--preset--font-family--nunito, Nunito, system-ui, sans-serif);
	--qn-font-body: var(--wp--preset--font-family--inter, Inter, system-ui, sans-serif);
	--qn-radius: 20px;
	--qn-shadow: 0 1px 2px rgba(30, 42, 68, 0.04), 0 12px 32px rgba(30, 42, 68, 0.08);
	--qn-shadow-lift: 0 2px 4px rgba(30, 42, 68, 0.05), 0 20px 44px rgba(30, 42, 68, 0.14);
	--qn-header-offset: 132px;
}

/* ---------- Base ---------- */
html {
	scroll-padding-top: var(--qn-header-offset);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body,
.editor-styles-wrapper {
	font-family: var(--qn-font-body);
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.site-title,
.site-title a {
	font-family: var(--qn-font-heading);
	letter-spacing: -0.01em;
}

/* ---------- Header (Blocksy) ---------- */
#header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	background: var(--theme-palette-color-7);
	box-shadow: 0 1px 0 rgba(30, 42, 68, 0.06);
}

.site-title a {
	font-weight: 900;
	color: var(--theme-palette-color-4);
}

.menu-item.qn-menu-cta > a,
.menu-item.qn-menu-cta > .ct-menu-link {
	background: var(--theme-palette-color-1);
	color: var(--theme-palette-color-8) !important;
	border-radius: 999px;
	padding: 10px 22px !important;
	font-weight: 700;
	line-height: 1.2;
	height: auto !important;
	transition: background 0.2s ease, transform 0.2s ease;
}

.menu-item.qn-menu-cta > a:hover,
.menu-item.qn-menu-cta > .ct-menu-link:hover {
	background: var(--theme-palette-color-2);
}

.menu-item.qn-menu-cta > a::before,
.menu-item.qn-menu-cta > a::after {
	display: none !important;
}

/* ---------- Layout ---------- */
.qn-landing > .alignfull {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.qn-landing > * + * {
	margin-top: 0;
}

.qn-section {
	position: relative;
	padding: clamp(64px, 9vw, 112px) 20px;
	color: var(--theme-palette-color-3);
}

.qn-section > * {
	max-width: 1180px;
	margin-left: auto !important;
	margin-right: auto !important;
}

.qn-section-head {
	max-width: 720px !important;
	text-align: center;
	margin-bottom: clamp(36px, 5vw, 56px) !important;
}

.qn-section h2 {
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.15;
	font-weight: 800;
	color: var(--theme-palette-color-4);
	margin: 0 0 16px;
}

.qn-section h3 {
	font-size: 21px;
	line-height: 1.3;
	font-weight: 800;
	color: var(--theme-palette-color-4);
	margin: 0 0 8px;
}

.qn-section p {
	line-height: 1.65;
}

.qn-lead {
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.6;
}

.qn-eyebrow {
	display: inline-block;
	margin: 0 0 16px !important;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--theme-palette-color-6);
	color: var(--theme-palette-color-2);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.qn-section-head .qn-eyebrow {
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Buttons (the one CTA) ---------- */
.qn-btn .wp-block-button__link {
	padding: 16px 32px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 17px;
	box-shadow: 0 10px 24px rgba(242, 107, 79, 0.32);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.qn-btn .wp-block-button__link:hover {
	background-color: var(--theme-palette-color-2) !important;
	box-shadow: 0 14px 30px rgba(242, 107, 79, 0.4);
}

.qn-btn .wp-block-button__link:focus-visible,
.menu-item.qn-menu-cta > a:focus-visible {
	outline: 3px solid var(--wp--preset--color--sunflower, #FFC24B);
	outline-offset: 3px;
}

.qn-cta-note {
	font-size: 14px;
	opacity: 0.8;
	margin-top: 12px !important;
}

/* ---------- Hero ---------- */
.qn-hero {
	padding-top: clamp(40px, 6vw, 80px);
	overflow: hidden;
}

.qn-hero h1 {
	font-size: clamp(36px, 5.4vw, 60px);
	line-height: 1.08;
	font-weight: 900;
	color: var(--theme-palette-color-4);
	margin: 0 0 20px;
}

.qn-hero h1 mark {
	background: linear-gradient(transparent 62%, var(--wp--preset--color--sunflower, #FFC24B) 62%);
	color: inherit;
	padding: 0 4px;
}

.qn-hero-columns {
	align-items: center !important;
	gap: clamp(32px, 5vw, 64px) !important;
}

.qn-hero-image img {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 24px 48px rgba(30, 42, 68, 0.16));
}

.qn-logos-label {
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.7;
	margin-top: clamp(48px, 7vw, 80px) !important;
}

.qn-logos {
	justify-content: center;
	gap: 16px 40px !important;
}

.qn-logos p {
	margin: 0;
	font-family: var(--qn-font-heading);
	font-weight: 800;
	font-size: 19px;
	color: var(--theme-palette-color-4);
	opacity: 0.45;
	white-space: nowrap;
}

/* ---------- Cards ---------- */
.qn-card {
	background: var(--theme-palette-color-8);
	border-radius: var(--qn-radius);
	padding: 32px 28px;
	box-shadow: var(--qn-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	height: 100%;
	box-sizing: border-box;
}

.qn-card > * + * {
	margin-top: 10px;
}

.qn-card p {
	margin: 0;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.qn-card:hover {
		transform: translateY(-4px);
		box-shadow: var(--qn-shadow-lift);
	}
}

.qn-grid {
	gap: 24px !important;
}

.qn-icon {
	margin: 0 0 18px !important;
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
	border-radius: 16px;
	background: var(--theme-palette-color-6);
}

.qn-icon img {
	width: 28px;
	height: 28px;
}

/* ---------- Problem → solution ---------- */
.qn-problem,
.qn-solution {
	position: relative;
	padding-left: 32px;
}

.qn-problem {
	color: var(--theme-palette-color-3);
	opacity: 0.75;
	text-decoration: line-through;
	text-decoration-color: rgba(242, 107, 79, 0.6);
}

.qn-problem::before,
.qn-solution::before {
	position: absolute;
	left: 0;
	top: 1px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	color: #fff;
}

.qn-problem::before {
	content: "✕";
	background: var(--theme-palette-color-1);
}

.qn-solution::before {
	content: "✓";
	background: var(--wp--preset--color--mint, #3CB497);
}

.qn-solution {
	font-weight: 600;
	color: var(--theme-palette-color-4);
}

/* ---------- How it works ---------- */
.qn-step-num {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin: 0 0 18px !important;
	border-radius: 50%;
	background: var(--theme-palette-color-1);
	color: #fff;
	font-family: var(--qn-font-heading);
	font-weight: 900;
	font-size: 20px;
}

/* ---------- Roles ---------- */
.qn-ticks {
	list-style: none;
	padding: 0 !important;
	margin: 14px 0 0 !important;
}

.qn-ticks li {
	position: relative;
	padding-left: 28px;
	margin: 0 0 10px;
	line-height: 1.5;
}

.qn-ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--wp--preset--color--mint, #3CB497) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Stats band ---------- */
.qn-stats h2,
.qn-stats h3,
.qn-final-cta.has-palette-color-4-background-color h2 {
	color: var(--theme-palette-color-8);
}

.qn-stats {
	color: rgba(255, 255, 255, 0.82);
}

.qn-stat {
	text-align: center;
}

.qn-stat-number {
	margin: 0 !important;
	font-family: var(--qn-font-heading);
	font-weight: 900;
	font-size: clamp(40px, 5vw, 56px);
	line-height: 1.1;
	color: var(--wp--preset--color--sunflower, #FFC24B);
}

.qn-stats .wp-block-buttons {
	margin-top: clamp(36px, 5vw, 56px) !important;
}

/* ---------- Testimonials ---------- */
.qn-quote-text {
	font-size: 17px;
	color: var(--theme-palette-color-4);
}

.qn-quote-text::before {
	content: "“";
	display: block;
	font-family: var(--qn-font-heading);
	font-size: 64px;
	line-height: 0.6;
	margin-bottom: 12px;
	color: var(--theme-palette-color-1);
}

.qn-stars {
	color: var(--wp--preset--color--sunflower, #FFC24B);
	letter-spacing: 2px;
	font-size: 18px;
}

.qn-quote-author {
	margin-top: 20px !important;
	font-weight: 700;
	color: var(--theme-palette-color-4);
}

.qn-quote-author span {
	display: block;
	font-weight: 400;
	font-size: 14px;
	color: var(--theme-palette-color-3);
}

/* ---------- Security & integrations ---------- */
.qn-chips {
	justify-content: center;
	gap: 12px !important;
	margin-top: 40px !important;
}

.qn-chips p {
	margin: 0;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--theme-palette-color-6);
	color: var(--theme-palette-color-4);
	font-weight: 600;
	font-size: 15px;
}

/* ---------- FAQ ---------- */
.qn-faq {
	max-width: 820px !important;
}

.qn-faq .wp-block-details {
	background: var(--theme-palette-color-8);
	border-radius: 16px;
	box-shadow: var(--qn-shadow);
	padding: 0;
	margin: 0 0 14px;
}

.qn-faq .wp-block-details summary {
	position: relative;
	list-style: none;
	cursor: pointer;
	padding: 22px 60px 22px 24px;
	font-family: var(--qn-font-heading);
	font-weight: 800;
	font-size: 18px;
	color: var(--theme-palette-color-4);
}

.qn-faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.qn-faq .wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--theme-palette-color-6);
	color: var(--theme-palette-color-1);
	font-size: 20px;
	line-height: 1;
	transition: transform 0.2s ease;
}

.qn-faq .wp-block-details[open] summary::after {
	content: "−";
}

.qn-faq .wp-block-details summary:focus-visible {
	outline: 3px solid var(--theme-palette-color-1);
	outline-offset: 2px;
	border-radius: 16px;
}

.qn-faq .wp-block-details > p {
	margin: 0;
	padding: 0 24px 22px;
}

/* ---------- Final CTA ---------- */
.qn-final-cta {
	text-align: center;
}

.qn-final-cta .qn-lead {
	max-width: 640px;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* ---------- Footer info ---------- */
.qn-footer-info {
	padding-top: 56px;
	padding-bottom: 40px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 15px;
}

.qn-footer-info h3,
.qn-footer-info strong {
	color: var(--theme-palette-color-8);
}

.qn-footer-info a {
	color: var(--theme-palette-color-8);
}

.qn-footer-brand {
	font-family: var(--qn-font-heading);
	font-weight: 900;
	font-size: 26px;
	color: var(--theme-palette-color-8);
	margin: 0 0 8px !important;
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
	.qn-js-reveal .qn-reveal > * {
		opacity: 0;
		transform: translateY(16px);
		transition: opacity 0.6s ease, transform 0.6s ease;
	}

	.qn-js-reveal .qn-reveal.is-visible > * {
		opacity: 1;
		transform: none;
	}

	.qn-js-reveal .qn-reveal.is-visible > *:nth-child(2) {
		transition-delay: 0.08s;
	}

	.qn-js-reveal .qn-reveal.is-visible > *:nth-child(3) {
		transition-delay: 0.16s;
	}
}

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.qn-hero {
		text-align: center;
	}

	.qn-hero .wp-block-buttons {
		justify-content: center;
	}

	.qn-hero-image {
		max-width: 520px;
		margin: 0 auto;
	}
}

/* ---------- Landing template tweaks ---------- */
/* The footer section lives in the page itself, so Blocksy's footer is hidden on this template. */
.page-template-page-landing .ct-footer {
	display: none;
}

.qn-hero-image img {
	aspect-ratio: 640 / 500;
}

@media (max-width: 999px) {
	:root {
		--qn-header-offset: 88px;
	}
}
