/* YGF Leads — public site.
   Tokens copied from the application's design system
   (frontend/src/index.css, light theme) so the site and the app match. */

:root {
  --radius: 0.625rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --primary: oklch(0.5982 0.10687 182.4689);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --border: oklch(0.922 0 0);
  --amber-bg: oklch(0.987 0.022 95.277);
  --amber-border: oklch(0.852 0.199 91.936);
  --amber-text: oklch(0.473 0.137 46.201);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
}

.prose {
  width: min(100% - 2rem, 46rem);
  margin-inline: auto;
}

/* ---- header / footer, the app's rhythm ---- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--foreground);
  font-weight: 600;
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
  font-size: 0.925rem;
}

.site-nav a {
  color: var(--muted-foreground);
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--foreground);
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 1.5rem 0 2.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.site-footer nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
}

/* ---- homepage ---- */
.hero {
  padding: 4.5rem 0 3rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 22ch;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--muted-foreground);
  max-width: 60ch;
  margin: 0 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 500;
  font-size: 0.95rem;
}

.button:hover {
  text-decoration: none;
  filter: brightness(0.95);
}

.button.secondary {
  background: var(--secondary);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.section {
  padding: 2.5rem 0;
}

.section h2 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.section > .container > p,
.section .intro {
  color: var(--muted-foreground);
  max-width: 62ch;
  margin-top: 0;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 1.5rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: var(--card);
  padding: 1.25rem;
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.04);
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.925rem;
}

.note {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.25rem 1.5rem;
  background: var(--muted);
}

.note h2 {
  font-size: 1.15rem;
}

.note ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

/* ---- legal pages ---- */
.legal {
  padding: 3rem 0 1rem;
}

.legal h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}

.legal .meta {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 2.25rem 0 0.5rem;
  letter-spacing: -0.01em;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.35rem;
}

.legal p,
.legal li {
  font-size: 1rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
  margin: 0.75rem 0 1rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
}

.legal th {
  color: var(--muted-foreground);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  font-size: 0.925rem;
  columns: 2;
  column-gap: 2rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  background: var(--muted);
  margin: 1rem 0;
}

/* Visible placeholders — every one must be replaced before the site is
   used for the 10DLC campaign form. */
.todo {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--amber-border);
  border-radius: 0.35rem;
  background: var(--amber-bg);
  color: var(--amber-text);
  font-size: 0.85em;
  font-weight: 600;
}

@media (max-width: 640px) {
  .toc {
    columns: 1;
  }

  .site-header .container {
    flex-wrap: wrap;
    padding-block: 0.75rem 0.5rem;
    gap: 0.5rem 1rem;
  }

  .brand {
    white-space: nowrap;
  }

  .site-nav {
    width: 100%;
    margin-left: 0;
    gap: 1rem;
  }

  .site-footer nav {
    margin-left: 0;
  }
}
