/* Alescentrix holding page.
   Base rules are the reference rules from site/index.html. The mobile menu, the skip link,
   the footer links and the simple pages are the only additions. */

html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", Arial, Helvetica, sans-serif; color: #12141C; background: #FFFFFF; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: #2F4BFF; }
a:hover { color: #1E34CC; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #2F4BFF; outline-offset: 3px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Skip link */
.skip-link { position: absolute; left: 16px; top: -72px; z-index: 100; padding: 12px 16px; background: #12141C; color: #FFFFFF; font-size: 14px; font-weight: 500; border-radius: 4px; text-decoration: none; }
.skip-link:focus { top: 12px; color: #FFFFFF; }

/* Header */
.site-header-inner { padding: 20px 24px; gap: 16px 32px; }
.brand img { height: 28px; width: auto; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.nav-panel { display: contents; }
.nav-link { display: inline-block; font-size: 14px; line-height: 44px; font-weight: 500; color: #12141C; text-decoration: none; }
.nav-link:hover { color: #12141C; }
.nav-cta { display: inline-flex; align-items: center; font-size: 14px; line-height: 20px; font-weight: 500; color: #FFFFFF; background: #2F4BFF; text-decoration: none; padding: 12px 20px; border-radius: 4px; }
.nav-cta:hover { color: #FFFFFF; }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: #FFFFFF; border: 1.5px solid #7F869C; border-radius: 4px; cursor: pointer; }
.nav-toggle-bars { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 18px; }
.nav-toggle-bars span { display: block; height: 2px; width: 18px; background: #12141C; }
.nav-toggle[aria-expanded="true"] { background: #F5F6FA; }

@media (max-width: 719px) {
  .site-header { position: relative; z-index: 30; }
  .site-header-inner { padding: 14px 16px; gap: 8px 12px; }
  .brand img { height: 22px; width: auto; }
  .nav { flex: 1 1 auto; justify-content: flex-end; gap: 8px; }
  .nav-toggle { display: inline-flex; order: 2; }
  .nav-cta { order: 1; padding: 12px 14px; white-space: nowrap; }
  .nav-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; box-sizing: border-box; background: #FFFFFF; border-bottom: 1px solid #DDE0EA; padding: 6px 16px 14px; z-index: 40; }
  .nav-panel[data-open="true"] { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-panel .nav-link { font-size: 16px; line-height: 44px; padding: 0 4px; border-top: 1px solid #DDE0EA; }
  .nav-panel .nav-link:first-child { border-top: 0; }
}

@media (max-width: 400px) {
  .brand img { height: 20px; width: auto; }
  .site-header-inner { padding: 12px 14px; }
}

/* Honeypot: off screen, never focusable, ignored by assistive technology */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Form states */
[data-waitlist-form][data-busy="true"] button[type="submit"] { opacity: 0.72; cursor: progress; }
[data-error] p[role="alert"] { max-width: 520px; }

/* Footer links */
.footer-link { color: #9AA1B5; text-decoration: none; }
.footer-link:hover { color: #FFFFFF; text-decoration: underline; }

/* Privacy and 404 pages */
.page { max-width: 1200px; margin: 0 auto; padding: 88px 24px 96px; }
.page-inner { max-width: 760px; }
.eyebrow { margin: 0 0 16px; font-family: "IBM Plex Mono", Consolas, "Courier New", monospace; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; color: #636A7F; }
.page h1 { margin: 0; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; }
.prose { margin: 28px 0 0; font-size: 17px; line-height: 28px; color: #454B5E; }
.prose h2 { margin: 40px 0 8px; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.015em; color: #12141C; }
.prose h3 { margin: 28px 0 6px; font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; color: #12141C; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose a { color: #2F4BFF; }
.prose strong { color: #12141C; font-weight: 600; }
.prose code { font-family: "IBM Plex Mono", Consolas, "Courier New", monospace; font-size: 15px; }
.page-actions { margin: 36px 0 0; }
.page-actions a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; font-size: 16px; font-weight: 500; color: #FFFFFF; background: #2F4BFF; text-decoration: none; border-radius: 4px; }
.page-actions a:hover { color: #FFFFFF; }

@media (max-width: 719px) {
  .page { padding: 56px 20px 72px; }
  .prose { font-size: 16px; line-height: 26px; }
}
