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

#top,
#get-started,
#why-orol,
#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);
}
