/* index.css — pantalla d'entrada: tria entre Repartiment i Sabers. */

.index-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.index-wrap {
  width: 100%;
  max-width: 520px;
  padding: 32px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Capçalera ─────────────────────────────────────────────────────── */
.index-header { text-align: center; margin-bottom: 40px; }

.index-logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 18px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(46, 117, 182, .30);
}

.index-header h1 { font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.index-header p { font-size: 14px; color: var(--muted); }

/* ── Pregunta ──────────────────────────────────────────────────────── */
.index-prompt {
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--hint);
  margin-bottom: 14px;
  align-self: flex-start;
}

/* ── Targetes de vista ─────────────────────────────────────────────── */
.index-cards { width: 100%; display: flex; flex-direction: column; gap: 12px; }

.view-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--sh);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .14s, box-shadow .14s, transform .12s;
}
.view-card:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-md);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--ink);
}

.vc-badge {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--blue-bg);
  color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .14s, color .14s;
}
.vc-badge svg { width: 22px; height: 22px; }
.view-card:hover .vc-badge { background: var(--blue); color: #fff; }

.vc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vc-title { font-size: 16.5px; font-weight: 700; color: var(--navy); }
.vc-sub { font-size: 13px; color: var(--muted); line-height: 1.4; }

.vc-arrow { flex-shrink: 0; width: 16px; height: 16px; color: var(--hint); transition: color .14s, transform .14s; }
.view-card:hover .vc-arrow { color: var(--blue); transform: translateX(2px); }

/* ── Nota al peu ───────────────────────────────────────────────────── */
.index-footnote {
  margin-top: 28px; font-size: 12px; color: var(--hint); text-align: center; line-height: 1.5;
}
.index-footnote a { color: var(--hint); text-decoration: underline; }
