/* Custom site behaviour styles (mobile nav, form feedback, misc) — not part of the compiled Tailwind bundle */

#top,
#get-started,
#why-cerfina,
#ai-automation,
#faq {
	scroll-margin-top: 88px;
}

/* The compiled accordion-down/up keyframes animate to
   var(--radix-accordion-content-height), which is only ever set by
   Radix's runtime ResizeObserver — absent here, so those never played
   correctly. site.js now drives the open/close height itself (see
   initAccordion), so just disable the broken keyframes and let the
   inline height transition do the animating. */
#faq [role="region"] {
	overflow: hidden;
	animation: none !important;
	transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-logo-link {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

/* Mobile nav dropdown — matches the source app's own header menu: an
   inline panel under the header row (not a fullscreen overlay), closed
   by default via the [hidden] attribute. */
.mobile-nav-link:hover {
	background-color: var(--surface);
}

/* Menu/close icon swap on the burger button. The Tailwind preflight sets
   `svg { display: block }` as an author rule, which beats the browser's
   default `[hidden] { display: none }` UA rule — so [hidden] alone never
   actually hid these icons. Force it with !important, and stack both
   icons in the same grid cell so the swap doesn't just push them apart. */
[data-menu-toggle] svg[data-icon-menu],
[data-menu-toggle] svg[data-icon-close] {
	grid-column: 1;
	grid-row: 1;
}

[data-menu-toggle] svg[hidden] {
	display: none !important;
}

/* Form submit feedback */
.form-feedback {
	display: none;
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 0.875rem;
	line-height: 1.4;
}

.form-feedback.is-visible {
	display: block;
}

.form-feedback.is-success {
	background: rgba(52, 199, 89, 0.12);
	color: #34c759;
	border: 1px solid rgba(52, 199, 89, 0.3);
}

.form-feedback.is-error {
	background: rgba(255, 69, 58, 0.12);
	color: #ff453a;
	border: 1px solid rgba(255, 69, 58, 0.3);
}


#mobile-overlay {
	position: fixed;
	inset: 0;
	z-index: 40;
	background: rgba(0, 0, 0, 0.62);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

#mobile-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

#mobile-nav {
	z-index: 45;
}

body.mobile-menu-open {
	overflow: hidden;
}

@media (min-width: 1024px) {
	#mobile-overlay {
		display: none;
	}
}



header.transparent {
	background: var(--surface);
	border-color: var(--border);
}


.site-logo {
	display: block;
	width: auto;
	height: 29.6px;
	flex: 0 0 auto;
}

p.font-display,
span.font-display,
blockquote.font-display,
button.font-display {
	font-family: var(--font-sans);
}

p.font-display.text-5xl,
p.font-display.text-6xl,
p.font-display.text-\[2\.25rem\] {
	font-family: var(--font-display);
	font-weight: 400;
}

h1.font-display,
h2.font-display,
h3.font-display,
h4.font-display,
p.font-display.text-5xl,
p.font-display.text-6xl,
p.font-display.text-\[2\.25rem\] {
	letter-spacing: 0;
}

h1.font-display.text-4xl,
h2.font-display.text-4xl {
	font-size: 40.8px;
	line-height: 0.935;
}

@media (min-width: 640px) {

	h1.font-display.text-4xl.sm\:text-5xl,
	h2.font-display.text-4xl.sm\:text-5xl {
		font-size: 54.4px;
	}
}

@media (min-width: 1024px) {

	h1.font-display.text-4xl.lg\:text-6xl,
	h2.font-display.text-4xl.lg\:text-6xl {
		font-size: 68px;
	}
}

h1.font-display.text-\[2\.25rem\] {
	font-size: 43.7px;
	line-height: 0.89;
}

@media (min-width: 640px) {
	h1.font-display.text-\[2\.25rem\] {
		font-size: 58.3px;
	}
}

@media (min-width: 1024px) {
	h1.font-display.text-\[2\.25rem\] {
		font-size: 68px;
	}
}

h3.font-display.text-2xl.sm\:text-3xl,
h4.font-display.text-2xl.lg\:text-3xl {
	font-size: 28.8px;
	line-height: 1.04;
}

@media (min-width: 640px) {
	h3.font-display.text-2xl.sm\:text-3xl {
		font-size: 36px;
	}
}

@media (min-width: 1024px) {
	h4.font-display.text-2xl.lg\:text-3xl {
		font-size: 36px;
	}
}

h3.font-display.text-2xl {
	font-size: 32px;
	line-height: 1.03;
}

.page-about h3.font-display.text-2xl.sm\:text-3xl {
	font-size: 25.6px;
	line-height: 1.03;
}

@media (min-width: 640px) {
	.page-about h3.font-display.text-2xl.sm\:text-3xl {
		font-size: 32px;
	}
}

p.font-display.text-5xl {
	font-size: 60.7px;
}

@media (min-width: 640px) {
	p.font-display.text-5xl.sm\:text-6xl {
		font-size: 75.8px;
	}
}

@media (min-width: 1024px) {
	p.font-display.text-5xl.lg\:text-7xl {
		font-size: 91px;
	}
}

#faq button[data-state="open"] {
	color: var(--muted-foreground);
}

@media (min-width: 1024px) {

	.hero-laptop-wrap {
		left: calc((100% - 100vw) / 2 + min(7.708vw, 148px));
		bottom: -144px;
		width: min(55.885vw, 1073px);
	}

	.hero-laptop {
		display: block;
		width: 100%;
		height: auto;
	}
}

h1.font-display.text-\[2\.25rem\] {
	max-width: 1100px;
}


.phone-cta-box {
	position: relative;
	width: 100%;
	max-width: 640px;
	aspect-ratio: 640 / 853.33;
	overflow: hidden;
}

.phone-cta-img {
	position: absolute;
	width: 100%;
	height: auto;
	left: 0;
	top: 0;
}
