/*
 * marketing-base.css — shared brand styles for all static marketing pages.
 * Used by blog posts, guide pages, about page, and the blog index.
 *
 * Brand compliance: matches _tokens.generated.css variables and the
 * Branding Style Guide (/branding).  Any new marketing page MUST include:
 *   <link rel="stylesheet" href="/public/css/marketing-base.css">
 *   <link rel="preconnect" href="https://fonts.googleapis.com">
 *   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 *   <link href="https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap" rel="stylesheet">
 *
 * Per docs/branding/guide.md: background is #000 (pure black), highlight is
 * #7df0d4 (mint), body is DM Sans 400 at 0.95rem / 1.55.  Pages may add
 * their own inline <style> for page-specific overrides AFTER this file.
 */

:root {
  color-scheme: dark;
  --brand-primary: #0f2f27;
  --brand-highlight: #7df0d4;
  --text-primary: #f5f5f5;
  --text-muted: rgba(125, 240, 212, 0.72);
  --surface: rgba(16, 46, 38, 0.55);
  --border: rgba(125, 240, 212, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  background: #000;
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

/* Page glow — dual radial gradients per branding guide */
body::before {
  content: "";
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 40vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(60% 50% at 20% 0%, rgba(125, 240, 212, 0.07), transparent 70%);
}
body::after {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 60%;
  height: 40vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(50% 40% at 80% 10%, rgba(23, 64, 54, 0.28), transparent 72%);
}

/* Content container — matches branding.html container width */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}

/* Navigation — frosted border-bottom, same gap as AppNav */
nav {
  padding: clamp(1.2rem, 3vh, 2rem) clamp(1.25rem, 4vw, 2rem);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(2rem, 4vh, 3rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
nav .logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  margin-right: auto;
}
nav .logo img {
  height: 28px;
  width: 28px;
  border-radius: 6px;
}
nav a {
  color: var(--brand-highlight);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.15s;
}
nav a:hover {
  color: var(--text-primary);
}

/* Auth buttons — match AuthChip.tsx SignedOutCtas exactly */
nav .nav-signin {
  border: 1px solid rgba(125, 240, 212, 0.25);
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  color: rgba(245, 245, 245, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
nav .nav-signin:hover {
  border-color: rgba(125, 240, 212, 0.4);
  background: rgba(125, 240, 212, 0.1);
  color: var(--text-primary);
}
nav .nav-signup {
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--brand-highlight);
  color: #0f2f27;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
nav .nav-signup:hover {
  background: #d4fbee;
  color: #0f2f27;
}

/* Typography — matches branding guide type scale */
h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: var(--brand-highlight);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  margin: 2.5rem 0 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.byline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}
p, li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.55;
}
ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
li { margin-bottom: 0.5rem; }

/* CTA button — matches branding guide btn-primary */
.cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background: var(--brand-highlight);
  color: #0f2f27;
  border-radius: 0.65rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s;
}
.cta:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem clamp(1.25rem, 4vw, 2rem);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}
footer a {
  color: var(--brand-highlight);
  text-decoration: none;
  margin: 0 0.75rem;
  font-size: 0.85rem;
  transition: color 0.15s;
}
footer a:hover {
  color: var(--text-primary);
}
