/* Lit Mind Maps — shared design system (landing, login, app) */
:root {
  --ink: #1a1c2c;
  --ink-soft: #4a4e69;
  --muted: #7a7f9a;
  --line: #e4e3ee;
  --paper: #fbfaf7;
  --card: #ffffff;
  --accent: #4338ca;       /* indigo */
  --accent-soft: #eef0ff;
  --accent-ink: #312e81;
  --gold: #b08400;
  --ok: #15803d;
  --err: #b91c1c;
  --shadow: 0 10px 40px rgba(26, 28, 44, .08);
  --shadow-sm: 0 2px 10px rgba(26, 28, 44, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--ink);
}
.brand .dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #7c5cff);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
}
.brand:hover { text-decoration: none; }
.navlinks { display: flex; gap: 18px; align-items: center; font-size: .95rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; cursor: pointer;
  border-radius: 10px; padding: 11px 20px; border: 1px solid transparent;
  transition: transform .05s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn-ghost:hover { background: var(--accent-soft); text-decoration: none; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; border-radius: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Cards & inputs */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.input, textarea.input {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, textarea.input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.note { font-size: .85rem; color: var(--muted); }
.error-msg { color: var(--err); font-size: .9rem; margin-top: 10px; min-height: 1.2em; }

/* Hero */
.hero { text-align: center; padding: 84px 0 56px; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1; margin: 0 0 18px; letter-spacing: -.01em;
}
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 620px; margin: 0 auto 30px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 50px 0; }
.step { padding: 26px; }
.step .num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent-ink); font-weight: 700; display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px;
}
.step h3 { font-family: var(--serif); margin: 0 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

.footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 28px 0; color: var(--muted); font-size: .9rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
