/* Locus Education — monochrome, serif, matches the main app's look. */

:root {
  --bg: #ffffff;
  --fg: #111827;
  --muted: #6b7280;
  --hairline: #e5e7eb;
  --panel: #ffffff;
  --accent: #111827;
  --accent-fg: #ffffff;
  --alert-bg: #fef2f2;
  --alert-border: #fecaca;
  --alert-fg: #b91c1c;
}

html.dark {
  --bg: #030712;
  --fg: #f3f4f6;
  --muted: #9ca3af;
  --hairline: #1f2937;
  --panel: #0b1120;
  --accent: #f3f4f6;
  --accent-fg: #030712;
  --alert-bg: #1f0a0a;
  --alert-border: #7f1d1d;
  --alert-fg: #fca5a5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Lora, Georgia, 'Times New Roman', serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 28px;
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.wordmark-edu {
  margin-left: 8px;
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topnav { display: flex; gap: 20px; }

.topnav-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.topnav-link:hover { color: var(--fg); }

/* Page scaffold */
.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

.page-narrow { max-width: 560px; }
.page-narrow h1 { font-size: 26px; margin: 48px 0 20px; }

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--hairline);
}

.hero-grid {
  position: absolute;
  inset: 0;
  color: var(--muted);
  opacity: 0.18;
  pointer-events: none;
}
.hero-grid svg { width: 100%; height: 100%; }

.hero h1 {
  position: relative;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 15em;
  font-weight: 600;
}

.hero-sub {
  position: relative;
  max-width: 42em;
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 32px;
}

.hero-actions { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  color: var(--fg);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--muted); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.btn-primary:hover { opacity: 0.88; border-color: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: default; }

/* Sections */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--hairline);
}
.section h2 { font-size: 24px; margin: 0 0 28px; font-weight: 600; }
.section > p { max-width: 46em; color: var(--muted); }

/* Steps (a real sequence) */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.steps li { display: flex; gap: 20px; }
.step-n {
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--muted);
}
.steps h3 { margin: 4px 0 6px; font-size: 17px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Feature list */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px 40px;
  margin: 0;
}
.features dt { font-weight: 600; margin-bottom: 6px; }
.features dd { margin: 0; color: var(--muted); font-size: 15px; }

/* Panels & forms (apply flow) */
.panel {
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--panel);
  padding: 24px;
  margin-bottom: 20px;
}
.panel p { margin: 0 0 14px; }
.panel p:last-child { margin-bottom: 0; }

.form { display: grid; gap: 16px; }
.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.form input,
.form textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 9px 12px;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--muted);
}

.alert {
  background: var(--alert-bg);
  border: 1px solid var(--alert-border);
  color: var(--alert-fg);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 14px;
}

.muted { color: var(--muted); font-size: 14px; }

/* Footer */
.footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 28px 40px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.footer-links { display: flex; gap: 16px; }
.footer a { color: inherit; }

@media (max-width: 640px) {
  .hero { padding: 56px 0 44px; }
  .steps li { gap: 14px; }
}

.theme-toggle {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--fg); }

.panel-title { margin: 0 0 10px; font-size: 17px; font-weight: 600; }

/* Privacy page lists */
.plain-list {
  list-style: disc;
  padding-left: 22px;
  max-width: 46em;
  color: var(--muted);
  display: grid;
  gap: 10px;
}
.plain-list li { line-height: 1.55; }
