/* Landing-page styles. Loaded only by index.html, on top of style.css — the prose
   pages (pandoc-generated) keep using style.css alone. */

.landing main { display: block }

/* ── Nav additions ────────────────────────────────────────── */
.top-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  border-bottom: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.top-nav .nav-spacer { flex: 1 }

.top-nav .nav-link {
  color: var(--primary);
  text-decoration: none;
  border-bottom: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}

.top-nav .nav-link:hover {
  background: var(--primary);
  color: #fff;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 72px 24px 64px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  animation: fadeUp 0.5s ease both;
}

.hero-mark {
  margin-bottom: 20px;
  filter: drop-shadow(0 6px 18px rgba(42,45,102,0.18));
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--primary);
  margin: 0 0 12px;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero .lede {
  font-size: 1.08rem;
  color: #3d3f5a;
  margin: 0 auto 32px;
  max-width: 620px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.store-note {
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 56px 24px }

.section.alt {
  background: rgba(255,255,255,0.55);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-inner.narrow { max-width: 720px }

.section h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin: 0 0 20px;
  padding-left: 14px;
  border-left: 4px solid var(--teal);
}

.section p { margin: 0.9rem 0; color: #3d3f5a }

/* ── Numbered steps ───────────────────────────────────────── */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 22px 18px 68px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(217,121,60,0.35);
}

.steps h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.steps p { margin: 0; font-size: 0.96rem }

/* ── Feature cards ────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.card p { margin: 0; font-size: 0.95rem }

/* ── Document links ───────────────────────────────────────── */
.doc-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-links li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.96rem;
}

.doc-links li:last-child { border-bottom: none }
.doc-links a { font-weight: 600 }

/* ── Footer link colour on the landing page ───────────────── */
.site-footer a { border-bottom: none }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 48px 18px 44px }
  .section { padding: 40px 18px }
  .top-nav .nav-link { padding: 6px 8px; font-size: 0.85rem }
  .btn { width: 100%; }
}
