/* ==========================================================================
   SecureMas – "12 Days of Secure-mas"
   Everything is scoped under .securemas (or .securemas-page for the body).
   Breakpoints (from Figma): desktop ≥ 1100px · tablet 640–1099px · phone < 640px
   ========================================================================== */

.securemas-page {
	margin: 0;
	background: #080c25;
}

.securemas {
	--sm-indigo-1000: #080c25;
	--sm-indigo-950: #1b2147;
	--sm-indigo-800: #3c4891;
	--sm-green-400: #60c865;
	--sm-brand: #40be46;
	--sm-btn: #36a13b;
	--sm-text: #f9fafa;
	--sm-neutral-icon: #b0bec2;
	--sm-line: #cfd0d1;
	--sm-neutral-1: #111517;

	position: relative;
	min-height: 100vh;
	overflow-x: clip;
	color: #fff;
	font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-variation-settings: "wdth" 100;
	line-height: 1.4;
	background: linear-gradient(180deg, #0c1d37 8.218%, #080c25 89.365%);
	-webkit-font-smoothing: antialiased;
}

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

.securemas img {
	display: block;
	max-width: none;
}

.securemas button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.securemas a {
	color: inherit;
}

.securemas :focus-visible {
	outline: 2px solid #a7eb9d;
	outline-offset: 3px;
}

/* ---- Logos (the SVGs have an optical offset baked into the Figma inset) ---- */
.securemas .sm-logo {
	position: relative;
	display: block;
	width: 44px;
	height: 44px;
	flex: none;
}

.securemas .sm-logo img {
	position: absolute;
	left: -9.38%;
	top: -5.97%;
	width: 112.51%;
	height: 109.38%;
}

.securemas .sm-logo--footer {
	width: 40px;
	height: 40px;
}

/* ---- Buttons ---- */
.securemas .sm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 24px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	line-height: 24px;
	text-decoration: none;
	white-space: nowrap;
	background: transparent;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.securemas .sm-btn--line {
	border: 1px solid var(--sm-line);
	color: var(--sm-line);
}

.securemas .sm-btn--line:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: #fff;
	color: #fff;
}

.securemas .sm-btn--primary {
	padding: 12px 24px;
	border: 0;
	background: var(--sm-btn);
	color: #fff;
	font-size: 16px;
}

.securemas .sm-btn--primary:hover {
	background: #2f8d34;
}

/* ==========================================================================
   Header
   ========================================================================== */
.securemas .sm-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
}

.securemas .sm-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 62px;
	padding: 8px 40px;
}

.securemas .sm-nav__buttons {
	display: flex;
	align-items: center;
	gap: 16px;
}

.securemas .sm-title {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	width: 100%;
	padding: 0 40px;
	text-align: center;
}

.securemas .sm-title__h {
	margin: 0;
	font-size: 56px;
	line-height: 64px;
	font-weight: 700;
	letter-spacing: 0;
	color: #fff;
}

.securemas .sm-title__h span {
	color: var(--sm-brand);
}

.securemas .sm-title__p {
	margin: 0;
	max-width: 600px;
	font-size: 18px;
	line-height: 28px;
}

/* Marker ("Days unlocked" + 12 paws) */
.securemas .sm-marker {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 32px;
	padding: 0 14px 0 4px;
	border: 1px solid var(--sm-indigo-800);
	border-radius: 999px;
	background: var(--sm-indigo-1000);
}

.securemas .sm-marker__label {
	padding: 2px 11px;
	border-radius: 999px;
	background: var(--sm-indigo-950);
	color: #d9d9d9;
	font-size: 13px;
	line-height: 1.3;
}

.securemas .sm-marker__paw {
	width: 17px;
	height: 14px;
}

/* ==========================================================================
   Calendar / houses
   ========================================================================== */
.securemas .sm-calendar {
	width: 100%;
	max-width: 1440px;
	margin: 48px auto 0;
	padding: 0 40px;
}

.securemas .sm-house {
	position: relative;
	display: none;
	width: 100%;
	margin: 0 auto;
	overflow: hidden;
	container-type: inline-size;
	isolation: isolate;
	background: #0c1d37;
}

.securemas .sm-house__bg,
.securemas .sm-house__layer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	user-select: none;
}

.securemas .sm-house__doors {
	position: absolute;
	inset: 0;
	z-index: 3;
}

.securemas .sm-snow {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 4;
	pointer-events: none;
}

.securemas .sm-house__logo {
	position: absolute;
	z-index: 5;
	pointer-events: none;
}

.securemas .sm-house__logo .sm-logo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.securemas .sm-logo--overlay {
	mix-blend-mode: overlay;
}

.securemas .sm-logo--screen {
	mix-blend-mode: screen;
}

/* ---- Doors ---- */
.securemas .sm-door {
	position: absolute;
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-sizing: border-box;
	/* Arched top (45px), nearly square bottom (5px) – Figma door overlay, "Regular". */
	--sm-r-top: 3.31cqw;
	--sm-r-bot: 0.37cqw;
	border-radius: var(--sm-r-top) var(--sm-r-top) var(--sm-r-bot) var(--sm-r-bot);
	cursor: default;
	-webkit-tap-highlight-color: transparent;
}

.securemas .sm-door__pill {
	display: none;
}

/* Closed-door artwork (desktop): a full-house sprite cropped to the door rectangle */
.securemas .sm-door__art {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.securemas .sm-door__art img {
	position: absolute;
	max-width: none;
}

/* Locked: invisible & not interactive */
.securemas .sm-door[aria-disabled="true"] {
	pointer-events: none;
}

/* Unlocked.
 * The outline (::after) and glow (::before) are inset (--sm-t/r/b/l, set per door on desktop)
 * so they hug the painted door leaf even though the button also covers the artwork. */
.securemas .sm-door.is-unlocked {
	cursor: pointer;
}

.securemas .sm-door.is-unlocked::after,
.securemas .sm-door.is-unlocked::before {
	content: "";
	position: absolute;
	top: var(--sm-t, 0);
	right: var(--sm-r, 0);
	bottom: var(--sm-b, 0);
	left: var(--sm-l, 0);
	border-radius: var(--sm-r-top) var(--sm-r-top) var(--sm-r-bot) var(--sm-r-bot);
	pointer-events: none;
	z-index: 1;
}

.securemas .sm-door.is-unlocked::after {
	z-index: 2;
	box-sizing: border-box;
	border: 1.25px solid rgba(167, 235, 157, 0.78);
	transition: border-color 0.25s, filter 0.25s;
}

/* Soft warm glow behind the outline (Figma "Hover glow": #fffc9e, blur 16.9, 15% on hover) */
.securemas .sm-door.is-unlocked::before {
	background: #fffc9e;
	filter: blur(16.9px);
	opacity: 0;
	transition: opacity 0.25s;
}

.securemas .sm-door.is-unlocked .sm-door__pill {
	position: absolute;
	z-index: 3;
	left: calc(var(--sm-l, 0%) + (100% - var(--sm-l, 0%) - var(--sm-r, 0%)) / 2);
	bottom: calc(var(--sm-b, 0%) + 6px);
	display: block;
	transform: translateX(-50%);
	padding: 3px 10px;
	border: 1px solid rgba(167, 235, 157, 0.7);
	border-radius: 999px;
	background: #152b1e;
	color: #efffec;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	white-space: nowrap;
	transition: box-shadow 0.25s;
}

.securemas .sm-door.is-unlocked .sm-door__pill::before {
	content: "Open";
}

/* Visited: filled light-green "Opened" pill */
.securemas .sm-door.is-visited .sm-door__pill {
	background: #c8f9bc;
	border-color: rgba(167, 235, 157, 0.9);
	color: #183220;
}

.securemas .sm-door.is-visited .sm-door__pill::before {
	content: "Opened";
}

@media (hover: hover) {
	.securemas .sm-door.is-unlocked:hover::after,
	.securemas .sm-door.is-unlocked:focus-visible::after {
		border-width: 2px;
		border-color: #a7eb9d;
		filter: drop-shadow(0 0 7px rgba(167, 235, 157, 0.75));
	}

	.securemas .sm-door.is-unlocked:hover::before {
		opacity: 0.15;
	}

	.securemas .sm-door.is-unlocked:hover .sm-door__pill {
		box-shadow: 0 0 6px rgba(167, 235, 157, 0.45);
	}
}

/* ---- Opening door (desktop) ----
 * Clicking a door swings its leaf open on the left hinge and the doorway shows the scene painted in the
 * house artwork. The door stays open (until another door is opened or the page is reloaded) and the
 * doorway stays clickable to re-open the modal. */
.securemas .sm-house {
	--sm-swing: 0.6s;
}

.securemas .sm-leaf {
	position: absolute;
	z-index: 10;   /* above neighbouring doors' outline (2) and pill (3) */
	overflow: hidden;
	visibility: hidden;
	pointer-events: none;
	transform-origin: 1.4% 50%;
	transform: scaleX(1);
	filter: drop-shadow(-11px 4px 9px rgba(0, 0, 0, 0.5));
	transition: transform var(--sm-swing) cubic-bezier(0.45, 0.05, 0.25, 1), visibility 0s var(--sm-swing);
}

.securemas .sm-leaf img {
	position: absolute;
	max-width: none;
	pointer-events: none;
}

/* closed sprite on the way out, opened-leaf sprite once swung past the hinge */
.securemas .sm-leaf__front {
	opacity: 1;
	transition: opacity 0s calc(var(--sm-swing) * 0.45);
}

.securemas .sm-leaf__back {
	opacity: 0;
	transition: opacity 0s calc(var(--sm-swing) * 0.45);
}

.securemas .sm-leaf.is-open {
	visibility: visible;
	transform: scaleX(-1);
	transition: transform var(--sm-swing) cubic-bezier(0.45, 0.05, 0.25, 1), visibility 0s 0s;
}

/* the swung-open door is a click target that closes it (the doorway / room keeps opening the modal) */
.securemas .sm-leaf.is-open {
	pointer-events: auto;
	cursor: pointer;
}

@media (hover: hover) {
	.securemas .sm-leaf.is-open:hover {
		filter: drop-shadow(-11px 4px 9px rgba(0, 0, 0, 0.5)) brightness(1.1);
	}
}

.securemas .sm-leaf.is-open .sm-leaf__front { opacity: 0; }
.securemas .sm-leaf.is-open .sm-leaf__back { opacity: 1; }

/* the closed-door artwork steps aside while the door is open (and returns once it has swung shut) */
.securemas .sm-door__art {
	transition: visibility 0s var(--sm-swing, 0.6s);
}

.securemas .sm-door.is-open .sm-door__art {
	visibility: hidden;
	transition-delay: 0s;
}

/* an open door shows no pill / outline until hovered, then it reads as clickable again */
.securemas .sm-door.is-open .sm-door__pill {
	display: none;
}

.securemas .sm-door.is-open.is-unlocked::after {
	opacity: 0;
}

@media (hover: hover) {
	.securemas .sm-door.is-open.is-unlocked:hover::after,
	.securemas .sm-door.is-open.is-unlocked:focus-visible::after {
		opacity: 1;
	}
}

/* ---- Ambience: chimney smoke + lantern flicker (.sm-fx is created by securemas.js) ---- */
.securemas .sm-house--desktop { --fx-puff: 5cqw;   --fx-rise: 13cqw; --fx-drift: 5cqw;   --fx-lamp: 4.6cqw; }
.securemas .sm-house--tablet  { --fx-puff: 10cqw;  --fx-rise: 22cqw; --fx-drift: 9cqw;   --fx-lamp: 9cqw; }
.securemas .sm-house--phone   { --fx-puff: 13cqw;  --fx-rise: 26cqw; --fx-drift: 11cqw;  --fx-lamp: 14cqw; }

.securemas .sm-fx {
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
	overflow: hidden;
}

.securemas .sm-smoke {
	position: absolute;
	width: 0;
	height: 0;
}

.securemas .sm-smoke i {
	position: absolute;
	left: calc(var(--fx-puff) / -2);
	top: calc(var(--fx-puff) / -2);
	width: var(--fx-puff);
	height: var(--fx-puff);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(245, 249, 255, 0.85) 0%, rgba(235, 243, 255, 0.45) 40%, rgba(235, 243, 255, 0) 72%);
	opacity: 0;
	will-change: transform, opacity;
	animation: sm-smoke 6.4s ease-out infinite;
}

.securemas .sm-smoke i:nth-child(2) { animation-delay: 1.6s; --sway: 0.8; }
.securemas .sm-smoke i:nth-child(3) { animation-delay: 3.2s; --sway: -0.6; }
.securemas .sm-smoke i:nth-child(4) { animation-delay: 4.8s; --sway: 1.2; }

@keyframes sm-smoke {
	0%   { opacity: 0;    transform: translate(0, 0) scale(0.45); }
	10%  { opacity: 0.9; }
	35%  { transform: translate(calc(var(--fx-drift) * 0.15 * var(--sway, 1)), calc(var(--fx-rise) * -0.38)) scale(1); }
	65%  { opacity: 0.45; transform: translate(calc(var(--fx-drift) * 0.55), calc(var(--fx-rise) * -0.72)) scale(1.55); }
	100% { opacity: 0;    transform: translate(var(--fx-drift), calc(var(--fx-rise) * -1)) scale(2.1); }
}

.securemas .sm-lamp {
	position: absolute;
	width: calc(var(--fx-lamp) * var(--s, 1));
	height: calc(var(--fx-lamp) * var(--s, 1));
	margin: calc(var(--fx-lamp) * var(--s, 1) / -2) 0 0 calc(var(--fx-lamp) * var(--s, 1) / -2);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 216, 145, 0.75) 0%, rgba(255, 175, 75, 0.3) 36%, rgba(255, 140, 40, 0) 70%);
	mix-blend-mode: screen;
	opacity: 0;
}

.securemas .sm-lamp.is-flicker {
	animation: sm-flicker 1.5s linear 1;
}

@keyframes sm-flicker {
	0%   { opacity: 0; }
	8%   { opacity: 0.6; }
	17%  { opacity: 0.18; }
	29%  { opacity: 0.65; }
	41%  { opacity: 0.25; }
	55%  { opacity: 0.5; }
	72%  { opacity: 0.18; }
	100% { opacity: 0; }
}

.securemas .sm-fx.is-paused .sm-smoke i { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
	.securemas .sm-fx { display: none; }
}

/* Desktop: the foreground trees / sign sit ABOVE the opened door (as in Figma), below the snow. */
.securemas .sm-house--desktop .sm-house__layer { z-index: 4; }

/* Tablet / phone: the doorway scene that appears behind the swinging leaf */
.securemas .sm-scene {
	position: absolute;
	z-index: 8;
	overflow: hidden;
	pointer-events: none;
	opacity: 0;
	border-radius: var(--sm-r-top) var(--sm-r-top) var(--sm-r-bot) var(--sm-r-bot);
	transition: opacity 0.1s linear var(--sm-swing, 0.6s);
}

.securemas .sm-scene img {
	position: absolute;
	max-width: none;
}

.securemas .sm-scene.is-open {
	opacity: 1;
	transition-delay: 0s;
}

.securemas .sm-house--tablet .sm-scene { --sm-r-top: 6.25cqw; --sm-r-bot: 0.69cqw; }
.securemas .sm-house--phone .sm-scene  { --sm-r-top: 9.22cqw; --sm-r-bot: 1.12cqw; }

.securemas .sm-lantern {
	position: absolute;
	z-index: 4;
	max-width: none;
	pointer-events: none;
	user-select: none;
}

/* ---- Desktop house ---- */
.securemas .sm-house--desktop {
	display: block;
	max-width: 1360px;
	aspect-ratio: 1360 / 700.581;
	border-radius: 40px;
}

.securemas .sm-house--desktop .sm-house__sign {
	position: absolute;
	z-index: 4;   /* above the sign image (DOM order), below the tree */
	left: 50%;
	top: 88.05%;
	width: 21.3cqw;
	margin: 0;
	transform: translateX(-50%);
	color: #fff;
	text-align: center;
	font-size: 1.1cqw;
	font-weight: 600;
	line-height: 1.33;
	pointer-events: none;
}

.securemas .sm-house--desktop .sm-house__logo {
	left: 47.28%;
	top: 12.85%;
	width: 3.235cqw;
	height: 3.235cqw;
}

.securemas .sm-house--desktop .sm-door.is-unlocked .sm-door__pill {
	font-size: clamp(10px, 0.88cqw, 12px);
	padding: 3px 0.74cqw;
}

/* ---- Tablet house ---- */
.securemas .sm-house--tablet {
	max-width: 720px;
	aspect-ratio: 720 / 1073.2;
	border-radius: 24px;
}

.securemas .sm-house--tablet .sm-door {
	--sm-r-top: 6.25cqw;
	--sm-r-bot: 0.69cqw;
}

.securemas .sm-house--tablet .sm-house__logo {
	left: calc(50% + 0.556cqw);
	top: 14.26%;
	width: 6.94cqw;
	height: 6.94cqw;
	transform: translateX(-50%);
}

/* ---- Phone house ---- */
.securemas .sm-house--phone {
	max-width: 520px;
	aspect-ratio: 358 / 954;
	border-radius: 16px;
}

.securemas .sm-house--phone .sm-house__bg {
	top: -1.27%;
	height: 87.01%;
	object-fit: fill;
}

.securemas .sm-house--phone .sm-house__logo {
	left: calc(50% - 0.7cqw);
	top: 5.45%;
	width: 7.54cqw;
	height: 7.54cqw;
	transform: translateX(-50%);
}

.securemas .sm-house--phone .sm-door {
	--sm-r-top: 9.22cqw;
	--sm-r-bot: 1.12cqw;
}

.securemas .sm-house--phone .sm-door.is-unlocked::after {
	border-width: 1px;
}

@media (hover: hover) {
	.securemas .sm-house--phone .sm-door.is-unlocked:hover::after,
	.securemas .sm-house--phone .sm-door.is-unlocked:focus-visible::after {
		border-width: 2px;
		filter: drop-shadow(0 0 4px rgba(167, 235, 157, 0.75));
	}
}

.securemas .sm-house--phone .sm-door.is-unlocked .sm-door__pill {
	bottom: 3.5px;
	padding: 2px 7px;
	border-width: 0.75px;
	font-size: 10px;
	line-height: 13px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.securemas .sm-footer {
	width: 100%;
	max-width: 1440px;
	margin: 48px auto 0;
	padding: 0 40px;
}

.securemas .sm-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 32px 0;
}

.securemas .sm-footer__copy {
	display: flex;
	align-items: center;
	gap: 16px;
	color: var(--sm-text);
	font-size: 15px;
	line-height: 26px;
	white-space: nowrap;
}

.securemas .sm-footer__links {
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 24px;
	font-size: 14px;
	line-height: 19.6px;
	color: var(--sm-text);
	white-space: nowrap;
}

.securemas .sm-footer__links a {
	text-decoration: none;
}

.securemas .sm-footer__links a:hover {
	text-decoration: underline;
}

.securemas .sm-footer__social {
	display: flex;
	gap: 16px;
}

.securemas .sm-footer__social img {
	width: 36px;
	height: 36px;
}

.securemas .sm-lang {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 160px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--sm-text);
	font-size: 15px;
}

.securemas .sm-lang span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.securemas .sm-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.securemas .sm-modal[hidden] {
	display: none;
}

.securemas .sm-modal__scrim {
	position: absolute;
	inset: 0;
	background: rgba(17, 21, 23, 0.6);
	-webkit-backdrop-filter: blur(9.8px);
	backdrop-filter: blur(9.8px);
	animation: sm-fade 0.25s ease-out;
}

.securemas .sm-snow--modal {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.securemas .sm-card {
	position: relative;
	z-index: 2;
	width: 960px;
	max-width: 100%;
	height: 542px;
	border-radius: 28px;
	background: var(--sm-indigo-950);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
	animation: sm-pop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}

.securemas .sm-card:focus {
	outline: none;
}

.securemas .sm-card__close {
	position: absolute;
	z-index: 6;
	top: -28px;
	right: 0;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	opacity: 0.85;
}

.securemas .sm-card__close:hover {
	opacity: 1;
}

.securemas .sm-card__art {
	position: absolute;
	z-index: 1;
	left: 16px;
	right: 16px;
	top: 16px;
	height: 448px;
	overflow: hidden;
	border-radius: 16px;
	background: #131a29;
}

.securemas .sm-card__art img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	object-position: var(--sm-pos, center);
}

.securemas .sm-card__art img[src=""],
.securemas .sm-card__art img:not([src]) {
	visibility: hidden;
}

.securemas .sm-card__decor {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.securemas .sm-card__decor:has(.sm-decor--lights) {
	mix-blend-mode: plus-lighter;
}

.securemas .sm-card__decor img {
	position: absolute;
}

/* Decor presets (measured from the Figma desktop modals, card = 960×542) */
.securemas .sm-decor--lights {
	left: -2.26%;
	top: 418px;
	width: 105.9%;
	transform: rotate(180deg);
	mix-blend-mode: plus-lighter;
}

@media (min-width: 1100px) {
	.securemas .sm-decor--lights { top: 375px; }
}

.securemas .sm-decor--cap-a {
	left: 542px;
	top: -17px;
	width: 364px;
	height: 37px;
	object-fit: fill;
	filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.42));
}

.securemas .sm-decor--cap-b {
	left: 11px;
	top: -8px;
	width: 93px;
	height: 35px;
	object-fit: fill;
	filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.5));
}

.securemas .sm-decor--garland-a {
	left: 597px;
	top: -38px;
	width: 290px;
	height: 90px;
	object-fit: cover;
	transform: rotate(180deg);
}

.securemas .sm-decor--garland-b {
	left: 440px;
	top: -45px;
	width: 195px;
	height: 97px;
	object-fit: cover;
}

.securemas .sm-card__body {
	position: absolute;
	z-index: 4;
	left: 52px;
	top: 44px;
	width: 422px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;   /* Figma: label 34px box, title, 4px, text, 24px, button (spacing set per item below) */
}

.securemas .sm-card__eyebrow {
	margin: 0;
	height: 34px;
	color: var(--sm-green-400);
	font-size: 16px;
	font-weight: 700;
	line-height: 46px;
	text-transform: uppercase;
}

.securemas .sm-card__title {
	margin: 0;
	font-size: 36px;
	line-height: 46px;
	font-weight: 700;
	letter-spacing: 0;
	color: #fff;
	text-wrap: balance;
	white-space: pre-line;   /* line breaks (\n / ACF textarea) in the title are kept */
}

.securemas .sm-card__text {
	white-space: pre-line;   /* line breaks (\n / ACF textarea) in the text are kept */
	margin: 4px 0 0;
	max-width: 372px;
	font-size: 18px;
	line-height: 28px;
}

/* eyebrow/title/text group spacing: wrapper-less, so tighten with margins */
.securemas .sm-card__body > .sm-btn--primary {
	margin-top: 24px;
}

.securemas .sm-card__nav {
	position: absolute;
	z-index: 4;
	left: 21px;
	right: 21px;
	bottom: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.securemas .sm-card__navbtn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 2px 4px 2px 0;
	border: 0;
	background: none;
	color: var(--sm-neutral-icon);
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
}

.securemas .sm-card__navbtn:hover {
	color: #fff;
}

.securemas .sm-card__navbtn[hidden] {
	display: none;
}

.securemas .sm-card__navbtn--next {
	margin-left: auto;
}

/* The arrow asset points right; the "previous" icon is the same asset turned around. */
.securemas .sm-card__navbtn--prev img {
	transform: rotate(180deg);
}

@keyframes sm-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes sm-pop {
	from { opacity: 0; transform: translateY(14px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

body.sm-modal-open {
	overflow: hidden;
}

/* ==========================================================================
   Tablet  (640 – 1099px)
   ========================================================================== */
@media (max-width: 1099px) {
	.securemas .sm-house--desktop { display: none; }
	.securemas .sm-house--tablet { display: block; }

	.securemas .sm-header { gap: 20px; padding: 10px 24px 28px; }
	.securemas .sm-nav { padding: 0; min-height: 0; }
	.securemas .sm-title { gap: 16px; padding: 0; }
	.securemas .sm-title__h { font-size: 40px; line-height: 50px; }
	.securemas .sm-title__p { max-width: 640px; font-size: 17px; line-height: 26px; }

	.securemas .sm-calendar { margin-top: 0; padding: 0 24px 40px; }

	/* Footer: stacked rows on a flat dark band */
	.securemas .sm-footer {
		margin: 0;
		padding: 0 24px;
		max-width: none;
		background: var(--sm-neutral-1);
	}
	.securemas .sm-footer__inner {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas: "links links" "copy right";
		align-items: center;
		max-width: 720px;
		margin: 0 auto;
		padding: 16px 0;
		gap: 12px 32px;
	}
	.securemas .sm-footer__links { grid-area: links; justify-content: flex-start; flex-wrap: wrap; }
	.securemas .sm-footer__copy { grid-area: copy; gap: 12px; }
	.securemas .sm-footer__social { grid-area: right; justify-self: end; }
	.securemas .sm-footer__lang { grid-area: right; justify-self: end; }

	/* Modal – landscape card, art inset, text on the left */
	.securemas .sm-card {
		width: 704px;
		height: 402px;
		border-radius: 36px;
	}
	.securemas .sm-card__close { top: -26px; right: 0; }
	.securemas .sm-card__art { left: 14px; right: 14px; top: 14px; height: 330px; border-radius: 24px; }
	.securemas .sm-card__body { left: 42px; top: 40px; width: 330px; gap: 0; }
	.securemas .sm-card__eyebrow { font-size: 14px; font-weight: 700; text-transform: none; line-height: 20px; height: auto; margin: 0; }
	.securemas .sm-card__title { font-size: 28px; line-height: 34px; margin: 8px 0 0; }
	.securemas .sm-card__text { font-size: 16px; line-height: 24px; max-width: 330px; margin: 8px 0 0; }
	.securemas .sm-card__body > .sm-btn--primary { padding: 12px 24px; margin-top: 24px; }
	.securemas .sm-card__nav { left: 28px; right: 28px; bottom: 10px; }
	/* Decor is authored for the 960×542 desktop card – scale it to the tablet card (704 wide). */
	.securemas .sm-card__decor { inset: auto; left: 0; top: 0; width: 960px; height: 542px; transform: scale(0.7333); transform-origin: 0 0; }
}

/* ==========================================================================
   Phone  (< 640px)
   ========================================================================== */
@media (max-width: 639px) {
	.securemas .sm-house--tablet { display: none; }
	.securemas .sm-house--phone { display: block; }

	.securemas .sm-header { gap: 16px; padding: 10px 16px 20px; }
	.securemas .sm-nav__buttons { gap: 12px; }
	.securemas .sm-title { gap: 12px; }
	.securemas .sm-title__h { font-size: 30px; line-height: 38px; }
	.securemas .sm-title__p { max-width: 560px; font-size: 15px; line-height: 22px; }
	.securemas .sm-marker { gap: 6px; height: auto; padding: 4px 14px 4px 4px; }
	.securemas .sm-marker__label { padding: 2px 8px; font-size: 11px; }
	.securemas .sm-marker__paw { width: 14px; height: 11px; }

	.securemas .sm-calendar { padding: 0 16px 28px; }

	.securemas .sm-footer { padding: 0 16px; }
	.securemas .sm-footer__inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 24px;
		padding: 32px 0;
	}
	.securemas .sm-footer__social { order: 1; }
	.securemas .sm-footer__lang { order: 2; display: none; }
	.securemas .sm-footer__links { order: 3; flex-wrap: wrap; justify-content: center; white-space: normal; }
	.securemas .sm-footer__copy { order: 4; gap: 12px; }

	/* Modal – portrait card, art on top */
	.securemas .sm-modal { padding: 16px; }
	.securemas .sm-card {
		width: 358px;
		height: auto;
		min-height: 510px;
		border-radius: 28px;
		display: flex;
		flex-direction: column;
	}
	.securemas .sm-card__close { top: -28px; right: 0; }
	.securemas .sm-card__art {
		position: relative;
		left: auto; right: auto; top: auto;
		height: 228px;
		border-radius: 28px 28px 0 0;
		flex: none;
	}
	.securemas .sm-card__body {
		position: relative;
		left: auto; top: auto;
		width: 100%;
		padding: 20px 20px 0;
		gap: 0;
		align-items: stretch;
	}
	.securemas .sm-card__eyebrow { font-size: 14px; font-weight: 700; text-transform: none; line-height: 20px; height: auto; margin: 0; }
	.securemas .sm-card__title { font-size: 24px; line-height: 30px; margin: 4px 0 0; }
	.securemas .sm-card__text { font-size: 16px; line-height: 24px; max-width: none; margin: 4px 0 0; }
	.securemas .sm-card__body > .sm-btn--primary { width: 100%; margin-top: 18px; }
	.securemas .sm-card__nav {
		position: relative;
		left: auto; right: auto; bottom: auto;
		padding: 18px 20px 20px;
	}
	.securemas .sm-card__art img {
		object-position: var(--sm-focus, 100% 50%);
	}
	/* Figma phone crop (set per day by the JS): the image is sized and offset inside the art box */
	.securemas .sm-card__art.has-crop img {
		position: absolute;
		width: var(--sm-pw);
		height: var(--sm-ph);
		left: var(--sm-pl);
		top: var(--sm-pt);
		max-width: none;
		object-fit: cover;
	}
	.securemas .sm-card__decor { inset: 0; width: auto; height: auto; transform: none; }
	.securemas .sm-decor--lights { top: -6px; left: -6%; width: 112%; }
	.securemas .sm-decor--cap-a { left: 77px; top: -10px; width: 125px; height: 20px; }
	.securemas .sm-decor--cap-b { left: 12px; top: -9px; width: 50px; height: 20px; }
	.securemas .sm-decor--garland-a { left: 80px; top: -22px; width: 128px; height: 40px; }
	.securemas .sm-decor--garland-b { left: 11px; top: -28px; width: 86px; height: 43px; }
}

@media (max-width: 380px) {
	.securemas .sm-btn { padding-inline: 18px; }
	.securemas .sm-nav__buttons { gap: 8px; }
}

/* Short desktop viewports: keep the modal on screen */
@media (min-width: 1100px) and (max-height: 640px) {
	.securemas .sm-card { transform: scale(0.85); transform-origin: center; animation: none; }
}

@media (prefers-reduced-motion: reduce) {
	.securemas .sm-card,
	.securemas .sm-modal__scrim { animation: none; }
	.securemas .sm-door.is-unlocked::before,
	.securemas .sm-door.is-unlocked::after,
	.securemas .sm-door__pill { transition: none; }
	.securemas .sm-house { --sm-swing: 0s; }
}
