/* Sound CU Failsafe — standalone page styles
   Tokens aligned with soundcu-theme/sass/base/_variables.scss */

:root {
	--c-blue: #00205b;
	--c-blue-medium: #1f79af;
	--c-blue-bahama: #1f5589;
	--c-turquoise: #71c4e8;
	--c-turquoise-bar: #76bae3;
	--c-lavender: #f2fafc;
	--c-lang-track: #cfe3e9;
	--c-yellow: #efc025;
	--c-white: #ffffff;
	--c-gray: #707070;
	--c-login-navy: #0d2c6c;
	--c-login-navy-alt: #142c6c;
	--ff-montserrat: "Montserrat", sans-serif;
	--ff-patua: "Patua One", serif;
	--s-site-padding: 30px;
	--radius-btn: 7px;
	--radius-input: 8px;
	--bp-lg: 960px;
}

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

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

body.co-failsafe {
	background-color: var(--c-lavender);
	color: var(--c-blue);
	font-family: var(--ff-montserrat);
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1.5;
	margin: 0;
	min-height: 100vh;
}

img {
	display: block;
	height: auto;
	max-width: 100%;
}

a {
	color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--c-yellow);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.co-failsafe--skip {
	background: var(--c-yellow);
	color: var(--c-blue);
	font-weight: 700;
	left: 50%;
	padding: 8px 16px;
	position: absolute;
	text-decoration: none;
	top: 0;
	transform: translate(-50%, -120%);
	z-index: 100;
}

.co-failsafe--skip:focus {
	transform: translate(-50%, 8px);
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.co-failsafe--header {
	background-color: var(--c-lavender);
	position: relative;
	z-index: 10;
}

.co-failsafe--header_inner {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 1452px;
	min-height: 89px;
	padding: 16px var(--s-site-padding);
}

.co-failsafe--logo_link {
	display: inline-flex;
	flex-shrink: 0;
}

.co-failsafe--logo__desktop {
	display: block;
	width: 220px;
}

.co-failsafe--logo__mobile {
	display: none;
	max-width: 410px;
	width: 100%;
}

.co-failsafe--header_actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: flex-end;
}

.co-failsafe--header_phone {
	color: var(--c-blue-medium);
	font-size: 2rem;
	font-weight: 700;
	line-height: 2.4rem;
	text-decoration: none;
	white-space: nowrap;
}

.co-failsafe--header_phone:hover,
.co-failsafe--header_phone:focus {
	text-decoration: underline;
}

.co-failsafe--header_bar {
	align-items: center;
	display: flex;
	gap: 16px;
}

.co-failsafe--header_bar .header_language {
	order: 0;
}

.co-failsafe--header_bar .co-failsafe--login_toggle {
	order: 1;
}

.co-failsafe--login_toggle {
	align-items: center;
	background-color: var(--c-yellow);
	border-radius: 0;
	color: var(--c-login-navy);
	display: inline-flex;
	font-family: var(--ff-montserrat);
	font-size: 1.6rem;
	font-weight: 900;
	gap: 8px;
	line-height: 1.8rem;
	min-height: 35px;
	padding: 8px 18px 8px 12px;
	text-decoration: none;
	text-transform: uppercase;
}

.co-failsafe--login_toggle:hover,
.co-failsafe--login_toggle:focus {
	filter: brightness(0.95);
}

.co-failsafe--login_toggle_icon {
	flex-shrink: 0;
	height: 18px;
	width: 18px;
}

/* Language toggle — mirrors theme .header_language */

.header_language {
	align-items: center;
	background-color: var(--c-lang-track);
	border-radius: 90px;
	display: inline-flex;
	height: 26px;
	overflow: hidden;
	padding: 2px;
	position: relative;
	width: 111px;
}

.header_language .trp-language-item-name {
	align-items: center;
	appearance: none;
	background-color: transparent;
	border: 0;
	border-radius: 90px;
	color: var(--c-blue);
	cursor: pointer;
	display: inline-flex;
	flex: 1 1 50%;
	font-family: var(--ff-montserrat);
	font-size: 1rem;
	font-weight: 700;
	height: 22px;
	justify-content: center;
	line-height: 2.4rem;
	margin: 0;
	padding: 0;
	text-decoration: none;
	white-space: nowrap;
}

.header_language .trp-language-item-name__current {
	background-color: var(--c-blue);
	color: var(--c-white);
	cursor: default;
}

/* i18n — both languages are hardcoded in the HTML; toggle via data-lang */

.i18n__es {
	display: none;
}

html[data-lang="es"] .i18n__en {
	display: none;
}

html[data-lang="es"] .i18n__es {
	display: inline;
}

html[data-lang="en"] .i18n__es {
	display: none;
}

/* -------------------------------------------------------------------------
   Main / Hero
   ------------------------------------------------------------------------- */

.co-failsafe--main {
	position: relative;
}

.co-failsafe--hero {
	background: linear-gradient(239deg, #71C4E8 -25.49%, #1F79AF 2.35%, #0F205B 52.8%);
	display: flex;
	align-items: center;
	min-height: calc(100vh - 89px - 92px);
	overflow: hidden;
	padding: 60px var(--s-site-padding) 140px;
	position: relative;
}

.co-failsafe--shapes {
	height: 339px;
	pointer-events: none;
	position: absolute;
	right: 81%;
	top: 50%;
	transform: translateY(-50%);
	width: 356px;
	z-index: 1;
}
@media (min-width: 1870px) {
	.co-failsafe--shapes {
		right: auto;
		left: 0;
	}
}

.co-failsafe--hero_inner {
	align-items: flex-start;
	display: grid;
	gap: 40px;
	grid-template-columns: 1fr minmax(320px, 410px);
	justify-content: center;
	margin: 0 auto;
	max-width: 1100px;
	position: relative;
	z-index: 2;
}

.co-failsafe--message {
	color: var(--c-lavender);
	justify-self: center;
	max-width: 520px;
	padding-top: 40px;
	text-align: center;
	width: 100%;
}

.co-failsafe--lede {
	font-size: 2rem;
	font-weight: 600;
	line-height: 2.4rem;
	margin: 0 0 24px;
}

.co-failsafe--headline {
	color: var(--c-yellow);
	font-family: var(--ff-patua);
	font-size: 5.6rem;
	font-weight: 400;
	line-height: 6rem;
	margin: 0 0 28px;
}

.co-failsafe--support {
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 2.4rem;
	margin: 0 auto 28px;
	max-width: 466px;
}

.co-failsafe--divider {
	background-color: rgba(31, 85, 137, 0.85);
	border: 0;
	height: 1px;
	margin: 0 auto 28px;
	max-width: 406px;
	width: 100%;
}

.co-failsafe--phone_text {
	color: var(--c-white);
	display: inline-block;
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 2.4rem;
	text-decoration: none;
}

.co-failsafe--phone_text:hover,
.co-failsafe--phone_text:focus {
	text-decoration: underline;
}

.co-failsafe--phone_button {
	background-color: var(--c-white);
	border-radius: var(--radius-btn);
	color: var(--c-blue-medium);
	display: none;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 2.5rem;
	margin: 0 auto;
	max-width: 280px;
	padding: 10px 24px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.co-failsafe--phone_button:hover,
.co-failsafe--phone_button:focus {
	filter: brightness(0.97);
}

/* -------------------------------------------------------------------------
   Online Banking panel — mirrors theme .co-online_banking
   ------------------------------------------------------------------------- */

.co-online_banking {
	background-color: rgba(31, 85, 137, 0.72);
	justify-self: end;
	margin-top: 20px;
	max-width: 410px;
	padding: 30px 60px 60px;
	width: 100%;
}

.co-online_banking--heading {
	color: var(--c-yellow);
	display: block;
	font-family: var(--ff-montserrat);
	font-size: 1.6rem;
	font-weight: 900;
	letter-spacing: 0.02em;
	line-height: 2.5rem;
	margin-bottom: 16px;
	text-align: center;
	text-transform: uppercase;
}

.co-online_banking--form {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.co-online_banking--input {
	border: none;
	border-radius: var(--radius-input);
	color: var(--c-gray);
	font-family: var(--ff-montserrat);
	font-size: 1.4rem;
	font-weight: 600;
	line-height: 2.4rem;
	margin-bottom: 12px;
	padding: 10px 15px;
	text-align: left;
	width: 100%;
}

.co-online_banking--input::placeholder {
	color: var(--c-gray);
}

.co-online_banking--submit {
	background-color: var(--c-white);
	border: none;
	border-radius: var(--radius-btn);
	color: var(--c-blue-medium);
	cursor: pointer;
	font-family: var(--ff-montserrat);
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 2.5rem;
	margin-left: auto;
	min-width: 96px;
	order: 10;
	padding: 8px 20px;
	text-transform: uppercase;
}

.co-online_banking--submit:hover,
.co-online_banking--submit:focus {
	background-color: var(--c-lavender);
}

.co-online_banking--actions {
	color: var(--c-white);
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 2rem;
	max-width: 180px;
	text-align: left;
}

.co-online_banking--actions > span {
	display: inline-block;
	margin: 0 4px;
	vertical-align: middle;
}

.co-online_banking--actions a {
	color: var(--c-white);
	display: inline-block;
	margin-bottom: 4px;
	text-decoration: underline;
	vertical-align: middle;
}

.co-online_banking--actions a:hover,
.co-online_banking--actions a:focus {
	text-decoration: none;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.co-failsafe--footer {
	background-color: var(--c-white);
	margin-top: -1px;
	position: relative;
	z-index: 3;
}

.co-failsafe--wave {
	background-color: transparent;
	bottom: 100%;
	display: block;
	height: clamp(110px, 10vw, 242px);
	left: 0;
	margin-top: -108px;
	object-fit: fill;
	position: absolute;
	width: 100%;
	z-index: 1;
}

.co-failsafe--footer_bar {
	background-color: var(--c-blue-medium);
	position: relative;
	z-index: 2;
}

.co-failsafe--footer_inner {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 1452px;
	min-height: 92px;
	padding: 18px var(--s-site-padding) 24px;
	position: relative;
	z-index: 2;
}

.co-failsafe--routing {
	align-items: center;
	border: 2px solid var(--c-white);
	border-radius: var(--radius-input);
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	justify-content: center;
	min-height: 56px;
	padding: 8px 20px;
}

.co-failsafe--routing_label {
	color: var(--c-yellow);
	font-size: 1.7rem;
	font-weight: 900;
	line-height: 2.5rem;
}

.co-failsafe--routing_number {
	color: var(--c-yellow);
	font-size: 2.6rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	line-height: 1.2;
}

.co-failsafe--copyright {
	color: var(--c-lavender);
	font-size: 1.2rem;
	font-weight: 500;
	line-height: 1.6rem;
	margin: 0;
	text-align: right;
}

/* -------------------------------------------------------------------------
   Mobile — matches Figma 818:1727
   ------------------------------------------------------------------------- */

@media (max-width: 959px) {
	.co-failsafe--header_inner {
		flex-direction: column;
		gap: 0;
		min-height: 0;
		padding: 12px 0 0;
	}

	.co-failsafe--logo_link {
		justify-content: center;
		padding: 8px var(--s-site-padding) 16px;
		width: 100%;
	}

	.co-failsafe--logo__desktop {
		display: none;
	}

	.co-failsafe--logo__mobile {
		display: block;
		margin: 0 auto;
	}

	.co-failsafe--header_actions {
		width: 100%;
	}

	.co-failsafe--header_phone {
		display: none;
	}

	.co-failsafe--header_bar {
		align-items: center;
		background-color: var(--c-turquoise-bar);
		justify-content: space-between;
		min-height: 50px;
		padding: 8px 34px;
		width: 100%;
	}

	.co-failsafe--header_bar .header_language {
		order: 1;
	}

	.co-failsafe--header_bar .co-failsafe--login_toggle {
		order: 0;
	}

	.co-failsafe--login_toggle {
		border-radius: var(--radius-btn);
		color: var(--c-login-navy-alt);
		min-height: 32px;
		padding: 4px 16px 4px 12px;
	}

	.co-failsafe--hero {
		min-height: auto;
		padding: 40px 20px 120px;
	}

	.co-failsafe--shapes {
		display: none;
	}

	.co-failsafe--hero_inner {
		display: flex;
		flex-direction: column;
		gap: 32px;
	}

	.co-failsafe--message {
		justify-self: stretch;
		max-width: none;
		padding-top: 0;
		width: 100%;
	}

	.co-online_banking {
		justify-self: stretch;
	}

	.co-failsafe--lede {
		font-size: 1.6rem;
		margin-bottom: 20px;
	}

	.co-failsafe--headline {
		font-size: 4.3rem;
		line-height: 5rem;
		margin-bottom: 24px;
	}

	.co-failsafe--support {
		font-size: 1.3rem;
		margin-bottom: 24px;
		max-width: 242px;
	}

	.co-failsafe--divider {
		max-width: 202px;
		margin-bottom: 22px;
	}

	.co-failsafe--phone_text {
		display: none;
	}

	.co-failsafe--phone_button {
		display: block;
	}

	.co-online_banking {
		flex: none;
		margin: 0 auto;
		max-width: none;
		width: 100%;
	}

	.co-online_banking--input {
		font-size: 1.2rem;
	}

	.co-online_banking--actions {
		font-size: 1.2rem;
	}

	.co-failsafe--wave {
		height: 70px;
		margin-top: -68px;
	}

	.co-failsafe--footer_inner {
		flex-direction: column;
		gap: 24px;
		min-height: 0;
		padding: 24px var(--s-site-padding) 32px;
	}

	.co-failsafe--routing {
		flex-direction: column;
		gap: 0;
		min-height: 75px;
		padding: 10px 24px 12px;
		width: 233px;
	}

	.co-failsafe--copyright {
		text-align: center;
	}
}

@media (max-width: 429px) {
	.co-failsafe--header_bar {
		padding: 8px 20px;
	}

	.co-failsafe--headline {
		font-size: 3.8rem;
		line-height: 4.4rem;
	}
}
