/*
 * SaveTrainer onboarding quiz (/savetrainer/start/).
 *
 * The only stylesheet on that page (see st-onboarding.php), so it carries its
 * own fonts and tokens rather than leaning on members.css. One phone-width
 * column; on a wider screen the column sits centred on a quiet background.
 */

@font-face {
	font-family: 'Satoshi';
	src: url('../fonts/satoshi/Satoshi-Variable.woff2') format('woff2');
	font-weight: 300 900;
	font-display: swap;
	font-style: normal;
}

@font-face {
	font-family: 'Hedvig Letters Serif';
	src: url('../fonts/hedvig-letters-serif/HedvigLettersSerif-Variable--latin.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--onb-navy: #2F3B66;
	--onb-ink: #253540;
	--onb-ink-2: #4a5464;
	--onb-muted: #5C6580;
	--onb-line: #C7CFE4;
	--onb-lilac: #E8E6F2;
	--onb-purple: #9285CA;
	--onb-grey: #F0F0F3;
	--onb-green: #72d8a2;
	--onb-green-ink: #1E7A4C;
	--onb-green-soft: #f0faf2;
	--onb-green-tint: #e3f5ee;
	--onb-sans: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--onb-serif: 'Hedvig Letters Serif', Georgia, serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body.st-onb-body {
	margin: 0;
	background: #fff;
	transition: background-color .3s ease;
	color: var(--onb-ink);
	font-family: var(--onb-sans);
	font-size: 18px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.st-onb {
	max-width: 520px;
	margin: 0 auto;
}

/* ---------- screen ---------- */

.onb-screen {
	--onb-bg: #fff;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	padding: 20px 24px calc(28px + env(safe-area-inset-bottom));
	background: var(--onb-bg);
}

.onb-screen--soft {
	--onb-bg: var(--onb-lilac);
}

.onb-screen--dark {
	--onb-bg: var(--onb-navy);
	color: #fff;
}

.onb-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 44px;
}

.onb-top--q {
	display: grid;
	grid-template-columns: 44px 1fr 44px;
}

/* The wordmark's "save" half is currentColor: navy here, white on dark. */
.onb-logo {
	display: block;
	width: auto;
	height: 22px;
	color: var(--onb-navy);
}

.onb-screen--dark .onb-logo,
.onb-screen--dark .onb-corner {
	color: #fff;
}

.onb-corner {
	font-size: 16px;
	font-weight: 500;
	padding: 12px 0;
	color: var(--onb-navy);
}

.onb-back {
	width: 44px;
	height: 44px;
	margin-left: -12px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: none;
	color: var(--onb-navy);
	cursor: pointer;
	border-radius: 50%;
}

.onb-section {
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--onb-muted);
}

.onb-bars {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	margin-top: 6px;
}

.onb-bar {
	display: block;
	height: 5px;
	border-radius: 3px;
	background: var(--onb-lilac);
	overflow: hidden;
}

.onb-screen--soft .onb-bar {
	background: #fff;
}

.onb-bar > span {
	display: block;
	height: 5px;
	background: var(--onb-navy);
	transition: width .3s ease;
}

.onb-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding-top: 26px;
}

.onb-body--center {
	justify-content: center;
	gap: 20px;
	padding-top: 12px;
	padding-bottom: 12px;
}

/* The button stays in reach on every screen. At the larger type sizes a
   screen can run past a small phone, and the next step should never be
   hidden below the fold; content scrolls under a short fade instead. */
.onb-foot {
	position: sticky;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 -24px calc(-28px - env(safe-area-inset-bottom));
	padding: 14px 24px calc(20px + env(safe-area-inset-bottom));
	background: linear-gradient(transparent, var(--onb-bg) 18px);
}

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

.onb-kicker {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--onb-green);
}

.onb-title {
	margin: 0 0 8px;
	font-family: var(--onb-serif);
	font-weight: 400;
	font-size: 31px;
	line-height: 1.18;
	color: var(--onb-navy);
	outline: none;
}

.onb-title--lg {
	font-size: 34px;
	line-height: 1.15;
	margin: 0;
}

.onb-title--xl {
	font-size: 38px;
	line-height: 1.12;
	margin: 0;
}

.onb-screen--dark .onb-title {
	color: #fff;
}

.onb-sub {
	margin: 0 0 22px;
	font-size: 18px;
	color: var(--onb-ink-2);
}

.onb-lead {
	margin: 0;
	font-size: 19px;
	line-height: 1.55;
	color: var(--onb-ink-2);
}

.onb-screen--dark .onb-lead {
	color: rgba(255, 255, 255, .85);
}

.onb-h2 {
	margin: 18px 0 10px;
	font-family: var(--onb-serif);
	font-weight: 400;
	font-size: 22px;
}

.onb-proof {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}

.onb-source,
.onb-fine {
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
	color: var(--onb-muted);
}

.onb-fine {
	text-align: center;
	padding-top: 8px;
}

.onb-note {
	margin: 8px 0 0;
	font-size: 16px;
}

/* ---------- buttons ---------- */

.onb-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 56px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: var(--onb-navy);
	color: #fff;
	font-family: inherit;
	font-size: 19px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

/* wp_head() can print a global a:hover colour; on a navy button that turned
   the label navy too. Every state keeps its own colour. */
.onb-btn:link,
.onb-btn:visited,
.onb-btn:hover,
.onb-btn:focus,
.onb-btn:active {
	color: #fff;
	text-decoration: none;
}

.onb-btn:hover:not(:disabled) {
	background: #3d4b80;
}

.onb-btn--accent:link,
.onb-btn--accent:visited,
.onb-btn--accent:hover,
.onb-btn--accent:focus,
.onb-btn--accent:active {
	color: var(--onb-ink);
}

.onb-btn--accent:hover:not(:disabled) {
	background: #8be3b4;
}

.onb-corner:hover,
.onb-link:hover {
	color: inherit;
	opacity: .8;
}

.onb-btn:disabled {
	opacity: .45;
	cursor: default;
}

.onb-btn--accent {
	background: var(--onb-green);
	color: var(--onb-ink);
}

.onb-link {
	align-self: center;
	padding: 12px;
	border: 0;
	background: none;
	color: var(--onb-navy);
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	text-decoration: underline;
	cursor: pointer;
}

.onb-btn:focus-visible,
.onb-opt:focus-visible,
.onb-tile:focus-visible,
.onb-step:focus-visible,
.onb-back:focus-visible,
.onb-link:focus-visible,
.onb-input:focus-visible {
	outline: 3px solid var(--onb-green);
	outline-offset: 2px;
}

/* ---------- options ---------- */

.onb-opts {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.onb-opt {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 100%;
	min-height: 56px;
	padding: 12px 18px;
	border: 1.5px solid var(--onb-line);
	border-radius: 14px;
	background: #fff;
	color: var(--onb-ink);
	font-family: inherit;
	font-size: 18px;
	text-align: left;
	cursor: pointer;
}

.onb-opt b {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 500;
}

/* A goal's icon -- the same SaveTrainer set Plan Builder uses -- in a fixed
   column so labels that wrap stay aligned. */
.onb-opt-icon {
	flex: none;
	width: 30px;
	height: 30px;
	object-fit: contain;
}

.onb-opt span {
	font-size: 16px;
	line-height: 1.4;
	color: var(--onb-ink-2);
}

.onb-opt.is-on {
	border-color: var(--onb-navy);
	background: var(--onb-green-soft);
}

.onb-opt.is-on b {
	font-weight: 700;
}

.onb-opt--check {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

.onb-opt--check i {
	display: flex;
	color: var(--onb-navy);
	opacity: 0;
	transform: scale(.6);
	transition: opacity .2s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.onb-opt--check.is-on i {
	opacity: 1;
	transform: none;
}

/* The picked goal's line opens rather than appearing: grid rows animate
   from 0fr to 1fr, which a height of auto can't. */
.onb-desc {
	display: grid;
	grid-template-rows: 0fr;
	margin-top: -4px;
	opacity: 0;
	transition: grid-template-rows .28s ease, margin-top .28s ease, opacity .22s ease;
}

.onb-desc > span {
	min-height: 0;
	overflow: hidden;
}

.onb-opt.is-on .onb-desc {
	grid-template-rows: 1fr;
	margin-top: 0;
	opacity: 1;
}

.onb-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.onb-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	height: 112px;
	border: 1.5px solid var(--onb-line);
	border-radius: 16px;
	background: #fff;
	color: var(--onb-navy);
	font-family: inherit;
	cursor: pointer;
}

.onb-tile b {
	font-size: 36px;
	line-height: 1;
}

.onb-tile span {
	font-size: 16px;
	font-weight: 500;
	color: var(--onb-ink-2);
}

.onb-tile.is-on {
	border-color: var(--onb-navy);
	background: var(--onb-green-soft);
}

/* Body figure beside the area buttons. Each highlight is a full-figure PNG on
   a transparent ground, so stacking them with darken keeps every picked area
   navy without the lavender body of the top layer covering the ones below. */
.onb-figure-row {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.onb-figure {
	position: relative;
	flex: none;
	width: 148px;
	aspect-ratio: 2 / 3;
}

.onb-figure img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.onb-figure .onb-layer {
	mix-blend-mode: darken;
	opacity: 0;
	transition: opacity .3s ease;
}

.onb-figure .onb-layer[data-on] {
	opacity: 1;
}

.onb-opts--body {
	flex: 1;
	gap: 8px;
}

.onb-opts--body .onb-opt {
	min-height: 48px;
	padding: 8px 12px;
	border-radius: 12px;
	font-size: 17px;
}

.onb-opts--body .onb-opt.is-on {
	background: var(--onb-navy);
	color: #fff;
}

.onb-opts--body .onb-opt.is-on i {
	color: var(--onb-green);
}

/* ---------- scale ---------- */

.onb-scale-visual {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 190px;
	height: 190px;
	margin: 12px auto 0;
	border-radius: 50%;
	background: var(--onb-green-soft);
}

.onb-scale-visual span {
	display: block;
	border-radius: 50%;
	transition: all .25s ease;
}

.onb-scale-label {
	margin: 16px 0 auto;
	text-align: center;
	font-size: 24px;
	font-weight: 700;
	color: var(--onb-navy);
}

.onb-scale {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 6px;
	margin-top: 20px;
}

.onb-step {
	height: 52px;
	border: 0;
	border-radius: 12px;
	background: var(--onb-lilac);
	color: var(--onb-navy);
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
}

.onb-step.is-on {
	background: var(--onb-navy);
	color: #fff;
}

.onb-scale-ends {
	display: flex;
	justify-content: space-between;
	margin: 8px 2px 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--onb-muted);
}

/* ---------- notes ---------- */

.onb-medal {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--onb-navy);
	color: var(--onb-green);
}

.onb-medal--light {
	width: 64px;
	height: 64px;
	margin-bottom: 18px;
	background: var(--onb-green-tint);
	color: var(--onb-green-ink);
}

.onb-points {
	list-style: none;
	margin: 0;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: #fff;
	border-radius: 16px;
}

.onb-points li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 18px;
	line-height: 1.45;
}

.onb-points svg {
	flex: none;
	margin-top: 2px;
	color: var(--onb-green-ink);
}

/* "Your first month" chart on the balance note. Lines draw in (pathLength=1
   makes the dash maths independent of the curve's real length), the dots pop
   in week by week, then the "You start here" marker settles and pulses. */
.onb-progress {
	margin: 0;
	padding: 16px 16px 12px;
	background: #fff;
	border-radius: 18px;
}

.onb-progress-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 4px;
	font-size: 16px;
}

.onb-progress-head span {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--onb-muted);
}

.onb-progress-head i {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.onb-progress-head .k-strength { background: var(--onb-navy); }
.onb-progress-head .k-balance { background: var(--onb-green); margin-left: 6px; }

.onb-progress svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.onb-base {
	stroke: var(--onb-lilac);
	stroke-width: 2;
	stroke-linecap: round;
}

.onb-area {
	fill: url(#onb-area);
	opacity: 0;
	animation: onb-fade .8s ease-out 1.1s forwards;
}

.onb-line {
	fill: none;
	stroke-width: 5;
	stroke-linecap: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: onb-draw 1.4s cubic-bezier(.4, 0, .2, 1) .25s forwards;
}

.onb-line--strength { stroke: var(--onb-navy); }
.onb-line--balance { stroke: var(--onb-green); animation-delay: .45s; }

.onb-dot {
	fill: #fff;
	stroke: var(--onb-navy);
	stroke-width: 3;
	transform-box: fill-box;
	transform-origin: center;
	transform: scale(0);
	animation: onb-pop .35s cubic-bezier(.34, 1.56, .64, 1) forwards;
}

.onb-here {
	opacity: 0;
	animation: onb-fade .5s ease-out 1.6s forwards;
}

.onb-here rect {
	fill: var(--onb-navy);
}

.onb-here text {
	fill: #fff;
	font-family: var(--onb-sans);
	font-size: 12px;
	font-weight: 700;
}

.onb-pulse {
	fill: var(--onb-green);
	transform-box: fill-box;
	transform-origin: center;
	animation: onb-pulse 2s ease-out 2s infinite;
}

.onb-progress .onb-source {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--onb-lilac);
	font-size: 14px;
}

.onb-weeks {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 6px;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	color: var(--onb-muted);
}

/* "You've been heard" screens arrive in a short cascade, the quote last. */
.onb-screen--soft .onb-body > * {
	animation: onb-rise .5s ease-out both;
}

/* The chart screen carries the most; tighter spacing keeps its button on a
   375x812 phone without scrolling. */
.onb-screen--soft .onb-body--center:has(.onb-progress) {
	gap: 16px;
}

.onb-screen--soft .onb-body--center:has(.onb-progress) .onb-title--lg {
	font-size: 31px;
}

.onb-screen--soft .onb-body--center:has(.onb-progress) .onb-quote {
	padding: 14px 16px;
}

.onb-screen--soft .onb-body > :nth-child(2) { animation-delay: .08s; }
.onb-screen--soft .onb-body > :nth-child(3) { animation-delay: .16s; }
.onb-screen--soft .onb-body > :nth-child(4) { animation-delay: .24s; }
.onb-screen--soft .onb-body > :nth-child(5) { animation-delay: .32s; }
.onb-screen--soft .onb-body > .onb-quote { animation-delay: 1.9s; }

@keyframes onb-draw { to { stroke-dashoffset: 0; } }
@keyframes onb-fade { to { opacity: 1; } }
@keyframes onb-pop { to { transform: scale(1); } }
@keyframes onb-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes onb-pulse {
	0% { transform: scale(1); opacity: .7; }
	70% { transform: scale(3); opacity: 0; }
	100% { transform: scale(3); opacity: 0; }
}

/* Bone-safe by design: what every class leaves out. */
.onb-rules {
	list-style: none;
	margin: 0;
	padding: 6px 18px;
	background: #fff;
	border-radius: 16px;
}

.onb-rules li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 12px 0;
	border-top: 1px solid var(--onb-lilac);
}

.onb-rules li:first-child {
	border-top: 0;
}

.onb-rule-img {
	flex: none;
	width: 76px;
	height: 76px;
	border-radius: 12px;
	object-fit: cover;
	background: #fff;
}

.onb-rules li:has(.onb-rule-img) {
	align-items: center;
}

.onb-rules svg {
	flex: none;
	margin-top: 1px;
	color: #b42318;
}

.onb-rules b {
	display: block;
	font-size: 18px;
	line-height: 1.35;
}

.onb-rules span {
	font-size: 16px;
	line-height: 1.45;
	color: var(--onb-ink-2);
}

.onb-members {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 16px;
	background: #fff;
	border-radius: 16px;
}

.onb-members img {
	flex: none;
	width: 112px;
	height: 64px;
	object-fit: cover;
	border-radius: 10px;
	background: var(--onb-line);
}

.onb-members p {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
}

.onb-members b {
	display: block;
	font-size: 19px;
}

/* ---------- quotes ---------- */

.onb-quote {
	margin: 0;
	padding: 18px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .08);
}

.onb-quote--light {
	background: #fff;
}

/* With her photo beside the words. */
.onb-quote.has-photo {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 14px;
	align-items: start;
}

.onb-quote-photo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.onb-watch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding: 9px 16px;
	border: 1.5px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: var(--onb-green);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.onb-quote--light .onb-watch {
	color: var(--onb-navy);
}

@media (hover: hover) {
	.onb-watch:hover {
		background: var(--onb-green);
		border-color: var(--onb-green);
		color: var(--onb-navy);
	}
	.onb-quote--light .onb-watch:hover {
		background: var(--onb-navy);
		border-color: var(--onb-navy);
		color: #fff;
	}
}

.onb-watch:focus-visible {
	outline: 3px solid var(--onb-green);
	outline-offset: 2px;
}

/* The video story, over the quiz. */
.onb-video {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 16px;
	background: rgba(20, 26, 48, .94);
}

.onb-video-frame {
	width: min(100%, 900px);
	aspect-ratio: 16 / 9;
}

.onb-video-frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 12px;
	background: #000;
}

.onb-video-close {
	padding: 12px 32px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--onb-navy);
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
}

body.onb-has-video {
	overflow: hidden;
}

/* Reset hard: wp_head() can still print global styles that give blockquote
   its own colour, border and italics, which made the quotes unreadable. */
.onb-quote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	quotes: none;
	font-family: var(--onb-sans);
	font-style: normal;
	font-size: 18px;
	line-height: 1.5;
	color: #fff;
}

.onb-quote--light blockquote {
	color: var(--onb-ink);
}

.onb-quote figcaption {
	margin-top: 8px;
	font-size: 15px;
	color: rgba(255, 255, 255, .75);
}

.onb-quote--light figcaption {
	color: var(--onb-muted);
}

.onb-stars {
	display: block;
	margin-bottom: 8px;
	color: #ffce88;
	letter-spacing: 2px;
}

/* ---------- loader ---------- */

.onb-loads {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin: 10px 0;
}

.onb-load > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
	font-size: 18px;
}

.onb-load.is-done b {
	color: var(--onb-green);
}

.onb-track {
	display: block;
	height: 6px;
	border-radius: 3px;
	background: rgba(255, 255, 255, .15);
	overflow: hidden;
}

.onb-track > span {
	display: block;
	width: 0;
	height: 6px;
	border-radius: 3px;
	background: var(--onb-green);
}

/* ---------- email ---------- */

.onb-form {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.onb-label {
	display: block;
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: 700;
}

.onb-input {
	width: 100%;
	height: 56px;
	padding: 0 16px;
	border: 1.5px solid var(--onb-line);
	border-radius: 14px;
	font-family: inherit;
	font-size: 18px;
	color: var(--onb-ink);
}

.onb-input[aria-invalid="true"] {
	border-color: #b42318;
}

.onb-error {
	margin: 8px 0 0;
	font-size: 16px;
	color: #b42318;
}

.onb-screen--dark .onb-error {
	color: #ffd2cc;
}

/* ---------- plan ---------- */

.onb-pill {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--onb-green-tint);
	color: var(--onb-green-ink);
	font-size: 14px;
	font-weight: 700;
}

.onb-plan {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 20px 18px;
	border-radius: 18px;
	background: var(--onb-plan-color, var(--onb-navy));
	color: #fff;
}

/* Same treatment as the Plan Library card: greyscale photo multiplied at half
   strength, so the plan colour stays the colour. */
.onb-plan-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	mix-blend-mode: multiply;
	filter: grayscale(100%);
	opacity: .5;
	pointer-events: none;
}

.onb-plan > :not(.onb-plan-bg) {
	position: relative;
}

.onb-plan-kicker,
.onb-plan-meta {
	font-size: 15px;
	font-weight: 500;
	color: #fff;
	/* Plan colours run to bright limes and magentas; a soft shadow keeps white
	   lettering readable on all of them. */
	text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

.onb-plan .onb-title {
	margin: 0;
	font-size: 28px;
	line-height: 1.2;
	color: #fff;
}

.onb-plan.has-logo {
	align-items: center;
	text-align: center;
	padding: 18px 18px 20px;
}

.onb-plan-logo {
	display: block;
	max-width: 92%;
	max-height: 132px;
	width: auto;
	height: auto;
	margin: 4px auto;
}

.onb-plan.is-light,
.onb-plan.is-light .onb-title {
	color: var(--onb-ink);
}

.onb-plan.is-light .onb-plan-kicker,
.onb-plan.is-light .onb-plan-meta {
	color: var(--onb-ink-2);
	text-shadow: none;
}

/* The reveal runs longer than a phone screen; keep its one action in reach. */
/* Who leads the plan: overlapping photos and their names. */
.onb-trainers {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 14px;
}

.onb-faces {
	display: flex;
	flex: none;
}

.onb-faces img,
.onb-faces i {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid #fff;
	object-fit: cover;
	background: var(--onb-lilac);
}

.onb-faces i {
	display: flex;
	align-items: center;
	justify-content: center;
	font-style: normal;
	font-weight: 700;
	color: var(--onb-navy);
}

.onb-faces > :not(:first-child) {
	margin-left: -12px;
}

.onb-trainers p {
	margin: 0;
	font-size: 16px;
	line-height: 1.35;
}

.onb-trainers b {
	display: block;
}

.onb-trainers p span {
	font-size: 15px;
	color: var(--onb-muted);
}

.onb-why {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.onb-why > div {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--onb-grey);
}

.onb-why span {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--onb-muted);
}

.onb-why b {
	font-size: 17px;
}

.onb-points--plain {
	margin-top: 16px;
	padding: 0;
	background: none;
	gap: 10px;
}

.onb-points--plain li {
	font-size: 17px;
}

/* ---------- paywall ---------- */

.onb-secure {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	color: var(--onb-muted);
}

.onb-body--pay {
	padding-top: 14px;
}

.onb-offer {
	margin: 0 0 16px;
	padding: 10px 12px;
	border-radius: 12px;
	background: #fff4e3;
	color: #7a4a00;
	font-size: 15px;
	font-weight: 500;
	text-align: center;
}

.onb-offer b {
	font-variant-numeric: tabular-nums;
}

.onb-body--pay .onb-title {
	margin-bottom: 6px;
}

/* One running sentence with the plan's colour as a dot in front; a flex row
   would split the text and the bold name into separate columns. */
.onb-yourplan {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 1.45;
	color: var(--onb-ink-2);
}

.onb-yourplan i {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 8px;
	border-radius: 50%;
	vertical-align: -1px;
}

.onb-yourplan b {
	color: var(--onb-ink);
}

.onb-prices {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.onb-price {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px;
	border: 1.5px solid var(--onb-line);
	border-radius: 14px;
	background: #fff;
	color: var(--onb-ink);
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}

.onb-price.is-on {
	border: 2px solid var(--onb-navy);
	padding: 13.5px;
	background: var(--onb-green-soft);
}

.onb-price > i {
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid var(--onb-line);
	transition: border .2s ease;
}

.onb-price.is-on > i {
	border: 7px solid var(--onb-navy);
}

.onb-price-main {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
}

.onb-price-main b {
	font-size: 19px;
}

.onb-price-main em {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--onb-green-tint);
	color: var(--onb-green-ink);
	font-size: 13px;
	font-style: normal;
	font-weight: 700;
}

.onb-price-main small {
	flex-basis: 100%;
	font-size: 15px;
	color: var(--onb-muted);
}

.onb-price-amt {
	text-align: right;
}

.onb-price-amt b {
	display: block;
	font-size: 21px;
}

.onb-price-amt small {
	font-size: 14px;
	color: var(--onb-muted);
}

@media (hover: hover) {
	.onb-price:hover:not(.is-on) {
		border-color: #9aa6c4;
	}
}

.onb-timeline {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
}

.onb-timeline li {
	position: relative;
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 14px;
	padding-bottom: 16px;
}

.onb-timeline li:last-child {
	padding-bottom: 0;
}

/* The line joining one badge to the next. */
.onb-timeline li:not(:last-child)::before {
	content: '';
	position: absolute;
	left: 16px;
	top: 34px;
	bottom: 0;
	width: 2px;
	background: #DFE3EC;
}

.onb-tl-icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #E4F6EF;
	color: var(--onb-navy);
	font-size: 14px;
	font-weight: 700;
}

.onb-tl-icon svg {
	width: 16px;
	height: 16px;
}

.onb-timeline p {
	margin: 0;
	padding-top: 5px;
	font-size: 17px;
	line-height: 1.45;
	color: var(--onb-ink-2);
}

.onb-timeline b {
	display: block;
	margin-bottom: 2px;
	font-size: 18px;
	color: var(--onb-navy);
}

.onb-fine a {
	color: inherit;
}

/* ---------- motion ----------
   Colour changes fade, taps press in slightly, and each new screen fades up.
   Hover tints only where there is a real pointer, so a phone never shows a
   hover state stuck on the option just tapped. */

.onb-opt,
.onb-tile,
.onb-step,
.onb-btn,
.onb-back,
.onb-link,
.onb-corner {
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease, transform .15s ease;
}

.onb-opt:active,
.onb-tile:active,
.onb-step:active,
.onb-btn:active:not(:disabled) {
	transform: scale(.98);
}

@media (hover: hover) {
	.onb-opt:hover:not(.is-on),
	.onb-tile:hover:not(.is-on) {
		border-color: #9aa6c4;
		background: #f7f7fb;
	}

	.onb-opts--body .onb-opt:hover:not(.is-on) {
		background: #f7f7fb;
	}

	.onb-step:hover:not(.is-on) {
		background: #d9d6ea;
	}

	.onb-back:hover {
		background: rgba(47, 59, 102, .08);
	}
}

.onb-screen {
	animation: onb-screen-in .32s ease-out both;
}

@keyframes onb-screen-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

/* ---------- page tone ----------
   The column stays phone-width, but the page behind it takes each screen's
   colour (st-onboarding.js sets data-tone), so a wide window reads as one
   page rather than a card floating on grey. */

body.st-onb-body[data-tone="dark"] {
	background: var(--onb-navy);
}

body.st-onb-body[data-tone="soft"] {
	background: var(--onb-lilac);
}

@media (min-width: 560px) {
	.onb-screen {
		padding-top: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.onb-bar > span,
	.onb-scale-visual span {
		transition: none;
	}

	/* Everything lands in its finished state, with nothing moving. */
	.onb-screen,
	.onb-desc,
	.onb-figure .onb-layer,
	.onb-opt--check i,
	.onb-opt,
	.onb-tile,
	.onb-step,
	.onb-btn,
	body.st-onb-body {
		animation: none;
		transition: none;
	}

	.onb-line,
	.onb-area,
	.onb-dot,
	.onb-here,
	.onb-screen--soft .onb-body > * {
		animation: none;
		opacity: 1;
		transform: none;
		stroke-dashoffset: 0;
	}

	.onb-pulse {
		animation: none;
		opacity: 0;
	}
}


/*--------------------------------------------------------------
# Clips
# Short silent loops from savetrainer.com (si_onb_clips()): the goal's
# footage on the progress screen, a class on a phone on the plan screen.
--------------------------------------------------------------*/

.onb-clip {
	margin: 20px 0 0;
	overflow: hidden;
	border-radius: 18px;
	background: #e9ebf2;
	box-shadow: 0 10px 28px rgba(47, 59, 102, .14);
}

.onb-clip video,
.onb-clip img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.onb-clip.onb-clip--wide {
	aspect-ratio: 16 / 9;
}

.onb-clip.onb-clip--square {
	aspect-ratio: 1;
	max-width: 360px;
	margin-left: auto;
	margin-right: auto;
}

/* The goal note's icon, for a goal with no clip (flexibility). */
.onb-body .onb-goal-medal {
	display: block;
	width: 72px;
	height: 72px;
	margin: 0 auto 16px;
}

/* Answers read back into a note ({age_them}, {diagnosis}) stand out. */
.onb-lead b {
	font-weight: 700;
	color: #253540;
}

/* Continue held back until it's needed (needsContinue() in the script). */
.onb-foot .onb-btn[hidden] {
	display: none;
}

/*--------------------------------------------------------------
# Paywall: $1 today, and What's included
--------------------------------------------------------------*/

/* Leads each option's small print, so the per-month figure beside it reads
   as what comes after the trial. */
.onb-price .onb-price-today {
	font-weight: 700;
	color: var(--onb-green-ink);
}

.onb-included {
	margin: 24px 0 4px;
	border-top: 1px solid rgba(47, 59, 102, .14);
	border-bottom: 1px solid rgba(47, 59, 102, .14);
}

.onb-included > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 2px;
	list-style: none;
	cursor: pointer;
	font-weight: 700;
	font-size: 18px;
	color: #253540;
}

.onb-included > summary::-webkit-details-marker {
	display: none;
}

/* A chevron that turns when the drawer opens. */
.onb-included > summary::after {
	content: "";
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	margin-right: 4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
	transition: transform .2s ease;
}

.onb-included[open] > summary::after {
	transform: translateY(2px) rotate(-135deg);
}

.onb-included > summary:focus-visible {
	outline: 2px solid #2F3B66;
	outline-offset: 2px;
	border-radius: 6px;
}

.onb-included-body {
	padding: 0 2px 18px;
}

.onb-included-body h3 {
	margin: 16px 0 6px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	color: #253540;
}

.onb-included-body h3:first-child {
	margin-top: 2px;
}

.onb-included-body ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.onb-included-body li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 4px 0;
	font-size: 16px;
	line-height: 1.45;
	color: #4a5470;
}

.onb-included-body li svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	color: #40c48b;
}

/* A note's second paragraph (step.more), set a touch tighter to the first. */
.onb-lead.onb-lead--more {
	margin-top: -4px;
}

/* "You're in the right place": the members card leads with a real class
   (si_onb_clips() classes, the class stretch only) in place of the faces
   photo. The square loop is shown whole -- coach name and captions too --
   in a 4:3 box, the sides filled with the clip's own edge navy so they
   read as part of it. */
.onb-members.onb-members--clip {
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	padding: 8px;
}

.onb-members--clip .onb-clip.onb-clip--class {
	margin: 0;
	aspect-ratio: 4 / 3;
	background: #111830;
	border-radius: 12px;
	box-shadow: none;
}

.onb-members--clip p {
	padding: 6px 6px 0;
	text-align: center;
}

.onb-members--clip .onb-clip--class video,
.onb-members--clip .onb-clip--class img {
	object-fit: contain;
}

/*--------------------------------------------------------------
# Email screen
# The plan waiting for them, what the email holds, and a word on privacy.
--------------------------------------------------------------*/

.onb-body.onb-body--email {
	gap: 0;
}

.onb-plan.onb-plan--mini {
	gap: 6px;
	margin-bottom: 22px;
	padding: 16px 18px 18px;
}

.onb-plan--mini .onb-plan-kicker {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.onb-plan--mini .onb-plan-kicker svg {
	width: 16px;
	height: 16px;
}

.onb-plan--mini .onb-plan-logo {
	max-width: 70%;
	max-height: 64px;
}

.onb-plan--mini .onb-plan-name {
	position: relative;
	font-size: 22px;
	line-height: 1.2;
}

.onb-email-gets {
	margin: 14px 0 22px;
}

.onb-input::placeholder {
	color: #9aa1b5;
}

.onb-private {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 10px 0 0;
	font-size: 15px;
	color: var(--onb-muted);
}

/*--------------------------------------------------------------
# Scroll cue
# A fade above the pinned button while a screen runs on below it, so it
# reads as "there's more" rather than as cut off; gone at the bottom.
--------------------------------------------------------------*/

/* The fade above does the blending now, so the panel itself is solid: its
   old transparent top strip let text show through again just under the
   fade. */
.onb-foot {
	background: var(--onb-bg);
}

.onb-foot::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 36px;
	background: linear-gradient(to bottom, transparent, var(--onb-bg));
	pointer-events: none;
	opacity: 0;
	transition: opacity .2s ease;
}

/* Only while there is more below (data-onb-more, set by the script on
   scroll): at the bottom of a screen nothing is faded out. */
body[data-onb-more] .onb-foot::before {
	opacity: 1;
}

/* Above the sign-in button for a member who took the quiz signed out. */
.onb-foot .onb-member-note {
	margin: 0 0 6px;
	font-size: 16px;
	text-align: center;
	color: var(--onb-ink-2);
}

/* Level bars on Beginner / Intermediate / Advanced (levelBars()). */
.onb-opt .onb-bars {
	flex: none;
	width: 30px;
	height: 25px;
}

.onb-bars rect {
	fill: #D5DAE6;
}

.onb-bars rect.on {
	fill: #40c48b;
}

