/**
 * Web design / online store pages (site-design, online-store-design).
 * Everything is namespaced with sr-wd- to stay clear of the global styles.
 */

.sr-wd-intro {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: 46px;
	align-items: center;
}

.sr-wd-intro h2 { margin-bottom: .5em; }

.sr-wd-lead {
	font-size: 1rem;
	line-height: 2.05;
	color: var(--sr-muted);
}

.sr-wd-lead p + p { margin-top: 14px; }

.sr-wd-media {
	position: relative;
	margin: 0;
}

.sr-wd-media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 24px;
	box-shadow: 0 30px 60px -34px rgba(10, 31, 60, .45);
}

/* The intro clip replaces the still image on both pages. */
.sr-wd-media video {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
	background: transparent;
}

.sr-wd-media video::-webkit-media-controls { display: none !important; }

.sr-wd-media__badge {
	position: absolute;
	bottom: -18px;
	right: -14px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--sr-shadow-lg);
}

.sr-wd-media__badge b {
	display: block;
	font-size: 1.35rem;
	line-height: 1.1;
	color: var(--sr-primary-700);
}

.sr-wd-media__badge span {
	font-size: .8rem;
	color: var(--sr-muted);
}

/* Why-us list */
.sr-wd-why {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sr-wd-why li {
	display: flex;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid var(--sr-border);
	border-radius: 14px;
	background: #fff;
	font-size: .94rem;
	line-height: 1.85;
}

.sr-wd-why i {
	flex: none;
	width: 10px;
	height: 10px;
	margin-top: 9px;
	border-radius: 50%;
	background: var(--dot, var(--sr-primary));
	box-shadow: 0 0 0 4px var(--dot-soft, transparent);
}

/*
 * The "why us" dots blink softly, one after another, so the list reads as a
 * live checklist instead of six static bullets.
 */
@keyframes sr-wd-dot-blink {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: .35; transform: scale(.78); }
}

.sr-wd-why i {
	animation: sr-wd-dot-blink 2.4s ease-in-out infinite;
}

.sr-wd-why li:nth-child(2) i { animation-delay: .3s; }
.sr-wd-why li:nth-child(3) i { animation-delay: .6s; }
.sr-wd-why li:nth-child(4) i { animation-delay: .9s; }
.sr-wd-why li:nth-child(5) i { animation-delay: 1.2s; }
.sr-wd-why li:nth-child(6) i { animation-delay: 1.5s; }

@media (prefers-reduced-motion: reduce) {
	.sr-wd-why i { animation: none; }
}

/* Call band */
.sr-wd-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	padding: 34px 38px;
	border-radius: 22px;
	background: linear-gradient(135deg, var(--sr-primary-700), var(--sr-primary));
	color: #fff;
	box-shadow: 0 26px 50px -30px rgba(10, 31, 60, .55);
}

.sr-wd-band h2 {
	margin: 0 0 .35em;
	color: #fff;
	font-size: 1.35rem;
}

.sr-wd-band p {
	margin: 0;
	color: #d8e7fb;
	font-size: .95rem;
}

.sr-wd-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Pricing calculator */
.sr-wd-calc {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 336px;
	gap: 28px;
	align-items: start;
}

.sr-wd-calc__body { min-width: 0; }

.sr-wd-price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 26px;
	padding: 16px 20px;
	border: 1px solid var(--sr-primary-100, #cfe2fb);
	border-radius: 16px;
	background: var(--sr-primary-050);
}

.sr-wd-price b {
	font-size: 1.15rem;
	color: var(--sr-primary-700);
}

.sr-wd-price span {
	font-size: .88rem;
	color: var(--sr-muted);
}

.sr-wd-sub {
	margin: 0 0 16px;
	color: var(--sr-muted);
	font-size: .93rem;
}

.sr-wd-h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 30px 0 10px;
	font-size: 1.08rem;
}

/*
 * .sr-page-content h3 in theme.css zeroes the block margins, so the section
 * headings of the calculator need one extra level of specificity.
 */
.sr-wd-calc .sr-wd-h3 {
	margin-block-start: 36px;
	margin-block-end: 10px;
	margin-top: 36px;
	margin-bottom: 10px;
}

.sr-wd-calc .sr-wd-sub {
	margin-block-start: 0;
	margin-block-end: 18px;
	margin-top: 0;
	margin-bottom: 18px;
}

.sr-wd-h3::before {
	content: '';
	width: 6px;
	height: 22px;
	border-radius: 4px;
	background: var(--sr-primary);
}

/* Base feature grid — one bordered box per feature, like the old page. */
.sr-wd-feats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sr-wd-feats li {
	position: relative;
	padding: 11px 40px 11px 14px;
	border: 1px solid var(--sr-border);
	border-radius: 13px;
	background: #fff;
	font-size: .91rem;
	line-height: 1.75;
	transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.sr-wd-feats li:hover {
	transform: translateY(-2px);
	border-color: #86efac;
	background: #f0fdf4;
	box-shadow: 0 8px 20px rgba(22, 163, 74, .12);
}

.sr-wd-feats li::before {
	content: '';
	position: absolute;
	top: calc(11px + .875em);
	right: 20px;
	width: 7px;
	height: 4px;
	margin-top: -2px;
	border-left: 2px solid var(--sr-green);
	border-bottom: 2px solid var(--sr-green);
	transform: rotate(-45deg);
}

.sr-wd-feats li::after {
	content: '';
	position: absolute;
	top: calc(11px + .875em);
	right: 13px;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	border-radius: 50%;
	background: var(--sr-green);
	opacity: .12;
}

/* Add-on pickers */
.sr-wd-addons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.sr-wd-addon {
	position: relative;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 16px 18px;
	border: 1px solid var(--sr-border);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.sr-wd-addon:hover {
	border-color: var(--sr-primary);
	transform: translateY(-1px);
}

.sr-wd-addon input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.sr-wd-addon__box {
	flex: none;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	border: 1.5px solid var(--sr-border);
	border-radius: 7px;
	background: #fff;
	transition: background .18s ease, border-color .18s ease;
}

.sr-wd-addon__box svg {
	width: 14px;
	height: 14px;
	opacity: 0;
	color: #fff;
	transition: opacity .18s ease;
}

.sr-wd-addon__body {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.sr-wd-addon__title {
	font-size: .92rem;
	font-weight: 600;
	line-height: 1.6;
}

.sr-wd-addon__price {
	font-size: .85rem;
	font-weight: 700;
	color: var(--sr-primary-700);
	padding-top: 2px;
}

.sr-wd-addon.is-on {
	border-color: var(--sr-primary);
	background: var(--sr-primary-050);
}

.sr-wd-addon.is-on .sr-wd-addon__box {
	border-color: var(--sr-primary);
	background: var(--sr-primary);
}

.sr-wd-addon.is-on .sr-wd-addon__box svg { opacity: 1; }

.sr-wd-addon:focus-within {
	outline: 2px solid var(--sr-primary);
	outline-offset: 2px;
}

/* Sticky summary */
.sr-wd-sum {
	position: sticky;
	top: calc(var(--sr-header-h, 84px) + 16px);
	padding: 22px;
	border: 1px solid var(--sr-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 50px -34px rgba(10, 31, 60, .45);
}

.sr-wd-sum h3 {
	margin: 0 0 14px;
	font-size: 1rem;
}

.sr-wd-sum__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 0;
	font-size: .9rem;
	color: var(--sr-muted);
}

.sr-wd-sum__row b {
	color: var(--sr-heading);
	font-size: .92rem;
	white-space: nowrap;
}

.sr-wd-sum__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-top: 14px;
	padding-top: 18px;
	border-top: 1px dashed var(--sr-border);
	font-weight: 800;
}

.sr-wd-sum__total b {
	font-size: 1.12rem;
	color: var(--sr-primary-700);
	white-space: nowrap;
}

.sr-wd-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0 0;
}

.sr-wd-chip {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--sr-primary-050);
	color: var(--sr-primary-700);
	font-size: .76rem;
}

.sr-wd-sum .sr-btn { margin-top: 16px; }

.sr-wd-reset {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 6px;
	border: 0;
	background: none;
	color: var(--sr-muted);
	font: inherit;
	font-size: .82rem;
	cursor: pointer;
	text-decoration: underline;
}

.sr-wd-reset:hover { color: var(--sr-primary-700); }

/* Numbered process list */
.sr-wd-steps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: wd-step;
}

.sr-wd-steps li {
	position: relative;
	padding-inline-start: 46px;
	font-size: .93rem;
	line-height: 1.8;
}

.sr-wd-steps li::before {
	counter-increment: wd-step;
	content: counter(wd-step);
	position: absolute;
	top: 0;
	right: 0;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--sr-primary-050);
	color: var(--sr-primary-700);
	font-size: .85rem;
	font-weight: 700;
}

/*
 * Soft fade for the sentence under a section title. The hidden state is gated
 * on `sr-wd-js`, which the script adds, so the copy stays visible when scripts
 * never run.
 */
.sr-wd-js .sr-wd-fade {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 900ms cubic-bezier(.22, 1, .36, 1), transform 900ms cubic-bezier(.22, 1, .36, 1);
}

.sr-wd-js .sr-wd-fade.is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.sr-wd-js .sr-wd-fade {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

@media (max-width: 1024px) {
	.sr-wd-intro { grid-template-columns: minmax(0, 1fr); gap: 34px; }
	.sr-wd-calc { grid-template-columns: minmax(0, 1fr); }
	.sr-wd-sum { position: static; }
	.sr-wd-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
	.sr-wd-why,
	.sr-wd-addons,
	.sr-wd-steps { grid-template-columns: minmax(0, 1fr); }

	.sr-wd-feats { grid-template-columns: minmax(0, 1fr); }
	.sr-wd-band { padding: 26px 22px; }
	.sr-wd-media__badge { right: 10px; bottom: -14px; }
	.sr-wd-band { justify-content: center; text-align: center; }
	.sr-wd-band > * { flex: 1 1 100%; }
	.sr-wd-band__actions { width: 100%; justify-content: center; }
	.sr-wd-actions { justify-content: center; }
}
