/*
 * Kid Suite — Homepage v2 (draft). Used only by page-home-v2.php.
 * Palette and font are the same as the current homepage and header.
 */

.ks2,
.ks2-footer {
	--p1: #8860d0;
	--p2: #667eea;
	--accent: #6d4fc2;
	--ink: #121826;
	--muted: #5b6577;
	--bg: #f0f2f5;
	--bg-alt: #e9edf3;
	--card: #ffffff;
	--line: rgba(17, 24, 39, 0.08);
	--grad: linear-gradient(135deg, var(--p1) 0%, var(--p2) 100%);
	--shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.07);
	--shadow-lg: 0 24px 60px rgba(76, 50, 150, 0.16);
	--radius: 22px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--gutter: 24px;
}

body .site-main.ks2 {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

.ks2 {
	background: var(--bg);
	color: var(--ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

@media (max-width: 360px) {
	.ks2 { --gutter: 18px; }
}

.ks2 *,
.ks2 *::before,
.ks2 *::after { box-sizing: border-box; }

.ks2 h1,
.ks2 h2,
.ks2 h3 { color: var(--ink); margin: 0; }

.ks2 p { margin: 0; }

.ks2 [id] { scroll-margin-top: 110px; }

.ks2-wrap {
	width: min(1400px, calc(100% - 2 * var(--gutter)));
	margin-inline: auto;
	position: relative;
}

.ks2-grad,
.ks2-shine {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--p1);
}

/* Animated sheen across the hero keyword */
.ks2-shine {
	background: linear-gradient(110deg, var(--p1) 0%, var(--p2) 35%, #b39ddb 50%, var(--p2) 65%, var(--p1) 100%);
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	animation: ks2-shine 6s linear infinite;
}

@keyframes ks2-shine {
	from { background-position: 100% 0; }
	to { background-position: -150% 0; }
}

/* ---------- Buttons ---------- */

.ks2-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 28px;
	border-radius: 14px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}

.ks2-btn--sm { min-height: 46px; padding: 0 20px; font-size: 15.5px; }
.ks2-btn--block { width: 100%; }

.ks2-btn--primary {
	position: relative;
	overflow: hidden;
	background: var(--grad);
	color: #fff !important;
	box-shadow: 0 8px 22px rgba(109, 79, 194, 0.32);
}

.ks2-btn--primary::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform 0.7s var(--ease);
}

.ks2-btn--ghost {
	background: #fff;
	color: var(--accent) !important;
	border: 1.5px solid rgba(136, 96, 208, 0.35);
}

.ks2-btn--light {
	background: #fff;
	color: var(--accent) !important;
	box-shadow: 0 10px 26px rgba(20, 10, 60, 0.25);
}

.ks2-btn--outline-light {
	color: #fff !important;
	border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.ks2-arrow {
	width: 20px;
	height: 20px;
	flex: none;
	transition: transform 0.25s var(--ease);
}

@media (hover: hover) {
	.ks2-btn:hover { transform: translateY(-2px); }
	.ks2-btn--primary:hover { box-shadow: 0 14px 30px rgba(109, 79, 194, 0.4); }
	.ks2-btn--primary:hover::after { transform: translateX(120%); }
	.ks2-btn--ghost:hover { border-color: var(--p1); background: rgba(136, 96, 208, 0.06); }
	.ks2-btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
	.ks2-btn:hover .ks2-arrow,
	.ks2-link:hover .ks2-arrow { transform: translateX(4px); }
}

.ks2-btn:focus-visible,
.ks2-link:focus-visible,
.ks2-qa summary:focus-visible,
.ks2-footer a:focus-visible {
	outline: 3px solid rgba(136, 96, 208, 0.55);
	outline-offset: 3px;
}

.ks2-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 28px;
	font-weight: 700;
	font-size: 17px;
	color: var(--accent) !important;
	text-decoration: none !important;
}

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

.ks2-hero {
	position: relative;
	padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 100px);
	isolation: isolate;
}

.ks2-hero-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: -1;
	pointer-events: none;
}

.ks2-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: 0.55;
	animation: ks2-drift 18s ease-in-out infinite alternate;
}

.ks2-blob--1 { width: 520px; height: 520px; background: #c9b6f2; top: -160px; right: -80px; }
.ks2-blob--2 { width: 420px; height: 420px; background: #b9c5f7; bottom: -160px; left: -120px; animation-delay: -6s; }
.ks2-blob--3 { width: 300px; height: 300px; background: #e4d8fb; top: 30%; left: 40%; animation-delay: -12s; }

@keyframes ks2-drift {
	0% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(40px, 30px) scale(1.08); }
	100% { transform: translate(-30px, 50px) scale(0.95); }
}

.ks2-grid-bg {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(109, 79, 194, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(109, 79, 194, 0.06) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.ks2-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.ks2-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 16px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(136, 96, 208, 0.22);
	box-shadow: 0 4px 14px rgba(109, 79, 194, 0.1);
	color: var(--accent);
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 22px !important;
}

.ks2-pulse {
	position: relative;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #22c55e;
}

.ks2-pulse::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #22c55e;
	animation: ks2-pulse 2s ease-out infinite;
}

@keyframes ks2-pulse {
	from { transform: scale(1); opacity: 0.6; }
	to { transform: scale(3); opacity: 0; }
}

.ks2-h1 {
	font-size: clamp(2.4rem, 1.2rem + 3.8vw, 4.1rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
	font-weight: 800;
	margin-bottom: 22px !important;
}

.ks2-lead {
	font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
	line-height: 1.7;
	color: var(--muted);
	font-weight: 500;
	max-width: 600px;
	margin-bottom: 32px !important;
}

.ks2-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 30px;
}

.ks2-cta--center { justify-content: center; margin-bottom: 0; }

.ks2-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.ks2-chips li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid var(--line);
	font-size: 15px;
	font-weight: 600;
	color: #344054;
}

.ks2-chips svg,
.ks2-list svg {
	width: 18px;
	height: 18px;
	flex: none;
	color: var(--p1);
}

/* Product visual with floating cards */
.ks2-hero-visual {
	position: relative;
	padding: 28px 0;
}

.ks2-device {
	position: relative;
	border-radius: 20px;
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform 0.4s var(--ease);
	will-change: transform;
}

.ks2-device-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 11px 14px;
	border-bottom: 1px solid var(--line);
	background: #fafafe;
}

.ks2-device-bar i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #e4e0ef;
}

.ks2-device-bar span {
	margin-left: 10px;
	padding: 3px 12px;
	border-radius: 8px;
	background: #f0eef7;
	font-size: 12px;
	color: #8a8fa0;
	font-weight: 500;
}

.ks2-device img {
	display: block;
	width: 100%;
	height: auto;
}

.ks2-float {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px 12px 12px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 16px 40px rgba(31, 41, 55, 0.14);
	animation: ks2-float 6s ease-in-out infinite;
	white-space: nowrap;
}

.ks2-float strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.ks2-float small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.ks2-float-ico {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: rgba(136, 96, 208, 0.12);
	color: var(--accent);
}

.ks2-float-ico svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ks2-float-ico--ok { background: rgba(34, 197, 94, 0.14); color: #16a34a; }

.ks2-float--a { top: 0; left: -28px; }
.ks2-float--b { bottom: 8px; right: -12px; animation-delay: -2s; }
.ks2-float--c { top: 46%; left: -44px; animation-delay: -4s; }

@keyframes ks2-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

/* ---------- Marquee ---------- */

.ks2-marquee {
	overflow: hidden;
	border-block: 1px solid var(--line);
	background: #fff;
	padding: 18px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ks2-marquee-track {
	display: flex;
	width: max-content;
	animation: ks2-marquee 38s linear infinite;
}

.ks2-marquee:hover .ks2-marquee-track { animation-play-state: paused; }

.ks2-marquee-list {
	display: flex;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ks2-marquee-list li {
	display: flex;
	align-items: center;
	font-size: 17px;
	font-weight: 700;
	color: #475467;
	white-space: nowrap;
	padding-right: 28px;
}

.ks2-marquee-list li::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-left: 28px;
	border-radius: 50%;
	background: var(--grad);
}

@keyframes ks2-marquee {
	to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

.ks2-section { padding: clamp(64px, 8vw, 110px) 0; }
.ks2-section--alt { background: var(--bg-alt); }

.ks2-head {
	text-align: center;
	max-width: 1100px;
	margin: 0 auto clamp(36px, 5vw, 60px);
}

.ks2-head--left { text-align: left; margin-inline: 0; }

.ks2-eyebrow {
	display: inline-block;
	margin-bottom: 14px !important;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.ks2-head h2 {
	font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
	line-height: 1.12;
	letter-spacing: -0.03em;
	font-weight: 900;
}

.ks2-head > p:not(.ks2-eyebrow) {
	margin-top: 16px !important;
	font-size: clamp(1.05rem, 1rem + 0.25vw, 1.18rem);
	line-height: 1.7;
	color: var(--muted);
	font-weight: 500;
}

/* ---------- Feature cards ---------- */

.ks2-features {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.ks2-card {
	position: relative;
	padding: 30px 28px;
	border-radius: var(--radius);
	background: var(--card);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.ks2-card h3 { font-size: 1.28rem; font-weight: 800; letter-spacing: -0.015em; margin: 18px 0 10px; }
.ks2-card p { font-size: 1.04rem; line-height: 1.65; color: var(--muted); }

.ks2-card-ico {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 16px;
	background: var(--grad);
	color: #fff;
	box-shadow: 0 10px 22px rgba(109, 79, 194, 0.28);
	transition: transform 0.35s var(--ease);
}

.ks2-card-ico svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (hover: hover) {
	.ks2-card:hover {
		transform: translateY(-6px);
		border-color: rgba(136, 96, 208, 0.3);
		box-shadow: var(--shadow-lg);
	}
	.ks2-card:hover .ks2-card-ico { transform: rotate(-8deg) scale(1.06); }
}

/* ---------- Product splits ---------- */

.ks2-split {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
}

.ks2-split + .ks2-split { margin-top: clamp(64px, 8vw, 110px); }
.ks2-split--rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.ks2-split--rev .ks2-split-copy { order: 2; }

.ks2-split-copy h3 {
	font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
	line-height: 1.15;
	letter-spacing: -0.025em;
	font-weight: 900;
	margin-bottom: 16px;
}

.ks2-split-copy > p { font-size: 1.1rem; line-height: 1.7; color: var(--muted); font-weight: 500; }

.ks2-list {
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
	display: grid;
	gap: 13px;
}

.ks2-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 1.06rem;
	line-height: 1.5;
	font-weight: 600;
	color: #344054;
}

.ks2-list li svg {
	margin-top: 1px;
	padding: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(136, 96, 208, 0.13);
}

.ks2-list--sm li { font-size: 0.98rem; }

.ks2-frame {
	padding: 10px;
	border-radius: 24px;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
	border: 1px solid #fff;
	box-shadow: var(--shadow-lg);
}

.ks2-frame img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
}

/* ---------- Before / after ---------- */

.ks2-compare {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 22px;
	align-items: center;
}

.ks2-cmp {
	height: 100%;
	padding: 32px 30px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
}

.ks2-cmp--before { background: #f7f7f9; }

.ks2-cmp--after {
	background: #fff;
	border-color: rgba(136, 96, 208, 0.35);
	box-shadow: var(--shadow-lg);
}

.ks2-cmp-tag {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 800;
	background: rgba(239, 68, 68, 0.1);
	color: #c2410c;
}

.ks2-cmp--after .ks2-cmp-tag { background: rgba(34, 197, 94, 0.12); color: #15803d; }

.ks2-cmp h3 { font-size: 1.6rem; font-weight: 900; margin: 14px 0 18px; letter-spacing: -0.02em; }
.ks2-cmp--before h3 { color: #667085; }

.ks2-cmp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.ks2-cmp li {
	display: flex;
	gap: 12px;
	font-size: 1.04rem;
	line-height: 1.55;
	font-weight: 500;
	color: #475467;
}

.ks2-cmp li svg { width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 50%; margin-top: 1px; }
.ks2-cmp--before li svg { color: #ef4444; background: rgba(239, 68, 68, 0.1); }
.ks2-cmp--after li svg { color: #16a34a; background: rgba(34, 197, 94, 0.13); }
.ks2-cmp--after li { color: #1f2937; font-weight: 600; }

.ks2-cmp-arrow {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--grad);
	color: #fff;
	box-shadow: 0 10px 24px rgba(109, 79, 194, 0.3);
}

.ks2-cmp-arrow .ks2-arrow { width: 24px; height: 24px; }

/* ---------- Steps ---------- */

.ks2-steps {
	--progress: 0;
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: none;
}

/* Connecting line that fills in as the section scrolls into view */
.ks2-steps::before,
.ks2-steps::after {
	content: "";
	position: absolute;
	top: 28px;
	left: calc(100% / 6);
	right: calc(100% / 6);
	height: 3px;
	border-radius: 3px;
	background: rgba(109, 79, 194, 0.15);
}

.ks2-steps::after {
	background: var(--grad);
	transform-origin: left;
	transform: scaleX(var(--progress));
}

.ks2-steps li { position: relative; z-index: 1; text-align: center; padding: 0 8px; }

.ks2-step-num {
	display: inline-grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid rgba(136, 96, 208, 0.35);
	color: var(--accent);
	font-size: 1.35rem;
	font-weight: 900;
	box-shadow: 0 8px 20px rgba(109, 79, 194, 0.15);
}

.ks2-steps h3 { font-size: 1.3rem; font-weight: 800; margin: 18px 0 8px; }
.ks2-steps p { font-size: 1.04rem; line-height: 1.6; color: var(--muted); max-width: 320px; margin-inline: auto; }

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

.ks2-billing {
	position: relative;
	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	margin-top: 28px;
	padding: 5px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
}

.ks2-billing-opt { position: relative; z-index: 1; cursor: pointer; margin: 0; }
.ks2-billing-opt input { position: absolute; opacity: 0; pointer-events: none; }

.ks2-billing-opt span {
	display: block;
	padding: 11px 22px;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 700;
	color: var(--muted);
	transition: color 0.3s;
	white-space: nowrap;
}

.ks2-billing-opt em { font-style: normal; font-size: 13px; color: #16a34a; margin-left: 4px; transition: color 0.3s; }
.ks2-billing-opt input:checked + span { color: #fff; }
.ks2-billing-opt input:checked + span em { color: #d9fbe5; }
.ks2-billing-opt input:focus-visible + span { outline: 3px solid rgba(136, 96, 208, 0.5); outline-offset: 2px; }

.ks2-billing-pill {
	position: absolute;
	top: 5px;
	bottom: 5px;
	left: 5px;
	width: calc(50% - 5px);
	border-radius: 999px;
	background: var(--grad);
	box-shadow: 0 6px 16px rgba(109, 79, 194, 0.3);
	transition: transform 0.4s var(--ease);
}

.ks2-billing:has(input[value="annual"]:checked) .ks2-billing-pill { transform: translateX(100%); }

.ks2-plans {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

.ks2-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 30px 26px 26px;
	border-radius: var(--radius);
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

@media (hover: hover) {
	.ks2-plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
}

.ks2-plan--hl {
	border: 2px solid transparent;
	background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
	box-shadow: var(--shadow-lg);
}

.ks2-plan-flag {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--grad);
	color: #fff;
	font-size: 12.5px;
	font-weight: 800;
	white-space: nowrap;
	box-shadow: 0 6px 14px rgba(109, 79, 194, 0.3);
}

.ks2-plan h3 { font-size: 1.3rem; font-weight: 800; }

.ks2-price {
	display: flex;
	align-items: baseline;
	gap: 2px;
	margin-top: 16px !important;
	font-weight: 900;
	color: var(--ink);
}

.ks2-price-cur { font-size: 1.6rem; color: var(--accent); }
.ks2-price-num { font-size: 3rem; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ks2-price-per { margin-left: 6px; font-size: 1rem; font-weight: 600; color: var(--muted); }
.ks2-price-note { margin-top: 6px !important; font-size: 0.9rem; color: #8a8fa0; }
.ks2-plan-fit { margin-top: 16px !important; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.ks2-plan .ks2-list { margin: 16px 0 26px; flex: 1; align-content: start; }

.ks2-price-num.is-ticking { animation: ks2-tick 0.45s var(--ease); }

@keyframes ks2-tick {
	0% { opacity: 0; transform: translateY(10px); }
	100% { opacity: 1; transform: none; }
}

/* ---------- FAQ ---------- */

.ks2-faq-wrap {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: start;
}

.ks2-faq { display: grid; gap: 14px; }

.ks2-qa {
	border-radius: 18px;
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.ks2-qa[open] { border-color: rgba(136, 96, 208, 0.35); box-shadow: var(--shadow-lg); }

.ks2-qa summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 22px 24px;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--ink);
	cursor: pointer;
	list-style: none;
}

.ks2-qa summary::-webkit-details-marker { display: none; }

.ks2-qa-ico {
	position: relative;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(136, 96, 208, 0.12);
	transition: transform 0.35s var(--ease), background 0.3s;
}

.ks2-qa-ico::before,
.ks2-qa-ico::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2.5px;
	margin: -1.25px 0 0 -6px;
	border-radius: 2px;
	background: var(--accent);
	transition: transform 0.35s var(--ease), background 0.3s;
}

.ks2-qa-ico::after { transform: rotate(90deg); }
.ks2-qa[open] .ks2-qa-ico { transform: rotate(180deg); background: var(--grad); }
.ks2-qa[open] .ks2-qa-ico::before,
.ks2-qa[open] .ks2-qa-ico::after { background: #fff; }
.ks2-qa[open] .ks2-qa-ico::after { transform: rotate(0deg); }

.ks2-qa-body { padding: 0 24px 22px; }
.ks2-qa-body p { font-size: 1.04rem; line-height: 1.7; color: var(--muted); }

/* ---------- Final CTA ---------- */

.ks2-final { padding: 0 0 clamp(64px, 8vw, 110px); background: var(--bg-alt); }

.ks2-final-card {
	position: relative;
	overflow: hidden;
	padding: clamp(44px, 6vw, 80px) clamp(24px, 5vw, 64px);
	border-radius: 30px;
	background: linear-gradient(135deg, #7b52c9 0%, #6366e8 100%);
	text-align: center;
	isolation: isolate;
}

.ks2-final-card::before,
.ks2-final-card::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	animation: ks2-drift 16s ease-in-out infinite alternate;
}

.ks2-final-card::before { width: 380px; height: 380px; top: -180px; right: -80px; }
.ks2-final-card::after { width: 280px; height: 280px; bottom: -150px; left: -60px; animation-delay: -8s; }

.ks2-final-card h2 {
	color: #fff;
	font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 1.15;
	max-width: 820px;
	margin-inline: auto;
}

.ks2-final-card p {
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.15rem;
	line-height: 1.6;
	max-width: 620px;
	margin: 18px auto 32px !important;
}

/* ---------- Scroll reveal (only when JS is running) ---------- */

.ks2-js [data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s var(--ease) var(--d, 0ms), transform 0.8s var(--ease) var(--d, 0ms);
}

.ks2-js [data-reveal="left"] { transform: translateX(-40px); }
.ks2-js [data-reveal="right"] { transform: translateX(40px); }
.ks2-js [data-reveal="zoom"] { transform: scale(0.94); }

.ks2-js [data-reveal].is-in { opacity: 1; transform: none; }

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

@media (max-width: 1200px) {
	.ks2-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
	.ks2-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ks2-float--c { display: none; }
}

@media (max-width: 1024px) {
	.ks2-hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
	.ks2-hero-copy { display: flex; flex-direction: column; align-items: center; }
	.ks2-lead { margin-inline: auto; }
	.ks2-cta, .ks2-chips { justify-content: center; }
	.ks2-hero-visual { max-width: 720px; width: 100%; margin-inline: auto; }
	.ks2-float--a { left: -12px; }
	.ks2-float--b { right: -12px; }

	.ks2-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.ks2-split,
	.ks2-split--rev { grid-template-columns: minmax(0, 1fr); }
	.ks2-split--rev .ks2-split-copy { order: 0; }
	.ks2-split-media { max-width: 760px; }

	.ks2-faq-wrap { grid-template-columns: minmax(0, 1fr); }
	.ks2-head--left { text-align: center; margin-inline: auto; }

}

@media (max-width: 767px) {
	.ks2-compare { grid-template-columns: minmax(0, 1fr); }
	.ks2-cmp-arrow { justify-self: center; transform: rotate(90deg); }
	.ks2-js .ks2-cmp-arrow[data-reveal] { transform: rotate(90deg) scale(0.94); }
	.ks2-js .ks2-cmp-arrow[data-reveal].is-in { transform: rotate(90deg); }
	.ks2-cmp { padding: 26px 22px; }

	.ks2-steps { grid-template-columns: minmax(0, 1fr); gap: 34px; }
	.ks2-steps::before,
	.ks2-steps::after { top: 28px; bottom: 28px; left: 28px; right: auto; width: 3px; height: auto; transform-origin: top; }
	.ks2-steps::after { transform: scaleY(var(--progress)); }
	.ks2-steps li { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 18px; text-align: left; padding: 0; }
	.ks2-step-num { grid-row: span 2; }
	.ks2-steps h3 { margin: 12px 0 6px; }
	.ks2-steps p { margin: 0; max-width: none; }

	.ks2-qa summary { padding: 18px 18px; font-size: 1.04rem; }
	.ks2-qa-body { padding: 0 18px 18px; }

}

@media (max-width: 640px) {
	.ks2-features { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.ks2-card { padding: 24px 22px; display: grid; grid-template-columns: 50px minmax(0, 1fr); column-gap: 16px; }
	.ks2-card-ico { width: 50px; height: 50px; grid-row: span 2; }
	.ks2-card h3 { margin: 2px 0 6px; font-size: 1.18rem; }

	/* Pricing becomes a swipeable row */
	.ks2-plans {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 84%;
		gap: 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding: 18px var(--gutter) 22px;
		margin-inline: calc(-1 * var(--gutter));
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}
	.ks2-plans::-webkit-scrollbar { display: none; }
	.ks2-plan { scroll-snap-align: start; }
	.ks2-js .ks2-plan[data-reveal] { opacity: 1; transform: none; }
	.ks2-billing-opt span { padding: 10px 16px; font-size: 15px; }
}

@media (max-width: 560px) {
	.ks2-cta { flex-direction: column; align-self: stretch; }
	.ks2-cta .ks2-btn { width: 100%; }
	.ks2-chips li { font-size: 14px; padding: 7px 12px; }
	.ks2-hero-visual { padding: 18px 0 30px; }
	.ks2-float { padding: 9px 12px 9px 9px; gap: 9px; border-radius: 13px; }
	.ks2-float-ico { width: 32px; height: 32px; border-radius: 9px; }
	.ks2-float strong { font-size: 13px; }
	.ks2-float small { font-size: 11.5px; }
	.ks2-float--a { left: -6px; top: -4px; }
	.ks2-float--b { right: -6px; bottom: 6px; }
	.ks2-device-bar span { display: none; }
	.ks2-blob { filter: blur(50px); }
	.ks2-blob--1 { width: 320px; height: 320px; }
	.ks2-blob--2 { width: 280px; height: 280px; }

}

@media (prefers-reduced-motion: reduce) {
	.ks2 *,
	.ks2 *::before,
	.ks2 *::after,
	.ks2-footer * {
		animation: none !important;
		transition: none !important;
	}
	.ks2-js [data-reveal] { opacity: 1; transform: none; }
	.ks2-device { transform: none; }
}

/* Line breaks like the current homepage */
.ks2-head > p:not(.ks2-eyebrow) { max-width: 780px; margin-inline: auto; }
.ks2-head--left > p:not(.ks2-eyebrow) { margin-inline: 0; }
.ks2-l { display: inline; }
.ks2-l--br { display: block; }
.ks2-faq-wrap .ks2-head { max-width: none; }

@media (max-width: 560px) {
	.ks2-l { display: block; }
}

/* Hero title: "Παιδιά & θεραπευτές," / "σε ένα πρόγραμμα" on desktop */
@media (min-width: 1025px) {
	.ks2-hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
	.ks2-h1 { font-size: min(4.1rem, 4.2vw); }
	.ks2-h1 .ks2-l { white-space: nowrap; }
}

@media (max-width: 560px) {
	.ks2-h1 { font-size: clamp(2rem, 9vw, 2.4rem); }
	.ks2-h1 .ks2-l { white-space: nowrap; }
}

/* Product titles: bigger, accent words a touch larger (as on the current homepage) */
.ks2-split-copy h3 {
	font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.3rem);
	line-height: 1.1;
	letter-spacing: -0.03em;
	font-weight: 900;
	margin-bottom: 20px;
}
.ks2-split-copy h3 .ks2-grad { font-size: 1.08em; }

/* "Αυτόματα" tag on a feature card */
.ks2-card-tag {
	position: absolute;
	top: 30px;
	right: 24px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(34, 197, 94, 0.13);
	color: #15803d;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.01em;
}
.ks2-card:has(.ks2-card-tag) { border-color: rgba(136, 96, 208, 0.35); }

@media (max-width: 640px) {
	.ks2-card-tag { top: 14px; right: 14px; padding: 4px 10px; font-size: 12px; }
	.ks2-card:has(.ks2-card-tag) h3 { padding-right: 76px; }
}

/* Prices: purple gradient and type as on the current homepage */
.ks2-price { gap: 0; letter-spacing: -0.02em; }
.ks2-price-cur,
.ks2-price-num,
.ks2-price-per {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--p1);
	font-weight: 900;
}
.ks2-price-cur,
.ks2-price-num { font-size: 2.4rem; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: normal; }
.ks2-price-per { margin-left: 8px; font-size: 1.05rem; letter-spacing: 0; white-space: nowrap; }

/* Specialties line under the hero buttons (SEO + clarity) */
.ks2-for {
	margin: -8px 0 22px !important;
	font-size: 15.5px;
	font-weight: 600;
	color: #6b7280;
}

/* ---------- Mobile: shorter page ---------- */
@media (max-width: 640px) {
	/* Avoid a single orphan word on the last line of headings */
	.ks2-head h2,
	.ks2-split-copy h3,
	.ks2-final-card h2 { text-wrap: pretty; }

	/* Hero chips: two per row */
	.ks2-chips { gap: 8px; }
	.ks2-chips li { font-size: 13.5px; padding: 6px 11px; gap: 6px; }
	.ks2-chips svg { width: 15px; height: 15px; }
	.ks2-for { margin: -4px 0 18px !important; font-size: 14.5px; }

	/* Feature cards: compact */
	.ks2-features { gap: 12px; }
	.ks2-card { padding: 18px 18px; column-gap: 14px; grid-template-columns: 44px minmax(0, 1fr); border-radius: 18px; }
	.ks2-card-ico { width: 44px; height: 44px; border-radius: 13px; }
	.ks2-card-ico svg { width: 22px; height: 22px; }
	.ks2-card h3 { font-size: 1.08rem; margin: 0 0 4px; }
	.ks2-card p { font-size: 0.95rem; line-height: 1.5; }

	/* Before/after: tighter */
	.ks2-cmp { padding: 22px 20px; }
	.ks2-cmp h3 { font-size: 1.35rem; margin: 10px 0 14px; }
	.ks2-cmp ul { gap: 10px; }
	.ks2-cmp li { font-size: 0.98rem; line-height: 1.5; }
	.ks2-cmp-arrow { width: 46px; height: 46px; }

	/* Section spacing */
	.ks2-section { padding: 56px 0; }
	.ks2-split + .ks2-split { margin-top: 56px; }
	.ks2-plans { padding-bottom: 8px; }
}

/* Hero left-aligned when stacked (tablet/mobile), like the previous homepage */
@media (max-width: 1024px) {
	.ks2-hero-grid { text-align: left; }
	.ks2-hero-copy { align-items: flex-start; }
	.ks2-lead { margin-inline: 0; }
	.ks2-cta,
	.ks2-chips { justify-content: flex-start; }
}

/* Feature cards: two per row on phones (icon above the title) */
@media (max-width: 640px) {
	.ks2-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ks2-card { display: block; padding: 16px 14px 18px; border-radius: 16px; }
	.ks2-card-ico { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 12px; }
	.ks2-card-ico svg { width: 20px; height: 20px; }
	.ks2-card h3 { font-size: 0.98rem; line-height: 1.25; margin: 0 0 6px; hyphens: auto; }
	.ks2-card p { font-size: 0.86rem; line-height: 1.45; }
}

/* Phones: one alignment (left) and a clear title hierarchy */
@media (max-width: 640px) {
	.ks2-head,
	.ks2-head--left { text-align: left; margin-left: 0; margin-right: 0; margin-bottom: 28px; }
	.ks2-head > p:not(.ks2-eyebrow) { margin-inline: 0; }
	.ks2-head h2 { font-size: 1.9rem; }

	/* Product sub-titles: smaller than the section title, with room above */
	#product .ks2-head { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid rgba(17, 24, 39, 0.08); }
	.ks2-split-copy h3 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 12px; }
	.ks2-split-copy h3 .ks2-grad { font-size: 1em; }
	.ks2-split-copy > p { font-size: 1rem; }
	.ks2-split + .ks2-split { margin-top: 48px; padding-top: 40px; border-top: 1px solid rgba(17, 24, 39, 0.08); }

	/* Pricing toggle follows the left alignment */
	.ks2-billing { margin-top: 20px; }
}

/* Before/after: badge on the right, same row as the title */
.ks2-cmp {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 12px;
	align-content: start;
}
.ks2-cmp h3 { grid-column: 1; grid-row: 1; margin: 0; }
.ks2-cmp-tag { grid-column: 2; grid-row: 1; justify-self: end; white-space: nowrap; }
.ks2-cmp ul { grid-column: 1 / -1; margin-top: 18px; }
@media (max-width: 640px) {
	.ks2-cmp ul { margin-top: 14px; }
}

/* Phones: hero chips are redundant with the feature cards */
@media (max-width: 640px) {
	.ks2-chips { display: none; }
	.ks2-cta { margin-bottom: 8px; }
}

/* Phones: section titles centred again (only the hero is left-aligned) */
@media (max-width: 640px) {
	.ks2-head,
	.ks2-head--left { text-align: center; margin-left: auto; margin-right: auto; }
	.ks2-head > p:not(.ks2-eyebrow) { margin-inline: auto; }
}
