/* Sinkronos for Math - landing page styles.
   Loaded in addition to addon.css, which supplies the shared design system
   (browser-mockup, feature-row, step-card, signin-card, addon-cta-banner).
   Only components that do not already exist in addon.css are defined here. */

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

/* addon.css sizes .section-title at 38px, which suited the old three-word
   hero heading. This headline is a full sentence, so it needs to come down
   a step to avoid running to three lines. */
.addon-page .addon-hero-content h2.section-title {
	font-size: 28px;
	line-height: 1.25;
	letter-spacing: -0.3px;
	margin-bottom: 18px;
	text-wrap: balance;
}

.math-hero-note {
	margin-top: 24px;
	font-size: 15px;
	font-weight: 500;
	color: #576A82;
	letter-spacing: 0.2px;
}

.meet-tag.math-audience-tag {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	line-height: 1.4;
}

/* ---------- Problem / pain point ---------- */

.juggle-wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	background: #ffffff80;
	border: 2px solid rgba(255, 255, 255, 0.7);
	border-radius: 30px;
	padding: 40px;
}

.juggle-steps {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.juggle-step {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border-radius: 16px;
	padding: 14px 20px;
	font-size: 16px;
	font-weight: 500;
	color: #020E1D;
	box-shadow: 0 2px 8px rgba(2, 14, 29, 0.04);
}

.juggle-step-dot {
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #E2E8F0;
}

.juggle-step.is-waiting {
	color: #576A82;
	font-style: italic;
}

.juggle-aside {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
}

.juggle-figure {
	background: #fff;
	border-radius: 20px;
	padding: 16px 12px;
	margin-bottom: 24px;
	box-shadow: 0 2px 8px rgba(2, 14, 29, 0.04);
}

.juggle-figure svg {
	display: block;
	width: 100%;
	height: auto;
	max-height: 240px;
}

.juggle-card rect:first-child {
	fill: #F5F8FB;
	stroke: #E2E8F0;
	stroke-width: 1.5;
}

.juggle-glyph {
	fill: none;
	stroke: #0D92F4;
	stroke-width: 2;
	stroke-linecap: round;
}

.juggle-stroke-lime {
	stroke: #8AC142;
}

.juggle-fill-blue {
	fill: #0D92F4;
}

.juggle-fill-lime {
	fill: #8AC142;
}

.juggle-thread {
	fill: none;
	stroke: #B8C6D6;
	stroke-width: 2;
	stroke-dasharray: 5 5;
	stroke-linecap: round;
}

.juggle-thread-faint {
	stroke: #D6DFE9;
	stroke-dasharray: 3 6;
}

.juggle-person {
	fill: #075DAB;
}

.juggle-outcome {
	margin-top: 24px;
	padding: 20px 24px;
	border-radius: 20px;
	background: #E0F2FE;
	border-left: 4px solid #0D92F4;
	font-size: 16px;
	line-height: 1.5;
	color: #020E1D;
}

/* ---------- Workflow strip (5 steps) ---------- */

.steps-grid.steps-grid-5 {
	grid-template-columns: repeat(5, 1fr);
}

/* ---------- Problem -> Desmos -> Solution flow ---------- */

.math-flow {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.math-flow-item {
	background: #fff;
	border-radius: 30px;
	padding: 12px 28px;
	font-size: 16px;
	font-weight: 600;
	color: #020E1D;
	box-shadow: 0 2px 8px rgba(2, 14, 29, 0.05);
}

.math-flow-arrow {
	color: #8AC142;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
}

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

.math-feature-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}

.math-feature-card {
	background: #ffffff80;
	border: 2px solid rgba(255, 255, 255, 0.7);
	border-radius: 20px;
	padding: 28px 24px;
	text-align: left;
}

.math-feature-icon {
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: #E0F2FE;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}

.math-feature-card:nth-child(even) .math-feature-icon {
	background: #EEF7E2;
}

.math-feature-card h3 {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #020E1D;
	margin-bottom: 10px;
}

.math-feature-card p {
	font-size: 15px;
	line-height: 1.5;
	color: #576A82;
	margin: 0;
}

/* ---------- Positioning comparison ---------- */

.compare-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 40px;
}

.compare-card {
	background: #ffffff80;
	border: 2px solid rgba(255, 255, 255, 0.7);
	border-radius: 20px;
	padding: 32px;
}

.compare-card.is-sinkronos {
	background: #fff;
	border-color: #8AC142;
}

.compare-card-title {
	font-size: 18px;
	font-weight: 700;
	color: #020E1D;
	margin-bottom: 20px;
}

.compare-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.compare-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
	line-height: 1.4;
	color: #576A82;
	background: #F5F8FB;
	border-radius: 12px;
	padding: 12px 16px;
}

.compare-card.is-sinkronos .compare-list li {
	color: #020E1D;
	background: #F4F9EC;
	font-weight: 500;
}

.compare-marker {
	flex: 0 0 18px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	color: #98A7B8;
	text-align: center;
}

.compare-card.is-sinkronos .compare-marker {
	color: #8AC142;
}

.compare-footnote {
	margin: 20px 0 0;
	font-size: 15px;
	font-weight: 600;
	color: #020E1D;
	text-align: center;
}

/* ---------- Who it is for ---------- */

.tutor-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

.tutor-pill {
	background: #fff;
	border-radius: 30px;
	padding: 10px 22px;
	font-size: 15px;
	font-weight: 500;
	color: #020E1D;
	box-shadow: 0 2px 8px rgba(2, 14, 29, 0.05);
}

.tutor-pill.is-primary {
	background: #075DAB;
	color: #fff;
	font-weight: 600;
}

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

.addon-page .addon-cta .addon-cta-banner {
	padding: 64px 24px;
}

.addon-page .addon-cta-banner p {
	color: #576A82;
	line-height: 1.5;
	margin-bottom: 36px;
}

/* Selector is .addon-cta-banner p.math-hero-note so it outranks the
   .addon-cta-banner p margin reset in addon.css. */
.addon-page .addon-cta-banner p.math-hero-note {
	margin: 28px auto 0;
	font-size: 14px;
}

.addon-page .addon-cta-banner .btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 260px;
	padding: 18px 44px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1;
	border-radius: 32px;
	box-shadow: 0 6px 18px rgba(13, 146, 244, 0.25);
	transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.addon-page .addon-cta-banner .btn-primary:hover {
	opacity: 1;
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(13, 146, 244, 0.32);
}

.addon-page .addon-cta-banner .btn-primary:focus-visible {
	outline: 3px solid #075DAB;
	outline-offset: 3px;
}

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

@media (max-width: 1199px) {
	.addon-page .addon-hero-content h2.section-title {
		font-size: 26px;
	}

	.math-feature-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.steps-grid.steps-grid-5 {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 991px) {
	.juggle-wrap {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 28px;
	}

	.compare-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.addon-page .addon-hero-content h2.section-title {
		font-size: 24px;
		letter-spacing: -0.2px;
	}

	.math-feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.steps-grid.steps-grid-5 {
		grid-template-columns: repeat(2, 1fr);
	}

	.juggle-wrap {
		padding: 20px;
	}

	.compare-card {
		padding: 24px;
	}

	.math-flow-item {
		padding: 10px 20px;
		font-size: 15px;
	}

	.addon-page .addon-cta .addon-cta-banner {
		padding: 44px 20px;
	}

	.addon-page .addon-cta-banner .btn-primary {
		width: 100%;
		min-width: 0;
		padding: 16px 28px;
		font-size: 16px;
	}
}

@media (max-width: 575px) {
	.addon-page .addon-hero-content h2.section-title {
		font-size: 22px;
	}

	.math-feature-grid,
	.steps-grid.steps-grid-5 {
		grid-template-columns: 1fr;
	}
}

/* Demo video: centered play/pause overlay button */
.video-player {
	position: relative;
	line-height: 0;
}

.video-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(13, 146, 244, 0.92);
	color: #fff;
	cursor: pointer;
	opacity: 1;
	transition: opacity 0.25s ease, transform 0.2s ease, background-color 0.2s ease;
}

.video-play-btn:hover,
.video-play-btn:focus-visible {
	background: #0d92f4;
	transform: translate(-50%, -50%) scale(1.06);
}

.video-play-btn svg {
	width: 38px;
	height: 38px;
	fill: currentColor;
}

/* Play icon shows when paused, pause icon when playing. */
.video-play-btn .video-pause-icon,
.video-player.is-playing .video-play-btn .video-play-icon {
	display: none;
}

.video-player.is-playing .video-play-btn .video-pause-icon {
	display: block;
}

/* Once playing, fade the overlay out until the user hovers or tabs to it. */
.video-player.is-playing .video-play-btn {
	opacity: 0;
	pointer-events: none;
}

.video-player.is-playing:hover .video-play-btn,
.video-player.is-playing .video-play-btn:focus-visible {
	opacity: 1;
	pointer-events: auto;
}

@media (max-width: 575px) {
	.video-play-btn {
		width: 60px;
		height: 60px;
	}

	.video-play-btn svg {
		width: 28px;
		height: 28px;
	}
}
