/* adminless.app — static site (landing + legal pages).
   Hand-rolled, framework-free. Palette mirrors the admin app's dark
   theme (cool OKLCH dark + bright blue primary, admin/app/globals.css). */

:root {
  --bg: oklch(0.16 0.018 255);
  --bg-raised: oklch(0.20 0.02 252);
  --fg: oklch(0.93 0.008 250);
  --muted: oklch(0.66 0.02 252);
  --faint: oklch(0.45 0.02 252);
  --primary: oklch(0.68 0.18 254);
  --primary-soft: oklch(0.68 0.18 254 / 0.14);
  --border: oklch(0.32 0.02 252 / 0.7);
  --hairline: oklch(0.32 0.02 252 / 0.45);
  --max: 64rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Instrument Sans", ui-sans-serif, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* layered atmosphere: top glow + faint grain */
  background-image:
    radial-gradient(60rem 32rem at 50% -8rem, oklch(0.30 0.07 256 / 0.55), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.brand img { width: 22px; height: 22px; display: block; }

.signin {
  font-size: 0.9rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.42rem 1rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.signin:hover { color: var(--fg); border-color: var(--primary); text-decoration: none; }

/* ---------- landing hero ---------- */

.hero {
  padding: 7rem 0 5rem;
  max-width: 44rem;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1.4rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.1rem);
  font-weight: 700;
  margin: 0 0 1.4rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero p.lede {
  font-size: 1.18rem;
  color: var(--muted);
  margin: 0 0 2.6rem;
  max-width: 38rem;
}

.pilot {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
  border: 1px solid var(--border);
  background: var(--primary-soft);
  border-radius: 0.75rem;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  color: var(--fg);
}
.pilot .dot {
  align-self: center;
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

/* staggered entrance, CSS-only */
.hero > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero > *:nth-child(2) { animation-delay: 0.08s; }
.hero > *:nth-child(3) { animation-delay: 0.16s; }
.hero > *:nth-child(4) { animation-delay: 0.24s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero > * { animation: none; }
}

/* ---------- feature strip ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-block: 1px solid var(--hairline);
  margin: 1rem 0 0;
}
.features article {
  background: var(--bg);
  padding: 1.8rem 1.5rem 2rem;
}
.features h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}
.features p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding-top: 4.5rem; }
}

/* ---------- legal prose ---------- */

.prose {
  max-width: 44rem;
  padding: 3.5rem 0 5rem;
}
.prose h1 { font-size: 2.1rem; margin: 0 0 0.4rem; }
.prose .updated {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--faint);
  margin: 0 0 2.8rem;
}
.prose h2 {
  font-size: 1.25rem;
  margin: 2.6rem 0 0.7rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
}
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0;
}
.prose th, .prose td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--hairline);
  color: var(--muted);
  vertical-align: top;
}
.prose th { color: var(--fg); font-weight: 600; background: var(--bg-raised); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 4rem;
  padding: 2rem 0 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--faint);
}
.site-footer nav { display: flex; gap: 1.4rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }
