/* Above-the-fold styles for marketing routes — full Tailwind loads async. */
:root {
  color-scheme: light;
  --radius: 0.5rem;
  --primary: oklch(0.35 0.06 250);
  --primary-foreground: oklch(0.98 0.005 90);
  --amber: oklch(0.72 0.14 75);
  --amber-foreground: oklch(0.2 0.04 60);
  --background: oklch(0.975 0.003 80);
  --foreground: oklch(0.22 0.03 250);
  --card: oklch(0.99 0.002 80);
  --card-foreground: oklch(0.22 0.03 250);
  --muted-foreground: oklch(0.5 0.03 250);
  --border: oklch(0.9 0.01 80);
  --ring: oklch(0.72 0.14 75);
  --font-heading: "Space Grotesk Variable", "Space Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-heading);
  line-height: 1.5;
}
#root { min-height: 100vh; }

/* SSR hero poster — fixed overlay, no document flow shift when app mounts */
.lp-ssr-hero {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: var(--primary);
  color: var(--primary-foreground);
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lp-ssr-nav {
  height: 4rem;
  min-height: 4rem;
  flex-shrink: 0;
}
.lp-ssr-hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem 2rem;
}
.lp-ssr-hero-img {
  display: block;
  width: 100%;
  max-width: 24rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.35);
}
body.lp-app-ready .lp-ssr-hero {
  opacity: 0;
  visibility: hidden;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  transform: translateY(-200%);
  border-radius: 0.375rem;
  background: var(--background);
  color: var(--foreground);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.skip-link:focus-visible { transform: translateY(0); outline: none; }

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.shrink-0 { flex-shrink: 0; }
.overflow-x-hidden { overflow-x: hidden; }
.relative { position: relative; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.border-b { border-bottom: 1px solid var(--border); }
.bg-background { background-color: var(--background); }
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.tracking-tight { letter-spacing: -0.025em; }
.h-14 { height: 3.5rem; }
.h-8 { height: 2rem; }
.w-8 { width: 2rem; }
.rounded-lg { border-radius: var(--radius); }
.hidden { display: none; }

header.sticky,
header[class*="sticky"] {
  backdrop-filter: blur(8px);
  background: color-mix(in oklch, var(--background) 95%, transparent);
}

/* Hero (adult home) */
section[class*="bg-[var(--primary)]"],
.lp-hero-shell {
  background: var(--primary);
  color: var(--primary-foreground);
}
h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  font-size: clamp(1.875rem, 5vw, 3.5rem);
}

.aspect-video { aspect-ratio: 16 / 9; width: 100%; }
.text-balance { text-wrap: balance; }
.max-w-xl { max-width: 36rem; }

@media (min-width: 640px) {
  .sm\:h-16 { height: 4rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:h-9 { height: 2.25rem; }
  .sm\:w-9 { width: 2.25rem; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
}

@media (min-width: 1024px) {
  .lg\:hidden { display: none; }
  .lg\:flex { display: flex; }
}
