/* Solution & Paper Order Buttons: front end */

.sob,
.sob-modal {
	--sob-solution: #2447c5;
	--sob-paper: #0e7c66;
	--sob-ink: #1b2236;
	--sob-muted: #586079;
	--sob-line: #dde1ea;
}

.sob,
.sob *,
.sob *::before,
.sob *::after,
.sob-modal,
.sob-modal *,
.sob-modal *::before,
.sob-modal *::after {
	box-sizing: border-box;
}

/* ---------- Layout ---------- */

.sob {
	display: grid;
	gap: 18px;
	margin: 2.75em 0 1.5em;
	clear: both;
	font-size: 16px;
	line-height: 1.5;
	color: var(--sob-ink);
}

@media (min-width: 760px) {
	.sob {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		align-items: stretch;
	}
	.sob > .sob-notice,
	.sob > .sob-support,
	.sob > section:only-of-type {
		grid-column: 1 / -1;
	}
}

.sob .sob-card {
	position: relative;
	margin: 0;
	padding: 24px;
	display: flex;
	gap: 22px;
	align-items: center;
}

.sob .sob-card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
}

.sob .sob-card h3 {
	margin: 0 0 6px;
	padding: 0;
	font-size: 1.22rem;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.005em;
	color: var(--sob-ink);
}

.sob .sob-card p {
	margin: 0;
	font-size: 0.97rem;
	color: var(--sob-muted);
}

.sob .sob-card--solution {
	border-radius: 22px;
	background: #f4f6fd;
	background: color-mix(in srgb, var(--sob-solution) 6%, #fff);
	border: 1px solid #d5dcf3;
	border: 1px solid color-mix(in srgb, var(--sob-solution) 20%, #fff);
}

.sob .sob-card--paper {
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--sob-line);
	border-left: 5px solid var(--sob-paper);
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

@media (max-width: 480px) {
	.sob .sob-card--solution {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---------- The blurred document ---------- */

.sob .sob-doc {
	position: relative;
	flex: 0 0 auto;
	width: 112px;
	height: 142px;
	margin: 6px 10px 10px 8px;
}

.sob .sob-sheet {
	position: absolute;
	inset: 0;
	display: block;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(20, 28, 50, 0.14), 0 8px 18px rgba(20, 28, 50, 0.1);
}

.sob .sob-sheet--back {
	background: #e9edf7;
	transform: rotate(-7deg) translate(-6px, 2px);
	transition: transform 0.35s ease;
}

.sob .sob-sheet--mid {
	background: #f6f8fc;
	transform: rotate(4deg) translate(5px, 0);
	transition: transform 0.35s ease;
}

.sob .sob-sheet--front {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 13px;
	overflow: hidden;
	transform: rotate(-1deg);
}

.sob .sob-sheet--front::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.85) 50%, transparent 62%);
	transform: translateX(-130%);
	pointer-events: none;
}

.sob .sob-line-row {
	display: flex;
	gap: 4px;
}

.sob .sob-line-row i {
	display: block;
	height: 6px;
	border-radius: 3px;
	background: #9aa5c0;
	filter: blur(2.4px);
}

.sob .sob-line-row--title i {
	height: 10px;
	background: #5b6788;
}

.sob .sob-figure {
	display: block;
	height: 26px;
	border-radius: 4px;
	background: #bcc6de;
	filter: blur(3px);
}

.sob .sob-lock {
	position: absolute;
	right: -12px;
	bottom: -12px;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--sob-solution);
	border: 3px solid #fff;
	box-shadow: 0 6px 14px -4px rgba(20, 28, 50, 0.45);
}

.sob .sob-card--solution:hover .sob-sheet--back {
	transform: rotate(-11deg) translate(-10px, 3px);
}

.sob .sob-card--solution:hover .sob-sheet--mid {
	transform: rotate(7deg) translate(9px, 0);
}

.sob .sob-card--solution:hover .sob-sheet--front::after {
	transform: translateX(130%);
	transition: transform 0.9s ease;
}

/* ---------- Checklist ---------- */

.sob .sob-checks {
	list-style: none;
	margin: 14px 0 2px;
	padding: 0;
	display: grid;
	gap: 9px;
}

.sob .sob-checks li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-size: 0.97rem;
	color: var(--sob-ink);
}

.sob .sob-checks li::before {
	content: none;
}

.sob .sob-checks svg {
	flex: none;
	margin-top: 1px;
	color: var(--sob-paper);
}

/* ---------- Buttons and price ---------- */

.sob .sob-action {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-top: 18px;
}

.sob .sob-card--paper .sob-action {
	margin-top: auto;
	padding-top: 18px;
}

.sob .sob-btn,
.sob-modal .sob-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin: 0;
	padding: 0 24px;
	border: 0;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-shadow: none;
	color: #fff;
	cursor: pointer;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.sob .sob-btn--solution,
.sob-modal .sob-btn--solution {
	background: var(--sob-solution);
	border-radius: 999px;
	box-shadow: 0 8px 18px -8px var(--sob-solution);
}

.sob .sob-btn--paper {
	background: var(--sob-paper);
	border-radius: 10px;
}

.sob .sob-btn:hover,
.sob-modal .sob-btn:hover {
	color: #fff;
	text-decoration: none;
	filter: brightness(1.08);
}

.sob .sob-btn:active,
.sob-modal .sob-btn:active {
	transform: translateY(1px);
}

.sob .sob-btn:focus-visible,
.sob-modal .sob-btn:focus-visible {
	outline: 3px solid var(--sob-ink);
	outline-offset: 3px;
}

.sob .sob-price {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--sob-ink);
	font-variant-numeric: tabular-nums;
}

.sob .sob-notice {
	margin: 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fff8e1;
	border: 1px solid #f1dc9a;
	font-size: 0.9rem;
	color: #5c4a00;
}

.sob .sob-support {
	margin: 0;
	font-size: 0.95rem;
}

.sob .sob-support a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--sob-muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.sob .sob-support a:hover,
.sob .sob-support a:focus-visible {
	color: var(--sob-ink);
	border-bottom-color: currentColor;
}

/* ---------- Checkout popup ---------- */

html.sob-scroll-lock {
	overflow: hidden;
}

.sob-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--sob-ink);
}

.sob-modal[hidden],
.sob-modal [hidden] {
	display: none !important;
}

.sob-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 24, 40, 0.58);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.sob-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow: auto;
	padding: 28px 26px 24px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 30px 70px -20px rgba(10, 16, 32, 0.5);
	outline: 0;
	animation: sob-pop 0.22s ease-out;
}

@keyframes sob-pop {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.sob-modal .sob-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--sob-muted);
	cursor: pointer;
}

.sob-modal .sob-modal__close:hover,
.sob-modal .sob-modal__close:focus-visible {
	background: #eef0f6;
	color: var(--sob-ink);
}

.sob-modal h2 {
	margin: 0 32px 4px 0;
	padding: 0;
	font-size: 1.4rem;
	line-height: 1.25;
	font-weight: 700;
	color: var(--sob-ink);
}

.sob-modal .sob-modal__item {
	margin: 0 0 18px;
	font-size: 0.95rem;
	color: var(--sob-muted);
}

.sob-modal .sob-modal__item strong {
	color: var(--sob-ink);
	font-weight: 600;
}

.sob-modal .sob-field {
	margin: 0 0 14px;
}

.sob-modal .sob-field label {
	display: block;
	margin: 0 0 6px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--sob-ink);
}

.sob-modal .sob-field input,
.sob-modal .sob-field select {
	display: block;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #c6ccd9;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	font: inherit;
	font-size: 1rem;
	color: var(--sob-ink);
}

.sob-modal .sob-field input:focus,
.sob-modal .sob-field select:focus {
	outline: 2px solid var(--sob-solution);
	outline-offset: 1px;
	border-color: var(--sob-solution);
}

.sob-modal .sob-field.is-invalid input,
.sob-modal .sob-field.is-invalid select {
	border-color: #b42318;
}

.sob-modal .sob-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 18px 0 0;
	padding-top: 14px;
	border-top: 1px solid #e6e9f0;
	font-size: 0.95rem;
	color: var(--sob-muted);
}

.sob-modal .sob-total strong {
	font-size: 1.35rem;
	color: var(--sob-ink);
	font-variant-numeric: tabular-nums;
}

.sob-modal .sob-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 14px 0 6px;
	font-size: 0.92rem;
	cursor: pointer;
}

.sob-modal .sob-consent input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 3px 0 0;
	accent-color: var(--sob-solution);
}

.sob-modal .sob-consent a {
	color: var(--sob-solution);
	white-space: nowrap;
}

.sob-modal .sob-privacy {
	margin: 0 0 4px;
	font-size: 0.82rem;
	color: var(--sob-muted);
}

.sob-modal .sob-error {
	margin: 12px 0 0;
	padding: 10px 12px;
	border: 1px solid #fecdca;
	border-radius: 10px;
	background: #fef3f2;
	font-size: 0.92rem;
	color: #b42318;
}

.sob-modal .sob-paypal {
	min-height: 48px;
	margin-top: 16px;
}

.sob-modal .sob-paypal .sob-loading {
	margin: 0;
	padding: 14px 0;
	text-align: center;
	font-size: 0.92rem;
	color: var(--sob-muted);
}

.sob-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sob-modal .sob-done {
	padding: 8px 0 0;
	text-align: center;
}

.sob-modal .sob-done h2 {
	margin: 14px 0 8px;
}

.sob-modal .sob-done p {
	margin: 0 0 8px;
	color: var(--sob-muted);
}

.sob-modal .sob-done .sob-done__email {
	margin-bottom: 20px;
	font-size: 0.92rem;
}

.sob-modal .sob-done__icon {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--sob-solution);
}

@media (max-width: 520px) {
	.sob-modal {
		align-items: flex-end;
		padding: 0;
	}
	.sob-modal__dialog {
		max-width: none;
		max-height: 94vh;
		max-height: 94dvh;
		border-radius: 18px 18px 0 0;
		padding: 26px 20px 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sob .sob-sheet--back,
	.sob .sob-sheet--mid,
	.sob .sob-sheet--front::after,
	.sob .sob-btn,
	.sob-modal__dialog {
		transition: none !important;
		animation: none !important;
	}
}
