/*
 * Design tokens — light-only marketing palette.
 * Source of truth lives in apps/pages-app dashboard styles. When the
 * dashboard tokens drift, grep this file and resync.
 *
 * See apps/marketing-forms/DESIGN.md for the marketing-tuned deltas.
 *
 * Only the tokens the marketing site actually references are listed.
 * Dark mode and unused legacy aliases were pruned with the Astro removal.
 */

:root {
  --bg: oklch(0.985 0.003 260);
  --bg-elev: oklch(1 0 0);
  --surface: oklch(1 0 0);

  --hairline: oklch(0.92 0.008 260);

  --fg: oklch(0.2 0.015 260);
  --fg-muted: oklch(0.46 0.015 260);
  --fg-subtle: oklch(0.6 0.012 260);

  --accent: oklch(0.54 0.16 255);
  --accent-hover: oklch(0.48 0.17 255);
  --accent-soft: oklch(0.94 0.03 255);

  --radius: 12px;
  --radius-lg: 16px;

  --font-body: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

footer.site-footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  font-size: 0.75rem;
  color: var(--fg-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

footer.site-footer .footer-links {
  display: flex;
  gap: 1rem;
}

footer.site-footer a:hover {
  text-decoration: underline;
}

/* --- Eyebrow ----------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

/* --- Hero -------------------------------------------------------- */

.hero {
  margin: 0 -1.5rem;
  padding: 3rem 1.5rem 4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-soft) 100%);
  position: relative;
  overflow: hidden;
}

.hero h1 {
  margin: 1rem 0 0;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p.lead {
  margin: 1rem 0 0;
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 28rem;
}

/* --- Waitlist form ---------------------------------------------- */

.waitlist-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--fg);
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.waitlist-form input[name="_gotcha"] {
  position: absolute;
  left: -9999px;
}

.waitlist-form button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(82, 88, 214, 0.25);
  cursor: pointer;
  transition: background-color 180ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.waitlist-form button:hover {
  background: var(--accent-hover);
}

.waitlist-disclaimer {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--fg-subtle);
}

.waitlist-disclaimer a:hover {
  text-decoration: underline;
}

/* --- Pillars (3-column card grid on home) ----------------------- */

.section {
  margin-top: 4rem;
}

.section.tight {
  margin-top: 3rem;
}

.pillars {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  padding: 1.25rem;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.pillar .num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-subtle);
}

.pillar h3 {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  font-weight: 600;
}

.pillar p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* --- Code snippet block ----------------------------------------- */

.snippet {
  margin: 0;
  padding: 1rem;
  border-radius: var(--radius);
  background: #1a1b22;
  color: #b8bac4;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  overflow-x: auto;
}

.snippet-caption {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--fg-muted);
  font-style: italic;
}

/* --- About / text page ------------------------------------------ */

.text-page h1,
.page-title {
  margin: 1rem 0 0;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.text-page .body {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.625;
}

.text-page .body p {
  margin: 0 0 1rem;
}

.text-page .body strong {
  color: var(--fg);
}

.text-page .body a {
  color: var(--accent);
}

.text-page .body a:hover {
  text-decoration: underline;
}

/* --- Thanks page ------------------------------------------------ */

.thanks-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 180ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  border: 1px solid var(--hairline);
  color: var(--fg);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--surface);
}

/* --- Legal pages — hand-written prose --------------------------- */

.legal-meta {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--fg-subtle);
}

.prose {
  margin-top: 2rem;
  color: var(--fg);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.prose h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  letter-spacing: -0.015em;
}

.prose h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose ul,
.prose ol,
.prose table {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
}

.prose li {
  margin: 0.25rem 0;
}

.prose strong {
  font-weight: 600;
  color: var(--fg);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 2px;
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--fg);
}

.prose blockquote {
  margin: 1rem 0;
  padding: 0.25rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--fg-muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.prose th,
.prose td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--hairline);
}

.prose th {
  font-weight: 600;
  background: var(--accent-soft);
}
