/**
 * SEOSpine pricing page — [seospine_pricing]
 * Scoped under .spp so it sits safely inside any theme.
 */

.spp {
	--spp-ink: #0b1220;
	--spp-text: #1d2939;
	--spp-muted: #5b6474;
	--spp-line: #e4e8ef;
	--spp-soft: #f5f8fc;
	--spp-blue: #1f6feb;
	--spp-blue-dark: #1553c0;
	--spp-blue-soft: #eaf2ff;
	--spp-good: #0f9d58;
	--spp-radius: 18px;
	--spp-shadow: 0 1px 2px rgba(11, 18, 32, .05), 0 8px 24px rgba(11, 18, 32, .06);

	position: relative;
	padding: 8px 0 64px;
	color: var(--spp-text);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

/* Break out of narrow theme content columns (e.g. block themes' 645px
   column), centred on the viewport. Extra specificity beats the
   constrained-layout "margin: auto !important" rule. */
div.spp[data-spp] {
	width: min(1180px, calc(100vw - 40px));
	max-width: none !important;
	margin-left: calc(50% - min(590px, 50vw - 20px)) !important;
	margin-right: 0 !important;
}

@media (max-width: 760px) {
	div.spp[data-spp] {
		width: calc(100vw - 32px);
		margin-left: calc(50% - 50vw + 16px) !important;
	}
}

.spp *, .spp *::before, .spp *::after { box-sizing: border-box; }
.spp [hidden] { display: none !important; }
.spp h1, .spp h2, .spp h3 { color: var(--spp-ink); letter-spacing: -.02em; margin: 0; line-height: 1.2; }
.spp p { margin: 0; }
.spp ul { margin: 0; padding: 0; list-style: none; }
.spp a { text-decoration: none; }
.spp button { font: inherit; }
.spp .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Alerts ---------- */

.spp-alert { padding: 14px 18px; border-radius: 12px; margin: 0 0 24px; font-size: 15px; }
.spp-alert-ok { background: #e9f8ef; color: #0b5d34; border: 1px solid #b7e6c9; }
.spp-alert-bad { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }

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

.spp-hero { text-align: center; padding: 40px 0 32px; }
.spp-eyebrow {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--spp-blue-soft);
	color: var(--spp-blue);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.spp .spp-title { font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin: 16px auto 14px; max-width: 18ch; }
.spp .spp-lead { font-size: 18px; color: var(--spp-muted); max-width: 64ch; margin: 0 auto; }

.spp-switches { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-top: 32px; }

.spp-seg, .spp-billing {
	display: inline-flex;
	padding: 4px;
	gap: 4px;
	background: #eef1f6;
	border-radius: 14px;
}
.spp-seg-btn, .spp-bill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--spp-muted);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s, color .15s, box-shadow .15s;
}
.spp-seg-btn:hover, .spp-bill:hover { color: var(--spp-ink); }
.spp-seg-btn.is-active, .spp-bill.is-active { background: #fff; color: var(--spp-ink); box-shadow: 0 1px 3px rgba(11, 18, 32, .12); }
.spp-seg-btn:focus-visible, .spp-bill:focus-visible { outline: 2px solid var(--spp-blue); outline-offset: 2px; }
.spp-save { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #e3f6ea; color: var(--spp-good); font-weight: 700; }

/* ---------- Plan cards ---------- */

.spp .spp-for { text-align: center; color: var(--spp-muted); margin: 0 auto 28px; max-width: 70ch; }

.spp-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: stretch; max-width: 940px; margin: 0 auto; }

.spp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 32px;
	background: #fff;
	border: 1px solid var(--spp-line);
	border-radius: var(--spp-radius);
	box-shadow: var(--spp-shadow);
}
.spp-card-featured {
	background: linear-gradient(180deg, #0f1a33 0%, #0b1220 100%);
	border-color: #0b1220;
	color: #d6dcea;
	box-shadow: 0 20px 50px rgba(15, 26, 51, .28);
}
.spp-card-featured h2 { color: #fff; }
.spp-ribbon {
	position: absolute;
	top: -13px;
	left: 32px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--spp-blue);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.spp-card-head h2 { font-size: 22px; font-weight: 750; }
.spp-card-head p { margin-top: 6px; color: var(--spp-muted); font-size: 15px; }
.spp-card-featured .spp-card-head p { color: #a9b3c7; }

.spp-price { display: flex; align-items: baseline; gap: 6px; }
.spp-amount { font-size: 52px; font-weight: 800; letter-spacing: -.035em; color: var(--spp-ink); line-height: 1; }
.spp-card-featured .spp-amount { color: #fff; }
.spp-per { color: var(--spp-muted); font-size: 16px; }
.spp-card-featured .spp-per { color: #a9b3c7; }
.spp .spp-billed { font-size: 14px; color: #a9b3c7; margin-top: -10px; }

.spp-btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: 50px;
	padding: 12px 20px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s, transform .05s, border-color .15s;
	border: 1px solid transparent;
}
.spp-btn:active { transform: translateY(1px); }
.spp .spp-btn-primary { background: var(--spp-blue); color: #fff; }
.spp .spp-btn-primary:hover { background: var(--spp-blue-dark); color: #fff; }
.spp .spp-btn-ghost { background: #fff; color: var(--spp-ink); border-color: #cfd6e2; }
.spp .spp-btn-ghost:hover { border-color: var(--spp-ink); color: var(--spp-ink); }
.spp-btn:focus-visible { outline: 3px solid #9cc2ff; outline-offset: 2px; }

.spp-list { display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.spp-list li { position: relative; padding-left: 28px; }
.spp-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--spp-blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3L14.5 7' fill='none' stroke='%231f6feb' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.spp-card-featured .spp-list li { color: #e5e9f2; }
.spp-card-featured .spp-list li::before { background-color: rgba(31, 111, 235, .25); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3L14.5 7' fill='none' stroke='%237fb0ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.spp-list-strong li:first-child { font-weight: 700; color: #fff; }

.spp-limits {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	max-width: 940px;
	margin: 24px auto 0;
	background: #fff;
	border: 1px solid var(--spp-line);
	border-radius: 14px;
	overflow: hidden;
}
.spp-limits div { padding: 16px 12px; text-align: center; border-right: 1px solid var(--spp-line); }
.spp-limits div:last-child { border-right: 0; }
.spp-limits b { display: block; font-weight: 800; font-size: 22px; color: var(--spp-ink); letter-spacing: -.02em; }
.spp-limits span { font-size: 13px; color: var(--spp-muted); }

/* ---------- Services ---------- */

.spp-services, .spp-compare, .spp-faq, .spp-order { margin-top: 88px; }
.spp .spp-h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; text-align: center; }
.spp-sub { text-align: center; color: var(--spp-muted); max-width: 64ch; margin: 12px auto 0 !important; }

.spp-service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.spp-service { padding: 24px; background: #fff; border: 1px solid var(--spp-line); border-radius: 16px; }
.spp-service-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--spp-ink); color: #7fb0ff; margin-bottom: 16px; }
.spp .spp-service h3 { font-size: 17px; font-weight: 750; margin-bottom: 6px; }
.spp-service p { font-size: 14.5px; color: var(--spp-muted); }

/* ---------- Comparison ---------- */

.spp-table-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--spp-line); border-radius: var(--spp-radius); background: #fff; box-shadow: var(--spp-shadow); }
.spp-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; margin: 0; border: 0; }
.spp-table th, .spp-table td { padding: 13px 16px; border: 0; border-bottom: 1px solid #eef1f5; text-align: center; vertical-align: middle; background: transparent; }
.spp-table tbody th[scope="row"] { text-align: left; font-weight: 500; color: var(--spp-text); }
.spp-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #fff;
	font-size: 15px;
	font-weight: 750;
	color: var(--spp-ink);
	border-bottom: 1px solid var(--spp-line);
	padding-top: 20px;
	padding-bottom: 16px;
}
.spp-th-price { display: block; font-size: 13px; font-weight: 500; color: var(--spp-muted); margin-top: 2px; }
.spp-table .spp-section th {
	text-align: left;
	background: var(--spp-soft);
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--spp-ink);
	padding-top: 12px;
	padding-bottom: 12px;
}
.spp-table .is-selected { background: #f3f7ff; }
.spp-table thead th.is-selected { background: #f3f7ff; color: var(--spp-blue); box-shadow: inset 0 3px 0 var(--spp-blue); }
.spp-yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e6f0ff; color: var(--spp-blue); }
.spp-no { color: #b4bccb; }
.spp-val { font-weight: 700; color: var(--spp-ink); }

/* ---------- FAQ ---------- */

.spp-faq-list { max-width: 820px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 12px; }
.spp-faq-item { background: #fff; border: 1px solid var(--spp-line); border-radius: 14px; padding: 0 22px; }
.spp-faq-item summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 28px 18px 0;
	position: relative;
	font-weight: 700;
	color: var(--spp-ink);
	font-size: 16.5px;
}
.spp-faq-item summary::-webkit-details-marker { display: none; }
.spp-faq-item summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; font-weight: 400; color: var(--spp-blue); }
.spp-faq-item[open] summary::after { content: "–"; }
.spp-faq-item p { padding: 0 0 20px; color: var(--spp-muted); }

/* ---------- Order ---------- */

.spp-order {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: 40px;
	padding: 44px;
	border-radius: 24px;
	background: linear-gradient(135deg, #0b1220 0%, #13254a 100%);
	color: #d6dcea;
	scroll-margin-top: 90px;
}
.spp-order .spp-h2 { color: #fff; text-align: left; }
.spp-order .spp-sub { text-align: left; margin-left: 0 !important; color: #a9b3c7; }
.spp-steps { margin-top: 28px !important; display: flex; flex-direction: column; gap: 14px; }
.spp-steps li { display: flex; align-items: center; gap: 12px; color: #e5e9f2; }
.spp-steps b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--spp-blue); color: #fff; font-size: 14px; flex: 0 0 30px; }

.spp-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	padding: 24px;
	background: #fff;
	border-radius: 16px;
	color: var(--spp-text);
	margin: 0;
}
.spp-field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 14px; font-weight: 600; color: var(--spp-ink); }
.spp-field em { font-style: normal; font-weight: 400; color: var(--spp-muted); }
.spp-field-wide { grid-column: 1 / -1; }
.spp-form input, .spp-form select, .spp-form textarea {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 11px 13px;
	border: 1px solid #cfd6e2;
	border-radius: 10px;
	background: #fff;
	color: var(--spp-ink);
	font: inherit;
	font-weight: 400;
	font-size: 15px;
	box-shadow: none;
}
.spp-form input:focus, .spp-form select:focus, .spp-form textarea:focus { outline: 0; border-color: var(--spp-blue); box-shadow: 0 0 0 3px rgba(31, 111, 235, .18); }
.spp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.spp-flash { animation: spp-flash 1.2s ease; }
@keyframes spp-flash { 0% { box-shadow: 0 0 0 0 rgba(31, 111, 235, .6); } 100% { box-shadow: 0 0 0 16px rgba(31, 111, 235, 0); } }

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

@media (max-width: 960px) {
	.spp-service-grid { grid-template-columns: 1fr 1fr; }
	.spp-order { grid-template-columns: 1fr; padding: 28px; }
}

@media (max-width: 760px) {
	.spp { padding: 0 0 48px; }
	.spp-hero { padding-top: 24px; }
	.spp-lead { font-size: 16px; }
	.spp-switches { flex-direction: column; }
	.spp-seg { width: 100%; }
	.spp-seg-btn { flex: 1; justify-content: center; padding: 10px 8px; font-size: 13.5px; white-space: normal; text-align: center; }
	.spp-cards { grid-template-columns: 1fr; gap: 28px; }
	.spp-card { padding: 26px 22px; }
	.spp-amount { font-size: 44px; }
	.spp-limits { grid-template-columns: repeat(2, 1fr); }
	.spp-limits div { border-bottom: 1px solid var(--spp-line); }
	.spp-service-grid { grid-template-columns: 1fr; }
	.spp-services, .spp-compare, .spp-faq, .spp-order { margin-top: 64px; }
	.spp-form { grid-template-columns: 1fr; padding: 18px; }
	.spp-order { padding: 22px 18px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.spp * { transition: none !important; animation: none !important; }
}
