/*
 * PROTOTYPE - mobile community solar shorts page.
 * Keep throwaway until the PostHog test answers whether the format merits WordPress integration.
 */
:root {
	--ink: #102235;
	--muted: #627083;
	--primary: #022c44;
	--orange: #f16027;
	--white: #ffffff;
	--orange-gradient-direction: to right;
	--orange-gradient: linear-gradient(
		var(--orange-gradient-direction),
		#fbb040 0%,
		#f79435 30%,
		#f4782c 65%,
		#f26d29 78%,
		#f16027 100%
	);
	--orange-gradient-text: linear-gradient(
		var(--orange-gradient-direction),
		#f4782c 0%,
		#f26d29 50%,
		#f16027 100%
	);
	--orange-gradient-button: linear-gradient(
		var(--orange-gradient-direction),
		#f16027 0%,
		#f26d29 13.635%,
		#f4782c 29.5425%,
		#f79435 35.451%,
		#fbb040 45.45%,
		#fbb040 54.54%,
		#fbb040 54.54%,
		#f79435 68.175%,
		#f4782c 84.0825%,
		#f26d29 90.081%,
		#f16027 100%
	);
	--panel-pad: 22px;
	--cta-height: 104px;
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	margin: 0;
	overflow: hidden;
	background: var(--primary);
	color: var(--white);
	font-family: Arial, Helvetica, sans-serif;
}

body {
	min-width: 320px;
}

button,
input {
	font: inherit;
}

.shorts-shell {
	position: relative;
	height: 100dvh;
	min-height: 540px;
	background: var(--primary);
	overflow: hidden;
}

.shorts-header {
	position: fixed;
	inset: env(safe-area-inset-top) 0 auto;
	z-index: 15;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 18px 10px;
	pointer-events: none;
}

.shorts-logo {
	width: 198px;
	max-width: 58vw;
	height: auto;
	filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
}

.shorts-progress {
	display: flex;
	align-items: center;
	gap: 7px;
}

.shorts-progress button {
	width: 8px;
	height: 8px;
	border: 0;
	border-radius: 999px;
	padding: 0;
	background: rgba(255, 255, 255, 0.38);
	cursor: pointer;
	pointer-events: auto;
	transition: width 160ms ease, background 160ms ease;
}

.shorts-progress button.is-active {
	width: 24px;
	background: var(--orange-gradient);
}

.shorts-feed {
	height: 100%;
	overflow-y: auto;
	scroll-snap-type: y mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding-bottom: var(--cta-height);
}

.shorts-feed::-webkit-scrollbar {
	display: none;
}

.shorts-panel {
	position: relative;
	min-height: 100dvh;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: flex;
	align-items: center;
	padding: 78px var(--panel-pad) calc(var(--cta-height) + 26px);
	overflow: hidden;
}

.shorts-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(3, 18, 30, 0.05), rgba(3, 18, 30, 0.68));
	pointer-events: none;
}

.shorts-panel:nth-child(2n) {
	background: rgba(255, 255, 255, 0.04);
}

.shorts-panel__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
}

.shorts-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: none;
	letter-spacing: 0;
}

.shorts-kicker::before {
	content: "";
	width: 28px;
	height: 3px;
	border-radius: 3px;
	background: var(--orange-gradient);
}

.shorts-panel h1,
.shorts-panel h2 {
	margin: 0;
	color: var(--white);
	font-size: 2.35rem;
	line-height: 1.02;
	letter-spacing: 0;
}

.shorts-panel h2 {
	font-size: 2rem;
}

.highlight {
	padding-block-end: 0.05em;
	color: transparent;
	background: var(--orange-gradient-text);
	background-clip: text;
}

.shorts-copy {
	margin: 16px 0 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.08rem;
	line-height: 1.5;
}

.hero-art {
	width: min(82vw, 360px);
	display: block;
	margin: 28px auto 0;
	filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.22));
}

.provider-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.provider-grid li,
.step-item,
.faq-item,
.review-tile {
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.provider-grid li {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 74px;
	padding: 16px;
}

.provider-grid li:only-child {
	grid-column: 1 / -1;
}

.provider-grid img {
	max-width: 128px;
	max-height: 44px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.provider-grid img[src*="SOLSTICE.svg"] {
	filter: brightness(0) invert(1);
	max-width: 168px;
	width: 168px;
	aspect-ratio: 140 / 32;
}

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

.step-item {
	position: relative;
	padding: 16px 16px 16px 58px;
}

.step-index {
	position: absolute;
	left: 16px;
	top: 16px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--orange-gradient);
	color: #fff;
	font-weight: 800;
}

.step-item h3,
.review-tile h3 {
	margin: 0;
	color: var(--white);
	font-size: 1.02rem;
	line-height: 1.2;
}

.step-item p,
.review-tile p {
	margin: 8px 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.95rem;
	line-height: 1.42;
}

.solar-photo {
	width: 100%;
	max-height: 96px;
	margin: 12px 0 0;
	border-radius: 8px;
	object-fit: cover;
	box-shadow: 0 18px 32px rgba(0, 0, 0, 0.2);
}

.shorts-panel[data-panel-label="How it works"] h2 {
	font-size: 1.68rem;
}

.shorts-panel[data-panel-label="How it works"] .steps-list {
	gap: 8px;
	margin-top: 12px;
}

.shorts-panel[data-panel-label="How it works"] .step-item {
	padding: 12px 12px 12px 50px;
}

.shorts-panel[data-panel-label="How it works"] .step-index {
	left: 12px;
	top: 12px;
}

.review-tile {
	margin-top: 24px;
	padding: 18px;
}

.stars {
	display: block;
	margin-bottom: 10px;
	color: var(--orange);
	font-size: 1.2rem;
	letter-spacing: 0;
}

.faq-panel h2 {
	font-size: 1.7rem;
}

.faq-stepper {
	margin-top: 20px;
}

.faq-stepper__segments {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 6px;
	margin-bottom: 14px;
}

.faq-stepper__segment {
	height: 5px;
	border: 0;
	border-radius: 999px;
	padding: 0;
	background: rgba(255, 255, 255, 0.28);
	cursor: pointer;
}

.faq-stepper__segment.is-active {
	background: var(--orange-gradient);
}

.faq-stepper__card {
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
	height: clamp(286px, 43dvh, 360px);
	overflow-y: auto;
	padding: 18px;
	overscroll-behavior: contain;
}

.faq-stepper__count {
	margin-bottom: 10px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.78rem;
	font-weight: 800;
}

.faq-stepper__card h3 {
	margin: 0;
	color: var(--white);
	font-size: 1.18rem;
	line-height: 1.18;
}

.faq-stepper__card p {
	margin: 12px 0 0;
	color: rgba(255, 255, 255, 0.84);
	font-size: 0.98rem;
	line-height: 1.42;
}

.faq-stepper__controls {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 14px;
}

.faq-stepper__controls button {
	min-height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--white);
	font-weight: 800;
	cursor: pointer;
}

.faq-stepper__controls button:last-child {
	border: 0;
	background: var(--orange-gradient-button);
	background-position: 100% 0;
	background-size: 220% 100%;
}

.faq-stepper__controls button:disabled {
	cursor: default;
	opacity: 0.45;
}

.alert-panel .shorts-panel__inner {
	display: grid;
	gap: 20px;
}

.alert-visual {
	width: min(54vw, 210px);
	margin: 0 auto;
}

.fixed-cta {
	position: fixed;
	z-index: 20;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	background: #f5f5f5;
	color: var(--ink);
	box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.28);
}

.fixed-cta__label {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
	font-size: 0.88rem;
	font-weight: 800;
}

.fixed-cta__label span {
	color: transparent;
	background: var(--orange-gradient-text);
	background-clip: text;
}

.fixed-cta__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 144px;
	align-items: center;
	gap: 6px;
	min-height: 64px;
	padding: 5px;
	border: 2px solid var(--orange);
	border-radius: 999px;
	background: #fff;
}

.fixed-cta input[type="tel"] {
	width: 100%;
	min-width: 0;
	height: 52px;
	border: 0;
	border-radius: 999px;
	padding: 0 0 0 12px;
	color: var(--ink);
	font-size: 0.96rem;
	font-weight: 700;
	background: transparent;
	outline: 0;
}

.fixed-cta input[type="tel"]::placeholder {
	color: #8a9aa8;
	opacity: 1;
}

.fixed-cta button {
	height: 52px;
	border: 0;
	border-radius: 999px;
	padding: 0 10px;
	background: var(--orange-gradient-button);
	background-position: 100% 0;
	background-size: 220% 100%;
	color: var(--white);
	font-size: 0.8rem;
	font-weight: 800;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(241, 96, 39, 0.34);
}

.fixed-cta__note {
	display: none;
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 0.72rem;
	line-height: 1.3;
}

.desktop-frame {
	height: 100%;
}

@media (min-width: 740px) {
	body {
		display: grid;
		place-items: center;
		background: #dfe8ec;
	}

	.desktop-frame {
		position: relative;
		width: 390px;
		height: 844px;
		max-height: 94vh;
		border-radius: 34px;
		overflow: hidden;
		box-shadow: 0 28px 80px rgba(10, 35, 50, 0.28);
	}

	.shorts-shell {
		height: 100%;
		min-height: 0;
	}

	.shorts-feed {
		padding-bottom: 0;
	}

	.shorts-header,
	.fixed-cta {
		position: absolute;
	}

	.shorts-header {
		inset: 0 0 auto;
	}

	.fixed-cta {
		left: 0;
		right: 0;
		bottom: 0;
	}

	.shorts-panel {
		min-height: 100%;
	}
}

@media (max-width: 360px) {
	:root {
		--panel-pad: 18px;
		--cta-height: 96px;
	}

	.shorts-panel h1 {
		font-size: 2.05rem;
	}

	.shorts-panel h2 {
		font-size: 1.75rem;
	}

	.fixed-cta button {
		padding: 0 7px;
		font-size: 0.72rem;
	}

	.fixed-cta__form {
		grid-template-columns: minmax(0, 1fr) 126px;
	}

	.fixed-cta input[type="tel"] {
		padding-left: 10px;
		font-size: 0.9rem;
	}
}

@media (max-width: 340px) {
	:root {
		--cta-height: 146px;
	}

	.fixed-cta__form {
		grid-template-columns: 1fr;
		gap: 5px;
		border-radius: 24px;
	}

	.fixed-cta input[type="tel"],
	.fixed-cta button {
		width: 100%;
	}

	.fixed-cta input[type="tel"] {
		padding-inline: 14px;
		text-align: center;
	}

	.fixed-cta button {
		font-size: 0.82rem;
	}
}

@media (max-height: 800px) {
	:root {
		--cta-height: 92px;
	}

	.shorts-panel {
		padding-top: 70px;
		padding-bottom: calc(var(--cta-height) + 18px);
	}

	.hero-art {
		width: min(68vw, 280px);
		margin-top: 16px;
	}

	.solar-photo {
		max-height: 54px;
		margin-top: 8px;
	}

	.shorts-panel[data-panel-label="How it works"] h2 {
		font-size: 1.48rem;
	}

	.shorts-panel[data-panel-label="How it works"] .step-item {
		padding: 9px 10px 9px 44px;
	}

	.shorts-panel[data-panel-label="How it works"] .step-index {
		left: 10px;
		top: 10px;
		width: 26px;
		height: 26px;
	}

	.step-item p,
	.faq-stepper__card p,
	.review-tile p {
		font-size: 0.88rem;
		line-height: 1.34;
	}

	.fixed-cta {
		padding-top: 10px;
	}

	.fixed-cta__label {
		margin-bottom: 8px;
		font-size: 0.8rem;
	}

	.fixed-cta input[type="tel"],
	.fixed-cta button {
		height: 48px;
	}

	.fixed-cta__note {
		display: none;
	}
}
