/*
 * SoldierStrong blocks. Type and color follow the soldier theme and the WPBakery program pages:
 * Cinzel headings, Open Sans body, navy #1b365d / #113968, red #c92e2e, light #f4f7f6.
 *
 * Spacing scale (desktop / phone):
 *   section padding   112 / 64
 *   heading -> text    20
 *   text -> text       18 (one line of body text)
 *   text -> button     36 / 32
 *   split column gap   80 / 32
 */
:root {
	--ss-navy: #1b365d;
	--ss-navy-band: #113968;
	--ss-red: #c92e2e;
	--ss-red-dark: #a82222;
	--ss-light: #f4f7f6;
	--ss-text: #2b2b2b;
	--ss-muted: #4f5660;
	--ss-gutter: 80px;
	--ss-pad-y: 112px;
	--ss-gap-heading: 20px;
	--ss-gap-text: 18px;
	--ss-gap-action: 36px;
}

body.ss-blocks-page { overflow-x: clip; }
body.ss-blocks-page .entry,
body.ss-blocks-page .entry-content { margin-bottom: 0; padding: 0; }
body.ss-blocks-page .content { padding-top: 0; }

/* Full-bleed bands inside Genesis' centered .site-inner */
.ss-fullbleed {
	position: relative;
	width: auto;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.ss-block { box-sizing: border-box; font-family: "Open Sans", sans-serif; color: var(--ss-text); }
.ss-block *, .ss-block *::before, .ss-block *::after { box-sizing: inherit; }

/* ---------- Type ---------- */
.ss-block h2,
.ss-block h3 {
	margin: 0 0 var(--ss-gap-heading);
	font-family: Cinzel, Georgia, serif;
	color: var(--ss-navy);
	text-wrap: balance;
}
.ss-block h2 { font-size: 34px; line-height: 1.15; font-weight: 700; }
.ss-block h3 { font-size: 24px; line-height: 1.2; font-weight: 600; }

.ss-block p,
.ss-block li { font-size: 19px; line-height: 1.6; text-wrap: pretty; }
.ss-block p { margin: 0 0 var(--ss-gap-text); }
.ss-flow > :last-child { margin-bottom: 0; }

.ss-block a:not(.ss-btn):not(.wp-block-button__link) { color: var(--ss-red-dark); text-decoration: underline; text-underline-offset: 2px; }
.ss-block a:not(.ss-btn):not(.wp-block-button__link):hover { color: var(--ss-navy); }

.ss-block ol,
.ss-block ul:not(.ss-stats-list) { margin: 0 0 var(--ss-gap-text) 1.3em; padding: 0; }
.ss-block ol li,
.ss-block ul:not(.ss-stats-list) li { margin: 0 0 8px; padding-left: 4px; }
.ss-block ol li:last-child,
.ss-block ul:not(.ss-stats-list) li:last-child { margin-bottom: 0; }

/* ---------- Focus (visible on light and dark bands) ---------- */
.ss-block a:focus,
.ss-block button:focus { outline: none; box-shadow: none; }
.ss-block a:focus-visible,
.ss-block button:focus-visible { outline: 3px solid var(--ss-red); outline-offset: 3px; }
.ss-bg-navy a:focus-visible,
.ss-hero a:focus-visible { outline-color: #fff; }

/* ---------- Buttons: the theme's red program button ---------- */
.ss-btn,
.ss-block .wp-block-button__link {
	display: inline-block;
	margin: 0;
	padding: 12px 26px;
	border: 2px solid var(--ss-red);
	border-radius: 0;
	background: var(--ss-red);
	color: #fff;
	font: 600 17px/1.4 "Open Sans", sans-serif;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease;
}
.ss-hero .ss-btn { border-color: #fff; }
.ss-btn:hover,
.ss-btn:focus,
.ss-block .wp-block-button__link:hover,
.ss-block .wp-block-button__link:focus { background: var(--ss-red-dark); border-color: var(--ss-red-dark); color: #fff; text-decoration: none; }
.ss-hero .ss-btn:hover { border-color: #fff; }
.ss-block .wp-block-buttons { margin-top: var(--ss-gap-action); }
.ss-block .wp-block-buttons + p { margin-top: var(--ss-gap-action); }
.ss-align-center .wp-block-buttons { justify-content: center; }

/* ---------- Program Hero ---------- */
.ss-hero {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 78vh;
	min-height: min(78svh, 760px);
	overflow: hidden;
	background: #071a33;
	color: #fff;
	text-align: center;
}
.ss-hero-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ss-hero.has-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(3, 12, 26, .55);
}
.ss-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 980px;
	padding: 96px 24px;
}
.ss-hero-badge {
	display: block;
	width: 96px;
	height: 96px;
	margin: 0 auto 28px;
}
.ss-hero-title {
	margin: 0;
	font: 600 60px/1.1 Cinzel, Georgia, serif;
	color: #fff;
	text-wrap: balance;
}
.ss-hero .ss-hero-subtitle {
	max-width: 720px;
	margin: 20px auto 0;
	font: 600 24px/1.35 Cinzel, Georgia, serif;
	color: #fff;
	text-wrap: balance;
}
.ss-btn-hero { margin-top: 40px; }

/* ---------- Bands ---------- */
.ss-bg-white { background: #fff; }
.ss-bg-light { background: var(--ss-light); }
.ss-bg-navy { background: var(--ss-navy-band); color: #fff; }
.ss-bg-navy h2,
.ss-bg-navy h3,
.ss-bg-navy p,
.ss-bg-navy li { color: #fff; }
.ss-bg-navy a:not(.ss-btn):not(.wp-block-button__link) { color: #fff; }

.ss-section,
.ss-stats,
.ss-split,
.ss-quote { padding: var(--ss-pad-y) var(--ss-gutter); }

/* Two white bands in a row read as one; drop the doubled padding between them. */
.ss-bg-white + .ss-bg-white { padding-top: 0; }

.ss-section-inner { max-width: 760px; margin: 0 auto; }
.ss-width-wide .ss-section-inner,
.ss-stats .ss-section-inner { max-width: 1080px; }
.ss-stats .ss-section-inner h2,
.ss-stats .ss-section-inner p:not(.ss-stats-note) { max-width: 760px; margin-left: auto; margin-right: auto; }
.ss-align-center,
.ss-stats { text-align: center; }
.ss-align-center ol,
.ss-align-center ul:not(.ss-stats-list) { display: inline-block; text-align: left; }

/* ---------- Split ---------- */
.ss-split-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 80px;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}
.ss-media-right .ss-split-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.ss-media-right .ss-split-media { order: 2; }
.ss-split-content { max-width: 540px; }
.ss-split-image { display: block; width: 100%; height: auto; }
.ss-embed { position: relative; aspect-ratio: 16 / 9; }
.ss-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ss-split-placeholder {
	display: grid;
	place-items: center;
	min-height: 200px;
	padding: 20px;
	background: var(--ss-light);
	color: var(--ss-muted);
	font-size: 15px;
}

/* ---------- Stats ---------- */
.ss-stats-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px;
	margin: 56px 0 0;
	padding: 0;
	list-style: none;
}
.ss-stat { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; }
.ss-stat-value { font: 700 60px/1 Cinzel, Georgia, serif; color: var(--ss-navy); }
.ss-stat-label { max-width: 260px; font-size: 18px; line-height: 1.45; font-weight: 600; }
.ss-bg-navy .ss-stat-value { color: #fff; }
.ss-block .ss-stats-note {
	max-width: 720px;
	margin: 56px auto 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ss-muted);
}
.ss-bg-navy .ss-stats-note { color: #d6e0ec; }

/* ---------- Quote ---------- */
.ss-quote-inner { max-width: 860px; margin: 0 auto; padding: 0; text-align: center; }
.ss-quote-text { margin: 0; padding: 0; border: 0; background: none; quotes: none; }
.ss-quote-text::before, .ss-quote-text::after { content: none; }
.ss-block .ss-quote-text p {
	margin: 0;
	font: 500 25px/1.55 "Open Sans", sans-serif;
	font-style: normal;
	color: inherit;
}
.ss-bg-navy .ss-quote-text p { color: #fff; }
.ss-quote-cite { margin-top: 32px; font-size: 16px; line-height: 1.45; }
.ss-quote-name { display: block; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ss-quote-role { display: block; margin-top: 4px; color: var(--ss-muted); }
.ss-bg-navy .ss-quote-role { color: #d6e0ec; }

/* ---------- Responsive (theme breakpoints) ---------- */
@media (max-width: 1023px) {
	:root { --ss-gutter: 40px; --ss-pad-y: 88px; }
	.ss-split-inner { gap: 48px; }
	.ss-hero-title { font-size: 48px; }
}

@media (max-width: 767px) {
	:root { --ss-gutter: 20px; --ss-pad-y: 64px; --ss-gap-heading: 16px; --ss-gap-text: 16px; --ss-gap-action: 32px; }
	.ss-hero { min-height: 0; }
	.ss-hero-inner { padding: 72px 20px; }
	.ss-hero-badge { width: 76px; height: 76px; margin-bottom: 20px; }
	.ss-hero-title { font-size: 34px; line-height: 1.15; }
	.ss-hero .ss-hero-subtitle { margin-top: 16px; font-size: 19px; }
	.ss-btn-hero { margin-top: 32px; }
	.ss-block h2 { font-size: 27px; line-height: 1.2; }
	.ss-block p, .ss-block li { font-size: 18px; }
	.ss-split-inner,
	.ss-media-right .ss-split-inner { grid-template-columns: 1fr; gap: 32px; }
	.ss-media-right .ss-split-media { order: 0; }
	.ss-split-content { max-width: none; }
	.ss-stats-list { gap: 32px; margin-top: 40px; }
	.ss-stat-value { font-size: 48px; }
	.ss-block .ss-stats-note { margin-top: 40px; }
	.ss-block .ss-quote-text p { font-size: 20px; }
	.ss-quote-cite { margin-top: 24px; }
	.ss-btn, .ss-block .wp-block-button__link { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.ss-hero video.ss-hero-media { display: none; }
	.ss-btn, .ss-block .wp-block-button__link { transition: none; }
}

/* ======================================================================
 * 1.2.0 additions: quote image, video split, steps, phone showcase
 * ==================================================================== */

.ss-block .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Quote: italic, optional flag image under a navy wash ---------- */
.ss-block .ss-quote-text p { font-style: italic; }
.ss-quote.has-media { overflow: hidden; isolation: isolate; }
.ss-quote-media {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ss-quote.has-media::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(12, 36, 68, .86);
}

/* ---------- Split: self-hosted video ---------- */
.ss-split-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.ss-block .ss-split-caption { margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: var(--ss-muted); }

/* ---------- Steps ---------- */
.ss-steps { --ss-band: var(--ss-light); padding: var(--ss-pad-y) var(--ss-gutter); text-align: center; }
.ss-steps.ss-bg-white { --ss-band: #fff; }
.ss-steps-head { max-width: 760px; margin: 0 auto; }
.ss-steps-list {
	display: grid;
	grid-template-columns: repeat(var(--ss-steps, 3), minmax(0, 1fr));
	gap: 32px;
	max-width: 1120px;
	margin: 56px auto 0;
	padding: 0;
	list-style: none;
}
.ss-step { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0; }
.ss-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 35px;
	left: calc(50% + 52px);
	width: calc(100% + 32px - 104px);
	border-top: 2px dashed #b9c6d4;
}
.ss-step-num {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--ss-navy-band);
	box-shadow: 0 0 0 8px var(--ss-band);
	color: #fff;
	font: 700 26px/1 Cinzel, Georgia, serif;
}
.ss-step-card {
	flex: 1;
	width: 100%;
	margin-top: 28px;
	padding: 32px 28px 34px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(17, 57, 104, .08);
}
.ss-steps.ss-bg-white .ss-step-card { background: var(--ss-light); box-shadow: none; }
.ss-block .ss-step-title { margin: 0 0 12px; font-size: 23px; line-height: 1.2; }
.ss-block .ss-step-text { margin: 0; font-size: 18px; line-height: 1.55; }

/* ---------- Phone Showcase ---------- */
.ss-phone-showcase { padding: var(--ss-pad-y) var(--ss-gutter); overflow: hidden; }
.ss-phone-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 80px;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}
.ss-phone-copy { max-width: 540px; }

.ss-phone-prompts { display: grid; gap: 10px; margin: var(--ss-gap-action) 0 0; max-width: 480px; }
.ss-phone-prompts[hidden] { display: none; }
.ss-block .ss-phone-prompts-label {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ss-muted);
}
.ss-phone-prompt {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 14px 18px;
	border: 1px solid #c3cfdb;
	border-radius: 0;
	background: #fff;
	color: var(--ss-navy);
	font: 600 17px/1.35 "Open Sans", sans-serif;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.ss-phone-prompt::after {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	margin-left: auto;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}
.ss-phone-prompt:hover { border-color: var(--ss-navy-band); background: #f2f6fa; color: var(--ss-navy); }
.ss-phone-prompt[aria-pressed="true"] { border-color: var(--ss-navy-band); background: var(--ss-navy-band); color: #fff; }
.ss-phone-cta { margin-top: var(--ss-gap-action); }

/* The phone: offset right and tilted, settles in when it scrolls into view. */
.ss-phone-stage { display: flex; justify-content: center; padding: 20px 0; }
.ss-phone {
	position: relative;
	width: 320px;
	height: 650px;
	padding: 12px;
	border-radius: 52px;
	background: #0d1420;
	box-shadow: 0 0 0 2px #2b3442, 0 40px 80px -30px rgba(5, 18, 36, .55), 0 18px 36px -18px rgba(5, 18, 36, .4);
	transform: translateX(28px) rotate(3deg);
}
.ss-phone-showcase.is-interactive .ss-phone {
	opacity: 0;
	transform: translateX(60px) translateY(40px) rotate(7deg);
	transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
}
.ss-phone-showcase.is-visible .ss-phone { opacity: 1; transform: translateX(28px) rotate(3deg); }
.ss-phone-island {
	position: absolute;
	top: 22px;
	left: 50%;
	z-index: 2;
	width: 96px;
	height: 26px;
	border-radius: 20px;
	background: #0d1420;
	transform: translateX(-50%);
}
.ss-phone-screen {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 40px;
	background: #f4f7f6;
}
.ss-phone-appbar {
	flex: none;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 52px 18px 12px;
	background: #fff;
	border-bottom: 1px solid #e3e8ee;
}
.ss-phone-logo { width: 36px; height: 36px; object-fit: contain; }
.ss-phone-appname { display: flex; flex-direction: column; line-height: 1.15; }
.ss-phone-appname-main { font: 700 16px/1.15 Cinzel, Georgia, serif; color: var(--ss-navy); }
.ss-phone-appname-sub { font-size: 12px; color: var(--ss-muted); }

.ss-phone-thread {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 10px;
	min-height: 0;
	padding: 16px 14px;
	overflow: hidden;
}
.ss-block .ss-bubble {
	max-width: 86%;
	margin: 0;
	padding: 10px 14px;
	font-size: 15px;
	line-height: 1.45;
	text-wrap: pretty;
}
.ss-block .ss-bubble-user {
	align-self: flex-end;
	border-radius: 18px 18px 4px 18px;
	background: var(--ss-navy-band);
	color: #fff;
}
.ss-block .ss-bubble-bot {
	align-self: flex-start;
	border: 1px solid #dde3ea;
	border-radius: 18px 18px 18px 4px;
	background: #fff;
	color: var(--ss-text);
}
.ss-bubble.is-in { animation: ss-bubble-in .35s ease both; }
@keyframes ss-bubble-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ss-block .ss-bubble-typing { display: flex; gap: 5px; padding: 14px 16px; }
.ss-bubble-typing span {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: #8a96a6;
	animation: ss-dot 1s infinite ease-in-out;
}
.ss-bubble-typing span:nth-child(2) { animation-delay: .15s; }
.ss-bubble-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ss-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.ss-phone-input {
	flex: none;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 12px 22px;
	padding: 8px 8px 8px 16px;
	border: 1px solid #dde3ea;
	border-radius: 24px;
	background: #fff;
	font-size: 15px;
	color: var(--ss-text);
}
.ss-phone-typed { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-phone-placeholder { flex: 1; color: #5f6b7a; white-space: nowrap; overflow: hidden; }
.ss-phone-input.is-typing .ss-phone-placeholder { display: none; }
.ss-phone-input.is-typing .ss-phone-typed::after {
	content: "";
	display: inline-block;
	width: 2px;
	height: 1.1em;
	margin-left: 1px;
	vertical-align: -3px;
	background: var(--ss-navy-band);
	animation: ss-caret .9s steps(1) infinite;
}
@keyframes ss-caret { 50% { opacity: 0; } }
.ss-phone-input.is-typing .ss-phone-typed { flex: 1; }
.ss-phone-send {
	flex: none;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin-left: auto;
	border-radius: 50%;
	background: var(--ss-navy-band);
	color: #fff;
}
.ss-phone-send svg { width: 18px; height: 18px; }
.ss-phone-video { flex: 1; width: 100%; min-height: 0; object-fit: cover; background: #000; }

@media (max-width: 1023px) {
	.ss-phone-inner { gap: 48px; }
	.ss-phone { width: 290px; height: 590px; }
	.ss-step-card { padding: 28px 20px 30px; }
}

@media (max-width: 767px) {
	.ss-steps { text-align: left; }
	.ss-steps-head { text-align: center; }
	.ss-steps-list { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
	.ss-step { flex-direction: row; align-items: flex-start; gap: 18px; }
	.ss-step:not(:last-child)::after {
		top: 64px;
		left: 27px;
		width: 0;
		height: calc(100% - 44px);
		border-top: 0;
		border-left: 2px dashed #b9c6d4;
	}
	.ss-step-num { flex: none; width: 56px; height: 56px; font-size: 21px; box-shadow: 0 0 0 6px var(--ss-band); }
	.ss-step-card { margin-top: 0; padding: 20px 20px 22px; }
	.ss-block .ss-step-title { font-size: 21px; }

	.ss-phone-inner { grid-template-columns: 1fr; gap: 40px; }
	.ss-phone-copy { max-width: none; }
	.ss-phone-prompts { max-width: none; }
	.ss-phone { width: 270px; height: 548px; border-radius: 46px; transform: rotate(2deg); }
	.ss-phone-showcase.is-interactive .ss-phone { transform: translateY(30px) rotate(5deg); }
	.ss-phone-showcase.is-visible .ss-phone { transform: rotate(2deg); }
	.ss-phone-screen { border-radius: 36px; }
}

@media (prefers-reduced-motion: reduce) {
	.ss-phone-showcase.is-interactive .ss-phone { opacity: 1; transition: none; transform: translateX(28px) rotate(3deg); }
	.ss-bubble.is-in, .ss-bubble-typing span, .ss-phone-input.is-typing .ss-phone-typed::after { animation: none; }
	.ss-phone-prompt { transition: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
	.ss-phone-showcase.is-interactive .ss-phone { transform: rotate(2deg); }
}

/* ======================================================================
 * 1.3.0: hero with phone video, Steps polish and scroll-in
 * ==================================================================== */

/* ---------- Hero: copy left, phone right ---------- */
.ss-hero.has-phone { min-height: 0; text-align: left; }
.ss-hero.has-phone .ss-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: 72px;
	align-items: center;
	width: 100%;
	max-width: 1200px;
	padding: 88px 40px 96px;
}
.ss-hero.has-phone .ss-hero-badge { margin: 0 0 24px; }
.ss-hero.has-phone .ss-hero-subtitle { margin-left: 0; margin-right: 0; }
.ss-hero.has-phone .ss-hero-title { font-size: 56px; }

.ss-hero-phone {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	margin: 0;
}
.ss-hero .ss-phone {
	width: 300px;
	height: 624px;
	padding: 11px;
	border-radius: 50px;
	background: #05080d;
	box-shadow: 0 0 0 2px #3a4a61, 0 0 0 9px rgba(255, 255, 255, .04), 0 40px 90px -20px rgba(0, 0, 0, .7);
	transform: none;
}
.ss-phone.has-video .ss-phone-screen { position: relative; background: #141414; border-radius: 40px; }
.ss-phone.has-video .ss-phone-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}
/* Covers the recording's own island and the red recording dot. */
.ss-phone-cover {
	position: absolute;
	top: .6%;
	left: 29%;
	width: 42.5%;
	height: 4.4%;
	border-radius: 999px;
	background: #000;
	pointer-events: none;
}

.ss-hero-phone-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 14px;
	color: #fff;
	font-size: 15px;
	line-height: 1.3;
}
.ss-hero-phone-cap { width: 100%; text-align: center; color: #d6e0ec; }
.ss-hero-phone-controls { display: inline-flex; gap: 10px; }
.ss-hero-phone-controls[hidden] { display: none; }
.ss-hero-phone-controls button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 0 16px;
	border: 2px solid rgba(255, 255, 255, .7);
	border-radius: 999px;
	background: rgba(5, 18, 36, .35);
	color: #fff;
	font: 600 14px/1 "Open Sans", sans-serif;
	letter-spacing: .03em;
	text-transform: none;
	cursor: pointer;
}
.ss-hero-phone-controls button:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.ss-hero-phone-controls button:focus { outline: none; }
.ss-hero-phone-controls button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ss-hero-phone-controls svg { width: 18px; height: 18px; }
.ss-vid-play[aria-pressed="true"] .i-play,
.ss-vid-play[aria-pressed="false"] .i-pause,
.ss-vid-sound[aria-pressed="true"] .i-off,
.ss-vid-sound[aria-pressed="false"] .i-on { display: none; }

/* ---------- Steps: centered, light red connectors ---------- */
.ss-block .ss-steps-list {
	max-width: 1080px;
	margin: 64px auto 0;
	padding: 0;
	gap: 40px;
}
.ss-block .ss-steps-list .ss-step { margin: 0; padding: 0; }
.ss-block .ss-steps-list .ss-step:not(:last-child)::after {
	left: calc(50% + 50px);
	width: calc(100% + 40px - 100px);
	border-top: 2px dashed #e9a5a5;
}
.ss-step-num { box-shadow: 0 0 0 8px var(--ss-band), 0 0 0 10px #f3c9c9; }
.ss-step-card { display: flex; flex-direction: column; align-items: center; padding: 34px 30px 36px; }
.ss-block .ss-step-title { margin: 0 0 12px; font-size: 22px; text-wrap: balance; }
.ss-block .ss-step-text { max-width: 280px; text-wrap: pretty; }

/* Scroll-in (only when the script runs and motion is allowed) */
.ss-anim .ss-steps .ss-steps-head,
.ss-anim .ss-steps .ss-step-card {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .6s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
}
.ss-anim .ss-steps .ss-step-card { transition-delay: calc(var(--i, 0) * .16s + .15s); }
.ss-anim .ss-steps .ss-step-num {
	opacity: 0;
	transform: scale(.6);
	transition: opacity .4s ease, transform .5s cubic-bezier(.3, 1.4, .5, 1);
	transition-delay: calc(var(--i, 0) * .16s);
}
.ss-anim .ss-steps .ss-step:not(:last-child)::after {
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .6s ease;
	transition-delay: calc(var(--i, 0) * .16s + .3s);
}
.ss-anim .ss-steps.is-in .ss-steps-head,
.ss-anim .ss-steps.is-in .ss-step-card,
.ss-anim .ss-steps.is-in .ss-step-num { opacity: 1; transform: none; }
.ss-anim .ss-steps.is-in .ss-step:not(:last-child)::after { transform: none; }

@media (max-width: 1023px) {
	.ss-hero.has-phone .ss-hero-inner { gap: 48px; padding: 72px 32px 80px; }
	.ss-hero.has-phone .ss-hero-title { font-size: 44px; }
	.ss-hero .ss-phone { width: 270px; height: 562px; }
}

@media (max-width: 767px) {
	.ss-hero.has-phone { text-align: center; }
	.ss-hero.has-phone .ss-hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 64px 20px 56px; }
	.ss-hero.has-phone .ss-hero-badge { margin: 0 auto 20px; }
	.ss-hero.has-phone .ss-hero-subtitle { margin-left: auto; margin-right: auto; }
	.ss-hero.has-phone .ss-hero-title { font-size: 34px; }
	.ss-hero .ss-phone { width: 250px; height: 520px; border-radius: 44px; }
	.ss-phone.has-video .ss-phone-screen { border-radius: 35px; }

	.ss-block .ss-steps-list { gap: 24px; margin-top: 44px; }
	.ss-block .ss-steps-list .ss-step:not(:last-child)::after {
		left: 27px;
		width: 0;
		border-top: 0;
		border-left: 2px dashed #e9a5a5;
	}
	.ss-step-num { box-shadow: 0 0 0 6px var(--ss-band), 0 0 0 8px #f3c9c9; }
	.ss-step-card { align-items: flex-start; padding: 22px 22px 24px; }
	.ss-block .ss-step-text { max-width: none; }
	.ss-anim .ss-steps .ss-step:not(:last-child)::after { transform: scaleY(0); transform-origin: center top; }
}

/* 1.3.1: hero fits the first screen; cover the recording's mic dot too */
.ss-hero.has-phone .ss-hero-inner { padding-top: 64px; padding-bottom: 64px; }
.ss-hero .ss-phone { width: 272px; height: 566px; border-radius: 46px; }
.ss-hero .ss-phone.has-video .ss-phone-screen { border-radius: 36px; }
.ss-hero-phone { gap: 16px; }
.ss-hero-phone-cap {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.ss-phone-cover { left: 28.5%; width: 48.5%; }
@media (max-width: 1023px) {
	.ss-hero .ss-phone { width: 252px; height: 524px; }
}
@media (max-width: 767px) {
	.ss-hero .ss-phone { width: 246px; height: 512px; border-radius: 42px; }
	.ss-hero .ss-phone.has-video .ss-phone-screen { border-radius: 33px; }
}

/* ======================================================================
 * 1.4.0: step cards, step link, offset numbers, hero phone landing,
 *        section background image, red strip
 * ==================================================================== */


/* Step link with an up-right arrow ("Open chat") */
.ss-block a.ss-step-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding: 8px 4px;
	color: var(--ss-red-dark);
	font: 700 15px/1.2 "Open Sans", sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
}
.ss-step-link svg {
	width: 22px;
	height: 22px;
	padding: 3px;
	border-radius: 50%;
	background: var(--ss-red);
	color: #fff;
	transition: transform .25s ease;
}
.ss-block a.ss-step-link:hover { color: var(--ss-navy); text-decoration: underline; text-underline-offset: 3px; }
.ss-step-link:hover svg,
.ss-step-link:focus-visible svg { transform: translate(2px, -2px); }

/* ---------- Numbers come in offset (staggered rise) ---------- */
.ss-anim .ss-steps .ss-step-num {
	opacity: 0;
	transform: translateY(26px) scale(.7);
	transition: opacity .45s ease, transform .6s cubic-bezier(.3, 1.35, .5, 1);
	transition-delay: calc(var(--i, 0) * .28s);
}
.ss-anim .ss-steps .ss-step-card { transition-delay: calc(var(--i, 0) * .28s + .2s); }
.ss-anim .ss-steps .ss-step:not(:last-child)::after { transition-delay: calc(var(--i, 0) * .28s + .4s); }

/* ---------- Section: background image under a navy wash ---------- */
.ss-section.has-media { overflow: hidden; isolation: isolate; }
.ss-section-media {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ss-section.has-media::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(3, 12, 26, .55);
}

/* ---------- Tight strip and red band ---------- */
.ss-section.is-tight { padding-top: 18px; padding-bottom: 18px; }
.ss-section.is-tight .ss-section-inner { max-width: 1200px; }
.ss-section.is-tight p { margin: 0; font-size: 17px; line-height: 1.5; }
.ss-bg-red { background: var(--ss-red-dark); color: #fff; }
.ss-bg-red h2, .ss-bg-red h3, .ss-bg-red p, .ss-bg-red li { color: #fff; }
.ss-bg-red a:not(.ss-btn):not(.wp-block-button__link) { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ss-bg-red a:not(.ss-btn):not(.wp-block-button__link):hover { color: #fff; text-decoration-thickness: 2px; }
.ss-bg-red a:focus-visible { outline-color: #fff; }

@media (max-width: 767px) {
	.ss-section.is-tight p { font-size: 16px; }
	.ss-block a.ss-step-link { margin-top: 14px; }
}

/* ======================================================================
 * 1.5.0: How It Works section borders and soft drifting color glow
 *        (after the Sidekick Platform hero), hero phone back to upright
 * ==================================================================== */
.ss-steps {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border-top: 5px solid var(--ss-red);
	border-bottom: 5px solid var(--ss-navy-band);
}
.ss-steps.ss-bg-light { --ss-band: #f1f3f7; background: #f1f3f7; }
.ss-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ss-glow span {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: .9;
}
.ss-glow span:nth-child(1) { top: -18%; left: -8%; width: 560px; height: 560px; background: radial-gradient(circle, rgba(64, 108, 178, .34) 0%, rgba(64, 108, 178, 0) 70%); }
.ss-glow span:nth-child(2) { top: 18%; right: -10%; width: 520px; height: 520px; background: radial-gradient(circle, rgba(214, 92, 92, .26) 0%, rgba(214, 92, 92, 0) 70%); }
.ss-glow span:nth-child(3) { bottom: -30%; left: 30%; width: 680px; height: 680px; background: radial-gradient(circle, rgba(110, 140, 205, .28) 0%, rgba(110, 140, 205, 0) 70%); }
.ss-glow span:nth-child(4) { top: -12%; left: 52%; width: 360px; height: 360px; background: radial-gradient(circle, rgba(233, 140, 140, .18) 0%, rgba(233, 140, 140, 0) 70%); }

@media (prefers-reduced-motion: no-preference) {
	.ss-glow span:nth-child(1) { animation: ss-drift-a 26s ease-in-out infinite alternate; }
	.ss-glow span:nth-child(2) { animation: ss-drift-b 30s ease-in-out infinite alternate; }
	.ss-glow span:nth-child(3) { animation: ss-drift-c 34s ease-in-out infinite alternate; }
	.ss-glow span:nth-child(4) { animation: ss-drift-b 22s ease-in-out infinite alternate-reverse; }
}
@keyframes ss-drift-a { to { transform: translate(120px, 60px) scale(1.08); } }
@keyframes ss-drift-b { to { transform: translate(-110px, 50px) scale(.94); } }
@keyframes ss-drift-c { to { transform: translate(-80px, -70px) scale(1.06); } }

/* Cards read as lifted panels on the glow */
.ss-steps .ss-step-card { box-shadow: 0 14px 34px -12px rgba(17, 57, 104, .18); }

@media (max-width: 767px) {
	.ss-glow span { filter: blur(50px); }
	.ss-glow span:nth-child(1) { width: 340px; height: 340px; }
	.ss-glow span:nth-child(2) { width: 320px; height: 320px; }
	.ss-glow span:nth-child(3) { width: 420px; height: 420px; left: 10%; }
	.ss-glow span:nth-child(4) { display: none; }
}
.ss-steps .ss-step-num { box-shadow: 0 0 0 8px rgba(255, 255, 255, .6), 0 0 0 10px #f3c9c9; }
@media (max-width: 767px) {
	.ss-steps .ss-step-num { box-shadow: 0 0 0 6px rgba(255, 255, 255, .6), 0 0 0 8px #f3c9c9; }
}


/* ======================================================================
 * 1.6.0: shared glow (.has-glow), stats partner logos
 * ==================================================================== */
.has-glow { position: relative; overflow: hidden; isolation: isolate; }
.ss-stats.has-glow { background: #f1f3f7; }

.ss-stats-partners {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 28px 56px;
	margin: 48px auto 0;
	padding-top: 36px;
	max-width: 900px;
	border-top: 1px solid rgba(17, 57, 104, .14);
}
.ss-stats-partner { display: inline-flex; align-items: center; padding: 6px; }
.ss-stats-partner img { display: block; width: auto; height: 34px; }
.ss-block a.ss-stats-partner:focus-visible { outline: 3px solid var(--ss-red); outline-offset: 4px; }
.ss-stats-badge { display: flex; align-items: center; gap: 16px; max-width: 420px; text-align: left; }
.ss-stats-badge img { flex: none; display: block; width: auto; height: 58px; }
.ss-block .ss-stats-badge p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ss-muted); }
@media (max-width: 767px) {
	.ss-stats-partners { flex-direction: column; gap: 24px; margin-top: 40px; padding-top: 28px; }
	.ss-stats-badge { flex-direction: column; text-align: center; }
}

/* 1.7.0: hero secondary link ("Watch the intro") */
.ss-block .ss-hero-second { margin: 22px 0 0; }
.ss-block.ss-hero a.ss-hero-watch {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 2px;
	color: #fff;
	font: 600 17px/1.3 "Open Sans", sans-serif;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: rgba(255, 255, 255, .55);
}
.ss-block.ss-hero a.ss-hero-watch:hover { text-decoration-color: #fff; color: #fff; }
.ss-hero-watch svg { flex: none; width: 26px; height: 26px; }
@media (max-width: 767px) {
	.ss-block .ss-hero-second { margin-top: 18px; }
}

/* 1.8.0: stats gets the same section borders as How It Works; lighter flag behind the closing section */
.ss-stats.has-glow {
	border-top: 5px solid var(--ss-red);
	border-bottom: 5px solid var(--ss-navy-band);
}
.ss-section.has-media .ss-section-media { filter: brightness(1.9) saturate(1.15); }
.ss-section.has-media::before { background: linear-gradient(180deg, rgba(17, 57, 104, .38) 0%, rgba(10, 36, 70, .5) 100%); }
.ss-section.has-media h2 { text-shadow: 0 2px 16px rgba(3, 12, 26, .45); }
.ss-section.has-media p { text-shadow: 0 1px 10px rgba(3, 12, 26, .55); }

/* ======================================================================
 * 1.9.0: fading quote slider
 * ==================================================================== */
.ss-quote-slide + .ss-quote-slide { margin-top: 56px; }              /* no-JS: quotes stack */
.ss-quote.is-ready .ss-quote-slides { display: grid; }
.ss-quote.is-ready .ss-quote-slide {
	grid-area: 1 / 1;
	margin-top: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s ease, visibility 0s linear .9s;
}
.ss-quote.is-ready .ss-quote-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.ss-quote-slides { align-items: center; }

.ss-quote-controls {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 36px;
}
.ss-quote-controls[hidden] { display: none; }
.ss-quote-pause {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	margin: 0;
	padding: 0 14px;
	border: 2px solid rgba(255, 255, 255, .6);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font: 600 14px/1 "Open Sans", sans-serif;
	text-transform: none;
	letter-spacing: .02em;
	cursor: pointer;
}
.ss-quote-pause svg { width: 16px; height: 16px; }
.ss-quote-pause .i-play { display: none; }
.ss-quote.is-paused .ss-quote-pause .i-play { display: inline; }
.ss-quote.is-paused .ss-quote-pause .i-pause { display: none; }
.ss-quote-pause:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.ss-quote-dots { display: inline-flex; gap: 4px; }
.ss-quote-dot {
	position: relative;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.ss-quote-dot::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 11px;
	height: 11px;
	border: 2px solid #fff;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: background-color .3s ease, transform .3s ease;
}
.ss-quote-dot[aria-current="true"]::before { background: #fff; transform: translate(-50%, -50%) scale(1.15); }
.ss-quote-dot:hover::before { background: rgba(255, 255, 255, .5); }
.ss-quote .ss-quote-pause:focus,
.ss-quote .ss-quote-dot:focus { outline: none; box-shadow: none; }
.ss-quote .ss-quote-pause:focus-visible,
.ss-quote .ss-quote-dot:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* Light quote bands: dark controls */
.ss-quote:not(.ss-bg-navy) .ss-quote-pause { border-color: rgba(17, 57, 104, .5); color: var(--ss-navy); }
.ss-quote:not(.ss-bg-navy) .ss-quote-dot::before { border-color: var(--ss-navy-band); }
.ss-quote:not(.ss-bg-navy) .ss-quote-dot[aria-current="true"]::before { background: var(--ss-navy-band); }

@media (prefers-reduced-motion: reduce) {
	.ss-quote.is-ready .ss-quote-slide,
	.ss-quote.is-ready .ss-quote-slide.is-active,
	.ss-quote-dot::before { transition: none; }
}
@media (max-width: 767px) {
	.ss-quote-controls { margin-top: 28px; }
}
.ss-quote.is-init .ss-quote-slide { transition: none !important; }
