/**
 * Our own upgrade/pricing screen (view=upgrade) — fully localized, native
 * markup, same design language as the reskinned SDK pricing page.
 */

.stwc-up {
	--stwc-ink: #0f172a;
	--stwc-muted: #64748b;
	--stwc-grad: linear-gradient(135deg, #4f46e5, #7c3aed);
	max-width: 1100px;
	-webkit-font-smoothing: antialiased;
}

.stwc-up-hero {
	text-align: center;
	padding: 28px 0 10px;
}

.stwc-up-logo {
	border-radius: 14px;
	box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.4);
}

.stwc-up-hero h1 {
	font-size: 28px;
	font-weight: 800;
	color: var(--stwc-ink);
	letter-spacing: -0.02em;
	margin: 14px 0 6px;
	padding: 0;
}

.stwc-up-sub {
	display: inline-block;
	background: #eef2ff;
	color: #4338ca;
	border-radius: 999px;
	padding: 6px 16px;
	font-size: 12.5px;
	font-weight: 600;
	margin: 0;
}

.stwc-up-active {
	margin: 16px 0 !important;
}

.stwc-up-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 26px 0 22px;
	align-items: stretch;
}

@media (max-width: 1024px) {
	.stwc-up-grid {
		grid-template-columns: 1fr;
	}
}

.stwc-up-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 14px 34px -18px rgba(79, 70, 229, 0.25);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	overflow: hidden;
	padding: 22px;
	text-align: center;
	display: flex;
	flex-direction: column;
}

.stwc-up-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 24px 48px -20px rgba(79, 70, 229, 0.38);
}

.stwc-up-card--pop {
	border: 2px solid transparent;
	background: linear-gradient(#fff, #fff) padding-box, var(--stwc-grad) border-box;
	box-shadow: 0 4px 8px rgba(15, 23, 42, 0.06), 0 28px 56px -20px rgba(124, 58, 237, 0.45);
	padding-top: 0;
}

.stwc-up-badge {
	background: var(--stwc-grad);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.09em;
	padding: 7px 0;
	margin: 0 -22px 18px;
}

.stwc-up-card h2 {
	font-size: 18px;
	font-weight: 700;
	color: var(--stwc-ink);
	margin: 4px 0 10px;
	padding: 0;
}

.stwc-up-price {
	font-size: 46px;
	font-weight: 800;
	color: var(--stwc-ink);
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.stwc-up-cur {
	font-size: 20px;
	font-weight: 700;
	vertical-align: super;
	color: var(--stwc-muted);
}

.stwc-up-per {
	font-size: 13px;
	font-weight: 600;
	color: var(--stwc-muted);
	letter-spacing: 0;
	margin-left: 4px;
}

.stwc-up-cycle {
	display: inline-block;
	background: #eef2ff;
	color: #4338ca;
	border-radius: 999px;
	padding: 3px 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	margin: 10px auto 4px;
}

.stwc-up-feat {
	text-align: left;
	margin: 14px 0 18px;
	padding: 0 4px;
	flex: 1;
}

.stwc-up-feat li {
	list-style: none;
	padding: 6px 0 6px 26px;
	color: #334155;
	font-size: 13.5px;
	position: relative;
	margin: 0;
}

.stwc-up-feat li::before {
	content: '✓';
	position: absolute;
	left: 2px;
	color: #7c3aed;
	font-weight: 800;
}

.stwc-up-cta {
	display: block;
	background: var(--stwc-grad);
	color: #fff !important;
	border-radius: 12px;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.02em;
	text-decoration: none;
	padding: 13px 0;
	box-shadow: 0 10px 22px -8px rgba(124, 58, 237, 0.55);
	transition: filter 0.15s ease, transform 0.15s ease;
}

.stwc-up-cta:hover,
.stwc-up-cta:focus {
	filter: brightness(1.08);
	transform: translateY(-1px);
	color: #fff;
}

.stwc-up-secure {
	/* Payment reassurance under the buy button, on white. #94a3b8 measured
	   2.56:1 at 11.5px -- a trust line nobody can read builds no trust.
	   #64748b is the next slate already in this palette: 4.76:1. */
	color: #64748b;
	font-size: 11.5px;
	margin-top: 10px;
}

.stwc-up-guarantee {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 16px;
	text-align: center;
	padding: 18px 24px;
	margin: 0 0 30px;
}

.stwc-up-guarantee strong {
	color: #065f46;
	font-size: 15px;
}

.stwc-up-guarantee p {
	color: #047857;
	margin: 6px 0 0;
}

.stwc-up-faq-title {
	font-size: 22px;
	font-weight: 800;
	color: var(--stwc-ink);
	letter-spacing: -0.015em;
	text-align: center;
	margin: 0 0 18px;
	padding: 0;
}

.stwc-up-faq {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 40px;
}

@media (max-width: 960px) {
	.stwc-up-faq {
		grid-template-columns: 1fr;
	}
}

.stwc-up-faq-item {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px 20px;
	transition: box-shadow 0.15s ease;
}

.stwc-up-faq-item:hover {
	box-shadow: 0 12px 28px -16px rgba(79, 70, 229, 0.3);
}

.stwc-up-faq-item h3 {
	color: var(--stwc-ink);
	font-size: 14.5px;
	font-weight: 700;
	margin: 0 0 8px;
	padding: 0;
}

.stwc-up-faq-item p {
	color: var(--stwc-muted);
	line-height: 1.6;
	margin: 0;
}

/* ---- LP sections (restrained): trust points, feature cards, comparison ---- */

.stwc-up-points {
	display: flex;
	justify-content: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-top: 14px;
}

.stwc-up-points span {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--stwc-muted);
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	padding: 6px 14px;
}

.stwc-up-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin: 26px 0 6px;
}

@media (max-width: 1100px) {
	.stwc-up-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
	.stwc-up-cards { grid-template-columns: 1fr; }
}

.stwc-up-fcard {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 18px 18px 16px;
}

.stwc-up-fcard h3 {
	margin: 10px 0 6px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--stwc-ink);
}

.stwc-up-fcard p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--stwc-muted);
}

.stwc-up-fic {
	display: inline-flex;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: var(--stwc-grad);
	color: #fff;
}

.stwc-up-fic .stwc-i {
	width: 18px;
	height: 18px;
}

.stwc-up-sec {
	text-align: center;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--stwc-ink);
	margin: 34px 0 14px;
}

.stwc-up-comp-wrap {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
}

.stwc-up-comp {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.stwc-up-comp th,
.stwc-up-comp td {
	padding: 10px 16px;
	border-bottom: 1px solid #f1f5f9;
	text-align: center;
}

.stwc-up-comp td:first-child,
.stwc-up-comp th:first-child {
	text-align: left;
	color: var(--stwc-ink);
	font-weight: 500;
	width: 60%;
}

.stwc-up-comp thead th {
	font-size: 12px;
	text-transform: none;
	letter-spacing: 0.02em;
	color: var(--stwc-muted);
	background: #f8fafc;
}

.stwc-up-comp tbody tr:last-child td {
	border-bottom: 0;
}

.stwc-up-comp-pro {
	background: rgba(79, 70, 229, 0.05);
	font-weight: 700;
	color: #4f46e5;
}

.stwc-up-tick .stwc-i {
	width: 16px;
	height: 16px;
	color: #16a34a;
	vertical-align: middle;
}

.stwc-up-tick.stwc-up-comp-pro .stwc-i {
	color: #4f46e5;
}

.stwc-up-dash {
	/* The "not included" marker in the Free/Pro table. Muted is right; invisible
	   is not -- the old value measured 1.45:1 on white, below even the 3:1 floor,
	   so the cell read as empty. This is still clearly lighter than the body
	   text beside it, at 4.76:1. */
	color: #64748b;
	font-weight: 700;
}

/* ---- LP v2: gradient hero + mockup, dark dive band, closing CTA ---- */

.stwc-up-hero { display: none; } /* superseded by the v2 panel */

.stwc-up-hero2 {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 28px;
	align-items: center;
	background: var(--stwc-grad);
	border-radius: 20px;
	padding: 38px 40px;
	margin-top: 18px;
	color: #fff;
	overflow: hidden;
	position: relative;
}

.stwc-up-hero2::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(600px 300px at 85% 15%, rgba(255, 255, 255, 0.16), transparent 60%);
	pointer-events: none;
}

@media (max-width: 960px) {
	.stwc-up-hero2 { grid-template-columns: 1fr; }
	.stwc-up-hero2__mock { display: none; }
}

.stwc-up-hero2__copy { position: relative; z-index: 1; }

.stwc-up-hero2 .stwc-up-logo {
	box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.45);
	border: 2px solid rgba(255, 255, 255, 0.35);
}

.stwc-up-hero2 h1 {
	color: #fff;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 14px 0 8px;
	padding: 0;
}

.stwc-up-hero2 .stwc-up-sub {
	color: rgba(255, 255, 255, 0.88);
	background: none;
	border: 0;
	padding: 0;
	margin: 0 0 14px;
	font-size: 14.5px;
}

.stwc-up-hero2 .stwc-up-points {
	justify-content: flex-start;
	margin: 0 0 20px;
}

.stwc-up-hero2 .stwc-up-points span {
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.stwc-up-hero2 .stwc-up-points .stwc-i { width: 13px; height: 13px; }

.stwc-up-hcta {
	display: inline-block;
	background: #fff;
	color: #4f46e5;
	font-weight: 700;
	font-size: 13.5px;
	border-radius: 10px;
	padding: 11px 22px;
	text-decoration: none;
	box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.5);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stwc-up-hcta:hover {
	color: #4338ca;
	transform: translateY(-1px);
	box-shadow: 0 12px 26px -8px rgba(15, 23, 42, 0.55);
}

/* Count-screen mockup */
.stwc-up-mock {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 24px 48px -18px rgba(15, 23, 42, 0.55);
	transform: rotate(1.5deg);
}

.stwc-up-mock__scan {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 2px solid #6d28d9;
	border-radius: 10px;
	padding: 10px 12px;
	color: #6d28d9;
	font-weight: 700;
	overflow: hidden;
}

.stwc-up-mock__scan em { font-style: normal; letter-spacing: 0.06em; }
.stwc-up-mock__scan .stwc-i { width: 16px; height: 16px; }

.stwc-up-mock__beam {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 46px;
	background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.22), transparent);
	animation: stwc-up-sweep 2.4s ease-in-out infinite;
}

@keyframes stwc-up-sweep {
	0%   { left: -50px; }
	55%  { left: 100%; }
	100% { left: 100%; }
}

.stwc-up-mock__row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 4px 10px;
}

.stwc-up-mock__dot {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: linear-gradient(135deg, #e0e7ff, #ede9fe);
	flex: none;
}

.stwc-up-mock__row b { display: block; font-size: 13px; color: #0f172a; }
.stwc-up-mock__row i { font-style: normal; font-size: 11px; color: #94a3b8; }

.stwc-up-mock__qty {
	margin-left: auto;
	font-size: 19px;
	font-weight: 800;
	color: #4f46e5;
	background: #eef2ff;
	border-radius: 9px;
	padding: 5px 12px;
}

.stwc-up-mock__chips { display: flex; gap: 6px; padding: 0 4px 6px; }

.stwc-up-mock__chips span {
	font-size: 11.5px;
	font-weight: 700;
	border-radius: 999px;
	padding: 3px 10px;
}

.stwc-up-mock__chips .is-pos  { background: #dcfce7; color: #15803d; }
.stwc-up-mock__chips .is-neg  { background: #fee2e2; color: #b91c1c; }
.stwc-up-mock__chips .is-zero { background: #f1f5f9; color: #64748b; }

.stwc-up-mock__toast {
	position: absolute;
	left: 14px;
	bottom: -14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #0f172a;
	color: #fff;
	font-size: 11.5px;
	font-weight: 600;
	border-radius: 999px;
	padding: 7px 13px;
	box-shadow: 0 10px 22px -10px rgba(15, 23, 42, 0.6);
}

.stwc-up-mock__toast .stwc-i { width: 12px; height: 12px; color: #4ade80; }

/* Feature cards: lift + gradient hairline */
.stwc-up-fcard {
	position: relative;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	overflow: hidden;
}

.stwc-up-fcard::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--stwc-grad);
	opacity: 0;
	transition: opacity 0.15s ease;
}

.stwc-up-fcard:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px -14px rgba(79, 70, 229, 0.35);
}

.stwc-up-fcard:hover::before { opacity: 1; }

/* Dark dive band */
.stwc-up-dive {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	align-items: center;
	background: #0f172a;
	border-radius: 20px;
	padding: 34px 38px;
	margin: 30px 0 6px;
	color: #fff;
}

@media (max-width: 900px) {
	.stwc-up-dive { grid-template-columns: 1fr; }
}

.stwc-up-eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #a5b4fc;
	background: rgba(99, 102, 241, 0.18);
	border-radius: 999px;
	padding: 5px 12px;
}

.stwc-up-dive h2 {
	color: #fff;
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 12px 0 14px;
	padding: 0;
}

.stwc-up-dive ul { margin: 0; }

.stwc-up-dive li {
	display: flex;
	align-items: center;
	gap: 9px;
	color: #cbd5e1;
	font-size: 13.5px;
	margin: 9px 0;
}

.stwc-up-dive li .stwc-i { width: 15px; height: 15px; color: #4ade80; flex: none; }

.stwc-up-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.stwc-up-stat {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 12px;
	padding: 13px 8px;
	text-align: center;
}

.stwc-up-stat b { display: block; font-size: 19px; color: #fff; letter-spacing: -0.01em; }
.stwc-up-stat i { font-style: normal; font-size: 10.5px; color: #94a3b8; }

.stwc-up-bars {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	height: 86px;
	margin-top: 14px;
	padding: 0 6px;
}

.stwc-up-bars span {
	flex: 1;
	height: var(--h);
	border-radius: 6px 6px 2px 2px;
	background: linear-gradient(180deg, #818cf8, #6d28d9);
	animation: stwc-up-grow 0.9s ease both;
}

.stwc-up-bars span:nth-child(2) { animation-delay: 0.08s; }
.stwc-up-bars span:nth-child(3) { animation-delay: 0.16s; }
.stwc-up-bars span:nth-child(4) { animation-delay: 0.24s; }
.stwc-up-bars span:nth-child(5) { animation-delay: 0.32s; }
.stwc-up-bars span:nth-child(6) { animation-delay: 0.40s; }
.stwc-up-bars span:nth-child(7) { animation-delay: 0.48s; }

@keyframes stwc-up-grow {
	from { height: 6%; opacity: 0.4; }
	to   { height: var(--h); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.stwc-up-mock__beam, .stwc-up-bars span { animation: none; }
}

/* Closing band */
.stwc-up-band {
	text-align: center;
	background: var(--stwc-grad);
	border-radius: 20px;
	padding: 36px 24px;
	margin: 34px 0 20px;
	color: #fff;
}

.stwc-up-band h2 {
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 8px;
	padding: 0;
}

.stwc-up-band p { color: rgba(255, 255, 255, 0.88); margin: 0 0 18px; font-size: 13.5px; }

.stwc-up-band__cta {
	display: inline-block;
	background: #fff !important;
	color: #4f46e5 !important;
	max-width: 260px;
}

/* Comparison polish: zebra + heavier Pro column */
.stwc-up-comp tbody tr:nth-child(odd) td { background: #fcfcfd; }
.stwc-up-comp tbody tr:nth-child(odd) td.stwc-up-comp-pro { background: rgba(79, 70, 229, 0.07); }
.stwc-up-comp thead .stwc-up-comp-pro {
	color: #4f46e5;
	font-weight: 800;
	font-size: 12.5px;
}
