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

h1,
h2,
h3 {
	hyphens: auto;
	-webkit-hyphens: auto;
}
.mt-5.leading-relaxed.text-muted-foreground {
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
	-webkit-hyphens: auto;
}
#top,
#get-started,
#why-meteor-profit,
#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;
}
@media (max-width: 1023px) {
	section#top.pt-40 {
		padding-top: 5rem;
	}

	/* Keep the compact header controls in their own columns on mobile. */
	.grid-cols-\[minmax\(0\,1fr\)_auto_auto\] {
		grid-template-columns: minmax(0, 1fr) auto auto auto;
	}

	header [data-logo] {
		order: 1;
	}

	header [data-logo] > span {
		display: none;
	}

	header .header-actions {
		display: contents;
	}

	header .header-actions > .btn-primary {
		order: 2;
	}

	header [data-menu-toggle] {
		order: 3;
	}

	header .header-actions > .language-dropdown {
		order: 4;
	}

	#how-it-works .grid {
		grid-template-columns: minmax(0, 1fr);
	}

	#how-it-works .grid > * {
		min-width: 0;
		width: 100%;
		max-width: 100%;
	}

	#how-it-works .grid > * h3,
	#how-it-works .grid > * p {
		max-width: 100%;
		white-space: normal;
		overflow-wrap: anywhere;
		word-break: break-word;
		hyphens: auto;
		-webkit-hyphens: auto;
	}
}

@media (max-width: 420px) {
	.grid-cols-\[minmax\(0\,1fr\)_auto_auto\] {
		column-gap: 0.5rem;
		padding-right: 1rem;
		padding-left: 1rem;
	}
}

/* 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.6);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

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

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