/**
 * StoryQuest Beta page — professional layout, brand-aligned (slug beta)
 * @package StoryQuest
 */

/* ─── Page shell: use full content width inside theme container ─── */
body.page-beta .it-page-area {
	background: #e7f8fe;
	padding-top: 96px;
	padding-bottom: 96px;
	overflow-x: hidden;
	position: relative;
}

body.page-beta .it-page-area::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 120% 80% at 50% -20%, rgba(31, 144, 162, 0.08), transparent 50%),
		radial-gradient(ellipse 60% 40% at 100% 50%, rgba(245, 152, 49, 0.04), transparent 45%);
}

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

body.page-beta .it-page-content > .sqb,
body.page-beta .it-page-content .sqb {
	margin-left: auto;
	margin-right: auto;
}

/* ─── Design tokens ─── */
.sqb.sqb-pro,
.sqb-pro {
	--sqb-or: #f59831;
	--sqb-te: #1f90a2;
	--sqb-te-dk: #0e6678;
	--sqb-sk: #e7f8fe;
	--sqb-dk: #1a2730;
	--sqb-md: #4a5568;
	--sqb-muted: #6b7280;
	--sqb-lt: #f0fafc;
	--sqb-card: #ffffff;
	--sqb-wh: #fff;
	--sqb-fh: "Nunito", sans-serif;
	--sqb-fb: "Nunito Sans", sans-serif;
	--sqb-radius: 20px;
	--sqb-radius-lg: 24px;
	--sqb-shadow: 0 4px 24px rgba(26, 39, 48, 0.07);
	--sqb-shadow-md: 0 12px 40px rgba(26, 39, 48, 0.1);
	--sqb-shadow-teal: 0 16px 48px rgba(31, 144, 162, 0.18);
	--sqb-section: clamp(2.5rem, 5vw, 3.5rem);

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

.sqb-pro * {
	box-sizing: border-box;
}

/* Reset theme bleed-through inside beta module */
body.page-beta .sqb-pro h1,
body.page-beta .sqb-pro h2,
body.page-beta .sqb-pro h4 {
	font-family: var(--sqb-fh);
}

body.page-beta .sqb-pro p {
	font-family: var(--sqb-fb);
}

/* ─── Hero banner ─── */
.sqb-banner {
	background: linear-gradient(145deg, var(--sqb-te) 0%, var(--sqb-te-dk) 55%, #0a4a56 100%);
	border-radius: var(--sqb-radius-lg);
	padding: clamp(28px, 4vw, 48px);
	margin: 0 0 var(--sqb-section);
	box-shadow: var(--sqb-shadow-teal);
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.sqb-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 90% 70% at 100% 0%, rgba(245, 152, 49, 0.15), transparent 55%),
		radial-gradient(ellipse 50% 50% at 0% 100%, rgba(255, 255, 255, 0.06), transparent 50%);
	pointer-events: none;
}

.sqb-banner-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr minmax(280px, 420px);
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
}

.sqb-banner-copy {
	min-width: 0;
}

.sqb-banner-kicker {
	display: inline-block;
	font-family: var(--sqb-fb);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.95);
	margin: 0 0 14px;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.sqb-banner-copy h2 {
	font-family: var(--sqb-fh);
	font-size: clamp(1.55rem, 3.4vw, 2.15rem);
	font-weight: 800;
	color: var(--sqb-wh);
	margin: 0 0 16px;
	line-height: 1.18;
	letter-spacing: -0.02em;
}

.sqb-banner-copy h2 em {
	font-style: normal;
	color: #ffd699;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.sqb-banner-lead {
	color: rgba(255, 255, 255, 0.94);
	font-size: clamp(15px, 1.65vw, 18px);
	margin: 0;
	line-height: 1.65;
	max-width: 38em;
}

.sqb-banner-highlights {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 22px 0 0;
	padding: 0;
}

.sqb-banner-hl {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--sqb-fb);
	font-size: 15px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.96);
	line-height: 1.4;
}

.sqb-banner-hl::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sqb-or);
	flex-shrink: 0;
	box-shadow: 0 0 0 3px rgba(245, 152, 49, 0.35);
}

.sqb-banner-panel {
	min-width: 0;
	justify-self: end;
	width: 100%;
	max-width: 400px;
	background: #fff;
	border-radius: 22px;
	padding: clamp(22px, 3vw, 28px) clamp(18px, 2.5vw, 24px) clamp(26px, 3vw, 30px);
	box-shadow:
		0 24px 56px rgba(0, 0, 0, 0.22),
		0 0 0 1px rgba(255, 255, 255, 0.08) inset;
	position: relative;
}

.sqb-banner-panel-title {
	font-family: var(--sqb-fh);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sqb-dk);
	margin: 0 0 6px;
	text-align: center;
}

.sqb-banner-panel-hint {
	font-family: var(--sqb-fb);
	font-size: 13px;
	color: var(--sqb-muted);
	margin: 0 0 18px;
	text-align: center;
	line-height: 1.45;
}

.sqb-banner-aside {
	position: absolute;
	top: clamp(16px, 3vw, 28px);
	right: clamp(16px, 3vw, 32px);
	z-index: 2;
	pointer-events: none;
	opacity: 0.9;
}

.sqb-banner-deco {
	font-size: clamp(40px, 5vw, 56px);
	line-height: 1;
	color: rgba(255, 255, 255, 0.2);
	display: block;
}

/* Download block (on teal banner — legacy; panel variant below) */
.sqb-dl {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	background: rgba(0, 0, 0, 0.15);
	backdrop-filter: blur(8px);
}

.sqb-banner-panel .sqb-dl {
	border: 1px solid rgba(31, 144, 162, 0.2);
	box-shadow: 0 6px 20px rgba(26, 39, 48, 0.08);
	background: var(--sqb-lt);
	backdrop-filter: none;
}

.sqb-dl-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 16px;
	gap: 12px;
	background: rgba(255, 255, 255, 0.12);
}

.sqb-banner-panel .sqb-dl-col {
	background: #f8fcfd;
}

.sqb-banner-panel .sqb-dl-col:first-child {
	background: #fff;
}

.sqb-dl-col:first-child {
	border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.sqb-banner-panel .sqb-dl-col:first-child {
	border-right: 1px solid rgba(31, 144, 162, 0.15);
}

.sqb-dl-platform {
	font-family: var(--sqb-fh);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.sqb-banner-panel .sqb-dl-platform {
	color: #64748b;
}

.sqb-dl-col a img {
	height: 44px;
	width: auto;
	display: block;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.sqb-dl-col a:hover img {
	transform: scale(1.04);
	opacity: 0.95;
}

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

.sqb-qr-wrap img {
	width: 88px;
	height: 88px;
	border-radius: 10px;
	display: block;
	object-fit: contain;
	background: #fff;
}

.sqb-banner-panel .sqb-qr-wrap img {
	width: 104px;
	height: 104px;
}

.sqb-qr-ios img {
	border: 2px solid rgba(255, 255, 255, 0.5);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.sqb-banner-panel .sqb-qr-ios img {
	border: 2px solid rgba(31, 144, 162, 0.35);
	box-shadow: 0 4px 14px rgba(26, 39, 48, 0.1);
}

.sqb-qr-android img {
	opacity: 0.22;
	filter: grayscale(1);
	border: 1px dashed rgba(255, 255, 255, 0.3);
}

.sqb-banner-panel .sqb-qr-android img {
	border: 1px dashed #cbd5e1;
	opacity: 0.2;
}

.sqb-store-wrap {
	height: 44px;
	display: flex;
	align-items: center;
}

.sqb-store-wrap .sq-store-img {
	height: 44px;
	width: auto;
	filter: grayscale(1) brightness(2.2);
	opacity: 0.32;
}

.sqb-banner-panel .sqb-store-wrap .sq-store-img {
	filter: grayscale(1);
	opacity: 0.38;
}

.sqb-qr-wrap p {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.65);
	margin: 0;
	text-align: center;
	line-height: 1.4;
}

.sqb-banner-panel .sqb-qr-wrap p {
	color: #475569;
	font-size: 12px;
	font-weight: 600;
}

.sqb-coming-badge {
	background: rgba(255, 255, 255, 0.18);
	color: rgba(255, 255, 255, 0.95);
	font-family: var(--sqb-fb);
	font-size: 10px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 999px;
	letter-spacing: 0.04em;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.sqb-banner-panel .sqb-coming-badge {
	background: var(--sqb-lt);
	color: var(--sqb-te-dk);
	border: 1px solid rgba(31, 144, 162, 0.25);
}

/* ─── Welcome section (card on page tint) ─── */
.sqb-hero {
	text-align: center;
	padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 40px);
	margin: 0 auto var(--sqb-section);
	max-width: 720px;
	background: var(--sqb-card);
	border-radius: var(--sqb-radius);
	box-shadow: var(--sqb-shadow-md);
	border: 1px solid rgba(31, 144, 162, 0.12);
}

.sqb-hero h1 {
	font-family: var(--sqb-fh);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	margin: 0 0 16px;
	color: var(--sqb-dk);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

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

.sqb-hero p {
	font-size: 17px;
	color: var(--sqb-md);
	margin: 0;
	line-height: 1.7;
}

/* ─── Feedback ─── */
.sqb-feedback {
	border-radius: var(--sqb-radius);
	padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 40px);
	text-align: center;
	margin: 0 auto var(--sqb-section);
	max-width: 800px;
	background: var(--sqb-card);
	box-shadow: var(--sqb-shadow-md);
	border: 1px solid rgba(31, 144, 162, 0.14);
}

.sqb-feedback h2 {
	font-family: var(--sqb-fh);
	font-size: clamp(1.35rem, 2.8vw, 1.75rem);
	font-weight: 800;
	color: var(--sqb-dk);
	margin: 0 0 12px;
	line-height: 1.25;
}

.sqb-feedback h2 span {
	color: var(--sqb-te);
}

.sqb-feedback > p:first-of-type {
	font-size: 16px;
	color: var(--sqb-md);
	max-width: 34em;
	margin: 0 auto 24px;
	line-height: 1.7;
}

.sqb-tags {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.sqb-tag {
	background: var(--sqb-lt);
	color: var(--sqb-te);
	font-family: var(--sqb-fb);
	font-size: 13px;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid rgba(31, 144, 162, 0.22);
}

.sqb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--sqb-or);
	color: #fff !important;
	font-family: var(--sqb-fb);
	font-weight: 800;
	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.2s ease;
	box-shadow: 0 4px 20px rgba(245, 152, 49, 0.35);
	border: none;
	cursor: pointer;
}

.sqb-btn:hover {
	background: #e08820;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(245, 152, 49, 0.42);
}

.sqb-btn:focus-visible {
	outline: 3px solid var(--sqb-te);
	outline-offset: 3px;
}

.sqb-note {
	font-size: 13px;
	color: var(--sqb-muted);
	margin: 20px 0 0;
}

/* ─── Safety strip ─── */
.sqb-safety {
	background: linear-gradient(90deg, var(--sqb-dk) 0%, #243844 100%);
	border-radius: 16px;
	padding: 20px 28px;
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 var(--sqb-section);
	flex-wrap: wrap;
	box-shadow: var(--sqb-shadow-md);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.sqb-safety p {
	margin: 0;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.94);
	line-height: 1.65;
	flex: 1;
	min-width: min(100%, 280px);
}

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

.sqb-safety a {
	color: var(--sqb-or);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.sqb-safety a:hover {
	text-decoration: underline;
	color: #ffb366;
}

/* ─── Feature cards ─── */
.sqb-recap {
	margin: 0 0 var(--sqb-section);
}

.sqb-sec-head {
	text-align: center;
	margin-bottom: clamp(24px, 4vw, 36px);
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}

.sqb-sec-head h2 {
	font-family: var(--sqb-fh);
	font-size: clamp(1.35rem, 2.8vw, 1.85rem);
	font-weight: 800;
	color: var(--sqb-te);
	margin: 0 0 10px;
}

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

.sqb-rgrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(16px, 2.5vw, 24px);
}

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

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

.sqb-rcard::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--sqb-te), var(--sqb-or));
	border-radius: var(--sqb-radius) var(--sqb-radius) 0 0;
}

.sqb-rcard h4 {
	font-family: var(--sqb-fh);
	font-size: 17px;
	font-weight: 800;
	margin: 0 0 10px;
	color: var(--sqb-dk);
	line-height: 1.3;
}

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

/* ─── Roadmap ─── */
.sqb-next {
	background: var(--sqb-card);
	border: 1px solid rgba(31, 144, 162, 0.14);
	border-radius: var(--sqb-radius);
	padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 40px);
	box-shadow: var(--sqb-shadow-md);
	max-width: 800px;
	margin: 0 auto;
}

.sqb-next h2 {
	font-family: var(--sqb-fh);
	font-size: clamp(1.25rem, 2.5vw, 1.65rem);
	font-weight: 800;
	color: var(--sqb-dk);
	margin: 0 0 24px;
	text-align: center;
}

.sqb-next ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.sqb-next li {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	padding: 20px 0;
	border-bottom: 1px solid rgba(26, 39, 48, 0.08);
}

.sqb-next li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.sqb-next li:first-child {
	padding-top: 0;
}

.sqb-next li .sqb-si {
	font-size: 24px;
	flex-shrink: 0;
	margin-top: 2px;
	line-height: 1;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sqb-lt);
	border-radius: 12px;
	border: 1px solid rgba(31, 144, 162, 0.15);
}

.sqb-next li div strong {
	font-family: var(--sqb-fh);
	font-size: 16px;
	color: var(--sqb-dk);
	display: block;
	margin-bottom: 4px;
	font-weight: 800;
}

.sqb-next li div span {
	font-size: 15px;
	color: var(--sqb-md);
	line-height: 1.6;
}

/* Theme injects orange ● on .it-page-content ul li — hide on roadmap */
body.page-beta .it-page-content .sqb-next ul li::before {
	content: none !important;
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	position: absolute !important;
	clip: rect(0, 0, 0, 0) !important;
}

/*
 * style.css: .it-page-content p / h2 use !important (#1A2730, teal h2) —
 * unreadable on teal banner + dark safety strip. Force light-on-dark here.
 */
body.page-beta .it-page-content .sqb-banner .sqb-banner-kicker {
	color: rgba(255, 255, 255, 0.98) !important;
}

body.page-beta .it-page-content .sqb-banner .sqb-banner-copy h2 {
	color: #ffffff !important;
}

body.page-beta .it-page-content .sqb-banner .sqb-banner-copy h2 em {
	color: #ffe8c4 !important;
}

body.page-beta .it-page-content .sqb-banner .sqb-banner-lead {
	color: rgba(255, 255, 255, 0.95) !important;
}

body.page-beta .it-page-content .sqb-banner .sqb-banner-hl {
	color: rgba(255, 255, 255, 0.98) !important;
}

body.page-beta .it-page-content .sqb-safety p {
	color: rgba(255, 255, 255, 0.96) !important;
}

body.page-beta .it-page-content .sqb-safety p strong {
	color: #ffffff !important;
}

body.page-beta .it-page-content .sqb-safety a {
	color: #ffd699 !important;
}

body.page-beta .it-page-content .sqb-safety a:hover {
	color: #ffffff !important;
}

/* ─── Responsive ─── */
@media (max-width: 992px) {
	.sqb-banner-inner {
		grid-template-columns: 1fr;
	}

	.sqb-banner-panel {
		justify-self: stretch;
		max-width: none;
	}

	.sqb-banner-aside {
		display: none;
	}

	.sqb-rgrid {
		grid-template-columns: 1fr;
	}
}

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

	.sqb-dl {
		grid-template-columns: 1fr;
	}

	.sqb-dl-col:first-child {
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	}

	.sqb-safety {
		flex-direction: column;
		align-items: flex-start;
	}

	.sqb-safety a {
		white-space: normal;
	}
}
