/**
 * DEW FILM — Web & Software page (page-web-software.php)
 *
 * Uses the theme's Cinematic Noir tokens from global.css: crimson accent,
 * surface panels at 14px, inputs at 8px, ambient shadow, uppercase micro-type.
 * Its own identity comes from structure — numbered sections, an index on every
 * card, and a running ledger in the estimate rail — not from a second palette.
 */

/* -------------------------------------------------------------------------
 * Rhythm
 * ---------------------------------------------------------------------- */

.page-web-software {
	--ws-panel-pad: clamp(1.5rem, 3vw, 2.25rem);
	--ws-gap: clamp(1.5rem, 3vw, 3rem);
	--ws-gap-y: clamp(2.5rem, 5vw, 4.5rem);
	--ws-border: color-mix(in srgb, var(--color-outline-variant) 55%, transparent);
	--ws-border-soft: color-mix(in srgb, var(--color-outline-variant) 30%, transparent);

	/* Crimson stays the brand and every action. This amber is the engineering
	   signature — schematics, index numbers, step markers — so the service
	   reads as a different department, not a different company. */
	--ws-accent-2: #b87a22;
	--ws-accent-2-tint: color-mix(in srgb, var(--ws-accent-2) 13%, transparent);

	padding-bottom: clamp(3rem, 6vw, 6rem);
}

html[data-theme="dark"] .page-web-software {
	--ws-accent-2: #e8ad4f;
	--ws-accent-2-tint: color-mix(in srgb, var(--ws-accent-2) 16%, transparent);
}

/* -------------------------------------------------------------------------
 * Geometry layer — grid + node-graph motif behind the page's chrome
 * ---------------------------------------------------------------------- */

/* Every host isolates so the layer's negative z-index stays above the host's
   own background and below its content, without touching every child. */
.ws-hero,
.ws-confirm-hero,
.ws-cta,
.ws-section--geo {
	position: relative;
	isolation: isolate;
}

.ws-geo {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	--ws-geo-step: 56px;
}

.ws-geo--on-dark {
	color: #e8ad4f;
	--ws-geo-grid: 0.1;
	--ws-geo-art: 0.5;
}

.ws-geo--on-light {
	color: var(--ws-accent-2);
	--ws-geo-grid: 0.07;
	--ws-geo-art: 0.3;
}

/* Fine engineering grid, weighted to the top-right so copy stays clean. */
.ws-geo::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(0deg, currentColor 0 1px, transparent 1px var(--ws-geo-step)),
		repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px var(--ws-geo-step));
	opacity: var(--ws-geo-grid);
	-webkit-mask-image: radial-gradient(125% 105% at 100% 0%, #000 0%, transparent 74%);
	mask-image: radial-gradient(125% 105% at 100% 0%, #000 0%, transparent 74%);
}

.ws-geo-art {
	position: absolute;
	top: 0;
	right: 0;
	width: min(58%, 640px);
	height: 100%;
	opacity: var(--ws-geo-art);
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}

.ws-shell {
	width: min(100% - 3rem, var(--container));
	margin-inline: auto;
}

/* Sections only ever space themselves from what precedes them, so nothing
   double-pads at the seams. */
.ws-section + .ws-section {
	margin-top: var(--ws-gap-y);
}

.ws-notice + .ws-section {
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* -------------------------------------------------------------------------
 * Shared type
 * ---------------------------------------------------------------------- */

.ws-kicker {
	font: 800 0.72rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	color: var(--color-primary);
	margin-bottom: 1rem;
}

.ws-kicker--light {
	color: #ff9db2;
}

.ws-section-head {
	max-width: 60ch;
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.ws-section-head h2 {
	font-size: clamp(1.9rem, 4vw, 3rem);
	line-height: 1.05;
	text-transform: uppercase;
}

.ws-lede {
	margin-top: 1rem;
	color: var(--color-text-muted);
	font-size: 1.02rem;
	line-height: 1.7;
}

.ws-panel {
	background: var(--color-surface);
	border-radius: 14px;
	padding: var(--ws-panel-pad);
	box-shadow: var(--shadow-ambient);
}

/* -------------------------------------------------------------------------
 * Buttons
 * ---------------------------------------------------------------------- */

.ws-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.95rem 1.45rem;
	border: 0;
	font: 800 0.78rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	cursor: pointer;
	transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ws-btn:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
}

.ws-btn .material-symbols-outlined {
	font-size: 1.1rem;
}

.ws-btn-primary {
	background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
	color: #fff;
}

.ws-btn-ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #fff;
}

.ws-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.12);
}

/* On a light panel the ghost button borrows the theme outline instead. */
.ws-section .ws-btn-ghost {
	border-color: var(--ws-border);
	color: var(--color-text);
}

.ws-section .ws-btn-ghost:hover {
	background: var(--color-surface-low);
}

/* -------------------------------------------------------------------------
 * Hero — cinematic banner, matching the booking hero's weight
 * ---------------------------------------------------------------------- */

.ws-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: clamp(300px, 38vw, 440px);
	overflow: hidden;
	padding: clamp(2.5rem, 5vw, 4.5rem) 0;
	margin-bottom: var(--ws-gap-y);
}

.ws-hero-media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.ws-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ws-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(14, 14, 14, 0.35) 0%, rgba(14, 14, 14, 0.78) 100%),
		linear-gradient(90deg, rgba(217, 30, 72, 0.28) 0%, rgba(14, 14, 14, 0) 55%);
}

/* No image configured: a noir field for the geometry layer to sit on. */
.ws-hero--plain .ws-hero-overlay {
	background:
		linear-gradient(125deg, rgba(217, 30, 72, 0.34) 0%, rgba(20, 18, 19, 0) 52%),
		linear-gradient(180deg, #2a2526 0%, #171516 100%);
}

.ws-hero-inner {
	position: relative;
}

.ws-hero h1 {
	font-size: clamp(2.2rem, 5.6vw, 4.2rem);
	line-height: 1.02;
	text-transform: uppercase;
	color: #fff;
}

.ws-hero-sub {
	max-width: 62ch;
	margin-top: 1rem;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.05rem;
	line-height: 1.65;
}

.ws-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.ws-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 1.5rem;
	padding: 0.7rem 1.15rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
	color: #fff;
	font: 800 0.72rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	transition: background 0.2s ease;
}

.ws-back-btn:hover {
	background: var(--color-primary);
}

.ws-back-btn .material-symbols-outlined {
	font-size: 1.1rem;
}

/* -------------------------------------------------------------------------
 * Notices
 * ---------------------------------------------------------------------- */

.ws-notice {
	background: var(--color-surface-low);
	color: var(--color-text-muted);
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--color-outline-variant);
	font-size: 0.95rem;
}

.ws-notice--error {
	border-left-color: var(--color-primary);
	color: var(--color-text);
}

/* -------------------------------------------------------------------------
 * Fact strip above the scope builder
 * ---------------------------------------------------------------------- */

.ws-factbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0 clamp(1.5rem, 4vw, 3.5rem);
	list-style: none;
	margin: 0 0 var(--ws-gap);
	padding: 0 0 1.25rem;
	border-bottom: 1px solid var(--ws-border-soft);
}

.ws-factbar li {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.ws-factbar span {
	font: 700 0.7rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--color-text-muted);
}

.ws-factbar strong {
	font-size: 0.95rem;
}

/* -------------------------------------------------------------------------
 * Solution cards
 * ---------------------------------------------------------------------- */

.ws-solution-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(clamp(260px, 26vw, 320px), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	counter-reset: ws-card;
}

.ws-solution-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--color-surface-low);
	border-radius: 12px;
	color: inherit;
	counter-increment: ws-card;
	transition: transform 0.25s ease, background 0.25s ease;
}

/* Hairline that fills crimson-to-amber on hover — the module's tell. */
.ws-solution-card::before {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	z-index: 2;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, var(--color-primary), var(--ws-accent-2));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.32s ease;
}

.ws-solution-card:hover {
	transform: translateY(-4px);
	background: var(--color-surface);
}

.ws-solution-card:hover::before {
	transform: scaleX(1);
}

.ws-solution-media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--color-surface-lowest), var(--color-surface-low));
}

.ws-solution-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ws-solution-media.is-icon {
	aspect-ratio: 16 / 7;
}

.ws-solution-media.is-icon img.ws-solution-icon {
	width: auto;
	height: 52px;
	object-fit: contain;
}

/* Index number, engineering-drawing style. */
.ws-solution-media::after {
	content: counter(ws-card, decimal-leading-zero);
	position: absolute;
	top: 0.7rem;
	right: 0.9rem;
	font: 800 0.72rem/1 "Inter", sans-serif;
	letter-spacing: 0.14em;
	color: #e8ad4f;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.ws-solution-monogram {
	font: 800 1.6rem/1 "Epilogue", sans-serif;
	letter-spacing: 0.06em;
	color: var(--color-text-muted);
}

.ws-talk-card-icon {
	font-size: 2.2rem;
	color: var(--color-primary);
}

.ws-solution-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.55rem;
	padding: 1.25rem 1.35rem 1.35rem;
}

.ws-solution-tagline {
	align-self: flex-start;
	font: 800 0.64rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--color-primary);
}

.ws-solution-body h3 {
	font-size: 1.2rem;
	line-height: 1.25;
}

.ws-solution-body p {
	color: var(--color-text-muted);
	font-size: 0.92rem;
	line-height: 1.6;
}

.ws-stack-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	list-style: none;
	margin: 0.15rem 0 0;
	padding: 0;
}

.ws-stack-pills li {
	padding: 0.22rem 0.6rem;
	border-radius: 999px;
	background: var(--color-surface-lowest);
	font: 600 0.7rem/1.5 "Inter", sans-serif;
	color: var(--color-text-muted);
}

.ws-solution-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid var(--ws-border-soft);
}

.ws-solution-timeline {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--color-text-muted);
	font-size: 0.8rem;
}

.ws-solution-timeline .material-symbols-outlined {
	font-size: 1rem;
}

.ws-solution-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--color-primary);
	font: 800 0.72rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.ws-solution-cta .material-symbols-outlined {
	font-size: 1rem;
	transition: transform 0.25s ease;
}

.ws-solution-card:hover .ws-solution-cta .material-symbols-outlined {
	transform: translateX(4px);
}

/* -------------------------------------------------------------------------
 * Scope builder layout
 * ---------------------------------------------------------------------- */

.ws-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: var(--ws-gap);
	align-items: start;
}

.ws-fields {
	min-width: 0;
}

.ws-fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

.ws-fieldset + .ws-fieldset {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--color-surface-low);
}

.ws-fieldset legend {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	width: 100%;
	padding: 0 0 1.25rem;
	font: 800 0.82rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--color-text);
}

.ws-legend-num {
	display: inline-grid;
	place-items: center;
	min-width: 28px;
	height: 22px;
	padding: 0 0.4rem;
	border-radius: 4px;
	background: var(--ws-accent-2-tint);
	color: var(--ws-accent-2);
	font: 800 0.7rem/1 "Inter", sans-serif;
	letter-spacing: 0.08em;
}

.ws-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* -------------------------------------------------------------------------
 * Fields
 * ---------------------------------------------------------------------- */

.ws-field {
	margin-bottom: 1.15rem;
}

.ws-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.ws-field-label {
	display: block;
	margin-bottom: 0.5rem;
	font: 700 0.82rem/1.3 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-text-muted);
}

.ws-req {
	color: var(--color-primary);
}

.ws-field-help {
	margin: -0.2rem 0 0.5rem;
	color: var(--color-text-muted);
	font-size: 0.82rem;
}

.ws-field-hint {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	margin-top: 0.4rem;
	color: var(--color-text-muted);
	font-size: 0.82rem;
}

.ws-field-hint .material-symbols-outlined {
	font-size: 0.95rem;
}

.ws-form input[type="text"],
.ws-form input[type="tel"],
.ws-form input[type="email"],
.ws-form input[type="url"],
.ws-form input[type="number"],
.ws-form input[type="date"],
.ws-form input[type="datetime-local"],
.ws-form select,
.ws-form textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	background: var(--color-surface-lowest);
	color: var(--color-text);
	border: 1px solid var(--ws-border);
	border-radius: 8px;
	font: 500 0.98rem/1.4 "Inter", sans-serif;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ws-form input::placeholder,
.ws-form textarea::placeholder {
	color: color-mix(in srgb, var(--color-text-muted) 75%, transparent);
}

.ws-form input:focus,
.ws-form select:focus,
.ws-form textarea:focus {
	outline: none;
	border-color: var(--color-primary);
	background: var(--color-surface);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 18%, transparent);
}

.ws-form textarea {
	resize: vertical;
	min-height: 130px;
}

.ws-form input.ws-fixed-number {
	background: var(--color-surface-low);
	color: var(--color-text-muted);
	cursor: not-allowed;
}

.ws-form input.ws-fixed-number:focus {
	border-color: var(--ws-border);
	box-shadow: none;
}

.ws-select-wrap {
	position: relative;
}

.ws-select-wrap::after {
	content: "expand_more";
	font-family: "Material Symbols Outlined";
	position: absolute;
	right: 0.9rem;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: var(--color-text-muted);
}

.ws-select-wrap select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2.5rem;
}

.ws-field-notes {
	list-style: none;
	margin: 0.55rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.ws-field-notes li {
	display: flex;
	gap: 0.4rem;
	color: var(--color-text-muted);
	font-size: 0.82rem;
	line-height: 1.5;
}

.ws-note-icon {
	flex: 0 0 auto;
	font-size: 1rem;
	color: var(--color-primary);
	transform: translateY(1px);
}

/* ---- Checkboxes ---- */

.ws-checkbox-list {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.ws-checkbox {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	background: var(--color-surface-lowest);
	border: 1px solid color-mix(in srgb, var(--color-outline-variant) 45%, transparent);
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.ws-checkbox:hover {
	background: var(--color-surface-low);
	border-color: var(--color-primary);
}

.ws-form .ws-checkbox input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	padding: 0;
	accent-color: var(--color-primary);
}

.ws-checkbox-text {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	flex: 1;
	min-width: 0;
}

.ws-checkbox-name {
	font-size: 0.95rem;
}

.ws-checkbox-price {
	flex: 0 0 auto;
	color: var(--color-text-muted);
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
}

/* ---- Multi-select ---- */

.ws-multiselect {
	position: relative;
}

.ws-ms-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	width: 100%;
	padding: 0.85rem 1rem;
	background: var(--color-surface-lowest);
	color: var(--color-text-muted);
	border: 1px solid var(--ws-border);
	border-radius: 8px;
	font: 500 0.98rem/1.4 "Inter", sans-serif;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ws-multiselect.is-open .ws-ms-toggle {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 18%, transparent);
}

.ws-ms-toggle .material-symbols-outlined {
	flex: 0 0 auto;
	transition: transform 0.2s ease;
}

.ws-multiselect.is-open .ws-ms-toggle .material-symbols-outlined {
	transform: rotate(180deg);
}

.ws-ms-panel {
	position: absolute;
	z-index: 20;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: 260px;
	overflow-y: auto;
	padding: 0.4rem;
	background: var(--color-surface);
	border-radius: 10px;
	box-shadow: var(--shadow-ambient), 0 0 0 1px color-mix(in srgb, var(--color-outline-variant) 40%, transparent);
}

.ws-ms-option {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.6rem 0.75rem;
	border-radius: 6px;
	font-size: 0.95rem;
	cursor: pointer;
}

.ws-ms-option:hover {
	background: var(--color-surface-low);
}

.ws-form .ws-ms-option input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	padding: 0;
	accent-color: var(--color-primary);
}

.ws-ms-selected {
	list-style: none;
	margin: 0.6rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.ws-ms-selected:empty {
	display: none;
}

.ws-ms-chip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.6rem 0.75rem 0.6rem 0.9rem;
	background: var(--color-surface-low);
	border-left: 3px solid var(--color-primary);
	border-radius: 8px;
	font-size: 0.92rem;
}

.ws-ms-chip-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ws-ms-chip-remove {
	flex: 0 0 auto;
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--color-primary) 15%, transparent);
	color: var(--color-primary);
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.ws-ms-chip-remove:hover {
	background: var(--color-primary);
	color: #fff;
}

/* -------------------------------------------------------------------------
 * Estimate rail — a running ledger, left-aligned and tabular
 * ---------------------------------------------------------------------- */

.ws-summary {
	align-self: stretch;
}

.ws-summary-inner {
	position: sticky;
	top: 100px;
	padding: 1.6rem 1.5rem;
}

.ws-summary-kicker {
	margin-bottom: 0.55rem;
	font: 800 0.7rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--color-text-muted);
}

.ws-total {
	font: 900 clamp(2rem, 4vw, 2.5rem)/1 "Epilogue", sans-serif;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	transition: color 0.2s ease;
}

.ws-total.is-bumped {
	color: var(--color-primary);
}

.ws-summary-lines {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 1.25rem 0 0;
	border-top: 1px solid var(--color-surface-low);
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	max-height: 300px;
	overflow-y: auto;
}

.ws-summary-lines:empty {
	display: none;
}

.ws-summary-lines li {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	font-size: 0.85rem;
}

.ws-sl-name {
	color: var(--color-text-muted);
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Dotted leader between the label and its figure — reads as a ledger. */
.ws-sl-lead {
	flex: 1;
	min-width: 1rem;
	border-bottom: 1px dotted var(--color-outline-variant);
	transform: translateY(-0.25rem);
}

.ws-sl-price {
	flex: 0 0 auto;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.ws-summary-empty {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--color-surface-low);
	color: var(--color-text-muted);
	font-size: 0.84rem;
	line-height: 1.6;
}

.ws-summary-note {
	margin: 1.25rem 0 1.25rem;
	color: var(--color-text-muted);
	font-size: 0.8rem;
	line-height: 1.55;
}

.ws-submit {
	width: 100%;
}

.ws-reset {
	display: block;
	width: 100%;
	margin-top: 0.75rem;
	padding: 0.5rem;
	background: none;
	border: 0;
	color: var(--color-text-muted);
	font: 700 0.72rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	cursor: pointer;
}

.ws-reset:hover {
	color: var(--color-primary);
}

/* -------------------------------------------------------------------------
 * Talk CTA strip
 * ---------------------------------------------------------------------- */

.ws-talk-cta {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-top: var(--ws-gap);
	padding: 1.4rem 1.6rem;
	background: var(--color-surface-low);
	border-radius: 12px;
	color: inherit;
	transition: background 0.25s ease, transform 0.25s ease;
}

.ws-talk-cta--aside {
	margin-top: 1rem;
}

.ws-talk-cta:hover {
	background: var(--color-surface);
	transform: translateY(-2px);
}

.ws-talk-icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--color-primary) 14%, transparent);
	color: var(--color-primary);
}

.ws-talk-copy {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	flex: 1;
	min-width: 0;
}

.ws-talk-copy strong {
	font-size: 0.98rem;
}

.ws-talk-copy > span {
	color: var(--color-text-muted);
	font-size: 0.87rem;
	line-height: 1.5;
}

.ws-talk-arrow {
	flex: 0 0 auto;
	color: var(--color-primary);
	transition: transform 0.25s ease;
}

.ws-talk-cta:hover .ws-talk-arrow {
	transform: translateX(4px);
}

/* -------------------------------------------------------------------------
 * Process — numbered rows on a shared rule
 * ---------------------------------------------------------------------- */

.ws-process {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0;
	border-top: 1px solid var(--ws-border-soft);
}

.ws-process-step {
	display: flex;
	gap: 1rem;
	padding: 1.6rem 1.4rem 1.6rem 0;
	border-bottom: 1px solid var(--ws-border-soft);
}

.ws-process-step + .ws-process-step {
	border-left: 1px solid var(--ws-border-soft);
	padding-left: 1.4rem;
}

.ws-process-num {
	flex: 0 0 auto;
	font: 900 1.05rem/1 "Epilogue", sans-serif;
	letter-spacing: 0.02em;
	color: var(--ws-accent-2);
	padding-top: 0.15rem;
}

.ws-process-copy h3 {
	margin-bottom: 0.45rem;
	font-size: 1.02rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.ws-process-copy p {
	color: var(--color-text-muted);
	font-size: 0.9rem;
	line-height: 1.65;
}

/* -------------------------------------------------------------------------
 * Closing CTA
 * ---------------------------------------------------------------------- */

.ws-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.75rem;
	padding: clamp(1.9rem, 4vw, 3rem);
	border-radius: 14px;
	background:
		linear-gradient(125deg, rgba(217, 30, 72, 0.32) 0%, rgba(20, 18, 19, 0) 55%),
		linear-gradient(180deg, #2a2526 0%, #171516 100%);
}

.ws-cta-copy {
	max-width: 56ch;
}

.ws-cta-copy h2 {
	font-size: clamp(1.6rem, 3.2vw, 2.4rem);
	line-height: 1.08;
	text-transform: uppercase;
	color: #fff;
}

.ws-cta-copy p {
	margin-top: 0.8rem;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.65;
}

/* -------------------------------------------------------------------------
 * Consultation
 * ---------------------------------------------------------------------- */

.ws-talk-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: var(--ws-gap);
	align-items: start;
}

.ws-talk-form .ws-submit {
	margin-top: 1.5rem;
}

.ws-talk-aside {
	position: sticky;
	top: 100px;
}

.ws-talk-guide h3 {
	margin-bottom: 1.4rem;
	font: 800 0.82rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.ws-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.ws-steps li {
	display: flex;
	gap: 0.9rem;
}

.ws-step-num {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--ws-accent-2-tint);
	color: var(--ws-accent-2);
	font: 800 0.75rem/1 "Inter", sans-serif;
}

.ws-steps h4 {
	margin-bottom: 0.25rem;
	font-size: 0.95rem;
}

.ws-steps p {
	color: var(--color-text-muted);
	font-size: 0.86rem;
	line-height: 1.6;
}

/* -------------------------------------------------------------------------
 * Confirmation & quote
 * ---------------------------------------------------------------------- */

.ws-confirm-hero {
	position: relative;
	padding: clamp(3rem, 6vw, 5rem) 0;
	margin-bottom: var(--ws-gap-y);
	text-align: center;
	background:
		linear-gradient(125deg, rgba(217, 30, 72, 0.3) 0%, rgba(20, 18, 19, 0) 55%),
		linear-gradient(180deg, #2a2526 0%, #171516 100%);
}

.ws-confirm-badge {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin: 0 auto 1.5rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
	color: #fff;
}

.ws-confirm-badge .material-symbols-outlined {
	font-size: 1.9rem;
}

.ws-confirm-hero h1 {
	font-size: clamp(1.9rem, 4.4vw, 3rem);
	line-height: 1.05;
	text-transform: uppercase;
	color: #fff;
}

.ws-confirm-sub {
	max-width: 58ch;
	margin: 1rem auto 0;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.7;
}

.ws-confirm-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.9rem;
}

.ws-quote {
	padding: 0;
	overflow: hidden;
}

.ws-quote-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem var(--ws-panel-pad);
	border-bottom: 1px solid var(--color-surface-low);
}

.ws-quote-head h2 {
	font: 800 0.82rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.ws-quote-ref {
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: var(--ws-accent-2-tint);
	color: var(--ws-accent-2);
	font: 800 0.72rem/1.6 "Inter", sans-serif;
	letter-spacing: 0.08em;
}

.ws-quote-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 1.1rem;
	margin: 0;
	padding: var(--ws-panel-pad);
	border-bottom: 1px solid var(--color-surface-low);
}

.ws-quote-meta div {
	min-width: 0;
}

.ws-quote-meta dt {
	margin-bottom: 0.25rem;
	font: 700 0.7rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--color-text-muted);
}

.ws-quote-meta dd {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.ws-quote-lines {
	list-style: none;
	margin: 0;
	padding: var(--ws-panel-pad);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ws-quote-lines li {
	display: grid;
	grid-template-columns: minmax(140px, 30%) 1fr;
	gap: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--color-surface-low);
}

.ws-quote-lines li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.ws-ql-label {
	padding-top: 0.15rem;
	font: 700 0.7rem/1.4 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--color-text-muted);
}

.ws-ql-values {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.ws-ql-value {
	font-size: 0.95rem;
	font-weight: 600;
}

.ws-ql-value::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-right: 0.55rem;
	border-radius: 50%;
	background: var(--color-primary);
	transform: translateY(-2px);
}

.ws-quote-brief {
	padding: var(--ws-panel-pad);
}

.ws-quote-brief-row {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	margin-bottom: 0.6rem;
}

.ws-quote-brief-row span {
	font: 700 0.7rem/1.4 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--color-text-muted);
}

.ws-brief-text {
	margin-top: 1rem;
	padding: 1.1rem 1.25rem;
	background: var(--color-surface-lowest);
	border-left: 3px solid var(--color-primary);
	border-radius: 8px;
	line-height: 1.7;
	white-space: pre-line;
}

.ws-quote-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding: 1.35rem var(--ws-panel-pad);
	background: var(--color-surface-low);
	border-top: 2px solid var(--color-primary);
}

.ws-quote-total span {
	font: 700 0.74rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--color-text-muted);
}

.ws-quote-total strong {
	font: 900 clamp(1.5rem, 3vw, 2rem)/1 "Epilogue", sans-serif;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------
 * Retainer / payment
 * ---------------------------------------------------------------------- */

.ws-payment {
	background: var(--color-surface);
	border-radius: 14px;
	padding: var(--ws-panel-pad);
	box-shadow: var(--shadow-ambient);
}

.ws-payment-head h3 {
	margin-bottom: 0.6rem;
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: -0.01em;
}

.ws-payment-head p {
	max-width: 72ch;
	color: var(--color-text-muted);
	line-height: 1.7;
}

.ws-payment-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 1rem;
	margin-top: 1.6rem;
}

.ws-pay-card {
	padding: 1.15rem 1.25rem;
	background: var(--color-surface-lowest);
	border-radius: 10px;
}

.ws-pay-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.ws-pay-top h4 {
	font-size: 0.95rem;
}

.ws-pay-top span {
	color: var(--color-text-muted);
	font-size: 0.76rem;
}

.ws-pay-top img {
	height: 24px;
	width: auto;
}

.ws-pay-num {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 0.85rem;
	border-top: 1px dashed var(--ws-border);
}

.ws-pay-num span {
	font: 700 0.68rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--color-text-muted);
}

.ws-pay-num strong {
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
}

.ws-wa-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1rem;
	padding: 1.15rem 1.25rem;
	background: var(--color-surface-low);
	border-radius: 10px;
	color: inherit;
	transition: background 0.25s ease, transform 0.25s ease;
}

.ws-wa-card:hover {
	background: var(--color-surface-lowest);
	transform: translateY(-2px);
}

.ws-wa-card > .material-symbols-outlined:first-child {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--color-primary) 14%, transparent);
	color: var(--color-primary);
}

.ws-wa-copy {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	flex: 1;
	min-width: 0;
}

.ws-wa-copy strong {
	font-size: 0.98rem;
}

.ws-wa-copy span {
	color: var(--color-text-muted);
	font-size: 0.87rem;
	line-height: 1.5;
}

.ws-wa-arrow {
	flex: 0 0 auto;
	color: var(--color-primary);
}

/* -------------------------------------------------------------------------
 * Reveal-on-scroll
 * ---------------------------------------------------------------------- */

[data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	[data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

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

@media (max-width: 1024px) {
	.ws-grid,
	.ws-talk-grid {
		grid-template-columns: 1fr;
	}

	.ws-summary-inner,
	.ws-talk-aside {
		position: static;
	}

	/* Side-by-side process rules only make sense while the row is intact. */
	.ws-process-step + .ws-process-step {
		border-left: 0;
		padding-left: 0;
	}
}

@media (max-width: 700px) {
	/* The motif is anchored right; on narrow screens it would crowd the copy. */
	.ws-geo-art {
		display: none;
	}

	.ws-geo {
		--ws-geo-step: 38px;
	}
}

@media (max-width: 640px) {
	.ws-shell {
		width: min(100% - 2rem, var(--container));
	}

	.ws-field-row {
		grid-template-columns: 1fr;
	}

	.ws-quote-lines li {
		grid-template-columns: 1fr;
		gap: 0.4rem;
	}

	.ws-cta {
		flex-direction: column;
		align-items: flex-start;
	}

	.ws-cta .ws-btn,
	.ws-confirm-actions .ws-btn,
	.ws-hero-actions .ws-btn {
		width: 100%;
	}

	.ws-talk-cta {
		flex-wrap: wrap;
	}

	.ws-talk-arrow {
		display: none;
	}
}

/* -------------------------------------------------------------------------
 * Disciplines — the standing team capabilities
 * ---------------------------------------------------------------------- */

.ws-disc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 24vw, 320px), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

.ws-disc-card {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.5rem 1.45rem;
	background: var(--color-surface);
	border: 1px solid var(--ws-border-soft);
	border-radius: 12px;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ws-disc-card:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--ws-accent-2) 45%, transparent);
	box-shadow: var(--shadow-ambient);
}

.ws-disc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.2rem;
}

.ws-disc-icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 11px;
	background: var(--ws-accent-2-tint);
	color: var(--ws-accent-2);
	font-size: 1.4rem;
}

.ws-disc-meta {
	font: 700 0.66rem/1.4 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--color-text-muted);
	text-align: right;
}

.ws-disc-card h3 {
	font-size: 1.12rem;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: -0.01em;
}

.ws-disc-card p {
	flex: 1;
	color: var(--color-text-muted);
	font-size: 0.9rem;
	line-height: 1.65;
}

.ws-disc-card .ws-stack-pills {
	margin-top: 0.4rem;
	padding-top: 0.9rem;
	border-top: 1px solid var(--ws-border-soft);
}

/* -------------------------------------------------------------------------
 * FAQ — native <details> accordion, no JS required
 * ---------------------------------------------------------------------- */

.ws-faq-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: var(--ws-gap);
	align-items: start;
}

.ws-faq-head {
	position: sticky;
	top: 100px;
	margin-bottom: 0;
}

.ws-faq-head h2 {
	font-size: clamp(1.8rem, 3.6vw, 2.6rem);
	line-height: 1.05;
	text-transform: uppercase;
}

.ws-faq-list {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.ws-faq-item {
	background: var(--color-surface);
	border: 1px solid var(--ws-border-soft);
	border-radius: 10px;
	transition: border-color 0.25s ease;
}

.ws-faq-item[open],
.ws-faq-item:hover {
	border-color: color-mix(in srgb, var(--ws-accent-2) 45%, transparent);
}

.ws-faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.3rem;
	cursor: pointer;
	list-style: none;
}

/* Suppress the default disclosure triangle in every engine. */
.ws-faq-item summary::-webkit-details-marker {
	display: none;
}

.ws-faq-item summary::marker {
	content: "";
}

.ws-faq-item summary h3 {
	font-size: 0.98rem;
	line-height: 1.4;
	letter-spacing: -0.01em;
}

.ws-faq-item summary .material-symbols-outlined {
	flex: 0 0 auto;
	color: var(--ws-accent-2);
	transition: transform 0.25s ease;
}

.ws-faq-item[open] summary .material-symbols-outlined {
	transform: rotate(45deg);
}

.ws-faq-item summary:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
	border-radius: 10px;
}

.ws-faq-item > p {
	padding: 0 1.3rem 1.2rem;
	color: var(--color-text-muted);
	font-size: 0.92rem;
	line-height: 1.72;
}

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

	.ws-faq-head {
		position: static;
		margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
	}
}

/* On-demand stack note, closing the disciplines grid. */
.ws-disc-note {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	margin-top: clamp(1rem, 2vw, 1.5rem);
	padding: 1.2rem 1.4rem;
	background: var(--ws-accent-2-tint);
	border: 1px solid color-mix(in srgb, var(--ws-accent-2) 32%, transparent);
	border-radius: 12px;
	color: var(--color-text-muted);
	font-size: 0.93rem;
	line-height: 1.7;
}

.ws-disc-note .material-symbols-outlined {
	flex: 0 0 auto;
	color: var(--ws-accent-2);
	transform: translateY(2px);
}

.ws-disc-note strong {
	color: var(--color-text);
}

/* -------------------------------------------------------------------------
 * Guided route — entry CTA, wizard chrome, and choice cards
 * ---------------------------------------------------------------------- */

.ws-guided-cta {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-bottom: var(--ws-gap);
	padding: 1.4rem 1.6rem;
	background: var(--ws-accent-2-tint);
	border: 1px solid color-mix(in srgb, var(--ws-accent-2) 34%, transparent);
	border-radius: 12px;
	color: inherit;
	transition: transform 0.24s ease, border-color 0.24s ease;
}

.ws-guided-cta:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--ws-accent-2) 62%, transparent);
}

.ws-guided-cta-icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 11px;
	background: color-mix(in srgb, var(--ws-accent-2) 20%, transparent);
	color: var(--ws-accent-2);
}

.ws-guided-cta-copy {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	flex: 1;
	min-width: 0;
}

.ws-guided-cta-copy strong {
	font-size: 1rem;
}

.ws-guided-cta-copy > span {
	color: var(--color-text-muted);
	font-size: 0.89rem;
	line-height: 1.55;
}

.ws-guided-cta-arrow {
	flex: 0 0 auto;
	color: var(--ws-accent-2);
	transition: transform 0.24s ease;
}

.ws-guided-cta:hover .ws-guided-cta-arrow {
	transform: translateX(4px);
}

/* ---- Progress ---- */

.ws-wiz-bar {
	height: 4px;
	border-radius: 999px;
	background: var(--color-surface-low);
	overflow: hidden;
}

.ws-wiz-fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--color-primary), var(--ws-accent-2));
	transition: width 0.35s ease;
}

.ws-wiz-count {
	margin-top: 0.7rem;
	font: 800 0.7rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--color-text-muted);
}

/* ---- Steps ---- */

.ws-wiz-step {
	padding-top: 1.6rem;
}

/* A guided question is the only thing on screen, so it carries more weight
   than a field label inside the dense scope builder. */
.ws-field--guided > .ws-field-label {
	font: 800 clamp(1.15rem, 2.2vw, 1.5rem)/1.25 "Epilogue", sans-serif;
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--color-text);
	margin-bottom: 0.6rem;
}

.ws-field--guided > .ws-field-label:focus {
	outline: none;
}

.ws-field--guided > .ws-field-help {
	margin: 0 0 1.2rem;
	font-size: 0.92rem;
	line-height: 1.6;
}

/* ---- Choice cards (radio + checkbox) ---- */

.ws-choice-list {
	display: grid;
	gap: 0.6rem;
}

.ws-choice {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 1rem 1.15rem;
	background: var(--color-surface-lowest);
	border: 1px solid color-mix(in srgb, var(--color-outline-variant) 45%, transparent);
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ws-choice:hover {
	transform: translateY(-1px);
	border-color: var(--color-primary);
}

.ws-form .ws-choice input[type="radio"] {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	accent-color: var(--color-primary);
}

.ws-choice:has(input:checked) {
	background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
	border-color: var(--color-primary);
}

.ws-choice-body {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.9rem;
	flex: 1;
	min-width: 0;
}

.ws-choice-name {
	font-size: 1rem;
	line-height: 1.45;
}

.ws-choice-price {
	flex: 0 0 auto;
	color: var(--color-text-muted);
	font-size: 0.8rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Guided checkbox questions get the same generous target as the radio cards. */
.ws-field--guided .ws-checkbox {
	padding: 1rem 1.15rem;
	border-radius: 10px;
}

.ws-field--guided .ws-checkbox-name {
	font-size: 1rem;
}

/* ---- Navigation ---- */

.ws-wiz-error {
	margin-top: 1.2rem;
	padding: 0.8rem 1.1rem;
	background: color-mix(in srgb, var(--color-primary) 10%, transparent);
	border-left: 3px solid var(--color-primary);
	border-radius: 6px;
	color: var(--color-text);
	font-size: 0.9rem;
}

.ws-wiz-nav {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.8rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--color-surface-low);
}

.ws-wiz-back {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.9rem 1.1rem;
	background: none;
	border: 1px solid var(--ws-border);
	border-radius: 999px;
	color: var(--color-text-muted);
	font: 800 0.74rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.ws-wiz-back:hover {
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.ws-wiz-back .material-symbols-outlined,
.ws-wiz-next .material-symbols-outlined {
	font-size: 1.05rem;
}

.ws-wiz-next,
.ws-wiz-submit {
	margin-left: auto;
}

.ws-wiz-alt {
	display: block;
	margin-top: 1.1rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--color-surface-low);
	color: var(--color-text-muted);
	font-size: 0.84rem;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ws-wiz-alt:hover {
	color: var(--color-primary);
}

@media (max-width: 640px) {
	.ws-guided-cta {
		flex-wrap: wrap;
	}

	.ws-guided-cta-arrow {
		display: none;
	}

	.ws-choice-body {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.2rem;
	}

	.ws-wiz-nav {
		flex-wrap: wrap;
	}

	.ws-wiz-next,
	.ws-wiz-submit {
		flex: 1 1 100%;
		margin-left: 0;
	}
}

/* Requirements-only mode: the rail lists selections without figures. */
.ws-summary-lines--plain li {
	border-bottom: 1px dashed var(--ws-border-soft);
}

.ws-quote-total--pending {
	background: var(--ws-accent-2-tint);
	border-top-color: var(--ws-accent-2);
}

.ws-quote-total--pending em {
	color: var(--color-text-muted);
	font-size: 0.92rem;
	font-style: italic;
	text-align: right;
}
