/* ==========================================================================
   Avarida Group — homepage iOS-style alarm intro overlay.

   Everything is scoped under `.avarida-intro` on purpose: hello-elementor's
   reset.css styles bare `button` (and `button:hover`) with a #c36 pink, and a
   bare `button:hover` selector out-specifies a single class. Ancestor-scoping
   every control keeps the cascade ours.
   ========================================================================== */

html.avarida-intro-seen .avarida-intro { display: none !important; }

html.avarida-intro-lock,
html.avarida-intro-lock body { overflow: hidden !important; }

.avarida-intro {
	--ios-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
		"Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
	--ios-orange: #ff9f0a;
	--ios-dim: rgba( 255, 255, 255, 0.62 );

	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.15rem;
	padding: 1.25rem;
	overflow: hidden;
	opacity: 1;
	transition: opacity 500ms ease;
	font-family: var( --ios-font ) !important;
	-webkit-font-smoothing: antialiased;
}
.avarida-intro[hidden] { display: none; }
.avarida-intro.is-closing { opacity: 0; pointer-events: none; }

/* Kill the parent theme's button styling inside the overlay, in every state. */
.avarida-intro button,
.avarida-intro button:hover,
.avarida-intro button:focus,
.avarida-intro button:active,
.avarida-intro button:focus-visible {
	font-family: var( --ios-font ) !important;
	border: 0;
	border-radius: 0;
	background: none;
	background-color: transparent;
	color: inherit;
	padding: 0;
	font-size: inherit;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.avarida-intro a { text-decoration: none; }

/* --------------------------------------------------------------------------
   Backdrop
   -------------------------------------------------------------------------- */

.avarida-intro__backdrop {
	position: absolute;
	inset: -12%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 44%;
	filter: blur( 46px ) saturate( 1.2 );
	opacity: 0.42;
	transform: scale( 1.2 );
}
.avarida-intro__tint {
	position: absolute;
	inset: 0;
	background:
		radial-gradient( 70% 50% at 50% 8%, rgba( 168, 85, 247, 0.28 ), transparent 70% ),
		linear-gradient( 180deg, #07070d 0%, #100c1c 45%, #06060b 100% );
}
.avarida-intro__aurora {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 46rem;
	height: 46rem;
	transform: translate( -50%, -50% );
	pointer-events: none;
	background: radial-gradient( circle, rgba( 168, 85, 247, 0.4 ) 0%, rgba( 168, 85, 247, 0.12 ) 38%, transparent 66% );
	opacity: 0.5;
	animation: avarida-aurora 620ms ease-in-out infinite;
}
.avarida-intro.is-stopped .avarida-intro__aurora {
	animation: none;
	opacity: 0.32;
	background: radial-gradient( circle, rgba( 52, 211, 153, 0.26 ) 0%, rgba( 52, 211, 153, 0.08 ) 40%, transparent 68% );
	transition: opacity 600ms ease, background 600ms ease;
}
@keyframes avarida-aurora {
	0%, 100% { opacity: 0.34; transform: translate( -50%, -50% ) scale( 0.92 ); }
	50%      { opacity: 0.62; transform: translate( -50%, -50% ) scale( 1.06 ); }
}

.avarida-intro__skip {
	position: absolute;
	top: 1.15rem;
	right: 1.15rem;
	z-index: 3;
	padding: 0.5rem 1.05rem !important;
	border-radius: 9999px !important;
	border: 1px solid rgba( 255, 255, 255, 0.16 ) !important;
	background: rgba( 255, 255, 255, 0.07 ) !important;
	backdrop-filter: blur( 14px );
	-webkit-backdrop-filter: blur( 14px );
	color: rgba( 255, 255, 255, 0.72 ) !important;
	font-size: 0.78rem !important;
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: background 0.2s, color 0.2s;
}
.avarida-intro__skip:hover {
	background: rgba( 255, 255, 255, 0.16 ) !important;
	color: #fff !important;
}

.avarida-intro__hint {
	position: relative;
	z-index: 2;
	margin: 0;
	font-size: 0.76rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	color: rgba( 255, 255, 255, 0.38 );
	transition: opacity 400ms ease;
}
.avarida-intro.is-stopped .avarida-intro__hint { opacity: 0; }

/* --------------------------------------------------------------------------
   iPhone
   -------------------------------------------------------------------------- */

.avarida-phone {
	position: relative;
	z-index: 2;
	height: min( 41rem, 82vh );
	aspect-ratio: 9 / 19.5;
	flex: 0 0 auto;
	animation: avarida-phone-ring 620ms ease-in-out infinite;
	transform-origin: 50% 60%;
}
.avarida-intro.is-stopped .avarida-phone {
	animation: none;
	transform: none;
	transition: transform 500ms cubic-bezier( 0.34, 1.4, 0.64, 1 );
}
@keyframes avarida-phone-ring {
	0%, 100% { transform: translate3d( -3px, 0, 0 ) rotate( -0.9deg ); }
	50%      { transform: translate3d( 3px, 0, 0 ) rotate( 0.9deg ); }
}

.avarida-phone__frame {
	position: relative;
	height: 100%;
	padding: 0.6rem;
	border-radius: 3.1rem;
	background: linear-gradient( 155deg, #55555f 0%, #1b1b21 26%, #101014 55%, #3b3b44 88%, #17171c 100% );
	box-shadow:
		0 2px 1px rgba( 255, 255, 255, 0.16 ) inset,
		0 -2px 2px rgba( 0, 0, 0, 0.6 ) inset,
		0 40px 90px -12px rgba( 0, 0, 0, 0.85 ),
		0 0 0 1px rgba( 0, 0, 0, 0.6 );
}
.avarida-phone__glow {
	position: absolute;
	inset: 8% 12% -6%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient( circle, rgba( 168, 85, 247, 0.5 ), transparent 65% );
	filter: blur( 46px );
	opacity: 0.7;
}

.avarida-phone__screen {
	position: relative;
	height: 100%;
	border-radius: 2.6rem;
	overflow: hidden;
	background: #05050a;
	display: flex;
	flex-direction: column;
	isolation: isolate;
}

.avarida-phone__wall {
	position: absolute;
	inset: 0;
	background-position: center 34%;
	background-repeat: no-repeat;
	background-size: 116%;
	filter: blur( 16px ) saturate( 1.15 );
	opacity: 0.3;
	z-index: -2;
}
.avarida-phone__wall-tint {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient( 90% 60% at 50% 0%, rgba( 168, 85, 247, 0.34 ), transparent 68% ),
		linear-gradient( 180deg, rgba( 4, 4, 10, 0.5 ) 0%, rgba( 6, 5, 14, 0.82 ) 46%, rgba( 3, 3, 7, 0.96 ) 100% );
}

.avarida-phone__island {
	position: absolute;
	top: 0.62rem;
	left: 50%;
	transform: translateX( -50% );
	width: 32%;
	height: 1.55rem;
	border-radius: 9999px;
	background: #000;
	z-index: 5;
	box-shadow: 0 0 0 1px rgba( 255, 255, 255, 0.05 );
}

/* --------------------------------------------------------------------------
   Lock screen content
   -------------------------------------------------------------------------- */

.avarida-lock {
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 3.15rem 1.15rem 1.6rem;
	min-height: 0;
}
.avarida-lock[hidden] { display: none; }

.avarida-lock__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.34rem;
	padding: 0.28rem 0.72rem;
	border-radius: 9999px;
	background: rgba( 255, 255, 255, 0.12 );
	backdrop-filter: blur( 10px );
	-webkit-backdrop-filter: blur( 10px );
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	animation: avarida-badge-pulse 620ms ease-in-out infinite;
}
.avarida-lock__badge svg { width: 13px; height: 13px; }
.avarida-lock__badge--ok {
	background: rgba( 52, 211, 153, 0.2 );
	color: #6ee7b7;
	animation: none;
}
@keyframes avarida-badge-pulse {
	0%, 100% { background: rgba( 255, 255, 255, 0.1 ); }
	50%      { background: rgba( 255, 159, 10, 0.34 ); }
}

.avarida-lock__clock {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 0.3rem;
	margin-top: 0.85rem;
}
.avarida-lock__time {
	font-size: clamp( 3.4rem, 12.5vh, 4.9rem );
	font-weight: 200;
	line-height: 1;
	letter-spacing: -0.035em;
	color: #fff;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 2px 26px rgba( 0, 0, 0, 0.5 );
}
.avarida-lock__ampm {
	margin-top: 0.55rem;
	font-size: 0.98rem;
	font-weight: 500;
	color: rgba( 255, 255, 255, 0.82 );
	letter-spacing: 0.01em;
}
.avarida-lock__ampm:empty { display: none; }

.avarida-lock__date {
	margin-top: 0.34rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: rgba( 255, 255, 255, 0.78 );
}
.avarida-lock__zone {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
	margin-top: 0.5rem;
	font-size: 0.7rem;
	font-weight: 500;
	color: rgba( 255, 255, 255, 0.44 );
}
.avarida-lock__zone svg { width: 11px; height: 11px; flex: 0 0 auto; }

.avarida-lock__spacer { flex: 1 1 auto; min-height: 0.75rem; }

.avarida-lock__label {
	margin: 0 0 0.9rem;
	font-size: 0.86rem;
	font-weight: 500;
	line-height: 1.45;
	color: var( --ios-dim );
	max-width: 15rem;
}

/* Snooze ------------------------------------------------------------------ */

.avarida-lock__snoozewrap { width: 100%; }

.avarida-lock__snooze {
	width: 100%;
	padding: 0.82rem 1rem !important;
	border-radius: 9999px !important;
	background: linear-gradient( 180deg, #ffb43d 0%, #ff9500 52%, #f38300 100% ) !important;
	color: #3b1f00 !important;
	font-size: 0.98rem !important;
	font-weight: 700;
	letter-spacing: 0.01em;
	box-shadow: 0 6px 20px -4px rgba( 255, 149, 0, 0.6 ), inset 0 1px 0 rgba( 255, 255, 255, 0.42 );
	transition: transform 0.16s ease, filter 0.16s ease;
}
.avarida-lock__snooze:hover { filter: brightness( 1.06 ); }
.avarida-lock__snooze:active { transform: scale( 0.975 ); }
.avarida-lock__snooze[disabled] { opacity: 0.45; filter: grayscale( 0.4 ); cursor: default; }

.avarida-lock__snoozenote {
	margin: 0.5rem 0 0;
	font-size: 0.72rem;
	font-weight: 600;
	color: var( --ios-orange );
	font-variant-numeric: tabular-nums;
}

/* Slide to stop ----------------------------------------------------------- */

.avarida-slide {
	position: relative;
	width: 100%;
	height: 3.5rem;
	margin-top: 0.85rem;
	border-radius: 9999px;
	background: rgba( 255, 255, 255, 0.1 );
	border: 1px solid rgba( 255, 255, 255, 0.14 );
	backdrop-filter: blur( 14px );
	-webkit-backdrop-filter: blur( 14px );
	overflow: hidden;
	flex: 0 0 auto;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}

.avarida-slide__fill {
	position: absolute;
	inset: 0;
	width: 0;
	background: linear-gradient( 90deg, rgba( 52, 211, 153, 0.16 ), rgba( 52, 211, 153, 0.34 ) );
	transition: width 0.22s ease;
	pointer-events: none;
}
.avarida-slide.is-dragging .avarida-slide__fill { transition: none; }

.avarida-slide__text {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-left: 1.6rem;
	font-size: 0.86rem;
	font-weight: 500;
	letter-spacing: 0.015em;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		rgba( 255, 255, 255, 0.3 ) 0%,
		rgba( 255, 255, 255, 0.3 ) 42%,
		#ffffff 50%,
		rgba( 255, 255, 255, 0.3 ) 58%,
		rgba( 255, 255, 255, 0.3 ) 100%
	);
	background-size: 260% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: avarida-shimmer 2.6s linear infinite;
}
@keyframes avarida-shimmer {
	from { background-position: 160% 0; }
	to   { background-position: -60% 0; }
}

.avarida-slide__knob {
	position: absolute;
	top: 0.3rem;
	left: 0.3rem;
	width: 2.9rem !important;
	height: 2.9rem;
	border-radius: 1rem !important;
	background: linear-gradient( 165deg, #ffffff 0%, #e8e9ee 100% ) !important;
	box-shadow: 0 3px 12px rgba( 0, 0, 0, 0.45 ), inset 0 1px 0 rgba( 255, 255, 255, 0.9 );
	display: flex !important;
	align-items: center;
	justify-content: center;
	cursor: grab;
	transition: transform 0.34s cubic-bezier( 0.34, 1.45, 0.64, 1 );
	z-index: 2;
}
.avarida-slide.is-dragging .avarida-slide__knob { transition: none; cursor: grabbing; }
.avarida-slide__knob-glyph {
	width: 0.82rem;
	height: 0.82rem;
	border-radius: 0.2rem;
	background: #1c1c22;
}

/* --------------------------------------------------------------------------
   Services stage
   -------------------------------------------------------------------------- */

.avarida-lock--services { justify-content: flex-start; }

.avarida-lock__heading {
	margin: 0.95rem 0 0.4rem;
	font-size: 1.28rem;
	font-weight: 600;
	line-height: 1.28;
	letter-spacing: -0.015em;
	color: #fff;
}
.avarida-lock__sub {
	margin: 0 0 1.1rem;
	font-size: 0.78rem;
	line-height: 1.5;
	color: rgba( 255, 255, 255, 0.5 );
	max-width: 15.5rem;
}

.avarida-notifs {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	width: 100%;
}

.avarida-notif {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.68rem 0.72rem;
	border-radius: 1.15rem;
	border: 1px solid rgba( 255, 255, 255, 0.1 );
	background: rgba( 255, 255, 255, 0.09 );
	backdrop-filter: blur( 18px );
	-webkit-backdrop-filter: blur( 18px );
	text-align: left;
	opacity: 0;
	transform: translateY( 14px ) scale( 0.97 );
	animation: avarida-notif-in 520ms cubic-bezier( 0.34, 1.4, 0.64, 1 ) forwards;
	animation-delay: calc( 90ms * var( --i ) + 120ms );
	transition: background 0.18s ease, border-color 0.18s ease;
}
.avarida-notif:hover,
.avarida-notif:focus-visible {
	background: rgba( 255, 255, 255, 0.17 );
	border-color: rgba( 168, 85, 247, 0.6 );
}
@keyframes avarida-notif-in {
	to { opacity: 1; transform: translateY( 0 ) scale( 1 ); }
}

.avarida-notif__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 0.66rem;
	color: #fff;
	box-shadow: inset 0 1px 0 rgba( 255, 255, 255, 0.3 );
}
.avarida-notif__icon svg { width: 16px; height: 16px; }
.avarida-notif__icon--violet { background: linear-gradient( 160deg, #a855f7, #7c3aed ); }
.avarida-notif__icon--blue   { background: linear-gradient( 160deg, #38bdf8, #2563eb ); }
.avarida-notif__icon--pink   { background: linear-gradient( 160deg, #f472b6, #db2777 ); }
.avarida-notif__icon--green  { background: linear-gradient( 160deg, #34d399, #059669 ); }

.avarida-notif__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 0.08rem; min-width: 0; }
.avarida-notif__title { font-size: 0.8rem; font-weight: 600; color: #fff; line-height: 1.25; }
.avarida-notif__desc { font-size: 0.68rem; color: rgba( 255, 255, 255, 0.5 ); line-height: 1.3; }
.avarida-notif__chev { width: 14px; height: 14px; flex: 0 0 auto; color: rgba( 255, 255, 255, 0.32 ); }

.avarida-lock__enter {
	margin-top: auto !important;
	padding-top: 1rem !important;
	font-size: 0.76rem !important;
	font-weight: 600;
	color: rgba( 255, 255, 255, 0.46 ) !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}
.avarida-lock__enter:hover { color: #fff !important; }

/* --------------------------------------------------------------------------
   Small screens / short viewports
   -------------------------------------------------------------------------- */

@media ( max-height: 700px ) {
	.avarida-phone { height: 86vh; }
	.avarida-intro__hint { display: none; }
	.avarida-lock { padding-top: 2.85rem; }
}

@media ( max-width: 420px ) {
	.avarida-phone { height: auto; width: min( 100%, 21rem ); aspect-ratio: 9 / 19.5; }
	.avarida-phone__frame { padding: 0.45rem; border-radius: 2.7rem; }
	.avarida-phone__screen { border-radius: 2.3rem; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media ( prefers-reduced-motion: reduce ) {
	.avarida-phone,
	.avarida-intro__aurora,
	.avarida-lock__badge,
	.avarida-slide__text,
	.avarida-notif {
		animation: none !important;
	}
	.avarida-notif { opacity: 1; transform: none; }
	.avarida-slide__text { color: rgba( 255, 255, 255, 0.8 ); -webkit-text-fill-color: currentColor; }
	.avarida-intro,
	.avarida-slide__knob,
	.avarida-slide__fill { transition-duration: 0.01ms !important; }
}
