/**
 * StoryQuest /app landing — slug app
 * @package StoryQuest
 */

body.page-app .it-page-area {
	background: #e7f8fe;
	padding-top: 96px;
	padding-bottom: 96px;
	overflow-x: hidden;
	position: relative;
}

body.page-app .it-page-area::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 100% 70% at 50% -15%, rgba(31, 144, 162, 0.1), transparent 55%),
		radial-gradient(ellipse 50% 45% at 100% 30%, rgba(245, 152, 49, 0.06), transparent 50%);
}

body.page-app .it-page-content {
	max-width: 100% !important;
	width: 100% !important;
	position: relative;
	z-index: 1;
}

.sq.sq-app {
	--sq-or: #f59831;
	--sq-te: #1f90a2;
	--sq-te-dk: #0e6678;
	--sq-sk: #e7f8fe;
	--sq-dk: #1a2730;
	--sq-md: #4a5568;
	--sq-muted: #6b7280;
	--sq-lt: #f0fafc;
	--sq-wh: #fff;
	--sq-fh: "Nunito", sans-serif;
	--sq-fb: "Nunito Sans", sans-serif;
	--sq-radius: 20px;
	--sq-shadow: 0 4px 24px rgba(26, 39, 48, 0.08);
	--sq-shadow-md: 0 12px 40px rgba(26, 39, 48, 0.1);
	--sq-shadow-teal: 0 16px 48px rgba(31, 144, 162, 0.15);
	--sq-gap: clamp(2.5rem, 5vw, 3.5rem);

	font-family: var(--sq-fb);
	color: var(--sq-dk);
	max-width: 1120px;
	width: 100%;
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 32px) 48px;
	box-sizing: border-box;
}

.sq-app * {
	box-sizing: border-box;
}

body.page-app .sq-app h1,
body.page-app .sq-app h2,
body.page-app .sq-app h3 {
	font-family: var(--sq-fh);
}

/* Hero */
.sq-hero {
	text-align: center;
	padding: clamp(32px, 5vw, 56px) clamp(16px, 3vw, 28px) clamp(28px, 4vw, 40px);
	margin-bottom: var(--sq-gap);
	background: var(--sq-wh);
	border-radius: var(--sq-radius);
	box-shadow: var(--sq-shadow-md);
	border: 1px solid rgba(31, 144, 162, 0.12);
}

.sq-badge {
	display: inline-block;
	background: linear-gradient(135deg, var(--sq-or) 0%, #e08820 100%);
	color: var(--sq-wh);
	font-family: var(--sq-fb);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 8px 20px;
	border-radius: 999px;
	margin-bottom: 20px;
	box-shadow: 0 4px 16px rgba(245, 152, 49, 0.3);
}

.sq-hero h1 {
	font-size: clamp(1.75rem, 4.5vw, 3rem);
	font-weight: 800;
	line-height: 1.12;
	margin: 0 0 18px;
	color: var(--sq-dk);
	letter-spacing: -0.02em;
}

.sq-hero h1 em {
	font-style: normal;
	color: var(--sq-te);
}

.sq-sub {
	font-size: clamp(16px, 2vw, 19px);
	color: var(--sq-md);
	max-width: 36em;
	margin: 0 auto 36px;
	line-height: 1.7;
}

/* Download */
.sq-dl {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	max-width: 640px;
	margin: 0 auto;
	border: 1px solid rgba(31, 144, 162, 0.2);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: var(--sq-shadow);
	background: var(--sq-wh);
}

.sq-dl-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 26px 20px;
	gap: 14px;
}

.sq-dl-col:first-child {
	border-right: 1px solid rgba(31, 144, 162, 0.15);
	background: var(--sq-wh);
}

.sq-dl-col:last-child {
	background: var(--sq-lt);
}

.sq-dl-platform {
	font-family: var(--sq-fh);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sq-muted);
}

.sq-dl-col a img {
	height: 50px;
	width: auto;
	display: block;
	transition: transform 0.2s ease;
}

.sq-dl-col a:hover img {
	transform: scale(1.03);
}

.sq-qr-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.sq-qr-ios img {
	width: 112px;
	height: 112px;
	border: 2px solid var(--sq-te);
	border-radius: 12px;
	display: block;
	object-fit: contain;
	background: #fff;
	box-shadow: 0 4px 16px rgba(31, 144, 162, 0.15);
}

.sq-qr-android img {
	width: 112px;
	height: 112px;
	border: 2px solid var(--sq-te);
	border-radius: 12px;
	display: block;
	object-fit: contain;
	background: #fff;
	box-shadow: 0 4px 16px rgba(31, 144, 162, 0.15);
}

.sq-qr-wrap p {
	font-size: 12px;
	color: var(--sq-md);
	margin: 0;
	text-align: center;
	line-height: 1.45;
}

/* Safety strip */
.sq-safety {
	background: var(--sq-sk);
	border-left: 4px solid var(--sq-te);
	border-radius: 0 16px 16px 0;
	padding: 22px 28px;
	display: flex;
	align-items: flex-start;
	gap: 18px;
	margin: 0 0 var(--sq-gap);
	box-shadow: var(--sq-shadow);
	border: 1px solid rgba(31, 144, 162, 0.12);
	border-left-width: 4px;
}

.sq-safety-ic {
	font-size: 28px;
	flex-shrink: 0;
	line-height: 1;
}

.sq-safety p {
	margin: 0;
	font-size: 15px;
	color: var(--sq-md);
	line-height: 1.65;
	flex: 1;
	min-width: min(100%, 240px);
}

.sq-safety p strong {
	color: var(--sq-dk);
	font-weight: 800;
}

.sq-safety a {
	color: var(--sq-te);
	font-weight: 700;
	text-decoration: none;
}

.sq-safety a:hover {
	text-decoration: underline;
	color: var(--sq-te-dk);
}

/* Screenshots */
.sq-screens {
	display: flex;
	gap: 16px;
	justify-content: flex-start;
	flex-wrap: nowrap;
	margin: 0 0 var(--sq-gap);
	overflow-x: auto;
	padding: 12px 4px 24px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--sq-te) transparent;
}

.sq-screens::-webkit-scrollbar {
	height: 6px;
}

.sq-screens::-webkit-scrollbar-thumb {
	background: rgba(31, 144, 162, 0.35);
	border-radius: 4px;
}

.sq-screens img {
	height: min(360px, 52vw);
	width: auto;
	border-radius: 20px;
	box-shadow: var(--sq-shadow-md);
	flex-shrink: 0;
	scroll-snap-align: start;
	border: 1px solid rgba(26, 39, 48, 0.06);
}

/* Section head */
.sq-sec-head {
	text-align: center;
	margin-bottom: clamp(28px, 4vw, 40px);
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.sq-sec-head h2 {
	font-size: clamp(1.4rem, 3vw, 2.15rem);
	font-weight: 800;
	color: var(--sq-dk);
	margin: 0 0 10px;
	line-height: 1.2;
}

.sq-sec-head p {
	font-size: 17px;
	color: var(--sq-md);
	margin: 0;
	line-height: 1.6;
}

/* Features */
.sq-feats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(16px, 2vw, 22px);
	margin-bottom: var(--sq-gap);
}

.sq-feat {
	background: var(--sq-wh);
	border: 1px solid rgba(31, 144, 162, 0.14);
	border-radius: var(--sq-radius);
	padding: clamp(22px, 3vw, 28px);
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
	box-shadow: var(--sq-shadow);
	position: relative;
	overflow: hidden;
}

.sq-feat::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--sq-te), var(--sq-or));
}

.sq-feat:hover {
	box-shadow: var(--sq-shadow-md);
	transform: translateY(-4px);
	border-color: rgba(31, 144, 162, 0.28);
}

.sq-feat-ic {
	font-size: 34px;
	margin-bottom: 12px;
	display: block;
	line-height: 1;
}

.sq-feat h3 {
	font-size: 17px;
	font-weight: 800;
	margin: 0 0 8px;
	color: var(--sq-dk);
	line-height: 1.3;
}

.sq-feat p {
	font-size: 14px;
	color: var(--sq-md);
	margin: 0;
	line-height: 1.65;
}

.sq-feat a {
	color: var(--sq-te);
	font-weight: 700;
	text-decoration: none;
}

.sq-feat a:hover {
	text-decoration: underline;
}

/* Pricing */
.sq-pricing {
	background: linear-gradient(160deg, var(--sq-dk) 0%, #243844 50%, #1a2730 100%);
	border-radius: var(--sq-radius);
	padding: clamp(40px, 6vw, 56px) clamp(24px, 4vw, 40px);
	text-align: center;
	margin-bottom: var(--sq-gap);
	box-shadow: var(--sq-shadow-md);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.sq-pricing h2 {
	font-size: clamp(1.35rem, 3vw, 2rem);
	font-weight: 800;
	color: var(--sq-wh);
	margin: 0 0 8px;
}

.sq-pricing-sub {
	color: rgba(255, 255, 255, 0.88);
	font-size: 17px;
	margin: 0 0 32px;
	line-height: 1.55;
}

.sq-pgrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	max-width: 540px;
	margin: 0 auto;
}

.sq-plan {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 16px;
	padding: 26px 22px;
	text-align: left;
}

.sq-plan.sq-plan-featured {
	background: rgba(245, 152, 49, 0.12);
	border-color: rgba(245, 152, 49, 0.35);
}

.sq-plan-label {
	font-family: var(--sq-fh);
	font-size: 11px;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.78);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin: 0 0 10px;
	display: block;
}

.sq-plan-price {
	font-family: var(--sq-fh);
	font-size: 2.25rem;
	font-weight: 800;
	color: var(--sq-or);
	line-height: 1;
	margin-bottom: 4px;
}

.sq-plan-price sup {
	font-size: 1.1rem;
	font-weight: 700;
	vertical-align: super;
}

.sq-plan-price sub {
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.75);
}

.sq-plan-annual {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.78);
	margin: 6px 0 18px;
	min-height: 1.25em;
}

.sq-plan-annual span {
	color: var(--sq-or);
	font-weight: 700;
}

.sq-plan ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sq-plan ul li {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.93);
	padding-left: 22px;
	position: relative;
	line-height: 1.55;
}

.sq-plan ul li::before {
	content: "✓";
	color: var(--sq-te);
	font-weight: 800;
	position: absolute;
	left: 0;
}

.sq-plan ul li.sq-dim {
	color: rgba(255, 255, 255, 0.48);
}

.sq-plan ul li.sq-dim::before {
	content: "–";
	color: rgba(255, 255, 255, 0.4);
}

/* CTA */
.sq-cta {
	background: linear-gradient(135deg, var(--sq-or) 0%, #e08820 100%);
	border-radius: var(--sq-radius);
	padding: clamp(40px, 6vw, 56px) clamp(24px, 4vw, 40px);
	text-align: center;
	box-shadow: 0 12px 40px rgba(245, 152, 49, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.sq-cta h2 {
	font-size: clamp(1.35rem, 3vw, 2rem);
	font-weight: 800;
	color: var(--sq-wh);
	margin: 0 0 12px;
}

.sq-cta p {
	color: rgba(255, 255, 255, 0.92);
	font-size: 17px;
	margin: 0 0 26px;
	line-height: 1.6;
}

.sq-cta-btns {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 16px;
}

.sq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--sq-dk);
	color: #fff !important;
	font-family: var(--sq-fb);
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 16px 36px;
	border-radius: 12px;
	text-decoration: none !important;
	transition: background 0.2s ease, transform 0.15s ease;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.sq-btn:hover {
	background: #0f1a1f;
	color: #fff !important;
	transform: translateY(-2px);
}

.sq-btn--outline {
	background: transparent;
	color: #fff !important;
	border: 2px solid rgba(255, 255, 255, 0.85);
	box-shadow: none;
}

.sq-btn--outline:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff !important;
}

/*
 * style.css forces .it-page-content p and h2/h3 with !important — dark text
 * bleeds onto .sq-pricing / .sq-cta (dark backgrounds). Reset with page scope.
 */
body.page-app .it-page-content .sq-pricing > h2 {
	color: #ffffff !important;
}

body.page-app .it-page-content .sq-pricing > p.sq-pricing-sub {
	color: rgba(255, 255, 255, 0.92) !important;
}

body.page-app .it-page-content .sq-pricing .sq-plan-label {
	color: rgba(255, 255, 255, 0.82) !important;
}

body.page-app .it-page-content .sq-pricing .sq-plan-price {
	color: #ffb84d !important;
}

body.page-app .it-page-content .sq-pricing .sq-plan-price sub {
	color: rgba(255, 255, 255, 0.78) !important;
}

body.page-app .it-page-content .sq-pricing .sq-plan-annual {
	color: rgba(255, 255, 255, 0.82) !important;
}

body.page-app .it-page-content .sq-pricing .sq-plan ul li {
	color: rgba(255, 255, 255, 0.95) !important;
}

body.page-app .it-page-content .sq-pricing .sq-plan ul li.sq-dim {
	color: rgba(255, 255, 255, 0.5) !important;
}

body.page-app .it-page-content .sq-cta > h2 {
	color: #ffffff !important;
}

body.page-app .it-page-content .sq-cta > p {
	color: rgba(255, 255, 255, 0.96) !important;
}

/* Light safety strip: keep body copy clearly dark-on-light */
body.page-app .it-page-content .sq-safety p {
	color: #4a5568 !important;
}

body.page-app .it-page-content .sq-safety p strong {
	color: #1a2730 !important;
}

body.page-app .it-page-content .sq-safety a {
	color: #0e6678 !important;
}

/* White feature cards: headings must stay dark (theme may force teal h3) */
body.page-app .it-page-content .sq-feat h3 {
	color: #1a2730 !important;
}

body.page-app .it-page-content .sq-feat p {
	color: #4a5568 !important;
}

@media (max-width: 900px) {
	.sq-feats {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	body.page-app .it-page-area {
		padding-top: 88px;
		padding-bottom: 64px;
	}

	.sq-dl {
		grid-template-columns: 1fr;
		max-width: 360px;
	}

	.sq-dl-col:first-child {
		border-right: none;
		border-bottom: 1px solid rgba(31, 144, 162, 0.15);
	}

	.sq-feats {
		grid-template-columns: 1fr;
	}

	.sq-pgrid {
		grid-template-columns: 1fr;
	}

	.sq-screens img {
		height: min(300px, 70vw);
	}
}
