:root {
	--color-primary-10: #002020;
	--color-primary-50: #338080;
	--color-primary-60: #4a9494;
	--color-primary-70: #8ad3d3;
	--color-primary-95: #e4fafa;
	--color-secondary-40: #914a38;
	--color-secondary-50: #c67560;
	--color-secondary-95: #ffede8;
	--color-neutral-80: #bec9c8;
	--color-neutral-90: #e2e2e8;
	--color-neutral-95: #f0f0f6;
	--clr-brand: var(--color-primary-60);
	--clr-action: var(--color-secondary-50);
	--clr-action-hover: var(--color-secondary-40);
	--clr-text-primary: #1a1c20;
	--clr-text-secondary: #3f4948;
	--clr-bg-page: #f9f9ff;
	--clr-bg-card: #ffffff;
	--clr-bg-teal-tint: rgba(74, 148, 148, 0.08);
	--clr-progress: var(--color-secondary-50);
	--clr-progress-track: var(--color-neutral-90);
	--font-display: "Cormorant Garamond", Georgia, serif;
	--font-body: "Jost", "Plus Jakarta Sans", system-ui, sans-serif;
	--shadow-card: 0 4px 20px rgba(45, 45, 53, 0.05);
	--shadow-raised: 0 6px 24px rgba(45, 45, 53, 0.1);
	--radius-sm: 4px;
	--radius-full: 9999px;
}

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

html {
	margin: 0;
	background: var(--clr-bg-page);
}

body.cw-onboarding-body {
	margin: 0;
	min-height: 100vh;
	background: var(--clr-bg-page);
	color: var(--clr-text-primary);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
}

.onboarding {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	flex-direction: column;
	overflow: hidden;
	background: var(--clr-bg-page);
	opacity: 0;
	transition: opacity 0.45s ease;
}

.onboarding.active {
	display: flex;
	opacity: 1;
}

body.cw-onboarding-body.admin-bar .onboarding {
	top: 32px;
}

.onboarding::before,
.onboarding::after {
	position: absolute;
	z-index: 0;
	border-radius: 50%;
	content: "";
	filter: blur(40px);
	opacity: 0.55;
	pointer-events: none;
}

.onboarding::before {
	top: -180px;
	left: -160px;
	width: 520px;
	height: 520px;
	background: radial-gradient(circle, var(--color-primary-95) 0%, transparent 70%);
}

.onboarding::after {
	right: -140px;
	bottom: -160px;
	width: 480px;
	height: 480px;
	background: radial-gradient(circle, var(--color-secondary-95) 0%, transparent 70%);
}

.ob-top {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 28px 40px 0;
}

.ob-logo-circle {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.ob-logo-circle img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ob-back {
	padding: 0;
	border: 0;
	background: none;
	color: var(--clr-text-secondary);
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 400;
	text-decoration: underline;
	cursor: pointer;
	transition: color 0.2s, opacity 0.2s;
}

.ob-back:hover,
.ob-back:focus-visible {
	color: var(--clr-brand);
	background: none;
}

.ob-back.invisible {
	opacity: 0;
	pointer-events: none;
}

.progress-wrap {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.progress-track {
	position: relative;
	flex: 1;
	height: 4px;
	overflow: hidden;
	border-radius: var(--radius-full);
	background: var(--clr-progress-track);
}

.progress-fill {
	width: 0%;
	height: 100%;
	border-radius: var(--radius-full);
	background: var(--clr-progress);
	transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-label {
	min-width: 56px;
	color: var(--clr-text-secondary);
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0;
	text-align: right;
	text-transform: uppercase;
	white-space: nowrap;
}

.ob-skip {
	padding: 6px 4px;
	border: 0;
	background: none;
	color: var(--clr-text-secondary);
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 400;
	cursor: pointer;
	transition: color 0.2s;
}

.ob-skip:hover,
.ob-skip:focus-visible {
	color: var(--clr-brand);
}

.ob-stage {
	position: relative;
	z-index: 2;
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 32px 40px 56px;
	overflow: auto;
}

.ob-form {
	display: contents;
}

.ob-status {
	position: absolute;
	top: 24px;
	left: 50%;
	z-index: 5;
	width: min(540px, calc(100% - 40px));
	padding: 12px 16px;
	border: 1px solid rgba(186, 26, 26, 0.2);
	border-radius: 8px;
	background: rgba(255, 218, 214, 0.92);
	color: #93000a;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
	transform: translateX(-50%);
}

.ob-step {
	display: none;
	flex-direction: column;
	gap: 28px;
	width: 100%;
	max-width: 620px;
	margin: 0;
}

.ob-step.active {
	display: flex;
	animation: obStepIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.ob-step.leaving {
	display: flex;
	animation: obStepOut 0.3s ease both;
}

@keyframes obStepIn {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes obStepOut {
	from {
		opacity: 1;
		transform: translateY(0);
	}

	to {
		opacity: 0;
		transform: translateY(-10px);
	}
}

.ob-eyebrow {
	margin: 0 0 4px;
	color: var(--clr-brand);
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: uppercase;
}

.ob-title {
	margin: 0;
	color: var(--clr-text-primary);
	font-family: var(--font-display);
	font-size: clamp(36px, 4.4vw, 52px);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.1;
	text-wrap: balance;
}

.ob-title em {
	color: var(--clr-brand);
	font-style: italic;
}

.ob-help {
	margin: 6px 0 0;
	color: var(--clr-text-secondary);
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.6;
}

.ob-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}

.ob-options.grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.ob-option {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 16px 20px;
	border: 1px solid var(--color-neutral-90);
	border-radius: 14px;
	background: var(--clr-bg-card);
	box-shadow: none;
	color: var(--clr-text-primary);
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.18s, background 0.18s, transform 0.15s, box-shadow 0.2s;
}

.ob-option:hover,
.ob-option:focus-within {
	border-color: var(--color-primary-70);
	background: #fdfdff;
	box-shadow: var(--shadow-card);
	transform: translateY(-1px);
}

.ob-option.selected {
	border-color: var(--clr-brand);
	background: var(--clr-bg-teal-tint);
	box-shadow: 0 0 0 1px var(--clr-brand) inset;
}

.ob-option-input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.ob-option .opt-tick {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: 1.5px solid var(--color-neutral-80);
	border-radius: var(--radius-sm);
	background: #ffffff;
	transition: all 0.18s;
}

.ob-option.radio .opt-tick {
	border-radius: 50%;
}

.ob-option.selected .opt-tick {
	border-color: var(--clr-brand);
	background: var(--clr-brand);
}

.ob-option .opt-tick svg {
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.18s, transform 0.18s;
}

.ob-option.selected .opt-tick svg {
	opacity: 1;
	transform: scale(1);
}

.ob-option.radio .opt-tick::after {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ffffff;
	content: "";
	opacity: 0;
	transform: scale(0.4);
	transition: opacity 0.18s, transform 0.18s;
}

.ob-option.radio.selected .opt-tick::after {
	opacity: 1;
	transform: scale(1);
}

.ob-option-text {
	display: block;
	min-width: 0;
}

.ob-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ob-hint {
	margin-top: -20px;
	margin-bottom: -4px;
	color: var(--clr-text-secondary);
	font-size: 12px;
	font-weight: 300;
}

.ob-continue {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-left: auto;
	padding: 14px 30px;
	border: 0;
	border-radius: var(--radius-full);
	background: var(--clr-action);
	box-shadow: 0 2px 12px rgba(198, 117, 96, 0.28);
	color: #ffffff;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.ob-continue:hover,
.ob-continue:focus-visible {
	background: var(--clr-action-hover);
	box-shadow: 0 6px 22px rgba(198, 117, 96, 0.35);
	color: #ffffff;
	transform: translateY(-1px);
}

.ob-continue:active {
	transform: translateY(0);
}

.ob-continue:disabled,
.ob-continue.is-loading {
	background: var(--color-neutral-80);
	box-shadow: none;
	cursor: not-allowed;
	opacity: 0.6;
	transform: none;
}

.ob-intro {
	display: none;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 720px;
	gap: 32px;
	text-align: center;
}

.ob-intro.active {
	display: flex;
}

.intro-mark {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 120px;
}

.intro-mark svg {
	position: absolute;
	inset: 0;
}

.intro-mark .ring {
	animation: drawRing 1.2s ease-out 0.1s forwards;
	stroke-dasharray: 320;
	stroke-dashoffset: 320;
}

.intro-mark .ring.two {
	animation-delay: 0.35s;
	animation-duration: 1.4s;
}

.intro-mark .star {
	opacity: 0;
	transform-origin: center;
	animation: popStar 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards;
}

@keyframes drawRing {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes popStar {
	0% {
		opacity: 0;
		transform: scale(0.4) rotate(-30deg);
	}

	100% {
		opacity: 1;
		transform: scale(1) rotate(0deg);
	}
}

.intro-title {
	margin: 0;
	color: var(--clr-text-primary);
	font-family: var(--font-display);
	font-size: clamp(38px, 4.8vw, 60px);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.1;
	opacity: 0;
	text-wrap: balance;
	animation: fadeUp 0.7s ease 0.55s forwards;
}

.intro-title em {
	color: var(--clr-brand);
	font-style: italic;
}

.intro-sub {
	max-width: 440px;
	margin: 0;
	color: var(--clr-text-secondary);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.6;
	opacity: 0;
	animation: fadeUp 0.7s ease 0.85s forwards;
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.intro-dots {
	display: flex;
	gap: 6px;
	opacity: 0;
	animation: fadeUp 0.5s ease 1.15s forwards;
}

.intro-dots span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-primary-70);
	animation: dotPulse 1.2s ease-in-out infinite;
}

.intro-dots span:nth-child(2) {
	animation-delay: 0.15s;
}

.intro-dots span:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes dotPulse {
	0%,
	100% {
		opacity: 0.3;
		transform: scale(0.8);
	}

	50% {
		opacity: 1;
		transform: scale(1.1);
	}
}

.ob-pricing {
	display: none;
	flex-direction: column;
	align-self: center;
	width: 100%;
	max-width: 1040px;
	gap: 36px;
}

.ob-pricing.active {
	display: flex;
	animation: obStepIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.pricing-head {
	align-self: center;
	width: 100%;
	max-width: 640px;
	margin: 0 auto 16px;
	text-align: center;
}

.pricing-head .ob-eyebrow {
	margin: 0 0 12px;
}

.pricing-head .ob-title {
	margin: 0 0 12px;
	font-size: clamp(30px, 3.2vw, 40px);
	text-wrap: pretty;
}

.pricing-head .ob-help {
	max-width: 520px;
	margin: 0 auto;
}

.plan-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

.plan-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 36px 30px 30px;
	border: 1px solid var(--color-neutral-90);
	border-radius: 20px;
	background: var(--clr-bg-card);
	box-shadow: var(--shadow-card);
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.plan-card:hover {
	box-shadow: var(--shadow-raised);
	transform: translateY(-3px);
}

.plan-card.featured {
	border: 1.5px solid var(--clr-brand);
	box-shadow: 0 10px 36px rgba(74, 148, 148, 0.14);
}

.plan-badge {
	position: absolute;
	top: -16px;
	left: 50%;
	padding: 8px 18px;
	border-radius: var(--radius-full);
	background: var(--clr-brand);
	box-shadow: 0 4px 14px rgba(74, 148, 148, 0.25);
	color: #ffffff;
	font-family: var(--font-body);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: uppercase;
	white-space: nowrap;
	transform: translateX(-50%);
}

.plan-name {
	margin-bottom: 6px;
	color: var(--clr-text-secondary);
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: uppercase;
}

.plan-card.featured .plan-name {
	color: var(--clr-brand);
}

.plan-price {
	display: flex;
	flex-wrap: nowrap;
	align-items: baseline;
	gap: 4px;
	margin-bottom: 14px;
	white-space: nowrap;
}

.plan-price .amount {
	flex: 0 0 auto;
	padding-right: 18px;
	color: var(--clr-text-primary);
	font-family: var(--font-display);
	font-size: 52px;
	font-style: italic;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1;
	white-space: nowrap;
}

.plan-price .period {
	flex: 0 0 auto;
	color: var(--clr-text-secondary);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 400;
	white-space: nowrap;
}

.plan-chip {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	padding: 6px 14px;
	border-radius: var(--radius-full);
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: uppercase;
}

.plan-chip.teal {
	background: var(--clr-bg-teal-tint);
	color: var(--clr-brand);
}

.plan-chip.neutral {
	background: var(--color-neutral-95);
	color: var(--clr-text-secondary);
}

.plan-desc {
	margin: 0;
	color: var(--clr-text-secondary);
	font-family: var(--font-body);
	font-size: 14.5px;
	font-weight: 300;
	line-height: 1.6;
}

.plan-cta {
	margin-top: auto;
	padding: 14px 22px;
	border: 0;
	border-radius: var(--radius-full);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s, color 0.2s;
}

.plan-cta.primary {
	background: var(--clr-action);
	box-shadow: 0 2px 12px rgba(198, 117, 96, 0.3);
	color: #ffffff;
}

.plan-cta.primary:hover,
.plan-cta.primary:focus-visible {
	background: var(--clr-action-hover);
	box-shadow: 0 6px 20px rgba(198, 117, 96, 0.35);
	transform: translateY(-1px);
}

.plan-cta.ghost {
	border: 1.5px solid var(--clr-brand);
	background: transparent;
	color: var(--clr-brand);
}

.plan-cta.ghost:hover,
.plan-cta.ghost:focus-visible {
	background: var(--clr-bg-teal-tint);
}

.plan-cta.is-loading,
.free-link.is-loading,
.ob-continue.is-loading {
	pointer-events: none;
}

.free-row {
	margin-top: 4px;
	color: var(--clr-text-secondary);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 300;
	text-align: center;
}

.free-link {
	margin-left: 4px;
	padding: 4px 2px;
	border: 0;
	border-bottom: 1px solid var(--color-neutral-80);
	background: none;
	color: var(--clr-text-secondary);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
}

.free-link:hover,
.free-link:focus-visible {
	background: none;
	border-bottom-color: #e07a5f;
	color: #e07a5f;
}

.pricing-note {
	margin: -8px 0 0;
	color: var(--clr-text-secondary);
	font-size: 12px;
	font-weight: 300;
	text-align: center;
}

.pricing-tabs {
	display: none; /* visible only on mobile via breakpoint */
}

.pricing-tab {
	flex: 1;
	padding: 8px 12px;
	border: 0;
	border-radius: var(--radius-full);
	background: transparent;
	color: var(--clr-text-secondary);
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.pricing-tab.active {
	background: #ffffff;
	color: var(--clr-text-primary);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.ob-done {
	display: none;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 560px;
	gap: 24px;
	text-align: center;
}

.ob-done.active {
	display: flex;
	animation: obStepIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.done-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: var(--color-primary-95);
	animation: popStar 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.done-mark svg {
	color: var(--clr-brand);
}

.ob-done .ob-continue,
.cw-onboarding-message .ob-continue {
	margin-left: 0;
}

@media (max-width: 960px) {
	.onboarding.is-pricing-step .ob-stage {
		align-items: flex-start;
	}

	.plan-grid {
		grid-template-columns: 1fr;
		width: 100%;
		max-width: 460px;
		margin: 0 auto;
	}
}

@media (max-width: 720px) {
	body.cw-onboarding-body.admin-bar .onboarding {
		top: 46px;
	}

	/* Hide entire top bar (logo, progress, skip) */
	.ob-top {
		display: none;
	}

	/* Consistent minimal top padding for all steps */
	.ob-stage {
		padding: 20px 20px 24px;
	}

	.ob-title {
		font-size: clamp(32px, 11vw, 42px);
	}

	.intro-title {
		font-size: clamp(36px, 11vw, 50px);
	}

	/* Stack actions vertically: continue → back */
	.ob-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.ob-continue {
		order: 1;
		width: 100%;
		margin-left: 0;
		padding-right: 22px;
		padding-left: 22px;
	}

	.ob-back {
		order: 2;
		text-align: center;
		width: 100%;
		padding: 6px 0;
	}

	/* ── Pricing: show tabs, one card at a time ── */
	.pricing-tabs {
		display: flex;
		gap: 0;
		padding: 3px;
		border-radius: var(--radius-full);
		background: var(--color-neutral-95);
	}

	.plan-card {
		display: none;
	}

	.plan-card.tab-active {
		display: flex;
	}

	/* Badge: move inside card, top-right corner */
	.plan-badge {
		top: 16px;
		right: 16px;
		left: auto;
		transform: none;
		font-size: 9.5px;
		padding: 5px 12px;
	}

	.plan-name {
		padding-right: 110px;
	}

	/* Compact pricing layout to fit without scrolling */
	.ob-pricing {
		gap: 14px;
	}

	.pricing-head {
		margin-bottom: 0;
	}

	.pricing-head .ob-eyebrow {
		margin-bottom: 6px;
	}

	.pricing-head .ob-title {
		font-size: clamp(22px, 5.5vw, 28px);
		margin-bottom: 4px;
	}

	.pricing-head .ob-help {
		font-size: 13px;
	}

	.plan-card.tab-active {
		padding: 20px 18px 16px;
		gap: 10px;
	}

	.plan-price .amount {
		font-size: 38px;
		padding-right: 10px;
	}

	.plan-desc {
		font-size: 13px;
	}

	.pricing-note {
		display: none;
	}

	.free-row {
		margin-top: 0;
		font-size: 13px;
	}
}

@media (max-width: 640px) {
	.ob-options.grid-2 {
		grid-template-columns: 1fr;
	}

	.ob-option {
		padding: 15px 16px;
	}

	.plan-card {
		padding: 32px 24px 26px;
	}
}

@media (max-width: 430px) {
	.ob-actions {
		gap: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.onboarding,
	.progress-fill,
	.ob-step.active,
	.ob-step.leaving,
	.ob-pricing.active,
	.ob-done.active,
	.intro-mark .ring,
	.intro-mark .star,
	.intro-title,
	.intro-sub,
	.intro-dots,
	.intro-dots span,
	.done-mark,
	.ob-option,
	.ob-continue,
	.plan-card,
	.plan-cta,
	.free-link {
		animation: none;
		transition: none;
	}

	.intro-mark .ring {
		stroke-dashoffset: 0;
	}

	.intro-mark .star,
	.intro-title,
	.intro-sub,
	.intro-dots {
		opacity: 1;
	}
}
